text
stringlengths
54
60.6k
<commit_before>// Copyright 2018 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 require...
<commit_before>/** * There are two member functions in storage_t class which you need to use to operate with * prepared statements: storage_t::prepare and storage_t::execute. * Also if you need to rebind arguments just use get<N>(statement) = ... syntax * just like you do with std::tuple. * Once a statement i...
<commit_before>// @(#)root/graf2d:$Id$ // Author: Sergey Linev <s.linev@gsi.de>, 2019-10-04 #include "gtest/gtest.h" #include "ROOT/RStyle.hxx" #include "ROOT/RDrawable.hxx" #include "ROOT/RAttrText.hxx" #include "ROOT/RAttrLine.hxx" #include "ROOT/RAttrBox.hxx" using namespace ROOT::Experimental; class CustomDr...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkContourFilter.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redistr...
<commit_before><commit_msg>ui: fix borders missing from height calculation<commit_after><|endoftext|>
<commit_before>#include <x0/process.hpp> #include <boost/asio.hpp> #include <string> #include <cstdlib> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <unistd.h> namespace x0 { /** invokes \p cmd until its not early aborted with EINTR. */ #define EINTR_LOOP(rv, cmd) \ do { \ ...
<commit_before>// -*-c++-*- #include <osgProducer/Viewer> #include <osgDB/ReadFile> #include <osg/Geode> #include <osg/Geometry> #include <osg/StateSet> #include <osg/Material> #include <osg/Texture2D> #include <osg/TextureRectangle> #include <osg/TexMat> #include <osg/CullFace> #include <osg/ImageStream> #include ...
<commit_before>/* Copyright (c) 2017, Vadim Malyshev, lboss75@gmail.com All rights reserved */ #include "stdafx.h" #include "network_service.h" #include "private/network_service_p.h" #include "tcp_network_socket.h" #include "udp_socket.h" #include "service_provider.h" #include "logger.h" #include <iostream...
<commit_before>#include "LocalizationResult.hpp" #include <openMVG/cameras/Camera_Pinhole_Radial.hpp> #include <openMVG/numeric/numeric.h> #include <openMVG/sfm/pipelines/localization/SfM_Localizer.hpp> #include "testing/testing.h" #include <third_party/stlplus3/filesystemSimplified/file_system.hpp> #include <vector>...
<commit_before>/* This file is part of the KDE project Copyright (C) 2002-2003 Daniel Molkentin <molkentin@kde.org> Copyright (C) 2004 Michael Brade <brade@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published b...
<commit_before>#include <string> #include <iostream> #include <mutex> #include <condition_variable> #include <atomic> #include <list> #include <thread> #include <exception> #include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/asio/serial_port.hpp> #include <boost/asio/write.hpp> #include <boost/asio/rea...
<commit_before>/* * Copyright 2018 The Kythe 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...
<commit_before>#include "Mesh.hxx" #include "setup_constraints.hxx" #include "../../sdp_solve.hxx" #include "../../ostream_set.hxx" #include "../../ostream_map.hxx" #include "../../ostream_vector.hxx" #include "../../set_stream_precision.hxx" namespace { void copy_matrices(const std::vector<El::DistMatrix<El::BigFl...
<commit_before>/* Copyright (C) 2001-2011 by Serge Lamikhov-Center 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, copy, ...
<commit_before><commit_msg>Vulkan: Increase Fence Wait Time<commit_after><|endoftext|>
<commit_before>/* * SM2 Encryption * (C) 2017 Ribose Inc * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/sm2_enc.h> #include <botan/internal/point_mul.h> #include <botan/pk_ops.h> #include <botan/keypair.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> #include <bota...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: imap3.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2007-06-27 21:51:21 $ * * The Contents of this file are made ava...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>/************************************************************************* * * $RCSfile: hints.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2004-11-16 15:38:18 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: flyfrm.hxx,v $ * * $Revision: 1.22 $ * * last change: $Author: vg $ $Date: 2007-10-22 15:10:53 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: bookmark.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2007-09-27 11:54:32 $ * * The Contents of this file are made ...
<commit_before><commit_msg>sal_uInt16 to sal_(u)Int32 + some constifications<commit_after><|endoftext|>
<commit_before><commit_msg>drop unused helpids fully<commit_after><|endoftext|>
<commit_before>#include "ros_video_components/ros_signal_strength.hpp" #define RECT_X 0 #define RECT_Y 0 #define RECT_WIDTH RECT_X*40 #define RECT_HEIGHT 150 #define MAXDATA 100 #define MAXNUM 5 #define NUMCOLOR 3 #define GREEN 4 #define YELLOW 2 #define RED 1 #define HASH MAXDATA/MAXNUM #define TOO_WEAK MAXDATA/20 R...
<commit_before>/************************************************************************* * * $RCSfile: view1.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: kz $ $Date: 2004-10-04 19:32:53 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include "options.h" namespace nng { options::options() { } option_names::option_names() { } const std::string option_names::socket_name = NNG_OPT_SOCKNAME; const std::string option_names::compat_domain = NNG_OPT_DOMAIN; const std::string option_names::raw = NNG_OPT_RAW; ...
<commit_before>// [WriteFile Name=FeatureLayerDefinitionExpression, Category=Features] // [Legal] // Copyright 2016 Esri. // 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.apach...
<commit_before>/* * Copyright (c) 2010 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementati...
<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>// // @file ensemble.cpp // // #include "ensemble.h" #include "plugin_factory.h" #include <numeric> #include <stddef.h> #include <stdint.h> #define HIMAN_AUXILIARY_INCLUDE #include "fetcher.h" #undef HIMAN_AUXILIARY_INCLUDE namespace { std::vector<double> RemoveMissingValues(const std::vector<double>...
<commit_before>// Author: Valeri Fine 21/01/2002 /**************************************************************************** ** $Id$ ** ** Copyright (C) 2002 by Valeri Fine. Brookhaven National Laboratory. ** All rights reserved. ** ** This file may be distributed under the terms ...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "cling/In...
<commit_before>#include "encoder.h" #include "reader_util.h" #include "scope_guard.h" #include <exception> #ifdef LCF_SUPPORT_ICU # include <unicode/ucsdet.h> # include <unicode/ucnv.h> #else # ifdef _MSC_VER # error MSVC builds require ICU # endif #endif #ifdef _WIN32 # define WIN32_LEAN_AND_MEAN # ...
<commit_before>//===-- lib/MC/Disassembler.cpp - Disassembler Public C Interface ---------===// // // 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) 2015 Luke San Antonio * All rights reserved. */ #include "sdl_helper.h" #include "common/log.h" namespace redc { SDL_Init_Lock::SDL_Init_Lock(SDL_Init_Lock&& l) : window(l.window), gl_context(l.gl_context) { l.window = null...
<commit_before>#include <iostream> #include <vector> #include <math.h> using namespace std; vector <char> characters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E'...
<commit_before>/* * Copyright (C) 2015 deipi.com LLC and contributors. 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 limit...
<commit_before>#include "serializer.h" #include <cmath> #include <cstdint> #include <cstdlib> #include <limits> namespace rapscallion { void serializer<std::uint_least64_t>::write(Serializer& s, std::uint_least64_t value) { while (value >= 0x80) { s.addByte((uint8_t)(value & 0x7F) | 0x80); value >>= 7; } ...
<commit_before>// // Copyright 2015 The ANGLE 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. // // deqp_libtester_main.cpp: Entry point for tester DLL. #include <cstdio> #include <iostream> #include "angle_deqp_libtester.h"...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xexptran.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: obo $ $Date: 2006-10-12 14:37:39 $ * * The Contents of this file are made...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2021 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>/************************************************************************* * * $RCSfile: xmlerror.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: dvo $ $Date: 2001-09-24 14:05:33 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/diag/prdf/common/plat/mem/prdfMemRowRepair.C $ ...
<commit_before>#include "Program.hpp" Program::Program(std::vector<std::string> args) { if (!args.size()) { throw std::runtime_error("Invalid number of arguments!"); } csv_file = args[0]; } Program::~Program() { } int Program::run() { char path[FILENAME_MAX]; if (!GetCurrentDir(path...
<commit_before>//===- PPC32RegisterInfo.cpp - PowerPC32 Register Information ---*- C++ -*-===// // // 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 <mpi.h> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <time.h> #include "string.h" #include "assert.h" #include <iostream> #include <vector> #include "tau.h" #define MAX_NAME_LENGTH 38 int main_argc=-1; char ** main_argv; MPI_Comm comm; double excl_time; double complete_...
<commit_before>// // PCMTrack.cpp // Clock Signal // // Created by Thomas Harte on 10/07/2016. // Copyright 2016 Thomas Harte. All rights reserved. // #include "PCMTrack.hpp" #include "../../../NumberTheory/Factors.hpp" #include "../../../Outputs/Log.hpp" using namespace Storage::Disk; PCMTrack::PCMTrack() : seg...
<commit_before>/** * Copyright (c) 2016-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>/* * Copyright (C) 2005 Ryan Nickell <p0z3r @ earthlink . net> * * This file is part of SuperKaramba. * * SuperKaramba 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 ...
<commit_before>/* * Copyright (C) 2008-2013 The Communi Project * * 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. * * Th...
<commit_before>/************************************************************************* * * $RCSfile: breakit.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: jp $ $Date: 2001-09-28 16:54:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* bzflag * Copyright (c) 1993 - 2008 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 COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>// // File: crosscorrelate.cc // Author: ruehle // // Created on May 22, 2007, 5:42 PM // #include <fftw3.h> #include "crosscorrelate.h" /** \todo clean implementation!!! */ void CrossCorrelate::AutoCorrelate(DataCollection<double>::selection *data, bool average) { size_t N = (*data)[0].size...
<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><commit_msg>toxinit.hxx included by nothing<commit_after><|endoftext|>
<commit_before>#include "machineInteractionTask.h" machineInteractionTask::machineInteractionTask(): setMachineStateChannel (this, "set_Machine_State_Channel"), clock (this, 500 MS, "MIT_clock"), Uart(), listeners(), currentState(), setState() {} void machineInteractionTask::addMachineStateListener( ...
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2008/11/01 // Author: Mike Ovsiannikov // // Copyright 2008-2011,2016 Quantcast Corporation. All rights reserved. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache Licen...
<commit_before>/* * SimpleRenderEngine (https://github.com/mortennobel/SimpleRenderEngine) * * Created by Morten Nobel-Jørgensen ( http://www.nobel-joergensen.com/ ) * License: MIT */ #include "sre/Camera.hpp" #include "sre/impl/GL.hpp" #include "sre/Renderer.hpp" #include <glm/gtc/matrix_transform.hpp> #inc...
<commit_before>#include "machineInteractionTask.h" #include <iostream> machineInteractionTask::machineInteractionTask(): RTOS::task(5,"machine interaction"), machineInstructionChannel (this,"machineInstructionChannel"), clock (this, 500 MS, "MIT_clock"), currentState(), setState(), Uart(), listeners() {}...
<commit_before> #include <gnutls/gnutls.h> #include <gnutls/x509.h> #include "utils_p.h" #include "keybuilder.h" QT_BEGIN_NAMESPACE_CERTIFICATE /*! \class KeyBuilder \brief The KeyBuilder class is a tool for creating QSslKeys. The KeyBuilder class provides an easy way to generate a new private key for an X...
<commit_before>/************************************************************************* * * $RCSfile: AccessibleShapeTreeInfo.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: af $ $Date: 2002-05-06 13:13:45 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/*! * @file File stateTitle.cpp * @brief Implementation of the class StateTitle * * Auxiliary documentation * @sa stateTitle.hpp */ #include <stateTitle.hpp> #include <camera.hpp> #include <complib.hpp> #include <game.hpp> #include <inputManager.hpp> #include <stateStage.hpp> #include <stateEditor.hp...
<commit_before>// -*- mode: c++; coding: utf-8; -*- // state_space.hh - State space // Copyright (C) 2013 Seiji Kumagai // 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 restricti...
<commit_before>// --------------------------------------------------------------------------- // // This file is part of the <kortex> library suite // // Copyright (C) 2017 Engin Tola // // See LICENSE file for license information. // // author: Engin Tola // e-mail: engintola@gmail.com // web : http://www.engintola....
<commit_before>// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #include <exception> #include <iostream> #include <string> #include <boost/thread.hpp> #include <boost/python.hpp> #include "anh/logger.h" #include "swganh/app/swganh_app.h" ...
<commit_before>#include "taskqueuer.h" WARNINGS_DISABLE #include <QCoreApplication> #include <QEventLoop> #include <QVariant> WARNINGS_ENABLE #include "cmdlinetask.h" /*! Track info about tasks. */ struct TaskMeta { /*! Actual task. */ CmdlineTask *task; /*! Does this task need to be the only one happeni...
<commit_before>/* * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood * 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 *...
<commit_before>// (C) Copyright Ullrich Koethe 2001, Gennadiy Rozental 2001-2002. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim ...
<commit_before>#include <puppet/runtime/string_interpolator.hpp> #include <puppet/parser/parser.hpp> #include <boost/format.hpp> #include <codecvt> #include <cctype> #include <sstream> using namespace std; using namespace puppet::lexer; using namespace puppet::parser; using namespace puppet::runtime::values; namespac...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>#include <vector> #include <unordered_map> #include <blackhole/attribute/view.hpp> #include "global.hpp" using namespace blackhole; using aux::iterator::join_t; using aux::iterator::invalidate_tag; #define TEST_JOIN_ITERATOR(Suite, Case) \ TEST(join_t##_##Suite, Case) TEST_JOIN_ITERATOR(Cons, Co...
<commit_before>//@author A0094446X #include "stdafx.h" #include <QApplication> #include <QList> #include "you_main_gui.h" #include "system_tray_manager.h" YouMainGUI::SystemTrayManager::~SystemTrayManager() { } void YouMainGUI::SystemTrayManager::setup() { createActions(); setIcon(); makeContextMenu(); connectTra...
<commit_before>#include <gmock/gmock.h> #include <gtest/gtest.h> #include <sauce/sauce.h> using ::testing::Sequence; using ::testing::Return; namespace sauce { namespace test { struct Chasis {}; struct CoupChasis: public Chasis {}; struct Engine {}; struct HybridEngine: public Engine {}; struct Vehicle ...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include "../common/mesh.h" #include "../common/mesh_load.h" #include "../common/software_mesh.h" #include <sstream> #define CATCH_CONFIG_MAIN #include "catch/catch.hpp" TEST_CASE("Face index string is properly parsed", "[struct Fa...
<commit_before> // Copyright 2010-2012 University of Washington. All Rights Reserved. // LICENSE_PLACEHOLDER // This software was created with Government support under DE // AC05-76RL01830 awarded by the United States Department of // Energy. The Government has certain rights in the software. #include <boost/test/unit...
<commit_before>//////////////////////////////////////////////////////////////////////// // This file is part of Grappa, a system for scaling irregular // applications on commodity clusters. // Copyright (C) 2010-2014 University of Washington and Battelle // Memorial Institute. University of Washington authorizes use ...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<commit_before>/* * Response.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 General Publ...
<commit_before>// Copyright 2020 Tangent Animation // // 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 appl...
<commit_before>//--------------------------------------------------------- // Copyright 2020 Ontario Institute for Cancer Research // Written by Jared Simpson (jared.simpson@oicr.on.ca) // // nanopolish fast5-check - check fast5 files for common // I/O problems // //-----------------------------------------------------...
<commit_before>/* latexguiclient.cpp - Kopete Latex plugin Copyright (c) 2003-2005 by Olivier Goffart <ogoffart@kde.org> Kopete (c) 2003-2005 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>#include <sdl/SDLWindow.hpp> #include <Assets.hpp> #include <gl/Program.hpp> #include <gl/VAO.hpp> #include <array> #include <exception> using namespace std; using namespace tetra; struct Vertex { array<float, 2> pos; Vertex() = default; Vertex(float x, float y) : pos{x, y} {} }; void sd...
<commit_before>// Copyright 2011 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 require...
<commit_before>/* -*- mode:linux -*- */ /** * \file grid_world.cc * * * * \author Ethan Burns * \date 2008-10-08 */ #include <iostream> #include <stdlib.h> #include <string.h> #include "grid_state.h" #include "grid_world.h" using namespace std; /** * Create a new GridWorld. */ GridWorld::GridWorld(const H...
<commit_before>/* Copyright 2018 The TensorFlow 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 appl...
<commit_before>/* Copyright (c) 2015, AOYAMA Kazuharu * All rights reserved. * * This software may be used and distributed according to the terms of * the New BSD License, which is incorporated herein by reference. */ #include <QUuid> #include <TWebSocketEndpoint> #include <TWebApplication> #include "twebsocket.h...
<commit_before>/** * @file consensushash.cpp * * This file contains the function to generate consensus hashes. */ #include "omnicore/consensushash.h" #include "omnicore/dex.h" #include "omnicore/log.h" #include "omnicore/omnicore.h" #include <stdint.h> #include <string> #include <openssl/sha.h> namespace master...
<commit_before>#ifndef HEX_STR_HPP #define HEX_STR_HPP #include <string> template <typename FwdIt> std::string hex_str(FwdIt first, FwdIt last) { static_assert(sizeof(typename std::iterator_traits<FwdIt>::value_type) == 1, "value_type must be 1 byte."); constexpr const char *bytemap = "0123456789a...
<commit_before>#include <bitcoin/bitcoin.hpp> #include <obelisk/obelisk.hpp> #include "config.hpp" #include "util.hpp" using namespace bc; using std::placeholders::_1; using std::placeholders::_2; typedef std::vector<payment_address> payaddr_list; std::atomic_uint fetch_count(0); void history_fetched(const payment_...
<commit_before>/** * Copyright (c) 2014, 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>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <graph/is_club.hh> #include <limits> using namespace parasols; auto parasols::is_club(const Graph & graph, int k, const std::set<int> & members) -> bool { std::vector<std::vector<int> > distances((graph.size())); for (auto & d : distanc...
<commit_before>// Copyright (c) 2015 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #ifndef OPENMVG_GEOMETRY_POSE3_H_ #define OPENMVG_GEOMETRY_POSE3...
<commit_before>#include "dynamic_buffer_iterator.hh" namespace Kakoune { DynamicBufferIterator::DynamicBufferIterator(const Buffer& buffer, BufferPos position) : BufferIterator(buffer, position) { register_ifp(); } DynamicBufferIterator::DynamicBufferIterator(Dyna...
<commit_before>///////////////////////////////////////////////////////////////////////////// // Original authors: SangGi Do(sanggido@unist.ac.kr), Mingyu Woo(mwoo@eng.ucsd.edu) // (respective Ph.D. advisors: Seokhyeong Kang, Andrew B. Kahng) // Rewrite by James Cherry, Parallax Software, Inc. // BSD 3-Clause ...
<commit_before>#include "mesh.h" #include <iostream> #include "gl/vertexLayout.h" Mesh::Mesh():m_drawMode(GL_TRIANGLES) { } Mesh::Mesh(const Mesh &_mother):m_drawMode(_mother.getDrawMode()) { add(_mother); } Mesh::~Mesh() { } void Mesh::setDrawMode(GLenum _drawMode) { m_drawMode = _drawMode; } void Mes...
<commit_before>// // EEPreferences.cpp // ee-library // // Created by Zinge on 2/27/17. // // #include "ee/cocos/EEPreferences.hpp" #include <base/CCDirector.h> #include <base/CCScheduler.h> #include <platform/CCFileUtils.h> #include <json/document.h> #include <json/stringbuffer.h> #include <json/writer.h> #incl...
<commit_before>/* * Adapted from the Willow Garage pose_graph package by Paul Furgale on October 22, 2010. * * Original file: * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
<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>/* * Author: Henry Bruce <henry.bruce@intel.com> * Copyright (c) 2015 Intel Corporation. * * 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 ...
<commit_before> #include "BSPLoad.h" #include <fstream> bool BSPLoad::Load(const std::string& filename, int curveTesselation) { std::ifstream file(filename.c_str(),std::ios::binary); if(!file.is_open()) { //errorLog.OutputError("Unable to open %s", filename); return false; } //read ...