text
stringlengths
54
60.6k
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "OgreSkeletonAsset.h" #include "LoggingFunctions.h" #include "Framework.h" #include "AssetAPI.h" #include "UrhoRenderer.h" #include "OgreMeshDefines.h" #include "Math/float3.h" #include "Math/Q...
<commit_before>#include "Utility/String.h" #include <string> #include <vector> #include <stdexcept> namespace String { namespace { const auto whitespace = " \t\n"; } } std::vector<std::string> String::split(std::string s, std::string delim, size_t count) { if(delim.empty()) { s = ...
<commit_before>#include <iostream> #include <cmath> using namespace std; class Point3D { double x; double y; double z; public: double getX() { return x; } double getY() { return y; } double getZ() { return z; } void setX(double newX) { x = newX; } void setY(double newY) {...
<commit_before>#include "ValueProcessor.h" #include <sstream> #include <iostream> template <class T> inline std::string to_string (const T& t) { std::stringstream ss; ss << t; return ss.str(); } ValueProcessor::ValueProcessor() {} ValueProcessor::~ValueProcessor() {} TokenList* ValueProcessor::processValue(To...
<commit_before>#include "VehicleGLWidget.h" #include <QKeyEvent> #include <cmath> // All values are half-size. const int VEHICLE_LENGTH = 30; const int VEHICLE_WIDTH = 15; const int ARENA_SIZE = 500; const int WALL_SIZE = 10; VehicleGLWidget::VehicleGLWidget(QWidget* const parent) : QGLWidget(QGLFormat(QGL::SampleB...
<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) #ifndef DUNE_GDT_OPERATORS_WEIGHTED_L2_HH #define DUNE_GDT_OPERATORS_WEIGHTED_L2_HH #in...
<commit_before>#include "universe.h" #include "core/blob.h" #include "core/crc32.h" #include "core/matrix.h" #include "core/json_serializer.h" namespace Lumix { static const int RESERVED_ENTITIES_COUNT = 5000; Universe::~Universe() { } Universe::Universe(IAllocator& allocator) : m_allocator(allocator) , m_nam...
<commit_before>#include "common.h" #include "eventdispatcher_libevent.h" #include "eventdispatcher_libevent_p.h" /** * @class EventDispatcherLibEvent * @brief The EventDispatcherLibEvent class provides an interface to manage Qt's event queue. * * An event dispatcher receives events from the window system and other...
<commit_before>/* Copyright 2012 Denys Sobchyshak 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...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // File contains modifications by: The Gulden developers // All ...
<commit_before>// Copyright 2018 The SwiftShader 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 // // Un...
<commit_before>#include <iostream> #include <exception> #include <fstream> #include <sstream> #include <regex> #include "cli_utils.h" // This file has utilities employed by the glnexus applet. using namespace std; namespace GLnexus { namespace cli { namespace utils { // Parse a range like chr1:1000-2000. The item ca...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. 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. Redistri...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkImageAccumulate.cxx Language: C++ Date: $Date$ Version: $Revision$ Thanks: Thanks to C. Charles Law who developed this class. Copyright (c) 1993-2001 Ken Mar...
<commit_before>#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include "nifty/graph/optimization/mincut/mincut_base.hxx" #include "nifty/graph/optimization/mincut/mincut_visitor_base.hxx" #include "nifty/python/graph/undirected_list_graph.hxx" #include "nifty/python/graph/edge_contraction_graph.hxx" #inc...
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*- Copyright 2014, 2015 Raffaello D. Di Napoli This file is part of Abaclade. Abaclade 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 F...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2015-2016 Esteban Tovagliari, The appleseedhq Organization // // Permission is hereby granted, free of charge...
<commit_before>#pragma once #include <functional> #include <gcl_cpp/type_info.hpp> namespace gcl::functionnal { template <class F> class trait { // todo : multiple operator() using base_type = std::decay_t<F>; using base_operator_type = decltype(&base_type::operator()); template <typename return_t, typename...
<commit_before>#ifndef CCHRONO_TIMER #define CCHRONO_TIMER #include<chrono> namespace nTool { class CChrono_timer { std::chrono::high_resolution_clock::time_point begin_; std::chrono::high_resolution_clock::time_point end_; public: constexpr std::chrono::hours::rep duration_hours() const { return std::ch...
<commit_before>#include <mill/util/logger.hpp> #include <mill/util/file_extension.hpp> #include <mill/traj.hpp> #include "mode_traj_projection.hpp" #include <iostream> namespace mill { const char* mode_traj_projection_usage() noexcept { return "usage: mill traj projection [trajfile] [axes] [origin]\n" ...
<commit_before>// The MIT License(MIT) // Copyright(c) 2016 Jeff Rebacz // // 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>// Copyright (c) 2011-2012 Ryan Prichard // // 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>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.o...
<commit_before>#include "resources/TextureData.h" #include "math/Misc.h" #include "renderers/Renderer.h" #include "resources/ResourceManager.h" #include "ImageIO.h" #include "Log.h" #include <nanosvg/nanosvg.h> #include <nanosvg/nanosvgrast.h> #include <assert.h> #include <string.h> #define DPI 96 TextureData::Textu...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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 applic...
<commit_before>#include "LinearModule.h" #include <cstdio> LinearModule::LinearModule(ModularSynth& synth) :SynthModule(synth, moduleId, 3, 1, 0) { } void LinearModule::cycle() { float input = getInput(0); float x = std::min(1.0f, std::max(0.0f, getInput(1))); float y = std::min(1.0f, std::max(0.0f, getInput(1))...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 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>#include <sys/errno.h> #include <sys/uio.h> #include <errno.h> #include <limits.h> #include <unistd.h> #include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/io_system.h> IOSystem::Handle::Handle(int fd, Channel *owner) : log_("/i...
<commit_before>/* * ESP8266 LLMNR responder * Copyright (C) 2017 Stephen Warren <[email protected]> * * Based on: * ESP8266 Multicast DNS (port of CC3000 Multicast DNS library) * Version 1.1 * Copyright (c) 2013 Tony DiCola ([email protected]) * ESP8266 port (c) 2015 Ivan Grokhotkov ([email protected]) * ...
<commit_before>//===--- Stubs.cpp - Swift Language ABI Runtime Stubs ---------------------===// // // 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>///////////////////////////////////////////////////////////////////////// // $Id: ioapic.cc,v 1.8 2002/08/27 19:54:46 bdenney Exp $ ///////////////////////////////////////////////////////////////////////// // #include <stdio.h> #include "bochs.h" class bx_ioapic_c bx_ioapic; #define LOG_THIS bx_ioapic...
<commit_before>/* * Copyright (c) 2019-2020 Fastly, Inc., Toru Maesaka, Goro Fuji * * 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><commit_msg>Hooks<commit_after><|endoftext|>
<commit_before>#include "walk.hpp" namespace vg { namespace algorithms { void for_each_walk(const HandleGraph& graph, size_t k, size_t edge_max, const std::function<void(const walk_t&)>& lambda) { graph.for_each_handle([&](const handle_t& h) { // for the forward and reverse of this...
<commit_before><commit_msg>Reading of the theme config file<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "CaptureOptionsDialog.h" #include <absl/flags/declare.h> #include <absl/flags/flag.h> #include <QAbstractButton> #include <QDia...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>/* * Copyright 2014 Christian Loose <[email protected]> * * 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 lis...
<commit_before>// // Created by patryk on 10.12.16. // #include <gtest/gtest.h> #include <zinot-utils/zimesh-json/ZimeshJsonReader.hpp> class ZimeshJsonTest : public ::testing::Test { protected: Zimesh::ZimeshJsonDao zimeshJsonDao; }; TEST_F(ZimeshJsonTest, loading) { EXPECT_TRUE(Zimesh::ZimeshJsonReader::loadF...
<commit_before>/* * 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 including but not limited to intellectual property relating ...
<commit_before>#ifndef DESOLIN_TG_OBJECTS_HPP #define DESOLIN_TG_OBJECTS_HPP #include <boost/functional/hash.hpp> #include <typeinfo> #include <cassert> #include <string> #include <map> #include <boost/format.hpp> #include <TaskGraph> #include <desolin/tg/Desolin_tg_fwd.hpp> namespace desolin_internal { template<ty...
<commit_before>/** * These codes are licensed under the Unlicense. * http://unlicense.org */ #ifndef COMMATA_GUARD_F6071085_9476_4724_95ED_E1DA376E837C #define COMMATA_GUARD_F6071085_9476_4724_95ED_E1DA376E837C #include <memory> #include <type_traits> #include <utility> #include "member_like_base.hpp" namespace ...
<commit_before> /** Sketch of the L1 ring buffer desired API -- what the RPC server would look like. */ /* For RPC write_chunks: we need to keep the assembled_chunks alive via a shared_ptr. This can be achieved by the RPC server pulling requests off the client-facing socket in one thread, retrieving shared_pt...
<commit_before>#include <QtNetwork> #include "api-request.h" #include "api-client.h" SeafileApiRequest::SeafileApiRequest(const QUrl& url, Method method, const QString& token) : url_(url), method_(method), token_(token) { api_client_ = new SeafileApiClient; } SeafileApiRequest::~SeafileApiRequest...
<commit_before>//======================================================================= // Copyright (c) 2014 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //========================================================...
<commit_before>//***************************************************************************** // Copyright 2017-2018 Intel Corporation // // 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>/* Copyright (c) 2006, 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 <iostream> int main(int argc ,char *argv[]) { std::cout << "Hello World" << std::endl; return 0; } <commit_msg>Change hello_world.cxx<commit_after>#include <iostream> int main(int argc ,char *argv[]) { std::cout << "Hello World" << std::endl; return 0; } <|endoftext|>
<commit_before>#include <taichi/visualization/image_buffer.h> #include <taichi/math/linalg.h> #define STB_IMAGE_IMPLEMENTATION #define STBI_FAILURE_USERMSG #include <stb_image.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include <stb_image_write.h> #define STB_TRUETYPE_IMPLEMENTATION #include <stb_truetype.h> TC_NAMESP...
<commit_before>#ifndef GP_NODE_CONST_NODE #define GP_NODE_CONST_NODE #include "node_base.hpp" #include <sstream> namespace gp::node { namespace const_node { constexpr const char* nameHeader = "Const["; constexpr char nameDelimiter = ']'; constexpr char propertySeparator = ','; } t...
<commit_before>/* Copyright 2018 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 appli...
<commit_before>// // frame_selector.cpp // Projectname: amos-ss16-proj5 // // Created on 21.05.2016. // Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5 // // This file is part of the AMOS Project 2016 @ FAU // (Friedrich-Alexander University Erlangen-Nürnberg) // // This program is free software: you can redistribute...
<commit_before>/* * Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved. */ #include "db/event/Observable.h" using namespace std; using namespace db::event; using namespace db::modest; using namespace db::rt; Observable::Observable() { // no events to dispatch yet mDispatch = false; } Observable::~O...
<commit_before>#ifndef CPPMATH_AABB_INL #define CPPMATH_AABB_INL #include "AABB.hpp" namespace math { template <typename T> AABB<T>::AABB() : pos(), size() {}; template <typename T> AABB<T>::AABB(T x, T y, T w, T h) : AABB(Point2<T>(x, y), Vec2<T>(w, h)) {}; templ...
<commit_before>/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2012 Sandro Santilli <[email protected]> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General...
<commit_before><commit_msg>better extract page type<commit_after><|endoftext|>
<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/download/download_shelf.h" #include "app/l10n_util.h" #include "base/file_util.h" #include "chrome/browser/br...
<commit_before>/** * File : D.cpp * Author : Kazune Takahashi * Created : 2/9/2019, 9:16:48 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> ...
<commit_before>#ifndef XML11_HPP #define XML11_HPP #include <string> #include <memory> #include <vector> #include <iostream> #include <algorithm> namespace xml11 { namespace detail { using mp_true = std::integral_constant<bool, true>; using mp_false = std::integral_constant<bool, false>; template<class... T> struct...
<commit_before>#include "CoreAudio.h" #include "Functiondiscoverykeys_devpkey.h" #include "../../Logger.h" // {EC9CB649-7E84-4B42-B367-7FC39BE17806} static const GUID G3RVXCoreAudioEvent = { 0xec9cb649, 0x7e84, 0x4b42, { 0xb3, 0x67, 0x7f, 0xc3, 0x9b, 0xe1, 0x78, 0x6 } }; HRESULT CoreAudio::Init() { HRESULT ...
<commit_before>/* * Copyright (c) 2012, 2014 ARM Limited * 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 including but not limited to intellectual property relating * to a hardware implem...
<commit_before>/* * Copyright (c) 2000-2005 The Regents of The University of Michigan * 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 c...
<commit_before>/* * Copyright 2016 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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...
<commit_before>#include "ofxLineSegmentObject.h" ofxLineSegmentObject::ofxLineSegmentObject(int iNumVerts) { lineWidth = 1.0; for(int i=0; i < iNumVerts; i++){ addVertex(0,0,0); } } ofxLineSegmentObject::~ofxLineSegmentObject(){} void ofxLineSegmentObject::render() { glLineWidth(lineWidth); ...
<commit_before>#include <iostream> #include <sstream> #include <string> #include "pegmatite.hh" // This is very bad style, but it's okay for a short example... using namespace std; using namespace pegmatite; /** * The AST namespace contains the abstract syntax tree for this grammar. */ namespace AST { /** * The ...
<commit_before>// Copyright (c) 2014-2022 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_DEMANGLE_HPP #define TAO_PEGTL_DEMANGLE_HPP #include <ciso646> #include <string_view> #include "config.hpp" // ensure a consistent interface namesp...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before>#ifndef ORIGEN_HPP_INCLUDED #define ORIGEN_HPP_INCLUDED #define ORIGEN_VERSION "0.11.0" #ifndef debugger #define debugger __asm__("int $3"); #endif #include "origen/helpers.hpp" #include "origen/site.hpp" #include "origen/utils.hpp" namespace Origen { extern vector<Site> Sites; Utils::Version versio...
<commit_before>// Copyright 2011 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
<commit_before>#ifndef V_SMC_CORE_PARTICLE_HPP #define V_SMC_CORE_PARTICLE_HPP #include <vector> #include <cmath> #include <cstddef> #include <boost/function.hpp> #include <boost/random/binomial_distribution.hpp> #include <boost/random/uniform_01.hpp> #include <Eigen/Dense> #include <vSMC/internal/rng.hpp> #include <v...
<commit_before>// Copyright 2018 Google LLC // Copyright 2018-present Open Networking Foundation // SPDX-License-Identifier: Apache-2.0 #include "stratum/hal/lib/common/hal.h" #include <chrono> // NOLINT #include <utility> #include "absl/base/macros.h" #include "absl/memory/memory.h" #include "absl/strings/str_join...
<commit_before>/** * Description: BigInt (Big Integer library) * Usage: See constructors, operators like +, -, *, /, >, >=, <, <=, ==, toString * Note: Remove references '&' in overloaded operators for chaining operations. * Source: https://github.com/dragonslayerx */ #include <iostream> #include <cstdio> #inclu...
<commit_before>// RUN: cat %s | %cling -Xclang -verify | FileCheck %s //This file checks a call instruction. The called function has arguments with nonnull attribute. #include <string.h> // XFAIL: darwin // XFAIL: i686-pc-linux-gnu char *p = 0; strcmp("a", p); // expected-warning {{warning: null passed to a callee whi...
<commit_before>/* * Copyright (c) 2012 Google * 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 conditi...
<commit_before>/// @brief provides a proxy class to deal with integer below fixed-point number #include <boost/operators.hpp> namespace utils { template<typename storage_type, size_t total, size_t fractionals> class number; /// @brief proxy class for dealing with fixed-point numbers as with integ...
<commit_before>//===----------------------------------------------------------------------===// // // 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>/** * A server which is responsible for interacting with devices. * * @date July 7, 2014 * @author Joeri HERMANS * @version 0.1 * * Copyright 2013 Joeri HERMANS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
<commit_before> // -*- mode: c++; c-basic-offset:4 -*- // This file is part of libdap, A C++ implementation of the OPeNDAP Data // Access Protocol. // Copyright (c) 2002,2003 OPeNDAP, Inc. // Author: James Gallagher <[email protected]> // // This library is free software; you can redistribute it and/or // modify...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public License. See // LICENSE.TX...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Alexander Rössler ** License: LGPL version 2.1 ** ** This file is part of QtQuickVcp. ** ** All rights reserved. This program and the accompanying materials ** are made available under the terms of the ...
<commit_before>/* * thread.hpp * * Created on: Oct 04, 2013 * Author: philip */ /* #include "irrlight/scene/thread.hpp" */ //TODO KILL BOOST #ifndef _IRRLIGHT_SCENE_THREAD_HPP_ #define _IRRLIGHT_SCENE_THREAD_HPP_ #include "irrlicht.h" #include "kul/except.hpp" #include "kul/threads.hpp" #include "irrlight/sc...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
<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>/* -*- 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: contimp.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-10-12 12:08:15 $ * * The Contents of this file are made ...
<commit_before>/* Пример применения генератора псевдослучайных чисел (ГПЧ) из стандартной библиотеки C++ */ #include <iostream> #include <ctime> // Библиотека работы со временем #include <random> // Библиотека с различными генераторами using namespace std; /* Функция для получения действительного случай...
<commit_before>/* * Copyright (c) 2012 The WebM 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>/* AtlasProtocolDecoder.cpp ---------------- begin : 1999.11.29 copyright : (C) 1999 by John Barrett (ZW) email : [email protected] */ #include "AtlasObject.h" #include "AtlasProtocol.h" #include "AtlasPackedAsciiDecoder.h" #include <memory.h> #include <stdio.h> #include <stdlib.h> #includ...
<commit_before>/** @file common_types.hpp @brief Common types. @author Tim Howard @copyright 2013 Tim Howard under the MIT license; see @ref index or the accompanying LICENSE file for full text. */ #ifndef HORD_COMMON_TYPES_HPP_ #define HORD_COMMON_TYPES_HPP_ #include "./config.hpp" namespace Hord { /** Generic ob...
<commit_before><commit_msg>wait 10 sec before trying to resync clock again<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: layact.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2003-04-28 15:17:17 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/* Copyright (C) 2011-2014 Yubico AB. 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 list of cond...
<commit_before>/************************************************************************* * * $RCSfile: toxhlp.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: vg $ $Date: 2003-04-17 14:32:43 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#ifndef HYDRAULICACKUMULATOR_HPP_INCLUDED #define HYDRAULICACKUMULATOR_HPP_INCLUDED #include <iostream> #include "ComponentEssentials.h" #include "ComponentUtilities.h" #include <math.h> //! //! @file HydraulicAckumulator.hpp //! @author Petter Krus <[email protected]> //! @date Mon 12 Sep 2011 22:31...
<commit_before>#include "Sniffer.hpp" using namespace tin::network::sniffer; void pcap_trampoline(u_char *param, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data) { Sniffer* obj = reinterpret_cast<Sniffer*>(param); obj->handlePacket(pkt_header, pkt_data); } Sniffer::Sniffer(const std::string& dev...
<commit_before>#include "CNNBallDetector.h" #include "Tools/CameraGeometry.h" #include "Tools/PatchWork.h" #include "Tools/BlackSpotExtractor.h" #include "Classifier/DortmundCNN/CNN_dortmund.h" #include "Classifier/DortmundCNN/CNN_dortmund2018.h" #include "Classifier/DortmundCNN/CNN_dortmund2018_keras.h" using names...
<commit_before>#include <sstream> #include <algorithm> #include <set> #include <memory> #include <dlfcn.h> #include "plugin-loader.hpp" #include "output-layout.hpp" #include "output.hpp" #include "../core/wm.hpp" #include "core.hpp" #include "debug.hpp" namespace { template<class A, class B> B union_cast(A object...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // ddl_table.cpp // // Identification: src/backend/bridge/ddl/ddl_table.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===-----------------------------...
<commit_before>/* This file is part of Akregator. Copyright (C) 2007 Frank Osterfeld <[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 L...
<commit_before>#include <sys/errno.h> #include <sys/uio.h> #include <errno.h> #include <limits.h> #include <unistd.h> #include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/io_system.h> #define IO_READ_BUFFER_SIZE 65536 IOSystem::Handle::Handle...