text stringlengths 54 60.6k |
|---|
<commit_before>#include "config.h"
#include <iostream>
#include <string>
#include <pybind11/pybind11.h>
#include <autocxxpy/autocxxpy.hpp>
#include "module.hpp"
#include "wrappers.hpp"
#include "generated_functions.h"
#include "xtp_trader_api.h"
#include "xtp_quote_api.h"
void generate_caster_(pybind11::object & p... |
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before><commit_msg>Workaround for msvc-6.5: *_EQUAL macros give Internal Compiler Errors, when inlining is turned on.<commit_after><|endoftext|> |
<commit_before><commit_msg>Eigenize calc_table_posterior<commit_after><|endoftext|> |
<commit_before><commit_msg>Avoid deprecated `stream_from` ctor.<commit_after><|endoftext|> |
<commit_before>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <libdevcore/Common.h>
#include <libdevcore/CommonIO.h>
#include <libevmface/Instruction.h>
#include "Compiler.h"
#include "ExecutionEngine.h"
using namespace dev;
void show_usa... |
<commit_before>/*
* Copyright Andrey Semashev 2007 - 2013.
* 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)
*/
/*!
* \file empty_deleter.hpp
* \author Andrey Semashev
* \date 22.04.20... |
<commit_before>// 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 required by applicable law or agreed to in writing, software
// ... |
<commit_before>/**
* File : D.cpp
* Author : Kazune Takahashi
* Created : 2/9/2019, 9:16:48 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> ... |
<commit_before>
/*
********************************************************************************
***************************** Implementation Details ***************************
********************************************************************************
*/
#ifndef _Stroika_Foundation_Database_SQL_ORM_TableC... |
<commit_before>#include "otbTrainImagesBase.h"
namespace otb
{
namespace Wrapper
{
class TrainImagesClassifier : public TrainImagesBase
{
public:
typedef TrainImagesClassifier Self;
typedef TrainImagesBase Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPoint... |
<commit_before>/**
* @file Simulation.cpp
* @author <a href="mailto:schlottb@informatik.hu-berlin.de">Benjamin Schlotter</a>
* Implementation of class Simulation
*/
#include "Simulation.h"
using namespace naoth;
using namespace std;
Simulation::Simulation()
{
DEBUG_REQUEST_REGISTER("Simulation:draw_one_action_poin... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkPath.h"
#include "SkLineClipper.h"
#include "SkEdgeClipper.h"
static void test_edgeclipper(skiatest::Reporter* reporter) {
Sk... |
<commit_before>/*~
* Copyright (C) 2013 - 2016 George Makrydakis <george@irrequietus.eu>
*
* This file is part of 'clause', a highly generic C++ meta-programming library,
* subject to the terms and conditions of the Mozilla Public License v 2.0. If
* a copy of the MPLv2 license text was not distributed with this ... |
<commit_before>/*
* This content is released under the MIT License as specified in https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE
*/
#include "includes.h"
using namespace spdlog::details;
static const std::string target_filename = "logs/file_helper_test.txt";
static void write_with_helper(file_helper... |
<commit_before>#include "signal.hpp"
#include "signal-forward.hpp"
#include <iostream>
#include <algorithm>
#include <cassert>
using namespace pac;
struct Server
{
int even = 0;
pac::signal<int(int)> sigadd;
pac::signal<int(int)> sigsub;
typename pac::signal<int(int)>::results_type
Add( int in )
{
return ... |
<commit_before>/*
* DShow Native wrapper
* Copyright (c) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... |
<commit_before>/*
** Copyright 2013 Centreon
**
** 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 required by applicable law o... |
<commit_before>#include "renderState.h"
namespace Tangram {
namespace RenderState {
Blending blending;
DepthTest depthTest;
StencilTest stencilTest;
Culling culling;
DepthWrite depthWrite;
BlendingFunc blendingFunc;
StencilWrite stencilWrite;
StencilFunc stencilFunc;
StencilOp... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>/* -*- indent-tabs-mode: nil -*- */
#include <gtest/gtest.h>
#include <memory>
#include <stdint.h>
#include <string>
#include "log/etcd_consistent_store-inl.h"
#include "log/file_db.h"
#include "log/log_signer.h"
#include "log/log_verifier.h"
#include "log/sqlite_db.h"
#include "log/test_db.h"
#include ... |
<commit_before>#include <csignal>
#include <fcntl.h>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include "net/connection_pool.h"
#include "net/url_fetcher.h"
#include "util/libevent_wrapper.h"
#includ... |
<commit_before><commit_msg>getLibEnv always returned an empty string anyway so make it void instead<commit_after><|endoftext|> |
<commit_before>#if OSL_DEBUG_LEVEL == 0
#define NDEBUG
#endif
#include <assert.h>
#include <interface.hxx>
#include <cstdio>
#include <hash_map>
#include <string>
using namespace std;
static hash_map< string, string >* pStringResources = NULL;
static string getResFileName( const char* progname )
{
string aRet =... |
<commit_before>//@author A0097630B
#include "stdafx.h"
#include "parse_tree/show_query.h"
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
namespace You {
namespace NLP {
namespace UnitTests {
TEST_CLASS(ShowQueryTests) {
TEST_METHOD(convertsToStream) {
{
std::wostringstream stream;
str... |
<commit_before>#include "Bootstrapper.hpp"
#include "Connection.hpp"
using Dissent::Utils::Timer;
using Dissent::Utils::TimerCallback;
using Dissent::Utils::TimerMethod;
namespace Dissent {
namespace Connections {
Bootstrapper::Bootstrapper(ConnectionManager &cm,
const QList<Address> &remote_endpoints) :
... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "Framework.h"
#include "Profiler.h"
#include "IRenderer.h"
#include "CoreException.h"
#include "Application.h"
#include "VersionInfo.h"
#include "ConfigAPI.h"... |
<commit_before>// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
#pragma once
/*! \file rx-skip.cpp
\brief Make new observable with skipped first count items from this observable.
\tparam Count the type of the items counter
... |
<commit_before>
// NetherFortGen.cpp
// Implements the cNetherFortGen class representing the nether fortress generator
#include "Globals.h"
#include "NetherFortGen.h"
#include "Prefabs/NetherFortPrefabs.h"
static const int NEIGHBORHOOD_SIZE = 3;
//////////////////////////////////////////////////////////////... |
<commit_before>// Setup for tests that use result of stl namespace test.
#if defined(KWSYS_STL_HAVE_STD)
# if KWSYS_STL_HAVE_STD
# define kwsys_stl std
# else
# define kwsys_stl
# endif
#endif
#ifdef TEST_KWSYS_STL_HAVE_STD
#include <list>
void f(std::list<int>*) {}
int main() { return 0; }
#endif
#ifdef TEST_KWSYS... |
<commit_before>/*
* Copyright (c) 2011, Google Inc. 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 ... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013-2015, SimQuest Solutions Inc.
//
// 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.apac... |
<commit_before>#include "../Include/CEntityNode.h"
#include "../Include/CSceneNode.h"
#include "../Include/CMenuNode.h"
#include "cocos2d.h"
using namespace cocos2d;
namespace LM
{
CEntityNode::CEntityNode(EAnchor a_eAnchor, int a_iWidth, int a_iHeight,
int a_iXPosition, int a_iYPosition, const std::string& ... |
<commit_before>#include <LoggerProcess.hpp>
#include <iostream> // cin
#include <exception> // std::set_unexpected
int main(int argc, char** argv)
{
int uniqueIdentifier = 0;
if(argc == 1)
{
// Assume default name
using namespace std;
cout << "Assumes default name on filemap." << en... |
<commit_before>#include "TriDualGraph.h"
#include <iostream>
#include <tbb/parallel_for.h>
#include <tbb/parallel_for_each.h>
#include <algorithm>
#include <ModelLoader.h>
#include <LNormUtil.h>
using namespace Zephyr::Common;
using namespace Zephyr::Graphics;
Zephyr::Algorithm::TriDualGraph::TriDualGraph()
{
ModelL... |
<commit_before>// some global var/constants
const Int_t kNSM = 4; // for first LHC run
const Int_t kNRCU = 2;
AliCaloAltroMapping *fMapping[4]; // 1 for each side (A/C) and each RCU (0/1), i.e. 2*2 total
const Int_t kNBranch = 2;
const Int_t kNFEC = 10; // 0..9, when including LED Ref
const Int_t kNChip = 5; // really ... |
<commit_before>#include <ros/ros.h>
#include <aidu_core/node.h>
#include <aidu_elevator/elevator.h>
#include <aidu_elevator/actions/locatebutton.h>
#include <aidu_elevator/actions/pushbutton.h>
#include <aidu_elevator/OutsideButton.h>
#include <aidu_elevator/ElevatorNavigation.h>
#include <aidu_elevator/actions/go_to_d... |
<commit_before>/*
This file is part of Akregator.
Copyright (C) 2007 Frank Osterfeld <osterfeld@kde.org>
This program 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 Foundation; either version 2 of the L... |
<commit_before>/* Copyright (c) 2018 PaddlePaddle 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 the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless req... |
<commit_before>/*************************************************************************
*
* $RCSfile: except.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2001-11-06 16:58:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in t... |
<commit_before>#include "ROOT/TDataFrame.hxx"
#include "gtest/gtest.h"
using namespace ROOT::Experimental;
class TDFRanges : public ::testing::Test {
protected:
TDFRanges() : fTDF(100) {}
TDataFrame &GetTDF() { return fTDF; }
private:
TDataFrame fTDF;
};
TEST_F(TDFRanges, API)
{
auto &tdf = GetTDF();
... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved
*/
#ifndef _Stroika_Foundation_Memory_SharedByValue_inl_
#define _Stroika_Foundation_Memory_SharedByValue_inl_ 1
/*
********************************************************************************
*****************************... |
<commit_before>#include <chrono>
#include <string>
#include "depthai/depthai.hpp"
int main(int argc, char** argv) {
using namespace std::chrono;
dai::DeviceBootloader::Type blType = dai::DeviceBootloader::Type::AUTO;
if(argc > 1) {
std::string blTypeStr(argv[1]);
if(blTypeStr == "usb") {
... |
<commit_before>/*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <string>
#include "kernel/error_msgs.h"
namespace lean {
format pp_indent_expr(formatter const & fmt, expr const & e) {
return ... |
<commit_before>// KalmanFilter.cpp : Uses all available information to make optimal estimation.
// C++ implementation of Python code.
// From Udacity CS 373 Artificial Intelliegence for Robots.
// Taught by Sebastian Thrun.
// C++ version by Tyler Folsom; March 6, 2012.
//
//#include "stdafx.h" // required f... |
<commit_before>/*=========================================================================
Program: Bender
Copyright (c) Kitware Inc.
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
... |
<commit_before>AliAnalysisTask *AddTask_rbailhac_lowmass_PbPb(Bool_t getFromAlien=kFALSE,
TString cFileName = "Config_rbailhac_lowmass_PbPb.C",
TString calibFileName = "",
UInt_t trigger = AliVEvent::kINT7|AliVEvent::kCentral|AliVEvent::kSemiCentral,
const Int_t CenMin = ... |
<commit_before>#pragma once
/*
plugins.hpp
( , - flplugin.cpp)
*/
/*
Copyright 1996 Eugene Roshal
Copyright 2000 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of s... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "util/optional.h"
#include "util/buffer.h"
#include "kernel/free_vars.h"
#include "kernel/instantiate.h"
#include "kernel/kernel.h"
... |
<commit_before>#ifndef TURBO_MEMORY_TAGGED_PTR_HPP
#define TURBO_MEMORY_TAGGED_PTR_HPP
#include <cstdint>
#include <atomic>
#include <limits>
#include <stdexcept>
#include <string>
#include <turbo/toolset/extension.hpp>
namespace turbo {
namespace memory {
class unaligned_ptr_error : public std::invalid_argument
{
p... |
<commit_before>#pragma once
#include "client_base.hpp"
#include "sub_router.hpp"
namespace czrpc
{
namespace client
{
class sub_client : public client_base
{
public:
sub_client(const sub_client&) = delete;
sub_client& operator=(const sub_client&) = delete;
sub_client() : heartbeats_work_(heartbeats_ios_),... |
<commit_before>// See LICENSE.SiFive for license details.
// See LICENSE.Berkeley for license details.
#if VM_TRACE
#include <memory>
#if CY_FST_TRACE
#include "verilated_fst_c.h"
#else
#include "verilated.h"
#include "verilated_vcd_c.h"
#endif // CY_FST_TRACE
#endif // VM_TRACE
#include <fesvr/dtm.h>
#include <fesvr/... |
<commit_before>#include "inventory.h"
#include <facter/facts/collection.hpp>
#include <cthun-client/src/log/log.h>
#include <valijson/constraints/concrete_constraints.hpp>
#include <sstream>
LOG_DECLARE_NAMESPACE("agent.inventory");
namespace CthunAgent {
namespace Modules {
Inventory::Inventory() {
// Set t... |
<commit_before>#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <imgui.h>
#include "aten.h"
#include "atenscene.h"
#include "idaten.h"
#include "scenedefs.h"
#define MULTI_GPU_SVGF
static int WIDTH = 1280;
static in... |
<commit_before>// Copyright (c) 2018 PaddlePaddle 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>#include "vtkActor.h"
#include "vtkCamera.h"
#include "vtkCommand.h"
#include "vtkImageData.h"
#include "vtkImagePlaneWidget.h"
#include "vtkInteractorEventRecorder.h"
#include "vtkKochanekSpline.h"
#include "vtkParametricSpline.h"
#include "vtkPlaneSource.h"
#include "vtkPointData.h"
#include "vtkPolyDa... |
<commit_before>#define STRICT
#define ORBITER_MODULE
#include "Orbitersdk.h"
#include "PersistData.h"
#include "MasterMFD.h"
int mfdIdentifierMode;
DLLCLBK void InitModule(HINSTANCE hDLL)
{
static char *name = "Master";
MFDMODESPECEX spec;
spec.name = name;
spec.key = OAPI_KEY_M;
spec.context = NULL;
spec.msgpr... |
<commit_before>/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com>
* Copyright (C) 2018 David Shah <david@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby gran... |
<commit_before>#ifndef MJOLNIR_CORE_MULTIPLE_BASIN_FORCE_FIELD_HPP
#define MJOLNIR_CORE_MULTIPLE_BASIN_FORCE_FIELD_HPP
#include <mjolnir/forcefield/MultipleBasin/MultipleBasinUnitBase.hpp>
#include <mjolnir/core/SimulatorTraits.hpp>
#include <mjolnir/core/Topology.hpp>
#include <mjolnir/core/ForceFieldBase.hpp>
#includ... |
<commit_before>void SETUP() {
CheckLoadLibrary("libPWG2spectra");
// Set the include paths
gROOT->ProcessLine(".include PWG2spectra/SPECTRA");
// Set our location, so that other packages can find us
gSystem->Setenv("PWG2spectra_INCLUDE", "PWG2spectra");
}
Int_t CheckLoadLibrary(const char* library) {
// ... |
<commit_before>#include "KCClient.h"
typedef KCClient C;
const std::map<QString, C::processFunc> C::processFuncs = {
// Global info -------------------------------------------------------------
// Ships
{ "/kcsapi/api_get_master/ship", &C::_processMasterShipsData },
// Sortie maps
{ "/kcsapi/api_get_master/mapi... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkSocketCommunicator.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>#include "routing/edge_estimator.hpp"
#include "routing/routing_helpers.hpp"
#include "traffic/traffic_info.hpp"
#include "base/assert.hpp"
#include <algorithm>
#include <unordered_map>
using namespace routing;
using namespace std;
using namespace traffic;
namespace
{
enum class Purpose
{
Weight,... |
<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 the KDE libraries and the Kate part.
*
* Copyright (C) 2009 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
* Copyright (C) 2007 Sebastian Pipping <webmaster@hartwork.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the G... |
<commit_before>#include <array>
#include <iostream>
#include "GL/glew.h"
#include "RaZ/Math/Matrix.hpp"
#include "RaZ/Math/Vector.hpp"
#include "RaZ/Render/ShaderProgram.hpp"
namespace Raz {
ShaderProgram::ShaderProgram()
: m_index{ glCreateProgram() } {}
ShaderProgram::ShaderProgram(ShaderProgram&& program) noex... |
<commit_before>#include "generator.h"
#include <cassert>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include "dictionary.h"
#include "label.h"
static void compileCall(FILE* f, const char* wordName, bool tailCall, Dictionary* dictionary) {
fprintf(f, tailCall ? "\tjmp %s\n" : "\tjsr %s... |
<commit_before>// Copyright 2013 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/memory/scoped_ptr.h"
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/browser/wallet/encryption_e... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_BACKGROUND_BACKGROUND_MANAGER_HPP
#define RJ_GAME_BACKGROUND_BACKGROUND_MANAGER_HPP
#include "background_component.hpp"
#include "basic_background_component.hpp"
#include <rectojump/game/components/gr... |
<commit_before>// @(#)root/pgsql:$Name: $:$Id: TPgSQLServer.cxx,v 1.5 2002/04/02 15:44:15 rdm Exp $
// Author: g.p.ciceri <gp.ciceri@acm.org> 01/06/2001
/*************************************************************************
* Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *
* All rights r... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#include <errno.h>
#include <cassert>
#include <vector>
#include <string>
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <curl/curl.h>
#include "opkele/util.h"
#include "opkele/exception.h"
namespace opkele {
using namespace std;
namespace util {
/*
* base64
*/
string encode_... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* 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>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 required by app... |
<commit_before>#include "shape/compound.h"
#define rb_array_p(x) RB_TYPE_P(x, T_ARRAY)
VALUE sr_cCompound;
SR_SHAPE_GET(Compound, compound)
SR_SHAPE_CHECK(Compound, compound)
bool siren_compound_install()
{
SR_SHAPE_INIT(Compound)
rb_define_method(sr_cCompound, "initialize", RUBY_METHOD_FUNC(siren_compound_init... |
<commit_before>//#define CONSOLE_DEBUG
#include <iostream>
#include <thread>
#include <Windows.h>
#include "Core/Halite.h"
GLFWwindow * window;
void handleMouse(GLFWwindow * w, int button, int action, int mods);
void handleCursor(GLFWwindow * w, double x, double y);
void handleKeys(GLFWwindow * w, int button, int sc... |
<commit_before>//#include "vive_sensors_pipeline.h"
//#include "settings.h"
#include "application.h"
#include "pheatherstation.h"
#include "cactus_io_BME280_I2C.h"
#include <Wire.h>
#include <iostream>
#include <string>
#include <stdio.h>
class println;
const int LED_FLASH = D7; // Instead of writing D7 over and ... |
<commit_before>// -*- mode:c++;coding:utf-8; -*- vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:enc=utf-8:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of ch... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2012. All rights reserved
*/
#include "../StroikaPreComp.h"
#include <algorithm>
#include <cstdlib>
#include <sstream>
#include "../../Foundation/Characters/Format.h"
#include "../../Foundation/Containers/Common.h"
#include "../../F... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>#line 2 "quanta/core/object/io_text.cpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <quanta/core/config.hpp>
#include <togo/core/error/assert.hpp>
#include <togo/core/log/log.hpp>
#include <togo/core/memory/memory.hpp>
#include <togo/core/memory/temp_allocat... |
<commit_before>AliAnalysisTaskSEXicPlus2XiPiPifromAODtracks *AddTaskXicPlus2XiPiPifromAODtracksJ(TString finname="",
TString outputFileName="",
Bool_t theMCon=kFALSE,
Bool_t writeVariableTree=kTRUE,
Bool_t reconstructPrimVert=kFALSE,
Bool_t fillOnlySig = kFALSE,
... |
<commit_before>/*
* qca_securemessage.cpp - Qt Cryptographic Architecture
* Copyright (C) 2003-2005 Justin Karneges <justin@affinix.com>
* Copyright (C) 2004,2005 Brad Hards <bradh@frogmouth.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gene... |
<commit_before>#include "nametablemodel.h"
#include "guiutil.h"
#include "walletmodel.h"
#include "guiconstants.h"
#include "../headers.h"
#include "../namecoin.h"
#include "ui_interface.h"
#include <QTimer>
extern std::map<std::vector<unsigned char>, PreparedNameFirstUpdate> mapMyNameFirstUpdate;
// ExpiresIn col... |
<commit_before>#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *... |
<commit_before>/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "choices.hpp"
#include "feature.hpp"
#include "polymer.hpp"
#include "simulation.hpp"
#include "tracker.hpp"
namespace py = pybind11;
using namespace pybind11::literals;
PYBIND11_MODULE(pinetree, m) {
m.doc() = (R"doc(
Python modul... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Jan Kelling
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... |
<commit_before>class RegisterClassDetails
{
public:
private:
BitSet _members;
};
class RegisterClass
{
public:
private:
int _index;
};
class ConstantClassDetails
{
public:
bool matches(int c)
{
if (c < _minimum || c > _maximum)
return false;
return (c - _minimum) % _step ==... |
<commit_before>/*************************************************************************
*
* $RCSfile: callbacks.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2003-12-01 12:03:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** rtspvideocapturer.cpp
**
** ------------------... |
<commit_before>// Copyright (c) 2011-2013 Steinwurf ApS
// 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, th... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2022, LH_Mouse. All wrongs reserved.
#include "../precompiled.ipp"
#include "tcp_socket.hpp"
#include "../static/async_logger.hpp"
#include "../utils.hpp"
#include <sys/socket.h>
#include <netinet/tcp.h>
namespace poseidon {
TCP_Socket::
TCP_Socket(unique_... |
<commit_before>/** @file sortable-serialise.cc
* @brief Serialise floating point values to string which sort the same way.
*/
/* Copyright (C) 2007,2009,2015,2016 Olly Betts
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
<commit_before>// Copyright (c) 2021 The Orbit 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 "SessionSetup/TargetLabel.h"
#include <QAction>
#include <QDesktopServices>
#include <QImage>
#include <QMenu>
#include <QPalett... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.