text
stringlengths
54
60.6k
<commit_before>/** * Exception_handler.cpp * * Set the exception handler * * @author Toon Schoenmakers <[email protected]> */ /** * Dependencies */ #include "includes.h" /** * Open the PHP namespace */ namespace Php { /** * Set a std::function as a php exception handler */ Value set_e...
<commit_before>/* Copyright (c) 2003, 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: alienwarn.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2007-04-26 10:10:14 $ * * The Contents of this file are made...
<commit_before>// Formatting library for C++ // // Copyright (c) 2012 - 2016, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #include "fmt/format-inl.h" FMT_BEGIN_NAMESPACE template struct FMT_API internal::basic_data<void>; // Workaround a bug in MSVC2013 that prevents...
<commit_before>/* * Copyright (c) 2012 Thomas Kemmer <[email protected]> * * http://code.google.com/p/stlencoders/ * * 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 * restr...
<commit_before>#include <GLFW/glfw3.h> int main(void) { GLFWwindow* window; /* Initialize the library */ if (!glfwInit()) return -1; /* Create a windowed mode window and its OpenGL context */ window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL); if (!window) { gl...
<commit_before>#include <stan/math/rev/mat.hpp> #include <boost/random.hpp> #include <stan/math/prim/scal/prob/lognormal_rng.hpp> #include <gtest/gtest.h> // very small michaelis menten example #include <test/unit/math/rev/arr/functor/coupled_mm.hpp> #include <test/unit/util.hpp> #include <vector> // test which trigge...
<commit_before>// a layer of 3d clouds // // Written by Harald JOHNSEN, started April 2005. // // Copyright (C) 2005 Harald JOHNSEN - [email protected] // // 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 ...
<commit_before>#include"all_defines.hpp" #include"objects.hpp" #include"heaps.hpp" #include"types.hpp" #include<cstdlib> #include<stdint.h> /*----------------------------------------------------------------------------- Semispaces -----------------------------------------------------------------------------*/ Semisp...
<commit_before>/* * Copyright (c) 2012 Adobe Systems Incorporated. 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 limita...
<commit_before>#include "input.h" InputHandler::InputHandler(sf::Window* Window, Player* Player, Renderer* Renderer) : app(Window), player(Player), renderer(Renderer) { app->ShowMouseCursor(false); } bool fullscreen = false; void InputHandler::handleEvent(sf::Event Event) { // Close window : exit if (Even...
<commit_before>#include <errno.h> #include <sys/ioctl.h> #include "nan.h" using namespace v8; using namespace node; NAN_METHOD(Ioctl) { NanScope(); Local<Object> buf; int length = args.Length(); assert((length == 2) || (length == 3)); void* argp = NULL; if (!args[0]->IsInt32()) { NanThrow...
<commit_before>/* * * Copyright 2017 Asylo 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 <iostream> #include <vector> #include "gomory_lex.h" GomoryLex::GomoryLex(const rapidjson::Value& root) : GomoryNaive(root) { original_obj_coeffs = (double*)malloc(num_vars*sizeof(double)); del_lex_constr_ids = (int*)malloc(num_vars*sizeof(int)); grb_error = GRBgetdblattrlist(model, GRB_DBL_...
<commit_before>#include "atlas/hlr/LoadLibrary.hpp" #include <atlas/core/Platform.hpp> #include <fmt/printf.h> #if defined(ATLAS_PLATFORM_WINDOWS) # define WIN32_LEAN_AND_MEAN # include <windows.h> #endif namespace atlas::hlr { #if defined(ATLAS_PLATFORM_WINDOWS) void* loadLibraryHandle(std::string const& ...
<commit_before>/************************************************************************* * * $RCSfile: ik_exception.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: np $ $Date: 2002-11-01 17:11:53 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>extern "C" void kmain(void* /*mbd*/, u32 magic) { if ( magic != 0x2BADB002 ) { /* Something went not according to specs. Print an error */ /* message and halt, but do *not* rely on the multiboot */ /* data structure. */ } /* You could either use multiboot.h */ /* (http:/...
<commit_before>/****************************************************************************** * Copyright (C) 2010 by Robert Tolliver * * [email protected] * * ...
<commit_before>// // Aspia Project // Copyright (C) 2020 Dmitry Chapyshev <[email protected]> // // 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 ...
<commit_before>#include "OsreEdApp.h" #include "Modules/ModuleBase.h" #include "Modules/InspectorModule/InspectorModule.h" #include <osre/Platform/AbstractWindow.h> #include <osre/Platform/PlatformOperations.h> #include <osre/RenderBackend/RenderBackendService.h> #include <osre/RenderBackend/RenderCommon.h> #include <o...
<commit_before>#include <chrono> #include <iostream> #include "peers.hpp" #include "config.hpp" #include "requestHandler.hpp" Peers::Peers() { pMap = PeerMap(); it = std::begin(pMap); auto time_point = std::chrono::system_clock::now(); auto duration = time_point.time_since_epoch(); lastUpdate = std::chrono::durat...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: txtcmp.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 14:12:20 $ * * The Contents of this file are made av...
<commit_before>/* * * Resource loader, functions for loading all supported data types * - Loads scene information from json * - Loads textures form TGA's * - Loads models from 3ds * */ #include "resourceloader.hpp" #include <glm/glm.hpp> #include <assimp/Importer.hpp> #include <assimp/scene.h> ...
<commit_before>// Copyright 2018 The clvk 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 applicable...
<commit_before>#include <cstdio> #include <utility> #include "reader.hh" #include "lisp_ptr.hh" #include "token.hh" #include "number.hh" #include "cons.hh" #include "symbol.hh" using namespace std; namespace { Lisp_ptr read_la(FILE*, Token&&); Lisp_ptr read_list(FILE* f){ Token t = tokenize(f); // first check ...
<commit_before>// Copyright (C) 2009, 2010 by Florent Lamiraux, Thomas Moulard, JRL. // // This file is part of the hpp-corbaserver. // // This software is provided "as is" without warranty of any kind, // either expressed or implied, including but not limited to the // implied warranties of fitness for a particular pu...
<commit_before>// $Id$ /* Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior University 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...
<commit_before>/* Copyright (c) 2022 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License Version 2.0. You may obtain a copy of the Apache License Version 2.0 at http://www.apache.or...
<commit_before>#include "utils.h" #include "jwtxx/jwt.h" // Key::Error #include <openssl/pem.h> #include <openssl/x509.h> #include <openssl/err.h> #include <algorithm> // std::min #include <exception> #include <cstring> // strerror #include <cstdio> // fopen, fclose #include <cerrno> // errno namespace Utils = JWT...
<commit_before>/* * IceWM - Resource paths * Copyright (C) 2001 The Authors of IceWM * * Release under terms of the GNU Library General Public License * * 2001/03/24: Mathias Hasselmann <[email protected]> * - initial version */ #include "config.h" #include "ylib.h" #include "default.h" #include...
<commit_before>/************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full copyright notice. * ...
<commit_before>#include "ofApp.h" #include "asio.hpp" //For socket integration #include "oscpkt.hh" //For OSC Serialzation #include "ofxAubio.h" //for aubio //---------------------Global Var: ASIO------------------------------------ std::string s; using asio::ip::udp; asio::io_service io_service; #d...
<commit_before>#include <algorithm> #include <iostream> #include <sstream> #include <iomanip> #include "antsUtilities.h" #include <algorithm> #include "itkTransform.h" #include "itkCompositeTransform.h" #include "itkDisplacementFieldTransform.h" #include "antsCommandLineParser.h" #include "itkantsReadWriteTransform.h"...
<commit_before>/* * * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. * * 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...
<commit_before>#ifndef ALIGNED_BASE_HPP_INCLUDED #define ALIGNED_BASE_HPP_INCLUDED #include <cstddef> #include <exception> #include "RoundUp.hpp" #include "IsPowerOfTwo.hpp" #define ALIGNMENT_MUST_BE_A_POWER_OF_2_ERROR_MESSAGE "Alignment must be a power of 2" template<typename T, std::size_t Alignment = -1> class Al...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: MeasureImageSimilarity.cxx,v $ Language: C++ Date: $Date: 2009/01/05 20:09:47 $ Version: $Revision: 1.19 $ Copyright...
<commit_before>/* This file is part of the MinSG library extension LoaderCOLLADA. Copyright (C) 2013 Benjamin Eikel <[email protected]> Copyright (C) 2012 Lukas Kopecki This library is subject to the terms of the Mozilla Public License, v. 2.0. You should have received a copy of the MPL along with...
<commit_before>/*! * @file CurvatureFlow.cpp * @brief Implementation of a curvature flow algorithm */ #include "CurvatureFlow.h" namespace psalm { /*! * Given an input mesh, calculates the curvature operator matrix for this * mesh. The matrix will be a _sparse_ matrix, hence the need for handling * it via boost. * *...
<commit_before>#include <arpa/inet.h> #include <assert.h> #include <map> #include <openssl/sha.h> #include <stdarg.h> #include <stdio.h> #include <string> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <zlib.h> using namespace std; namespace { static const string NUL = ...
<commit_before>#include "motors_old.h" #define MINREQSPEED 5 #define POLARITY -1 // direction of forward / connection to motor Motors_Old::Motors_Old() { //ctor fdMotor = -1; dVelocityScale = 1; _max_speed_=50; //SetupSerial(); } Motors_Old::~Motors_Old() { //dtor ShutdownSerial(); } int Motors_Old::...
<commit_before>/************************************************************************* * * $RCSfile: languageoptions.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: rt $ $Date: 2005-09-05 13:37:12 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before>/* * Copyright 2014 Google Inc. 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 requ...
<commit_before> /* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #if SK_SUPPORT_GPU #include "GrFragmentProcessor.h" #include "GrCoordTransform.h" #include "gl/GrGLProcessor.h" #include "gl/builders/GrGLProgr...
<commit_before>/************************************************************************* * * $RCSfile: hatchwindowfactory.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2004-10-04 19:46:51 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>// Game_Music_Emu https://bitbucket.org/mpyne/game-music-emu/ #include "Spc_Emu.h" #include "blargg_endian.h" #include <stdlib.h> #include <string.h> /* Copyright (C) 2004-2006 Shay Green. This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
<commit_before>#include <iostream> #include <chrono> #include <thread> #include <numeric> #include <libdariadb/timeutil.h> #include <libdariadb/engine.h> #include <libdariadb/meas.h> #include <libdariadb/utils/logger.h> #include <libdariadb/utils/locker.h> #include <libclient/client.h> #include <libserver/server.h> #...
<commit_before>// HandleLeak.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "HandleLeak.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // The one and only application object CWinApp theApp; using namespace std; void TestHandleLeak() { cout << __FUNCTION__ << endl; SH...
<commit_before> #include "FlareSpacecraftDockingSystem.h" #include "../../Flare.h" #include "../FlareStationDock.h" #include "../FlareStationConnector.h" #include "../FlareSpacecraft.h" #include "../../Game/FlareGame.h" #include "../../Quests/FlareQuestManager.h" DECLARE_CYCLE_STAT(TEXT("FlareDockingSystem Tick"), ST...
<commit_before>#include "binary_message.h" #include "../core/exceptions.hpp" #include <functional> namespace nng { namespace messaging { binary_message::binary_message() : message_base() , _header() , _body() { } binary_message::binary_message(::nng_...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/** * Copyright (C) 2003-2006 Funambol * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This...
<commit_before>#ifndef MECHANICROTSHAFT_HPP_INCLUDED #define MECHANICROTSHAFT_HPP_INCLUDED #include <iostream> #include "ComponentEssentials.h" #include "ComponentUtilities.h" #include "math.h" //! //! @file MechanicRotShaft.hpp //! @author Petter Krus <[email protected]> //! @date Thu 28 Jun 2012 09:14:2...
<commit_before>// Barst.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "cpl defs.h" #include "named pipes.h" #include "Log buffer.h" #include "mem pool.h" #include "ftdi device.h" #include "rtv device.h" #include "serial device.h" #include "mcdaq_device.h" #include "misc too...
<commit_before>#include "layouterCSS.h" #include <vector> #include <string> #include <memory> #include <algorithm> static uint8_t hex2num(char c) { switch (c) { case '0': return 0; case '1': return 1; case '2': return 2; case '3': return 3; case '4': return 4; case '5': return 5; case ...
<commit_before>// $Id$ // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 /************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full ...
<commit_before>#include "myHeader.h" #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; void printStringArr(const string a[], int n, ostream &os) { for (int i = 0; i < n; i++) os << "\n" << a[i]; } int getIntInRange(int start, int end) { int x = getInt(); while (x <...
<commit_before><commit_msg>label position and bounds rounding<commit_after><|endoftext|>
<commit_before>/* * ______ __ __ __ * /\ _ \ __ /\ \/\ \ /\ \__ * \ \ \L\ \ __ __ /\_\ \_\ \ \ \____ ___\ \ ,_\ ____ * \ \ __ \/\ \/\ \\/\ \ /'_` \ \ '__`\ / __`\ \ \/ /',__\ * \ \ \/\ \ \ \_/ |\ \ \/\ \L\ \ \ \L\ \/\ \L\ \ \ \_/\__, `\ * ...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2016 Julian Ganz * * 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 rig...
<commit_before>#pragma once #include <future> #include <chrono> #include <string> #include <cstdint> #include <curlpp/cURLpp.hpp> #include <curlpp/Easy.hpp> #include <curlpp/Options.hpp> namespace wonder_rabbit_project { namespace wonderland { namespace loader { using buffer_t = std::vector<std::ui...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>#pragma once /** @file @brief bit vector @author MITSUNARI Shigeo(@herumi) @license modified new BSD license http://opensource.org/licenses/BSD-3-Clause */ #include <cybozu/exception.hpp> #include <algorithm> #include <vector> #include <assert.h> namespace cybozu { template<class T> size_t Roundup...
<commit_before>/* * Copyright (C) 2016 Marcin Kościelnicki <[email protected]> * 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 wi...
<commit_before>/** * Copyright (C) 2018 3D Repo Ltd * * 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 (at your option) any later version. * * T...
<commit_before>// Copyright (c) 2017 The Khronos Group Inc. // Copyright (c) 2017 Valve Corporation // Copyright (c) 2017 LunarG, 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>/* $Id$ */ /* * Copyright (c) 2013 Roland van Rijswijk-Deij * 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 copy...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2016 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>//============================================================================ // MCKL/include/mckl/random/seed.hpp //---------------------------------------------------------------------------- // MCKL: Monte Carlo Kernel Library //------------------------------------------------------------------------...
<commit_before>/// /// @file pmath.hpp /// @brief Auxiliary math functions for primesieve. /// /// Copyright (C) 2018 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PMATH_HPP #define PMATH_HPP #include <s...
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved. #include "concurrency/watchable.hpp" #include <functional> #include "errors.hpp" #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> #include "arch/timing.hpp" #include "concurrency/cond_var.hpp" #include "concurrency/wait_any.hpp" template...
<commit_before>#include "condor_common.h" #include "condor_config.h" #include "condor_api.h" #include "status_types.h" #include "totals.h" // global variables AttrListPrintMask pm; char *pool = NULL; AdTypes type = (AdTypes) -1; ppOption ppStyle = PP_NOTSET; int wantTotals = 0; int summarySize = -1; Mode mo...
<commit_before><commit_msg>Create 1190 - Right Area.cpp<commit_after><|endoftext|>
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld 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...
<commit_before>#pragma once #include <unordered_map> #include "common.hpp" #include "components/logger.hpp" #include "errors.hpp" #include "utils/env.hpp" #include "utils/string.hpp" #include "x11/xresources.hpp" POLYBAR_NS #define GET_CONFIG_VALUE(section, var, name) var = m_conf.get<decltype(var)>(section, name, v...
<commit_before>// Time: O(n + p) // Space: O(p) class Solution { public: bool areSentencesSimilarTwo(vector<string>& words1, vector<string>& words2, vector<pair<string, string>> pairs) { if (words1.size() != words2.size()) { return false; } unordered_map<string, int> lookup; ...
<commit_before>#include "Networking.hpp" #include <time.h> #include <fstream> #include <sstream> #include <algorithm> #include <stdio.h> #include <chrono> #include <thread> #include <mutex> std::mutex coutMutex; std::string serializeMapSize(const hlt::Map & map) { std::string returnString = ""; std::ostringstream ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved */ #include "../StroikaPreComp.h" #include <exception> #include <malloc.h> #include "../Memory/Common.h" #include "MallocGuard.h" using namespace Stroika::Foundation; using Memory::Byte; #if qStro...
<commit_before> #include "FrameBuffer.h" #include "utility.h" #include "globals.h" #include "Interrupt.h" #include "Segmentation.h" #include "Keyboard.h" #include "Paging.h" #include "HardDrive.h" #include "PhysicalMemoryAllocator.h" #include "FAT.h" #include "dirtyMalloc.h" #include <stdarg.h> #include <memory> #inclu...
<commit_before>/* * Copyright (C) 2011 * Alessio Sclocco <[email protected]> * * 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 lat...
<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) 2007, 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 condit...
<commit_before>/* Copyright (c) 2005, 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) 2005, 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>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>//============================================================================= // // *** AddTaskFemtoAzimtuhalHBT.C *** // // This macro initialize a complete AnalysisTask object for femtoscopy. // //============================================================================= AliAnalysisTaskFemto *Add...
<commit_before>/* Representation for raw, binary data. * * DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/binarystring instead. * * Copyright (c) 2000-2020, Jeroen T. Vermeulen. * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the distri...
<commit_before>/// /// @file config.hpp /// @brief primesieve compile time constants. /// /// Copyright (C) 2021 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef CONFIG_HPP #define CONFIG_HPP #include <stdi...
<commit_before>#include "SimpleMemory.hh" SimpleMemory::SimpleMemory(AstraNetworkAPI *NI,double access_latency,double npu_access_bw_GB,double nic_access_bw_GB){ this->last_request_serviced=0; this->NI=NI; this->access_latency=access_latency; this->npu_access_bw_GB=npu_access_bw_GB; ...
<commit_before>#ifndef MESSAGES_HPP_ #define MESSAGES_HPP_ #include <cstdint> namespace protocol { namespace message { struct heartbeat_message_t { enum { ID = 0x00 }; std::uint8_t seq; } __attribute__((packed)); struct log_message_t { enum { ID = 0x01 }; char data[255]; } __attribute__((packed)); struct...
<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>#ifndef MESSAGES_HPP_ #define MESSAGES_HPP_ #include <cstdint> namespace protocol { namespace message { struct heartbeat_message_t { enum { ID = 0x00 }; std::uint8_t seq; } __attribute__((packed)); struct log_message_t { enum { ID = 0x01 }; char data[255]; } __attribute__((packed)); struct...
<commit_before>/** * @author Koen Wolters <[email protected]> * @author Daniel Hynds <[email protected]> */ #include "ModuleFactory.hpp" #include <dlfcn.h> #include <utility> using namespace allpix; // Constructor and destructor ModuleFactory::ModuleFactory() : config_(), messenger_(), geometry_manager_(...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>#ifndef V_SMC_CORE_SAMPLER_HPP #define V_SMC_CORE_SAMPLER_HPP #include <vSMC/internal/common.hpp> #include <iostream> #include <map> #include <set> #include <string> namespace vSMC { /// \brief SMC Sampler /// /// \tparam T State state type. Requiment: /// \li Consturctor: T (IntType N) /// \li Method...
<commit_before>#if defined(_MSC_VER) #define _CRTDBG_MAP_ALLOC #define _CRT_SECURE_NO_WARNINGS #include <crtdbg.h> #endif #include "CoolPropDLL.h" #include "CoolProp.h" #include "HumidAirProp.h" #include "DataStructures.h" #include "Exceptions.h" double convert_from_kSI_to_SI(long iInput, double value) { if (get_de...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2006 Flavio Castelli <[email protected]> * Jos van den Oever <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Pub...
<commit_before>/** * @file lldiriterator.cpp * @brief Iterator through directory entries matching the search pattern. * * $LicenseInfo:firstyear=2010&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or...
<commit_before>/* qgvdial is a cross platform Google Voice Dialer Copyright (C) 2010 Yuvraaj Kelkar 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 y...