text
stringlengths
54
60.6k
<commit_before>// // Created by Vadim N. on 16/03/2016. // // #include "benchutils.h" #include <Inference> using namespace ymir; using namespace std; int main(int argc, char* argv[]) { // if (argc < 2) { // std::cout << "Please re-run the script with the data folder path supplied." << std::endl; // ...
<commit_before>#include <cstdlib> #include <ctime> #include <iostream> #include <iterator> #include "bench_common.h" #include <algorithm> #include <atomic> #include <boost/program_options.hpp> #include <chrono> #include <cmath> #include <ctime> #include <dariadb.h> #include <limits> #include <random> #include <storage...
<commit_before>/************************************************************************* * * $RCSfile: VisAreaContext.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: cl $ $Date: 2001-02-21 18:04:03 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>#ifndef GROUP__BY__HPP #define GROUP__BY__HPP #include "iterbase.hpp" #include <utility> #include <iterator> #include <initializer_list> namespace iter { template <typename Container, typename KeyFunc> class GroupBy; template <typename Container, typename KeyFunc> GroupBy<Container, ...
<commit_before>#ifndef ITER_GROUP_BY_HPP_ #define ITER_GROUP_BY_HPP_ #include "iterbase.hpp" #include <type_traits> #include <utility> #include <iterator> #include <initializer_list> namespace iter { template <typename Container, typename KeyFunc> class GroupBy; template <typename Container, typename K...
<commit_before> #include "simulation.h" /*! \mainpage Molecular Simulation * * \section int_sec Introduction * * \par This program is a simulated molecular lab for experimenting with DNA operations. * * \par Execution of a directory of DIMACS CNF (*.cnf) expressions can be performed with the Perl runSimulation...
<commit_before>// time complexity - O(n) // space complexity - O(1) class Solution { public: int removeDuplicates(vector<int>& nums) { if (nums.empty()) return 0; if (nums.size() == 1) return 1; int size = nums.size(); int i = 1; int last = nums[0]; while (i < size) ...
<commit_before>// Correctness 100% // Performance 80% // Task score 90% // you can use includes, for example: // #include <algorithm> #include <bitset> // you can write to stdout for debugging purposes, e.g. // cout << "this is a debug message" << endl; int solution(int M, vector<int> &A) { // for(unsigned int i...
<commit_before>// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/local_discovery/service_discovery_shared_client.h" #include "content/public/browser/browser_thread.h" #if define...
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/privacy_blacklist/blacklist_manager.h" #include "base/command_line.h" #include "chrome/browser/browser.h" #in...
<commit_before><commit_msg>coverity#707864 Uninitialized scalar field<commit_after><|endoftext|>
<commit_before>// JPetReader.cpp - Reader #include "JPetReader.h" #include <cassert> #include "../JPetUserInfoStructure/JPetUserInfoStructure.h" JPetReader::JPetReader() : fBranch(0), fEvent(0), fTree(0), fFile(0), fCurrentEventNumber(-1) {/**/} JPetReader::JPetReader(const char* p_filename) : fBranch(0)...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCProperty.cpp // @Author : LvSheng.Huang // @Date : 2012-03-01 // @Module : NFCProperty // // -----------------------------------------------...
<commit_before>// NearIntegers.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main(int argc, char* argv[]) { const double epsilon = 0.0000001; srand(static_cast<unsigned int>(time(NULL))); while (1) { ExpressionMaker e; // Hack if (std::find(e.opCodes.begin(), e.op...
<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>/*========================================================================= Program: Visualization Toolkit Module: vtkGenericAttributeCollection.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for ...
<commit_before>/* License: Apache 2.0. See LICENSE file in root directory. Copyright(c) 2017 Intel Corporation. All Rights Reserved. */ #include "python.hpp" #include "../include/librealsense2/hpp/rs_sensor.hpp" #include "calibrated-sensor.h" void init_sensor(py::module &m) { /** rs_sensor.hpp **/ py::class_<...
<commit_before>// ROOT #include "TFile.h" #include "TList.h" #include "TH1.h" #include "TH2.h" #include "TH3.h" #include "TF1.h" #include "TFormula.h" #include "TRandom.h" #include "TSpline.h" // analysis framework #include "AliAnalysisManager.h" #include "AliInputEventHandler.h" #include "AliVEvent.h" #include "AliVT...
<commit_before>#include <Ogre.h> #include <utility> #include "core/engine.h" #include "core/entity.h" #include "core/system_loader.h" #include "ogrerender.h" using namespace Ogre; Ygg::OgreRenderSystem::OgreRenderSystem(unsigned long window, SystemLoader *loader) :m_parentwindow(window), m_loader(loader) {...
<commit_before>/* ** Copyright 2011-2012 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distribu...
<commit_before>/************************************************************************* * * $RCSfile: filebuff.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: np $ $Date: 2002-08-08 16:08:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before> // vim:sw=2:ai /* * Copyright (C) 2010 DeNA Co.,Ltd.. All rights reserved. * See COPYRIGHT.txt for details. */ #ifndef DENA_MYSQL_INCL_HPP #define DENA_MYSQL_INCL_HPP #ifndef HAVE_CONFIG_H #define HAVE_CONFIG_H #endif #define MYSQL_DYNAMIC_PLUGIN #define MYSQL_SERVER 1 #include <my_config.h> #if...
<commit_before>/***************************************************************************** * vlc-libvlc-jni.cc: JNI interface for vlc Java Bindings ***************************************************************************** * Copyright (C) 1998-2006 the VideoLAN team * * Authors: Filippo Carone <filippo@caron...
<commit_before>/* This file is part of kdepim. Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk> 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...
<commit_before>#include <cmath> #include <iostream> #include <vector> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(NULL); } template <typename T> class StaticRmq { public: StaticRmq(const vector<T>& array): ranges(array.size(), vector<T>(log2...
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>// Copyright (c) 2020 The Orbit 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 "CaptureSerializer.h" #include <fstream> #include <memory> #include "App.h" #include "Callstack.h" #include "Capture.h" #includ...
<commit_before>// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
<commit_before>// Copyright (c) 2014 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "browser/ui/file_dialog.h" #include "base/callback.h" #include "base/file_util.h" #include "browser/native_window.h" #include "browser...
<commit_before>/*************************************************** This is a library for the HDC1000 Humidity & Temp Sensor Designed specifically to work with the HDC1008 sensor from Adafruit ----> https://www.adafruit.com/products/2635 These sensors use I2C to communicate, 2 pins are required to interf...
<commit_before>#include <cassert> #include <cstdio> #include <memory> #include "dxutil.h" #include "renderer.h" #include "camera.h" #include <shellapi.h> // must be after windows.h #include <ShellScalingApi.h> #pragma comment(lib, "d3d11.lib") #pragma comment(lib, "dxgi.lib") #pragma comment(lib, "ninput.lib") #prag...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File: Accumulator.hpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronautics, ...
<commit_before>#include "CommandsConfigReader.h" #include <algorithm> #include <map> #include <memory> #include <string> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include "Command.h" #include "CommandMetadata.h" #include "XPLMDataAccess.h" using namespace xcopilot; nam...
<commit_before>/* * Copyright 2010-2012 Esrille 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 applica...
<commit_before>/************************************************************************* * * $RCSfile: txtstyle.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: mtg $ $Date: 2001-03-22 15:30:20 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include <iostream> #include <string.h> #include <OptionList.h> #include <SQLiteDatabase.h> #include <NaiveSimilarityStrategy.h> #include <Generator.h> #include <TextOutput.h> #define PARAMS 1 using namespace SoundCity; using std::cout; using std::endl; using std::cin; using std::string; void usage (...
<commit_before><commit_msg>Add include guard to PPG node's header file.<commit_after>#ifndef __PATTERN_POSTURE_GENERATOR_NODE_H_INCLUDE__ #define __PATTERN_POSTURE_GENERATOR_NODE_H_INCLUDE__ #endif <|endoftext|>
<commit_before>#include "Buffer.h" #include "Debug.h" #include "Error.h" #include "JITCompiledModule.h" namespace Halide { namespace Internal { namespace { template<typename UnsignedType> bool checked_multiply(const UnsignedType &a, const UnsignedType &c, UnsignedType &result) { if (a == 0) { result = 0; ...
<commit_before>#include <QStringList> #include "kernel.h" #include "raster.h" #include "astnode.h" #include "idnode.h" #include "kernel.h" #include "symboltable.h" #include "operationnode.h" #include "expressionnode.h" #include "parametersnode.h" #include "selectornode.h" #include "termnode.h" #include "commandhandler...
<commit_before>/******************************************************************************* * c7a/common/cyclic_barrier.hpp * * Part of Project c7a. * * Copyright (C) 2015 Emanuel Jbstl <emanuel.joebstl@gmail.com> * * This file has no license. Only Timo Bingmann can compile it. *****************************...
<commit_before>// // Camera.cpp // Cinder-EDSDK // // Created by Jean-Pierre Mouilleseaux on 08 Dec 2013. // Copyright 2013-2014 Chorded Constructions. All rights reserved. // #include "Camera.h" #include "CameraBrowser.h" using namespace ci; using namespace ci::app; namespace Cinder { namespace EDSDK { #pragma...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3 * * (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include "math/SIMD.h" #include "GapsRunner.h" #include <Rcpp.h> // [[Rcpp::export]] Rcpp::List cogaps_cpp(const Rcpp::NumericMatrix &D, const Rcpp::NumericMatrix &S, unsigned nFactor, unsigned nEquil, unsigned nEquilCool, unsigned nSample, unsigned nOutputs, unsigned nSnapshots, float alphaA, float al...
<commit_before>/** * @file Config.cpp * @ingroup LoggerCpp * @brief Configuration for an Output object * * Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */...
<commit_before> #include <dronecore/dronecore.h> #include <iostream> #include <thread> #include <chrono> #include <cstdint> using std::this_thread::sleep_for; using std::chrono::milliseconds; using namespace dronecore; #define ERROR_CONSOLE_TEXT "\033[31m" //Turn text on console red #define TELEMETRY_CONSOLE_TEXT "\0...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/chrome_paths.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #include ...
<commit_before>// Scintilla source code edit control /** @file LexCPP.cxx ** Lexer for C++, C, Java, and Javascript. **/ // 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> ...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/pepper_flash.h" #include "base/basictypes.h" #include "base/command_line.h" #include "base/memory/ref_counted....
<commit_before>// Scintilla source code edit control /** @file LexCSS.cxx ** Lexer for Cascade Style Sheets ** Written by Jakub Vrna **/ // Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #in...
<commit_before>// Scintilla source code edit control /** @file LexLua.cxx ** Lexer for Lua language. ** ** Written by Paul Winwood. ** Folder by Alexey Yutkin. ** Modified by Marcos E. Wurzius & Philippe Lhoste **/ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> ...
<commit_before>// Scintilla source code edit control /** @file LexLua.cxx ** Lexer for Lua language. ** ** Written by Paul Winwood. ** Folder by Alexey Yutkin. ** Modified by Marcos E. Wurzius & Philippe Lhoste **/ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> ...
<commit_before>#include "Logger.h" #include <QtGlobal> #include <QCoreApplication> #include <QDesktopServices> #include <QDir> #include <QTime> #include <fstream> #include <iostream> using namespace std; ofstream logfile; namespace Logging { void logHandler(QtMsgType type, const char *msg) { logfile << QTime:...
<commit_before>#include "Logger.hpp" #include "CAmxDebugManager.hpp" #include "LogManager.hpp" #include "amx/amx2.h" #include <fmt/format.h> Logger::Logger(std::string modulename) : _module_name(std::move(modulename)) { LogConfigReader::Get()->GetLoggerConfig(_module_name, _config); LogManager::Get()->RegisterLog...
<commit_before>/* Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> This file is part of Magnum. Magnum 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 Foundation. ...
<commit_before>// -*- mode: c++, coding: utf-8 -*- /** * tbrpg – Text based roll playing game * * Copyright © 2012 Mattias Andrée (maandree@kth.se) * * 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 Softwar...
<commit_before>//---------------------------------------------------------------------------// //! //! \file Utility_TetrahedronHelpers.cpp //! \author Alex Robinson, Eli Moll //! \brief Tetrahedron helper functions //! //---------------------------------------------------------------------------// // Std Lib Incl...
<commit_before>/********************************************************************************* * Copyright (c) 2013 David D. Marshall <ddmarsha@calpoly.edu> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include "card.h" #include "localization.h" #include <string> #include <stdexcept> #include <sstream> std::string Card::_outputFormat = DEFAULT_OUTPUT_FORMAT; Card::Card() { _name = CnNone; _suit = CsNone; _score = 0; _outputFormat = DEFAULT_OUTPUT_FORMAT; } Card::Card(CardSuit suit, CardName name...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkImageRegistrationMethodTest_3.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserve...
<commit_before>/* * FogLAMP plugin filter class * * Copyright (c) 2018 Dianomic Systems * * Released under the Apache 2.0 Licence * * Author: Amandeep Singh Arora */ #include <filter_pipeline.h> #include <config_handler.h> #include <service_handler.h> #include "rapidjson/writer.h" #include "rapidjson/stringbuf...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>/* * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Disa Mhembere (disa@jhu.edu) * * This file is part of FlashMatrix. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
<commit_before>#include <stdlib.h> #include <wchar.h> #include "XSData.h" #include "Tab.h" #include "Parser.h" #include "Scanner.h" namespace CocoXml{ struct options_s enum_options[]={ {"UNKNOWN_NAMESPACE", UNKNOWN_NAMESPACE}, {"END_UNKNOWN_NAMESPACE", END_UNKNOWN_NAMESPACE}, {"UNKNOWN_TAG"...
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/prefs/pref_service.h" #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" #include "chrome/browser/pro...
<commit_before>#include <common/buffer.h> #include <common/endian.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_cache.h> #include <xcodec/xcodec_decoder.h> #include <xcodec/xcodec_encoder.h> #include <xcodec/xcodec_hash.h> XCodecDecoder::XCodecDecoder(XCodecCache *cache) : log_("/xcodec/decoder"), cache_(ca...
<commit_before>/** * * @file State.cpp * Definitions for the class State, that manages the independent variables of temperature, mass density, * and species mass/mole fraction that define the thermodynamic state (see \ref phases and * class \link Cantera::State State\endlink). * */ /* * $Author$ * $Date$ ...
<commit_before>// Original Work Copyright (c) 2010 Amit J Patel, Modified Work Copyright (c) 2016 Jay M Stevens #include "PolygonalMapGeneratorPrivatePCH.h" #include "DrawDebugHelpers.h" #include "Maps/MapDataHelper.h" #include "PolygonalMapHeightmap.h" FMapData UPolygonalMapHeightmap::MakeMapPoint(FVector2D PixelPos...
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by MIT license that can be found in the // LICENSE file. #include <string.h> #include "rescle.h" bool print_error(const char* message) { fprintf(stderr, "Fatal error: %s\n", message); return 1; } bool ...
<commit_before>#ifndef TOPPRA_PIECEWISE_POLY_PATH_HPP #define TOPPRA_PIECEWISE_POLY_PATH_HPP #include <toppra/geometric_path.hpp> #include <toppra/toppra.hpp> namespace toppra { /// Boundary condition typedef struct { int order; Vector values; } BoundaryCond; /** * \brief Piecewise polynomial geometric pat...
<commit_before>/** * This file defines the `getter` functor. */ #ifndef D2_DETAIL_GETTER_HPP #define D2_DETAIL_GETTER_HPP namespace d2 { namespace detail { /** * Functor fetching a member inside an object. */ template <typename Type, typename Tag> class getter { typedef Type Tag::* Ptr; Ptr ptr_; public...
<commit_before>#ifndef slic3r_LOG_HPP #define slic3r_LOG_HPP #include <string> namespace Slic3r { class Log { public: static void fatal_error(std::string topic, std::wstring message) { std::cerr << topic << ": "; std::wcerr << message << std::endl; } static void info(std::string topic, s...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <set> #include "onnxruntime_extensions.h" #include "ocos.h" class ExternalCustomOps { public: ExternalCustomOps() { } static ExternalCustomOps& instance() { static ExternalCustomOps g_...
<commit_before>/* * Copyright (C) 2009-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #ifndef LIBP...
<commit_before>/* * predixy - A high performance and full features proxy for redis. * Copyright (C) 2017 Joyield, Inc. <joyield.com@gmail.com> * All rights reserved. */ #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/uio.h> #include <netinet/in.h> #include <netinet/ip.h> #include <...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 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>/* * Koder is a code editor for Haiku based on Scintilla. * * Copyright (C) 2014-2015 Kacper Kasper <kacperkasper@gmail.com> * * 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 Foundatio...
<commit_before>// Copyright (c) 2021 The Orbit 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 "ObjectUtils/CoffFile.h" #include <absl/strings/str_format.h> #include <llvm/Demangle/Demangle.h> #include <llvm/Object/Binary.h...
<commit_before>/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013 Andy Brown <www.andybrown.me.uk> * Please see website for licensing terms. */ #include "config/stm32plus.h" #include "config/flash/spi.h" #include "config/sdcard.h" #include "config/usart.h" #include "confi...
<commit_before>//C++ source file - Open Producer - Copyright (C) 2002 Don Burns //Distributed under the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE (LGPL) //as published by the Free Software Foundation. // Simple example of use of Producer::RenderSurface // The myGraphics class is a simple sample of how one would ...
<commit_before>#include <cstdio> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <include/grassmann_pca_with_trimming.hpp> #include <include/private/boost_ublas_external_storage.hpp> #include <include/private/boost_ublas_row_iterator.hpp> #include <boost...
<commit_before>#include "gtest/gtest.h" #include <rapidcheck/gtest.h> #include <string> // http://www.programcreek.com/2013/02/longest-substring-which-contains-2-unique-characters/ // Given a string, find the longest substring that contains only two unique characters. // For example, given "abcbbbbcccbdddadacb", the ...
<commit_before>/*! * \brief Short Time Fourier Transform. * \author Thomas Hamboeck, Austrian Kangaroos 2014 */ #include "STFT.h" #include <limits> #include <complex> #include <iostream> // 0, params.nWindowSize, params.nWindowSkipping, params.nWindowSizePadded, spectrumHandler STFT::STFT(const...
<commit_before>/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complian...
<commit_before>#include "libnanocv/minimize.h" #include "libnanocv/tabulator.h" #include "libnanocv/math/abs.hpp" #include "libnanocv/util/timer.h" #include "libnanocv/math/math.hpp" #include "libnanocv/util/logger.h" #include "libnanocv/util/stats.hpp" #include "libnanocv/math/clamp.hpp" #include "libnanocv/util/rando...
<commit_before>void MakeADQAParamEntry(const char *outputCDB = "local://$ALICE_ROOT/OCDB") { //======================================================================== // // Steering macro for AD reconstruction parameters // // Author: Michal Broz // //===================================================================...
<commit_before>#include "stdafx.h" #include "PvpPotion.h" #include "../../Common/ETypes.h" #include "../../Common/Helpers/RapidHelper.hpp" #include <ATF/global.hpp> namespace GameServer { namespace Addon { #define CheckEffLimType(x, y) \ (x == y && x != -1 && y != -1) bool CPvpPo...
<commit_before>#include <Python.h> #include "structmember.h" #include <string> #include <vector> #include "cc/analysis/analyzer.h" #include "cc/base/unicode/unicode.h" using std::string; using std::vector; namespace { /*----------------------------------------------------------------------------- * PhraserExt obj...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: propertysetcontainer.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 11:19:52 $ * * The Contents of this fi...
<commit_before>// Copyright 2013 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 "ash/touch/touch_hud_projection.h" #include "ash/root_window_controller.h" #include "ash/shell.h" #include "ash/wm/property_util....
<commit_before>#ifndef RBX_EXCEPTION_POINT_HPP #define RBX_EXCEPTION_POINT_HPP #include <setjmp.h> #include "windows_compat.h" namespace rubinius { class NativeMethodEnvironment; class ExceptionPoint { bool jumped_to_; ExceptionPoint* previous_; public: jmp_buf __jump_buffer; public: Excep...
<commit_before>#include <iostream> #include "rglob.h" using namespace std; using namespace rglob; static void validate(string p, string t, bool x = true, bool pp = false); /* Both the main and validate functions below illustrate some sample patterns and targets, as well as providing a useful framework for simple ...
<commit_before>#include "vvLoadDataReaction.h" #include "pqActiveObjects.h" #include "pqApplicationCore.h" #include "pqCoreUtilities.h" #include "pqObjectBuilder.h" #include "pqPipelineRepresentation.h" #include "pqPipelineSource.h" #include "pqServer.h" #include "pqView.h" #include "vtkDataObject.h" #include "vtkPVAr...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2015 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>/* * SSLConfig.cpp * * Created on: May 1, 2016 * Author: James Hong */ #include "tcp/SSLConfig.h" #include <openssl/ssl.h> #include <openssl/evp.h> #include <openssl/err.h> #include <cstdio> #include <cstdlib> #include <unistd.h> #include <cassert> #include <iostream> #include <sstream> #in...
<commit_before> /* passiveLocationPush Example app using samsonClient lib It generates random xml documents simulating information from OSS Passive Location pilot AUTHOR: Andreu Urruela */ #include <stdio.h> // printf #include <stdlib.h> // exit #include <string.h> // memcpy #include <iostream> ...
<commit_before>#include "Halide.h" #include <cstdlib> #include <chrono> #include <iostream> #include "configure.h" #include "conv_layer_wrapper.h" #include <tiramisu/utils.h> // MKL-DNN default format is NCHW according to // https://www.tensorflow.org/performance/performance_guide int main(int, char**) { Halide::...