text
stringlengths
54
60.6k
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "mcrouter/lib/WeightedChHashFuncBase.h" #include <glog/logging.h> #include <folly/dynamic.h> #include "mc...
<commit_before>#ifndef K3_RUNTIME_NETWORK_HPP #define K3_RUNTIME_NETWORK_HPP #include <ios> #include <queue> #include <system_error> #include <boost/asio.hpp> #include <boost/iostreams/categories.hpp> #include <boost/iostreams/stream.hpp> #include <boost/system/error_code.hpp> #include <boost/thread/thread.hpp> #inclu...
<commit_before>/****************************************************************************** * * * @file pcsc-client.cc * * @author Clément Désiles <clement.desiles@telecomsante.com> ...
<commit_before>/* For secp384r1 define this macro if using secp384r1 */ // #define MCLBN_FP_UNIT_SIZE 6 /* For secp521r1 1. rebuild libmcl.a make clean && make lib/libmcl.a MCL_MAX_BIT_SIZE=576 2. define this macro if using secp521r1 */ // #define MCLBN_FP_UNIT_SIZE 9 #include <mcl/she.hpp> #include <cybozu/opti...
<commit_before>/* * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directo...
<commit_before>#include <iostream> #include <cstlib> #include <vector> <commit_msg>Use fscanf to read in file.<commit_after>#include <iostream> #include <cstdlib> #include <vector> #include <bitset> #include <cstring> #include <string> #include <fstream> #include <cstdio> #include "rand.h" using namespace std; class...
<commit_before><commit_msg>Create p10201 - Adventures in Moving - Part IV.cpp<commit_after><|endoftext|>
<commit_before>#include "stdafx.h" #include "AutoPacketFactory.h" #include "AutoPacket.h" AutoPacketFactory::AutoPacketFactory(void): m_wasStopped(false), m_packets( ~0, ~0, [this] { return new AutoPacket(*this); }, [] (AutoPacket& packet) { packet.Reset(); } ) {} AutoPacketFactory::~AutoPacketF...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: MemoryByteGrabber.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: ihi $ $Date: 2008-02-04 13:59:45 $ * * The Contents of this file...
<commit_before>// RUN: %clang_cc1 %s -emit-llvm -o - // https://bugs.llvm.org/show_bug.cgi?id=38356 // We only check that we do not crash. template <typename a, a b(unsigned), int c, unsigned...> struct d : d<a, b, c - 1> {}; template <typename a, a b(unsigned), unsigned... e> struct d<a, b, 0, e...> { a f[0]; }; s...
<commit_before>#include <QCoreApplication> #include <iostream> #include "connectdatabase.h" #include "insertrow.h" #include "htmlparser.h" #include "QtSql/qsqlquery.h" //COnstructor : InsertRow::InsertRow(QObject *parent) { /* QObject::connect(SIGNAL(parsingFinished(htmlPage*)), SLOT(...
<commit_before>#include "antlr4-runtime.h" #include "IDLLexer.h" #include "Visitor.hpp" #include <Windows.h> #undef INTERFACE int main(int argc, char** argv) { antlr4::ANTLRFileStream input("C:/Projects/cpf/Cpf/Support/idl2/TestData/iRegistry.idl"); IDLLexer lexer(&input); antlr4::CommonTokenStream tokenStream(&lex...
<commit_before>#include "torrent-descriptor.hh" #include "../stream/base16-encoder.hh" #include "../format/print.hh" namespace mimosa { namespace bittorrent { TorrentDescriptor::TorrentDescriptor() : length_(0), piece_length_(0), is_private_(false) { } TorrentDescriptor::~Tor...
<commit_before>// Do not remove the include below #include "DecnetDisplay.h" #include <EtherCard.h> #include <enc28j60.h> #include <UTFT.h> /** Prototype board header pins =========================== * * Display module * 01-07 -> DB15-DB8 -> 29-22 08 (NC) 09 -> 10 -> 11 -> 12 -> 13 -> * * Ethernet mod...
<commit_before> #include "fuelgauge.h" FuelGauge::FuelGauge() { } boolean FuelGauge::begin() { // this should be unecessary since, begin is already called from pmic setup return 1; } // Read and return the cell voltage float FuelGauge::getVCell() { byte MSB = 0; byte LSB = 0; readRegister...
<commit_before>/* * Copyright (C) 2013 The Android Open Source Project * * 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 ...
<commit_before>/* * File: curves.cpp * Author: Isaac Yochelson * * Created on August 22, 2013, 10:30 AM */ #include <moveit/move_group_interface/move_group.h> #include <moveit_msgs/RobotTrajectory.h> #include <trajectory_msgs/JointTrajectory.h> #include <trajectory_msgs/MultiDOFJointTrajectory.h> #include <geom...
<commit_before>#include "priorityfs.h" #include <exception> #include <boost/filesystem.hpp> #include <fstream> #include <string> namespace fs = boost::filesystem; class PriorityFS::Impl { public: Impl(const std::string& buffer_directory, const std::string& buffer_parent); std::string GetFilePath(const ...
<commit_before>#include "proto/spec.pb.h" #include <fstream> #include <iostream> void GetUserInput(std::string prompt, std::string& res) { std::cout << prompt << ": "; getline(std::cin, res); } void OutputToInterface(std::string content, bool isError = false) { if (isError) { std::cerr << content ...
<commit_before>#ifndef SIMHASH_CYCLIC_H #define SIMHASH_CYCLIC_H #include <vector> namespace Simhash { /* Keep a cyclic hash */ template<typename Int> class Cyclic { public: /* An easy typedef */ typedef Int hash_type; /* Useful elsewhere */ static const size_t bits = ...
<commit_before>/* * ProbeStatsFlagTest.cpp * */ #include <columns/PV_Init.hpp> #include <columns/buildandrun.hpp> #include <cmath> int checkValue( float observed, float expected, float tolerance, int lineno, char const *valueDescription); int main(int argc, char *argv[]) { PV::PV_Init pv_initObj(&argc, ...
<commit_before>/* * Copyright 2010-2017 JetBrains s.r.o. * * 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 applica...
<commit_before>#ifndef __CAM_SHIFT_PROCESSOR_HPP__ #define __CAM_SHIFT_PROCESSOR_HPP__ #include <vector> #include "VideoProcessor.hpp" class CamShiftProcessor : public VideoProcessor { public: CamShiftProcessor(VideoCapture &Frames, string WindowName) : VideoProcessor(Frames, WindowName), smin(30...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "util.h" #include "ui_interface.h" #include "paymentserver.h" #in...
<commit_before>#include "LoadingScene.h" #include "HelloWorldScene.h" #include "SimpleAudioEngine.h" #include "../../current-sdk/Classes/GreedyGameAgent.h" USING_NS_CC; using namespace greedygame; void moveToNextScene() { LoadingScene::getInstance()->label->setString("Tap to start game!"); auto _touchListene...
<commit_before>#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::e...
<commit_before>/* * MenuLayer.cpp * * Created on: Aug 28, 2014 * Author: zhangchen */ #include "MainLayer.h" #include "AppMacros.h" #include "BgLayer.h" #include "Counter.h" #include "FinishLayer.h" #include "SimpleAudioEngine.h" using namespace CocosDenshion; #define TAG_LEFT 0 #define TAG_RIGHT 1 #defi...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>/*********************************************************************** filename: SampleData.cpp created: 4/6/2012 author: Lukas E Meindl *************************************************************************/ /*************************************************************************** * C...
<commit_before>/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCubicMap.h" #include "SkottieJson.h" #include "SkottiePriv.h" #include "SkottieValue.h" #include "SkSGScene.h" #include "SkString.h" #include "SkTAr...
<commit_before>/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/effects/SkGradientShader.h" #include "modules/svg/include/SkSVGRadialGradient.h" #include "modules/svg/include/SkSVGRenderContext.h" #include ...
<commit_before>/* This file is part of the KDE project Copyright (C) 2005-2006 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. T...
<commit_before>/* * csdebugger.cpp: Copyright (C) 2014 Andres Cabrera, Rory Walsh This file is part of Csound. The Csound 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; eit...
<commit_before>//======================================================================= // Copyright (c) 2015 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 (C) 2015-2018 Dubalu LLC. 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 the Software without restriction, including without limitation the right...
<commit_before>/* * FFissionCodec.cpp * Copyright (c) 2006 David Conrad * * This file is part of Perian. * * 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 (C) 2016 Rhys Ulerich * * 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 at http://mozilla.org/MPL/2.0/. */ #ifndef DESCENDU_HEXMAP_H #define DESCENDU_HEXMAP_H #inc...
<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: app.hxx,v $ * $Revision: 1.36 $ ...
<commit_before>// @(#):$Id$ // Author: Andrei Gheata 01/03/11 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before><commit_msg>coverity#708017 Uninitialized scalar field<commit_after><|endoftext|>
<commit_before>#include "engine.h" Engine::Engine(QObject *parent) : QObject(parent), m_reader(new XMLReader), m_dbmanager(new DatabaseManager) { m_dbmanager->setUpDB(); m_seriesListModel = new SeriesListModel(this, m_dbmanager, m_reader); m_searchListModel = new SearchListModel(this, m_dbmana...
<commit_before>#include "zmq.h" #include <iostream> #include "AliHLTDataTypes.h" #include "AliHLTComponent.h" #include "AliHLTMessage.h" #include "TClass.h" #include "TCanvas.h" #include "TMap.h" #include "TPRegexp.h" #include "TObjString.h" #include "TDirectory.h" #include "TList.h" #include "AliZMQhelpers.h" #include...
<commit_before>#include <getopt.h> #include "slave.hpp" #include "slave_webui.hpp" #include "zookeeper_slave.hpp" using namespace std; using namespace nexus::internal::slave; void usage(const char *programName) { cerr << "Usage: " << programName << " [--cpus NUM]" << " [--mem NUM]" << " [--is...
<commit_before> #include "../SocketCanPump.hpp" #include "../HuboDescription.hpp" #include "HuboState/State.hpp" #include "HuboCmd/Aggregator.hpp" #include "HuboCmd/AuxReceiver.hpp" using namespace HuboCan; int main(int argc, char* argv[]) { bool virtual_can = false; for(int i=1; i<argc; ++i) { if...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: transactionguard.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2006-09-16 14:14:21 $ * * The Contents of this file ...
<commit_before>/************************************************************ COSC 501 Elliott Plack 13 NOV 2013 Due: 18 NOV 2013 Problem: Develop three functions that must satisfy the Big-O requirements as shown below 1. Develop a function that uses a loop to calculate x^n in O(n) 2. Develop a function ...
<commit_before>/** * @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required b...
<commit_before>#include <opencv2/opencv.hpp> #include <iostream> #include <math.h> float mediandepth(const cv::Mat &m, double bgcoeff) { std::vector<float> depths; depths.reserve(m.cols*m.rows); // Collect all non-nan values. for(size_t y = 0 ; y < m.rows ; ++y) { const float *pix = m.ptr<floa...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 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>/** \file * Implements safer c++ wrappers for the sysctl() interface. */ #ifndef _POWERDXX_SYS_SYSCTL_HPP_ #define _POWERDXX_SYS_SYSCTL_HPP_ #include "error.hpp" /* sys::sc_error */ #include <sys/types.h> /* sysctl() */ #include <sys/sysctl.h> /* sysctl() */ namespace sys { /** * Thi...
<commit_before>#include "midi.h" #include <algorithm> #include <iostream> #include <sstream> MIDI::MIDI() {} RtMidiIn *MIDI::createMidiIn(const std::string clientName) { // RtMidiIn constructor RtMidiIn *midiin = 0; try { midiin = new RtMidiIn(RtMidi::LINUX_ALSA, clientName); } catch (RtMidiError &error)...
<commit_before>/* * (C) 2015 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "../cli/cli.h" #include "tests.h" #include <iostream> #include <sstream> #include <string> #include <set> #include <deque> #include <thread> #include <future> #include <botan/version.h> #includ...
<commit_before>// Module: Log4CPLUS // File: timehelper.cxx // Created: 4/2003 // Author: Tad E. Smith // // // Copyright 2003-2010 Tad E. 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 ...
<commit_before> #include <string.h> #include "boxed.h" #include "function.h" #include "closure.h" #include "gi.h" #include "gobject.h" #include "type.h" #include "util.h" #include "value.h" using v8::Array; using v8::External; using v8::Function; using v8::FunctionTemplate; using v8::Local; using v8::Number; using v8:...
<commit_before>#include "text.h" #include <algorithm> #include <array> #include <functional> #include <regex> #include <tuple> #include <cstring> #include "ada/string.h" namespace { template<typename T1> // Helper operator shorthand: [enum_t] -> [size_t]. constexpr size_t operator+(T1 some_enum) { return static_...
<commit_before>#include "control.h" int Curso::codigo = 0; void Control::inicializador() { U = new Universidad(); CE = new Contenedor_Escuelas(); CC = new Contenedor_Cursos(); Escuela* E1 = new Escuela("Ingles"); Escuela* E2 = new Escuela("Matematicas"); Escuela* E3 = new Escuela("Geologia"); Escuela* E4 = ne...
<commit_before>//Full wet 0 //Full Dry 5v (possibly) #include "MoistureSensor.h" class MoistureSensor{ private: const int PROBE; const int SENSOR; int wetVoltage; int dryVoltage; double moistVoltage; bool isDryState; bool isWetState; bool isMoistState; int sensorValue; doub...
<commit_before>/* * Copyright 2010-2011 Fabric Technologies Inc. All rights reserved. */ #include "Extension.h" #include "Client.h" #include <Fabric/Core/Build.h> #include <Fabric/Core/MT/LogCollector.h> #include <Fabric/Core/RT/Manager.h> #include <Fabric/Core/CG/Manager.h> #include <Fabric/Core/DG/Context.h> #in...
<commit_before>#ifndef VG_HANDLE_HPP_INCLUDED #define VG_HANDLE_HPP_INCLUDED /** \file * Defines a handle type that can refer to oriented nodes of, and be used to * traverse, any backing graph implementation. Not just an ID or a pos_t because * XG (and maybe other implementations) provide more efficient local trav...
<commit_before>// Copyright 2008 the V8 project authors. 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...
<commit_before>// Copyright (c) 2006-2008 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. // This file contains definitions for CppVariant. #include <limits> #include "config.h" #include "webkit/glue/cpp_variant.h" #inc...
<commit_before>/* * Copyright (C) 2009 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list ...
<commit_before>#include "FibRng.h" #include <stdio.h> #include <string.h> #include <time.h> // The tickle variable protects against rapid fire creation of // generators with the default seed. uint32_t FibRng::tickle = 0; const double FibRng::BASE = FibRng::CHOP + 1.0; // A constructor for Fibonacci Psuedo Random Num...
<commit_before>/* * Copyright (C) 2010 The Android Open Source Project * * 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 ...
<commit_before>/************************************************************************* * * $RCSfile: vclxaccessiblecomponent.hxx,v $ * * $Revision: 1.21 $ * * last change: $Author: hr $ $Date: 2003-03-27 17:02:43 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>#include "Hardware.h" #define PIN_LED_R 14 #define PIN_LED_G 13 #define PIN_LED_B 10 #define PIN_MOTOR_I_PWM 22 #define PIN_MOTOR_I_DIR 27 #define PIN_MOTOR_J_PWM 24 #define PIN_MOTOR_J_DIR 28 #define PIN_MOTOR_K_PWM 25 #define PIN_MOTOR_K_DIR 29 #define PIN_LINE_LED 12 const int Hardware::LINE_SENSO...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2008 Patrick Spendrin <ps_ml@gmx.de> // #include <QtTest/QtTest> #incl...
<commit_before>/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
<commit_before>/************************************************************************* * * $RCSfile: evaluation.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: cd $ $Date: 2002-11-01 09:43:28 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>#include "http2/adapter/header_validator.h" #include "absl/strings/escaping.h" #include "absl/strings/numbers.h" #include "common/platform/api/quiche_logging.h" namespace http2 { namespace adapter { namespace { const absl::string_view kHttp2HeaderNameAllowedChars = "!#$%&\'*+-.0123456789" "^_...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 3 of the License, or (a...
<commit_before>#include <cstdlib> #include <cstdio> #include <cstring> #include <cmath> #include <string> #include <utility> #include <functional> #include <memory> #include <algorithm> #include <iostream> #include <map> #include <chrono> #include <sg14/fixed_point> #include <EASTL/vector.h> #include <EASTL/array.h> ...
<commit_before>AliAnalysisTask *AddTaskHFEQA(Bool_t useMC, Bool_t isAOD, Int_t icollisionsystem = 2, Int_t icent = 2,Int_t debuglevel = 4,Bool_t tpconlydo = kTRUE,Bool_t trdonlydo = kTRUE,Bool_t toftpcdo = kTRUE,Bool_t tpctrddo = kTRUE,Bool_t tpcemcaldo = kTRUE){ // Name TString appendixx("HFEQA"); //set con...
<commit_before>/* FLTKKeyboardWidget.hpp: Copyright (C) 2006 Steven Yi This file is part of Csound. The Csound 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 v...
<commit_before>#include "tables.h" /*This information was previously in main but was moved out to make test programs */ ///////////////INITIALIZIING//////////////// //////////////////////////////////////////// namespace editor { int WIN_HEIGHT, WIN_WIDTH; WIN *ptrnwin; WIN *instwin; WIN *metawin; ...
<commit_before>/* * profiles.cpp * * Created on: Mar 6, 2012 * Author: bmetcalf */ #include <slsimlib.h> /// Gaussian particles double QuadTree::alpha_o(double r2,float sigma){ if(r2==0) return 0.0; if(sigma <= 0.0 ) return -1.0/r2/pi; return ( exp(-r2/sigma/sigma/2) - 1.0 )/r2/pi; } double QuadTree::...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, 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.apache.or...
<commit_before>/************************************************************************* * * $RCSfile: unicode.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2003-04-24 12:25:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: ImageMutualInformation1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. ...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before> #include <stdio.h> // printf #include <stdlib.h> // exit #include <string.h> // memcpy #include <iostream> // std::cout #include "parseArgs/parseArgs.h" #include "parseArgs/paConfig.h" #include "logMsg/logMsg.h" #include "au/string.h" // au::str() #include "samson/clie...
<commit_before>#include "vast/search.h" #include "vast/exception.h" #include "vast/optional.h" #include "vast/query.h" #include "vast/util/make_unique.h" namespace vast { namespace { // Deconstructs an entire query AST into its individual sub-trees and adds // each to the state map. class dissector : public expr::d...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestLinearExtractor3D.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details....
<commit_before>#include "vast/search.h" #include "vast/exception.h" #include "vast/optional.h" #include "vast/query.h" #include "vast/util/make_unique.h" namespace vast { namespace { // Deconstructs an entire query AST into its individual sub-trees and adds // each to the state map. class dissector : public expr::d...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestMatlabEngineFilter.cxx ------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-9...
<commit_before>#include <string> #include <sys/wait.h> #include <unistd.h> #include <thread> #include <mutex> #include <vector> #include "module.hpp" bool Module::receive(Message* message){ if(!message){return 0;} unsigned int action = message->action; std::string body = message->body; switch(actio...
<commit_before>// ProgStatusBar.cpp : ʵļ // #include "stdafx.h" #include "DacrsUI.h" #include "ProgStatusBar.h" #include "afxdialogex.h" // CProgStatusBar Ի IMPLEMENT_DYNAMIC(CProgStatusBar, CDialogBar) CProgStatusBar::CProgStatusBar() { m_pBmp = NULL ; m_bProgressType = false; m_prosshiden = false; m_Progres...
<commit_before>/******************************************************************************\ * LuaUserData.hpp * * A C++ equivalent of a Lua userdata. * * Leandro Motta Barros ...
<commit_before>#include <cerrno> #include <cstdio> #include <getopt.h> #include "cpu.hpp" int main(int argc, char *argv[]) { const char *const Help = "SOS is boring VM - simple virtual machine\n" "Syntax: vm [arguments] [input file]\n" "Arguments:\n" " -h, --help print this help text\n" " -s SIZE, -...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 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 (c) 2006, Arvid Norberg 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 condi...
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>#pragma once #include <iostream> #include <fstream> #include "singleton.h" /// It is used to add function name, line number and file name if needed. #define LOG(level) \ Logger::Instance(level, __func__, std::to_string(__LINE__), __FILE__) /// It is used to add function name, line number and file na...
<commit_before>// __BEGIN_LICENSE__ // Copyright (C) 2006-2011 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vector> #include <vw/Core/Log.h> #include <vw/Core/Exception.h> #include <vw/Core/S...
<commit_before>/* * This file is part of otf2xx (https://github.com/tud-zih-energy/otf2xx) * otf2xx - A wrapper for the Open Trace Format 2 library * * Copyright (c) 2013-2016, Technische Universität Dresden, Germany * All rights reserved. * * Redistribution and use in source and binary forms, with or without *...
<commit_before>// // Copyright (c) 2013-2014 Christoph Malek // See LICENSE for more information. // #ifndef RJ_CORE_RENDER_HPP #define RJ_CORE_RENDER_HPP #include <SFML/Graphics.hpp> namespace rj { namespace render_utl { // render a single object template<typename Game_Handler, typename Drawable> void ro(...
<commit_before>/** * @file tip/pg/db/transaction.hpp * * @date Jul 14, 2015 * @author zmij */ #ifndef TIP_DB_PG_DETAIL_CONNECTION_LOCK_HPP_ #define TIP_DB_PG_DETAIL_CONNECTION_LOCK_HPP_ #include <memory> #include <functional> #include <atomic> #include <tip/db/pg/common.hpp> #include <tip/db/pg/future_conf...
<commit_before>/* * Copyright 2015 Cloudius Systems */ #pragma once #include "core/iostream.hh" #include "core/fstream.hh" #include "types.hh" #include "compress.hh" namespace sstables { class file_writer { output_stream<char> _out; size_t _offset = 0; public: file_writer(file f, size_t buffer_size = ...
<commit_before>#ifndef VSMC_UTILITY_PARALLE_DISPATCH_HPP #define VSMC_UTILITY_PARALLE_DISPATCH_HPP #include <dispatch/dispatch.h> namespace vsmc { namespace gcd { /// \brief Apple GCD dispatch queue informations /// \ingroup Dispatch class DispatchQueue { public : static DispatchQueue &instance () { ...
<commit_before>//============================================================================ // include/vsmc/utility/progress.hpp //---------------------------------------------------------------------------- // // vSMC: Scalable Monte Carlo // // This file is distribured under the 2-clauses BS...