text
stringlengths
54
60.6k
<commit_before>#include <iostream> #include <vector> #include <node.hpp> #include "redblacktree.hpp" int main() { std::vector<int> v = {6,5,9}; ch13::RedBlackTree<int,std::string> tree; for(auto i : v) tree.insert(i); tree.print(); std::cout << "length = " << v.size() << std::...
<commit_before>///////////////////////////////////////// // // OpenLieroX // // code under LGPL, based on JasonBs work, // enhanced by Dark Charlie and Albert Zeyer // // ///////////////////////////////////////// // TODO: this file was really created by Jason? // Background music handling // Created 29/7/...
<commit_before>#include "CppUTest/TestHarness.h" #include "CppUTestExt/MockSupport.h" #include <cstring> #include "../config.h" #include <serializer/checksum_block.h> TEST_GROUP(ConfigPage) { static const int page_size = 30; char page1[page_size], page2[page_size]; void teardown(void) { mock...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <string> #include <getopt.h> #include <iostream> #include <sstream> #include <vector> #include "../common/CycleTimer.h" #include "../common/graph.h" #include "../common/grade.h" #include "page_rank.h" #define USE_BINARY_GRAPH 1 #define ...
<commit_before>#include "VEmitter.h" #include "VGlobal.h" VEmitter* VEmitter::LoadParticlesFromFile(int Amount, sf::String Filename, bool Animated, int Width, int Height, const sf::IntRect& Rect, bool RandomFrames) { MaxSize = Amount; RenderState.texture = &VGlobal::p()->Content->LoadTexture(Filename); setSize(Amou...
<commit_before>#ifndef ENTT_CORE_TYPE_TRAITS_HPP #define ENTT_CORE_TYPE_TRAITS_HPP #include <type_traits> #include "../core/hashed_string.hpp" namespace entt { /*! @brief A class to use to push around lists of types, nothing more. */ template<typename... Type> struct type_list {}; /*! @brief Traits class used m...
<commit_before>/* ndhs.c - dhcp server * * (c) 2011-2016 Nicholas J. Kain <njkain at gmail dot com> * 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 mus...
<commit_before>#include "Iop_Sysclib.h" using namespace Iop; CSysclib::CSysclib(uint8* ram, CStdio& stdio) : m_ram(ram) , m_stdio(stdio) { } CSysclib::~CSysclib() { } std::string CSysclib::GetId() const { return "sysclib"; } std::string CSysclib::GetFunctionName(unsigned int functionId) con...
<commit_before> #include <raytracer.h> #include <bodies.h> using namespace raytracer; class OneWayPlane : public Plane { public: OneWayPlane() { useDefaults(); } virtual double getDistance(const Ray & ray) const; }; double OneWayPlane::getDistance(const Ray & ray) const { if (ray.v.dot(this->orientation) > ZERO) ...
<commit_before>/* This file is part of the Vc library. Copyright (C) 2010-2011 Matthias Kretz <kretz@kde.org> Vc 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 3 of th...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2011,2012 Preferred Infrastructure 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 /...
<commit_before>/* Copyright (c) 2014 Auston Sterling See LICENSE for copying permissions. -----Note Implementation File----- Auston Sterling austonst@gmail.com Contains the implementations for the Note class and other related classes. */ #include "note.hpp" namespace midi { //Default constructor ...
<commit_before>/* * PartitionCoarsening.cpp * * Created on: 28.01.2014 * Author: cls */ #include "PartitionCoarsening.h" #include <omp.h> #include "../auxiliary/Timer.h" namespace NetworKit { std::pair<Graph, std::vector<node> > NetworKit::PartitionCoarsening::run(const Graph& G, const Clustering& zeta)...
<commit_before>#include "extraction.h" using namespace std; vector< vector<string> > vector_coords; int totalatoms = 10; //Extracts Coords from Input and places them into a 2D array int extract_input(const char *inputfile) { ifstream orig_file(inputfile); ofstream log; string line, sub_line; strin...
<commit_before>#include <sys/socket.h> #include "net/length.h" #include "server.h" #include "utils.h" #include "client_binary.h" // // Xapian binary client // BinaryClient::BinaryClient(ev::loop_ref &loop, int sock_, DatabasePool *database_pool_, double active_timeout_, double idle_timeout_) : BaseClient(loop, soc...
<commit_before>// // // MIT License // // Copyright (c) 2017 Stellacore 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...
<commit_before>#include <sys/socket.h> #include "net/length.h" #include "server.h" #include "utils.h" #include "client_binary.h" // // Xapian binary client // BinaryClient::BinaryClient(ev::loop_ref &loop, int sock_, ThreadPool *thread_pool_, DatabasePool *database_pool_, double active_timeout_, double idle_timeout...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include <stdlib.h...
<commit_before>// Copyright (c) 2015, Galaxy Authors. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: wangtaize@baidu.com #include "agent/cgroup.h" #include <sstream> #include <sys/types.h> #include <sys/stat.h> #include <stdio....
<commit_before>#include <Bull/Graphics/Rendering/Transformable.hpp> namespace Bull { Transformable::Transformable() : m_scale(Vector3F::Unit) { /// Nothing } void Transformable::scale(const Vector3F& scale) { m_scale *= scale; } void Transformable::rotate(const Eul...
<commit_before>// Copyright Hugh Perkins 2016 // 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 agr...
<commit_before>/*++ Copyright (c) 2013 Microsoft Corporation Module Name: api_rcf.cpp Abstract: Additional APIs for handling elements of the Z3 real closed field that contains: - transcendental extensions - infinitesimal extensions - algebraic extensions Author: Leonardo de Moura ...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>/* * This file is part of the Objavi Renderer. * * Copyright (C) 2013 Borko Jandras <borko.jandras@sourcefabric.org> * * 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 Software Foundation...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner // Copyright (C) 2010-2013 The...
<commit_before>// Copyright 2005, 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...
<commit_before>#pragma once //=====================================================================// /*! @file @brief ポート定義クラス @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "port.hpp" #include "common/port_map.hpp" // ポートの配置 // P4_2(1): LCD_...
<commit_before>// @(#)root/graf:$Id$ // Author: Rene Brun 17/10/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/****************************************************************************** Copyright 2019 Allied Telesis Labs Ltd. 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. Redistribu...
<commit_before>#include "configuration.h" void Configuration::initialize(ConfigManager* manager) { manager->registerConfig(this); } bool Configuration::loadConfig(const std::string& filename, Json::Value& value) { _filename = filename; std::ios::sync_with_stdio(false); std::ifstream fs; fs.open(f...
<commit_before>/* * * The MIT License (MIT) * * Copyright (c) 2013 Paul Holden et al. (See 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 w...
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * XPLC - Cross-Platform Lightweight Components * Copyright (C) 2000, Pierre Phaneuf * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License ...
<commit_before>#include "BigFix/DataRef.h" #include "BigFix/InflateStream.h" #include "TestUtility.h" #include <gtest/gtest.h> using namespace BigFix; TEST( InflateStreamTest, ShortRaw ) { StringStream stringStream; InflateStream inflateStream( stringStream ); DataRef data( "hello" ); WriteOneByOne( inflate...
<commit_before>/* This file is part of the Grantlee template system. Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 only, as published by the Free Software Founda...
<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 "bench.h" #include "perf.h" #include <iomanip> #include <iostream> #include <sys/time.h> using namespac...
<commit_before>/* Copyright 2016 Mitchell Young 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 o...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
<commit_before>/// \file ROOT/RError.h /// \ingroup Base ROOT7 /// \author Jakob Blomer <jblomer@cern.ch> /// \date 2019-12-11 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /******************************************************...
<commit_before>/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2020, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "imgui-filebrowser.h" #include "vendor/imgui-filebrowser/imfilebrowser.h" #include "vendor/imgu...
<commit_before>// IVSHMEM-test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #define TEST_START(name) printf("Test: %s...", name) #define TEST_PASS() printf("PASS\n") #define TEST_FAIL(reason) printf("FAIL - %s\n", reason) int main() { HDEVINFO deviceInfoSet; DWORD deviceInde...
<commit_before>/** * This file is part of the "libfnord" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with th...
<commit_before>#include <iostream> #include "ctvm.h" #include "ctvm_util.h" int main(int argc, char **argv){ /* Program: ctvm-recover <sinogram-image> <tilt-angles> <recovered-output> ----------- */ using namespace std; /* Test Inputs */ if(argc != 4){ cout<<"Usage: ctvm-recover <sinogram-image> ...
<commit_before>// @(#)root/cont:$Id$ // Author: Fons Rademakers 04/08/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>// // Copyright (c) 2008-2018 the Urho3D project. // // 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...
<commit_before>#include "ROOT/TThreadExecutor.hxx" #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #include "tbb/tbb.h" #pragma GCC diagnostic pop ////////////////////////////////////////////////////////////////////////// /// /// \class ROOT::TThreadExecutor /// \ingroup Parallelism /// \brief...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "init.h" #include "bitcoinrpc.h" #includ...
<commit_before>/* explosive-c4 Copyright (C) 2014-2022 Salvo "LtWorf" Tomaselli 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 Software Foundation, either version 3 of the License, or (at your option) any later v...
<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 a...
<commit_before>#include "bufferstream.h" #include <node_buffer.h> #include "taglib.h" using namespace v8; using namespace node; using namespace node_taglib; namespace node_taglib { BufferStream::BufferStream(Handle<Object> buffer) : TagLib::IOStream() , m_data(Buffer::Data(buffer)) , m_length(Buffer::Le...
<commit_before>#include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <set> #include "Coords.h" #include "LevelDetect.h" #include "Drawer.h" using namespace std; using namespace cv; #define MIN_RADIUS 25 #define MAX_RADIUS 50 #define MIN_LINE_LENGTH 50 #define MAX_LINE_GAP 50 #define L...
<commit_before>#include "includes.h" #include <spdlog/sinks/systemd_sink.h> namespace { const char *tested_logger_name = "main"; } void run(spdlog::logger &logger) { logger.debug("test debug"); logger.error("test error"); logger.info("test info"); } // std::shared_ptr<spdlog::logger> create_stdout_and_sy...
<commit_before>/* * Copyright (c) 2000 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of the L...
<commit_before>// // Copyright (c) 2008-2018 the Urho3D project. // // 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...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2014 Preferred Infrastructure 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 // Lic...
<commit_before>#include <tiramisu/auto_scheduler/search_method.h> #include <random> namespace tiramisu::auto_scheduler { void beam_search::search(syntax_tree& ast) { ast.print_ast(); if (ast.nb_explored_optims % NB_OPTIMIZATIONS == 0) ast.clear_new_optimizations(); std::vector<syntax_...
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 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 * IMPLI...
<commit_before>/* Copyright 2013-present Barefoot Networks, 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 required by applicable law or...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENS...
<commit_before>/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU...
<commit_before><commit_msg>coverity#441125 Dereference after null check<commit_after><|endoftext|>
<commit_before>#ifndef MLT_MODELS_REGRESSORS_RIDGE_REGRESSION_HPP #define MLT_MODELS_REGRESSORS_RIDGE_REGRESSION_HPP #include <Eigen/Core> #include "../linear_model.hpp" #include "../../utils/linalg.hpp" namespace mlt { namespace models { namespace regressors { class RidgeRegression : public LinearModel { public: ...
<commit_before>#include <compress.hpp> #include <vector> #include <iostream> using iter::compress; template <typename DataType, typename SelectorType> void testcase(std::vector<DataType> data_vec, std::vector<SelectorType> sel_vec) { for (auto e : compress(data_vec, sel_vec)) { std::cout << e <<...
<commit_before>/* // $ g++ -O3 -o cluster createClusters.cpp // $ ./cluster network.pairs network.jaccs network.clusters threshold // // -- network.pairs is an integer edgelist (one edge, two nodes // per line) // // -- network.jaccs contains network.jaccs the jaccard // coefficient for each ...
<commit_before>// Copyright 2016 MongoDB 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 required by applicable law or a...
<commit_before>#include <IOKit/IOLib.h> #include "EventOutputQueue.hpp" #include "FlagStatus.hpp" #include "UserClient_kext.hpp" #include "VK_CONFIG.hpp" namespace org_pqrs_Karabiner { VirtualKey::VK_CONFIG::Vector_Item VirtualKey::VK_CONFIG::items_; void VirtualKey::VK_CONFIG::initialize(void) {} void VirtualKey::...
<commit_before>#include "CallBackWrapper.hpp" #include "CommonData.hpp" #include "Config.hpp" #include "FlagStatus.hpp" #include "FromKeyChecker.hpp" #include "KeyCode.hpp" #include "ListHookedConsumer.hpp" #include "ListHookedKeyboard.hpp" #include "ListHookedPointing.hpp" #include "RemapClass.hpp" namespace org_pqrs...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin developers // Copyright (c) 2017 Empinel/The Ion Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "assert.h" #inclu...
<commit_before>/** * @brief 所有channel文件的模式均为 c + channel<br /> * 使用c的模式是为了简单、结构清晰并且避免异常<br /> * 附带c++的部分是为了避免命名空间污染并且c++的跨平台适配更加简单 */ #include "lock/atomic_int_type.h" #include <assert.h> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #includ...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before> #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE libstorage #define BOOST_TEST_IGNORE_NON_ZERO_CHILD_CODE #include <boost/version.hpp> #include <boost/test/unit_test.hpp> #include <boost/algorithm/string.hpp> #include <iostream> #include <string> #include <vector> #include "storage/Exception.h" ...
<commit_before>/// HEADER #include "model_to_marker.h" /// PROJECT #include <csapex/model/connector_out.h> #include <csapex/model/connector_in.h> #include <csapex_core_plugins/ros_message_conversion.h> //#include <csapex/model/message.h> #include <utils_param/parameter_factory.h> /// SYSTEM #include <csapex/utility...
<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>// Original Code: Copyright (c) 2009-2014 The Bitcoin Core Developers // Modified Code: Copyright (c) 2014 Project Bitmark // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "checkpoints.h" #include "ma...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before>#include "ksp_plugin/vessel_subsets.hpp" #include <list> #include "ksp_plugin/pile_up.hpp" namespace principia { using ksp_plugin::Vessel; using ksp_plugin::PileUp; namespace base { Subset<Vessel>::Properties::SubsetOfExistingPileUp::SubsetOfExistingPileUp( ContainerIterator<PileUps> pile_up) ...
<commit_before>// // Copyright (C) 2006 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor ...
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2013-2014 The Dogecoin developers // Copyright (c) 2014 The Inutoshi developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include ...
<commit_before><commit_msg>11001 - Necklace<commit_after><|endoftext|>
<commit_before>#include "Polynomial.h" Polynomial Polynomial::makeDerivative(size_t order) const { if (degree() <= order) return Polynomial(); auto cbegin = data().cbegin() + order; Polynomial d(data().cbegin()+order, data().cend()); for (size_t i = 0; i < d.degree()+1; i++) for(size_t j = 1; j <= order; j++) ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // *** Modern C++ Wrappers Around Windows Registry C API *** // // Copyright (C) by Giovanni Dicanio // // =========================================================================== // FILE: W...
<commit_before>/* bzflag * Copyright (c) 1993 - 2003 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>/* * Physically Based Rendering * Copyright (c) 2017-2018 Michał Siejak */ #if !(defined(ENABLE_OPENGL) || defined(ENABLE_VULKAN) || defined(ENABLE_D3D11) || defined(ENABLE_D3D12)) #error "At least one renderer implementation must be enabled via an appropriate ENABLE_* preprocessor macro" #endif #in...
<commit_before>// Copyright (c) 2016 ASMlover. 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 o...
<commit_before>/* dtkComposerNodeControlIf.cpp --- * * Author: Nicolas Niclausse * Copyright (C) 2012 - Nicolas Niclausse, Inria. * Created: mar. mai 15 17:05:32 2012 (+0200) * Version: $Id$ * Last-Updated: mer. mai 16 16:59:07 2012 (+0200) * By: Nicolas Niclausse * Update #: 229 */ /* Commentar...
<commit_before>/************************************************************************** * * Copyright 2009-2011 VMware, Inc. * 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...
<commit_before>// // asset_reader_android.cc // GameEngine // // Created by Jon Sharkey on 2013-04-19. // Copyright 2013 Sharkable. All rights reserved. // #include "gameengine/android/asset_reader_android.h" // TODO This is currently in the airhockey source. Rethink JNI... and the GameEngine in general. #include...
<commit_before>//============================================================================= // ■ ruby_connection.cpp //----------------------------------------------------------------------------- // 包装每一个导出到Ruby中的函数,也负责一些Ruby扩展所需的杂务。 //============================================================================= ...
<commit_before>/* * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia 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 (FSF),...
<commit_before> // [TODO] This belongs into the cmake platform files!! #if defined(WIN32) && !defined(_DEBUG) #pragma comment(linker, "/SUBSYSTEM:WINDOWS /entry:mainCRTStartup") #endif #include <memory> #include <gloperate/ext-includes-begin.h> #include <widgetzeug/dark_fusion_style.hpp> #include <gloperate/ext-incl...
<commit_before>#include "stm32f4xx.h" // All of these belong to port D. const uint16_t orangeLedPin = 13; const uint16_t greenLedPin = 12; const uint16_t redLedPin = 14; const uint16_t blueLedPin = 15; void enableGPIOD(); void enableOutputPin(GPIO_TypeDef* gpio, uint16_t pin); void setPin(GPIO_TypeDef* gpio, uint16_t...
<commit_before>#include <iostream> #include <stdlib.h> #include <unistd.h> #include <fstream> #define HEIGHT 80 #define WIDTH 180 #define UPDATELENGTH 150000 #define ALIVE '*' #define DEAD ' ' int board[HEIGHT][WIDTH]; int weightedarray[10] = {0,0,0,0,0,0,1,1,1}; void genBoard(int (board)[HEIGHT][WIDTH]) { std::i...
<commit_before>/********************************************************************* * * * ConfigFemtoAnalysis.C - configuration macro for the femtoscopic * * analysis, meant as a QA process for two-particle effects * * ...
<commit_before><commit_msg>Fix crash in device_sensors.<commit_after><|endoftext|>
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright 2016 Davide Faconti * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
<commit_before>#include "RenderItemMatcher.hpp" double RenderItemMatcher::computeMatching(const RenderItemList & lhs, const RenderItemList & rhs) const { for (int i = 0; i < lhs.size();i++) { int j; for (j = 0; j < rhs.size();j++) _weights[i][j] = _distanceFunction(lhs[i], rhs[j]); for (; j < lhs.size()...
<commit_before>// Memory.cpp (Oclgrind) // Copyright (c) 2013-2015, James Price and Simon McIntosh-Smith, // University of Bristol. All rights reserved. // // This program is provided under a three-clause BSD license. For full // license terms please see the LICENSE file distributed with this // source code. #include ...
<commit_before>/*************************************************************************** * Copyright (C) 1998-2010 by authors (see AUTHORS.txt ) * * * * This file is part of LuxRays. ...
<commit_before>/* - MuzicZapper - Copyright (C) 2011-2017 Sebastien Vavassori * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...