text
stringlengths
54
60.6k
<commit_before>/* * ArcScript Scripts for Arcemu MMORPG Server * Copyright (C) 2008-2009 Arcemu Team * Copyright (C) 2007 Moon++ <http://www.moonplusplus.com/> * * 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 Softw...
<commit_before>/** * @file strategy.hpp * @author Matheus Vieira Portela * @date 23/03/2014 * * @attention Copyright (C) 2014 UnBall Robot Soccer Team * * @brief Strategy class * * Defines strategy for robots */ #ifndef UNBALL_STRATEGY_H_ #define UNBALL_STRATEGY_H_ #include <vector> #include "robot.hpp...
<commit_before><commit_msg>change a couple local variables from float to double<commit_after><|endoftext|>
<commit_before>/************************************************************************* * Copyright (c) 2014 eProsima. All rights reserved. * * This copy of eProsima RTPS is licensed to you under the terms described in the * EPROSIMARTPS_LIBRARY_LICENSE file included in this distribution. * ********************...
<commit_before>#include "workerCL.hpp" #define __CL_DEFINE_EXCEPTIONS #include <CL/cl.hpp> #include <vector> #include <string> #include <iostream> #include "log.hpp" #include "reads.hpp" using namespace std; WorkerCL::WorkerCL(size_t platform_id, size_t device_id){ /* GPU environment preparation */ //Get plat...
<commit_before>#include "StarControl.h" #include "ObjectParticles.h" #include "Engine.h" #include "Game.h" #include "Object.h" #include "Player.h" #include "Common.h" #include "App.h" CStarControl::CStarControl(void) { m_pStarNormal = NULL; m_pStarClick = NULL; m_fViewDistance = 0.5f; m_nClickState = 0; m_fClickS...
<commit_before>#include "includes/SuperImposer.hpp" #include "includes/dcd/DCDManager.hpp" #include "includes/pdb/CGReader.hpp" using namespace coffeemill; SnapShot pickup_chain(const SnapShot& ss, const std::vector<int>& chain_ids, const std::vector<int>& chain_sizes); in...
<commit_before><commit_msg>Make test_clearEecache nondestructive<commit_after><|endoftext|>
<commit_before>#pragma once #ifndef ARRAYDELEGATE_HPP # define ARRAYDELEGATE_HPP #include <cassert> #include <cstddef> #include <memory> #include <new> #include <type_traits> #include <utility> namespace detail { struct holder { virtual ~holder() { } virtual void* get(void*) = 0; virtual void c...
<commit_before>#include "ImportMatchers.h" #include "clang/Basic/SourceManager.h" #include "clang/ASTMatchers/ASTMatchersInternal.h" #include "clang/AST/ExprObjC.h" #include "clang/Lex/Preprocessor.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> using namespace clang; using namespace clang::ast_matchers;...
<commit_before>/****************************************************************************** Copyright 2016 Allied Telesis Labs Ltd. 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. Redistribu...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: baseModel.C,v 1.15 2002/12/16 16:10:09 amoll Exp $ #include <BALL/MOLVIEW/FUNCTOR/baseModel.h> using namespace std; namespace BALL { namespace MOLVIEW { BaseModelProcessor::BaseModelProcessor() throw() : UnaryProcessor<Composi...
<commit_before>/* * Copyright(c) Records For Living, Inc. 2004-2011. All rights reserved */ #include "Stroika/Foundation/StroikaPreComp.h" #include <iostream> #include <sstream> #include "Stroika/Foundation/Debug/Assertions.h" #include "Stroika/Foundation/Debug/Trace.h" #include "Stroika/Foundation/Execution/Sleep...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2020 The Symbiflow Authors * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
<commit_before># pragma once # include <Siv3D.hpp> namespace asc { using namespace s3d; /// <summary> /// 𑗎M”\ TCPClient, TCPServer /// </summary> /// <remarks> /// M UTF-8 ōs܂B /// </remarks> template<class Socket> class TCPString : public Socket { public: /// <summary> /// 1 ǂݍ݂܂B /// </summary> ...
<commit_before><commit_msg>INTEGRATION: CWS aw035 (1.22.44); FILE MERGED 2006/07/12 15:29:52 aw 1.22.44.1: #126320# SdrMark::GetObj() -> SdrMark::GetSdrObjectFromSdrMark() for unique identification<commit_after><|endoftext|>
<commit_before><commit_msg>Remove unnecessary includes<commit_after><|endoftext|>
<commit_before><commit_msg>INTEGRATION: CWS oasisbf2 (1.29.238); FILE MERGED 2004/11/04 15:30:30 dvo 1.29.238.1: #i31024# prevent headings with outline num-rules from being written as lists (plus dependent changes for NO_NUM removal)<commit_after><|endoftext|>
<commit_before><commit_msg>INTEGRATION: CWS warnings01 (1.38.8); FILE MERGED 2006/05/23 17:16:56 sb 1.38.8.2: RESYNC: (1.38-1.39); FILE MERGED 2006/05/15 12:30:49 sb 1.38.8.1: #i53898# Made code warning-free and/or compile at all after resync to SRC680m162.<commit_after><|endoftext|>
<commit_before>/** * * Graph * * Undirected, weighted graph * https://github.com/kdzlvaids/algorithm_and_practice-pknu-2016 * */ #ifndef ALGORITHM_GRAPH_HPP_ #define ALGORITHM_GRAPH_HPP_ 1 /** Includes */ #include <cstddef> /** size_t definition */ #include <vector> /** Containers */ #include <ma...
<commit_before>#include "tests-base.hpp" #include "utf8rewind.h" TEST(DecodeUtf16, Character) { const char* i = "\xE0\xA4\x9C"; const size_t s = 256; utf16_t o[s] = { 0 }; int32_t errors = 0; EXPECT_EQ(2, utf8decodeutf16(i, strlen(i), o, s, &errors)); EXPECT_EQ(0, errors); EXPECT_EQ(0x091C, o[0])...
<commit_before>#include "StdAfx.h" #include "RawImage.h" #include "RawDecoder.h" // For exceptions /* RawSpeed - RAW file decoder. Copyright (C) 2009 Klaus Post This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Licen...
<commit_before>/** * @file * @copyright defined in eos/LICENSE */ #pragma once // #include <eosio/chain/config.hpp> #include <eosio/chain/database_utils.hpp> #include <eosio/chain/transaction.hpp> #include <fc/uint128.hpp> #include <boost/multi_index/hashed_index.hpp> #include <boost/multi_index/mem_fun.hpp> #i...
<commit_before>#include <GL/freeglut.h> #include <stdio.h> #include <math.h> #include <iostream> #include <GL/gl.h> #include <stdlib.h> #define PI 3.1415926535898 float w_width=700.0,w_height=700.0; float x=0.0,y=0.0; int s; int r; float xball=350.0,yball=350.0,a=1.0,b=1.0; float speed[5]={0.1,0.15,0.18,0.22,0.25}; i...
<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 "SkBlitMask.h" #include "SkColor.h" #include "SkColorData.h" #include "SkOpts.h" SkBlitMask::BlitLCD16RowProc SkBlitMask::BlitLCD16RowFactory(bool isO...
<commit_before>#include "ROOMLOAD.H" #include "GAMEWAD.H" #include "GPU.H" #include "LOAD_LEV.H" #include "SETUP.H" #include <assert.h> #include <stdio.h> #include <string.h> long AnimFilePos; long AnimFileLen; short* floor_data; unsigned long* SetupPtr; unsigned short ClutStartY; struct SVECTOR* RoomBBoxes; short*...
<commit_before>#include <assert.h> #include <collection.h> #include <ppltasks.h> #include <sstream> #include "Statement.h" #include "Database.h" namespace SQLite3 { StatementPtr Statement::Prepare(sqlite3* sqlite, Platform::String^ sql) { sqlite3_stmt* statement; int ret = sqlite3_prepare16(sqlite, sql->Data...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* Copyright (c) 2008-2019 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/. * * Covered Software is provided under this L...
<commit_before>#include "posixShell.h" #include <cerrno> #include <cstring> #include <glob.h> #include <limits> #include <sys/wait.h> #include <unistd.h> #include <vector> #include <wordexp.h> #include <boost/filesystem.hpp> #include <gsl/span> #include <gsl/string_span> #include "config/argv.h" #include "config/env...
<commit_before>// // Copyright (c) 2017 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include <nanoCLR_Runtime.h> //////////////////////////////////////////////////////////////////...
<commit_before>/* * Copyright (c) 2006 The Regents of The University of Michigan * 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 copyri...
<commit_before>//===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/////////////////////////////////////////////////////////////////////////// // // SneezyMUD++ 4.5 - All rights reserved, SneezyMUD Coding Team // "opal.cc" - Methods for TOpal class // // Last revision December 18, 1997. // //////////////////////////////////////////////////////////////////...
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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 // // ...
<commit_before>#include "maintenancetool.h" #include <QtCore/QCoreApplication> #include <QtCore/QDir> #include <QtCore/QDebug> MaintenanceTool::MaintenanceTool(QObject *parent) : QObject(parent) , m_state(MaintenanceTool::NotRunning) , m_hasUpdate(false) { //プロセスが開始時のシグナル connect(&m_process, SIGNAL(started()), t...
<commit_before>/****************************************************************************** * Copyright 2018 The Apollo 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 ...
<commit_before>void games() { // This macro runs three "games" that each nicely illustrate // some of the graphics capabilities of ROOT. Thanks to the // clever usage of TTimer objects it looks like they are all // executing in parallel (emulation of multi-threading). // It uses the small classes generat...
<commit_before>// This macro gets in memory an histogram from a root file // and fits a user defined function. // Note that a user defined function must always be defined // as in this example: // - first parameter: array of variables (in this example only 1-dimension) // - second parameter: array of parameters // No...
<commit_before>#include <array> #include <memory> template <class T> using ref = std::shared_ptr<T>; struct base { virtual ~base() { } }; template <class T, std::size_t... Is> static std::array<T, sizeof...(Is) + 1> push(const std::array<T, sizeof...(Is)>& firsts, T&& last) { return {std::get<Is>(firsts)...,...
<commit_before>#include "cvm.h" #include "defaults_shared.h" DabClass &DabVM::define_builtin_class(const std::string &name, dab_class_t class_index, dab_class_t superclass_index) { DabClass klass; klass.index = class_index; klass.name = name; ...
<commit_before>#include "ChSolverParallel.h" using namespace chrono; void ChSolverParallel::InitAPGD(custom_vector<real> &x) { ms.resize(x.size()); mg_tmp2.resize(x.size()); mb_tmp.resize(x.size()); mg_tmp.resize(x.size()); mg_tmp1.resize(x.size()); mg.resize(x.size()); ml.resize(x.size()); mx.resize(x.size())...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info> * * 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 the Free Software Foundation; eithe...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2004 The Apache Software Foundation. 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. Red...
<commit_before>// PARAVIS : ParaView wrapper SALOME module // // Copyright (C) 2010-2012 CEA/DEN, EDF R&D // // 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 t...
<commit_before>#include "IDatabaseEngine.h" #include "DBEngineFactory.h" #include "util/Datagram.h" #include "util/DatagramIterator.h" #include "core/logger.h" #include "core/global.h" #include "dcparser/dcSubatomicType.h" #include "dcparser/dcAtomicField.h" #include <yaml-cpp/yaml.h> #include <fstream> #include <lis...
<commit_before>//===-- MachineFunction.cpp -----------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. 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. Redistri...
<commit_before>/************************************************************************* * * $RCSfile: tdservice.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kso $ $Date: 2002-11-13 16:01:21 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>//===-- JIT.cpp - LLVM Just in Time Compiler ------------------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before> #include <string.h> #include <vector> #include <stdio.h> #include <cassert> #include <stdexcept> #include "univalue.h" using namespace std; enum tokentype { TOK_ERR = -1, TOK_NONE = 0, // eof TOK_OBJ_OPEN, TOK_OBJ_CLOSE, TOK_ARR_OPEN, TOK_...
<commit_before>//===- X86EvexToVex.cpp ---------------------------------------------------===// // Compress EVEX instructions to VEX encoding when possible to reduce code size // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // Licens...
<commit_before>//===- X86InstrInfo.cpp - X86 Instruction Information ---------------===// // // This file contains the X86 implementation of the MachineInstrInfo class. // //===----------------------------------------------------------------------===// #include "X86InstrInfo.h" #include "llvm/CodeGen/MachineInstr.h" #...
<commit_before>// RUN: %check_clang_tidy %s hicpp-exception-baseclass %t namespace std { class exception {}; } // namespace std class derived_exception : public std::exception {}; class non_derived_exception {}; void problematic() { try { throw int(42); // Built in is not allowed // CHECK-MESSAGES: [[@LINE-1]]...
<commit_before>#pragma once //=====================================================================// /*! @file @brief NSF Player クラス @n Copyright 2017 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "main.hpp" #inc...
<commit_before>#include <iostream> #include <vector> using namespace std; vector<int> multply(vector<int> a, vector<int> b); vector<int> pow_(vector<int> base, int expnt); int main() { string s; int n; while (cin >> s >> n) { vector<int> number; int dot_idx = s.find("."); int rev_dot_pos = s.size(...
<commit_before>/******************************************************************** * Description: interpl.hh * Mechanism for building lists of arbitrary NML messages, used by * the canonical interface and interpreter to pass planned sequences * to the HME. * * Derived from a work by Fred Proctor & Will Shackl...
<commit_before>#include <fstream> #include <string> #include <iostream> #include <vector> #include "io.hh" #include "str.hh" #include "conf.hh" #include "HmmSet.hh" #include "Pcgmm.hh" #include "Scgmm.hh" int info_flag; int pcgmm_flag; int scgmm_flag; int kl_flag; int old_flag; int dim; int lambda_dim; int basis_dim...
<commit_before>#include "timing.h" #include <omp.h> #include <signal.h> static rangetree<u32, u32> tree; static volatile u32 running = 0; static u32 loops = 0; enum { numhigh = 1000000, looper = 500 }; static inline u32 subrand() { return rand() % numhigh; } static void doit() { running = 1; while (running) {...
<commit_before>/* * \remark This file is part of VITA. * * \copyright Copyright (C) 2017 EOS di Manlio Morini. * * \license * 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://mozil...
<commit_before>/** \copyright * Copyright (c) 2013, Balazs Racz * 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 <cstdio> int main(){ char n[3]; int d, dd, h, hh, m, mm, s, ss; scanf("%s %d", n, &d); scanf("%d : %d : %d", &h, &m, &s); scanf("%s %d", n, &dd); scanf("%d : %d : %d", &hh, &mm, &ss); s = ss - s; m = mm - m; if (h < hh) { d = dd - d; } else { ...
<commit_before>#include <enet/enet.h> #include <map> #include "Net.h" #include "MessageDecode.h" #include "Utilities/GameTime.h" namespace Net { namespace Server { ENetHost* serverHost = NULL; typedef std::map<unsigned int, ENetPeer*> ClientMap; ClientMap clients; static unsigned int nextClientID = 1; const uint32_...
<commit_before>#pragma once //=====================================================================// /*! @file @brief delay @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <cstdint> namespace utils { //-----------------------------------------...
<commit_before>#ifndef __MODEL_HPP_INCLUDED #define __MODEL_HPP_INCLUDED // Include GLEW #ifndef __GL_GLEW_H_INCLUDED #define __GL_GLEW_H_INCLUDED #include <GL/glew.h> #endif // Include GLFW #ifndef __GLFW3_H_INCLUDED #define __GLFW3_H_INCLUDED #include <glfw3.h> #endif // Include GLM #ifndef __GLM_GLM_HPP_INCLUDED ...
<commit_before>// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>/*************************************************************************** * Copyright (C) 2003 by krecipes.sourceforge.net authors * * * * ...
<commit_before>#pragma once /* ** Copyright (C) 2013 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QI_TYPE_PROXYPROPERTY_HPP_ #define _QI_TYPE_PROXYPROPERTY_HPP_ #include <qi/log.hpp> #include <qi/property.hpp> #include <qi/anyfunction.hpp> namespace qi { /** Property proxy using AnyObject as ba...
<commit_before>// A C++ I/O streams interface to the zlib gz* functions // // Written by Bernie Bright, 1998 // Based on zlib/contrib/iostream/ by Kevin Ruland <kevin@rodin.wustl.edu> // // Copyright (C) 1998 Bernie Bright - bbright@c031.aone.net.au // // This program is free software; you can redistribute it and/or ...
<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>#include <QtWidgets> #ifdef QT_OPENGL_LIB #include <QtOpenGL/QGLWidget> #endif #include "editorView.h" using namespace qReal; EditorView::EditorView(QWidget *parent) : QGraphicsView(parent) , mMouseOldPosition() , mWheelPressed(false) , mZoom(0) , mTouchManager(this) { setRenderHint(QPainter::A...
<commit_before>/* bzflag * Copyright (c) 1993-2010 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 © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "armnnOnnxParser/IOnnxParser.hpp" #include "google/protobuf/repeated_field.h" #include <unordered_map> #include <onnx/onnx.pb.h> namespace armnn { class TensorInfo; enum class ActivationFunct...
<commit_before>// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #define NUMPY_IMPORT_ARRAY #include "numpy_interop.hpp" #include "assign.hpp" #include "init.hpp" #include "copy_from_numpy_arrfunc.hpp" #include "array_from_py.hpp" #include "array_from_py_typededuction.hpp" #inclu...
<commit_before>#include "Get.hh" #include <fstream> #include "Config.hh" ss::methods::Get::Get(const http::Request& request, http::Response* response) : request(request) { create_correct_location(); auto file = read_file(correct_location); if (file.empty()) { response->headers["code"] = "404"; response->heade...
<commit_before> #include "config.h" // boost #include <boost/filesystem.hpp> // dune-common #include <dune/common/exceptions.hh> #include <dune/common/mpihelper.hh> #include <dune/common/timer.hh> // dune-grid-multiscale #include <dune/grid/multiscale/provider/cube.hh> // dune-fem #include <dune/fem/misc/mpimanager...
<commit_before>/************************************************************************* * * $RCSfile: hyphenimp.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2003-03-26 13:02:08 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include <boost/lexical_cast.hpp> #include <iostream> #include <string> #include <sys/utsname.h> #include <unistd.h> namespace { int os_major_version(void) { struct utsname un; if (uname(&un) != 0) { return -1; } std::string release(un.release); auto pos = release.find('...
<commit_before>// // yas_ui_event_types.cpp // #include "yas_ui_event_types.h" using namespace yas; using namespace yas::ui; #pragma mark - cursor_event cursor_event::cursor_event(point pos, double const timestamp) : position(std::move(pos)), timestamp(timestamp) { } bool cursor_event::operator==(cursor_event con...
<commit_before>// $Id: options.C,v 1.18 2000/11/30 22:57:06 amoll Exp $ #include <BALL/DATATYPE/options.h> #include <stdlib.h> #include <errno.h> #include <stdio.h> #include <math.h> #include <fstream> #include <list> #include <algorithm> using namespace std; using std::ofstream; using std::ios; namespace BALL {...
<commit_before>/* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> * * Ingen 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 y...
<commit_before>/* The MIT License Copyright (c) 2013 Adrian Tan <atks@umich.edu> 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 ...
<commit_before>#pragma once #include<string> #include<cstdint> #include<fstream> #include<array> #include<vector> namespace bmslib { std::vector<std::string> split_naive(const std::string &s, char delim) { std::vector<std::string> elems; std::string item; for (char ch : s) { if (ch == delim) { if (!item....
<commit_before>// ----------------------------------------------------------------------------- // // BSD 2-Clause License // // Copyright (c) 2017, sarah authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the followin...
<commit_before>// // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // bench.cpp : spdlog benchmarks // #include "spdlog/async.h" #include "spdlog/sinks/daily_file_sink.h" #include "spdlog/sinks/null_sink.h" #include "spdlog/sinks/rotating_file_sink.h" #i...
<commit_before>//============================================================================// // File: qcan_defs.hpp // // Description: QCAN classes - Definitions // // ...
<commit_before>/* Copyright (c) 2009-2012, Intel Corporation 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 con...
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>#include "master.hpp" namespace factor { // Simple non-optimizing compiler. // This is one of the two compilers implementing Factor; the second one is // written in Factor and performs advanced optimizations. See // basis/compiler/compiler.factor. // The non-optimizing compiler compiles a quotation a...
<commit_before>/* LibMary - C++ library for high-performance network servers Copyright (C) 2011 Dmitry Shatrov 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 versi...
<commit_before>/*========================================================================= * * Copyright 2011-2013 The University of North Carolina at Chapel Hill * All rights reserved. * * Licensed under the MADAI Software License. You may obtain a copy of * this license at * * https://madai-public...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SlsPageObjectViewObjectContact.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-09 06:23:03 $ * * The Contents ...
<commit_before>// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, jschulze@ucsd.edu // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GN...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: accessibilityclient.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2007-07-18 10:06:29 $ * * The Contents of this fi...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>/* */ //#include <Windows.h> #ifndef UNICODE #define UNICODE #endif #ifndef _UNICODE #define _UNICODE #endif //#include <winhttp.h> //Base64 Encoding #include "WinHttpClient.h" #include <wincrypt.h> #include <stdint.h> #include <sstream> #include <vector> #include "getopt.h" #pragma comment(lib,"crypt3...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>/* * TTBlue Data Object Base Class * Copyright © 2008, Timothy Place * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTDataObject.h" #include "TTEnvironment.h" #include "TTMatrixArray.h" /**********************...
<commit_before>#include <boost/python.hpp> #include <string> /* VK HEADERS */ #include "version.h" #include "node.h" using namespace boost::python; using valkyrie::Version; using valkyrie::Node; BOOST_PYTHON_MODULE (pyvalkyrie) { // version class_<Version>("Version", no_init) .def("major", &Vers...
<commit_before>/* * DesktopWebPage.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero Genera...