text
stringlengths
54
60.6k
<commit_before>/* * * MIT License * * Copyright (c) 2016-2018 The Cats 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 ...
<commit_before>// Copyright (C) 2013 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/Config.hpp> #include <Nazara/Core/Error.hpp> #include <Nazara/Core/File.hpp> #include <Nazara/Core/InputStre...
<commit_before>#include "core/global.h" #include "EventSender.h" EventSender::EventSender() : m_log("eventsender", "Event Sender"), m_socket(io_service, udp::v4()), m_enabled(false) { } void EventSender::init(const std::string& target) { std::string str_ip = target; if(str_ip == "") { m_enabled = false; m_l...
<commit_before>#include <cctype> #include <sstream> #include <string> #include <vector> #include <boost/filesystem.hpp> #include "NameCompare.hh" #include "parseString.hh" namespace { std::vector<std::string> nameIndex(std::string const &name) { std::vector<std::string> index; if (name.size...
<commit_before>/* * OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI) * * Website: http://www.ocilib.net * * Copyright (c) 2007-2020 Vincent ROGIER <vince.rogier@ocilib.net> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
<commit_before>// // utils/log/Trivial.cc // librefract // // Created by Thomas Jandecka on 16/02/2018 // Copyright (c) 2018 Apiary Inc. All rights reserved. // #include "Trivial.h" #ifdef LOGGING static_assert(false, "LOGGING..."); #include <ofstream> #endif using namespace drafter; using namespace utils; using...
<commit_before>#ifndef __MAPNIK_VECTOR_TILE_UTIL_H__ #define __MAPNIK_VECTOR_TILE_UTIL_H__ #include "vector_tile.pb.h" #include <mapnik/vertex.hpp> #include <mapnik/box2d.hpp> #include <mapnik/geometry.hpp> #include <stdexcept> #include <string> #ifdef CONV_CLIPPER #include "clipper.hpp" #endif namespace mapnik { na...
<commit_before>#include "txbuilder.h" #include "../amount.h" #include "../main.h" #include "../policy/policy.h" #include "../random.h" #include "../script/script.h" #include "../txmempool.h" #include "../uint256.h" #include "../util.h" #include <boost/format.hpp> #include <algorithm> #include <random> #include <stde...
<commit_before>#include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/server.hpp> #include <websocketpp/common/thread.hpp> #include "logger.hpp" #include "protocol.hpp" #include "parser.hpp" #include "util.hpp" #include "server.hpp" using websocketpp::connection_hdl; using websocketpp::lib::placeholder...
<commit_before>/* Copyright (c) 2010, The Mineserver Project 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, th...
<commit_before>#include <x0/http/HttpCore.h> #include <x0/http/HttpCore.h> #include <x0/DateTime.h> #include <x0/Settings.h> #include <x0/Scope.h> #include <x0/Logger.h> #include <sys/resource.h> #include <sys/time.h> namespace x0 { inline bool _contains(const std::map<int, std::map<std::string, std::function<bool(c...
<commit_before>/** * Copyright 2008 Matthew Graham * 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>#include <keymap.h> #include <logger.h> #include <vector> #include <iostream> #include <config.h> namespace newsbeuter { struct op_desc { operation op; char * opstr; char * default_key; char * help_text; unsigned short flags; }; static op_desc opdescs[] = { { OP_OPEN, "open", "enter", _("Open f...
<commit_before>#include "locale.h" #include "language.h" #include <KConfigGroup> #include <KSharedConfig> #include <QDebug> namespace Kubuntu { typedef QList<Language *> LanguagePtrList; class LocalePrivate { public: LocalePrivate(); void init(LanguagePtrList _languages, QString _country); LanguageP...
<commit_before>#include "logger.h" namespace Akumuli { Formatter::Formatter(std::stringstream& str) : str_(str) { } Logger::Logger() { } } // namespace <commit_msg>This must be a part of the previous commit<commit_after>#include "logger.h" namespace Akumuli { Formatter::Formatter(std::stringstream& str) ...
<commit_before>// Copyright (c) 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 <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <a...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>#include "p0run/interpreter.hpp" #include "p0run/string.hpp" #include "p0run/table.hpp" #include "p0compile/compiler.hpp" #include "p0compile/compiler_error.hpp" #include <boost/test/unit_test.hpp> using namespace p0::run; namespace { bool expect_no_error(p0::compiler_error const &error) { std::cer...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before> /****************************************************************************\ * Copyright (C) 2016 Scandy * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR ...
<commit_before>/* * Copyright 2011 Matthias Fuchs * * 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) 2013 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>/***************************************************************************** * preferences.cpp : Preferences ***************************************************************************** * Copyright (C) 2006-2007 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videolan.org> * ...
<commit_before>/***************************************************************************** * x11_dragdrop.cpp ***************************************************************************** * Copyright (C) 2003 the VideoLAN team * $Id$ * * Authors: Cyril Deguet <asmax@via.ecp.fr> * Olivier Teulière...
<commit_before>#include <chrono> #include <iostream> #include <memory> // unique_ptr #include <set> #include <utility> // pair #include <sdd/sdd.hh> #include "mc/live.hh" #include "mc/post.hh" #include "mc/pre.hh" #include "mc/work.hh" namespace pnmc { namespace mc { namespace chrono = std::chrono; typedef sdd::c...
<commit_before>/* * Copyright (C) 2008 The Android Open Source Project * * 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 ...
<commit_before>#include "musicpp.h" static Interval INTERVAL_TABLE[12][2] = { { Interval(IntervalQuality::PERFECT, IntervalNumber::UNISON), Interval(IntervalQuality::DIMINISHED, IntervalNumber::SECOND) }, { Interval(IntervalQuality::MINOR, IntervalNumber::SECOND), Interval(IntervalQuality::AUGMENT...
<commit_before>#include "../../../src/contents.hh" #include "../../../src/configuration.hh" #include "../../../src/show_message.hh" #include "move.hh" namespace vick { namespace move { boost::optional<std::shared_ptr<change> > mvmatch(contents& contents, boost::optional<int>) { if(MATCHES.size() % 2 != 0) { ...
<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 <string> #include <vector> #include <boost/optional.hpp> #include "prompt.hh" #include "configuration.hh" #include "to_str.hh" #include "newmove.hh" #include "show_message.hh" #include "visual.hh" void mvline(contents& contents, boost::optional<int> line) { if(line) { contents.x = ...
<commit_before><commit_msg>Disable URLRequestTest.CancelTest4 since it started leaking. I understand the bug now, but need more time to fix it. Will look at this tomorrow.<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2013 Dropbox, Inc. * * 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, modify, ...
<commit_before>#include "ast.hpp" #include "output.hpp" #include "to_string.hpp" namespace Sass { Output::Output(Context* ctx) : Inspect(Emitter(ctx)), charset(""), top_nodes(0) {} Output::~Output() { } void Output::fallback_impl(AST_Node* n) { return n->perform(this); } void Output::op...
<commit_before>#pragma warning( disable: 4097 ) #pragma warning( disable: 4096 ) #include "test.h" extern "C" { #include "lauxlib.h" #include "lualib.h" } namespace { LUABIND_ANONYMOUS_FIX int feedback = 0; LUABIND_ANONYMOUS_FIX std::string str; struct internal { std::string name_; }; struct property_te...
<commit_before>#include "pb_conn.h" #include "pink_define.h" #include "worker_thread.h" #include "xdebug.h" #include <string> namespace pink { PbConn::PbConn(const int fd, const std::string &ip_port) : PinkConn(fd, ip_port), header_len_(-1), cur_pos_(0), rbuf_len_(0), connStatus_(kHeader), wbuf_len_(0), ...
<commit_before>#include "pbview.h" #include <cinttypes> #include <cstdio> #include <cstring> #include <curses.h> #include <iostream> #include <sstream> #include "config.h" #include "configcontainer.h" #include "dllist.h" #include "download.h" #include "fmtstrformatter.h" #include "help.h" #include "listformatter.h" #...
<commit_before>#include "pbview.h" #include <cinttypes> #include <cstdio> #include <cstring> #include <curses.h> #include <iostream> #include <sstream> #include "config.h" #include "configcontainer.h" #include "dllist.h" #include "download.h" #include "fmtstrformatter.h" #include "help.h" #include "logger.h" #include...
<commit_before>#pragma once #include <string> #include <vector> #include <limits> #include <utility> #include <glm/glm.hpp> // Immutable state class Planet { public: class Orbit { public: Orbit() = default; Orbit(double ecc, double sma, double inc, double lan, double arg, double m0); glm::...
<commit_before>#include "penguin.h" #include "util.h" #include <math.h> sf::Texture Player::texture; sf::SoundBuffer Player::walkSoundBuffer; Player::Player(int icefloe) { loadTexture(texture, "res/img/bear.png"); sprite.setTexture(texture); centerSprite(sprite); loadSoundBuffer(walkSoundBuffer, "res...
<commit_before>// player.cpp /*********************************************************************** * Copyright (C) 2011 Holework Project * 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 Foundatio...
<commit_before>#include "libtorrent/tracker_manager.hpp" #include "libtorrent/http_tracker_connection.hpp" #include "libtorrent/buffer.hpp" #include "libtorrent/xml_parse.hpp" #include "libtorrent/upnp.hpp" #include "libtorrent/entry.hpp" #include "libtorrent/torrent_info.hpp" #include <boost/tuple/tuple.hpp> #include ...
<commit_before>#include <cassert> #include <ostream> #include "lisp_ptr.hh" #include "printer.hh" #include "symbol.hh" #include "cons.hh" #include "cons_util.hh" #include "number.hh" #include "util.hh" #include "delay.hh" #include "vm.hh" #include "eval.hh" #include "s_closure.hh" #include "builtin.hh" using namespac...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner // Copyright (C) 2010-2013 The...
<commit_before>#include "tensorflow_types.hpp" // TODO: Capture error text rather than PyError_Print // TODO: Capture ... (named and un-named args) and forward to call // TODO: py_object_convert (convert from Python to R) // TODO: consider R6 wrapper (would allow custom $ functions) using namespace Rcpp; // https://...
<commit_before>#include <boost/tokenizer.hpp> #include <iostream> #include <unistd.h> #include <string.h> #include <cstdlib> #include <errno.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <string> #include <sstream> #include <vector> #include <sys/stat.h> #include <fcntl.h> int oldstdin = ...
<commit_before>#include "server.h" #include "HttpRequest.h" #include "HttpResponse.h" #include <unistd.h> #include <iostream> #include <event2/bufferevent.h> #include <event2/buffer.h> #include <arpa/inet.h> #include <sys/stat.h> #include <fcntl.h> #include <Foundation/Foundation.h> #include <AVFoundation/AVFoundation...
<commit_before>#include <iostream> #include <chrono> #include <random> #include <numeric> #include <blaze/Math.h> #include "etl/etl.hpp" typedef std::chrono::high_resolution_clock timer_clock; typedef std::chrono::milliseconds milliseconds; typedef std::chrono::microseconds microseconds; namespace { template<typen...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBenchmark.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkColorPriv.h" #include "SkPaint.h" #include "SkShader.h" #include "SkString.h" ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2019 musikcube team // // 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>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the config.tests of the Qt Toolkit. ** ** $QT_BEGIN_LI...
<commit_before>#include "Console.h" #include <cstdio> #ifdef __linux__ #include <termios.h> #include <unistd.h> #include <fcntl.h> #elif _WIN32 #include <conio.h> #endif ConsoleColor::ConsoleColor(const ConsoleColorType foreColor_, const ConsoleColorType backColor_, const bool &foreIntensifi...
<commit_before>/** * @file Context.hpp * @brief The Context manage all ZeroMQ sockets of an application. * * 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) */ #p...
<commit_before>#include <Element.h> #include <FWPlatform.h> #include <TextLabel.h> #include <LinearLayout.h> #include <Command.h> #include <FWApplication.h> #include <SysEvent.h> #include <OpenGLInitEvent.h> #include <cassert> using namespace std; void Element::initialize(FWPlatform * _platform) { assert(_platfor...
<commit_before>#include <Element.h> #include <FWPlatform.h> #include <HeadingText.h> #include <TextLabel.h> #include <LinearLayout.h> #include <FWApplication.h> #include <cassert> using namespace std; int Element::nextInternalId = 1; void Element::initialize(FWPlatform * _platform) { assert(_platform); if (_pla...
<commit_before>#include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <iomanip> //#include "orc_proto.pb.h" #include "wrap/orc-proto-wrapper.hh" using namespace orc::proto; long getTotalPaddingSize(Footer footer); StripeFooter readStripeFooter(StripeInformation stripe)...
<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>// Gripper.cpp #include "stdafx.h" #include "Gripper.h" #include "../interface/HeeksColor.h" static unsigned char circle[18] = {0x1c, 0x00, 0x63, 0x00, 0x41, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x41, 0x00, 0x63, 0x00, 0x1c, 0x00}; static unsigned char translation_circle[30] = {0x00, 0x80, ...
<commit_before>#include "MyServo.h" MyServo::MyServo(int pin): Motor(), pin(pin), servo() {} void MyServo::setup() { this->servo.attach(this->pin); } void MyServo::doWriteWithAnalog(AnalogInput& input) { int rawVal = input.read(-100, 100); int finalVal = rawVal / 10; this->servo.write(this->servo.read() + fin...
<commit_before>// Scintilla source code edit control /** @file PerLine.cxx ** Manages data associated with each line of the document **/ // Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <string.h> #in...
<commit_before>/// /// @file PhiTiny.cpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include "PhiTiny.hpp" #include <stdint.h> #include <vector> #include <cassert> namespace { /// T...
<commit_before>#ifndef QOR_NO_PHYSICS #include "Physics.h" #include <glm/glm.hpp> #include "Node.h" //#include "IMeshContainer.h" //#include "NodeAttributes.h" #include "Node.h" #include "Graphics.h" #include "PhysicsObject.h" #include "Mesh.h" #include <iostream> #include <memory> #include "kit/math/vectorops.h" usin...
<commit_before>/* * TMC2130.cpp * * Created on: 03 nov 2019 * Author: Tim Evers */ #include "TMC2130.h" #if defined(FARMDUINO_EXP_V20) || defined(FARMDUINO_V30) || defined(FARMDUINO_V32) void loadTMC2130ParametersMotor(TMC2130_Basics *tb, int microsteps, int current, int sensitivity, bool stealth) { u...
<commit_before>#include "Tracker.hpp" #include <stdexcept> #include <iostream> #include <stdlib.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <cvblob.h> #include <ros/console.h> #include <cmath> #include "profiling.hpp" // Use this to use the register keyword in some pla...
<commit_before>#include "Vertex4.h" Vertex4::Vertex4(TwoParticleGF &Chi, GreensFunction &g1, GreensFunction &g2, GreensFunction &g3, GreensFunction &g4) : Chi(Chi), g1(g1), g2(g2), g3(g3), g4(g4) { ChiBit1 = Chi.getBit(0); ChiBit2 = Chi.getBit(1); ChiBit3 = Chi.getBit(2); ChiBit4 = Chi.getBit(3); ...
<commit_before>#include <stdio.h> #include <string> #include <boost/python.hpp> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <fcntl.h> #include <sys/mman.h> #include <string.h> #include <math.h> #include <vector> #include <boost/random.hpp> #include <b...
<commit_before>#include <thread> #include <iostream> #include "processor.h" #ifdef WINDOWS #include <windows.h> #else #include <unistd.h> #endif const uint MILLIS_IN_MICRO = 1000; void sleep_for_millis(uint period) { #ifdef WINDOWS Sleep(period); #else usleep(period * MILLIS_IN_MICRO); #endif } TRACE_DEFI...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>CodeGen::CodeGen(){ Builder = new IRBuilder<>(getClobalContext()); Mod = NULL; } bool CodeGen::doCodeGen(TranslationUnitAST &tunit, std::string name){ return generateTranstationUnit(tunit, name); } Module &CodeGen::getModule(){ if(Mod){ return *Mod; } else{ return *(new Module("null...
<commit_before>// codegen #include <iostream> #include "codegen.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Bitcode/BitstreamWriter.h" #include "llvm/Bitcode/ReaderWriter.h" llvm::Function *CodeUnit::buildFunctionHeader(const char *name, FunctionTypeHandle *type) { std::string myName(name); llv...
<commit_before>#include "Matrix.h" Matrix::Matrix(unsigned height, unsigned width) { n = height; m = width; data.reserve(n * m); } <commit_msg>Update Matrix.cpp<commit_after>#include "Matrix.h" Matrix::Matrix(const size_t height, const size_t width, const double initial_value) : n(height), m(widt...
<commit_before>#include "rtkTestConfiguration.h" #include "rtkProjectionsReader.h" #include "rtkMacro.h" #include "rtkDigisensGeometryReader.h" #include "rtkThreeDCircularProjectionGeometryXMLFile.h" #include <itkRegularExpressionSeriesFileNames.h> typedef rtk::ThreeDCircularProjectionGeometry GeometryType; template...
<commit_before>#ifndef HEADER_GUARD_CLASS_CONTENTS_H #define HEADER_GUARD_CLASS_CONTENTS_H #include <vector> #include <string> #include "change.hh" #include "mode.hh" class contents { private: const mode* m; // not deleted in destructor public: std::vector<std::string> cont; unsigned long ...
<commit_before>/* * Copyright (c) 2017, Rauli Laine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this ...
<commit_before>// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "public/fpdf_ppo.h" #include <map> #include <memory> ...
<commit_before>#include "scene.hpp" Scene loadSDF(std::string const& filename) { Scene scene; std::map<std::string,std::shared_ptr<Shape>> tmp_shapes; std::ifstream file; file.open(filename); std::string line; if(file.is_open()) { while(std::getline(file, line)) { Material mat...
<commit_before>#include "List.hpp" #include "../App.hpp" using namespace morda; namespace{ class StaticProvider : public List::ItemsProvider{ std::vector<std::unique_ptr<stob::Node>> widgets; public: size_t count() const noexcept override{ return this->widgets.size(); } std::shared_ptr<Widget> getWidge...
<commit_before>#pragma once #include <memory> namespace beat { template <class BV> struct IGetBV { virtual BV operator()(const void* p) const = 0; }; template <class BV> using GetBV_SP = std::shared_ptr<IGetBV<BV>>; } <commit_msg>IGetBV: virtual-dtor fix<commit_after>#pragma once #include <memory> namespace be...
<commit_before>/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id$ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP), 2008 onwards Date : $Date$ Version : $Revis...
<commit_before>#include <cstdlib> #include <sqlite3.h> #include <nan.h> #include "macros.h" #include "database.h" namespace NODE_SQLITE3_PLUS_DATABASE { int WRITE_MODE = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX; int READ_MODE = SQLITE_OPEN_READONLY | SQLITE_OPEN_FULLMUTEX; v8::Pro...
<commit_before>// Copyright 2013 the V8 project authors. 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> #include "display.h" namespace ssnake { Display::Display(const coordType size_x, const coordType size_y) { initCurses(); setTextures(); initScreen(size_x * 2, size_y); #ifdef _WIN32 system("title SlicerSnake"); #endif } Display::~Display() { if (snakeWin !=...
<commit_before>/* Calf DSP Library utility application. * DSSI GUI application. * Copyright (C) 2007 Krzysztof Foltman * * This program 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 * ve...
<commit_before>/* * Copyright (C) 2015-2018 Dubalu LLC. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
<commit_before>// Copyright (c) 2011 Zeex // // 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>#include "feClass.h" feClass::feClass() { } feClass::feClass(std::string baseClassData) { initializeNameStats(baseClassData); } void feClass::initializeNameStats(std::string baseClassData) { } std::vector<std::string> feClass::getWeaponTypes() const { return (weaponTypes); } std::vector<std::strin...
<commit_before>/* Copyright (c) 2011, The Mineserver Project 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 ...
<commit_before>/** * @file LLSidepanelInventory.cpp * @brief Side Bar "Inventory" panel * * $LicenseInfo:firstyear=2009&license=viewergpl$ * * Copyright (c) 2004-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided by Linden Lab * to you und...
<commit_before>/* * LCALayer.cpp * * Created on: Sep 27, 2012 * Author: pschultz */ #include "LCALayer.hpp" namespace PV { LCALayer::LCALayer(const char * name, HyPerCol * hc, int num_channels) { initialize_base(); initialize(name, hc, num_channels); } LCALayer::LCALayer() { initialize_base(); }...
<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/common/indexed_db_key.h" #include "base/logging.h" #include "third_party/WebKit/WebKit/chromium/public/WebString.h" ...
<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/gpu/gpu_video_decoder.h" #include "chrome/common/child_thread.h" #include "chrome/common/gpu_messages.h" #include "ch...
<commit_before>#pragma once #include "terminalpp/rectangle.hpp" #include <type_traits> #include <utility> namespace terminalpp { //* ========================================================================= /// \brief Iterate a 2D array in row-major order, providing indexed access /// to each element therein. /// //...
<commit_before>#ifndef YAMAIL_RESOURCE_POOL_ASYNC_DETAIL_QUEUE_HPP #define YAMAIL_RESOURCE_POOL_ASYNC_DETAIL_QUEUE_HPP #include <yamail/resource_pool/error.hpp> #include <yamail/resource_pool/time_traits.hpp> #include <boost/asio/executor.hpp> #include <boost/asio/post.hpp> #include <algorithm> #include <list> #incl...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // taskd - Task Server // // Copyright 2010 - 2013, Göteborg Bit Factory. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Softwa...
<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 "base/file_path.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/ui/npapi_test_helper.h" #include "chrome/t...
<commit_before>/* Copyright 2019 The TensorFlow Authors. 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 appl...
<commit_before>/************************************************************************* * * $RCSfile: fileview.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: dv $ $Date: 2001-07-18 13:44:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: testtool.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2003-04-15 17:51:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: fmobj.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: oj $ $Date: 2002-10-31 12:54:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015 Baldur Karlsson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), t...