text
stringlengths
54
60.6k
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may o...
<commit_before>#include "stdafx.h" #include "test_string_aogo.h" void test_case_conv() { std::string sText = "123WSxx"; std::string sT2 = boost::to_lower_copy(sText); assert(sText == "123WSxx"); assert(sT2 == "123wsxx"); boost::to_lower(sText); assert(sText == "123wsxx"); boost::to_upper(sT...
<commit_before>/** * The MIT License (MIT) * * Copyright © 2018 Ruben Van Boxem * * 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 ...
<commit_before>#include <r2d2.hpp> #include <sstream> #include <boost/format.hpp> #include <iostream> #include <iomanip> Message::Message(bool isDirect, bool requiresResponse) { this->isDirect_ = isDirect; this->requiresResponse_ = requiresResponse; } bool Message::requiresResponse() const { return this-...
<commit_before>class OSingleton { public: static OSingleton * GetSingleton(); virtual ~OSingleton(){} protected : OSingleton(){} static OSingleton * m_pSingleton; }; OSingleton * OSingleton::m_pSingleton = NULL; OSingleton * OSingleton::GetSingleton() { if(m_pSingleton == NULL ) { m_pS...
<commit_before>/*************************************************************************** yahooaddcontact.cpp - description ------------------- begin : Fri Apr 26 2002 copyright : (C) 2002 by Gav Wood email :...
<commit_before>/* ** Copyright 2014-2016 Centreon ** ** 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 ...
<commit_before>/* Copyright (C) 2018 Alexander Akulich <[email protected]> This file is a part of TelegramQt library. 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; e...
<commit_before>#include "MyModel.h" #include "DNest4/code/DNest4.h" #include "Data.h" #include <cmath> using namespace std; using namespace DNest4; MyModel::MyModel() :objects(3, 10, false, MyConditionalPrior(-10., 10., 1E-3, 1E3)) ,mu(Data::get_instance().get_t().size()) { } void MyModel::from_prior(RNG& rng) { o...
<commit_before>#include "throttle.hpp" #include <unistd.h> #include <fcntl.h> /** * Read a configuration file. * * This function is guaranteed to read in all syntactically correct files, but * might also accept others. */ Conf::Conf(const char *config_fn) { // open the file std::ifstream conf_file(config_fn); ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ximpgrp.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 15:10:19 $ * * The Contents of this file are made a...
<commit_before>#ifndef slic3r_Semver_hpp_ #define slic3r_Semver_hpp_ #include <string> #include <cstring> #include <ostream> #include <boost/optional.hpp> #include <boost/format.hpp> #include "semver/semver.h" namespace Slic3r { class Semver { public: struct Major { const int i; Major(int i) : i(i) {} }; struct...
<commit_before>// 2-SAT - O(V+E) int n, vis[2*N], ord[2*N], ordn, cnt, cmp[2*N], val[N]; vector<int> adj[2*N], adjt[2*N]; // for a variable u with idx i // u is 2*i and !u is 2*i+1 // (a v b) == !a -> b ^ !b -> a int v(int x) { return 2*x; } int nv(int x) { return 2*x+1; } // add clause (a v b) void add(int a, int ...
<commit_before>#ifndef GLM_FORCE_RADIANS #define GLM_FORCE_RADIANS #define DEGREES_TO_RADIANS(x) (x * PI / 180.0f) #endif #include "ascii_grid_loader.hpp" #include "code/ylikuutio/triangulation/quad_triangulation.hpp" #include "code/ylikuutio/string/ylikuutio_string.hpp" #include "code/ylikuutio/common/globals.hpp" #i...
<commit_before><commit_msg>Replaced `#include` line with a forward declaration.<commit_after><|endoftext|>
<commit_before>#include "DynamixelConsole.h" const DynamixelCommand DynamixelConsole::sCommand[] = {{"ping", &DynamixelConsole::ping}, {"read", &DynamixelConsole::read}, {"write", &DynamixelConsole::write}, {"reset", &DynamixelConsole::reset}}; DynamixelConsole::DynamixelConsole(DynamixelInterface &aInterface, St...
<commit_before> #include <iostream> #include <cmath> #include "timer.h" #include "matrix.h" #if defined(AMATRIX_COMPARE_WITH_EIGEN) #include "Eigen/Dense" #endif #if defined(AMATRIX_COMPARE_WITH_UBLAS) #include <boost/numeric/ublas/matrix.hpp> #endif template <typename TMatrixType1, typename TMatrixType2> bool Chec...
<commit_before>#include <iostream> #include <cmath> #include "timer.h" #include "matrix.h" #if defined(AMATRIX_COMPARE_WITH_EIGEN) #include "Eigen/Dense" #endif #if defined(AMATRIX_COMPARE_WITH_UBLAS) #include <boost/numeric/ublas/matrix.hpp> #endif template <typename TMatrixType1, typename TMatrixType2> bool Check...
<commit_before>#include <iostream> #include <cmath> #include "timer.h" #include "matrix.h" #if defined(AMATRIX_COMPARE_WITH_EIGEN) #include "Eigen/Dense" #endif #if defined(AMATRIX_COMPARE_WITH_UBLAS) #include <boost/numeric/ublas/matrix.hpp> #endif template <typename TMatrixType, std::size_t NumberOfRows, std:...
<commit_before>#include <stdexcept> #include "FractalGenerator.h" #include "math_utils.h" /* * Public member functions */ FractalGenerator::FractalGenerator(fractalId id, v8::Isolate *isolate, void (*doneCallback)(v8::Isolate *isolate, v8::Local<v8::Object> nodeBuffer, bool halted, void *doneCallbackData)...
<commit_before>// Copyright (c) 2010 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/host_zoom_map.h" #include "base/utf_string_conversions.h" #include "chrome/browser/chrome_thread.h" #include ...
<commit_before>// Copyright (c) 2006-2008 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. // This is a file for random testcases that we run into that at one point or // another have crashed the program. #include "chrom...
<commit_before><commit_msg>Fix chrome frame build.<commit_after><|endoftext|>
<commit_before>#include <stdlib.h> #include <string> #include <string.h> #include <vector> #include <iostream> #include "../../include/Helper/fileUtils.h" std::vector<std::string>* Helper::readLinesFromFile(std::ifstream& inFromFile) { std::vector<std::string>* returnStrings = new std::vector<std::string>(); ...
<commit_before>/************************************************************************** The MIT License (MIT) Copyright (c) 2017 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
<commit_before>// -*- mode: c++ , coding: utf-8 -*- /** * tbrpg – Text based roll playing game * * Copyright © 2012, 2013 Mattias Andrée ([email protected]) * * 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 ...
<commit_before>#include <unit_test/unit_test.h> #include <systemlib/err.h> #include <stdio.h> #include <unistd.h> #include <drivers/drv_hrt.h> #define DSM_DEBUG #include <lib/rc/sbus.h> #include <lib/rc/dsm.h> #include <lib/rc/st24.h> #include <lib/rc/sumd.h> #if !defined(CONFIG_ARCH_BOARD_SITL) #define TEST_DATA_...
<commit_before>/* Copyright (C) Teemu Suutari */ #include <array> #include "LZCBDecompressor.hpp" #include "RangeDecoder.hpp" #include "InputStream.hpp" #include "OutputStream.hpp" template<size_t T> class FrequencyTree { public: FrequencyTree() { for (uint32_t i=0;i<_size;i++) _tree[i]=0; } ~FrequencyTree...
<commit_before>#include "dp.h" #include <memory> DynamicParallelism::DynamicParallelism() { runtime = clRuntime::getInstance(); file = clFile::getInstance(); platform = runtime->getPlatformID(); device = runtime->getDevice(); context = runtime->getContext(); cmdQueue = runtime->getCmdQueue(0); glbSiz...
<commit_before>/************************************************************************* * * $RCSfile: pe_tpltp.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2005-01-27 11:24:40 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include <string.h> #include <node.h> #include <node_buffer.h> #include <openssl/bn.h> #include <openssl/ec.h> #include <openssl/ecdsa.h> #include <openssl/ecdh.h> #include "eckey.h" using namespace v8; using namespace node; static Handle<Value> V8Exception(const char* msg) { HandleSc...
<commit_before>// Copyright 2016 Google 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 o...
<commit_before>#include <DuiApplicationWindow> #include <DuiApplication> #include <QDBusInterface> #include <QDebug> #include "lockscreenui.h" #include "lockscreenbusinesslogic.h" LockScreenBusinessLogic::LockScreenBusinessLogic() : QObject() { eventEater = new EventEater(); screenLock = false, sleepMode...
<commit_before>/* * Copyright (C) 2009 Nokia Corporation. * * Contact: Marius Vollmer <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation. * *...
<commit_before>#include "MMAcquisition.h" #include "../MMDevice/ImageMetadata.h" #include "boost/foreach.hpp" /////////////////////////////////// // MMAquisitionEngine::ImageTask // /////////////////////////////////// ImageTask::ImageTask(MMAcquisitionEngine * eng, ImageRequest imageRequest) { eng_ = en...
<commit_before>/* * Copyright 2010 MQWeb - Franky Braem * * Licensed under the EUPL, Version 1.1 or – as soon they * will be approved by the European Commission - subsequent * versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the * Licence. * You may obtain a copy of th...
<commit_before>/* * Copyright 2009-2019 The VOTCA Development Team * (http://www.votca.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 obtain a copy of the License at * *...
<commit_before>#include "data-student.hpp" using namespace std; Semester::Semester() { period = 0; } Semester::Semester(int p) { period = p; } void Student::init(string n, int s, int g, string m) { name = n; startingYear = s; gradutationYear = g; parseMajors(m); } Student::Student() { init("", 2000, 2004, ""...
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 2006. Use, modification and distribution is // subject to 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 <boost/python.hpp> #include <libtorrent/session.hpp> #include <...
<commit_before>#include "aa_controller.h" #include "animation.h" #include "p_rect.h" //#include "stack_cutter.h" #include <iostream> #include <string> std::array<int,3> aa_controller::prompt_for_quadratic_coeffs(bool allow_negatives) { std::array<int,3> out{}; std::string vars[] = {"a","b","c"}; for (int i = 0; i <...
<commit_before>/************************************************************************* * * $RCSfile: documentacceleratorconfiguration.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-12-08 08:32:53 $ * * The Contents of this file are made available subject to the terms of * eithe...
<commit_before>// Maintainer: Jan Kristian Sto. Domingo [[email protected]] // exec.cpp for rshell #include <iostream> #include <cstring> #include <string> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> using namespace std;...
<commit_before>#include "L3G.h" #include <stdexcept> #define L3G4200D_ADDRESS_SA0_LOW (0xD0 >> 1) #define L3G4200D_ADDRESS_SA0_HIGH (0xD2 >> 1) #define L3GD20_ADDRESS_SA0_LOW (0xD4 >> 1) #define L3GD20_ADDRESS_SA0_HIGH (0xD6 >> 1) L3G::L3G(const char * i2cDeviceName) : i2c(i2cDeviceName) { // Auto-detect ad...
<commit_before>/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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>/* * Copyright (c) 2013-2016, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * * See full license text in LICENSE file at top of project tree */ #include "Log.h" namespace i2p { namespace log { static Log logger; /** * @brief Maps our loglevel to their sy...
<commit_before>#include <iostream> #include <fstream> #include <algorithm> #include <cstdio> #include <cstring> using namespace std; // Maximum number of numbers in files. const int MAX_SIZE = 1024; // Total quantity of numbers int N; // File counter for heap. Initially equals fileNumber and decreases when all number...
<commit_before>#ifndef __STOUT_MULTIHASHMAP_HPP__ #define __STOUT_MULTIHASHMAP_HPP__ #include <utility> #include <boost/unordered_map.hpp> #include "hashset.hpp" // Implementation of a hash multimap via Boost's // 'unordered_multimap'. The rationale for creating this is that the // std::multimap implementation is ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: b2ituple.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-07 20:36:32 $ * * The Contents of this file are made ...
<commit_before> #include <iostream> #include <iomanip> #include <cmath> #include <string> #include <exception> #include <botan/filters.h> using Botan::byte; using Botan::u64bit; #include "common.h" #include "timer.h" #include "bench.h" /* Discard output to reduce overhead */ struct BitBucket : public Botan::Filter ...
<commit_before>/* Copyright (c) 2007-2014, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
<commit_before>#include "helix-c/helix.h" #include "helix/nasdaq/nordic_itch.hh" #include "helix/net.hh" #include <cassert> #include <cstring> #include <string> #include <vector> using namespace std; inline helix_order_book_t wrap(helix::core::order_book* ob) { return reinterpret_cast<helix_order_book_t>(ob); } i...
<commit_before>#include "nanocv.h" #include "tasks/task_dummy.h" #include <boost/program_options.hpp> int main(int argc, char *argv[]) { ncv::init(); using namespace ncv; // parse the command line boost::program_options::options_description po_desc("", 160); po_desc.add_option...
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * VR Juggler is (C) Copyright 1998-2003 by Iowa State University * * Original Authors: * Allen Bierbaum, Christopher Just, * Patrick Hartling, Kevin Meinert, * Carolina Cruz-Neira, Albert Baker * * This libra...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: CTables.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-08 05:35:59 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * $RCSfile: MTable.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hjs $ $Date: 2004-06-25 18:30:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/***************************************************************************** * Copyright (C) 2011-2012 Michael Krufky * * Author: Michael Krufky <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * ...
<commit_before>// coding: utf-8 #ifndef TASK_MECHANICS_HPP # error "Don't include this file directly, use 'task_mechanics.hpp' instead!" #endif task::Mechanics::Mechanics(Leds &leds, Buttons &buttons) : leds(leds), buttons(buttons), isCalibratedX(false), isCalibratedZ(false), correctionX(-20), correctionZ(13), xMo...
<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 <string> #include "base/memory/scoped_ptr.h" #include "base/string16.h" #include "base/utf_string_conversions.h" #include "ch...
<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 "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h" #include <math.h> #include "base/strings/string_split.h...
<commit_before>/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2018 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QScriptEngineSlots.h" static QScri...
<commit_before>/************************************************************************* * * $RCSfile: frmsh.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2004-08-12 13:04:36 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include <iostream> #include "GL/glew.h" #include "RaZ/Utils/Window.hpp" namespace Raz { Window::Window(unsigned int width, unsigned int height, const std::string& name) { glfwInit(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwW...
<commit_before>#include "MysqlDbConnection.h" #include <vector> #include <boost/lexical_cast.hpp> #include <cstdio> namespace sf1r { MysqlDbConnection::MysqlDbConnection() :PoolSize(16) { sqlKeywords_[DbConnection::ATTR_AUTO_INCREMENT] = "AUTO_INCREMENT"; sqlKeywords_[DbConnection::FUNC_LAST_INSERT_ID] = "...
<commit_before>#include "DistributeDriver.h" #include "MasterManagerBase.h" #include "DistributeRequestHooker.h" #include "RequestLog.h" #include "DistributeTest.hpp" #include <util/scheduler.h> #include <util/driver/Reader.h> #include <util/driver/Writer.h> #include <util/driver/writers/JsonWriter.h> #include <util/d...
<commit_before>#include "QtViewerMapping.h" #include <gloperate/Camera.h> #include <gloperate/capabilities/CameraCapability.h> #include <gloperate/capabilities/AbstractViewportCapability.h> #include <gloperate/capabilities/AbstractCoordinateProviderCapability.h> #include <gloperate/input/AbstractEvent.h> #include <glo...
<commit_before>/** * \file * Copyright 2018 Jonas Schenke, Matthias Werner * * This file is part of alpaka. * * alpaka 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 the Lic...
<commit_before>#include <ir/index_manager/index/IndexReader.h> #include <ir/index_manager/index/TermReader.h> #include <ir/index_manager/index/Indexer.h> #include <ir/index_manager/index/MultiIndexBarrelReader.h> #include <ir/index_manager/index/IndexBarrelWriter.h> #include <util/izene_log.h> #include <util/Th...
<commit_before>#include <ir/index_manager/index/IndexReader.h> #include <ir/index_manager/index/TermReader.h> #include <ir/index_manager/index/Indexer.h> #include <ir/index_manager/index/MultiIndexBarrelReader.h> using namespace izenelib::ir::indexmanager; IndexReader::IndexReader(Indexer* pIndex) :...
<commit_before> /* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkBitmap.h" #include "SkShader.h" #include "SkXfermode.h" #include "SkColorPriv.h" namespace skiagm { class Xfermodes2GM : public GM...
<commit_before>#include "SQLiteQueryExecutor.h" #include "Logger.h" #include "sqlite_orm.h" #include <sqlite3.h> #include <memory> #include <sstream> #include <string> namespace comm { using namespace sqlite_orm; std::string SQLiteQueryExecutor::sqliteFilePath; void SQLiteQueryExecutor::migrate() { sqlite3 *conn...
<commit_before>// // Copyright (c) 2018 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include "nanoFramework_hardware_esp32_native.h" static const CLR_RT_MethodHandler method_look...
<commit_before>/** * @file minimizer_test.cpp * @brief Minimize Draft code test version */ #include "minimizer.h" #include <SQ_sampler.h> /** * @function main */ int main( int argc, char* argv[] ) { // 0. Initialize random seed std::random_device rd; std::mt19937 gen( rd() ); std::uniform_real_d...
<commit_before>/* Copyright 2007-2015 QReal Research Group * * 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 ap...
<commit_before>/****************************************************************************** * Copyright (c) 2009, Howard Butler * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions are met: * * ...
<commit_before><commit_msg>Wrote tests for Repeater::fire_next(). Tests pass.<commit_after><|endoftext|>
<commit_before> #include <cstdio> #include <thread> int main(int /*argc*/, char** /*argv*/) { printf("test\n"); std::this_thread::sleep_for(std::chrono::seconds(10)); } <commit_msg>Add basic sound recording scheme and .wav file read/write<commit_after> #include <cstdio> #include <thread> #include <windows.h>...
<commit_before>#pragma once //=====================================================================// /*! @file @brief メニュー・クラス @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2019 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICENSE...
<commit_before>/* This file is part of Zanshin Todo. Copyright 2008-2010 Kevin Ottens <[email protected]> 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>/* * Copyright (c) 2009 Advanced Micro Devices, 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...
<commit_before>/*********************************************************************** filename: SVGTesselator.cpp created: 1st August 2013 author: Lukas Meindl *************************************************************************/ /*************************************************************...
<commit_before>#include <iostream> #include <chrono> using namespace std; #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> int main ( int argc, char** argv ) { // 读取argv[1]指定的图像 cv::Mat image; image = cv::imread ( argv[1] ); //cv::imread函数读取指定路径下的图像 // 判断图像文件是否正确读取 if ( imag...
<commit_before>#if !defined(_WIN32) // This file will only be compiled with clang into llvm bitcode // Generated bitcode will likely get inline for performance. #include <atomic> #include <cmath> #include <type_traits> #define STRUCT_FIELD(S, F) \ extern "C" declt...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>#pragma once #include <asyncio/common.hpp> #include <deque> #include <queue> BEGIN_ASYNCIO_NAMESPACE; template <class T> class ExtendedQueue : public std::queue<T> { public: template <class V> bool erase(V &&elem) { for (auto i = this->c.begin(); i != this->c.end(); i++) { if (*i == elem) {...
<commit_before>#include <Io.h> #include <Windows.h> #include <Winbase.h> #include <stdio.h> #include <stdlib.h> #include <osg/Notify> #include <osg/Node> #include <osg/Geode> #include <osg/Group> #include <osgDB/FileUtils> #include <osgDB/FileNameUtils> #include <osgDB/Registry> using namespace osg; using namespace...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/** @file @brief Implementation @date 2014 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) // Internal Includes #include "VRPNContex...
<commit_before>/* * @Author: Ubi de Feo | Future Tailors * @Date: 2017-07-09 16:34:07 * @Last Modified by: ubi * @Last Modified time: 2017-07-09 16:41:17 */ #include "FTDebouncer.h" /* CONSTRUCTORS/DESTRUCTOR */ FTDebouncer::FTDebouncer() : _debounceDelay(40) { } FTDebouncer::FTDebouncer(uint16_t debou...
<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 "webkit/tools/test_shell/test_shell_request_context.h" #include "build/build_config.h" #include "base/compiler_specific.h" #...
<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/chrome_thread.h" // Friendly names for the well-known threads. static const char* chrome_thread_names[ChromeT...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pyuno_util.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2006-06-20 05:04:45 $ * * The Contents of this file are mad...
<commit_before><commit_msg>Write the kmail account type correctly for KDE 4 KMail. <commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2007, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>#include <cstdlib> #include <cstdio> #include <cstring> #include <string> #include <mist/json.h> #include <mist/dtsc.h> #include <mist/procs.h> #include <mist/timing.h> namespace Info { int getInfo(int argc, char* argv[]) { if (argc < 2){ fprintf( stderr, "Usage: %s <filename>\n", argv[0] )...
<commit_before>#include "openmit/model/ffm.h" #include "openmit/tools/dstruct/sarray.h" namespace mit { ///////////////////////////////////////////////////////////// // ffm model complemention for parameter server framework ///////////////////////////////////////////////////////////// PSFFM::~PSFFM() {} PSFFM* PSFF...
<commit_before>/* * #%L * %% * Copyright (C) 2017 BMW Car IT GmbH * %% * 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 * * Unles...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: certificatecontainer.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-11-07 10:05:41 $ * * The Contents of this fi...
<commit_before><commit_msg>Add a file I forgot in the last change.<commit_after><|endoftext|>