text
stringlengths
54
60.6k
<commit_before>/* Copyright (c) 2013, Project OSRM, Dennis Luxen, others 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...
<commit_before>//============================================================================= // ■ VMGS/Scene/scene.cpp //============================================================================= #include "../VMGS.hpp" namespace VM76 { namespace SceneManager { Scene* context = NULL; } void Scene::key_callb...
<commit_before>#include <cstdio> #include <cstring> #include <cstdlib> #include <benejson/pull.hh> #include "posix.hh" void OutputValue(BNJ::PullParser& parser){ const bnj_val& val = parser.GetValue(); if(val.key_length){ char key[512]; BNJ::GetKey(key, 1024, parser); fprintf(stdout, "key: '%s'\n", key); } ...
<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><commit_msg>Fix: The invariant mass histograms are empty<commit_after><|endoftext|>
<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 "remoting/host/setup/daemon_controller.h" #include <unistd.h> #include "base/basictypes.h" #include "base/bind.h" #include "...
<commit_before>#ifndef __STAN__IO__MCMC__WRITER__HPP #define __STAN__IO__MCMC__WRITER__HPP #include <ostream> #include <iomanip> #include <vector> #include <string> #include <stan/mcmc/sample.hpp> #include <stan/mcmc/base_mcmc.hpp> #include <stan/model/prob_grad.hpp> namespace stan { namespace io { te...
<commit_before><commit_msg>loplugin:literaltoboolconversion<commit_after><|endoftext|>
<commit_before>/* * Number Theory Functions * (C) 1999-2011 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/numthry.h> #include <botan/reducer.h> #include <botan/internal/bit_ops.h> #include <algorithm> namespace Botan { namespace { /* * Miller-Rabin Primality Tester */ class Mill...
<commit_before>// // Copyright Silvin Lubecki 2010 // // 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) // #include "Test.h" #include "openclam/cl.hpp" #include <math.h> #include <CL/cl.h> namesp...
<commit_before>#include <string> #include <vector> #include <iostream> typedef std::vector<std::string> nomi_squadre_t; typedef std::vector<unsigned int> punti_giornata_t; typedef std::vector<punti_giornata_t> punti_giornate_t; int trova_indice_squadra(nomi_squadre_t nomi_squadre, std::string nome_squadra) { for (u...
<commit_before><commit_msg>valgrind: memset the window command data structure. |timestamp| is aligned on a 16 byte boundary leaving 4 bytes of uninitialized data in the middle of the struct. We write this data to disk, which is a possible security risk.<commit_after><|endoftext|>
<commit_before>/* Copyright 2019 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>// infoware - C++ System information Library // // Written in 2016 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public doma...
<commit_before>/* This file is part of Kontact. Copyright (c) 2003 Tobias Koenig <tokoe@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; either version 2 of the License, o...
<commit_before>/* * TCPServer.cpp * * Created on: Apr 4, 2016 * Author: james */ #include "tcp/TCPDeviceServer.h" #include <netinet/in.h> #include <stddef.h> #include <sys/socket.h> #include <unistd.h> #include <cstdint> #include <iostream> #include <utility> #include <openssl/bio.h> #include <openssl/ssl....
<commit_before><commit_msg>Match up array delete to array allocate.<commit_after><|endoftext|>
<commit_before>/* Kopete View Item Delegate Copyright (c) 2007 by Matt Rogers <mattr@kde.org> Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>/* * Copyright (c) 2014-2015, Julien Bernard * * 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>/************************************************************************* * * $RCSfile: dsbrowserDnD.cxx,v $ * * $Revision: 1.64 $ * * last change: $Author: hr $ $Date: 2004-08-02 15:33:59 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice 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 ...
<commit_before>// Copyright (c) 2014 The Bitcoin Core developers // Copyright (c) 2017-2019 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 "test/test_pivx.h" #include "util.h" #include "validat...
<commit_before>#include <QObject> #include <QVector> #include <QString> #include <QSqlQuery> #include <QSqlRecord> #include <QSqlField> #include <QSqlError> #include <QUrlQuery> #include "kernel.h" #include "ilwisdata.h" #include "symboltable.h" #include "operationExpression.h" #include "operationmetadata.h" #include "...
<commit_before>/* opendatacon * * Copyright (c) 2014: * * DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi * yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA== * * 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 ...
<commit_before>//---------------------------------------------------------------------- // Copyright 2011 Ciaran McHale. // // 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 restrict...
<commit_before>#include "..\include\SequentialGreedy.h" #include <iostream> // Greedily color one vertex uint16_t SequentialGreedy::colorVertexGreedy(uint64_t vertex, std::vector<uint64_t> &neighbors, ColorMap &colors) { uint16_t color = 0; bool lowest_found = false; while (!lowest_found) { lowest_found = true...
<commit_before>/* * $Id: BitVector.cpp,v 1.3 2006/09/18 06:20:15 nathanst Exp $ * * This file is part of HOG. * * HOG 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 ...
<commit_before>/* * Copyright 2016 Nu-book Inc. * Copyright 2019 Axel Waggershauser */ // SPDX-License-Identifier: Apache-2.0 #include "ReadBarcode.h" #include "TextUtfEncoding.h" #include "GTIN.h" #include <cctype> #include <chrono> #include <clocale> #include <cstring> #include <iostream> #include <memory> #include...
<commit_before>/* Copyright (C) 2003 MySQL AB 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 program is d...
<commit_before>#include "ToCNFAIG.h" namespace BEEV { // Can it only add in the new variables somehow?? void addVariables(BBNodeManagerAIG& mgr, Cnf_Dat_t*& cnfData , ToSATBase::ASTNodeToSATVar& nodeToVar) { BBNodeManagerAIG::SymbolToBBNode::const_iterator it; // Each symbol maps to a vector of CNF variables. fo...
<commit_before>/** * Copyright 2013 Da Zheng * * This file is part of SA-GraphLib. * * SA-GraphLib 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 3 of the License, or * (at your option)...
<commit_before>/* Copyright 2018 Iakov Kirilenko, CyberTech Labs Ltd. * * 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 req...
<commit_before>/** * The MIT License (MIT) * * Copyright (c) 2013-2020 Winlin * * 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 ri...
<commit_before>/* Copyright (C) 2000 by W.C.A. Wijngaards Copyright (C) 2000 by Andrew Zabolotny This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of th...
<commit_before>/* Copyright (C) 2007 by Seth Yastrov This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version...
<commit_before>// Copyright (c) 2012, Sergey Zolotarev // 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, this // ...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 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. Redistr...
<commit_before>#ifndef DOMDocumentImpl_HEADER_GUARD_ #define DOMDocumentImpl_HEADER_GUARD_ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF ...
<commit_before> #ifndef __ADDRESSING_HPP__ #define __ADDRESSING_HPP__ /// Global Addresses for SoftXMT /// /// /// /// /// We support two types of global addresses: /// -# 2D addresses /// -# Linear addresses /// /// 2D addresses are node, address on node /// /// linear addresses are block cyclic #include "SoftXMT....
<commit_before>//===-- WriteInst.cpp - Functions for writing instructions -------*- C++ -*--=// // // This file implements the routines for encoding instruction opcodes to a // bytecode stream. // // Note that the performance of this library is not terribly important, because // it shouldn't be used by JIT type applic...
<commit_before>/** * @copyright * ======================================================================== * Copyright FLWOR Foundation * ======================================================================== * * @author Sorin Nasoi (sorin.nasoi@ipdevel.ro) * @author Nicolae Brinza (nicolae.brinza@ipdevel.ro)...
<commit_before>#ifndef INCLUDED_COLDB_FACTORY_HPP #define INCLUDED_COLDB_FACTORY_HPP #include "types.hpp" #include "column.hpp" namespace coldb { template <typename IFType, typename PT, typename ET, typename DT> Column<IFType>* _int_column_factory_l1(E_COMPRESS compress_id, void* d...
<commit_before>/* COPYRIGHT (c) 2014 Umut Acar, Arthur Chargueraud, and Michael * Rainey * All rights reserved. * * \file exercises.hpp * \brief File that students are to use to enter solutions to the * exercises that are assigned in the book. * */ #include <limits.h> #include "sparray.hpp" #ifndef _MINICOU...
<commit_before>/* * Copyright (c) 2001-2006 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above c...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. */ #include "TestSscCommon.h" #include <adios2.h> #include <gtest/gtest.h> #include <mpi.h> #include <numeric> #include <thread> using namespace adios2; int mpiRank = 0; int mpiSi...
<commit_before>// // Copyright (c) 2012 Ian Godin // // 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, m...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2008 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>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "vbucket.hh" #include "ep_engine.h" #include "ep.hh" #include "backfill.hh" static bool isMemoryUsageTooHigh(EPStats &stats) { double memoryUsed = static_cast<double>(stats.getTotalMemoryUse...
<commit_before>/* * Copyright (C) 2004-2013 ZNC, see the NOTICE file for details. * Copyright (C) 2013 Rasmus Eskola <fruitiex@gmail.com> * based on sample.cpp sample module code * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * Licensed under the MIT license (see LICENSE). */ #include <stdlib.h> #include <assert.h> #include "barchart.h" #include "canvas.h" #include "domain.h" #include "rendertarget.h" /** * todo: * ...
<commit_before>/* * Copyright (c) 2008-2009, Thomas Jaeger <ThJaeger@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWAR...
<commit_before>// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
<commit_before>#include <iostream> #include <algorithm> #include "MethodDefinition.h" #include "../execution/Program.h" void MethodDefinition::execute() { Program::create_frame(frame_size); for (unsigned int i = 0; i < arguments; i++) { Program::frame()[i] = Program::pop(); } for (int counte...
<commit_before>/* Copyright Eli Dupree and Isaac Dupree, 2014 This file is part of Lasercake. Lasercake 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 Lic...
<commit_before>#include <gtest/gtest.h> #include "../src/Repl.hpp" #include "../src/Exp.hpp" #include <sstream> #include <string> using namespace sexp_cpp; namespace { TEST(EvalSpec, EmptyListExp) { std::stringstream code("()"); pExp exp = eval(read(code)); EXPECT_EQ(exp->WhoAmI(), "EmptyListExp");...
<commit_before>#include <stdio.h> #include "log4cpp/Portability.hh" #ifdef LOG4CPP_HAVE_UNISTD_H #include <unistd.h> #endif #include <iostream> #include "log4cpp/Category.hh" #include "log4cpp/Appender.hh" #include "log4cpp/FileAppender.hh" #include "log4cpp/OstreamAppender.hh" #ifdef LOG4CPP_HAVE_SYSLOG #include "log4...
<commit_before>//macro illustrating how to animate a picture using a Timer Double_t pi; TF2 *f2; Float_t t = 0; Float_t phi = 30; void anim() { gStyle->SetFrameFillColor(42); TCanvas *c1 = new TCanvas("c1"); c1->SetFillColor(17); pi = TMath::Pi(); f2 = new TF2("f2","sin(2*x)*sin(2*y)*[0]",0,pi,0,pi); ...
<commit_before>//===--- Stmt.cpp - Statement AST Node Implementation ---------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by Chris Lattner and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-----...
<commit_before>/* * Copyright (c) 2017 Deepsea * * This software may be modified and distributed under * the terms of the MIT license. See the LICENSE file * for details. * */ #include <iostream> #include <memory> #include <deque> #include "cactus-basic.hpp" namespace cactus_stack { namespace basic { ...
<commit_before>#include <x0/buffer.hpp> #include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/TestFactoryRegistry.h> #include <iostream> #include <cstdlib> #include <cctype> #include <cassert> #include <strings.h> class buffer_test : public CPPUNIT_NS::TestFixture { public: CPPUNIT_TEST_SUITE(bu...
<commit_before>// $Id$ // (c) Guido Kanschat // // Compute support points #include <base/quadrature_lib.h> #include <base/logstream.h> #include <lac/vector.h> #include <grid/tria.h> #include <grid/tria_iterator.h> #include <dofs/dof_accessor.h> #include <grid/grid_generator.h> #include <fe/fe_lib.lagrange.h> #include ...
<commit_before>#include "storage/storage_helpers.hpp" #include "storage/country_info_getter.hpp" #include "storage/storage.hpp" #include "platform/platform.hpp" namespace storage { bool IsPointCoveredByDownloadedMaps(m2::PointD const & position, Storage const & storage, ...
<commit_before>/* * File: AlarmClockSpeedTest.cpp * Author: Amanda Carbonari * Created: January 6, 2015 9:00am * * WARNING: This only measures CPU time */ #include <ctime> #include <iostream> #include <AlarmClock.h> #include <chrono> using namespace std; typedef std::chrono::microseconds microseconds; typedef...
<commit_before>/* * source.cpp * * Created on: Feb 8, 2012 * Author: mpetkova */ #include <slsimlib.h> #include <sstream> const string escape = "#"; char dummy[300]; Source::Source(){ } SourceUniform::SourceUniform(string filename) : Source(){ readParamfile(filename); } SourceGaussian::SourceGaussian(s...
<commit_before>/* * Copyright (C) 2010 The Android Open Source Project * * 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>// Copyright 2017 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 "flutter/lib/ui/painting/codec.h" #include "flutter/common/task_runners.h" #include "flutter/glue/trace_event.h" #include "flutte...
<commit_before>/*$Id$ * * This source file is a part of the Berlin Project. * Copyright (C) 1999, 2000 Stefan Seefeld <stefan@berlin-consortium.org> * Copyright (C) 1999 Graydon Hoare <graydon@pobox.com> * http://www.berlin-consortium.org * * This library is free software; you can redistribute it and/or * mod...
<commit_before>/* Copyright 2011, Jernej Kovacic 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 law or agreed to in wri...
<commit_before>// Time: O(1) // Space: O(1) class Solution { public: int maxA(int N) { if (N < 7) { return N; } if (N == 10) { // the following rule doesn't hold in N = 10 return 20; } auto n = N / 5 + 1; // n3 + n4 increases one every 5 keys ...
<commit_before>#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/socket.h> #include <signal.h> #include <unistd.h> #include <netinet/in.h> #include "libcmm.h" #include "libcmm_test.h" #include "common.h" #include <errno.h> #include "timeops.h" static bool running; void handler(int sig) { ru...
<commit_before>/* -*- c++ -*- This file is part of KMail, the KDE mail client. Copyright (c) 2001-2002 Michael Haeckel <haeckel@kde.org> Copyright (c) 2003 Marc Mutz <mutz@kde.org> KMail is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, v...
<commit_before>/* Copyright (C) 1998-2001 by Jorrit Tyberghein csObject library (C) 1999 by Ivan Avramovic <ivan@avramovic.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Found...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unopracc.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2007-06-27 18:25:09 $ * * The Contents of this file are made ...
<commit_before>/* libscratch - Multipurpose objective C++ library. Copyright (C) 2012 - 2013 Angelo Geels 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 3 of th...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: inpdlg.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2006-11-06 14:53:00 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: detreg.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-16 23:28:24 $ * * The Contents of this file are made a...
<commit_before>/* Copyright 2015 The Trustees of Princeton University 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>/** * @file UvUtils.hpp * @brief UvUtils class prototype. * @author zer0 * @date 2016-11-03 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_UTIL_UVUTILS_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_UTIL_UVUTILS_HPP__ // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020...
<commit_before>// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant...
<commit_before>/**********************************************************\ Auto-generated Chimera.cpp This file contains the auto-generated main plugin object implementation for the Chimera project \**********************************************************/ #include "ChimeraAPI.h" #include "Chimera.h" #inc...
<commit_before>/*********************************************************************** created: Sun Jul 19 2009 author: Paul D Turner <paul@cegui.org.uk> *************************************************************************/ /**************************************************************************...
<commit_before>// Day23.cpp : Defines the entry point for the console application. // #include "stdafx.h" enum class OpCode { Inc, Dec, Copy, Jump, Toggle, Noop }; struct Registers; struct Instruction; typedef std::vector<Instruction> InstructionVector; typedef std::function<signed&(Registers &)> FetchFunction; type...
<commit_before>#include "SkinV2.h" #include "../Logger.h" #include "../MeterWnd/Meters/MeterTypes.h" #include "../StringUtils.h" #include "MeterComponent.h" #include "OSDComponent.h" #include "SkinUtils.h" SkinV2::SkinV2(std::wstring skinXML) : SkinInfo(skinXML) { } SkinV2::~SkinV2() { } OSDComponent *SkinV2::Vol...
<commit_before>/* Copyright (c) 2014, Madd Games. 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 conditio...
<commit_before> # include "TIPS4.hpp" // ------------------------------------------------------------------------- // Constructor: // ------------------------------------------------------------------------- TIPS4::TIPS4(const CommonParams& pin, const GetPot& input_params) : p(pin), c(p) { // ----...
<commit_before>#include "Scene.h" #include "MaterialElement.h" #include <iostream> //************************************************************************************** //-----------------------------------SCENE------------------------------------ //Constructors and destructor Scene::Scene() { } Scene::~Scene()...
<commit_before>// Copyright (c) Facebook, Inc. and its affiliates. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include "Differentiator.h" #include <better/map.h> #include <better/small_vector.h> #include <react/core/LayoutableShadowNo...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>#include <iostream> #include <vector> void carr_func(int * vec) { std::cout << "carr_func - vec: " << vec << std::endl; } int main(void) { std::vector<int> v1 = {-1, 3, 5, -8, 0}; //initialize with list std::vector<int> v2; //don't initialize auto v3(v1); //initialize v3 via copy /** * Managing ...
<commit_before>#include "LightShaderHandler.h" LightShaderHandler::LightShaderHandler() { } LightShaderHandler::~LightShaderHandler() { } int LightShaderHandler::Initialize(ID3D11Device * device, HWND * windowHandle, DirectX::XMFLOAT2 resolution) { HRESULT hResult; ID3D10Blob* vertexShaderBuffer = nullptr; ID3D1...
<commit_before>/* MIT License Copyright (c) 2016 Mark Allender 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) 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>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2010 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 by the ...
<commit_before>/* This file is part of libkpimexchange Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; eithe...
<commit_before>#include "task_synthetic_shapes.h" #include "libnanocv/loss.h" #include "libnanocv/util/math.hpp" #include "libnanocv/util/random.hpp" namespace ncv { synthetic_shapes_task_t::synthetic_shapes_task_t(const string_t& configuration) : task_t(configuration), ...
<commit_before>// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include <algorithm> #include <atomic> #include <actionlib/server/simple_action_server.h> #include <controller_manager/controller_manager.h> #include <franka/exception.h> #include <frank...
<commit_before>// $Id$ // The libMesh Finite Element Library. // Copyright (C) 2002-2008 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 Foun...
<commit_before>/* * Copyright (C) 2010 Peter Colberg * * This file is part of cuda-wrapper. * * This software may be modified and distributed under the terms of the * 3-clause BSD license. See accompanying file LICENSE for details. */ #ifndef CUDA_TRAITS_HPP #define CUDA_TRAITS_HPP #include <cstddef> #includ...
<commit_before>#include "SFZDebug.h" static LogFifo* fifo = NULL; LogFifo::LogFifo() : fifo(capacity) { } LogFifo::~LogFifo() { } void LogFifo::logMessage(const String& message) { const char* p; // Stupid String class doesn't really let us get number of bytes. const char* bytes = message.getCharPointer(); ...