text
stringlengths
54
60.6k
<commit_before>/* * Copyright 2011 Matthias Fuchs * * 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 "resource_manager.h" #include <boost/lexical_cast.hpp> #include <gtest/gtest.h> #include <cstdio> using namespace baidu::shuttle; std::string hdfs_path = "hdfs://0.0.0.0:0/users/"; int sum_of_items = 0; TEST(ResManTest, SetInputFilesTest) { ResourceManager resman; std::vector<std::st...
<commit_before>// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #include <NDK/Entity.hpp> #include <NDK/BaseComponent.hpp> #include <NDK/World.hpp> namespace Ndk { /*! * \ingroup NDK * \cl...
<commit_before> // Copyright (c) 2015 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. All c...
<commit_before>#include "qaesencryption.h" #include <QDebug> #define Multiply(x, y) \ ( ((y & 1) * x) ^ \ ((y>>1 & 1) * xTime(x)) ^ \ ((y>>2 & 1) * xTime(xTime(x))) ^ \ ((y>>3 & 1) * xTime(xTime(xT...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>#include "library/sp.h" #include "forms/textedit.h" #include "framework/framework.h" #include <allegro5/keycodes.h> #include <allegro5/allegro.h> namespace OpenApoc { TextEdit::TextEdit(Framework &fw, Control *Owner, UString Text, sp<BitmapFont> font) : Control(fw, Owner), caretDraw(false), caret...
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: accessibletableprovider.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2007-06-27 14:41:04 $ * * The Contents of this...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2018 IncludeOS AS, Oslo, Norway // // 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>/*************************************************************************** * Copyright (C) 2014 by Marcin Ziemiński <zieminn@gmail.com> * * * * This program is free software; you can redistribute it and/or modify ...
<commit_before>/************************************************************************* * * $RCSfile: objectformattertxtfrm.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2004-09-09 10:58:18 $ * * The Contents of this file are made available subject to the terms of * either of the f...
<commit_before>// Time: O(1) // Space: O(1) class Solution { public: /** *@param n: Given a decimal number that is passed in as a string *@return: A string */ string binaryRepresentation(string n) { int int_part = atoi(n.substr(0, n.find('.')).c_str()); double dec_part = atof(n....
<commit_before>// Time: O(logn), n is the max of (x, y) // Space: O(1) class Solution { public: bool canMeasureWater(int x, int y, int z) { return z == 0 || (z <= x + y && z % gcd(x, y) == 0); } private: int gcd(int a, int b) { while (b != 0) { int tmp = b; b =...
<commit_before>//! \file //! \brief Function to Enter a Real Number // %SBTTL "ENTR_3NUMBER" // %IDENT "V3.6a Calico" // // Source: ../../CMC030/cmcfun/source/entr_3number.bas // Translated from Basic to C++ using btran // on Tuesday, January 09, 2018 at 12:49:27 // #include <cstdlib> #include <cstring> #include <unis...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before> //////////////////////////////////////////////////////////////////////////////////////////////////// // // AliGenAfterBurnerFlow is a After Burner event generator applying flow. // The generator changes Phi coordinate of the particle momentum. // Flow (directed and elliptical) can be defined on particl...
<commit_before>#include "loss_classnll.h" #include <cassert> namespace ncv { ///////////////////////////////////////////////////////////////////////////////////////// classnll_loss_t::classnll_loss_t() : loss_t(string_t(), "class negative log-likelihood loss") { }...
<commit_before>// // Brute force computation of Bessel functions. Might be better to create a // filter (or source) object. Might also consider vtkSampleFunction. #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkPlaneSource.h" #include "vtkTransform.h" #include ...
<commit_before>// @(#) $Id$ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * ALICE Experiment at CERN, All rights reserved. * * ...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#include "const.h" #include "hw2_lib.h" int main(int argc, char **argv) { sqlite3 *db; struct sockaddr_in seraddr, cliaddr; if (argc < 2) { logging("Usage: ./HW2_101062124_Ser [port]"); return 1; } int sockfd = create_udp_server(seraddr, std::atoi(argv[1])); exec...
<commit_before> #include "../SocketCanPump.hpp" #include "../HuboDescription.hpp" #include "HuboState/State.hpp" #include "HuboCmd/Aggregator.hpp" using namespace HuboCan; int main(int argc, char* argv[]) { SocketCanPump can(200, 1e6, 2); HuboDescription desc; desc.parseFile("../HuboCan/misc/DrcHubo.dd")...
<commit_before>#include "vtkRegressionTestImage.h" #include "vtkImageViewer2.h" #include "vtkPushImageReader.h" #include "vtkPushImageFilterSample.h" #include "vtkPushPipeline.h" #include "vtkCommand.h" class PTCallback : public vtkCommand { public: static PTCallback *New() { return new PTCallback;} static int cou...
<commit_before>#ifndef SOLAIRE_STRING_HPP #define SOLAIRE_STRING_HPP //Copyright 2015 Adam Smith // //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/LICE...
<commit_before>#ifndef SOFTRP_FVECTOR_IMPL_INL_ #define SOFTRP_FVECTOR_IMPL_INL_ #include "FVector.h" #include <stdexcept> namespace SoftRP { #ifdef SOFTRP_FMATH_SIMD inline float getXFV(FVector v) { return v.m128_f32[0]; /*return static_cast<float>(_mm_extract_ps(v, 0));*/ } inline float getYFV(FVector v) {...
<commit_before>/* * custommaterials.cpp * StatusSpec project * * Copyright (c) 2014 thesupremecommander * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #include "custommaterials.h" CustomMaterials::CustomMaterials() { materialConfig = new KeyValues("materials"); materialConfig...
<commit_before>/* * filter_qtext.cpp -- text overlay filter * Copyright (c) 2018-2020 Meltytech, LLC * * 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 the L...
<commit_before>// Copyright (c) 2013-2016 mogemimi. Distributed under the MIT license. #include <Pomdog/Math/BoundingFrustum.hpp> #include <Pomdog/Math/BoundingBox.hpp> #include <Pomdog/Math/BoundingSphere.hpp> #include <Pomdog/Math/ContainmentType.hpp> #include <Pomdog/Math/Matrix4x4.hpp> #include <Pomdog/Math/Plane....
<commit_before>/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id$ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP), 2008 onwards Date : $Date$ Version : $Revis...
<commit_before>#include "pch.h" #include "Frame.h" #include "Core/DepthImage.h" using namespace KinectVisionLib; using namespace Microsoft::Graphics::Canvas; using namespace Platform; Frame::Frame() { } Frame::Frame(std::shared_ptr<const KinectVisionLib::Core::ImageBase> image) { this->image = imag...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: LayoutContainer.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-09-17 13:13:05 $ * * The Contents of this file a...
<commit_before>// Copyright (c) 2009 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 "chrome/browser/chromeos/boot_times_loader.h" #include <vector> #include "base/command_line.h" #include "base/file_path.h" #...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #include "config.h" #ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS # define DUNE_...
<commit_before>/* * Copyright 2013 Daniel Vrátil <dvratil@redhat.com> * * 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 License or (at your option) version 3 or ...
<commit_before><commit_msg>Tweak the padding around toolstrips on the extension shelf.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2010 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 "chrome/browser/notifications/balloon_host.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/extensions/ex...
<commit_before>// Copyright (c) 2010 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 "app/surface/transport_dib.h" #include "base/basictypes.h" #include "base/file_path.h" #include "base/file_util.h" #include "b...
<commit_before>#include "TextField.hpp" #include "containers/BlackHoleContainer.hpp" #include "../App.hpp" using namespace morda; TextField::TextField(const stob::Node* chain) : Widget(chain), ti(ting::New<TextInput>(chain)) { this->SetNinePatch(morda::App::Inst().resMan.Load<ResNinePatch>("morda_npt_textfi...
<commit_before><commit_msg>Convert to std::wstring as late as possible.<commit_after><|endoftext|>
<commit_before>/* * despot1hifi.cpp * * Created by Tobias Wood on 17/10/2011. * Copyright (c) 2011-2013 Tobias Wood. * * Based on code by Sean Deoni * * 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 ...
<commit_before>#ifndef MATH_HPP #define MATH_HPP #include <algorithm> #include <cmath> #include <math.h> /// PI value #define PI 3.14159265358979323846f /// TAU value (2 * PI) #define TAU 6.28318530717958647692f /// @brief KAPPA90 = (4/3 * (sqrt(2) - 1)) /// @see https://de.wikipedia.org/wiki/Datei:Circle-cbezier-met...
<commit_before>#pragma once #include "stdafx.h" #define SafeDelete(x) {if((x) != nullptr) { delete (x); } x = nullptr; } #define SafeDeleteArray(x) {if((x) != nullptr) { delete[] (x); } x = nullptr; } #define SafeReleaseClMemObject(x) {if((x) != MUtil::CL::INVALID_OBJECT) { clReleaseMemObject(x); x = MUtil::CL::INVAL...
<commit_before>/** * message.cpp * * Created on: 11 окт. 2015 г. * Author: zmij */ #include <pushkin/l10n/message.hpp> #include <pushkin/l10n/message_io.hpp> #include <pushkin/l10n/message_util.hpp> #include <boost/lexical_cast.hpp> #include <boost/variant/apply_visitor.hpp> #include <boost/variant/static_...
<commit_before>/* * Copyright (c) 2017, 2020 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implem...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXQt - The Lightweight Desktop Environment * https://lxqt.org * * Copyright: 2010-2011 Razor team * Authors: * Petr Vanek <petr@scribus.info> * * This program or library is free software; you can redistribute it * and/or modify it under the te...
<commit_before>#ifndef GENERIC_FORWARDER_HPP # define GENERIC_FORWARDER_HPP # pragma once #include <cassert> // ::std::size_t #include <cstddef> #include <type_traits> #include <utility> namespace generic { namespace detail { namespace forwarder { template <typename ...A> struct argument_types { }; template <t...
<commit_before>#ifndef GENERIC_FORWARDER_HPP # define GENERIC_FORWARDER_HPP # pragma once #include <cassert> // ::std::size_t #include <cstddef> #include <functional> #include <type_traits> #include <utility> namespace generic { namespace detail { namespace forwarder { template <typename ...A> struct argument_...
<commit_before>#include "masternodemanager.h" #include "ui_masternodemanager.h" #include "addeditadrenalinenode.h" #include "adrenalinenodeconfigdialog.h" #include "sync.h" #include "clientmodel.h" #include "walletmodel.h" #include "activemasternode.h" #include "masternodeconfig.h" #include "masternode.h" #include "wa...
<commit_before>#include "masternodemanager.h" #include "ui_masternodemanager.h" #include "addeditadrenalinenode.h" #include "adrenalinenodeconfigdialog.h" #include "sync.h" #include "clientmodel.h" #include "walletmodel.h" #include "activemasternode.h" #include "masternodeconfig.h" #include "masternode.h" #include "wa...
<commit_before>#include "disassembler.h" #include <ostream> #include <stdlib.h> #include <string> #include "bytecode.h" #include "number.h" #include "opcode.h" class Disassembler { public: Disassembler(std::ostream &out, const Bytecode::bytecode &obj); void disassemble(); private: std::ostream &out; ...
<commit_before>#include "envoy/config/accesslog/v2/als.pb.h" #include "envoy/service/accesslog/v2/als.pb.h" #include "common/buffer/zero_copy_input_stream_impl.h" #include "common/common/version.h" #include "common/grpc/codec.h" #include "common/grpc/common.h" #include "test/common/grpc/grpc_client_integration.h" #in...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>// Copyright (c) 2010 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 "chrome/renderer/geolocation_dispatcher.h" #include "chrome/renderer/render_view.h" #include "ipc/ipc_message.h" #include "th...
<commit_before>// This file is part of the AliceVision project and is made available under // the terms of the MPL2 license (see the COPYING.md file). #include <aliceVision/feature/imageDescriberCommon.hpp> #include <aliceVision/sfm/sfm.hpp> #include <aliceVision/sfm/pipeline/regionsIO.hpp> #include <aliceVision/syste...
<commit_before>// // MFP68901.cpp // Clock Signal // // Created by Thomas Harte on 06/10/2019. // Copyright © 2019 Thomas Harte. All rights reserved. // #include "MFP68901.hpp" #define LOG_PREFIX "[MFP] " #include "../../Outputs/Log.hpp" using namespace Motorola::MFP68901; uint8_t MFP68901::read(int address) { ...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include "QDebug" #include <QTimer> #include <cmath> #include <collisionoutput.h> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ui->displaywidget->installEventFilter(this); ...
<commit_before>// -------------------------------------------------------------------------------------------------- // Copyright (c) 2016 Microsoft Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and // associated documentation files (the "Software")...
<commit_before>#include "world.h" World::World() {} World::~World() {}<commit_msg>Added two generic rooms<commit_after>#include "world.h" #include "room.h" World::World() { Room sleeping_quarters("Sleeping quarters","It's kinda dark, and everyone is sleeping. I should not wake anyone..."); Room main_deck("Main de...
<commit_before><commit_msg>update<commit_after><|endoftext|>
<commit_before>#include <fstream> #include <iostream> #include <omp.h> #include <time.h> #include "MLP.h" void Read_MNIST(string training_set_images, string training_set_labels, string test_set_images, string test_set_labels, int number_training, int number_test, double **input, double **target_output) { ifstream fi...
<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_TEST_SPACES_CG #define DUNE_GDT_TEST_SPACES_CG #include <boost/numeric...
<commit_before>/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2012] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * i...
<commit_before>/* * Copyright (C) 2014-2015 Pavel Dolgov * * See the LICENSE file for terms of use. */ #ifndef MAINWINDOW_HPP #define MAINWINDOW_HPP #include "GuiGame.hpp" #include <QMainWindow> enum GameType { WIN_MODE, TIME_MODE, SCORE_MODE }; namespace Ui { class MainWindow; } class MainWindow :...
<commit_before>/** * @author Parikshit Ram (pram@cc.gatech.edu) * @file nbc_main.cpp * * This program runs the Simple Naive Bayes Classifier. * * This classifier does parametric naive bayes classification assuming that the * features are sampled from a Gaussian distribution. * * PARAMETERS TO BE INPUT: * * -...
<commit_before>// $Id$ // Category: global // // See the class description in the header file. #include "TG4NameMap.h" #include "TG4Globals.h" #include "g4std/iomanip" #include "globals.hh" G4String TG4NameMap::fgUndefined = "Undefined"; typedef G4std::map<G4String, G4String, G4std::less<G4String> > :: iterator M...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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 "RcSwitchDispatch.hpp" #include "../../externals/ConciseArgs.hpp" RcSwitchDispatch::RcSwitchDispatch(lcm::LCM *lcm, std::string rc_trajectory_commands_channel, std::string stereo_channel, std::string state_machine_go_autonomous_channel, std::string stereo_control_channel, std::string arm_for_ta...
<commit_before>/** @file @brief Implementation @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 ...
<commit_before>/** @file @brief Implementation @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 ...
<commit_before>#include <errno.h> #include <fstream> #include <iostream> #include <memory> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "confparse.h" char default_conf[] = "#\r\n\ # OpenFlex Board View configuration file (inflex-ui)\r\n\ #\r\n\ windowX=1280\r\n\ windowY=900\r\n\ #fontPath=F...
<commit_before>#include "imagesrepository.h" namespace Uptane { void ImagesRepository::resetMeta() { resetRoot(); targets.reset(); snapshot = Snapshot(); timestamp = TimestampMeta(); } bool ImagesRepository::verifyTimestamp(const std::string& timestamp_raw) { try { // Verify the signature: timestam...
<commit_before>// Filename: milesAudioSound.cxx // Created by: skyler (June 6, 2001) // Prior system by: cary // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to...
<commit_before>#include "game.hpp" ////////// // Code // struct PlayerRender : public clibgame::Component { clibgame::Texture* texture; clibgame::Shader* shader; GLuint vao, vbo, ebo; PlayerRender() { texture = nullptr; shader = nullptr; vao = 0; vbo = 0; ebo =...
<commit_before>#include "Inline/BasicTypes.h" #include "Inline/Floats.h" #include "WAST.h" #include "Lexer.h" #include "Parse.h" #include <climits> #include <cerrno> // Include the David Gay's dtoa code. namespace DavidGay { #define IEEE_8087 #define NO_HEX_FP #define NO_INFNAN_CHECK #define strtod parseDecimalF6...
<commit_before>#include "base.hpp" #include "bridge.h" #include "CommonData.hpp" #include "DeviceFilter.hpp" namespace org_pqrs_KeyRemap4MacBook { namespace RemapFilter { DeviceFilter::DeviceFilter(unsigned int t) : type_(t) { targets_ = new Vector_DeviceFilterValue(); } DeviceFilter::~DeviceF...
<commit_before>/* * Bosch C_CAN controller API. * * Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com> */ #pragma once #include <cstdint> #include <cstddef> namespace uavcan_lpc11c24 { namespace c_can { struct MsgIfaceType { std::uint32_t CMDREQ; union { std::uint32_t W; s...
<commit_before>//===- RustWrapper.cpp - Rust wrapper for core functions --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Project specific #include <Game.hpp> #include <Utility/DynamicLoader/Include/DynamicLoader.hpp> /// Engine // Core #include <DoremiEngine/Core/Include/DoremiEngine.hpp> #include <DoremiEngine/Core/Include/Subsystem/EngineModuleEnum.hpp> #include <DoremiEngine/Core/Include/SharedContext.hpp> // Physics...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlHelper.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2006-06-20 02:51:12 $ * * The Contents of this file are made...
<commit_before>// Copyright 2015 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. #include "bindings/global_callbacks.h" #include "bindings/global_scope.h" #include "bindings/pawn_invoke.h" #include "bindings/...
<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/at_exit.h" #include "base/command_line.h" #include "base/message_loop.h" #include "testing/gmock/include/gmock/gmock.h" ...
<commit_before>//===--- PathDiagnostic.cpp - Path-Specific Diagnostic Handling -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <ros/ros.h> #include <sensor_msgs/Joy.h> #include <aidu_ps3/base_teleop.h> #include <geometry_msgs/Twist.h> #include <math.h> using namespace aidu; ps3::TeleopBase::TeleopBase(): core::Node::Node() { //Subscribers and Publishers basepublisher = nh->advertise<geometry_msgs::Twist>("/b...
<commit_before>/* * Copyright (C) 2014 Pelagicore AB * All rights reserved. */ #include "systemcallinterface.h" SystemcallInterface::SystemcallInterface() { } SystemcallInterface::~SystemcallInterface() { } bool SystemcallInterface::makeCall(const std::string &cmd) { bool success = (system(cmd.c_str()) =...
<commit_before>/* * Copyright (C) 2008-2013 The Communi Project * * 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 License, or * (at your option) any later version. * * Th...
<commit_before>#include "RFC_6455.h" RFC_6455::RFC_6455 ( ) { } RFC_6455::~RFC_6455 ( ) { } int RFC_6455::handshake (const std::string input, WSAttributes * response) { /*Create Server Response*/ std::string GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; std::string handshake = "HTTP/1.1 101 Switching...
<commit_before>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2010 Emmanuel Benazera, juban@free.fr * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include <v8.h> #include <node.h> #include <vector> using v8::Function; using v8::FunctionCallbackInfo; using v8::Handle; using v8::HandleScope; using v8::Integer; using v8::Isolate; using v8::Local; using v8::Object; using v8::Persistent; using v8::PersistentHandleVisitor; using v8::Uint32; using v8::V...
<commit_before>// @(#)root/rint:$Name: $:$Id: TRint.cxx,v 1.43 2005/01/13 20:04:48 brun Exp $ // Author: Rene Brun 17/02/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the V4VM module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage...
<commit_before>//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------...
<commit_before>// Test CSR setters/getters // // Original author: Colm Ryan // Copyright 2016 Raytheon BBN Technologies #include <string> using std::string; #include "catch.hpp" #include "libaps2.h" #include "constants.h" #include "APS2Connector.h" extern string ip_addr; //ip address from run_tests TEST_CASE("CSR"...
<commit_before>#include "server/configuration.h" #include "common/iniparser.h" #include "common/macros.h" #include "common/stringutils.h" #include <fstream> #include <algorithm> using namespace Batyr; /** * characters to trim from config values */ static const char trimChars[] = "'\"\r\n\t "; Configuration::Co...
<commit_before>/*! * Copyright (c) 2018 by Contributors * \file relay/backend/compile_engine.cc * \brief Internal compialtion engine. */ #include <tvm/schedule.h> #include <tvm/packed_func_ext.h> #include <tvm/operation.h> #include <tvm/runtime/registry.h> #include <tvm/relay/attrs/device_copy.h> #include <tvm/rel...
<commit_before>/* This file is part of the KDE project Copyright (C) 1999, 2000 Rik Hemsley <rik@kde.org> (C) 1999, 2000 Wilco Greven <j.w.greven@student.utwente.nl> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public Licen...
<commit_before>#define BZ_BUILD_OS "Macintosh" #define INNAME "Info.plist" #define TEMPNAME "New.XXXXXX.plist" #include <sys/types.h> #include <fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include "version.h" int fd=-1; char *inbuffer = NULL; char *o...
<commit_before>#include "iostream.h" void MUONtestrawclust (Int_t evNumber1=0,Int_t evNumber2=0, Int_t ich1=0, Int_t ich2=0) { ///////////////////////////////////////////////////////////////////////// // This macro is a small example of a ROOT macro // illustrating how to read the output of GALICE // and do som...