text
stringlengths
54
60.6k
<commit_before><commit_msg>Fix crashing bug due to browser being NULL. BUG=None TEST=None Review URL: http://codereview.chromium.org/400015<commit_after><|endoftext|>
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXQt - a lightweight, Qt based, desktop toolset * https://lxqt.org * * Copyright: 2012 Razor team * Authors: * Petr Vanek <petr@scribus.info> * * This program or library is free software; you can redistribute it * and/or modify it under the te...
<commit_before>#ifndef STAN_MATH_GPU_MULTIPLY_HPP #define STAN_MATH_GPU_MULTIPLY_HPP #ifdef STAN_OPENCL #include <stan/math/gpu/matrix_gpu.hpp> #include <stan/math/gpu/kernels/scalar_mul.hpp> #include <stan/math/gpu/kernels/matrix_multiply.hpp> #include <Eigen/Dense> namespace stan { namespace math { /** * Multiplies...
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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 // // ...
<commit_before>/* * Copyright (C) 2009-2012, 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. */ #include <ur...
<commit_before>#include <NeuralNetwork/LearningAlgorithm/BackPropagation/BepAlgorithm.h> #include <NeuralNetwork/NeuralLayer/ConvolutionLayer.h> #include <NeuralNetwork/NeuralLayer/NeuralLayer.h> #include <NeuralNetwork/Neuron/ActivationFunction/BiopolarSigmoidFunction.h> #include <NeuralNetwork/Neuron/ActivationFuncti...
<commit_before>#include "skp_local_application.h" #include "skpLog.h" #include "gmock/gmock.h" //#include <gperftools/profiler.h> //#include <gperftools/heap-profiler.h> SkpLog *g_log = skp_null; int main(int argc, char *argv[]) { //ProfilerStart(NULL); //HeapProfilerStart(NULL); g_log = new SkpLog("", "...
<commit_before>/* * CrissCross * A multi-purpose cross-platform library. * * A product of Uplink Laboratories. * * (c) 2006-2009 Steven Noonan. * Licensed under the New BSD License. * */ #include <crisscross/universal_include.h> #include <crisscross/debug.h> #include <crisscross/filewriter.h> using...
<commit_before>#include <cstdio> #include <vector> #include <algorithm> using namespace std; int bsearch(vector<int> v, int lower, int upper, int target) { int pos = (upper + lower) / 2; if (target == v[pos]) return pos; else if (upper == lower) return -1; else { if (target < v...
<commit_before>/* The MIT License (MIT) Copyright (c) 2013-2015 winlin 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, m...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
<commit_before>//g++ genxmllicense.cpp -lcrypto++ -o genxmllicense #include <string> #include <vector> #include <fstream> #include <sstream> #include <stdexcept> using namespace std; #include <crypto++/rsa.h> #include <crypto++/osrng.h> #include <crypto++/base64.h> #include <crypto++/files.h> using namespace CryptoPP;...
<commit_before>// NFA operates on bytes; it could only fail this if it tried to do signed // arithmetic on them, as UTF-8 continuations have most significant bit set. // NOTE: this file should be saved in UTF-8. // Those are perf. tests because `\p{x}` is horribly slow. GROUP_PERF_TEST_EX(5000, "(\\p{L}*)", ANCHOR_BO...
<commit_before>#include "ClientConnectToServerSystem.h" #include <boost/asio/ip/v6_only.hpp> #include <boost/asio/ip/address.hpp> #include "Control.h" #include <TcpClient.h> #include "InputBackendSystem.h" #include "LevelHandlerSystem.h" #include "GameState.h" #include "ClientStateSystem.h" #include <DebugUtil.h> Cli...
<commit_before>/** * Copyright (c) 2016-2018 mvs developers * * This file is part of metaverse-explorer. * * metaverse-explorer is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Soft...
<commit_before><commit_msg>remove ability to use break() a block outside any loop<commit_after><|endoftext|>
<commit_before>/** * @file ParameterList.cpp * * @author <a href="mailto:aschulz@informatik.hu-berlin.de">Alexander Schulz</a> * @author <a href="mailto:krause@informatik.hu-berlin.de">Thomas Krause</a> * */ #include <string> #include <PlatformInterface/Platform.h> #include "Core/Cognition/CognitionD...
<commit_before>#include "gui.h" /** * @brief MainWindow::MainWindow : ventana principal para logearse, registrarse y ver competencias * * @param guiP : objeto gui que hace de mediador y sirve para pasar el control * una vez que se quiera ir a otra ventana * * @param parent : objeto tipo ventana padre que sirve co...
<commit_before>// GLEW #define GLEW_STATIC #include <GL/glew.h> // GL includes #include "Demos.h" #include "Window.h" gwindow::Window window; // The MAIN function, from here we start our application and run our Game loop int main() { window.create(WINDOW_NAME, SCREEN_WIDTH, SCREEN_HEIGHT); // Initialize GLEW to s...
<commit_before>//--------------------------------------------------------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the fil...
<commit_before>/******************************************************************************* * Project: libopencad * Purpose: OpenSource CAD formats support library * Author: Alexandr Borzykh, mush3d at gmail.com * Author: Dmitry Baryshnikov, bishop.dev@gmail.com * Language: C++ **************************...
<commit_before>/************************************************************************* * * $RCSfile: adminpages.hxx,v $ * * $Revision: 1.21 $ * * last change: $Author: fs $ $Date: 2001-05-23 13:47:00 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: odbcconfig.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2007-07-24 12:09:02 $ * * The Contents of this file are mad...
<commit_before><commit_msg>INTEGRATION: CWS residcleanup (1.14.112); FILE MERGED 2007/02/28 20:46:11 pl 1.14.112.1: #i74635# no more ResMgr fallback<commit_after><|endoftext|>
<commit_before>//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xlocx.hxx,v $ * * $Revision: 1.14 $ * * last change: $Author: obo $ $Date: 2007-01-22 13:22:34 $ * * The Contents of this file are made a...
<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>// @(#)root/test:$Name: $:$Id: MainEvent.cxx,v 1.24 2002/08/17 21:39:33 brun Exp $ // Author: Rene Brun 19/01/97 //////////////////////////////////////////////////////////////////////// // // A simple example with a ROOT tree // ================================= // // This pr...
<commit_before>//===-- PrologEpilogInserter.cpp - Insert Prolog/Epilog code in function --===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>//===--- LSLocationPrinter.cpp - Dump all memory locations in program -----===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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...
<commit_before><commit_msg>#92803# Copy/Paste: Use Clipboard, not Selection!<commit_after><|endoftext|>
<commit_before>// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifdef ENABLE_MPI # undef ENABLE_MPI #endif #define ENABLE_MPI 0 #ifdef ENABLE_PARMETIS...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: convertsinglebytetobmpunicode.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2006-06-20 04:37:39 $ * * The Contents o...
<commit_before>/* This program will add histograms (see note) and Trees from a list of root files and write them to a target root file. The target file is newly created and must not be identical to one of the source files. Syntax: hadd targetfile source1 source2 ... or hadd -f targetfile so...
<commit_before>/// @file /// @author uentity /// @date 12.01.2016 /// @brief /// @copyright /// 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 https://mozilla.org/MPL/2.0/ #include <bs/python/c...
<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>/********** tell emacs we use -*- c++ -*- style comments ******************* $Revision: 1.5 $ $Author: trey $ $Date: 2006-04-28 20:33:54 $ @file zmdpSolve.cc @brief No brief Copyright (c) 2002-2006, Trey Smith. All rights reserved. Licensed under the Apache License, Version 2.0 (the "Lice...
<commit_before>#include <iostream> #include <osg/Notify> #include <osg/MatrixTransform> #include <osg/PositionAttitudeTransform> #include <osg/Geometry> #include <osg/Geode> #include <osg/ShapeDrawable> #include <osgUtil/Optimizer> #include <osgDB/Registry> #include <osgDB/ReadFile> #include <osgGA/TrackballManipul...
<commit_before><commit_msg>Fixed bug in transaction test<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: datalock.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 03:46:50 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * $RCSfile: xexch.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: ka $ $Date: 2001-06-22 15:46:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>void runProtonAnalysisQA() { TStopwatch timer; timer.Start(); runProof(200000,"/COMMON/COMMON/LHC08c11_10TeV_0.5T"); //use data sets //runProof(200); //use ascii files timer.Stop(); timer.Print(); } //_________________________________________________// void runProof(Int_t stats = 0, co...
<commit_before>#ifndef KEYBOARDMANAGER_HPP #define KEYBOARDMANAGER_HPP #include <map> #include <string> #include <functional> #include <SFML/Window/Event.hpp> #include <SFML/Window/Keyboard.hpp> #include "Binding.hpp" namespace swift { template<typename T> class InputManager { public: using BindingType = Bi...
<commit_before>// Unit Tests for Scintilla internal data structures #include <string.h> #include <algorithm> #include "Platform.h" #include "CharClassify.h" #include "catch.hpp" // Test CharClassify. class CharClassifyTest { // Avoid warnings, private so never called. CharClassifyTest(const CharClassifyTest &...
<commit_before><commit_msg>tests:Fix signed/unsigned compare warning<commit_after><|endoftext|>
<commit_before>#include <silicium/async_process.hpp> #include <silicium/http/parse_request.hpp> #include <silicium/http/generate_response.hpp> #include <silicium/asio/tcp_acceptor.hpp> #include <silicium/observable/spawn_coroutine.hpp> #include <iostream> namespace { } int main() { boost::asio::io_service io; Si::...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // 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 f...
<commit_before><commit_msg>tests: Do not call vkQueueBindSparse() when sparse bindings are not supported<commit_after><|endoftext|>
<commit_before>// Copyright 2013 The Flutter 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 "flutter/testing/dart_isolate_runner.h" namespace flutter { namespace testing { AutoIsolateShutdown::AutoIsolateShutdown(std::shar...
<commit_before>//Copyright (c) 2019 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include <gtest/gtest.h> #include "../src/Application.h" //To set up a scene and load settings that the layer plan and merger need. #include "../src/FanSpeedLayerTime.h" //Required to construct a layer...
<commit_before>/************************************************************************* * * $RCSfile: zoom.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kz $ $Date: 2005-01-21 16:56:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>/// /// anax tests /// An open source C++ entity system. /// /// Copyright (C) 2013-2014 Miguel Martin (miguel@miguel-martin.com) /// /// 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 t...
<commit_before>//Copyright (c) 2021 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include <gtest/gtest.h> #include "../src/settings/Settings.h" //Settings to generate walls with. #include "../src/utils/polygon.h" //To create example polygons. #include "../src/sliceDataStorage.h" //...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Kirsten Weber #ifndef DUNE_GDT_EVALUATION_ELLIPTIC_HH #define DUNE_G...
<commit_before>// AboutBox.cpp // Copyright (c) 2009, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "AboutBox.h" #include "HeeksFrame.h" BEGIN_EVENT_TABLE( CAboutBox, wxDialog ) EVT_BUTTON( wxID_OK, CAboutBox::OnButtonOK ) END_EVENT_TABLE()...
<commit_before>// Copyright 2015 Cutehacks AS. All rights reserved. // License can be found in the LICENSE file. #include <QtCore/QRegExp> #include <QtCore/QTextCodec> #include <QtNetwork/QNetworkReply> #include <QtQml/QQmlEngine> #include "response.h" #include "serialization.h" namespace com { namespace cutehacks {...
<commit_before>//---------------------------- fe_collection_01a.cc --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // ...
<commit_before>// Copyright (c) 2014 Ross Kinder. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ringfile_internal.h" #include <gtest/gtest.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> std...
<commit_before>//=====================================================================// /*! @file @brief RX56N ファースト・サンプル @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICENSE */ //==...
<commit_before>#include <unistd.h> #include <sys/socket.h> #include <wiringPi.h> #include <softPwm.h> #include "robotManager.hpp" #include "logger.hpp" #include "server.hpp" int RobotManager::lrFD[2], RobotManager::udFD[2]; std::thread RobotManager::lrThread, RobotManager::udThread; bool RobotManager::lrMoving, Robo...
<commit_before>/******************************************************************************* * tests/data/block_pool_test.cpp * * Part of Project Thrill. * * Copyright (C) 2015 Tobias Sturm <mail@tobiassturm.de> * * This file has no license. Only Chuck Norris can compile it. *********************************...
<commit_before>#ifndef DUNE_STUFF_LA_ALGORITHM_NORMALIZE_HH #define DUNE_STUFF_LA_ALGORITHM_NORMALIZE_HH #include <dune/common/typetraits.hh> #include <dune/common/static_assert.hh> #include <dune/stuff/la/container/interface.hh> #include <dune/stuff/la/container/eigen.hh> #include <dune/stuff/common/logging.hh> #inc...
<commit_before>#include "robot_editor.h" #include "robot_preview.h" #include <cstdlib> RobotEditor::RobotEditor() { main_window_ui_.setupUi(&main_window_); robot_preview_ = new RobotPreview(main_window_ui_.rvizFrame); QObject::connect(main_window_ui_.actionExit, SIGNAL(triggered()), this, SLOT(exitTrigger())); ...
<commit_before>#include <tests/lib/test.h> #include <tests/lib/glib-helpers/test-conn-helper.h> #include <tests/lib/glib/echo/chan.h> #include <tests/lib/glib/echo/conn.h> #include <tests/lib/glib/future/conference/chan.h> #include <TelepathyQt4/Connection> #include <TelepathyQt4/PendingReady> #include <telepathy-g...
<commit_before>#include "ExportBodymovin.h" #include "check_params.h" #include "utility.h" #include <ee/SpriteLoader.h> #include <ee/SymbolLoader.h> #include <ee/SymbolFile.h> #include <ee/SymbolFactory.h> #include <ee/SpriteFactory.h> #include <ee/FileHelper.h> #include <ee/SpriteIO.h> #include <easyanim.h> #include...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>// AboutBox.cpp // Copyright (c) 2009, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "AboutBox.h" #include "HeeksFrame.h" BEGIN_EVENT_TABLE( CAboutBox, wxDialog ) EVT_BUTTON( wxID_OK, CAboutBox::OnButtonOK ) END_EVENT_TABLE()...
<commit_before>#include "main.h" #include "Calculus.h" #include "Geometry.h" #include "Arithmetic.h" #include "Stack.h" #include "Convolve.h" #include "Filter.h" #include "File.h" #include "Display.h" #include "LAHBPCG.h" #include "header.h" void Gradient::help() { printf("\n-gradient takes the backward difference...
<commit_before>#include "Animator.h" #include "Graphics.h" #include "Rect.h" #define ANIMATOR WalrusRPG::Animator #define FRAME WalrusRPG::Frame #define UTILS WalrusRPG::Utils namespace { unsigned find_frame(const tinystl::vector<WalrusRPG::Frame> &anim, signed frame_time) { unsigned index = 0; ...
<commit_before>// Ignore unused parameter warnings coming from cppunit headers #include <libmesh/ignore_warnings.h> #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestCase.h> #include <libmesh/restore_warnings.h> #include <libmesh/parallel.h> #include "test_comm.h" // THE CPPUNIT_TEST_SUITE_END macro...
<commit_before>/** * @file Database.cpp * @ingroup SQLiteCpp * @brief Management of a SQLite Database Connection. * * Copyright (c) 2012-2013 Sebastien Rombauts (sebastien.rombauts@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/l...
<commit_before>#include "main.h" #include "CNetwork.h" #include "CServer.h" #include "CUtils.h" #include "CCallback.h" #include <istream> #include <boost/date_time/posix_time/posix_time.hpp> #include "format.h" void CNetwork::NetAlive(const boost::system::error_code &error_code, bool from_write) { if (from_write =...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>#include <iostream> #include <iomanip> #include <fstream> #include <commons/ByteCode.h> #include <commons/Timer.h> #include "Compiler.h" #include "Lexer.h" #include <unistd.h> using namespace std; int Compiler::compile(string file){ cout << "Compile " << file << endl; Timer timer; ifstream inFi...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>// -*- mode: c++ , coding: utf-8 -*- /** * tbrpg – Text based roll playing game * * Copyright © 2012, 2013 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 ...
<commit_before>// // Copyright 2015 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 la...
<commit_before>#include "Document.h" #include "private/Document_p.h" #include <QtCore/QCoreApplication> #include <QtDebug> using namespace arangodb; Document::Document(QObject *parent) : QObject(parent), d_ptr(new internal::DocumentPrivate) { } Document::Document(internal::DocumentPrivate *privatePointer, QO...
<commit_before> #include "nucleus/FilePath.h" #include "nucleus/Macros.h" #if OS(POSIX) #include <unistd.h> #if OS(LINUX) #include <linux/limits.h> #endif #elif OS(WIN) #include "nucleus/Win/WindowsMixin.h" #endif #include "nucleus/MemoryDebug.h" namespace nu { namespace { // If this FilePath contains a drive lett...
<commit_before>#ifndef KDE_GAUSSIAN_HPP #define KDE_GAUSSIAN_HPP namespace kde { template<realScalarType> realScalarType GaussPDF(realScalarType const& x, realScalarType const& mu, realScalarType const& sigma) { realScalarType z = (x - mu)/sigma; return std::exp(-realScalarType(0.5...
<commit_before>// Module: Log4CPLUS // File: socket-win32.cxx // Created: 4/2003 // Author: Tad E. Smith // // // Copyright 2003-2010 Tad E. Smith // // 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 th...
<commit_before>// Module: Log4CPLUS // File: socket-win32.cxx // Created: 4/2003 // Author: Tad E. Smith // // // Copyright 2003-2010 Tad E. Smith // // 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 th...
<commit_before>/* * author: Max Kellermann <mk@cm4all.com> */ #include "Direct.hxx" #include "Prepared.hxx" #include "system/sigutil.h" #include "system/fd_util.h" #include <inline/compiler.h> #include <assert.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <stdio.h> static void CheckedDup2...
<commit_before>/* Copyright (c) 2017, EPL-Vizards * 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>/* -*- 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>// 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. #if !defined(_MSC_VER) #ifdef __linux__ // Linux #include <freetype/ftoutln.h> #include <ft2build.h> #include FT_FREETYPE_H #else // Ma...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fudspord.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 04:41:57 $ * * The Contents of this file are made ...
<commit_before>#include "UnitTest++.h" #include "types.h" #include "query.h" #include "queryablehost.h" #include "rtgconf.h" #include "rtgtargets.h" void mock_set_speed(unsigned int newspeed); // From snmp-mock.cpp SUITE(LongTests) { TEST(one_host_one_Mbps_10_secs) { mock_set_speed(1000000 / 8); RTGCo...
<commit_before>/* * Copyright 2015 WebAssembly Community Group participants * * 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 * * Unl...
<commit_before>//===---------------------- system_error.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>//===---------------------- system_error.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>// Copyright (c) 2020, NVIDIA CORPORATION. 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, thi...
<commit_before>#include "task_manager.hpp" namespace TaskDistribution { TaskManager::TaskManager(ObjectArchive<Key>& archive, ComputingUnitManager& unit_manager): archive_(archive), unit_manager_(unit_manager) { /*if (!archive.available_objects().empty()) load_archive();*/ } TaskMa...
<commit_before>#include <iostream> #include <vector> #include <list> #include <set> #include <map> #include "memdb/utils.h" #include "base/all.h" using namespace base; using namespace mdb; using namespace std; TEST(utils, stringhash32) { EXPECT_EQ(stringhash32("hello"), stringhash32("hello")); EXPECT_NEQ(str...
<commit_before>#include "cmdline.h" #include "align.hpp" #include "algorithm.h" #include <cassert> #include <iostream> #include <stdexcept> namespace text { struct option_t { explicit option_t(const std::string& short_name = std::string(), const std::st...
<commit_before>/* * Copyright 2010, * Nicolas Mansard, Olivier Stasse, François Bleibel, Florent Lamiraux * * CNRS * * This file is part of sot-core. * sot-core 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 Softw...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr> * Copyright (C) 2008 Olivier Gueudelot <gueudelotolive@gmail.com> * Copyright (C) 2008 Charles Huet <packadal@gm...
<commit_before>/* Copyright (c) 2015-2019, AOYAMA Kazuharu * All rights reserved. * * This software may be used and distributed according to the terms of * the New BSD License, which is incorporated herein by reference. */ #include "tredisdriver.h" #include "tsystemglobal.h" #include <TApplicationServerBase> #inc...
<commit_before>#ifndef utf8_iterator_hh_INCLUDED #define utf8_iterator_hh_INCLUDED #include "utf8.hh" #include <iterator> namespace Kakoune { namespace utf8 { // adapter for an iterator on bytes which permits to iterate // on unicode codepoints instead. template<typename BaseIt, typename Sentinel = BaseIt...