text
stringlengths
54
60.6k
<commit_before>//#include "mvcc.h" #include "txn.h" #include "row.h" #include "manager.h" #include "row_mvcc.h" #include "mem_alloc.h" #include <mm_malloc.h> #if CC_ALG == MVCC void Row_mvcc::init(row_t * row) { _row = row; _his_len = 4; _req_len = _his_len; _write_history = (WriteHisEntry *) _mm_malloc(sizeof(W...
<commit_before>//===- TableGen.cpp - Top-Level TableGen implementation for LLVM ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENS...
<commit_before>#include "stoptasksdialog.h" WARNINGS_DISABLE #include <QAction> #include <QMenu> #include <QPushButton> WARNINGS_ENABLE StopTasksDialog::StopTasksDialog(QWidget *parent) : QMessageBox(parent), _actionButton(new QPushButton(this)), _actionMenu(new QMenu(_actionButton)) { } void StopTas...
<commit_before>#include "jitpp/arm/Disassembler.h" #include "jitpp/ppc/Disassembler.h" #include "binary/Binary.h" #include <getopt.h> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <vector> const char *binary_type_str = nullptr; const char *machine_type_str = n...
<commit_before>#include "background_subtractor.h" // static VALUE BackgroundSubtractorClass; static VALUE BackgroundSubtractorModule; static VALUE BGSMOGClass; static VALUE BGSMOG2Class; static VALUE BGSGMGClass; static VALUE BGSPratiMediodClass; namespace Spyglass { namespace BackgroundSubtractor { void define...
<commit_before>// // Realm C++ coding standard - by example // // Lines should never exceed 118 characters -------------------------------------------------------------------------- // Macro names use uppercase and have "REALM_" as prefix. Non-macro // names never use all uppercase. #define REALM_MY_MACRO 1 // A...
<commit_before>/* Copyright (c) 2015, The Cinder Project, All rights reserved. This code is intended for use with the Cinder C++ library: http://libcinder.org Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistri...
<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: vclevent.cxx,v $ * $Revision: 1....
<commit_before>/************************************************************************* * * $RCSfile: ctrl.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: pl $ $Date: 2002-05-16 11:52:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: polyscan.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 12:09:49 $ * * The Contents of this file are made ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before> #include "../Flare.h" #include "FlareSoundManager.h" #include "FlarePlayerController.h" #include "../Spacecrafts/FlareSpacecraft.h" #include "../Spacecrafts/FlareOrbitalEngine.h" #include "AudioDevice.h" #define LOCTEXT_NAMESPACE "UFlareSoundManager" /*-----------------------------------------------...
<commit_before>// File_ExtendedModule - Info for Extended Module files // Copyright (C) 2008-2010 MediaArea.net SARL, Info@MediaArea.net // // 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 Fou...
<commit_before>// // Created by Derek van Vliet on 2014-12-10. // Copyright (c) 2014 Get Set Games Inc. All rights reserved. // #include "SharingPrivatePCH.h" void UScreenshotComponent::OnRegister() { Super::OnRegister(); GEngine->GameViewport->OnScreenshotCaptured().AddUObject(this, &UScreenshotComponent::Scre...
<commit_before>#include "config.h" #include <immintrin.h> #include <x86intrin.h> #include <cstdint> #include <cstdlib> #include <cstdio> #include <cstring> #include <cassert> #include <memory> #include <set> #include <string> #include <chrono> // -------------------------------------------------- #include "popcnt-...
<commit_before>#include <cstdlib> #include <cstdio> #include <cstdint> #include <cstring> #include <cassert> #include <algorithm> #include <memory> #include "input_data.cpp" #include "gettime.cpp" #include "quicksort-all.cpp" class PerformanceTest final { int iterations; InputData& input; uint3...
<commit_before>#include "UIAnimatedImage.h" #include "../../Components/Graphics/SpritesheetComponent.h" namespace star { UIAnimatedImage::UIAnimatedImage( const tstring & name, const tstring & filePath, const tstring & imageName, const tstring & spritesheet ) : UIElement(name) { m_pSprite ...
<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>#pragma once #include <stdexcept> #include <vector> #include <fstream> #include <string> #include <sstream> #include <algorithm> #include <cctype> #include "Utility.hpp" /* TrimChars Policy */ template<char... TrimChar> struct TrimChars { public: static void trim(std::string& line) { ...
<commit_before>/* * Copyright (C) 2014 Pelagicore AB * All rights reserved. */ #include "debug.h" #include "generators.h" #include "jansson.h" #include "devicenodegateway.h" DeviceNodeGateway::DeviceNodeGateway(ControllerAbstractInterface *controllerInterface): Gateway(controllerInterface), m_controlle...
<commit_before>#include <iostream> #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <boost/property_tree/ini_parser.hpp> #include <boost/signals2.hpp> #include "config/config.h" #include "logging/logging.h" #include "primary/aktualizr.h" #include "primary/aktualizr_helpers.h" #include "se...
<commit_before>#include "stack.hpp" #include <stdlib.h> #include <string> #include <chrono> #include <thread> template <typename T> void producer(stack<T> &Stack) { for(;;) { Stack.push(std::rand() % 100); std::this_thread::sleep_for(std::chrono::seconds(std::rand() % (3) + 1)); } } void consumer(stack<T> &St...
<commit_before>#include "x_client_thumbnail_gl.hpp" #include <xcb/composite.h> #include <xcb/xcb_renderutil.h> x_client_thumbnail::x_client_thumbnail(x_connection & c, const rectangle & rect, const xcb_window_t & window, ...
<commit_before>#include "xchainer/backprop.h" #include <vector> #ifdef XCHAINER_ENABLE_CUDA #include <cuda_runtime.h> #endif // XCHAINER_ENABLE_CUDA #include <gtest/gtest.h> #include "xchainer/array.h" #include "xchainer/backprop.h" #ifdef XCHAINER_ENABLE_CUDA #include "xchainer/cuda/cuda_runtime.h" #endif // XCHA...
<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 Qt Build Suite. ** ** Commercial License Usage ** Licensees holding valid commercial Qt ...
<commit_before>#include "settings/Settings.hpp" #include <QStandardPaths> #include <QJsonDocument> #include <QJsonObject> #include <QSaveFile> #include <QFile> #include <QFileInfo> #include <QDir> #include <QStringBuilder> #include <QApplication> namespace Kryvo { const QStringList kDefaultPaths = QStandardPaths...
<commit_before>/* * calstep_dialog.cpp * PHD Guiding * * Created by Bruce Waddington * Copyright (c) 2013 Bruce Waddington * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modif...
<commit_before>/* * Copyright (c) 2007 The Hewlett-Packard Development Company * All rights reserved. * * Redistribution and use of this software in source and binary forms, * with or without modification, are permitted provided that the * following conditions are met: * * The software must be used only for Non...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>/********************************************************************** * File: mainblk.c (Formerly main.c) * Description: Function to call from main() to setup. * Author: Ray Smith * Created: Tue Oct 22 11:09:40 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed und...
<commit_before>/* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distr...
<commit_before>/* SWARM Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe 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 Foundation, either version 3 of the License, or (...
<commit_before> // // =============================================================================== // clReflect // ------------------------------------------------------------------------------- // Copyright (c) 2011 Don Williamson // // Permission is hereby granted, free of charge, to any person obtaining a ...
<commit_before>#include "rhoruntime.h" #include "common/RhoStd.h" #include "common/StringConverter.h" #include "ruby/ext/rho/rhoruby.h" using namespace rhoruntime; using namespace Platform; extern "C" void rho_webview_navigate_back() { CRhoRuntime::getInstance()->getMainPage()->GoBack(); } extern "C" int rho_webvie...
<commit_before>// Copyright (c) 2009 - Decho Corp. #include "mordor/pch.h" #include <algorithm> #include <string.h> #include <openssl/md5.h> #include <openssl/sha.h> #include "mordor/string.h" #include "assert.h" #include "exception.h" #ifdef MSVC #pragma comment(lib, "libeay32") #endif namespace Mordor { std:...
<commit_before>/* * 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 later version. * * Written (W) 1999-2008 Soeren Sonnenburg * C...
<commit_before>/* * Clustering.cpp * * Created on: 31.10.2012 * Author: Christian Staudt (christian.staudt@kit.edu) */ #include "Clustering.h" #include <algorithm> namespace NetworKit { Clustering::Clustering() : NodeMap<cluster>(0, none), name("noname") { this->nextCluster = 0; // first cluster index i...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #include "solver/ark/user-supplied.h" #include <cstdio> #include <iostream> #include "solver/ark/ark.h" #include "solver/ark/mass.h" #include "solver/ark/rhs.h" using namespace flint::solver::ar...
<commit_before>/* * Clutter-Bullet * Copyright (C) 2010 William Hua * * 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 vers...
<commit_before>#include <gtest/gtest.h> #include <string> #include "sort_file.h" using namespace baidu::shuttle; std::string g_work_dir = "/tmp"; int total = 7500000; TEST(HdfsTest, Put) { Status status; SortFileWriter* writer = SortFileWriter::Create(kHdfsFile, &status); EXPECT_EQ(status, kOk); Sort...
<commit_before>// Copyright 2015 the V8 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. #include "src/compiler/graph-trimmer.h" #include "src/compiler/graph.h" namespace v8 { namespace internal { namespace compiler { Graph...
<commit_before>/* Copyright 2011 Joe Hermaszewski. 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>/************************************************************************************ * Copyright (C) 2020, Copyright Holders of the ALICE Collaboration * * All rights reserved. * * ...
<commit_before>#ifndef DBG_H #define DBG_H #include <vector> #include <iostream> #include <iterator> namespace utils { struct Dbg { Dbg() : m_flags(std::cout.flags()) { std::cout << "[ "; } ~Dbg() { std::cout << "]\n" << std::flush; std::cout.flags(m_flags); }...
<commit_before>#include "compsys/MetaComponent.hpp" #include "compsys/Component.hpp" #include "ComponentRegistry.hpp" #include <unordered_map> #include "LuaUtils.hpp" #include "svc/ServiceLocator.hpp" #include "svc/LuaVm.hpp" #include "Logfile.hpp" #include <boost/format.hpp> static char const libname[] = "ComponentSy...
<commit_before>#ifndef CONCURRENCY_NEW_MUTEX_HPP_ #define CONCURRENCY_NEW_MUTEX_HPP_ #include "concurrency/rwlock.hpp" // This is a mutex, following the usual semantics (seen in rwlock_t, // fifo_enforcer_sink_t, buf_lock_t) where construction puts you in the queue, a // signal is pulsed when you have exclusive acces...
<commit_before>#ifndef HMLIB_CSVITERATOR_INC #define HMLIB_CSVITERATOR_INC 100 # #include<iterator> #include<iostream> #include<sstream> namespace hmLib{ template<class Elem = char, class Traits = std::char_traits<Elem> > struct basic_csv_mode{ public: Elem Sep; Elem End; Elem Esc; public: constexpr basic_...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: itemset.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2008-01-07 08:55:19 $ * * The Contents of this file are made ...
<commit_before>#ifndef maps_MLSMapVisualization_H #define maps_MLSMapVisualization_H #include <vizkit3d/Vizkit3DPlugin.hpp> #include <boost/noncopyable.hpp> #include <osg/Geode> #include <osg/Shape> #include <osg/Texture2D> #include <maps/grid/MLSMap.hpp> namespace vizkit3d { class MLSMapVisualization ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of meegotouch-controlpanelapplets. ** ** If you have que...
<commit_before>#include "data-student.hpp" using namespace std; void Student::init(string n, int s, int g, string m) { name = n; startingYear = s; gradutationYear = g; addMajors(m); } Student::Student() { init("", 2000, 2004, ""); } Student::Student(string n, string s, string e, string m) { int startYear = stri...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile: mitkPropertyManager.cpp,v $ Language: C++ Date: $Date$ Version: $Revision: 1.12 $ Copyright (c) German Cancer Research Center, Division of Medical ...
<commit_before>/* * Unit tests for the TTSampleMatrix Object for Jamoma DSP * Copyright © 2012, Tim Place & Nathan Wolek * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTSampleMatrix.h" TTErr TTSampleMatrix::test(TTValue& re...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkOpts.h" #include "SkRasterPipeline.h" SkRasterPipeline::SkRasterPipeline() {} void SkRasterPipeline::append(StockStage stage, void* ctx) { #ifdef ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2005 Peter Kmmel // Copyright (c) 2005 Richard Sposato // Permission to use, copy, modify, distribute and sell this software for any // purpose is hereby granted without fee, provide...
<commit_before>/* Title: Object size Copyright (c) 2000 Cambridge University Technical Services Limited Further development David C.J. Matthews 2016 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License ve...
<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 "SkColorSpaceXform.h" #include "SkColorSpaceXformCanvas.h" #include "SkMakeUnique.h" #include "SkNoDrawCanvas.h" #include "SkSurface.h" #include "SkTLa...
<commit_before>#include <gtest/gtest.h> #include "keycode.hpp" using namespace org_pqrs_KeyRemap4MacBook; TEST(ModifierFlag, stripFN) { unsigned int flags = ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_R | ModifierFlag::COMMAND_R; EXPECT_EQ(ModifierFlag::stripFN(flags), flags); EXPECT_EQ(ModifierFlag::stripFN(...
<commit_before>/* SD - a slightly more friendly wrapper for sdfatlib This library aims to expose a subset of SD card functionality in the form of a higher level "wrapper" object. License: GNU General Public License V3 (Because sdfatlib is licensed with this.) (C) Copyright 2010 SparkFun Electronics ...
<commit_before>#include <algorithm> #include <boost/filesystem.hpp> #include <QMessageBox> #include <QFileDialog> #include <QSqlTableModel> #include <QProgressDialog> #include "image_annotation.h" #include "database_info.h" #include "mainwindow.h" #include "ui_mainwindow.h" namespace fish_annotator { namespace db_u...
<commit_before>#include <iostream> #include <boost/program_options.hpp> #include <boost/algorithm/string.hpp> //case insensitve string comparison #include "dirMultiNaiveBayes.hpp" #include "niwBaseMeasure.hpp" #include "typedef.h" #include "timer.hpp" namespace po = boost::program_options; using boost::ie...
<commit_before>/************************************************************************* * * $RCSfile: drawdlg.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: vg $ $Date: 2003-04-17 15:40:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Da Zheng (zhengda1936@gmail.com) * * This file is part of SAFSlib. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
<commit_before>#include "audio_event.h" #include "audio_engine.h" #include "audio_clip.h" #include "halley/resources/resource_data.h" #include "halley/file/byte_serializer.h" #include "halley/file_formats/config_file.h" #include "halley/text/string_converter.h" #include "halley/core/resources/resources.h" #include "aud...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestPostgreSQLDatabase.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 "heightmap/heightmapgenerator.hpp" #include <ctime> HeightmapGenerator::HeightmapGenerator(int size, int seed, int variation) { mapWidth = size; HeightmapGenerator::variation = variation; vertices = new HMVertex[size*size]; vertexCount = 0; for(int i = 0; i < size; ++i) { I...
<commit_before>// // $Id$ // #include "Bitmap.h" #include "Pixel32.h" #include "Pixel24.h" #include "Pixel16.h" #include "Filtercolorize.h" #include "Filtergrayscale.h" #include "Filterfill.h" #include "Filterflip.h" #include "Filterfliprgb.h" #include "../base/TestSuite.h" #include "../base/Exception.h" #include <...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 Mark Charlebois. All rights reserved. * Copyright (c) 2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
<commit_before>// Copyright 2016 The Bazel 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 r...
<commit_before>#include "output_nested.hpp" #include "inspect.hpp" #include "ast.hpp" #include "context.hpp" #include "to_string.hpp" #include "util.hpp" #include <iostream> #include <sstream> #include <typeinfo> namespace Sass { using namespace std; Output_Nested::Output_Nested(bool source_comments, Context* ctx...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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 later version. cpp-ethereum is dis...
<commit_before>/* * Copyright 2013-2014 Michael M. Magruder (https://github.com/mikemag) * * 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....
<commit_before>#include <exodus/program.h> programinit() function main() { //init: var reqfile = COMMAND.a(2); var reqtext = COMMAND.a(3); var padding = COMMAND.a(4); if (not(reqfile or reqtext)) { errputl("syntax: dbgrep filename text"); errputl(" dbgrep - text"); //stop(); } // get filenames ...
<commit_before>#include "AccelerometerTest.h" AccelerometerTest::AccelerometerTest() { Requires(chassis); } // Called just before this Command runs the first time void AccelerometerTest::Initialize() { chassis->accelerometer->InitTable(); } // Called repeatedly when this Command is scheduled to run void Accelerom...
<commit_before>/* * * Copyright 2015 gRPC authors. * * 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 applicab...
<commit_before>#include "NasaWorldWindToOpenStreetMapConverter.h" #include <QtCore/QDebug> #include <QtCore/QString> #include <cmath> NasaWorldWindToOpenStreetMapConverter::NasaWorldWindToOpenStreetMapConverter( QObject * const parent ) : QObject( parent ), m_osmTileEdgeLengthPixel( 256 ), m_nwwTileE...
<commit_before>#include <iostream> #include "blockwisecc.h" #include "test_utils.h" #include <vigra/unittest.hxx> #include <vigra/hdf5impex.hxx> struct HDF5BlockedSourceTest { void test() { using namespace vigra; typedef typename HDF5BlockedSource<3, float>::V V; HDF5File f("test.h5", HDF5File::Open)...
<commit_before>/** * @file TeamMessageStatistics.cpp */ #include "TeamMessageStatistics.h" TeamMessageStatistics::TeamMessageStatistics() { getDebugParameterList().add(&parameters); } TeamMessageStatistics::~TeamMessageStatistics() { getDebugParameterList().remove(&parameters); } void TeamMessageStatistics::exe...
<commit_before>// $Id$ AliAnalysisTaskScale* AddTaskScale( const char *nTracks = "Tracks", const char *nClusters = "CaloClustersCorr", Double_t trackptcut = 0.150, Double_t clusptcut = 0.150, const char *taskname = "Scale", const char *outfilename = "AnalysisResults.root...
<commit_before>/** * \ file InPointerFilter.cpp */ #include <cmath> #include <boost/math/constants/constants.hpp> #include <ATK/Core/InPointerFilter.h> #include <ATK/Core/OutPointerFilter.h> #define BOOST_TEST_DYN_LINK #define BOOST_TEST_NO_MAIN #include <boost/test/unit_test.hpp> #include <boost/scoped_array.hp...
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved. This file is part of Navitia, the software to build cool stuff with public transport. Hope you'll enjoy and contribute to this project, powered by Canal TP (www.canaltp.fr). Help us simplify mobility and open publ...
<commit_before>/* * Copyright (c) 2008-2018 the MRtrix3 contributors. * * 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/ * * MRtrix3 is distributed in the hope that...
<commit_before>#include <cstdlib> #include <string> #include <boost/asio.hpp> #include "util.h" #include "Log.h" #ifdef WIN32 #include <stdlib.h> #include <string.h> #include <stdio.h> #include <sysinfoapi.h> #include <winsock2.h> #include <ws2tcpip.h> #include <iphlpapi.h> #include <shlobj.h> #ifdef _MSC_VER #pragm...
<commit_before>/* * nt loader * * Copyright 2006-2008 Mike McCormack * * 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 your option) any...
<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_BASEFUNCTIONSET_DEFAULT_FV_HH #define DUNE_GDT_BASEFUNCTIONSET_DEFAULT_...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_DISCRETEFUNCTION_VISUALIZE_HH #define DUNE_GDT_DISCRETEFUNCTION_VISUALIZ...
<commit_before>#include "gtest/gtest.h" #include "gmock/gmock.h" #include <string> #include "hybrid_automaton/DescriptionTreeNode.h" #include "tests/MockDescriptionTreeNode.h" using ::testing::Return; using ::testing::DoAll; using ::testing::SetArgReferee; using ::testing::_; using namespace ::ha; TEST(Description...
<commit_before>#include "atom.h" #include "variable.h" #include "number.h" #include <string> #include <iostream> using namespace std; bool Variable::match( Atom *atom ){ if(_assignable){ _value = atom->_symbol ; _assignable = false; this->Aptr = atom; //cout<<"the value of Aptr first...
<commit_before>#include <iostream> #include <string> #include <vector> #include "TRandom3.h" #include "TCanvas.h" #include "TFile.h" #include "PlotUtils/MUH1D.h" #include "PlotUtils/MUApplication.h" #include "PlotUtils/MUPlotter.h" using namespace std; using namespace PlotUtils; int tryToWrite() { cout << "Create ...
<commit_before>#if 0 set -e -x g++ sessionXrandr.cc -lXrandr -lX11 -o sxr exit 0 #endif #include <X11/extensions/Xrandr.h> #include <iostream> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include "sessionManager.h" int s_randr_event_type = 0; int randr_error_base; extern "C" int pfkSessionXrandr_mai...
<commit_before>#include "mmcore/CoreInstance.h" #include "mmcore/MegaMolGraph.h" #include "mmcore/utility/log/Log.h" #include "mmcore/utility/log/StreamTarget.h" #include "AbstractFrontendService.hpp" #include "FrontendServiceCollection.hpp" #include "GUI_Service.hpp" #include "OpenGL_GLFW_Service.hpp" #include "Lua_...
<commit_before>#include "menuscreenstate.hpp" MenuScreenState::MenuScreenState() { m_sousmenu.setPosition(sf::Vector2f(50, 50)); m_sousmenu.addElement(new PushButton([](){}, "Play")); m_sousmenu.addElement(new PushButton([](){}, "Levels")); m_sousmenu.addElement(new PushButton([](){}, "Quit")); m_s...
<commit_before>#include "NavierStokesSolver.h" float dt = 1.0; void ProcessGrid(Grid grid) { float D, B, dp; for each (auto cell in grid.Cells) { D = ComputeDivergence(cell); B = ComputeBeta(cell); dp = ComputeDeltaPressure(B, D); cell.U += (dt / cell.Width) * dp; ...
<commit_before>// Copyright 2017 Google 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>/* * NuoDB Adapter */ #include "nuodb/sqlapi/SqlEnvironment.h" #include "nuodb/sqlapi/SqlConnection.h" #include "nuodb/sqlapi/SqlStatement.h" #include "nuodb/sqlapi/SqlDatabaseMetaData.h" #include "nuodb/sqlapi/SqlColumnMetaData.h" #include "nuodb/sqlapi/SqlExceptions.h" using nuodb::sqlapi::ErrorCod...
<commit_before>/* * NarfBlock bytestream writer and reader * * Copyright (c) 2014 Daniel Verkamp * 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 mu...
<commit_before>#pragma once #ifndef OPENGM_TESTDATASETS_HXX #define OPENGM_TESTDATASETS_HXX #include <vector> #include <cstdlib> #include <opengm/learning/dataset/dataset.hxx> #include <opengm/functions/learnable/lpotts.hxx> #include <opengm/functions/learnable/sum_of_experts.hxx> namespace opengm { namespace dat...
<commit_before>// Copyright (c) 2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_CONTRIB_PRINT_RULES_TRAITS_HPP #define TAO_PEGTL_CONTRIB_PRINT_RULES_TRAITS_HPP #include "../config.hpp" #include "../rules.hpp" #include "../internal/pe...
<commit_before><commit_msg>fix/add_custom_icons (#2167)<commit_after><|endoftext|>