text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: syshelp.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: vg $ $Date: 2006-09-25 13:25:54 $ * * The Contents of this file are made ...
<commit_before>/** * domain.cpp * * by Mohammad Elmi * Created on 24 Oct 2013 */ #include "domain.h" namespace aban2 { varinfo::varinfo(std::string _name, char _rank, bool _show, void *_data): name(_name), rank(_rank), show(_show) { data.generic = _data; } domain *domain::create_from_file(std::string f...
<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>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>/* * Copyright (C) 2004-2013 ZNC, see the NOTICE file for details. * Copyright (C) 2013 Rasmus Eskola <fruitiex@gmail.com> * based on sample.cpp sample module code * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
<commit_before>//GP.cpp #include "GP.hpp" #include <cstdlib> #include <iostream> GP::GP(int popSize, int maxDepth, int numberOfXs){ this->popSize = popSize; this->maxDepth = maxDepth; this->numberOfXs = numberOfXs; ramped_halfhalf(); } GP::~GP(){ for(int i=population.size() -1; i>=0; i--) { ...
<commit_before>/* * Copyright (c) 2014, Vsevolod Stakhov * * 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>#include "game_board.hpp" #include "main.hpp" #include <string> GameBoard::GameBoard() : m_desc(new char[BOARD_DESC_SIZE]), m_board(COLS, std::vector<bool>(ROWS, false)) { } GameBoard::~GameBoard() { delete[] m_desc; } bool GameBoard::HasChanged(char const* desc) const { return (m...
<commit_before> #include "HS.hpp" #include <onions-common/containers/records/CreateR.hpp> #include <onions-common/tcp/SocksClient.hpp> #include <onions-common/Config.hpp> #include <onions-common/Log.hpp> #include <onions-common/Utils.hpp> #include <iostream> std::string HS::keyPath_; RecordPtr HS::createRecord(uint8...
<commit_before>// Copyright (c) 2011, Christian Rorvik // Distributed under the Simplified BSD License (See accompanying file LICENSE.txt) #ifndef CRUNCH_CONCURRENCY_WORK_STEALING_QUEUE_HPP #define CRUNCH_CONCURRENCY_WORK_STEALING_QUEUE_HPP #include "crunch/base/align.hpp" #include "crunch/base/noncopyable.hpp" #incl...
<commit_before>/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * *...
<commit_before>/* * Copyright (C) 2008 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 ...
<commit_before>#include "gpio.h" #include "nvic.h" #include "driver/timer.hpp" extern "C" void __cxa_pure_virtual() { while (1); } namespace { int counter = 0; void toggle_leds() { ++counter; auto gpio_n = 17 + (counter & 3); gpio_toggle(0, (1 << gpio_n)); } } int main(void) { nvic_init(); ...
<commit_before>#ifndef H_DSCPP_API #define H_DSCPP_API #include <stdint.h> #include <stdio.h> #include "rapidjson/document.h" namespace dsc { typedef snowflake uint64_t; typedef discriminator short; enum RAPIRespCode : unsigned short { OK = 0, CURL_INIT_FAILED, CURL_PERFORM_FAILED,...
<commit_before> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <errno.h> #include <vector> #include <bbcat-base/LoadedVersions.h> #include <bbcat-base/UDPSocket.h> #include <bbcat-base/Thread.h> #include <bbcat-base/LockFreeBuffer.h> using namespace bbcat; // ensure the ver...
<commit_before>#include <iostream> #include <cstdlib> #include <amgcl/amgcl.hpp> #include <amgcl/interp_smoothed_aggr.hpp> #include <amgcl/aggr_plain.hpp> #include <amgcl/level_viennacl.hpp> #ifdef VIENNACL_WITH_OPENCL # include <vexcl/devlist.hpp> #endif #if defined(VIENNACL_WITH_OPENCL) || defined(VIENNACL_WITH_C...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>//===--- InitHeaderSearch.cpp - Initialize header search paths ----------*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: FEMTruss.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyright.tx...
<commit_before>//===--- IndexRecordWriter.cpp - Index record serialization ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vvasielv@cern.ch> //------------------------------------------------------------------------------ #include "cling/Interpreter/Tran...
<commit_before>/* openfx-arena - https://github.com/olear/openfx-arena Copyright (c) 2015, Ole-André Rodlie <olear@fxarena.net> Copyright (c) 2015, FxArena DA <mail@fxarena.net> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
<commit_before>// The MIT License (MIT) // Copyright (c) 2012-2013 Danny Y., Rapptz // 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 limitatio...
<commit_before>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation...
<commit_before>#include <iostream> #include <sstream> #include <fstream> #include <iomanip> #include <string> #include <map> // Loriano: let's try Armadillo quick code #include <armadillo> #include <cassert> #include <getopt.h> #include <unistd.h> #include <alloca.h> #include <pcafitter_private.hpp> // lstorchi: b...
<commit_before>/* Copyright (c) 2017-2019 Hans-Kristian Arntzen * * 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, c...
<commit_before>//===-- X86Subtarget.cpp - X86 Subtarget Information ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Nate Begeman and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
<commit_before>#include <tnt/tntnet.h> #include <string> #include "./models/Config.h" int main ( int argc, char* argv[] ) { Config config; int port = atoi(config.get( "APP-PORT" ).c_str()); std::string ip_addr = config.get( "APP-IP" ); try { tnt::Tntnet app; // Configurator conf...
<commit_before>#ifndef LIB_DRAW_RENDERSTATES_HPP #define LIB_DRAW_RENDERSTATES_HPP #include <SFML/Graphics/BlendMode.hpp> #include "transformation.hpp" namespace sf { class Shader; class Texture; } namespace lib { namespace core { class RenderTarget; } namespace draw { class RenderStates { public: ...
<commit_before>#include <iostream> #include <cstdint> #include <random> #include <chrono> #include <vector> #include <boost/dynamic_bitset.hpp> #include <numeric> /** * Lessons learned so far: * - SIMD registers are used as soon as we compile with -03 * - If we want to get the real speed up (and use all SIMD regist...
<commit_before>/* * Copyright (c) 2015-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 directory. ...
<commit_before>#include <collector.pb.h> #include <lightstep/tracer.h> #include <opentracing/noop.h> #include <opentracing/stringref.h> #include <atomic> #include <cstdint> #include <iostream> #include <memory> #include <mutex> #include <random> #include <tuple> #include <vector> #include "propagation.h" #include "reco...
<commit_before>// Catch #define CATCH_CONFIG_RUNNER #include <catch.hpp> // C++ Standard Library #include <string> #include <stdexcept> #include <iostream> // Boost #include <boost/filesystem.hpp> // Mantella #include <mantella> boost::filesystem::path testDirectory; int main(const int argc, const char* argv[]) { ...
<commit_before>/* Simple test for MIPSim * run mipsim and gdb sim in parallel * load the same target program in both simulators * run the program step by step * check for disparity in the effect of each instruction * report issues */ #include <QDir> #include <QDebug> #include <QString> #in...
<commit_before>/* Copyright (c) 2008, 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>/* Copyright (c) 2008, 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>#include "gmock/gmock.h" #include "gtest/gtest.h" int main(int argc, char ** argv) { ::testing::InitGoogleMock(&argc, argv); return RUN_ALL_TESTS(); } <commit_msg>remove redudant include to gtest<commit_after>#include "gmock/gmock.h" int main(int argc, char ** argv) { ::testing::InitGoogleM...
<commit_before>#include "domain.h" #include "person.h" //#include <iostream> #include <algorithm> #include <vector> #include "data.h" #include "console.h" //using namespace std; Domain::Domain() { } int Domain::findAge(Person& sciAge) const { int x; int y; int resultDead; int resultAlive; const ...
<commit_before>/************************************************************ cvfont.cpp - $Author: lsxi $ Copyright (C) 2005-2006 Masakazu Yonekura ************************************************************/ #include "cvfont.h" /* * Document-class: OpenCV::CvFont * * Font structure that can be passed ...
<commit_before>#include <Windows.h> #include <iostream> #include "..\breakpoint.h" // globals int g_val = 0; HANDLE g_hEvent1, g_hEvent2; void tryWrite() { std::cout << "thread " << std::hex << ::GetCurrentThreadId() << " trying to write..."; __try { g_val = 1; } __except (EXCEPTION_EXECUTE_HANDLER) { ...
<commit_before>#include <cmath> #include <cstdio> int main() { // double sqrt2 = sqrt(2.0); const int max_y = 127; // 127 const int half_x = 32; for (int y = 0; y < 128; ++y) { for (int z = 0; z < 16; ++z) { for (int x = 0; x < 16; ++x) { double dz; int cx, cy; cx = 2 * x - 2 ...
<commit_before>/* Copyright (c) 2008, 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> #include "AConfig.h" #if(HAS_STD_PILOT) #include "Device.h" #include "Pin.h" #include "Pilot.h" #include "Timer.h" Timer pilotTimer; bool _headingHoldEnabled = false; int _headingHoldTarget = 0; int hdg = 0; int hdg_Error; int raw_Left, raw_Right; int left, right; // motor outputs in microseconds, +/...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: vcs.cpp // Purpose: Implementation of wxExVCS class // Author: Anton van Wezenbeek // Copyright: (c) 2013 Anton van Wezenbeek ///////////////////////////////////////////////////////////////////////////////...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 Mark Charlebois. 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. ...
<commit_before>// Support for Python plugin // // proof-of-concept for access to Interp and canon // // NB: all this is executed at readahead time // // Michael Haberler 4/2011 // // if you get a segfault like described // here: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219 // or here: https://www.libavg.d...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * T...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr> * * This program is f...
<commit_before>/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * 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 limita...
<commit_before> #if !BOOST_PP_IS_ITERATING #if !defined(PLANE_H_) || INCLUDE_PLANE_LEVEL >= 1 #define PLANE_H_ #include <tuple> // 要求された定義レベルを実体化 #ifndef INCLUDE_PLANE_LEVEL #define INCLUDE_PLANE_LEVEL 0 #endif #define BOOST_PP_ITERATION_PARAMS_1 (4, (0,1, "plane.hpp", INCLUDE_PLANE_LEVEL)) #include ...
<commit_before>/* RTcmix - Copyright (C) 2005 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #include <DataFileReaderPField.h> #include <Ougens.h> // for Oonepole DataFileReaderPField::DataFile...
<commit_before>#include "core/meta/MetaPopulationApportionment.hpp" #include "core/meta/BlanketResolver.hpp" MetaPopulationApportionment::MetaPopulationApportionment( PopulationNode * metaNode, ApportionmentFunction * apportionment, AggregationFunction * aggregation ) : Apportionment(metaNode, apportionment, aggreg...
<commit_before>/* Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open Source Software License Copyright (c) 2008 Ames Laboratory Iowa State University All rights reserved. Redistribution and use of HOOMD, in source and binary forms, with or without modification, are permitted, provided that the following ...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2009-2014 Klaus Post Copyright (C) 2017 Axel Waggershauser Copyright (C) 2017 Roman Lebedev This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publi...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** ** $TROLLTECH_DUAL_EMBEDDED_LICENSE$ ** *****************************************************...
<commit_before>/* This file is part of qjson * * Copyright (C) 2009 Till Adam <adam@kde.org> * Copyright (C) 2009 Flavio Castelli <flavio@castelli.name> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by...
<commit_before>// // (c) Copyright 2017 DESY,ESS // // This file is part of h5cpp. // // 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 ...
<commit_before>/** ****************************************************************************** * @file main.c * @author Ac6 * @version V1.0 * @date 01-December-2013 * @brief Default main function. ****************************************************************************** */ #in...
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletview.h" #include "addressbookpage.h" #include "askpassphrasedialog.h" #include "bitcoingui.h" ...
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletview.h" #include "addressbookpage.h" #include "askpassphrasedialog.h" #include "bitcoingui.h" ...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Dacrs developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/foreach.hpp> #include <algorithm> #include <cassert> #incl...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin, Novacoin, and FlutterCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "bitcoinrpc.h" us...
<commit_before>#include "rprop.weights.h" #include <cmath> #include <cstdlib> #define DELTA0 0.1 #define ETAPLUS 1.2 #define ETAMINUS 0.5 Weights::Weights(const int& _height, const int& _width) { height = _height; width = _width; if(height) { float** weights = new float*[height]; fo...
<commit_before>#include <libbruce/bruce.h> #include <awsbruce/awsbruce.h> #include <boost/iostreams/stream.hpp> #include <aws/core/utils/logging/AWSLogging.h> #include <aws/core/utils/logging/DefaultLogSystem.h> #include <aws/core/utils/logging/LogLevel.h> #include <aws/core/auth/AWSCredentialsProviderChain.h> #includ...
<commit_before>/* Class that auto configures link-local xmpp account Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.com> 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>// Copyright 2014 eric schkufza // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <script/ismine.h> #include <key.h> #include <keystore.h>...
<commit_before>#include "io_manager.h" IO_Manager::IO_Manager() { } ssize_t IO_Manager::process_read_stripe (uint32_t file_id, char *pathname, uint32_t stripe_id, uint32_t stripe_size, uint32_t chunk_size, const void *buf, ...
<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 2010 Siddharth Srivastava <akssps011@gmail.com> // Copyright 2011 ...
<commit_before>#include <algorithm> #include "levenshtein.h" uint32_t levenshteinCore(const std::vector<uint32_t> &s, const std::vector<uint32_t> &t, std::vector<uint32_t> &current, std::vector<uint32_t> &last) { const size_t n(s.size()), m(t.size()); // Initialise with unmatched ch...
<commit_before>#include "sleekwindowclass.h" #include "sleekwindow.h" #include "windowsx.h" #include <QPushButton> #include <QSettings> #include <QCoreApplication> #include <QFileInfo> #include <QDebug> SleekWindowClass::SleekWindowClass() : _ivoryBrush(CreateSolidBrush(RGB(226,226,226))), _graphiteBrush(Crea...
<commit_before>/* Copyright 2016 Streampunk Media Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
<commit_before>/*========================================================================= Library: CTK Copyright (c) 2010 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 a...
<commit_before>/* Copyright (c) 2021 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>// Copyright 2019 Google LLC // // 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>/*! * \file painter_attribute_data.hpp * \brief file painter_attribute_data.hpp * * Copyright 2016 by Intel. * * Contact: kevin.rogovin@intel.com * * 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 fi...
<commit_before>/** */ template < typename T, std::size_t number_of_dimensions> struct optimisation_algorithm_state { std::vector<std::array<T, number_of_dimensions>> parameters; std::vector<T> objective_values; std::array<T, number_of_dimensions> best_found_parameter; T best_found_objective_value; std...
<commit_before>/** * @file llcapabilitylistener_test.cpp * @author Nat Goodspeed * @date 2008-12-31 * @brief Test for llcapabilitylistener.cpp. * * $LicenseInfo:firstyear=2008&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free softw...
<commit_before>// Copyright (c) 2014 Horia Cretescu. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "integer.hpp" #include "bytestring.hpp" class List : public BencodeType { std::vector<BencodeType*> data; ...
<commit_before>// Lowest Common Ancestor <O(nlogn), O(logn)> int par[25][N], h[N]; // build (sparse table) par[0][1] = 1; for (int i = 0; (1<<i) < n; ++i) for (int j = 1; j <= n; ++j) par[i][j] = par[i-1][par[i-1][j]]; // query int lca(int u, int v) { if (h[u] < h[v]) swap(u, v); for (int i = 20; i >= 0; --...
<commit_before>#include <assert.h> #include <PCU.h> #include <apf.h> #include <apfMesh.h> #include <apfNumbering.h> #include "parma_weights.h" #include "parma_sides.h" #include "parma_ghostOwner.h" namespace { apf::MeshEntity* getOtherVtx(apf::Mesh* m, apf::MeshEntity* edge, apf::MeshEntity* vtx) { apf::Do...
<commit_before>//===-- GenericSpecializer.cpp - Specialization of generic functions ------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//===-- MSP430MCInstLower.cpp - Convert MSP430 MachineInstr to an MCInst---===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "power.hpp" #include <cmath> #include <cstdio> #include <fstream> #include <iostream> #include <cstddef> #include <limits> #include <cassert> //For the normalized power spectrum #include <gsl/gsl_integration.h> PowerSpec_Tabulated::PowerSpec_Tabulated(const std::string& FileWithTransfer, const ...
<commit_before>extern "C" { #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> /* Directive handlers */ static char *ngx_http_lmdb_queue(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); // Declare lmdb_queue static char *ngx_http_lmdb_queue_topic(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);...
<commit_before>/* * Copyright 2012 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>#include "Runtime/Weapon/CFlameThrower.hpp" #include "Runtime/CSimplePool.hpp" #include "Runtime/CStateManager.hpp" #include "Runtime/GameGlobalObjects.hpp" #include "Runtime/Collision/CInternalRayCastStructure.hpp" #include "Runtime/Graphics/CBooRenderer.hpp" #include "Runtime/Particle/CElementGen.hpp"...
<commit_before>#include "oddlib/compressiontype3ae.hpp" #include "oddlib/stream.hpp" #include "logger.hpp" #include <vector> #include <cassert> void commonLogic1(int& control_byte_sub6, unsigned int& srcByte, unsigned short int*& srcPtr) { if (control_byte_sub6) { if (control_byte_sub6 == 0xE) ...
<commit_before>/* Copyright (c) 2015, Project OSRM contributors 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>#include "ofApp.h" void ofApp::setup(){ ofSetVerticalSync(false); ofSetFrameRate(60); // Create 3 particle emitters emitters = {ParticleEmitter(), ParticleEmitter(), ParticleEmitter()}; // Setup the particle emitters for(auto& e : emitters){ e.setup(); } // Setup the curl noise, pass the em...
<commit_before>#include <iostream> #include <vw/Image/ImageMath.h> #include <vw/Image/UtilityViews.h> #include <vw/Plate/PlateFile.h> #include <vw/Image/MaskViews.h> #include <mvp/Config.h> #include <mvp/MVPWorkspace.h> #include <mvp/MVPJob.h> #include <boost/program_options.hpp> using namespace vw; using namespace...
<commit_before>#include "native.h" #include "vmstate.h" #include "verifier.h" #include "rtlibrary.h" #include "function.h" #include <iostream> #include <math.h> #include <string.h> extern VMState vmState; void NativeLibrary::print(int x) { std::cout << x; } void NativeLibrary::print(float x) { std::cout << x; } v...
<commit_before>#include "installables.hh" #include "store-api.hh" #include "eval-inline.hh" #include "eval-cache.hh" #include "names.hh" #include "command.hh" #include "derivations.hh" namespace nix { struct InstallableDerivedPath : Installable { ref<Store> store; const DerivedPath derivedPath; Installab...
<commit_before>/*************************************************************************** This is a library for the MS5607-02BA03 barometric pressure sensor These sensors use I2C or SPI to communicate, though only I2C is implemented Written by Paul Guenette Apr 8, 2016 MIT License *********************************...
<commit_before> //---------------------------------------------------------------------------------- // //---------------------------------------------------------------------------------- #include "Effekseer.InstanceContainer.h" #include "Effekseer.Instance.h" #include "Effekseer.InstanceGlobal.h" #include "Effeksee...
<commit_before>#ifndef __FACTOR_MASTER_H__ #define __FACTOR_MASTER_H__ #ifndef WINCE #include <errno.h> #endif #ifdef FACTOR_DEBUG #include <assert.h> #endif /* C headers */ #include <fcntl.h> #include <limits.h> #include <math.h> #include <stdbool.h> #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #inclu...
<commit_before>/* * Copyright (c) 2015, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in bin...
<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. #include "base/i18n/rtl.h" #include <algorithm> #include "base/file_path.h" #include "base/string_util.h" #include "base/utf_str...
<commit_before>//===-- sanitizer_stoptheworld_mac.cc -------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...