text
stringlengths
54
60.6k
<commit_before>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _SRC_BOUNDOBJECT_HPP_ #define _SRC_BOUNDOBJECT_HPP_ #include <string> #include <set> #include <boost/thread/mutex.hpp> #include <qimessaging/api.hpp> #include <qimessaging/session.hpp> #include <qimessa...
<commit_before>#include "buffer_utils.hh" #include "buffer_manager.hh" #include "event_manager.hh" #include "file.hh" #include "selection.hh" #include <unistd.h> #if defined(__APPLE__) #define st_mtim st_mtimespec #endif namespace Kakoune { ColumnCount get_column(const Buffer& buffer, Colum...
<commit_before>#include "stdafx.h" #include "WiimoteFactory.h" WiimoteFactory::WiimoteFactory() :DeviceIndex(0), DeviceInfoSet(NULL), OpenDevice(INVALID_HANDLE_VALUE) { HidD_GetHidGuid(&HidGuid); ZeroMemory(&DeviceInfoData, sizeof(SP_DEVINFO_DATA)); DeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA); DeviceInterf...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hierarchyprovider.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2007-06-05 18:07:11 $ * * The Contents of this file...
<commit_before>#ifndef _CCTAG_MARKERS_TYPES_HPP_ #define _CCTAG_MARKERS_TYPES_HPP_ #include <memory> #include <new> #include <stdexcept> #include <cctag/EdgePoint.hpp> namespace cctag { class EdgePointCollection { using link_pair = std::tuple<int, int>; // 0: before, 1: after static_assert(sizeof(link_pair)==8,...
<commit_before>// Time: O(n) // Space: O(h) /** * // This is the interface that allows for creating nested lists. * // You should not implement it, or speculate about its implementation * class NestedInteger { * public: * // Constructor initializes an empty nested list. * NestedInteger(); * * //...
<commit_before>// Time: O(m * n * l), l is length of the word // Space: O(l) class Solution { public: /** * @param board: A list of lists of character * @param word: A string * @return: A boolean */ bool exist(vector<vector<char>> &board, string word) { unordered_set<string> ret; ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestPBGLAlgorithms.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>// Copyright 2016 Benjamin Glatzel // // 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>// Copyright (c) 2010 Satoshi Nakamoto // 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 "assert.h" #include "chainparams.h" #include "main.h" #include...
<commit_before>// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/browser/api/atom_api_tray.h" #include <string> #include "base/threading/thread_task_runner_handle.h" #include "native_mate/constructor.h" #include "nat...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2016-2017 Esteban Tovagliari, The appleseedhq Organization // // Permission is hereby granted, free of charge...
<commit_before><commit_msg>Update Trie.cpp<commit_after><|endoftext|>
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/autowiring.h> #include <autowiring/SatCounter.h> #include "TestFixtures/Decoration.hpp" class AutoFilterRvalueTest : public testing::Test { public: AutoFilterRvalueTest(void) { AutoCurrentC...
<commit_before>/* * esteid-browser-plugin - a browser plugin for Estonian EID card * * Copyright (C) 2010 Estonian Informatics Centre * * 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 Foundat...
<commit_before>// // user.hpp // ******** // // Copyright (c) 2020 Sharon Fox (sharon at xandium dot io) // // Distributed under the MIT License. (See accompanying file LICENSE) // #pragma once #include "aegis/config.hpp" #include "aegis/utility.hpp" #if !defined(AEGIS_DISABLE_ALL_CACHE) #include "aegis/snowflake.hpp...
<commit_before>#include <cstdlib> #include <iostream> #include <sstream> #include <tinyxml/tinyxml.h> int main(int argc, char *argv[]) { if (argc < 3) { std::cout << "Usage: CombinePartitions [nproc] [outfile]" << std::endl; std::cout << " [nproc] = Number of part...
<commit_before> //------------------------------------- #ifdef SRTK_HAS_CXX11_STATIC_ASSERT int main(void) { static_assert( true, "this should compile with C++0x static_assert keyword support"); return 0; } #endif //------------------------------------- #ifdef SRTK_HAS_CXX11_FUNCTIONAL struct C { void func...
<commit_before>/// /// @file calculator.hpp /// @brief calculator::eval(const std::string&) evaluates an integer /// arithmetic expression and returns the result. If an error /// occurs a calculator::error exception is thrown. /// <https://github.com/kimwalisch/calculator> /// ...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // 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 "assert.h" #include "chainparams.h" #include "main.h" #includ...
<commit_before>//===--- GenArchetype.cpp - Swift IR Generation for Archetype Types -------===// // // 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>#include "data_block_manager.hpp" #include "log_serializer.hpp" #include "utils.hpp" #include "arch/arch.hpp" void data_block_manager_t::start(direct_file_t *file) { assert(state == state_unstarted); dbfile = file; last_data_extent = extent_manager->gen_extent(); blocks_in_last_data_ext...
<commit_before>/** * @file data.cpp * Implementation of the AppData class. * * @author Andrew Mass * @date Created: 2014-07-12 * @date Modified: 2015-06-07 */ #include "data.h" bool AppData::readData(bool isVectorFile) { return isVectorFile ? readDataVector() : readDataCustom(); } bool AppData::readDataCusto...
<commit_before>#pragma once #include <dsp/common.hpp> namespace rack { namespace dsp { /** The simplest possible analog filter using an Euler solver. https://en.wikipedia.org/wiki/RC_circuit Use two RC filters in series for a bandpass filter. */ template <typename T = float> struct TRCFilter { T c = 0.f; T xstate...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // 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 "assert.h" #include "chainparams.h" #include "main.h" #include...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // 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 "assert.h" #include "chainparams.h" #include "main.h" #include...
<commit_before>#ifndef LIBPORT_FWD_HH # define LIBPORT_FWD_HH namespace libport { #if 0 // We don't fwddecl hash, because it is too much of a PITA: // namespace ns // { // struct foo; // } // // namespace impl // { // struct foo {}; // } // // namespace ns // { // using impl::foo; ...
<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 imp...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>#include <cstdio> #include <cstring> #include <cstdlib> #include <cassert> #include <cctype> #include <string> #include <iostream> #include <vector> #include <unordered_map> #include <algorithm> #include "network.h" const string kEnwikiFile = "../enwiki-20151102-pages-articles-multistream.xml"; const ...
<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) 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) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #ifndef PANDORA_PSIZE_H #def...
<commit_before>#include <vector> #include <fstream> #include <iostream> #include <cassert> #include <cmath> #include "RandomNumberGenerator.h" using namespace std; using namespace DNest3; class Data { private: vector<double> logw, run_id; vector< vector<double> > scalars; int N; public: Data() { } voi...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin 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()' #incl...
<commit_before>// ----------------------------------------------------------------------------- // Copyright 2016 Marco Biasini // // 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><commit_msg>typo<commit_after><|endoftext|>
<commit_before>// This file is part of the HörTech Open Master Hearing Aid (openMHA) // Copyright © 2005 2006 2009 2010 2013 2014 2015 2018 2019 2020 HörTech gGmbH // Copyright © 2021 HörTech gGmbH // // openMHA is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Publ...
<commit_before>//======================================================================= // Copyright (c) 2013-2020 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCPluginManager.cpp // @Author : LvSheng.Huang // @Date : 2012-12-15 // @Module : NFCPluginManager // // ----------------------------------------...
<commit_before>#include "renderer/render_view_observer.h" #include "base/strings/stringprintf.h" #include "base/strings/string_util.h" #include "third_party/WebKit/public/web/WebDocument.h" #include "third_party/WebKit/public/web/WebFrame.h" #include "v8/include/v8.h" namespace brightray_example { namespace { void ...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include "cling/MetaProcessor/MetaProce...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include "cling/MetaProcessor/MetaProce...
<commit_before>//===-- AutoUpgrade.cpp - Implement auto-upgrade helper functions ---------===// // // 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>// Copyright 2018 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>/* * Copyright (C) 2007 Austin Robot Technology, Patrick Beeson * Copyright (C) 2009, 2010 Austin Robot Technology, Jack O'Quin * * License: Modified BSD Software License Agreement * * $Id$ */ /** \file * * ROS driver nodelet for the Velodyne HDL-64E 3D LIDAR */ #include <string> #incl...
<commit_before>#define MYSQLPP_NOT_HEADER #include "platform.h" #include "connection.h" #include "query.h" #include "result.h" #if defined(HAVE_MYSQL_SHUTDOWN_LEVEL_ARG) # define SHUTDOWN_ARG ,SHUTDOWN_DEFAULT #else # define SHUTDOWN_ARG #endif using namespace std; namespace mysqlpp { Connection::Connection() : t...
<commit_before>/** -*- c++ -*- * progressdialog.cpp * * Copyright (c) 2004 Till Adam <adam@kde.org>, * David Faure <faure@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 So...
<commit_before>/*************************************************************************** filter_ldif.cxx - description ------------------- begin : Fri Dec 1, 2000 copyright : (C) 2000 by Oliver Strutynski email ...
<commit_before>// Halide tutorial lesson 12. // This lesson demonstrates how to use Halide to run code on a GPU. // On linux, you can compile and run it like so: // g++ lesson_12*.cpp -g -I ../include -L ../bin -lHalide -lpthread -ldl -o lesson_12 // LD_LIBRARY_PATH=../bin ./lesson_12 // On os x: // g++ lesson_12*.c...
<commit_before>#include "rtkfdk_ggo.h" #include "rtkGgoFunctions.h" #include "rtkConfiguration.h" #include "itkThreeDCircularProjectionGeometryXMLFile.h" #include "itkProjectionsReader.h" #include "itkDisplacedDetectorImageFilter.h" #include "itkFDKWeightProjectionFilter.h" #include "itkFFTRampImageFilter.h" #include...
<commit_before>/*! \file WindowManager.cpp \author Dane Gardner <dane.gardner@gmail.com> \section LICENSE This file is part of the Parallel Tools GUI Framework (PTGF) Copyright (C) 2010-2013 Argo Navis Technologies, LLC This library is free software; you can redistribute it and/or modify it under...
<commit_before>#include <iostream> #include <regex> #include <string> #include <vector> using namespace std; // Good diagram: https://engmrk.com/wp-content/uploads/2018/09/Image-Architecture-of-Convolutional-Neural-Network.png class Layer { public: vector<vector<vector<double>>> h(vector<vector<vector<double>>> x...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CListOfLayouts.cpp,v $ // $Revision: 1.6 $ // $Name: $ // $Author: ssahle $ // $Date: 2007/08/17 12:35:28 $ // End CVS Header // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual // Properties...
<commit_before>// @(#)root/thread:$Id$ // Author: Xavier Valls March 2016 /************************************************************************* * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/*************************************************************************** main.cpp - description ------------------- begin : Sun Jan 6 11:50:14 EET 2002 copyright : (C) 2002 by Tuukka Pasanen email : illuusio@mailcity.com **********...
<commit_before>/* listCat.cc KPilot ** ** Copyright (C) 2000-2001 by Adriaan de Groot ** ** This file defines a specialization of KListView that can ** be used to sort some fixed set of object into some fixed ** set of categories. */ /* ** This program is free software; you can redistribute it and/or modify ** it un...
<commit_before>/* * LinkBasedFileLock.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero Gen...
<commit_before>/* Copyright 2012 David Robillard <http://drobilla.net> 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. THIS SOFTWARE IS PROVIDED "...
<commit_before>AliAnalysisTaskCheckDeadcone* AddTaskCheckDeadcone(const char * njetsBase, const char * njetsUS, const char * njetsTrue, const char * njetsPartLevel, const Double_t R, ...
<commit_before>/* * LinkBasedFileLock.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero Gen...
<commit_before>/*************************************************************************/ /* gdscript_highlighter.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/********************************************************************** --- Dlgedit generated file --- File: adddata.cpp Last generated: Fri Jun 20 07:42:44 1997 DO NOT EDIT!!! This file will be automatically regenerated by dlgedit. All changes will be lost. **********************************...
<commit_before>/// HEADER #include <csapex/param/path_parameter.h> /// PROJECT #include <csapex/serialization/parameter_serializer.h> #include <csapex/serialization/io/std_io.h> /// SYSTEM #include <yaml-cpp/yaml.h> #include <boost/any.hpp> CSAPEX_REGISTER_PARAMETER_SERIALIZER(PathParameter) using namespace csapex;...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2010 NorthScale, 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...
<commit_before>//#define DEBUG_AGENT #include "agent.hpp" #include <atomic> #include <cassert> #include <cstdlib> #include <chrono> #include <functional> #include <thread> #include <QtCore/QCoreApplication> #include <QtCore/QThread> #include "agent_qtmonkey_communication.hpp" #include "common.hpp" #include "script.h...
<commit_before>#ifndef STAN__AGRAD__FWD__FUNCTIONS__OWENS_T_HPP #define STAN__AGRAD__FWD__FUNCTIONS__OWENS_T_HPP #include <math.h> #include <stan/agrad/fwd/fvar.hpp> #include <stan/meta/traits.hpp> #include <stan/math/constants.hpp> #include <stan/math/functions/owens_t.hpp> namespace stan { namespace agrad { ...
<commit_before>#include "sdlwrap.hpp" #include <iostream> namespace rs { std::string SDLError::s_errString; const char* SDLError::ErrorDesc() { const char* err = SDL_GetError(); if(*err != '\0') { s_errString = err; SDL_ClearError(); return s_errString.c_str(); } return nullptr; } const char* SDLE...
<commit_before>// @(#)root/core/meta:$Id$ // Author: Paul Russo 30/07/2012 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved. // // ______ __ ___ // /\__ _\ /\ \ /\_ \ // \/_/\ \/ __ \_\ \ _____ ___\//\ \ __ // \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\ // \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/...
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved. // // ______ __ ___ // /\__ _\ /\ \ /\_ \ // \/_/\ \/ __ \_\ \ _____ ___\//\ \ __ // \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\ // \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/...
<commit_before>/* slave_banker.cc Jeremy Barnes, 8 November 2012 Copyright (c) 2012 Datacratic Inc. All rights reserved. Slave banker implementation. */ #include "slave_banker.h" #include "jml/utils/vector_utils.h" using namespace std; static constexpr int MaximumFailSyncSeconds = 3; namespace RTBKIT { ...
<commit_before><commit_msg>Scale Bias post processor for ARM (#5795)<commit_after><|endoftext|>
<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 "ShadowNode.h" #include "ShadowNodeFragment.h" #include <better/small_vector.h> #include <react/core/Comp...
<commit_before>// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #include "player_service.h" #include "swganh/logger.h" #include "swganh/event_dispatcher.h" #include "swganh/service/service_description.h" #include "swganh/service/service_man...
<commit_before><commit_msg>Planning: do not reroute when close to destination<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: file_path_helper.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2006-09-17 08:45:56 $ * * The Contents of this file ...
<commit_before>//===- GlobalCombinerEmitter.cpp - Generate a combiner --------------------===// // // 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>/* This file is part of Pack My Sprites. Pack My Sprites 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. Pack My Sprites is distributed in the hop...
<commit_before>#include "FunctionNodalAverageIC.h" registerMooseObject("RELAP7App", FunctionNodalAverageIC); template <> InputParameters validParams<FunctionNodalAverageIC>() { InputParameters params = validParams<InitialCondition>(); params.addClassDescription( "Initial conditions for an elemental variabl...
<commit_before>AliAnalysisTaskSE *AddTaskEmcalPreparation(const char *perstr = "LHC11h", const char *pass = 0 /*should not be needed*/ ) { AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); if (!mgr) { ::Error("AddTaskEmcalPreparation", "No analysis manager to connect to....
<commit_before>#include "polylineStyle.h" #include "tangram.h" #include "gl/shaderProgram.h" #include "scene/stops.h" #include "tile/tile.h" #include "util/mapProjection.h" namespace Tangram { PolylineStyle::PolylineStyle(std::string _name, Blending _blendMode, GLenum _drawMode) : Style(_name, _blendMode, _drawM...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // tutorial.cpp // ------------ // // Code from the tutorial featured at // https://github.com/parsiad/QuantPDE/wiki/Getting-Started // // Author: Parsiad Azimzadeh ///////////////////////////////////////////////////////////...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013. // 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>/************************************************************************* * * $RCSfile: interpr6.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: nn $ $Date: 2001-01-05 18:27:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/*************************************************************************/ /* remote_transform_2d.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016 Couchbase, 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 ...
<commit_before>// // TimeLine.cpp // Natron // // Created by Frédéric Devernay on 24/09/13. // // #include "TimeLine.h" #ifndef NDEBUG #include <QThread> #include <QCoreApplication> #endif #include <cassert> #include "Engine/Project.h" #include "Engine/AppInstance.h" #include "Engine/Node.h" #include "Engine/Effe...
<commit_before>#ifndef BOARDS_MEGA_HH #define BOARDS_MEGA_HH #include <avr/io.h> #include <avr/sleep.h> /* This board is based on ATmega1280/2560 but only ATmega2560 is supported */ /** * Cosa MEGA Board pin symbol definitions for the ATmega1280 and * ATmega2560 based Arduino boards; Mega 1280/2560. Cosa does not ...
<commit_before>#include <gtest/gtest.h> #include <stan/optimization/bfgs.hpp> #include <test/test-models/no-main/optimization/rosenbrock.cpp> TEST(OptimizationBfgs, rosenbrock_bfgs_convergence) { // -1,1 is the standard initialization for the Rosenbrock function std::vector<double> cont_vector(2); cont_vector[0]...
<commit_before>#include <algorithm> #include <iostream> #include <tiramisu/debug.h> #include <Halide.h> using namespace Halide; using namespace Halide::Internal; using std::string; using std::map; using std::vector; namespace tiramisu { namespace { string stmt_to_string(const string &str, const Stmt &s) { std...
<commit_before>/* * Ubitrack - Library for Ubiquitous Tracking * Copyright 2006, Technische Universitaet Muenchen, and individual * contributors as indicated by the @authors tag. See the * copyright.txt in the distribution for a full listing of individual * contributors. * * This is free software; you can redist...
<commit_before>#include "stdafx.h" #include "core/core.h" #include "platform/dispatch.h" int main(int argc, char *argv[]) { Platform::init(); std::string file_name; auto ram_saver = [&](const u8* data, u32 size) { std::ofstream to_save(file_name + "_ram", std::ios_base::trunc); to_save.write(reinterpret_cast<...
<commit_before>/*############################################################### ## MODULE: sparseKmeans.cpp ## VERSION: 1.0 ## SINCE 2014-06-14 ## AUTHOR: ## Jimmy Lin (xl5224) - JimmyLin@utexas.edu ## DESCRIPTION: ## ################################################################# ## Edited by MacVim #...
<commit_before>// Copyright (c) 2017 Pierre Fourgeaud // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "drivers/xml/serializablecodec_xml.h" #include "core/enginecontext.h" #include "core/fileaccess.h" #include "core/resourceloader.h" #include "core/serializa...
<commit_before>#include "Shader.h" #include <iostream> #include <Utils/File.h> using namespace Utils; namespace Graphics { std::string GetShaderCompileError(GLuint shader) { GLint length; glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length); GLchar* buffer = new GLchar[length + 1]; ...
<commit_before>// Copyright 2018 Global Phasing Ltd. #include "gemmi/monlib.hpp" #include "gemmi/read_cif.hpp" // for read_cif_gz #include "common.h" #include <pybind11/stl.h> #include <pybind11/stl_bind.h> namespace py = pybind11; using namespace gemmi; using monomers_type = std::map<std::string, ChemComp>; using...
<commit_before>/* * Copyright 2010 Martin Hebnes Pedersen, martinhpedersen @ "google mail" * All rights reserved. Distributed under the terms of the MIT License. */ #include "HTGTimeLineView.h" /*InfoPopper constants*/ const int32 kNotify = 1000; const int32 kInformationType = 1001; const int32 kImportantType =...
<commit_before>#include <sstream> #include <string> #include <vector> #include <pybind11/pybind11.h> #include <pybind11/pytypes.h> #include <pybind11/stl.h> #include <arbor/benchmark_cell.hpp> #include <arbor/cable_cell.hpp> #include <arbor/lif_cell.hpp> #include <arbor/spike_source_cell.hpp> #include <arbor/event_ge...
<commit_before>#include "enumType.h" #include <qrutils/outFile.h> #include "nameNormalizer.h" bool EnumType::init(QDomElement const &element, QString const &context) { if (!NonGraphicType::init(element, context)) { return false; } for (QDomElement valueElement = element.firstChildElement("value") ; !valueEle...