text
stringlengths
54
60.6k
<commit_before> // This file contains definition of C++ new/delete operators #include <stddef.h> #include <malloc.h> #include "stdexcept.h" namespace std { void terminate(); } typedef void (*new_handler)(); static new_handler new_handl = &std::terminate; namespace std { new_handler set_new_handler(new_ha...
<commit_before>// Copyright 2020 Global Phasing Ltd. // // merge multi-record (unmerged) data - I and sigma(I) #include <cmath> // for sqrt #include <cstdio> #include <algorithm> // for sort #include <iostream> #include <tuple> // for tie #ifndef GEMMI_ALL_IN_ONE # define GEMMI_WRITE...
<commit_before>//============================================================================ // Name : idli.cpp // Author : srini // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //=======================================================================...
<commit_before>#include "HybridAutomaton.h" //#include "MilestoneFactory.h" #include "CSpaceMilestone.h" #include "OpSpaceMilestone.h" #include <Windows.h> #include <ctime> #include <iostream> HybridAutomaton::HybridAutomaton() : MDP(), start_node_id_(NULL) { } HybridAutomaton::~HybridAutomaton() ...
<commit_before>/* * Copyright 2010-2018 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bx#license-bsd-2-clause */ #include "bx_p.h" #include <bx/mutex.h> #if BX_CONFIG_SUPPORTS_THREADING #if BX_CRT_NONE #elif BX_PLATFORM_ANDROID \ || BX_PLATFORM_LINUX \ || BX_PLATFORM_IOS ...
<commit_before>#include <fnmatch.h> #include <boost/algorithm/string/predicate.hpp> #include <chrono> #include <functional> #include <netinet/tcp.h> #include "buffer.hh" #include "logging.hh" #include "task.hh" #include "http/http_message.hh" #include "uri/uri.hh" #include "net.hh" namespace ten { //! simple http se...
<commit_before>#include <fstream> #include <iostream> #include <sstream> #include "analyzer.h" #include "ast.h" #include "compiler.h" #include "debuginfo.h" #include "disassembler.h" #include "lexer.h" #include "parser.h" #include "pt_dump.h" #include "support.h" extern void compile_cli(CompilerSupport *support, cons...
<commit_before>/******************************************************************************* ** ** Filename : templatemanagementdialog.cpp ** Created on : 05 June, 2005 ** Copyright : (c) 2005 Till Adam <adam@kde.org> ** *******************************************************************************/ /**********...
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * This file is part of the libetonyek project. * * 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 a...
<commit_before>/* (c) Gabriel L. Dunne, 2014 */ #include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ // of stuff ofSetVerticalSync(true); ofSetFrameRate(60); ofEnableDepthTest(); // settings showHelp = false; editMode = true; camMouse = false; ...
<commit_before>#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ // Global settings. ofSetWindowTitle("Presenter"); ofSetVerticalSync(true); ofEnableSmoothing(); ofSetFrameRate(60); // Position the window in the centre of the screen. ofSetWindowPosition((...
<commit_before>/// /// @file imath.hpp /// @brief Integer math functions used in primecount /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef IMATH_HPP #define IMATH_HPP #include <is...
<commit_before>// Copyright (c) 2009 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 <config.h> // When defined, different heap allocators can be used via an environment // variable set before running the progr...
<commit_before>//===- ARMConstantPoolValue.cpp - ARM constantpool value --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "ofApp.h" void nebulaEye::setup() { sender.setup(OSC_IP, OSC_PORT); video.setup(); flow.setup(); bgSub.setup(); contour.setup(); zone.setup(); displayGuiGrp.setName("display"); displayGuiGrp.add(showGui.set("show this menu",true)); displayGuiGrp.add(showVideo.set("show video"...
<commit_before>//===-- NVPTXTargetMachine.cpp - Define TargetMachine for NVPTX -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- PowerPCTargetMachine.cpp - Define TargetMachine for PowerPC -------===// // // 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>//===- RaiseAllocations.cpp - Convert %malloc & %free calls to insts ------===// // // This file defines the RaiseAllocations pass which convert malloc and free // calls to malloc and free instructions. // //===----------------------------------------------------------------------===// #include "llvm/Tr...
<commit_before><commit_msg>Added tests for AsyncSampleCollector<commit_after><|endoftext|>
<commit_before>#pragma once #include "common.hpp" #include "debug.hpp" #include <cassert> #include <climits> #include <omp.h> template<typename SizeType, typename WordType> void copy_bits(WordType* const dst, WordType const* const src, SizeType& dst_off_ref, SizeType& src_...
<commit_before>#include "allocator.hpp" template <typename T> class stack : private allocator<T> { public: stack(size_t size = 0); /*noexcept*/ stack(const stack & _stack); /*strong*/ stack& operator=(const stack & _stack); /*strong*/ size_t count() const; /*noexcept*/ void push(T const &); /*strong*/ const T & ...
<commit_before>#include <iostream> #include <algorithm> #include <stdexcept> template <typename T> class stack { public: stack()noexcept; ~stack()noexcept; stack(stack<T> const&)noexcept; stack& operator=(stack<T> const&)noexcept; size_t count()const noexcept; size_t array_size()const noexcept; void push(T cons...
<commit_before>#include "ostree.h" #include <stdio.h> #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/filesystem.hpp> #include <fstream> #include "logger.h" #include <gio/gio.h> OstreeSysroot *Ostree::LoadSysroot(co...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * cxx98IO.cpp * * Created on: Apr 5, 2018 * Author: William F Godoy godoywf@ornl.gov */ #include "cxx98IO.h" #include "cxx98IO.tcc" #include <adios2_c.h> namespace a...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon, Dane Springmeyer * * This library is free software; you can redistribute it and/or * modify it under the...
<commit_before>#include "place.hpp" #include <fstream> #include <string> #include <memory> #include <functional> #include <limits> #ifdef __OMP #include <omp.h> #endif #include "file_io.hpp" #include "jplace_util.hpp" #include "stringify.hpp" #include "set_manipulators.hpp" #include "logging.hpp" #include "Tiny_Tree...
<commit_before>#include "place.hpp" #include <fstream> #include <chrono> #include <omp.h> #include "file_io.hpp" #include "jplace_util.hpp" #include "stringify.hpp" #include "set_manipulators.hpp" #include "Log.hpp" #include "Tiny_Tree.hpp" #include "mpihead.hpp" #include "pll_util.hpp" #include "epa_pll_util.hpp" #i...
<commit_before>/* * Copyright (c) 2014 New Designs Unlimited, LLC * Opensource Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenAlpr. * * OpenAlpr is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * ver...
<commit_before>/*-------------FDTD.cpp-------------------------------------------------------// * * Finite Difference Time Domain * * Purpose: To replicate the results of our invisible lense raytracer with * FDTD. Woo! * * Notes: Most of this is coming from the following link: * htt...
<commit_before> #include "include/rdata.h" ReturnData::ReturnData() { setDefaults(); } ReturnData::ReturnData(const UserData *udata) { setDefaults(); initFields(udata); } void ReturnData::setDefaults() { ts = xdot = dxdotdp = dydx = dydp = J = z = sigmaz = sz = ssigmaz = rz = srz = s2rz = x = sx = y...
<commit_before>#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <asio.hpp> #include <cstring> #include <cassert> #include "realm.hxx" using namespace std; static const asio::ip::address_v4 nativeIpv4Address( asio::ip::address_v4::from_string("00.01.02.03")); static const asio::ip::address_v6 nativeIpv6Ad...
<commit_before>/************************************************************************** ** ** Copyright (c) 2013 BogDan Vatra <bog_dan_ro@yahoo.com> ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<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 Wes Hardaker <hardaker@users.sourceforge.net> // #include "AprsGath...
<commit_before>// // This file is part of the Marble Desktop 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 Dennis Nienhüser <earthwings@gentoo.org> // #include "signals....
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: http://www.qt-project.org/ ** ** ** GNU Lesser General Public License Usage ** ** This file may be used ...
<commit_before>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2009 - 2011 Emmanuel Benazera <ebenazer@seeks-project.info> * * 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...
<commit_before>#include <iostream> #include <stdio.h> #include <unistd.h> #include "errno.h" #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/wait.h> #include <string> #include <vector> #include <list> #include <iterator> #include "boost/tokenizer.hpp" #include "boost/al...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include "RemovableDriveManager.hpp" #include <iostream> #include <stdio.h> #include "boost/nowide/convert.hpp" #if _WIN32 #include <windows.h> #include <tchar.h> #include <winioctl.h> #include <shlwapi.h> DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x...
<commit_before>#ifndef STAN__AGRAD__FWD__FUNCTIONS__OWENS_T_HPP #define STAN__AGRAD__FWD__FUNCTIONS__OWENS_T_HPP #include <math.h> #include <stan/agrad/fwd/fvar.hpp> #include <stan/meta/traits.hpp> #include <stan/math/constants.hpp> #include <stan/math/functions/owens_t.hpp> namespace stan { namespace agrad { ...
<commit_before>//******************************************************************* // // License: MIT // // See LICENSE.txt file in the top level directory for more details. // // Author: Garrett Potts // // Description: Nitf support class // //******************************************************************** /...
<commit_before>/* * Copyright (c) 2008 James Molloy, James Pritchett, Jörg Pfähler, Matthew Iselin * * Permission to use, copy, modify, and 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 all copies. ...
<commit_before>/* ____________________________________________________________________________ Scanner Component for the Micro A Compiler mscan.h Version 2007 - 2016 James L. Richards ...
<commit_before>#include "major.hpp" using namespace std; void Major::copy(const Major &c) { name = c.name; department = c.department; requirements = c.requirements; specialRequirements = c.specialRequirements; } Major::Major() { cout << "Called Major constructor with nothing." << endl; name = "None"; departmen...
<commit_before>#include "match.hpp" #include "utilities.hpp" #include <stdio.h> //using namespace cv; Point match(const Mat &outerFrameMatrix,const Mat &innerFrameMatrix, Mat &result) { int match_method = CV_TM_CCOEFF_NORMED; int resultCols = outerFrameMatrix.cols - innerFrameMatrix.cols + 1; int result...
<commit_before>/* cpp-match-case - Code covered by the MIT License Author: mutouyun (http://darkc.at) */ #pragma once #include "capo/preprocessor.hpp" #include <utility> // std::forward #include <regex> // std::regex, std::regex_match #include <string> // std::string #include <tuple> // ...
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include "core/CompileConfig.h" #if OUZEL_SUPPORTS_DIRECTSOUND #include "AudioDeviceDS.hpp" #include "core/Engine.hpp" #include "core/windows/WindowWin.hpp" #include "utils/Log.hpp" BOOL CALLBACK enumCallback(LPGUID, LPC...
<commit_before>/* * Copyright (c) 2011-2014, 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: * * 1. Redistributions of source code must retain the above copyright notice, ...
<commit_before> #include "hierarchical_system.hpp" #include <algorithm> #include <map> #include <vector> #include "geometry/frame.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "testing_utilities/almost_equals.hpp" #include "testing_utilities/vanishes_before.hpp" namespace principia { using base::...
<commit_before>#include "ofxTCPClient.h" #include "ofAppRunner.h" //-------------------------- ofxTCPClient::ofxTCPClient(){ verbose = false; connected = false; messageSize = 0; port = 0; index = -1; str = ""; tmpStr = ""; ipAddr ="000.000.000.000"; partialPrevMsg = ""; memset(tmpBuff, 0, TCP_MAX...
<commit_before>#include <gtest/gtest.h> #include "./unordered_set.h" #include "./unordered_map.h" TEST(unordered_test, reserve) { std::size_t n = 10000; { pfi::data::unordered_set<int> us; us.reserve(n); EXPECT_GE(us.bucket_count(), std::ceil(n / us.max_load_factor())); } { pfi::data::unorde...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: c_namesp.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2007-11-02 15:26:14 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * $RCSfile: tplparam.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: np $ $Date: 2002-03-08 14:45:18 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before><commit_msg>Related fdo#84000: Improve framerate of the models.<commit_after><|endoftext|>
<commit_before>/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2...
<commit_before>#ifndef ENTT_SIGNAL_EMITTER_HPP #define ENTT_SIGNAL_EMITTER_HPP #include <type_traits> #include <functional> #include <algorithm> #include <utility> #include <cstdint> #include <memory> #include <vector> #include <list> namespace entt { /** * @brief General purpose event emitter. * * The emitter...
<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 <ros/ros.h> #include <move_base_msgs/MoveBaseAction.h> #include <actionlib/client/simple_action_client.h> #include <geometry_msgs/PoseStamped.h> #include <boost/thread/mutex.hpp> #include "std_msgs/Int32.h" // The global planner uses the actionlib to do the following: // Start in safe mode // /...
<commit_before>/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * Copyright (C) 2002-2017 Németh László * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain ...
<commit_before>// Copyright Daniel Wallin 2007. Use, modification and distribution is // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <libtorrent/extensions.hpp> #include <libtorrent/entry.hpp> #include <libtorre...
<commit_before>/* * An istream which duplicates data. * * author: Max Kellermann <mk@cm4all.com> */ #include "istream_tee.hxx" #include "istream_internal.hxx" #include "util/Cast.hxx" #include <assert.h> struct TeeIstream { struct { struct istream istream; /** * A weak output is one...
<commit_before>/* * Copyright (c) 2021, Jan de Visser <jan@finiandarcy.com> * * SPDX-License-Identifier: GPL-3.0-or-later */ #include <iomanip> #include <iostream> #include <vector> #include <core/Format.h> #include <core/StringUtil.h> #include <jv80/cpu/addressregister.h> #include <jv80/cpu/controller.h> #includ...
<commit_before>/**************************************************************************** * * Copyright (c) 2019-2020 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 me...
<commit_before>// // This file is part of the Marble Desktop 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 2007 Andrew Manson <g.real.ate@gmail.com> // #include "GpsTracking.h...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 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 2017 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>#ifndef MINIMAT_UTIL_STREAM_HPP #define MINIMAT_UTIL_STREAM_HPP #include <deque> namespace miniMAT { namespace util { template <typename ElementType> struct Stream { Stream() { stream = std::deque<ElementType>(); } template <typen...
<commit_before>/*************************************************************************** * * * Copyright (C) 2007-2013 by Johan De Taeye, frePPLe bvba * * ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2009 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>#include <iostream> #include "cjk-tokenizer.h" using namespace std; using namespace cjk; class handler : public tokenizer_handler { public: void handle_token(const std::string &tok, bool is_cjk) { cout << "Handling [" << tok << "] by handler class. " << "(CJK: " << is_cjk << ")...
<commit_before>// Copyright (c) 2017 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/renderer/renderer_client_base.h" #include <memory> #include <string> #include <vector> #include "atom/common/color_util.h" #include "atom/common/native_...
<commit_before>/** * @file * @author Jason Lingle * @date 2012.02.06 * @brief Implementation of the GameDiscoverer class */ #include <cstring> #include <SDL.h> #include "game_discoverer.hxx" #include "antenna.hxx" #include "tuner.hxx" #include "io.hxx" #include "src/globals.hxx" using namespace std; #define B...
<commit_before>#include <gtest/gtest.h> #include <fstream> #include <vector> #include <string> #include <sstream> #include <stego-crypt-lib/stego-crypt-lib.hh> TEST(StegStub, oneEqualsone) { int one = 1; EXPECT_EQ(1, one); } TEST(BMPTests, BmpValidation) { std::ifstream ifs("test/stego-crypt/test.bmp", std::ios...
<commit_before>//===--- ClangdUnit.cpp -----------------------------------------*- C++-*-===// // // 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) 2001 MandrakeSoft S.A. // // MandrakeSoft S.A. // 43, rue d'Aboukir // 75002 Paris - France // http://www.linux-mandrake.com/ // http://www.mandrakesoft.com/ // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Les...
<commit_before>#include "stdsneezy.h" #include "database.h" #include "shop.h" #include "shopowned.h" void calcBankInterest() { TDatabase db(DB_SNEEZY), in(DB_SNEEZY); float profit_sell; unsigned int shop_nr; int pretalens=0, posttalens=0; db.query("select shop_nr, keeper from shop"); while(db.fetchRow...
<commit_before>#pragma once #include <iostream> #include <chrono> #include <mutex> #include <glm/glm.hpp> #include <glm/gtc/quaternion.hpp> // Helpers namespace { // For differences between quaternions. struct AngleAxis { float angle; glm::vec3 axis; AngleAxis( float _angle=0.0f, glm::vec3 _axis={} ) ...
<commit_before>/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
<commit_before>#include <itkImageRegionConstIterator.h> #include "rtkSheppLoganPhantomFilter.h" #include "rtkDrawSheppLoganFilter.h" #include "rtkFDKConeBeamReconstructionFilter.h" #include "rtkConstantImageSource.h" #include "rtkDisplacedDetectorImageFilter.h" template<class TImage> void CheckImageQuality(typename T...
<commit_before>// packetfield.cpp #include "packetfield.h" #include <gtest/gtest.h> using namespace boostcraft::network; TEST(PacketFieldTests, ShortField) { boost::asio::streambuf b; std::ostream os(&b); os.put(0x10); os.put(0x80); uint16_t val = 0; ShortField field(val); field.readFr...
<commit_before>/* * Copyright (c) 2011 - 2017 Stephen F. Booth <me@sbooth.org> * See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information */ #include <AudioToolbox/AudioFormat.h> #include "MonkeysAudioDecoder.h" #include "CFErrorUtilities.h" #include "Logger.h" #define PLATFORM...
<commit_before>/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
<commit_before>#include "caffe2/operators/load_save_op.h" namespace caffe2 { template <> void LoadOp<CPUContext>::SetCurrentDevice(BlobProto* proto) { if (proto->has_tensor()) { proto->mutable_tensor()->mutable_device_detail()->set_device_type(CPU); } } namespace { REGISTER_CPU_OPERATOR(DBExists, DBExistsOp<...
<commit_before>/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
<commit_before>//============================================================================ // Name : Label.cpp // Authors : Julien Combattelli & Guillaume Sarthou // EMail : open.pode@gmail.com // Date : 19 avr. 2017 // Version : 1.0.0 // Copyright : This file is part of PicasoSDK pr...
<commit_before>// Copyright (c) 2014-2016 The Dash developers // Copyright (c) 2016-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "spork.h" #include "base58.h" #include "key.h" #include "m...
<commit_before><commit_msg>Revert 68291 - DCHECK to detect invalid BrokerRpcClient usage.<commit_after><|endoftext|>
<commit_before>/** \copyright * Copyright (c) 2015, 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> /* * MIT License * * Copyright (c) 2017 Susanow * Copyright (c) 2017 Hiroki SHIROKURA * * 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> /* * BSD 3-Clause License * * Copyright (c) 2017, mtezych * 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>#include <iostream> #include "SFML\Graphics.hpp" #include "Utils.h" #include "Ball.h" int main() { //You can turn off antialiasing if your graphics card doesn't support it sf::ContextSettings context; context.antialiasingLevel = 4; sf::RenderWindow window(sf::VideoMode(400, 400), "Boxes...
<commit_before>#include <ros/ros.h> #include <pcl_ros/point_cloud.h> #include <pcl/point_types.h> #include <pcl/octree/octree.h> #include <vector> #include <pcl/filters/voxel_grid.h> #include <boost/foreach.hpp> #include <ros/console.h> #include <pcl/filters/extract_indices.h> #include "std_msgs/Int64.h" typedef pcl::...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPlot.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This so...
<commit_before>/* * Copyright (c) 2014 Netflix, 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: * * Redistributions of source code must retain the above copyright notice, this * li...
<commit_before>/* Copyright (c) 2017 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, copy, ...
<commit_before>#ifndef STAN_MATH_PRIM_PROB_NEG_BINOMIAL_RNG_HPP #define STAN_MATH_PRIM_PROB_NEG_BINOMIAL_RNG_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/constants.hpp> #include <stan/math/prim/fun/max_size.hpp> #include <boost/random/gamma_distribution.hpp> #in...
<commit_before>/* Package : libhex * boundingbox.cc Created : 2008/02/24 * Author : Alex Tingle * * Copyright (C) 2008, Alex Tingle. * * This file is part of the libhex application. * * libhex is free software; you can redistribut...
<commit_before>#include "varint_vector.hpp" #include "writer.hpp" #include "reader.hpp" #include "../base/assert.hpp" namespace varint { namespace { void VarintEncode(vector<uint8_t> & dst, uint64_t n) { if (n == 0) { dst.push_back(0); } else { while (n != 0) { uint...