text
stringlengths
54
60.6k
<commit_before>#include <tamer/tamer.hh> #include <sys/select.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> namespace tamer { namespace { class driver_tamer : public driver { public: driver_tamer(); ~driver_tamer(); virtual void at_fd(int fd, int action, const event<> &e); virtual voi...
<commit_before>/*! Starts to query the quorum, slowly shutting down all servers, restarting them, and verifying that a catch-up works. */ #include <boost/filesystem.hpp> #include <boost/thread/mutex.hpp> #include <paxos++/client.hpp> #include <paxos++/server.hpp> #include <paxos++/durable/sqlite.hpp> ...
<commit_before>#include <gmi_mesh.h> #include <apf.h> #include <apfMesh2.h> #include <apfMDS.h> #include <PCU.h> #include <parma.h> #include <cassert> namespace { const char* modelFile = 0; const char* meshFile = 0; void freeMesh(apf::Mesh* m) { m->destroyNative(); apf::destroyMesh(m); } void get...
<commit_before>#define WIN32_LEAN_AND_MEAN 1 #include <Windows.h> #include "glcorearb.h" #include "wglext.h" #include "GL_3_3.h" #include <common/Application.h> static Application* g_application = nullptr; static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lResult = 0; ...
<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 required by ap...
<commit_before>/* * Bayes++ the Bayesian Filtering Library * Copyright (c) 2002 Michael Stevens, Australian Centre for Field Robotics * See Bayes++.htm for copyright license details * * $Header$ */ /* * Example of using Bayesian Filter Class * Demonstrate the effect of observation decorrelation for linear mod...
<commit_before>// // kern_nvram.cpp // Lilu // // Copyright © 2017 vit9696. All rights reserved. // #include <Library/LegacyIOService.h> #include <IOKit/IONVRAM.h> #include <Headers/kern_config.hpp> #include <Headers/kern_compat.hpp> #include <Headers/kern_util.hpp> #include <Headers/kern_file.hpp> #include <Heade...
<commit_before>// $Id$ // // Copyright (C) 2004-2008 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #define NO_IM...
<commit_before>// Filename: extractor.cxx // Created by: mike (09Jan97) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>// Filename: config_pgraph.cxx // Created by: drose (21Feb02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Sof...
<commit_before>// ********************************************************************************** // OLED display management source file for remora project // ********************************************************************************** // Creative Commons Attrib Share-Alike License // You are free to use/exten...
<commit_before>// Copyright (c) 2017 The Brave 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 <utility> #include "brave/common/extensions/shared_memory_bindings.h" #include "base/memory/shared_memory.h" #include "base/pic...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: except.cxx,v $ * $Revision: 1.3 ...
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*- qgpgmebackend.cpp This file is part of libkleopatra, the KDE keymanagement library Copyright (c) 2004,2005 Klarlvdalens Datakonsult AB Libkleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU Genera...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ScatterChartType.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: vg $ $Date: 2007-05-22 18:51:50 $ * * The Contents of this file a...
<commit_before>#include <iostream> #include "bots.h" #include <boost/asio.hpp> #include <boost/thread/thread.hpp> #include <unistd.h> using boost::asio::ip::tcp; int next_dir(int d_x,int d_y) { int dir = rand()%9; switch (d_x) { case -1: if(d_y < 0) dir = 6; else if(d_y > 0) dir ...
<commit_before>/*! \file \brief <a href="http://om-language.org">Om</a> source file. \version 0.1.2 \date 2012-2013 \copyright Copyright (c) <a href="http://sparist.com">Sparist</a>. All rights reserved. This program and the accompanying materials are made available under the terms of the <a href="http://ww...
<commit_before>#include "News.h" #include "NewsFeedWidget.h" #include <QtWidgets> #include <QDebug> #include <QSettings> #include <iostream> #include <thread> /** Settings constructor * Initialize the news UI * \param p Inherited palette configuration for setting StyleSheets. * \param parent Pointer to parent widget....
<commit_before>/******************************* Copyright (C) 2013-2015 gregoire ANGERAND 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 3 of the License, or (at your option) any late...
<commit_before>// RUN: %llvmgxx %s -emit-llvm -S -o - && // RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'gnu.linkonce.' // PR1085 class __attribute__((visibility("default"))) QGenericArgument { public:inline QGenericArgument(const char *aName = 0, const void *aData = 0):_data(aData), _name(aName) { } private:co...
<commit_before>using namespace std; extern string S; extern long SA[]; /* * * */ struct interval_t { long query_index; long start, end; } /** * Returns left bound of interval. * Searches input string (S) for suffixes having "comparing_character" at "query_offset", * using suffix array (SA). */ long binary_search...
<commit_before>/// @file /// @copyright The code is licensed under the BSD License /// <http://opensource.org/licenses/BSD-2-Clause>, /// Copyright (c) 2012-2015 Alexandre Hamez. /// @author Alexandre Hamez #pragma once #include <algorithm> // find #include <initializer_list> #include <iostream...
<commit_before>#include "selfdrive/ui/ui.h" #include <cassert> #include <cmath> #include "common/transformations/orientation.hpp" #include "selfdrive/common/params.h" #include "selfdrive/common/swaglog.h" #include "selfdrive/common/util.h" #include "selfdrive/common/watchdog.h" #include "selfdrive/hardware/hw.h" #de...
<commit_before>// @(#)root/winnt:$Name: $:$Id: TWin32Application.cxx,v 1.6 2001/10/02 09:07:43 rdm Exp $ // Author: Valery Fine 10/01/96 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>#include <boost/test/unit_test.hpp> #include "lua_wrapper/lua_environment.hpp" #include <lauxlib.h> #include <boost/optional/optional_io.hpp> #include <silicium/source/memory_source.hpp> #include <silicium/source/single_source.hpp> BOOST_AUTO_TEST_CASE(lua_wrapper_create) { auto s = lua::create_lua(); ...
<commit_before>// // ASTVariables_CG.cpp // Emojicode // // Created by Theo Weidmann on 03/09/2017. // Copyright © 2017 Theo Weidmann. All rights reserved. // #include "ASTInitialization.hpp" #include "ASTMemory.hpp" #include "ASTVariables.hpp" #include "Generation/Declarator.hpp" #include "Generation/FunctionCode...
<commit_before>/* * Copyright 2011 Esrille 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>/* * pv_ca.cpp * * Created on: Apr 2, 2009 * Author: rasmussn */ #include <stdlib.h> #include <src/columns/HyPerCol.hpp> #include <src/io/LinearActivityProbe.hpp> #include <src/io/PointProbe.hpp> #include <src/layers/Retina.hpp> #include <src/layers/V1.hpp> #include <src/connections/HyPerCon...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // vanilla_convergence_table.cpp // ----------------------------- // // Outputs the rate of convergence for computing the price of a // European/American call/put. // // Author: Parsiad Azimzadeh ////////////////////////////...
<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 E_Rendering library. Copyright (C) 2009-2012 Benjamin Eikel <benjamin@eikel.org> Copyright (C) 2009-2012 Claudius Jähn <claudius@uni-paderborn.de> Copyright (C) 2009-2012 Ralf Petring <ralf@petring.net> This library is subject to the terms of the Mozilla Public License,...
<commit_before>#include "TFile.h" #include "TInterpreter.h" #include "TTree.h" #include "TTreeReader.h" #include "TTreeReaderValue.h" #include "TTreeReaderArray.h" #include "gtest/gtest.h" #include "data.h" #include <fstream> TEST(TTreeReaderLeafs, LeafListCaseA) { // From "Case A" of the TTree class doc: con...
<commit_before>#include "src/camera.h" #include "src/math.h" #include "src/timer.h" #include "src/triangle.h" #include "src/utils.h" #include "3rdparty/mdl/mdl.h" enum MDLDrawModeType { HALF_WIREFRAME, // textured screen on one half, wireframe on second half FULLSCREEN, // fullscreen model MDLDRAWMODE...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v...
<commit_before>#include "Collider.h" // Collider void Collider::Init(void) { radius = 0.0f; centroid = vector3(0.0f); min = vector3(0.0f); max = vector3(0.0f); } void Collider::Swap(Collider& other) { std::swap(radius, other.radius); std::swap(transform, other.transform); std::swap(centroid, other.centroid); ...
<commit_before>#include "IO.h" #include "utils/constants.h" #include "robot.h" #include <cassert> IO::IO() { r_stick.reset(new Joystick(Constants::RIGHT_JOYSTICK)); l_stick.reset(new Joystick(Constants::LEFT_JOYSTICK)); } void IO::Run() { const float left_power {l_stick->GetY()}; const float right_power {r_stick-...
<commit_before><commit_msg>added boolean spec test<commit_after><|endoftext|>
<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>// world.hpp // world object // Copyright 2015 Matthew Chandler // 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 right...
<commit_before>#include "CatStopCalculations.h" #include "../RobotMap.h" #include "Misc/cSpline.h" #include <fstream> CatStopCalculations* CatStopCalculations::m_pInstance = NULL; CatStopCalculations* CatStopCalculations::GetInstance() { if(!m_pInstance) m_pInstance = new CatStopCalculations; return m_pInstance; }...
<commit_before>/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlmetai.cxx,v $ * * $Revision: 1.30 $ * * last change: $Author: obo $ $Date: 2008-02-26 13:38:09 $ * * The Contents of this file are mad...
<commit_before>/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCObject.cpp // @Author : LvSheng.Huang // @Date : 2012-03-01 // @Module : NFCObject // // ---------------------------------------------------...
<commit_before>#include "NFComm/NFPluginModule/NFPlatform.h" #if NF_PLATFORM == NF_PLATFORM_WIN #include <winsock2.h> #include <ws2tcpip.h> #include <windows.h> #include <io.h> #include <fcntl.h> #else #include <sys/stat.h> #include <sys/socket.h> #include <signal.h> #include <fcntl.h> #include <unistd.h> #include <di...
<commit_before>/**************************************************************************** ** ncs is the backend's server of nodecast ** Copyright (C) 2010-2012 Frédéric Logier <frederic@logier.org> ** ** https://github.com/nodecast/ncs ** ** This program is free software: you can redistribute it and/or modi...
<commit_before>/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
<commit_before>// @(#)root/tree:$Name: $:$Id: TChainIndex.cxx,v 1.1 2005/06/24 20:25:11 pcanal Exp $ // Author: Marek Biskup 07/06/2005 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>#include <atlbase.h> #include <map> #include "base/logging.h" #include "base/string_util.h" #include "setup_strings.h" namespace { // Gets the language from the OS. If we're unable to get the system language, // defaults to en-us. std::wstring GetSystemLanguage() { static std::wstring language; ...
<commit_before>#include "mainboard.h" #include "ui_mainboard.h" #include <QTextStream> #include <QLabel> #include <QString> #include <QPushButton> #include <QIcon> #include <QSize> #include <QObject> #include <QSignalMapper> #include "chesslogic.h"; #include "QDebug"; MainBoard::MainBoard(QWidget *parent) : QMainW...
<commit_before>/* This is a library for the SW01 DIGITAL HUMIDITY, PRESSURE AND TEMPERATURE SENSOR The board uses I2C for communication. The board communicates with the following I2C device: - BME280 Data Sheets: BME280 - https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pd...
<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 "chrome/test/chromedriver/net/websocket.h" #include "base/base64.h" #include "base/bind.h" #include "base/bind_helpers.h" #in...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2002 * Copyright by ESO (in the framework of the ALMA collaboration) * and Cosylab 2002, All rights reserved * * This library is fre...
<commit_before>/* OpenSceneGraph example, osgshaders2 * * 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 rights * to use, copy, modify...
<commit_before>#include <iostream> using namespace std; int main(int argc, char* argv[]) { char *dirName = "." return 0; } <commit_msg>Added a bunch of stuff, need to fix source path, add directory prefix for files in directories that aren't the current one<commit_after>#include <sys/types.h> #include <sys/s...
<commit_before>#pragma once #include <memory> #include <vector> #include "geometry/named_quantities.hpp" #include "physics/n_body_system.hpp" #include "quantities/quantities.hpp" namespace principia { namespace testing_utilities { // A reference frame with a basis. // The frame is the International Celestial Refer...
<commit_before>#ifdef STAN_OPENCL #include <stan/math/opencl/rev.hpp> #include <stan/math.hpp> #include <gtest/gtest.h> #include <test/unit/math/opencl/util.hpp> #include <vector> auto student_t_lpdf_functor = [](const auto& y, const auto& nu, const auto& mu, const auto& sigma) { return stan::math::student...
<commit_before>#include <iostream> using namespace std; int main(){ cout << "hello" << endl; return 0; } <commit_msg>started ls.cpp with checking args<commit_after>#include <iostream> #include <vector> #include <string> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> using namespace std; in...
<commit_before>/** * @file DsNodeTest.cpp * @brief DsNode class tester. * @author zer0 * @date 2018-11-01 */ #include <gtest/gtest.h> #include <tester/DemoAsset.hpp> #include <libtbag/network/distribution/DsNode.hpp> #include <libtbag/log/Log.hpp> using namespace libtbag; using namespace libtbag::network; u...
<commit_before>#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <deque> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <dirent.h> #include <algorithm> #include <pwd.h> #include <grp.h> #include <time.h> #include <iomanip> using namespace std; //Globaliz...
<commit_before>#include <iostream> #include <sys/types.h> #include <dirent.h> #include <errno.h> #include <vector> #include <string> using namespace std; int main(int argc, char** argv) { bool aFlag = false; bool lFlag = false; bool RFlag = false; vector<string> fileParam; // Loops through arguments looking ...
<commit_before>#include <QApplication> #include <QDebug> #include <QMessageBox> #include <QString> #include <QSqlError> #include "Controllers/MainWindow.hpp" #include "Logics/Config.hpp" #include "App.hpp" #include "appinfo.hpp" #include "version.hpp" int main(int argc, char *argv[]) { QCoreApplication::setOrganiz...
<commit_before>#include <iostream> #include <string> #include <Windows.h> #include "kybrdCtrl.h" #include "WearableDevice.h" #include <vector> #include <thread> using namespace std; #define KEYBOARD_CONTROL_TEST #ifdef TEST_WEARABLE_DEVICE class TestWearableClass : public WearableDevice { public: TestWearableCl...
<commit_before>#include "xchainer/cuda/cuda_device.h" #include <cassert> #include <cstdint> #include <memory> #include <cudnn.h> #include "xchainer/array.h" #include "xchainer/axes.h" #include "xchainer/backend_util.h" #include "xchainer/cuda/cudnn.h" #include "xchainer/device.h" #include "xchainer/dtype.h" #include...
<commit_before>#include <eos/chain_api_plugin/chain_api_plugin.hpp> #include <eos/chain/exceptions.hpp> #include <fc/io/json.hpp> namespace eos { using namespace eos; class chain_api_plugin_impl { public: chain_api_plugin_impl(database& db) : db(db) {} database& db; }; chain_api_plugin::chain_api_plu...
<commit_before>/*========================================================================== Library: CTK Copyright (c) University of Sheffield 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 Licens...
<commit_before>/*========================================================================= Program: Monteverdi2 Language: C++ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See Copyright.txt for details. Monteverdi2 is distributed under the CeCILL licence version 2. See Licenc...
<commit_before>/*========================================================================= Library: CTK 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>// 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/extensions/extension_install_ui.h" #include <map> #include "app/l10n_util.h" #include "app/resource_bundle.h...
<commit_before>// @(#)root/eve:$Id$ // Author: Matevz Tadel // Shows geometry of ALICE ITS. void geom_alice_its() { TEveManager::Create(); gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/alice.root"); TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ITSV_1"); TEveGeoTopNode* its = new ...
<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/dom_ui/autofill_options_handler.h" #include <vector> #include "app/l10n_util.h" #include "base/logging.h" #i...
<commit_before>/************************************************************************ filename: CEGUIGUILayout_xmlHandler.cpp created: 5/7/2004 author: Paul D Turner purpose: Implements XML parser for GUILayout files *************************************************************************/ /****************...
<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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: optiongrouplayouter.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: ihi $ $Date: 2008-01-14 14:43:51 $ * * The Contents of this f...
<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 "chrome/browser/prerender/prerender_field_trial.h" #include "base/command_line.h" #include "base/logging.h" #include "base/me...
<commit_before>///////////////////////////////////////////////////////////////////////////// // // // AliFemtoKTPairCutThird - a pair cut which selects pairs based on their // // transverse momentum kT ...
<commit_before>#include <stdlib.h> #include <sys/socket.h> #include <string.h> #include <netinet/in.h> #include <cstring> #include <stdio.h> #include <string> #include "server.h" #include "duckchat.h" std::string user; void Error(const char *msg) { perror(msg); exit(1); } void ProcessRequest(void *buffer) { ...
<commit_before>/* Copyright (C) 2009-2011 qiuu Copyright (C) 2016 Clownacy 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 License, or (at you...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resourcemanager.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: obo $ $Date: 2006-09-16 14:35:59 $ * * The Contents of this file ...
<commit_before>#include "download-query-group-test.h" #include <QtTest> #include "downloader/download-query-group.h" #include "models/profile.h" #include "models/site.h" #include "models/source.h" void DownloadQueryGroupTest::testCompare() { DownloadQueryGroup a(QStringList() << "tags", 1, 2, 3, QStringList() << "po...
<commit_before><commit_msg>Updated comments.<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/translate/languages_menu_model2.h" #include "base/histogram.h" #include "chrome/browser/translate/translate_i...
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/autowiring.h> #include <autowiring/ManualThreadPool.h> #include <autowiring/NullPool.h> #include <autowiring/SystemThreadPoolStl.h> #include FUTURE_HEADER class ThreadPoolTest: public testing::Te...
<commit_before> // low level tlc5940 class for atmega microcontrollers #include "TLC5940.h" //#include "arduino.h" // DDR from PORT macro #define DDR(port) (*(&port-1)) // give the variables some default values TLC5940::TLC5940(void) { // initialize variables at all leds off for safety and dot correction to full b...
<commit_before>AliAnalysisTask *AddTaskJSPCMaster10h(TString taskName = "JSPCMaster10h", double ptMin = 0.5, Bool_t removebadarea = kFALSE, Bool_t saveCatalystQA = kFALSE) { AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); //-------- JFlucWagons ------- const int Nsets = 1; // number of confi...
<commit_before>#include <stdlib.h> #include <sys/socket.h> #include <string.h> #include <netinet/in.h> #include <cstring> #include <stdio.h> #include <string> #include <iostream> #include <list> #include <map> #include <set> #include "server.h" #include "duckchat.h" // Server can accept connections. // Server handle...
<commit_before>#include "UnitTest_Utilities.h" #include "lib3mf_implicit.hpp" #include <vector> #include <openssl/evp.h> #include <openssl/pem.h> namespace Lib3MF { using Byte = uint8_t; using ByteVector = std::vector<uint8_t>; using PEVP_ENCODE_CTX = std::unique_ptr<EVP_ENCODE_CTX, decltype(&::EVP_ENCODE_CTX_f...
<commit_before>/*! @file api.cc * @brief Speech Feature Extraction interface implementation. * @author Markovtsev Vadim <v.markovtsev@samsung.com> * @version 1.0 * * @section Notes * This code partially conforms to <a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml">Google C++ Style Guid...
<commit_before> #include "plDevs.h" #ifdef PLD_wxwidgets /* plplot headers */ #include "plplotP.h" /* os specific headers */ #ifdef __WIN32__ #include <windows.h> #endif /* wxwidgets headers */ #include "wx/wx.h" #include "wx/except.h" #include "wx/image.h" #include "wx/filedlg.h" #include "wx/display.h" #include...
<commit_before>// Copyright (c) 2017 Emilian Cioca namespace Jwl { template<class Node> Hierarchy<Node>& Hierarchy<Node>::operator=(const Hierarchy& other) { if (auto lock = other.parent.lock()) { lock->AddChild(GetPtr()); } else { parent.reset(); } children.clear(); return *this; } templa...
<commit_before><commit_msg>src/GSvar/DiseaseCourseWidget.cpp: Bugfix support new umiVar2 output VCFs<commit_after><|endoftext|>
<commit_before>// // Calculate the multiplicity in the forward regions event-by-event // // Inputs: // - AliESDEvent // - Kinematics // - Track references // // Outputs: // - AliAODForwardMult // // Histograms // // Corrections used // #include "AliForwardMCMultiplicityTask.h" #include "AliTrigger...
<commit_before>// for leak detection #define _CRTDBG_MAP_ALLOC #define GLM_FORCE_INLINE #define GLM_FORCE_SSE2 #define GLM_FORCE_AVX #include <stdlib.h> #include <crtdbg.h> #include <stdlib.h> #include <Core/Engine.hh> #include <Utils/PubSub.hpp> #include <Context/SdlContext.hh> #include <Core/SceneManager.hh> #in...
<commit_before>// For compilers that supports precompilation , includes wx/wx.h #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wx.h" #include "iaxclient.h" /* for the silly key state stuff :( */ #ifdef __WXGTK__ #include <gdk/gdk.h> #endif #ifdef __WXMAC__ #include <Carb...
<commit_before>/* * Copyright (c) 2016 Zubax, zubax.com * Distributed under the MIT License, available in the file LICENSE. * Author: Pavel Kirienko <pavel.kirienko@zubax.com> */ #pragma once #include <zubax_chibios/os.hpp> #include <zubax_chibios/util/helpers.hpp> #include <cstdint> #include <utility> #include <...
<commit_before>/* * Copyright (c) 2014 Zubax, zubax.com * Distributed under the MIT License, available in the file LICENSE. * Author: Pavel Kirienko <pavel.kirienko@zubax.com> */ #include <ch.hpp> #include <cstdlib> #include <sys/types.h> #include "sys.h" void* operator new(size_t sz) { return chCoreAlloc(sz)...
<commit_before>/** * @brief Test cases for sequential scan node. * * Copyright(c) 2015, CMU */ #include <memory> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "backend/common/types.h" #include "backend/executor/logical_tile.h" #include "backend/executor/logical_tile_factory.h" #include "backend/exec...
<commit_before>/*************************************************************************/ /* editor_run.cpp */ /*************************************************************************/ /* This file is part of: */ /...