text stringlengths 54 60.6k |
|---|
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN set_intersection tests
#include <boost/test/unit_test.hpp>
#include <algorithm>
#include <cmath>
#include <functional>
#include <iterator>
#include <list>
#include <vector>
BOOST_AUTO_TEST_SUITE( set_intersection_test_suite )
BOOST_AUTO_TEST_CASE( e... |
<commit_before>/** Copyright (C) 2012 Aldebaran Robotics
*/
#ifndef _WIN32
#include <fnmatch.h>
#else
# include <shlwapi.h>
# pragma comment(lib, "shlwapi.lib")
#endif
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <qi/log.hpp>
#include <qi/applicatio... |
<commit_before>/*
kmsc - Kurento Media Server C/C++ implementation
Copyright (C) 2012 Tikal Technologies
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3
as published by the Free Software Foundation.
This program is distributed in the ... |
<commit_before>#include <Poco/Exception.h>
#include <Poco/DateTime.h>
#include <Poco/DateTimeFormat.h>
#include <Poco/DateTimeFormatter.h>
#include <Poco/Logger.h>
#include <Poco/Net/HTTPServerParams.h>
#include <Poco/Net/HTTPServerRequest.h>
#include <Poco/Net/HTTPServerResponse.h>
#include "rest/PocoRestRequestHand... |
<commit_before>/*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015-2018 Vladimir Menshakov
Android File Transfer For Linux is free software: you can redistribute
it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundati... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop_proxy.h"
#include "remoting/jingle_glue/mock_obj... |
<commit_before>/*
* Copyright (C) 2014-2015 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include "getModelIndex.hpp"
#include "desk_functions.hpp"
#include "IoView.hpp"
#include "GuiGame.hpp"
#include "GameOptions.hpp"
#include <QMainWindow>
namespace... |
<commit_before>//===--- PrintPreprocessedOutput.cpp - Implement the -E mode --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before><commit_msg>gui: unregister timing cone if there are no cones selected<commit_after><|endoftext|> |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_ASSEMBLER_SYSTEM_HH
#define DUNE_GDT_ASSEMBLER_SYSTEM_HH
#include <typ... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://open... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2002, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Types.... |
<commit_before>#include <iostream>
#include <thread>
#include "DoryProcessSpawn.hpp"
using namespace std;
using namespace spawn;
void loop(uv_loop_t* uv_loop) {
uv_timer_t timer;
int r;
r = uv_timer_init(uv_loop, &timer);
ASSERT(r==0);
// repeat every 1000 millisec to make the loop lives forever
// late... |
<commit_before>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>#include "OniFrameManager.h"
#include <XnOSCpp.h>
ONI_NAMESPACE_IMPLEMENTATION_BEGIN
FrameManager::FrameManager()
{
}
FrameManager::~FrameManager()
{
}
OniFrameInternal* FrameManager::acquireFrame()
{
OniFrameInternal* pFrame = m_frames.Acquire();
xnOSMemSet(pFrame, 0, sizeof(OniFrameInternal);
... |
<commit_before>/******************************************************************************\
* LuaValue.hpp *
* A class that somewhat mimics a Lua value. *
* Leandro Motta Barros ... |
<commit_before>// dune-multiscale
// Copyright Holders: Patrick Henning, Rene Milk
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef SUBGRIDLIST_HH
#define SUBGRIDLIST_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CO... |
<commit_before>/**
* PcapSearch application
* ======================
* This application searches all pcap files in a given directory and all its sub-directories (unless stated otherwise) and outputs how many and which
* packets in those files match a certain pattern given by the user. The pattern is given in Be... |
<commit_before>//=====================================================================//
/*! @file
@brief DS3231 RTC のテスト
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
#include<cstring>
#include "G13/system.hpp"
#include "G13/port.hpp"... |
<commit_before>/*
线段树
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lson root<<1
#define rson root<<1|1
const int maxn = (65535<<1) + 3;
static struct {
int left;
int right;
int lbd;
int rbd;
int cover;
int mask;
int flag;
} tree[maxn*4+11];
void build(int roo... |
<commit_before>/*
* File: Signal.hpp
* Author: Barath Kannan
* Signal/Slots C++14 implementation
* Created on May 10, 2016, 5:57 PM
*/
#ifndef SIGNAL_HPP
#define SIGNAL_HPP
#include <functional>
#include <map>
#include <unordered_map>
#include <atomic>
#include <mutex>
#include <shared_mutex>
#include <conditi... |
<commit_before>#include <iostream>
#include <chrono>
#include <vector>
#include <numeric>
#include "tensorflow/cc/ops/const_op.h"
#include "tensorflow/cc/ops/array_ops.h"
#include "tensorflow/cc/ops/image_ops.h"
#include "tensorflow/core/platform/init_main.h"
#include "tensorflow/core/platform/logging.h"
#include "tens... |
<commit_before>#ifndef RESULT_ALL_HPP_
#define RESULT_ALL_HPP_
#include "result_benchmark.hpp"
#include "traits.hpp"
#include "types.hpp"
#include <sstream>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
namespace gearshifft {
template<int T_Num... |
<commit_before>// SPDX-License-Identifier: MIT
/**
Copyright (c) 2021 - 2022 Beckhoff Automation GmbH & Co. KG
*/
#include "RouterAccess.h"
#include "Log.h"
#include "wrap_endian.h"
#include <array>
#include <iostream>
namespace bhf
{
namespace ads
{
struct SearchPciBusReq {
SearchPciBusReq(const uint64_t qua... |
<commit_before>/*
* Copyright 2008-2009 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>#include "tidyup_actions/stateCreatorRobotPose.h"
#include <pluginlib/class_list_macros.h>
#include <visualization_msgs/MarkerArray.h>
#include <angles/angles.h>
PLUGINLIB_DECLARE_CLASS(tidyup_actions, state_creator_robot_pose,
tidyup_actions::StateCreatorRobotPose, continual_planning_executive:... |
<commit_before>
#include "CGlyphNodeManager.h"
#include <ionWindow.h>
#include "CProgramContext.h"
#include "CDataSet.h"
vec3f CGlyph::GetPosition() const
{
return Position;
}
color3f CGlyph::GetColor() const
{
return Color;
}
void CGlyphNodeManager::Init()
{
SingletonPointer<CSceneManager... |
<commit_before>//
// kern_audio.cpp
// AppleALC
//
// Copyright © 2018 vit9696. All rights reserved.
//
#include <Headers/kern_iokit.hpp>
#include <Headers/plugin_start.hpp>
#include "kern_audio.hpp"
OSDefineMetaClassAndStructors(AppleALCAudio, IOService)
IOService *AppleALCAudio::probe(IOService *hdaService, SI... |
<commit_before><commit_msg>-Fixed viewer launching issue on MacOS when passing in Chrome switches<commit_after><|endoftext|> |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>#pragma once
#include <algorithm>
#include <iterator>
namespace aid {
// worst case: n^2
// average case: n^2
// best case: n^2
// space complexity: 1
template<typename It>
void bubble_sort(It first, It last) {
for (auto it = std::prev(last); it != first; --it)
... |
<commit_before>/*
* Copyright (c) 2010-2012 frankee zhou (frankee.zhou at gmail dot com)
*
* Distributed under under the Apache License, version 2.0 (the "License").
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses... |
<commit_before>/*
* This file is part of `et engine`
* Copyright 2009-2013 by Sergey Reznik
* Please, do not modify content without approval.
*
*/
#include <et/geometry/geometry.h>
#include <et/app/application.h>
#include <et/input/gestures.h>
using namespace et;
const float GesturesRecognizer::def... |
<commit_before>#include "BasicTexture.h"
BasicTexture::BasicTexture(const std::string& file)
{
loadFromFile(file);
}
void BasicTexture::loadFromImage(const sf::Image& i)
{
glGenTextures(1, &m_id);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, m_id);
glTexImage2D(GL_TEXTURE_2D, 0, GL... |
<commit_before>/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
* permission notice appear ... |
<commit_before>// Class for kernels, llvm::Functions that represent OpenCL C kernels.
//
// Copyright (c) 2011 Universidad Rey Juan Carlos and
// 2012 Pekka Jääskeläinen / TUT
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentat... |
<commit_before>/*
* statereader.cpp
*
* Created on: 05.08.2014
* Author: Ralph
*/
#include "statereader.h"
#include "loader.h"
#include "../data/globalpropertymodel.h"
#include "../data/models.h"
#include "../data/roiarea.h"
#include "../data/roibox.h"
#include "../data/vptr.h"
#include ... |
<commit_before>#include "stdafx.h"
#include <iostream>
#include <map>
#include <math.h>
typedef unsigned int ruint;
class Uniform01
{
protected:
Uniform01(ruint seed): m_seed(seed)
{}
double generate01()
{
m_seed = m_seed * 69069 + 1;
return m_seed / 4294967296.0;
}
private:
ruint m_se... |
<commit_before>#include "iotsa.h"
#if defined(IOTSA_WITH_HTTPS) && defined(IOTSA_WITH_HTTP)
// Tiny http server which forwards to https
class TinyForwardServer {
public:
ESP8266WebServer server;
TinyForwardServer()
: server(80)
{
server.onNotFound(std::bind(&TinyForwardServer::notFound, this));
server... |
<commit_before>#pragma once
#include "GeneNode.hpp"
/*
* This simple class encapsulates all of an Individual's genetic information,
* including the gene pools it uses, with the goal of easing the sharing of
* this information between classes.
*/
class Genome {
private:
protected:
int * gene;
int genomeLength;
G... |
<commit_before>/*
* Copyright (c) 2012 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. ... |
<commit_before>#include "MISC.H"
#include "CONTROL.H"
#include "CAMERA.H"
#include "GPU.H"
#include "LOAD_LEV.H"
#include "SPECIFIC.H"
#include "TEXT_S.H"
#include <EMULATOR.H>
#include <LIBETC.H>
#include "GAMEFLOW.H"
#if PSXPC_VERSION || PSXPC_TEST
#include <stdint.h>
#endif
#if PSX_VERSION && !PSXPC_TEST
typedef ... |
<commit_before>// Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/native_browser_view_views.h"
#include "shell/browser/ui/inspectable_web_contents_view.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/ba... |
<commit_before>/**
* This file defines the core graph analysis algorithm.
*/
#ifndef D2_ANALYSIS_HPP
#define D2_ANALYSIS_HPP
#include <d2/detail/all_cycles.hpp>
#include <boost/foreach.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/properties.hpp>
#include <boost/range/begin.hpp>
#include <boos... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2014-2015 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_VERSION_HPP
#define OPENCV_VERSION_HPP
#define CV_VERSION_MAJOR 4
#define CV_VERSION_MINOR ... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "base/time.h"
#include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
#include "... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: macro_expander.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-08 09:27:49 $
*
* The Contents of this file are... |
<commit_before>#include "chrome/browser/extensions/extension_browsertest.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/path_service.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extensions_service.h"
#incl... |
<commit_before>#ifndef GCN_SDL_HPP
#define GCN_SDL_HPP
#include <guichan/sdl/sdlgraphics.hpp>
#include <guichan/sdl/sdlimage.hpp>
#include <guichan/sdl/sdlinput.hpp>
#endif // end GCN_SDL_HPP
<commit_msg>Removed sdlimage.hpp added sdlimageloader.hpp<commit_after>#ifndef GCN_SDL_HPP
#define GCN_SDL_HPP
#include <guic... |
<commit_before>#ifndef __ENVIRE_CORE_ITEM_BASE__
#define __ENVIRE_CORE_ITEM_BASE__
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/export.hpp>
#include <boo... |
<commit_before><commit_msg>Fix some issues with bookmark bar folder menu.<commit_after><|endoftext|> |
<commit_before>//
// Enterprise.cpp
// Clock Signal
//
// Created by Thomas Harte on 10/06/2021.
// Copyright © 2021 Thomas Harte. All rights reserved.
//
#include "Enterprise.hpp"
#include "../MachineTypes.hpp"
#include "../../Processors/Z80/Z80.hpp"
#include "../../Analyser/Static/Enterprise/Target.hpp"
nam... |
<commit_before>#pragma once
#include <glm/glm.hpp>
namespace mos {
namespace gfx {
/** Visual bounding box. */
class Box final {
public:
Box() = default;
Box(const glm::mat4 &transform,
const glm::vec3 &extent);
glm::mat4 transform;
glm::vec3 extent;
glm::vec3 position() const;
glm::vec3 size() con... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>// This file is part of MLDB. Copyright 2015 Datacratic. All rights reserved.
/** for_each_line.cc
Jeremy Barnes, 29 November 2013
Copyright (c) 2013 Datacratic Inc. All rights reserved.
*/
#include <atomic>
#include <exception>
#include <mutex>
#include "for_each_line.h"
#include "mldb/arch/... |
<commit_before>#include "stdafx.h"
#include "include/cef_runnable.h"
#include "ScriptCore.h"
#include "ScriptException.h"
namespace CefSharp
{
bool ScriptCore::TryGetMainFrame(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame>& frame)
{
if (browser != nullptr)
{
frame = browser->Get... |
<commit_before>#include <Cpp/Events.hpp>
#include <gtest/gtest.h>
class Sender
{
public:
void fire() { somethingHappened_.fire(); }
Cpp::EventRef<> somethingHappened() { return somethingHappened_; }
private:
Cpp::Event<> somethingHappened_;
};
class Reciever
{
public:
Reciever() : val_() {}
void increment() { +... |
<commit_before># include <Siv3D.hpp>
void Main()
{
//const Texture texture(L"example/siv3d-kun.png");
while (System::Update())
{
Texture texture(L"example/siv3d-kun.png");
}
}
<commit_msg>v0.1.2 リリース準備<commit_after>
# include <Siv3D.hpp>
void Main()
{
Graphics::SetBackground(Palette::White);
double t = 0.... |
<commit_before>#include "em.h"
EM::EM(std::function<long double(std::tuple<T...>)> q_function, std::function<std::tuple<T...>(std::tuple<T...>)> m_function, std::tuple<T...> theta) : q_function(q_function), m_function(m_function), likelihood(0), theta(theta){
}
long double EM::likelihood_diff(long double previous, lo... |
<commit_before>#if !defined(_TSXX_SYSTEM_HPP_)
#define _TSXX_SYSTEM_HPP_
#include <map>
#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <tsxx/exceptions.hpp>
#define LOG(x) (std::clog << __FILE__ << ":" << __LINE__ << ": " << (x) << std::endl)
#define FIXME() LOG("FIXME")
#define TODO() LO... |
<commit_before>//----------------------------------------------------------------------------
/// \file bitmap.cpp
/// \author Serge Aleynikov
//----------------------------------------------------------------------------
/// \brief Bitmap index suitable for indexing up to 64 or 4096 values on a
/// 64bit platform wit... |
<commit_before>#include "module_pressuresensor.h"
#include "pressure_form.h"
#include <Module_UID/module_uid.h>
#define REGISTER_CALIB 00 // 8 bytes
#define REGISTER_PRESSURE_RAW 8
#define REGISTER_TEMP_RAW 10
#define REGISTER_PRESSURE 12
#define REGISTER_TEMP 14
#define REGISTER_STATUS 17
#define REGISTER_COUNTER 20
... |
<commit_before>#include "itkBSplineControlPointImageFilter.h"
#include "itkExpImageFilter.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImageRegionIterator.h"
#include "itkN3MRIBiasFieldCorrectionImageFilter.h"
#include "itkOtsuThresholdImageFilter.h"
#include "itkShrinkImageFilter.h"
... |
<commit_before>/*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include <QApplication>
#include <QDBusConnection>
#include <QDBusErr... |
<commit_before>#include "classui.h"
#include "listworker.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <time.h>
#include <stdlib.h>
using namespace std;
ClassUI::ClassUI()
{
}
void ClassUI::mainMenu()
{
if (firstRun == true)
{
cout << "\t"... |
<commit_before>#include "stdafx.h"
#include "sysinv.h"
#include "smbios.h"
LPTSTR CHASSIS_TYPE_STRINGS[] = {
_T("Unknown"), // 0x00 Invalid
_T("Other"), // 0x01
_T("Unknown"), // 0x02
_T("Desktop"), // 0x03
_T("Low Profile Desktop"), // 0x04
_T("Pizza Box"), // 0x05
_T("Mini Tower... |
<commit_before>#include <chrono>
#include <iostream>
#include <numeric>
#include <vector>
#include "tensorflow/cc/ops/array_ops.h"
#include "tensorflow/cc/ops/const_op.h"
#include "tensorflow/cc/ops/image_ops.h"
#include "tensorflow/cc/saved_model/loader.h"
#include "tensorflow/compiler/tf2tensorrt/trt_convert_api.h"
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "GameManager.h"
USING_NS_CC;
Scene *GameManager::createScene() {
auto scene = Scene::create();
auto layer = GameManager::create();
scene->addChild(layer);
return scene;
}
bool GameManager::init() {
if (!Layer::init()) {
return false;
}
loadCards();
arrangeCards();
// ... |
<commit_before>/*****************************************************************************
* CameraCalibration.cpp
*
* Set white balance for given lighting, write parameters to file
* https://web.stanford.edu/~sujason/ColorBalancing/robustawb.html
****************************************************************... |
<commit_before>//===- CallingConvEmitter.cpp - Generate calling conventions --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>/*
* INTEL CONFIDENTIAL
* Copyright © 2011 Intel
* Corporation All Rights Reserved.
*
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Intel Corporation or its suppliers
* or licensors. Title to the Material remains with Intel... |
<commit_before>
// Copyright 2010-2012 University of Washington. All Rights Reserved.
// LICENSE_PLACEHOLDER
// This software was created with Government support under DE
// AC05-76RL01830 awarded by the United States Department of
// Energy. The Government has certain rights in the software.
/// One implementation of... |
<commit_before>/*
Copyright (c) 2014, Project OSRM, Felix Guendling
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of c... |
<commit_before>#include <clams/slam_calibrator.h>
using namespace std;
using namespace Eigen;
namespace clams
{
SlamCalibrator::SlamCalibrator(const FrameProjector& proj, double max_range, double vgsize) :
proj_(proj),
max_range_(max_range),
vgsize_(vgsize),
increment_(1)
{
}
void filterFrin... |
<commit_before>#include "testing/testing.hpp"
#include "routing/route.hpp"
#include "routing/router.hpp"
#include "routing/routing_session.hpp"
#include "geometry/point2d.hpp"
#include "base/logging.hpp"
#include "std/chrono.hpp"
#include "std/mutex.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
namespac... |
<commit_before>//
// Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Surface.cpp: Implements the egl::Surface class, representing a drawing surface
// such as the client area of a windo... |
<commit_before>#ifndef ITER_CHUNKED_HPP_
#define ITER_CHUNKED_HPP_
#include "internal/iterbase.hpp"
#include "internal/iteratoriterator.hpp"
#include <vector>
#include <algorithm>
#include <type_traits>
#include <functional>
#include <utility>
#include <iterator>
namespace iter {
namespace impl {
template <typ... |
<commit_before>#include <iostream>
#include <RandomNumberGenerator.h>
#include "Sampler.h"
#include "MyModel.h"
using namespace std;
using namespace DNest3;
int main()
{
RandomNumberGenerator::initialise_instance();
Sampler<MyModel> s(100, 1000);
s.initialise();
for(int i=0; i<10000; i++)
s.update();
return... |
<commit_before>#include "config.h"
#include <cerrno>
#include <algorithm>
#include <vector>
#define _XOPEN_SOURCE 600
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <fcntl.h>
#include "archive.hh"
#include "util.hh"
namespace nix {
static string archiveVersion1 = "n... |
<commit_before>#ifndef line_and_column_hh_INCLUDED
#define line_and_column_hh_INCLUDED
namespace Kakoune
{
template<typename EffectiveType>
struct LineAndColumn
{
int line;
int column;
LineAndColumn(int line = 0, int column = 0)
: line(line), column(column) {}
EffectiveType operator+(const E... |
<commit_before>// InteractiveNotifications.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "InteractiveNotifications.h"
#include <NotificationActivationCallback.h>
#include <Shellapi.h>
#include <string>
#include <iostream>
#include <SDKDDKVer.h>
#include <Windows.h>
#inc... |
<commit_before>/*************************************************************************
*
* $RCSfile: XmlFilterAdaptor.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2002-10-10 13:32:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>//
// InstanceDlg.cpp
//
// Copyright (c) 2003-2006 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/filename.h>
#include "In... |
<commit_before>#include <gmock/gmock.h>
#include <deque>
#include <string>
#include <process/socket.hpp>
#include <stout/gtest.hpp>
#include "decoder.hpp"
using namespace process;
using namespace process::http;
using std::deque;
using std::string;
using process::network::Socket;
TEST(Decoder, Request)
{
Try<S... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTableSourceContext.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: vg $ $Date: 2007-02-27 12:48:21 $
*
* The Contents of this ... |
<commit_before>#include "Component.h"
std::vector<Component*>Component::components;
Component::Component()
: position(0.f, 0.f, 0.f)
, isVisible(true)
{
components.push_back(this);
}
Component::Component(float x, float y, float z)
: position(x, y, z)
{
components.push_back(this);
}
Component::~Component()
{
}
<c... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief IP address 定義 @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
#include "common... |
<commit_before>/*
* BuildingObjectImplementation.cpp
*
* Created on: 23/07/2009
* Author: TheAnswer
*/
#include "BuildingObject.h"
#include "server/zone/Zone.h"
#include "server/zone/ZoneServer.h"
#include "server/zone/objects/cell/CellObject.h"
#include "server/zone/objects/player/PlayerCreature... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ScriptingContext.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:31:14 $
*
* The Contents of this file a... |
<commit_before>/*************************************************************************
*
* $RCSfile: directsql.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2003-03-19 17:52:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: charsets.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-08 16:11:47 $
*
* The Contents of this file are made ... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <openssl/sha.h>
using namespace std;
#define HASHSIZE 32
string getCutHex(unsigned char hash[HASHSIZE]) {
string base64Index = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#";
string output = "";
for (int i = 0; i ... |
<commit_before>#ifndef RECURSE_REQUEST_HPP
#define RECURSE_REQUEST_HPP
#include <QTcpSocket>
#include <QHash>
#include <QUrl>
#include <QUrlQuery>
class Request
{
public:
//!
//! \brief data
//! client request buffer data
//!
QString data;
//!
//! \brief socket
//! underlying client ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.