text
stringlengths
54
60.6k
<commit_before>#include <iostream> #include <stdio.h> #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/nonfree/features2d.hpp" #include "server/detector/features.h" using namespace cv; using na...
<commit_before>/** @file config.hpp @brief Configuration. @author Timothy Howard @copyright 2013-2014 Timothy Howard under the MIT license; see @ref index or the accompanying LICENSE file for full text. */ #ifndef HORD_CONFIG_HPP_ #define HORD_CONFIG_HPP_ #include <cstddef> #include <cstdint> /** @addtogroup confi...
<commit_before>#include <algorithm> #include <functional> #include <iomanip> #include <iostream> #include <utility> #include "../core/item.hpp" #include "../string.hpp" #include "command_line.hpp" enum { /* * Same order as they are initialized * in main(). Perhaps we should have a * getter funtion ...
<commit_before>#ifndef ACQUISITION_HPP #define ACQUISITION_HPP #include <opencv2/opencv.hpp> #include <opencv2/videoio.hpp> class acquisition { private: cv::VideoCapture _capture = 0; /** * handle opencv errors * @param status error code (CV::Error::Code) * @param func_name function n...
<commit_before>/** * Copyright (C) 2011 * University of Rochester Department of Computer Science * and * Lehigh University Department of Computer Science and Engineering * * License: Modified BSD * Please see the file LICENSE.RSTM for licensing information */ /** * This file presents a simple ...
<commit_before>#pragma once /** @file @brief unit test class Copyright (C) 2008 Cybozu Labs, Inc., all rights reserved. */ #include <stdio.h> #include <string.h> #include <string> #include <list> #include <iostream> #include <utility> #if defined(_MSC_VER) && (MSC_VER <= 1500) #include <cybozu/inttype.hpp> #else ...
<commit_before>#pragma once /** @file @brief zlib compressor and decompressor class Copyright (C) 2009 Cybozu Labs, Inc., all rights reserved. */ #include <cybozu/exception.hpp> #include <cybozu/endian.hpp> #include <cybozu/stream_fwd.hpp> #include <assert.h> #include <stdio.h> #include <zlib.h> #ifdef _MSC_VER ...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>#include <mapbox/geojsonvt/transform.hpp> #include <cmath> namespace mapbox { namespace geojsonvt { TilePoint Transform::transformPoint( const ProjectedPoint& p, uint16_t extent, uint32_t z2, uint32_t tx, uint32_t ty) { int16_t x = ::round(extent * (p.x * z2 - tx)); int16_t y = ::round(ex...
<commit_before>#ifndef TMXPP_FRAME_HPP #define TMXPP_FRAME_HPP #include <chrono> #include <tmxpp/Constrained.hpp> #include <tmxpp/Tile_id.hpp> namespace tmxpp { struct Frame { using Duration = std::chrono::milliseconds; Local_tile_id id; Non_negative<Duration> duration; }; inline bool operator==(Frame ...
<commit_before>#include "servermanager.h" #include <qjsonarray> #include <qjsonobject> #include <qjsonvalue> #include <qdatetime> ServerManager::ServerManager(ClientDb clientDb) : clientDatabase(clientDb) { } QJsonObject ServerManager::exportOnlineUsersJson() { QList<client*> *clientList = clientDatabase.getClie...
<commit_before>#include <Poco/UUIDGenerator.h> #include <Poco/DateTime.h> #include "dao/DeviceDao.h" #include "ui/UIMockInit.h" BEEEON_OBJECT(UIMockInit, BeeeOn::UIMockInit) using namespace Poco; using namespace BeeeOn; void UIMockInit::initUsers() { User joeDoeUser(UserID::random()); joeDoeUser.setFirstName("Joe...
<commit_before>// GraphicView.cpp : implementation file // #include "pch.h" #include "agalia.h" #include "GraphicView.h" #include "ImageDrawD2D.h" #include "ImageDrawGDI.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // GraphicView IMPLEMENT_DYNAMIC(GraphicView, CWnd) GraphicView::GraphicView() { } GraphicView::...
<commit_before>/************************************************************************* * * $RCSfile: objshimp.hxx,v $ * * $Revision: 1.18 $ * * last change: $Author: kz $ $Date: 2003-08-27 16:23:24 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include <cmath> #include <cstdarg> #include <iostream> #include "opencv2/core.hpp" using namespace cv; #include "math.hpp" float median(std::vector<float>& v) { const int n = v.size(); assert(n > 0); if (n == 1) return v[0]; std::sort(v.begin(), v.end()); return v[n / 2]; } float mean(std::vec...
<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. #include <string> #include <...
<commit_before>// Copyright (c) 2019 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/common/process_util.h" #include "gin/dictionary.h" #include "shell/common/gin_converters/callback_converter.h" namespace electron { void EmitWarning(n...
<commit_before>#include "ui_mainwindow.h" #include "utilities.h" #include "window.h" #include <QDesktopServices> #include <QWebSettings> #include <QSettings> #include <QProcess> #include <QDir> #include <QTime> Utilities utils; Utilities::Utilities() : settings(QSettings::IniFormat, QSettings::UserScope, "solusipse"...
<commit_before>/** * @file llweb.cpp * @brief Functions dealing with web browsers * @author James Cook * * $LicenseInfo:firstyear=2006&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify i...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* * Copyright (c) 2007 The Hewlett-Packard Development Company * All rights reserved. * * Redistribution and use of this software in source and binary forms, * with or without modification, are permitted provided that the * following conditions are met: * * The software must be used only for Non...
<commit_before>// ------------------------------------------------------------------------ // audiofx.cpp: General effect processing routines. // Copyright (C) 1999-2002,2004,2006 Kai Vehmanen // // Attributes: // eca-style-version: 3 (see Ecasound Programmer's Guide) // // This program is free software; you can re...
<commit_before>/* * Copyright 2015 LabWare * Copyright 2014 Google, Inc. * Copyright (c) 2007 The Hewlett-Packard Development Company * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property inc...
<commit_before>/* * TWI/I2C library for Arduino Zero * Copyright (c) 2015 Arduino LLC. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 o...
<commit_before>// This file is part of playd. // playd is licensed under the MIT licence: see LICENSE.txt. /** * @file * Implementation of the FlacAudioSource class. * @see audio/audio_source.hpp */ #include <cassert> #include <cstdint> #include <cstdlib> #include <iostream> #include <map> #include <memory> #incl...
<commit_before>#ifndef __ET_SOCKET_HANDLER__ #define __ET_SOCKET_HANDLER__ #include "Headers.hpp" #include "SocketEndpoint.hpp" namespace et { class SocketHandler { public: virtual ~SocketHandler() {} virtual bool hasData(int fd) = 0; virtual ssize_t read(int fd, void* buf, size_t count) = 0; virtual ssize...
<commit_before>/* * libgamelib * * Copyright (C) 2013 Karol Herbst <gamelib@karolherbst.de> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, ...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>// Copyright (c) 2016-2018 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <iostream> #include <bench/bench.h> #include <bloom.h> static void RollingBloom(benchmark::State& ...
<commit_before>/* This is free and unencumbered software released into the public domain. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "regex.h" /* for std::regex, std::regex_match() */ #include "time.h" using namespace xsd; ////////////////////////////////////////////////////////////////////////////...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is dis...
<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 ...
<commit_before>/* Copyright 2016 Nervana Systems 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 agre...
<commit_before>#ifndef MYVECTOR_HPP #define MYVECTOR_HPP 1 #include <algorithm> #include <cstddef> #include <iostream> #include <memory> namespace sandsnip3r { template<typename Type> class MyVectorIterator { private: }; template<typename Type> class MyVector { public: typedef Type value_type; typedef std...
<commit_before>/* Time.cpp (c)2005 Palestar, Richard Lyle */ #include "String.h" #include "Time.h" #include "Bits.h" #include "Debug/SafeThread.h" #include <time.h> #include <sys/timeb.h> //! Define to non-zero to enable the use of QueryPerformanceCount() for Time::milliseconds().. #define ENABLE_QPC 1 //! De...
<commit_before>#include "items/inventory.h" #include "entity_system.h" #include "dataconsts.h" #include "random.h" #include "components/basic_info.h" #include "components/inventory.h" #include "components/item.h" #include "components/lua.h" #include "components/position.h" #include "components/owner.h" #include "itemd...
<commit_before>#include "items/inventory.h" #include "entity_system.h" #include "dataconsts.h" #include "random.h" #include "components/basic_info.h" #include "components/inventory.h" #include "components/item.h" #include "components/lua.h" #include "components/position.h" #include "components/owner.h" #include "itemd...
<commit_before>#include <class_loader/class_loader.h> #include <utexas_guidance/mdp/guidance_model.h> #include <utexas_guidance/mdp/single_robot_solver.h> #include <utexas_planning/common/exceptions.h> namespace utexas_guidance { class ActionEquals { public: explicit ActionEquals(const Action& a) : a_(a)...
<commit_before>#include "widget.h" void Widget::CreateTrayIcon() { QMenu* pTrayIconMenu = new QMenu(this); pTrayIconMenu->addAction(m_pOpenAction); pTrayIconMenu->addSeparator(); pTrayIconMenu->addAction(m_pPostponeAction); pTrayIconMenu->addSeparator(); pTrayIconMenu->addAction(m_pQuitAction);...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: testOpensense.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * 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...
<commit_before>/***************************************************************************** * * * OpenNI 2.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. ...
<commit_before>/** * @file * @author Jason Lingle * @date 2012.02.18 * @brief Implementation of the Text Message Gerät. */ #include <cstring> #include "text_message_geraet.hxx" using namespace std; const NetworkConnection::geraet_num TextMessageInputGeraet::num = NetworkConnection::registerGeraetCreator(&c...
<commit_before>/* Copyright 2016 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 required by applicable law o...
<commit_before>extern "C" { #include <sys/types.h> #include <stdio.h> #include <jpeglib.h> } #include <setjmp.h> #include <graphics/format/JPEG.h> #include <system/System.h> namespace lime { struct ErrorData { struct jpeg_error_mgr base; jmp_buf on_error; }; static void OnOutput (j_common...
<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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
<commit_before>#include <numeric> #include <map> #include "acmacs-base/stream.hh" #include "seqdb/seqdb.hh" #include "signature-page/tree.hh" #include "signature-page/tree-export.hh" #include "signature-page/tree-iterate.hh" // ---------------------------------------------------------------------- using AADiff = std...
<commit_before>/********************************************************************** * File: basedir.c (Formerly getpath.c) * Description: Find the directory location of the current executable using PATH. * Author: Ray Smith * Created: Mon Jul 09 09:06:39 BST 1990 * * (C) Copyright 1990, Hewlet...
<commit_before>#include "nicolive.h" #include <obs-module.h> #include "nico-live-api.hpp" #include "nico-live.hpp" #include "nicolive-log.h" // cannot use anonymouse struct because VS2013 bug // https://connect.microsoft.com/VisualStudio/feedback/details/808506/nsdmi-silently-ignored-on-nested-anonymous-classes-and-st...
<commit_before>#include "ex12_19.h" int main() { return 0; } <commit_msg>updata ex12.19<commit_after><|endoftext|>
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * ADIOS.cpp * * Created on: Sep 29, 2016 * Author: William F Godoy godoywf@ornl.gov */ #include "ADIOS.h" #include <algorithm> // std::transform #include <ios> ...
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_ASSEMBLER_SYSTEM_HH #define DUNE_DETAILED_DISCRETIZATIONS_ASSEMBLER_SYSTEM_HH #include <vector> #include <dune/common/dynmatrix.hh> #include <dune/common/dynvector.hh> #include <dune/common/shared_ptr.hh> namespace Dune { namespace Detailed { namespace Discretizat...
<commit_before>/*============================================================================= NiftyLink: A software library to facilitate communication over OpenIGTLink. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the im...
<commit_before>/// (c) Koheron #include "oscillo.hpp" #include <string.h> #include <thread> #include <chrono> Oscillo::Oscillo(Klib::DevMem& dev_mem_) : dev_mem(dev_mem_) , data_decim(0) { avg_on = false; status = CLOSED; } Oscillo::~Oscillo() { Close(); } int Oscillo::Open() { // Reopening if(...
<commit_before>/* * Copyright 2009 Stephen Liu * For license terms, see the file COPYING along with this library. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "sppbfield.hpp" SP_ProtoBufFieldList :: SP_ProtoBufFieldList() { mList = NULL; mCount = mTotal = 0; } SP_ProtoBufFieldList ::...
<commit_before>#include "opt/data_flow_collector.h" #include "iroha/i_design.h" #include "opt/bb_set.h" #include "opt/data_flow.h" #include "opt/optimizer_log.h" namespace iroha { namespace opt { DataFlowCollector::DataFlowCollector(BBSet *bbs, OptimizerLog *opt_log) : bbs_(bbs), opt_log_(opt_log) {} DataFlow *...
<commit_before> #include "JournalingObjectStore.h" #include "config.h" #define DOUT_SUBSYS journal #undef dout_prefix #define dout_prefix *_dout << dbeginl << "journal " void JournalingObjectStore::journal_start() { dout(10) << "journal_start" << dendl; finisher.start(); } void JournalingObjectStore::journal...
<commit_before>/********************************************************************** * * FILE: PagedLOD.cpp * * DESCRIPTION: Read/Write osg::PagedLOD in binary format to disk. * * CREATED BY: Auto generated by iveGenerate * and later modified by Rune Schmidt Jensen. * * HISTORY: Created 24.3.2003 * ...
<commit_before>//Hold the runtime statistics. E.g. how long was spent in simplification. //The times don't add up to the runtime, because we allow multiple times to //be counted simultaneously. For example, the current Transform()s call //Simplify_TopLevel, so inside simplify time will be counted towards both //Simplif...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #include "graph-math-rewriter.h" #include <cassert> #include <cstdlib> #include <cstring> #include <iostream> #include <memory> #include <sstream> #include <string> #include <vector> #include "fl...
<commit_before>#include <assert.h> #include <deque> #include <stdio.h> #define __STDC_LIMIT_MACROS /* for UINT32_MAX etc. */ #include <stdint.h> #include <stdlib.h> #include "Buffer.h" #include "CompressTree.h" #include "Slaves.h" namespace cbt { uint32_t BUFFER_SIZE; uint32_t MAX_ELS_PER_BUFFER; uint32...
<commit_before>/* See Project chip LICENSE file for licensing information. */ #include <platform/logging/LogV.h> #include <core/CHIPConfig.h> #include <os/log.h> #include <stdarg.h> #include <stdio.h> #include <string.h> namespace chip { namespace Logging { namespace Platform { void LogV(const char * module, uint...
<commit_before>/* Copyright (c) 2013-2017 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "CoreManager.h" #include "CoreController.h" #in...
<commit_before>#include "ErrorHandler.h" ErrorHandler::ErrorHandler() { errId = -1; } char* ErrorHandler::getError() { switch(errId) { case FILE_DOES_NOT_EXIST: return "The file directory submitted does not exist.\n"; case WRONG_EXTENSION: return "This is not a TMX file. M...
<commit_before>#include "Genes/Genome.h" #include <limits> #include "Game/Board.h" #include "Game/Color.h" #include "Utility.h" #include "Genes/Gene.h" #include "Genes/Total_Force_Gene.h" #include "Genes/Freedom_To_Move_Gene.h" #include "Genes/Pawn_Advancement_Gene.h" #include "Genes/Opponent_Pieces_Targeted_Gene.h...
<commit_before>#include "Genes/Genome.h" #include <limits> #include "Game/Color.h" #include "Utility.h" #include "Genes/Gene.h" #include "Genes/Total_Force_Gene.h" #include "Genes/Freedom_To_Move_Gene.h" #include "Genes/Pawn_Advancement_Gene.h" #include "Genes/Opponent_Pieces_Targeted_Gene.h" #include "Genes/Sphere...
<commit_before>// // Copyright (C) 2016 University of Amsterdam // // 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 ver...
<commit_before>#include <exception> #include <iostream> #include <sstream> #include <TFormula.h> #include <pqxx/pqxx> #include "../DBHandler/HeaderFiles/DBHandler.h" #include "JPetCalibration.h" namespace JPetCalibration { using namespace std; class Exception:public exception{ public: Exception(const string&&msg);...
<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>/** * TLS Hello Messages * (C) 2004-2010 Jack Lloyd * * Released under the terms of the Botan license */ #include <botan/tls_messages.h> #include <botan/internal/tls_reader.h> namespace Botan { /** * Encode and send a Handshake message */ void HandshakeMessage::send(Record_Writer& writer, HandshakeHas...
<commit_before>/* stalkware.cpp - stalkware(1) launcher * stalkware - blah bleh - (C) 2013, Timo Buhrmester * See README for contact-, COPYING for license information. */ #if HAVE_CONFIG_H # include <config.h> #endif #include <cstdio> #include <cstdlib> #include <cstring> #include <getopt.h> #include "Kernel.h" ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: asyncfilepicker.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-11-11 11:39:20 $ * * The Contents of this file ar...
<commit_before>// // Program Name - S7_Pointer_to_pointer.cpp // Series: GetOnToC++ Step: 7 // // Purpose: This program illustrates how to use arrays in functions // // Compile: g++ S7_Pointer_to_pointer.cpp -o S7_Pointer_to_pointer // Execute: ./S7_Pointer_to_pointer // // Created by Abinav Janakiraman on 15/9...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: urltransformer.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2006-06-19 11:01:37 $ * * The Contents of this file are...
<commit_before>//===------------------------ strstream.cpp -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#include "CloudBasicLayerRenderer.h" #include "CloudLayerDefinition.h" #include "SoftwareRenderer.h" #include "NoiseGenerator.h" #include "Curve.h" #include "AtmosphereRenderer.h" #include "AtmosphereResult.h" #include "LightComponent.h" #include "clouds/BaseCloudsModel.h" #include "SurfaceMaterial.h" ...
<commit_before>#ifndef RBX_UTIL_THREAD_HPP #define RBX_UTIL_THREAD_HPP // #define DEBUG_LOCKGUARD #define USE_PTHREADS #ifdef USE_PTHREADS #include <pthread.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <sstream> #include <iostream> #include "util/a...
<commit_before>#include "HumbugWindow.h" #include "HumbugAboutDialog.h" #include "HumbugTrayIcon.h" #include "ui_HumbugWindow.h" #include <iostream> #include <QDir> #include <QMenuBar> #include <QSystemTrayIcon> #include <QWebFrame> #include <QWebSettings> #include <QNetworkAccessManager> #include <QDesktopServices> #...
<commit_before>/*============================================================================== Copyright (c) Kapteyn Astronomical Institute University of Groningen, Groningen, Netherlands. All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required ...
<commit_before>#include <RenHook/RenHook.hpp> #include <RenHook/Hooks/Hook.hpp> #include <RenHook/Memory/Protection.hpp> #include <RenHook/Threads/Threads.hpp> RenHook::Hook::Hook(const uintptr_t Address, const uintptr_t Detour) : m_address(Address) , m_size(GetMinimumSize(Address)) , m_memoryBlock(nullptr...
<commit_before> #include "StdSynan.h" #include "RusSentence.h" void InitCopulList(StringVector& v_CopulList) { v_CopulList.clear(); v_CopulList.push_back(""); v_CopulList.push_back(""); v_CopulList.push_back(""); v_CopulList.push_back(""); v_CopulList.push_back(""); } bool HasAdjInNom(const CSynWord& _W) { fo...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file rdofile.cpp \authors Урусов Андрей (rdo@rk9.bmstu.ru) \authors Пройдаков Евгений (lord.tiran@gmail.com) \date 07.11.2020 \brief \indent 4T */ // ---------------------------------------------------------------------------- PCH // ----...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 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>/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2016-2017 Baldur Karlsson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
<commit_before>#include "core/global.h" #include "core/RoleFactory.h" #include "DBEngineFactory.h" #include "IDatabaseEngine.h" #include <fstream> ConfigVariable<channel_t> control_channel("control", 0); ConfigVariable<unsigned int> id_start("generate/min", 1000); ConfigVariable<unsigned int> id_end("generate/max", 20...
<commit_before>#include <stan/agrad/rev/functions/asin.hpp> #include <test/unit/agrad/util.hpp> #include <gtest/gtest.h> #include <stan/math/constants.hpp> #include <stan/agrad/rev/numeric_limits.hpp> TEST(AgradRev,asin_var) { AVAR a = 0.68; AVAR f = asin(a); EXPECT_FLOAT_EQ(asin(0.68), f.val()); AVEC x = cre...
<commit_before>/* Copyright (c) 2011 Steve Revill and Shane Woolcock 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>#include "../ChTestConfig.h" #if defined(__APPLE__) #include <libkern/OSAtomic.h> #endif #include <iostream> using namespace std; using namespace chrono; static volatile int first = 100000; int main() { ChTimer<double> OSX, GNU; #if defined(__APPLE__) OSX.start(); for (int j = 0; j < 100; j++)...
<commit_before>// // Copyright (c) 2008-2013 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 <znc/main.h> #include <znc/User.h> #include <znc/IRCNetwork.h> #include <znc/Modules.h> #include <znc/Nick.h> #include <znc/Chan.h> #include <znc/IRCSock.h> #include "twitchtmi.h" #include "jload.h" TwitchTMI::~TwitchTMI() { } bool TwitchTMI::OnLoad(const CString& sArgsi, CString& sMessage...
<commit_before>/*** tws_strat.cpp -- TWS strategy module * * Copyright (C) 2012 Ruediger Meier * * Author: Ruediger Meier <sweet_f_a@gmx.de> * * This file is part of twstools. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
<commit_before>/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2019 Ben Vanik. All rights reserved. ...
<commit_before>/***************************************************************************** * Help.cpp : Help and About dialogs **************************************************************************** * Copyright (C) 2007 the VideoLAN team * $Id$ * * Authors: Jean-Baptiste Kempf <jb (at) videolan.org> * *...
<commit_before>//Main driver program to run Velocity. #include <conio.h> //Provides console input/output functions. #include <stdio.h> //Provides streams to operate with keyboard. #include "vars.h" //Contains global variables and structure definitions for the player and enemies. #include "gfx.h" //Contains functi...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>#include "include/parser.hh" #include <iostream> // class unittest // { // public: // unittest(); // ~unittest(); // }; #include <fstream> template <class T, class U> std::ostream& operator << ( std::ostream& o, const std::map<T, U> &m) { for (auto &e : m) { o << e.first << ":\n" <...
<commit_before>#include "stdsneezy.h" #include "database.h" #include <vector> #include <string> #include "cgicc/Cgicc.h" #include "cgicc/HTTPHTMLHeader.h" #include "cgicc/HTMLClasses.h" using namespace cgicc; void print_form() { cout << "<form method=post action=\"/low/objlog.cgi\">" << endl; cout << "Filter o...
<commit_before>/** * Copyright (C) 2015 Bitcoin Spinoff Toolkit developers * * 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 * * Unle...
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #ifndef CONTAINERS_COUNTED_HPP_ #define CONTAINERS_COUNTED_HPP_ #include <stddef.h> #include <stdint.h> #include <utility> #include <memory> #include "containers/scoped.hpp" #include "errors.hpp" #include "threading.hpp" // Yes, this is a clone o...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapCache.h" #include "SkBitmapProvider.h" #include "SkImage.h" #include "SkResourceCache.h" #include "SkMipMap.h" #include "SkPixelRef.h" #includ...