text
stringlengths
54
60.6k
<commit_before>#include "test_services.hpp" #define BOOST_TEST_MODULE #include <boost/test/included/unit_test.hpp> #include <iterator> BOOST_AUTO_TEST_CASE( service_without_any_characteristic_results_in_one_attribute ) { const auto number = empty_service::number_of_attributes; BOOST_CHECK_EQUAL( 1u, number )...
<commit_before>/**************************************************************************** * * Copyright (c) 2012-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>#pragma once #include <cstdint> #include <vector> #include <string> namespace rtp { /// Max packet size. This is limited by the CC1201 buffer size. static const unsigned int MAX_DATA_SZ = 120; const uint8_t BROADCAST_ADDRESS = 0; const uint8_t BASE_STATION_ADDRESS = 1; const uint8_t LOOPBACK_ADDRESS...
<commit_before>/* * GameKeeper Framework * * Copyright (C) 2013 Karol Herbst <[email protected]> * * 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 ...
<commit_before>/** * @file logging.cpp * @brief Logging class * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth in the Terms of...
<commit_before>/* * Copyright © 2010 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 without limitation * the rights to use, copy, mod...
<commit_before>// NOTE/NUANCE: When including WITHIN a library, no sub-dir prefix is needed. #include "uber-library-example.h" // Constructor UberLibraryExample::Pin::Pin(int _number) { number = _number; state = LOW; } // Initializers that should be called in the `setup()` function void UberLibraryExample::Pin::b...
<commit_before><?hh /* include('b/blackhole.hh'); include('p/log.hh'); require('p/header.hh'); require('p/forms.hh'); require('p/footer.hh'); require('p/aws.hh'); require('p/aws_constants.hh'); */ function get_num_links(): string{ $dyclient = mk_aws()->get('DynamoDb'); $result = $dyclient->describeTable( array(...
<commit_before>/* Copyright (C) 2005-2008, Thorvald Natvig <[email protected]> Copyright (C) 2007, Sebastian Schlingmann <[email protected]> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following con...
<commit_before>#include "Halide.h" #include <stdio.h> #include "clock.h" using namespace Halide; // 32-bit windows defines powf as a macro, which won't work for us. #ifdef WIN32 extern "C" __declspec(dllexport) float pow_ref(float x, float y) { return pow(x, y); } #else extern "C" float pow_ref(float x, float y) ...
<commit_before> #include <iostream> #include <cstdlib> #include <fstream> #include <sstream> #include <cmath> #include <cassert> #include <iomanip> #include <cstdio> #include <utility> #include <algorithm> #include <ios> #include <limits> #include <stdint.h> #include <vector> #include <string> #include <cstring> #inc...
<commit_before>/************************************************************************** * * Copyright 2013-2014 RAD Game Tools and Valve Software * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "S...
<commit_before><commit_msg>Fixing scaling problems with karts<commit_after><|endoftext|>
<commit_before>// commodconverter.cc // Implements the CommodConverter class #include "commodconverter.h" namespace commodconverter { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CommodConverter::CommodConverter(cyclus::Context* ctx) : cyclus::Facility(ctx) { cyclus::Warn<cyc...
<commit_before>/* * karm * This file only: Copyright (C) 1999 Espen Sand, [email protected] * Modifications (see CVS log) Copyright (C) 2000 Klarlvdalens * Datakonsult AB <[email protected]>, Jesper Pedersen <[email protected]> * * * This program is free software; you can redistribute it and/or modify ...
<commit_before>#pragma once #include <QString> #include <QtGlobal> #define CHATTERINO_VERSION "2.2.3-beta2" #if defined(Q_OS_WIN) # define CHATTERINO_OS "win" #elif defined(Q_OS_MACOS) # define CHATTERINO_OS "macos" #elif defined(Q_OS_LINUX) # define CHATTERINO_OS "linux" #elif defined(Q_OS_FREEBSD) # de...
<commit_before>#pragma once #include <http_parser.h> // #include <iostream> // TODO: remove #include <stdexcept> #include <string> #include <map> #include <sstream> #include <deque> #include <type_traits> #include <functional> #include <iterator> #include <cassert> namespace http { class Request; using Headers = st...
<commit_before>#include <dropwhile.hpp> #include <vector> #include <iostream> using iter::dropwhile; int main() { std::vector<int> ivec{1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4}; for (auto i : dropwhile([] (int i) {return i < 5;}, ivec)) { std::cout << i << '\n'; } return 0; } <commit_msg>Adds test...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_util.h" #include "base/logging.h" #include "base/path_service.h" #include "base/process_util.h" #include "base/shar...
<commit_before>#include "coldstakingpage.h" #include "bitcoinunits.h" #include "coldstakinglistfilterproxy.h" #include "coldstakinglistitemdelegate.h" #include "coldstakingmodel.h" #include "guiconstants.h" #include "guiutil.h" #include "main.h" #include "newstakedelegationdialog.h" #include "optionsmodel.h" #include...
<commit_before>/// \file ROOT/TDrawingOptsBase.hxx /// \ingroup Gpad ROOT7 /// \author Axel Naumann <[email protected]> /// \date 2017-09-26 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /*********************************************...
<commit_before> // Copyright (c) 2012, 2013 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_FEATURES_FEATURE_HPP #define OPENMVG_FEAT...
<commit_before>#include <mjolnir/input/read_input_file.hpp> int main(int argc, char** argv) { if(argc != 2) { std::cerr << "Usage: " << argv[0] << " <input.toml>" << std::endl; return 1; } auto simulator = mjolnir::read_input_file(std::string(argv[1])); simulator->initialize(); ...
<commit_before>// bdlma_guardingallocator.cpp -*-C++-*- #include <bdlma_guardingallocator.h> #include <bsls_ident.h> BSLS_IDENT_RCSID(bdlma_guardingallocator_cpp,"$Id$ $CSID$") #include <bsls_alignmentutil.h> #include <bsls_assert.h> #include <bsls_atomic.h> #include <bsls_excep...
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // operator_to_plan_transformer.cpp // // Identification: src/optimizer/operator_to_plan_transformer.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //==...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: lexer.cpp // Purpose: Implementation of wxExLexer class // Author: Anton van Wezenbeek // Copyright: (c) 2014 Anton van Wezenbeek ///////////////////////////////////////////////////////////////////////////...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // See the corresponding header file for description of the functions in this // file. #include "install_util.h" #include <alg...
<commit_before>#include <SDL2/SDL.h> #include <string> #include "spinner/misc.hpp" #include <exception> #include <stdexcept> #define Assert(expr) AssertMsg(expr, "Assertion failed") #define AssertMsg(expr, msg) { if(!(expr)) throw std::runtime_error(msg); } #define SDLW_Check sdlw::CheckSDLError(__LINE__); #ifdef DEBU...
<commit_before>#include "MyArea.h" #include "figuras/Arco.h" #include "figuras/Circulo.h" #include "figuras/Elipse.h" #include "figuras/Quadrado.h" #include "figuras/Retangulo.h" #include <cstdlib> #include <ctime> #include <iostream> using namespace Gtk; using namespace std; MyArea::MyArea() { tempo = false; ...
<commit_before>#include <Energia.h> #include "inc/hw_gpio.h" #include "driverlib/rom_map.h" #include "driverlib/prcm.h" #include "driverlib/interrupt.h" #include "driverlib/systick.h" #include <driverlib/utils.h> #include "inc/hw_hib1p2.h" #include "inc/hw_hib3p3.h" extern void (* const g_pfnVectors[])(void); extern ...
<commit_before>/** * Copyright 2017 Shusheng Shao <[email protected]> * * 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 r...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>#include <kernel/ext2.h> #include <kernel/ata.h> #include <kernel/panic.h> Ext2::Ext2(Pager *pager, uint32_t lba) : pager(pager), lba(lba) { ata_pio_read(lba + 1024 / 512, 2, &this->superblock); if(this->superblock.base.signature != SUPERBLOCK_SIGNATURE) { kernel_panic("invalid ext2 superblock signa...
<commit_before>#include <cstdio> #include <cstdlib> #include <unistd.h> #include <string> #include <string.h> #include <csignal> #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/wait.h> #include <dirent.h> #include <fcntl.h> #include <errno.h> #include <functional> #include <unorder...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#pragma once #include "acmacs-base/fmt.hh" #include "acmacs-base/rjson.hh" #include "acmacs-base/flat-map.hh" // ---------------------------------------------------------------------- namespace acmacs::settings::inline v2 { class error : public std::runtime_error { using std::runtime_e...
<commit_before>#include <algorithm> #include <functional> #include <iomanip> #include "hidb.hh" #include "variant-id.hh" #include "vaccines.hh" // ---------------------------------------------------------------------- #pragma GCC diagnostic push #ifdef __clang__ #pragma GCC diagnostic ignored "-Wexit-time-destructor...
<commit_before>#include "RenderCameraSystem.hpp" #include <Components/CameraComponent.hpp> #include <Components/SpotLight.hh> #include <Components/DirectionalLightComponent.hh> #include <Components/Light.hh> #include <Core/Engine.hh> #include <Core/AScene.hh> #include <glm/gtc/matrix_transform.hpp> #include <BFC/BF...
<commit_before>enum Atom { atomRegister, atomSum, atomDereference, atomByte, atomWord, atomMov, atomPop, atomALU, atomOut, atomXchg, atomSegmentOverride, atomInc, atomJCond, atomJmp }; #include "unity/symbol.h" static const int c = 52; static const int s = 22;...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved */ #include "../../StroikaPreComp.h" #include <cstdio> #if qPlatform_POSIX #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/if.h> #include <neti...
<commit_before>//===--- driver.cpp - Swift Compiler Driver -------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/****************************************************************************** * * Project: integrating laszip into liblas - http://liblas.org - * Purpose: * Author: Martin Isenburg * isenburg at cs.unc.edu * ********************************************************************...
<commit_before>#include <shogun/features/Labels.h> #include <shogun/io/StreamingAsciiFile.h> #include <shogun/io/SGIO.h> #include <shogun/features/StreamingDenseFeatures.h> #include <shogun/features/DenseFeatures.h> #include <shogun/multiclass/MulticlassOneVsOneStrategy.h> #include <shogun/machine/LinearMulticlassMachi...
<commit_before>/**\file * \ingroup example-programmes * \brief FaaS: Fortune as a Service * * Call it like this: * \code * $ ./fortuned http:localhost:8080 * \endcode * * With localhost and 8080 being a host name and port of your choosing. Then, * while the programme is running. * * \copyright * Copyright ...
<commit_before>#include "command.hh" #include "shared.hh" #include "store-api.hh" #include "sync.hh" #include "thread-pool.hh" #include <atomic> using namespace nix; struct CmdCopy : StorePathsCommand { std::string srcUri, dstUri; CheckSigsFlag checkSigs = CheckSigs; CmdCopy() { mkFlag(0, "...
<commit_before>#include "notebook.h" #include "logging.h" #include "sourcefile.h" #include "singletons.h" #include <fstream> #include <regex> #include "cmake.h" #if GTK_VERSION_GE(3, 18) #include "gtksourceview-3.0/gtksourceview/gtksourcemap.h" #endif #include <iostream> //TODO: remove using namespace std; //TODO: re...
<commit_before>// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium Authors // // 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 limi...
<commit_before>/* * PixBinarizer.cpp * * Created on: Jul 8, 2014 * Author: renard */ #include "PixBinarizer.h" #include <stdio.h> #include <iostream> #include <sstream> #include <cmath> #include "image_processing.h" using namespace std; PixBinarizer::PixBinarizer(bool debug) { mDebug= debug; } int PixB...
<commit_before>// Catch #include <catch.hpp> #include <helper.hpp> // C++ Standard Library #include <cmath> // Mantella #include <mantella> template <typename ParameterType> class MockDistanceFunction : public mant::DistanceFunction<ParameterType>{ public: ParameterType getDistanceImplementation( const...
<commit_before>/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: include/eos/fitting/linear_shape_fitting.hpp * * Copyright 2014, 2015 Patrik Huber * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
<commit_before>#ifndef TEST_VECTOR_DS_HPP #define TEST_VECTOR_DS_HPP #include <boost/test/unit_test.hpp> #include <iostream> #include "types/vector_ds.hpp" int ITEM_COUNTER = 0; class Item { public: Item() : Item(-1) {} Item(const int& val) : value(val) { id = ITEM_COUNTER; ++ITEM_COUNTER; ...
<commit_before>/** * @file ReactorFactory.cpp */ // Copyright 2006 California Institute of Technology #include "cantera/zeroD/ReactorFactory.h" #include "cantera/zeroD/Reservoir.h" #include "cantera/zeroD/Reactor.h" #include "cantera/zeroD/FlowReactor.h" #include "cantera/zeroD/ConstPressureReactor.h" using name...
<commit_before>/* * Mod.cpp * OpenLieroX * * Created by Albert Zeyer on 08.12.09. * code under LGPL * */ #include <boost/bind.hpp> #include "Mod.h" #include "CGameScript.h" #include "FindFile.h" #include "Options.h" #include "util/macros.h" #include "ConfigHandler.h" #include "DeprecatedGUI/CCombobox.h" #in...
<commit_before>#include "gfx.h" #include <FreeImage.h> #ifdef _RASPI #include <GLES2/gl2.h> #else #include <GL/glew.h> #endif using namespace gfx; Image::Image(const _priv&, uint32_t w, uint32_t h, uint8_t* pixmap) : _pixmap(pixmap), _width(w), _height(h) { _tex = 0; } Image::~Image() { free(_pixmap); ...
<commit_before>// Copyright 2015 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>/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include <vistk/pipeline/schedule.h> #include <vistk/pipeline/schedule_excepti...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / __...
<commit_before>// // Created by mistlight on 1/28/2017. // #include <src/core/tasks/PlayerScanTask.h> #include <QDebug> #include <include/vlc/vlc.h> #include <src/simple-lib/ThreadPool.h> #include <QThread> #include "ScanPlayer.h" Core::ScanPlayer::ScanPlayer() { /* Load the VLC engine */ this->inst = libvlc_...
<commit_before>/* This file is part of Ingen. Copyright 2007-2015 David Robillard <http://drobilla.net/> Ingen 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 ...
<commit_before>#include "histogram.h" #include <algorithm> #include <limits> #include <cstdlib> #include <cmath> #include <iostream> #include <glog/logging.h> Histogram::Histogram(unsigned int num_bins): max_num_bins_(num_bins), dirty_(true), cumsums_(num_bins+1) { }; void Histogram::Update(double x, double y)...
<commit_before>#include "core/world/tile.h" #include "core/world/tile_descriptor.h" namespace eversim { namespace core { namespace world { tile_descriptor blank_tile = { "blank" }; bool tile::point_inside(glm::vec2 p) const { auto center = position(); auto min = center - glm::vec2(size() / 2); auto max = ...
<commit_before>/* * Copyright (c) 2016 tildearrow * * 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, modify, ...
<commit_before>/* Copyright (C) <2010> <Frank Scheffold ([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 2 of the License, or (at your ...
<commit_before>/* * Copyright (c) 2007 MIPS Technologies, 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, thi...
<commit_before>#include "rdb_protocol/op.hpp" #include "rdb_protocol/term.hpp" #include "rdb_protocol/terms/terms.hpp" namespace ql { class sample_term_t : public op_term_t { public: sample_term_t(env_t *env, protob_t<const Term> term) : op_term_t(env, term, argspec_t(2)) { } counted_t<val_t> eval_imp...
<commit_before>#ifndef _internal_hpp_INCLUDED #define _internal_hpp_INCLUDED #include <cassert> #include <climits> #include <cstdio> #include <vector> /*------------------------------------------------------------------------*/ using namespace std; /*-----------------------------------------------------------------...
<commit_before><commit_msg>dom_operations to use WebAnimationController<commit_after><|endoftext|>
<commit_before>/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Razer 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 c...
<commit_before>/* This file is part of the KDE project Copyright (C) 2001 Christoph Cullmann <[email protected]> Copyright (C) 2001 Joseph Wenninger <[email protected]> Copyright (C) 2001 Anders Lund <[email protected]> Copyright (C) 2007 Mirko Stocker <[email protected]> Copyright (C) 2009 Dominik Hauma...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under 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) //=================================...
<commit_before>/* * File: updates.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/sedna.h" #include "tr/updates/updates.h" #include "tr/mo/mo.h" #include "tr/crmutils/node_utils.h" #include "tr/executor/base/xptr_sequence.h" #include "tr/...
<commit_before>/** * Mutable Fibonacci Heap implementation * © 2013 Philips Healthcare * Author: Maurice Termeer */ #ifndef _FIBONACCI_HEAP_ #define _FIBONACCI_HEAP_ #include <algorithm> #include <deque> #include <functional> #include <iterator> #include <list> #include <map> #include <utility> #include <vector> ...
<commit_before>/* * Copyright (c) 2003-2007 Rony Shapiro <[email protected]>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-licen...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2016 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Licen...
<commit_before>/* * Copyright (C) 2018 Dubalu LLC. 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 limitation the rights * ...
<commit_before>// Time: O(m * n * max(logm, logn)) // Space: O(m * n) // BFS with priority queue (min heap), refactored version. class Solution { public: struct Cell { int i; int j; int height; }; struct Compare { bool operator()(const Cell& a, const Cell& b) { ...
<commit_before>/* * Copyright (c) 2000-2004 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 c...
<commit_before>/*============================================================================= NiftyLink: A software library to facilitate communication over OpenIGTLink. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even ...
<commit_before>//===--- CFG.cpp - Defines the CFG data structure ----------------*- C++ -*-==// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* * Copyright (C) 2018 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 op...
<commit_before> #include "opencv2/objdetect/objdetect.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <sstream> #include <iostream> #include <stdio.h> using namespace std; using namespace cv; bool save_large = false; void classifierDetect(CascadeClassifier c...
<commit_before>/************************************************************************* * * $RCSfile: ucb.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: sb $ $Date: 2001-11-28 09:42:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>// Copyright (c) 2012 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 "chrome/browser/extensions/webstore_standalone_installer.h" #include "base/values.h" #include "chrome/browser/extensions/crx_...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/ref_counted.h" #include "base/sco...
<commit_before>// Copyright (c) 2010 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 "chrome/browser/policy/configuration_policy_provider_win.h" #include <userenv.h> #include <algorithm> #include "base/loggin...
<commit_before>/* <src/Pipe.cpp> * * This file is part of the x0 web server project and is released under GPL-3. * http://www.xzero.io/ * * (c) 2009-2013 Christian Parpart <[email protected]> */ #include <x0/io/Pipe.h> #include <x0/Socket.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> namespace x0...
<commit_before>// // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRI...
<commit_before>// // pfilter.cpp // EpiGenMCMC // // Created by Lucy Li on 05/05/2016. // Copyright (c) 2016 Lucy Li, Imperial College London. All rights reserved. // #include "pfilter.h" #include <iostream> namespace EpiGenPfilter { double pfilter(Model & sim_model, Parameter & model_params, MCMCoptions & ...
<commit_before>#include "mmd/pmx/mesh.hpp" #include "../stream.hpp" namespace mmd { namespace pmx { void Vertex::load(Fs *fs, Header *header) { Stream *stream = (Stream *)fs; position = stream->readVec3(); normal = stream->readVec3(); uv = stream->readVec2()...
<commit_before>/* * Simka2ComputeKmerSpectrum.hpp * * Created on: 4 nov. 2016 * Author: gbenoit */ #include <gatb/gatb_core.hpp> //#include "../core/SimkaUtils.hpp" #include "../simka2/Simka2Utils.hpp" #include "SimkaDistanceMatrixBinary.hpp" //#include "../core/SimkaUtils.hpp" //#include "Simka2Database.hp...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<[email protected]> * * This program is f...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3 * * (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>// Reverse order of vector<int> #include "../../std_lib_facilities.h" int main() { return 0; }<commit_msg>Reversing order of vector<commit_after>// Reverse order of vector<int> #include "../../std_lib_facilities.h" #include <exception> // std::exception void reverseOrder(vector<int> t, v...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/searchlib/attribute/attributefactory.h> #include <vespa/searchlib/fef/test/ftlib.h> #include <vespa/searchlib/features/max_...
<commit_before>#include <fstream> #include "gtest.h" #include <common_types.hpp> #include <cell.hpp> #include <fvm_multicell.hpp> #include <util/rangeutil.hpp> #include "../test_util.hpp" #include "../test_common_cells.hpp" TEST(fvm_multi, cable) { using namespace nest::mc; nest::mc::cell cell=make_cell_ba...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the i...
<commit_before>// Copyright 2014 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 "content/browser/android/system_ui_resource_manager_impl.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/...
<commit_before>#include "generated/cpp/RhoFileBase.h" #include "common/RhodesApp.h" #include "common/RhoConf.h" #include "common/RhoFile.h" #include "common/RhoFilePath.h" #include "logging/RhoLog.h" namespace rho { using namespace apiGenerator; using namespace common; class CFileSingletonImpl: public CRhoFileSingle...
<commit_before><commit_msg>Cleanups<commit_after><|endoftext|>
<commit_before>// Copyright 2008, Google 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 list ...