text
stringlengths
54
60.6k
<commit_before>#include "Rainback.hpp" #include <iostream> #include <functional> #include <QTextStream> #include <QApplication> #include <QPushButton> #include <QLineEdit> #include <QTextEdit> #include <QRegExp> #include <QFileSystemWatcher> #include <QTcpSocket> #include <lua-cxx/LuaValue.hpp> #include <lua-cxx/loa...
<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>#include <malloc.h> #include <stdarg.h> #include <string.h> #include <io.h> #include "Resource.h" #define USE_NAMETREES #define filesize(fileptr) (filelength(fileno(fileptr))) CResource::CResource() { drs=NULL; Init(); } CResource::~CResource() { ShutDown(); ...
<commit_before>#include "Course.h" #include "CourseCont.h" #include "Options.h" #include "Scheduler.h" #include <iostream> CourseSched Scheduler::generateSchedule(CourseCont& courseList, Options &opts){ CourseSched schedule; courseList.sort(); courseList.begin(); bool reachEnd = false; for(int i = 0; i < opts.g...
<commit_before>/************************************************************************* * * $RCSfile: dsEntriesNoExp.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: pjunck $ $Date: 2004-10-22 12:03:17 $ * * The Contents of this file are made available subject to the terms of * either of the foll...
<commit_before>/* Copyright (c) 2014 Ableton AG, Berlin 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, merge, pu...
<commit_before>/* The MIT License (MIT) Copyright (c) 2014 Johannes Hggqvist 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, c...
<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>/* * Copyright 2021 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 la...
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2017-2017 ARM Limited * * 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>Matrix3i m = Matrix3i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.minor(1,1):" << endl << m.minor(1,1) << endl; <commit_msg>Remove doc/snippets/MatrixBase_minor.cpp because minor() was removed.<commit_after><|endoftext|>
<commit_before>/* * TemplateComponent.cpp * * Created on: Jan 23, 2014 * Author: gwue */ #include "TemplateSoundComponent.hpp" // include the concrete implementation headers. #include "impl/TemplateSoundComponent_SW.hpp" // #include "impl/TemplateSoundComponent_HW.hpp" // Macro to define the Component nam...
<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/gtk/menu_gtk.h" #include "app/gfx/gtk_util.h" #include "app/l10n_util.h" #include "base/logging.h" #include "...
<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_util.h" #include "base/path_service.h" #include "build/build_config.h" #include "chrome/common/chrome_switches.h" #...
<commit_before>#ifndef CONFIGMGR_LOCALBE_LOCALFILEHELPER_HXX_ #include "localfilehelper.hxx" #endif #ifndef _CONFIGMGR_FILEHELPER_HXX_ #include "filehelper.hxx" #endif #ifndef _RTL_USTRBUF_HXX_ #include <rtl/ustrbuf.hxx> #endif // _RTL_USTRBUF_HXX_ #ifndef _OSL_PROCESS_H_ #include <osl/process.h> #endif #include <ve...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>#include "kernel.h" #include "raster.h" #include "linerasterizer.h" #include "pixeliterator.h" using namespace Ilwis; bool PixelIterator::isValid() const { return _isValid; } PixelIterator::PixelIterator() : _grid(0), _x(0), _y(0), _z(0), _localOffset(0), _currentBlock(0),...
<commit_before>// Copyright (c) 2016 ASMlover. 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 o...
<commit_before><commit_msg>308. Range Sum Query 2D - Mutable<commit_after><|endoftext|>
<commit_before>/* Copyright (C) 2013 Andreas Hartmetz <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option)...
<commit_before>/** * @file * @copyright defined in eos/LICENSE.txt */ #pragma once #include <eoslib/print.h> #include <eoslib/types.hpp> #include <eoslib/math.hpp> namespace eosio { static_assert( sizeof(long) == sizeof(int), "unexpected size difference" ); /** * Prints string * @brief Prints st...
<commit_before>/* This file is part of the KDE project * * Copyright 2004-2007 Torsten Rahn <[email protected]> * Copyright 2007 Inge Wallin <[email protected]> * Copyright 2007 Thomas Zander <[email protected]> * Copyright 2010 Bastian Holst <[email protected]> * * This library is free software; you c...
<commit_before>/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/trajectory/CTrajectoryTask.cpp,v $ $Revision: 1.74 $ $Name: $ $Author: shoops $ $Date: 2006/04/27 01:32:17 $ End CVS Header */ // Copyright 2005 by Pedro Mendes, Virginia Tech Intellectual // Properties, In...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <[email protected]> * * 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>#include "allocator.h" #include <cstring> namespace nvds { void Allocator::Format() { ModificationList modifications; set_modifications(&modifications); memset(flm_, 0, kSize); uint32_t blk = sizeof(FreeListManager); Write(GetLastFreeList(), blk); // 'The block before first block' is not...
<commit_before>/* * Copyright (c) 2002 - present, H. Hernan Saez * 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 * ...
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * VR Juggler is (C) Copyright 1998-2005 by Iowa State University * * Original Authors: * Allen Bierbaum, Christopher Just, * Patrick Hartling, Kevin Meinert, * Carolina Cruz-Neira, Albert Baker * * This libra...
<commit_before>#include "bitcoinamountfield.h" #include "qvaluecombobox.h" #include "bitcoinunits.h" #include "guiconstants.h" #include <QLabel> #include <QLineEdit> #include <QRegExpValidator> #include <QHBoxLayout> #include <QKeyEvent> #include <QDoubleSpinBox> #include <QComboBox> #include <QApplication> #include ...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (a...
<commit_before>// Time: O(n) // Space: O(1) // DP with rolling window. class Solution { public: /** * @param values: a vector of integers * @return: a boolean which equals to true if the first player will win */ bool firstWillWin(vector<int> &values) { // For boundary case. if (...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>class Solution { public: bool isIsomorphic(string s, string t) { if (s.length() != t.length()) { return false; } vector<int> m1(256, 0); vector<int> m2(256, 0); int n = s.size(); for (int i = 0; i < n; ++i) { if (m1[s[i]] != m2[t...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before> /****************************************************************************** * Copyright 2017 The Apollo 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...
<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>#define DEBUG 1 /** * File : D.cpp * Author : Kazune Takahashi * Created : 6/14/2020, 2:15:35 AM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdi...
<commit_before>#define DEBUG 1 /** * File : D.cpp * Author : Kazune Takahashi * Created : 6/14/2020, 2:15:35 AM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdi...
<commit_before>/* * File: FieldDetector.cpp * Author: Heinrich Mellmann * */ #include "FieldDetector.h" #include <Tools/Math/ConvexHull.h> using namespace std; FieldDetector::FieldDetector() : cameraID(CameraInfo::Bottom) { DEBUG_REQUEST_REGISTER("Vision:FieldDetector:mark_field_polygon", "mark polygona...
<commit_before>/** * @file * * @brief Some common functions in use for testing framework * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #ifndef KDB_TESTS_HPP #define KDB_TESTS_HPP #include <kdb.hpp> #include <kdbmacros.h> #include <key.hpp> #include <keyset.hpp> #include <cstdlib>...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>// ================================================================================ // == This file is a part of TinkerBell UI Toolkit. (C) 2011-2013, Emil Segers == // == See tinkerbell.h for more information. == // ===================================================...
<commit_before>#include "main.h" // --- Params --- // NoiseParams noise_params; WaterParams water_params; LightParams light_params; TextureParams texture_params; WindowParams window_params{ WIDTH, HEIGHT }; GridParams grid_params; // --- Scene Objects --- // Grid grid; Water water; Box box; Sky sky; // --- Buffe...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (a...
<commit_before>// [WriteFile Name=SearchForWebmap, Category=CloudAndPortal] // [Legal] // Copyright 2016 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // wi...
<commit_before>#include <sstream> // Include 3rd party headers. #include <odb/transaction.hxx> #include <odb/mysql/database.hxx> #include <bites.hpp> // Include application headers. #include "Captor.hpp" #include "DBWriter.hpp" #include "mapping.hpp" #include "mapping-odb.hxx" namespace wabbit { void DBWriter::run ...
<commit_before>/* OF-TangibleFramework . Framework for Taller de Sistemes Interactius I Universitat Pompeu Fabra Copyright (c) 2009 Daniel Gallardo Grassot <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen...
<commit_before>/* * HMAC_RNG * (C) 2008-2009,2013 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/hmac_rng.h> #include <botan/libstate.h> #include <botan/get_byte.h> #include <botan/entropy_src.h> #include <botan/internal/xor_buf.h> #include <algorithm> namespace Botan { namespace ...
<commit_before>/* * HMAC_RNG * (C) 2008-2009 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/hmac_rng.h> #include <botan/get_byte.h> #include <botan/internal/xor_buf.h> #include <botan/internal/stl_util.h> #include <algorithm> namespace Botan { namespace { void hmac_prf(MessageAut...
<commit_before>//============================================================================= // // OpenMesh // Copyright (C) 2003 by Computer Graphics Group, RWTH Aache...
<commit_before>#include "FontBlankSymbol.h" #include "FontSprite.h" #include "Font.h" #include "common/Vector.h" #include "common/color_trans.h" #include "common/FileNameTools.h" #include "common/FileNameParser.h" #include "common/Settings.h" #include "common/Math.h" #include "dataset/SpriteTools.h" #include "render/P...
<commit_before>//===-- Support/DJB.cpp ---DJB Hash -----------------------------*- C++ -*-===// // // 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>//===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/** * @file */ #pragma once /** * @internal * * @def LIBBIRCH_BASE * * Declare the base type for a class. */ #define LIBBIRCH_BASE(Base...) \ using base_type_ = Base; \ \ auto shared_from_base_() { \ return libbirch::Shared<base_type_>(static_cast<base_type_*>(this)); \ } /** * @in...
<commit_before>#include <cucumber-cpp/internal/connectors/wire/WireServer.hpp> #include <gmock/gmock.h> #include <boost/filesystem/operations.hpp> #include <boost/scoped_ptr.hpp> #include <boost/thread.hpp> #include <boost/timer.hpp> #include <stdlib.h> #include <sstream> using namespace cucumber::internal; using n...
<commit_before>/* Copyright (c) 2006 Volker Krause <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your ...
<commit_before>#include "warnings-disable.h" WARNINGS_DISABLE #include <QtTest/QtTest> #include "ui_archivestabwidget.h" #include "ui_helpwidget.h" #include "ui_jobstabwidget.h" #include "ui_jobwidget.h" #include "ui_mainwindow.h" WARNINGS_ENABLE #include "../qtest-platform.h" #include "helpwidget.h" #include "jobs...
<commit_before>#pragma once //=====================================================================// /*! @file @brief 配列クラス(ヘッダー) @author 平松邦仁 ([email protected]) */ //=====================================================================// #include <cstdint> #include <vector> #include <boost/unordered_map.hpp> name...
<commit_before>/// /// EMCal Tender configuration macro /// AliAnalysisTaskSE *AddTaskEMCALTender( Bool_t distBC = kTRUE, // distance to bad channel Bool_t recalibClus = kTRUE, // recalibrate cluster energy Bool_t recalcClusPos = kTRUE, // recalculate cluster position Bool_t non...
<commit_before>// @(#)root/base:$Id$ // Author: Rene Brun 12/12/94 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkMetaImageIO.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyri...
<commit_before>/* This file is part of the E_GUI library. Copyright (C) 2008-2012 Benjamin Eikel <[email protected]> Copyright (C) 2008-2012 Claudius Jähn <[email protected]> Copyright (C) 2008-2012 Ralf Petring <[email protected]> This library is subject to the terms of the Mozilla Public License, v. 2....
<commit_before>#include "anki/scene/ParticleEmitter.h" #include "anki/scene/Scene.h" #include "anki/resource/Model.h" #include "anki/util/Functions.h" #include "anki/physics/PhysWorld.h" #include <limits> namespace anki { //============================================================================== // Misc ...
<commit_before>/******************************************************************************* * * X testing environment - Google Test environment feat. dummy x server * * Copyright (C) 2011, 2012 Canonical Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software ...
<commit_before>/** @file traffic_ctl @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you u...
<commit_before>/* Sirikata Utilities -- Sirikata Synchronization Utilities * LockFreeQueue.hpp * * Copyright (c) 2008, Daniel Reiter Horn * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are *...
<commit_before>/* Copyright (C) 2010, Oleg Efimov <[email protected]> See license text in LICENSE file */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include <getopt.h> #include <mysql.h> #include <map> #include <string> #include <cstdio> #include <cstdlib> #include <ctime> MYSQL *conn; std::map<std::string...
<commit_before>#include <algorithm> #include <atomic> #include <iostream> #include <limits> #include <utility> #include <vector> #include <getopt.h> #include <signal.h> #include <unistd.h> #include <zcm/zcm-cpp.hpp> using namespace std; static atomic_int done {0}; static void sighandler(int signal) { done++; ...
<commit_before>/************************************************* * BigInt Assignment Operators Source File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #include <botan/bigint.h> #include <botan/mp_core.h> #include <botan/bit_ops.h> #include <algorithm>...
<commit_before>/*Copyright 2010 George Karagoulis 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 agreed...
<commit_before>/* * Copyright (C) 2015 Cloudius Systems, Ltd. */ #pragma once #include "bytes.hh" #include "timestamp.hh" #include "gc_clock.hh" #include <cstdint> template<typename T> static inline void set_field(bytes& v, unsigned offset, T val) { reinterpret_cast<net::packed<T>*>(v.begin() + offset)->raw = ...
<commit_before>/* * Copyright (c) 2013 Hideaki Ohno <hide.o.j55{at}gmail.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 the Software without restriction, including without limitation the * r...
<commit_before>#ifndef CAMERA_PERSPECTIVE_H #define CAMERA_PERSPECTIVE_H #include "geometry/vec3.hpp" class CameraPerspective { private: // class members int framePixelsX; int framePixelsY; Vec3f originPoint; Vec3f viewDirection; Vec3f upDirection; double focalLength; double frameSize;...
<commit_before>#include "template.hpp" #include <iostream> #include <fstream> #include <gtest/gtest.h> // The fixture for testing class Foo. class CollectionsTest : public ::testing::Test { protected: string result_string; string result_file; string template_string; string file; CollectionsTest()...
<commit_before>/* * Copyright (c) 2015 PLUMgrid, 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...
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 app...
<commit_before>/* <plugins/director/DirectorPlugin.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * http://www.xzero.io/ * * (c) 2009-2013 Christian Parpart <[email protected]> * * -------------------------------------------------------------------------- * * plugin type: ...
<commit_before>#ifndef ALEPH_PERSISTENCE_DIAGRAMS_PERSISTENCE_INDICATOR_FUNCTION_HH__ #define ALEPH_PERSISTENCE_DIAGRAMS_PERSISTENCE_INDICATOR_FUNCTION_HH__ #include "math/StepFunction.hh" #include "persistenceDiagrams/PersistenceDiagram.hh" #include <algorithm> #include <limits> #include <utility> #include <vector>...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>//===- CIndexHigh.cpp - Higher level API functions ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright (c) 2011, Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this ...
<commit_before>/* * Copyright (c) 2017-2018 OFFIS Institute for Information Technology * Oldenburg, Germany * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BE...
<commit_before>#pragma once #pragma warning(push) #pragma warning(disable: 4302 4838) #include <atlbase.h> #include <atlfile.h> #include <atlcoll.h> #include <atlstr.h> #include <atlwin.h> #include <atlapp.h> #include <atlctrls.h> #include <atldlgs.h> #pragma warning(pop) #include "unzip.h" #include "resource.h" #inc...
<commit_before>#include <algorithm> #include <vector> #include <set> #include <chrono> #include <random> #include "phevaluator/phevaluator.h" #include "benchmark/benchmark.h" using namespace phevaluator; static void EvaluateAllFiveCards(benchmark::State& state) { for (auto _ : state) { for(int a = 0; a < 48; a+...
<commit_before>/* * Multiplatform Async Network Library * Copyright (c) 2007 Burlex * * Socket implementable class. * */ #include "Network.h" initialiseSingleton(SocketGarbageCollector); Socket::Socket(SOCKET fd, uint32 sendbuffersize, uint32 recvbuffersize) : m_readBufferSize(recvbuffersize), m_writeBufferS...
<commit_before>// // MessagePack for C++ memory pool // // Copyright (C) 2008-2013 FURUHASHI Sadayuki and KONDO Takatoshi // // 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) 2016 Kimball Thurston // // 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, mo...
<commit_before>/** * Copyright (C) 2018 3D Repo Ltd * * 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 version. * * T...
<commit_before>#include "common/application_info.h" #include "base/file_version_info.h" #include "base/memory/scoped_ptr.h" #include "base/strings/utf_string_conversions.h" namespace brightray { std::string GetApplicationName() { auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModule...
<commit_before>TEveRGBAPalette *g_zdc_palette = 0; TEveGeoShape* zdc_make_shape(const Text_t* name, const Text_t* title_base, Double_t signal, const Text_t* path) { if ( ! gGeoManager->cd(path)) { Warning("zdc_make_shape", "Module name=%s, path='%s' not found.\n", name, path); return 0; } U...
<commit_before> #include <config.h> #if defined(HAVE_CLOCK_GETTIME) #include <time.h> unsigned GetRunningMicroSecs() { struct timespec now; clock_gettime( CLOCK_MONOTONIC, &now ); unsigned usecs = ((unsigned)now.tv_nsec)/1000 + ((unsigned)now.tv_sec) * 1000000; // unsigned msecs = (now.tv_nsec / (1...
<commit_before>// // Urho3D Engine // Copyright (c) 2008-2012 Lasse rni // // 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) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include "vw_cbutil.h" #include "cb_algs.h" namespace VW { float VowpalWabbitContextualBanditUtil::GetUnbia...
<commit_before> #include <Python.h> #include <pybind11/pybind11.h> namespace py = pybind11; extern "C" PyObject* function_with_cpp_args(PyObject* self, PyObject* args, PyObject* kwargs) { static char* _keywords_[] = {"a","b",nullptr}; py::object a; py::object b; if(!P...
<commit_before>// // Copyright (C) 2006 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor Agre...
<commit_before>#include "linear_interpolate_d.hpp" #include "find_barycentric_coords.hpp" #include <algorithm> #include <map> #include <vector> typedef CGAL::Cartesian_d<double> R; typedef CGAL::Delaunay_d<R> Delaunay; typedef Delaunay::Point_d Point; typedef Delaunay::Vertex_handle Vertex_handle; //...
<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) 2016 PX4 Development 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>// The MIT License (MIT) // Copyright (c) 2013 lailongwei<[email protected]> // // 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 l...
<commit_before>// // Copyright (C) 2007 Jaroslav Libak // Licensed under the LGPL license. // // Copyright (C) 2005-2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2004-2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004...