text
stringlengths
54
60.6k
<commit_before>// Copyright (c) 2006, 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 ...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // @Generated by gentest/gentest.rb from gentest/fixtures/YGPercentageTest.html #include <gtest/gtest.h> #include <yoga/...
<commit_before>#pragma once #include <microscopes/common/assert.hpp> namespace lda_util { inline bool valid_probability_vector(const std::vector<float> &p){ float sum = 0; for(auto x: p){ if(isfinite(x) == false) return false; if(x < 0) return false; sum+=x...
<commit_before>#include <iostream> #include <iomanip> #include <string> #include <pcrecpp.h> #include "net/net.h" extern "C" { #include <arpa/inet.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/tcp.h> #include <netinet/if_ether.h> } static inline std::string ipv4addressToString(const void * src...
<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>//===- ScalarReplAggregates.cpp - Scalar Replacement of Aggregates --------===// // // This transformation implements the well known scalar replacement of // aggregates transformation. This xform breaks up alloca instructions of // aggregate type (structure or array) into individual alloca instructions ...
<commit_before>#ifndef SG_PLATFORM_HPP_INCLUDED #define SG_PLATFORM_HPP_INCLUDED #include <cstdlib> #include <string> #ifdef _WIN32 #define SG_INLINE __forceinline #else #define SG_INLINE __attribute__((always_inline)) #endif std::string sg_getenv(const char *env) { #ifdef _WIN32 char *buf; si...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 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. Redistributi...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * inc...
<commit_before>//============================================================================ // vSMC/include/vsmc/internal/config.hpp //---------------------------------------------------------------------------- // vSMC: Scalable Monte Carlo //--------------------------------------------------...
<commit_before>//============================================================================ // include/vsmc/rng/intrin.hpp //---------------------------------------------------------------------------- // // vSMC: Scalable Monte Carlo // // This file is distribured under the 2-clauses BSD Lice...
<commit_before>#ifndef VSMC_MPI_BACKEND_MPI_HPP #define VSMC_MPI_BACKEND_MPI_HPP #include <vsmc/internal/common.hpp> #include <vsmc/core/weight.hpp> #include <boost/mpi.hpp> namespace vsmc { /// \brief MPI Communicator /// \ingroup MPI /// /// \details /// Use specialization of the singleton to configure different S...
<commit_before>// 01.01.2017 Султан Xottab_DUTY Урамаев // Чем стрелы коленом ловить, гораздо интереснее отстреливать свои ноги. Продолжим. #include <iostream> #include <thread> #include <GLFW/glfw3.h> #include <dynlib/Dynlib.hpp> #include "xdCore.hpp" #include "Console.hpp" #include "ConsoleCommand.hpp" #include "xd...
<commit_before>/*============================================================================= Copyright (c) 2012-2014 Richard Otis 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>/* GRANULATE - granulation of sound stored in a table Any parameter marked with '*' can receive updates from a real-time control source. p0 = output start time * p1 = input start time (will be constrained to window, p5-6) NOTE: Unlike other instruments, this applies to a t...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File: CollectionOptimisation.cpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Ae...
<commit_before>/************************************************************************* * * $RCSfile: viewcontactofe3dscene.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2003-11-24 16:26:11 $ * * The Contents of this file are made available subject to the terms of * either of the fo...
<commit_before>#include "singletons.h" #include "config.h" #include "logging.h" #include <exception> #include "files.h" #include <iostream> using namespace std; //TODO: remove MainConfig::MainConfig() { auto search_envs = init_home_path(); auto config_json = (home/"config"/"config.json").string(); // This causes ...
<commit_before>#pragma once /* * Copyright (C) 2015 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 ...
<commit_before>#pragma once /* * Copyright 2015 Cloudius Systems. */ // This class is the parts of java.util.UUID that we need #include <stdint.h> #include <cassert> #include "core/sstring.hh" #include "core/print.hh" namespace utils { class UUID { private: int64_t most_sig_bits; int64_t least_sig_bits;...
<commit_before>#include "openmc/dagmc.h" #include "openmc/cell.h" #include "openmc/error.h" #include "openmc/file_utils.h" #include "openmc/string_utils.h" #include "openmc/settings.h" #include "openmc/geometry.h" #include <string> #include <sstream> #include <algorithm> #include <fstream> namespace openmc { #ifdef...
<commit_before>// ========================================================================== // // This file is part of DO-CV, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2015 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Lice...
<commit_before>// RUN: %clangxx_asan -O %s -o %t // RUN: not %run %t crash 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s // RUN: not %run %t bad-bounds 2>&1 | FileCheck --check-prefix=CHECK-BAD-BOUNDS %s // RUN: not %run %t bad-alignment 2>&1 | FileCheck --check-prefix=CHECK-BAD-ALIGNMENT %s // RUN: %env_asan_opts=det...
<commit_before>/* * Copyright 2010-2017 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bx#license-bsd-2-clause */ #include <bx/debug.h> #include <bx/string.h> // isPrint #include <inttypes.h> // PRIx* #if BX_PLATFORM_ANDROID # include <android/log.h> #elif BX_PLATFORM_WINDOWS || B...
<commit_before>#include "index/StringTable.hpp" #include <boost/test/unit_test.hpp> using namespace utymap::index; struct Index_StringTableFixture { Index_StringTableFixture() : indexPath("index.idx"), stringPath("strings.dat"), table(*new StringTable(indexPath, stringPath)) { ...
<commit_before>#include <map> #include <llvm/IR/Value.h> #include <llvm/IR/Instruction.h> #include <llvm/IR/Instructions.h> #include <llvm/IR/IntrinsicInst.h> #include <llvm/IR/Constants.h> #include <llvm/IR/GlobalVariable.h> #include <llvm/IR/Module.h> #include <llvm/IR/DataLayout.h> #include <llvm/Support/raw_ostrea...
<commit_before>// --------------------------------------------------------------------- // // Copyright (C) 2009 - 2013 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesse...
<commit_before>/* * Copyright (c) 2008 James Molloy, 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. * * THE SOFTWARE...
<commit_before>#include <cmath> #include <omp.h> #include "galaxy.h" void cela::newp1(double dt) { p1 = p + v * dt + a * dt * dt / 2; } void cela::flush(double dt) { v += a * dt; p = p1; } galaxy::galaxy(int n, cela* stars, double step, double G, double t, int r, double o, bool aplfx):n(n), dt(s...
<commit_before>#include "../common/init.h" #include "util/debug.h" #include "util/bitmap.h" #include "util/timedifference.h" #include <stdlib.h> #include <math.h> #include <string> using std::string; static void test(Graphics::Bitmap input, string size, int increase){ Graphics::Bitmap output(input.getWidth() * i...
<commit_before>#include "rice/Array.hpp" #include "rice/Constructor.hpp" #include "rice/Object.hpp" #include "config.h" #include "generator.h" #include "question.h" #include "topic.h" using namespace ailab; template<> question_t from_ruby<question_t>(Rice::Object obj) { size_t qid = from_ruby<size_t>(obj.call("que...
<commit_before>// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <vector> #include "prevector.h" #include "random.h" #include "serialize.h" #include "streams.h" #include...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #define MATH_BULLET_INTEROP #include "DebugOperatorNew.h" #include "btBulletDynamicsCommon.h" #include "PhysicsModule.h" #include "PhysicsWorld.h" #include "PhysicsUtils.h" #include "Profiler.h" #in...
<commit_before>// Copyright (c) 2012-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <scheduler.h> #include <test/test_chaincoin.h> #include <boost/bind.hpp> #inclu...
<commit_before>/** @file @brief Implementation @date 2015, 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015, 2016 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You...
<commit_before>#include "libpixel/graphics/device/device.h" #include "libpixel/graphics/render/primitive/primitiveRenderer.h" namespace libpixel { PrimitiveRenderer::PrimitiveRenderer() { } PrimitiveRenderer::~PrimitiveRenderer() { } void PrimitiveRenderer::RenderEllipse(Vec2 position, Vec2 size, ...
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 app...
<commit_before>#include "EntityEditor.hpp" #include <Engine/Component/Animation.hpp> #include <Engine/Component/Physics.hpp> #include <Engine/Component/Mesh.hpp> #include <Engine/Component/Lens.hpp> #include <Engine/Component/Material.hpp> #include <Engine/Component/DirectionalLight.hpp> #include <Engine/Component/Poi...
<commit_before>/** * @file * * @brief This file contains a basic YAML to `KeySet` converter function. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ // -- Imports ------------------------------------------------------------------------------------------------------------------------...
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 app...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: chartlock.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2007-08-03 13:07:42 $ * * The Contents of this file are made...
<commit_before>/** * folderdialogquotatab_p.cpp * * Copyright (c) 2006 Till Adam <adam@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 by * the Free Software Foundation; version 2 of the License * * Thi...
<commit_before>#include "EntityEditor.hpp" #include <Engine/Component/Animation.hpp> #include <Engine/Component/Physics.hpp> #include <Engine/Component/Mesh.hpp> #include <Engine/Component/Lens.hpp> #include <Engine/Component/Material.hpp> #include <Engine/Component/DirectionalLight.hpp> #include <Engine/Component/Poi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xeescher.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2006-07-10 13:53:38 $ * * The Contents of this file are made...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2012 Belledonne Communications SARL. Author: Yann Diorcet This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Softw...
<commit_before>/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkCommunicator.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redis...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
<commit_before>#include "gtest/gtest.h" #include "gmock/gmock.h" #include <dirent.h> #include <sys/types.h> #include <pwd.h> #include <ydsh/ydsh.h> #include <config.h> #include "../test_common.h" #include "../../src/constant.h" #include "../../src/misc/fatal.h" #ifndef BIN_PATH #error require BIN_PATH #endif #ifnd...
<commit_before>/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>#include <boost/python.hpp> #include "trajopt/collision_checker.hpp" #include "trajopt/problem_description.hpp" #include <stdexcept> #include <boost/python/exception_translator.hpp> #include <boost/foreach.hpp> using namespace trajopt; using namespace Eigen; using namespace OpenRAVE; using std::vector; ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008-2009 Gael Guennebaud <g.gael@free.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Gene...
<commit_before>#include "partners_api/booking_api.hpp" #include "platform/http_client.hpp" #include "platform/platform.hpp" #include "base/gmtime.hpp" #include "base/logging.hpp" #include "base/thread.hpp" #include "std/initializer_list.hpp" #include "std/iomanip.hpp" #include "std/iostream.hpp" #include "std/sstrea...
<commit_before>/* * http_server_test.cpp * * Created on: Oct 26, 2014 * Author: liao */ #include <sstream> #include <cstdlib> #include "simple_log.h" #include "http_server.h" Response hello(Request &request) { Json::Value root; root["hello"] = "world"; return Response(STATUS_OK, root); } Response sayhel...
<commit_before>#ifndef __BUF_HELPERS_HPP__ #define __BUF_HELPERS_HPP__ #include <vector> // This file contains a mock buffer implementation and can be used // in other tests which rely on buf_t #include "serializer/types.hpp" #include "buffer_cache/buf_patch.hpp" namespace unittest { class test_buf_t { public: ...
<commit_before>// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // --------------------------------------------------------------------------- // SString_COM.cpp // ----------------------------------------------...
<commit_before>#include "matcherexception.h" #include "3rd-party/catch.hpp" using namespace newsboat; extern "C" { MatcherErrorFfi rs_get_test_attr_unavail_error(); MatcherErrorFfi rs_get_test_invalid_regex_error(); } TEST_CASE("Can be constructed from Rust error returned over FFI", "[MatcherException]") { SECT...
<commit_before>/* ----------------------------------------------------------------------- *//** * * @file student.cpp * * @brief Evaluate the Student-T distribution function. * @author Florian Schoppmann * @date November 2010 * *//* -------------------------------------------------------------------- *//** ...
<commit_before>#include "addresstablemodel.h" #include "guiutil.h" #include "main.h" #include <QFont> const QString AddressTableModel::Send = "S"; const QString AddressTableModel::Receive = "R"; struct AddressTableEntry { enum Type { Sending, Receiving }; Type type; QString label; ...
<commit_before>//***************************************************************************** // Copyright 2017-2018 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
<commit_before>/*************************************************************************** * Copyright (c) 2007 Werner Mayer <wmayer[at]users.sourceforge.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>#include "direct.hxx" #include "istream/istream.hxx" #include "istream/istream_byte.hxx" #include "istream/istream_cat.hxx" #include "istream/istream_fail.hxx" #include "istream/istream_four.hxx" #include "istream/istream_head.hxx" #include "istream/istream_hold.hxx" #include "istream/istream_inject.hxx"...
<commit_before>#include <CUndo.h> #include <CFuncs.h> #include <cassert> #include <climits> #include <algorithm> CUndo:: CUndo() : undo_group_(0), depth_(0), locked_(false) { } CUndo:: ~CUndo() { std::for_each(undo_list_.begin(), undo_list_.end(), CDeletePointer()); std::for_each(redo_list_.begin(), redo_list_....
<commit_before>// __BEGIN_LICENSE__ // Copyright (C) 2006-2011 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/Camera/CameraModel.h> #include <vw/Stereo/StereoModel.h> #include <vw/Math/Levenb...
<commit_before>#include "stdafx.h" #include "stdio.h" #include "FlyCapture2.h" #include <iostream> #include <sstream> #include <iomanip> #include <vector> #include <future> #include <chrono> #include <ctime> #include <thread> using namespace FlyCapture2; using namespace std; void PrintError( Error error ) { err...
<commit_before>// Copyright (c) 2019, 2021 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI 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 Lice...
<commit_before>/* Q Light Controller olaoutthread.cpp Copyright (c) Simon Newton 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.txt ...
<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> #include <configure/Application.hpp> #include <boost/filesystem.hpp> #include <fstream> #include <vector> namespace fs = boost::filesystem; typedef configure::Application app_t; BOOST_AUTO_TEST_CASE(invalid_args) { std::vector<std::string> empty_args; BOOST_CHECK_THROW(configure::Application(0, n...
<commit_before>#pragma once #include<vector> #include "nifty/tools/runtime_check.hxx" #include "nifty/graph/optimization/multicut/multicut_base.hxx" #include "nifty/graph/optimization/multicut/multicut_factory.hxx" #include "nifty/graph/optimization/multicut/multicut_greedy_additive.hxx" #include "nifty/graph/optimiz...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...
<commit_before>//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <axel@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser G...
<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_SFM_DATA_HPP #define OPENMVG_SFM_DATA_HPP #incl...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source Licens...
<commit_before>#include "thrusttest/testframework.h" #include "thrusttest/exceptions.h" #include <cuda_runtime.h> #include <iostream> #include <cstdlib> void UnitTestDriver::register_test(UnitTest *test) { UnitTestDriver::s_driver()._test_list.push_back(test); } UnitTest::UnitTest(const char * _name) : name(_nam...
<commit_before>// Scintilla source code edit control /** @file LexVB.cxx ** Lexer for Visual Basic and VBScript. **/ // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #inc...
<commit_before>//////////////////////////////////////////////////////////// // // The MIT License (MIT) // // Copyright (c) 2014 stevehalliwell // // 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 So...
<commit_before>#include <gtest/gtest.h> #include <x0/http/HttpServer.h> #include <x0/http/HttpClient.h> #include <x0/Buffer.h> #include <iostream> #include <fstream> #include <ev++.h> using namespace x0; class HttpServerTest : public ::testing::Test { public: HttpServerTest(); void SetUp(); void TearDown(); voi...
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/transactionrecord.h> #include <consensus/consensus.h> #include <interfaces/wallet.h> #include <k...
<commit_before>// Copyright 2015 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
<commit_before>#include "fluidsystem.h" #include "camera.h" #include "vertexrecorder.h" #include <iostream> #include <math.h> #include "particle.h" using namespace std; // your system should at least contain 8x8 particles. const int N = 5; const float PARTICLE_SPACING = .2; const float PARTICLE_RADIUS ...
<commit_before>// // globe.cpp // GlobeVisualization // // Created by Johannes Neumeier on 03/06/15. // // #include "globe.h" globe::globe() { sphere.setRadius(100); } void globe::update() { } void globe::draw() { ofPushMatrix(); ofSetColor(255); sphere.enableNormals(); ...
<commit_before>/* * Copyright (C) 2016 Dan Leinir Turthra Jensen <admin@leinir.dk> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your...
<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 2013 Adrian Draghici <draghici.adrian.b@gmail.com> // // Self #incl...
<commit_before>#include "catch/catch.hpp" #include "RaZ/Math/Matrix.hpp" #include "RaZ/Math/Vector.hpp" namespace { // Declaring vectors to be tested const Raz::Vec3f vec31({ 3.18f, 42.f, 0.874f }); const Raz::Vec3f vec32({ 541.41f, 47.25f, 6.321f }); const Raz::Vec4f vec41({ 84.47f, 2.f, 0.001f, 847.12f }); const R...
<commit_before>//===- NativeFormatting.cpp - Low level formatting helpers -------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===- Darwin/MappedFile.cpp - Darwin MappedFile Implementation -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===---...
<commit_before>//===- BuildTree.cpp ------------------------------------------*- C++ -*-=====// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<commit_before>/* * Copyright (C) 2017 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>#define SPICA_MLT_RENDERER_EXPORT #include "mlt_renderer.h" #include <algorithm> #include <vector> #include <stack> namespace spica { namespace { struct PrimarySample { int modify_time; double value; PrimarySample() { modify_time = 0; ...
<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 COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2011 Ulrich von Zadow // // 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 of the Li...
<commit_before>/* * Copyright 2012 Matthias Fuchs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>/** * projectM-qt -- Qt4 based projectM GUI * Copyright (C)2003-2004 projectM Team * * This library 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.1 of the License, o...
<commit_before>/** * message.cpp * * Created on: 11 окт. 2015 г. * Author: zmij */ #include <pushkin/l10n/message.hpp> #include <pushkin/l10n/message_io.hpp> #include <pushkin/l10n/message_util.hpp> #include <boost/lexical_cast.hpp> #include <boost/variant/apply_visitor.hpp> #include <boost/variant/static_...
<commit_before>// RUN: clang -shared %S/call_lib.c -olibcall_lib%shlibext // RUN: cat %s | %cling | FileCheck %s .L libcall_lib extern "C" int cling_testlibrary_function(); int i = cling_testlibrary_function(); extern "C" int printf(const char* fmt, ...); printf("got i=%d\n", i); // CHECK: got i=66 .q <commit_msg>Try ...
<commit_before>#include "pch.h" #include "axl_rtl_BoyerMooreFind.h" #include "axl_rtl_BoyerMooreAccessor.h" namespace axl { namespace rtl { //............................................................................. bool BinaryBoyerMooreFind::setPattern ( const void* p, size_t size, uint_t flags ) { if (!s...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2011,2012 Preferred Networks and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lice...
<commit_before>#include "rubymotion.h" #include "motion-game.h" #include <dlfcn.h> /// @class Scene < Node /// This class represents a scene, an independent screen or stage of the /// application workflow. A scene is responsible for handling events from the /// device, providing a physics world for the sprites, and al...
<commit_before>#include "augs/enums/callback_result.h" #include "game/cosmos/specific_entity_handle.h" #include "application/intercosm.h" #include "application/setups/editor/editor_folder.h" #include "application/setups/editor/editor_command_input.h" #include "application/setups/editor/commands/change_entity_property...