text
stringlengths
54
60.6k
<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>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2011, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: decryptorimpl.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-16 14:36:56 $ * * The Contents of this file are...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 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> #include "FlareTechnologyMenu.h" #include "../../Flare.h" #include "../Components/FlareTechnologyInfo.h" #include "../Components/FlareTabView.h" #include "../../Data/FlareTechnologyCatalog.h" #include "../../Data/FlareScannableCatalog.h" #include "../../Game/FlareGame.h" #include "../../Game/FlareCom...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<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/browser/chromeos/login/username_view.h" #include "base/logging.h" #include "base/utf_string_conversions.h" #include "...
<commit_before>#include <iostream> #include <vector> using namespace std; int main(){ unsigned int i, j, g; int n; string s; bool newline = false; while (cin >> n && n != 0){ if (newline) cout << endl; else newline = !newline; g = 0; vector<string> ss; whi...
<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/debugger/devtools_window_win.h" #include "chrome/browser/debugger/devtools_manager.h" #include "chrome/browse...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkGDCMSeriesFileNames.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. S...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT AN...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2016 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ** fo...
<commit_before> #include "CommonSingleFileTesting.hpp" #include "UseUnaryOperator/UseUnaryOperator.h" #include "UseUnaryOperator/UseUnaryOperatorActions.h" #include "UseUnaryOperator/UseUnaryOperatorMatchers.h" namespace { class MatcherProvider { protected: auto makeMatcher(){ return makeUseUnaryOperatorMatc...
<commit_before>#include "xalt_obfuscate.h" #include "xalt_syshost.h" #include "xalt_config.h" #include "xalt_regex.h" #include "xalt_version.h" #include <iostream> #include <iomanip> #include <time.h> #include <stdlib.h> #include <string.h> #include "epoch.h" #include "Json.h" const int dateSZ=100; void displayArray(...
<commit_before>/* ** Copyright 2011-2015 Centreon ** ** 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) 2007-2008 Digital Bazaar, Inc. All rights reserved. */ #include "db/net/http/HttpConnectionServicer.h" #include "db/net/http/HttpRequest.h" #include "db/net/http/HttpResponse.h" #include "db/io/ByteArrayInputStream.h" #include <cstdlib> using namespace std; using name...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
<commit_before>#include <gtest/gtest.h> #include <boost/lexical_cast.hpp> #include "master.hpp" #include "nexus_sched.hpp" #include "nexus_local.hpp" using std::string; using std::vector; using boost::lexical_cast; using namespace nexus; using namespace nexus::internal; using namespace nexus::internal::master; c...
<commit_before>/* ** Copyright 1993 by Miron Livny, and Mike Litzkow ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, ** provided that the above copyright notice appear in all copies and that ** both that copyright notice a...
<commit_before>#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include "nifty/python/converter.hxx" #include "nifty/graph/rag/grid_rag_features.hxx" #ifdef WITH_HDF5 #include "vigra/multi_array_chunked_hdf5.hxx" #include "nifty/graph/rag/grid_rag_features_chunked.hxx" #endif namespace py = pybind11; ...
<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 "base/command_line.h" #include "chrome/browser/browser.h" #include "chrome/browser/debugger/devtools_client_host.h" #include "...
<commit_before>// Copyright 2017 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 // // Un...
<commit_before>// Copyright (c) 2011 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/command_line.h" #include "base/path_service.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #...
<commit_before>/* * Open Chinese Convert * * Copyright 2010-2014 BYVoid <byvoid@byvoid.com> * * 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/LI...
<commit_before>// Copyright (c) 20109 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/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // This test failed at times on the...
<commit_before>// Copyright (c) 2012 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/extensions/extension_apitest.h" #include "base/prefs/pref_service.h" #include "chrome/browser/prefs/incognito...
<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/browser/extensions/extension_apitest.h" #include "chrome/browser/browser.h" #include "chrome/browser/prefs/pref_servi...
<commit_before>// Copyright (c) 2011 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 <algorithm> #include <list> #include <map> #include "chrome/browser/browser_thread.h" #include "chrome/browser/renderer_host/...
<commit_before>// Copyright (c) 2011 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 <algorithm> #include <list> #include <map> #include "chrome/browser/browser_thread.h" #include "chrome/browser/renderer_host/...
<commit_before>// Copyright (c) 2011 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/ui/webui/bidi_checker_web_ui_test.h" #include "base/base_paths.h" #include "base/i18n/rtl.h" #include "base/p...
<commit_before>#include "LayeredWnd.h" #include <dwmapi.h> #pragma comment(lib, "dwmapi.lib") #include <VersionHelpers.h> #include "..\Error.h" LayeredWnd::LayeredWnd(LPCWSTR className, LPCWSTR title, HINSTANCE hInstance, Gdiplus::Bitmap *bitmap, DWORD exStyles) : _className(className), _hInstance(hInstance), _t...
<commit_before>/* TSIframework . Framework for Taller de Sistemes Interactius I Universitat Pompeu Fabra Copyright (c) 2009 Carles F. Julià <carles.fernandez@upf.edu> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
<commit_before>/*************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Qt Software Information (qt-info@nokia.com) ** ** ** Non-Open Source Usage ** ** Licensees may us...
<commit_before>// $Id$ // Category: event // // See the class description in the header file. #include <G4Timer.hh> // in order to avoid the odd dependency for the // times system function this include must be the first #include "AliEventAction.h" #include "AliEventActionMessenger.h" #include "AliRun.h" #includ...
<commit_before>// Ylikuutio - A 3D game and simulation engine. // // Copyright (C) 2015-2019 Antti Nuortimo. // // 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 ...
<commit_before>//===-- Process.cpp - Implement OS Process Concept --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkBasicFiltersTests.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITK...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkCropLabelMapFilterTest1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved....
<commit_before>#include "SDBPRequestMessage.h" bool SDBPRequestMessage::Read(ReadBuffer& buffer) { int read; unsigned i, numNodes; uint64_t nodeID; if (buffer.GetLength() < 1) return false; switch (buffer.GetCharAt(0)) { /* Master query */ cas...
<commit_before>/*! * Copyright (c) 2016 Dawid Bautsch dawid.bautsch@gmail.com * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2011 Torus Knot Software Ltd Permission is hereby granted, free of charge, ...
<commit_before>/* * Copyright 2007-2022 CM4all GmbH * 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 code must...
<commit_before>#line 2 "togo/tool_build/interface/command_list.ipp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ namespace togo { namespace tool_build { static void print_package( PackageCompiler const& pkg, bool const list_resources ) { auto const pkg_name = package_compiler::na...
<commit_before>// (c) ZaKlaus 2016; Apache 2 Licensed, see LICENSE;; #if !defined(DZM_H) #define _CRT_SECURE_NO_WARNINGS #include <stdint.h> #include <stddef.h> #include <limits.h> #include <float.h> #define __STDC_FORMAT_MACROS #include <inttypes.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #incl...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld 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 w...
<commit_before>#include "FunctionCallOperatorNode.h" #include "../../Parser.h" #include <assert.h> namespace Three { FunctionCallOperatorNode* FunctionCallOperatorNode::parse(Parser& parser, ASTNode* receiver) { FunctionCallOperatorNode* node = new FunctionCallOperatorNode(); node->_receiver = re...
<commit_before>#include <occa/core/device.hpp> #include <occa/core/memory.hpp> #include <occa/core/kernelArg.hpp> #include <occa/tools/uva.hpp> namespace occa { //---[ KernelArg ]-------------------- const nullKernelArg_t nullKernelArg; kernelArgData::kernelArgData() : modeMemory(NULL), size(0), inf...
<commit_before>// RUN: %clangxx -fsanitize=undefined -O0 %s -o %t && UBSAN_OPTIONS=stack_trace_format=DEFAULT:fast_unwind_on_fatal=1 %run %t 2>&1 | FileCheck %s // RUN: %clangxx -fsanitize=undefined -O0 %s -o %t && UBSAN_OPTIONS=stack_trace_format=DEFAULT:fast_unwind_on_fatal=0 %run %t 2>&1 | FileCheck %s // The test ...
<commit_before>// Copyright (c) 2016 Alexander Gallego. All rights reserved. // #include "smf/rpc_server.h" // seastar #include <seastar/core/execution_stage.hh> #include <seastar/core/metrics.hh> #include <seastar/core/prometheus.hh> #include "smf/histogram_seastar_utils.h" #include "smf/log.h" #include "smf/rpc_con...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. */ #include <cstdint> #include <cstring> #include <limits> #include <stdexcept> #include <adios2.h> #include <adios2/common/ADIOSTypes.h> #include <gtest/gtest.h> class ADIOSHie...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>#include "file.hh" #include "buffer.hh" #include "buffer_manager.hh" #include "assert.hh" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <cstring> namespace Kakoune { std::string read_file(const std::string& filename) { int fd = open(filename.c_str(), O_RDONLY); if ...
<commit_before>#include <tansa/action.h> #include <tansa/control.h> #include <tansa/core.h> #include <tansa/jocsParser.h> #include <tansa/config.h> #include <tansa/jocsPlayer.h> #include <tansa/mocap.h> #include <tansa/gazebo.h> #include <tansa/osc.h> #ifdef __linux__ #include <sys/signal.h> #endif //TODO check if th...
<commit_before>/** * Copyright (c) Jason White * * MIT License * * Description: * Globbing. */ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <dirent.h> #include <errno.h> #include <unistd.h> #include <string> #include <set> #include "lua.hpp" #include "glob.h" #include "path.h" namespac...
<commit_before>#ifndef GUI_HPP #define GUI_HPP #endif // GUI_HPP <commit_msg>Delete useless files<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <stdio.h> #include <ctype.h> #include <cstring> #include <vector> #include <unistd.h> #include <sys/types.h> #include <stdlib.h> #include <sys/wait.h> using namespace std; void parse(char x[], vector<string> &v){ //cout << "parse executes" << endl; char* tmp; tm...
<commit_before>// Copyright (c) 2019 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>#include <iostream> #include <immintrin.h> #include "ch_frb_io_internals.hpp" using namespace std; namespace ch_frb_io { #if 0 }; // pacify emacs c-mode! #endif assembled_chunk::assembled_chunk(int beam_id_, int nupfreq_, int nt_per_packet_, int fpga_counts_per_sample_, uint64_t chunk_t0_) : bea...
<commit_before>#include "../config.h" #include "horde3dwindow.h" #include "cameranodeobject.h" #include <Horde3DUtils.h> #include <QtCore/QPropertyAnimation> #include <QtCore/QCoreApplication> #include <QtCore/QDir> #include <QtGui/QOpenGLFunctions> #include <QtGui/QOpenGLFramebufferObject> #include <QtGui/QScreen> #...
<commit_before>/* ------------------------------------------------------------------------*/ /* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you ...
<commit_before>/* Given a funnel and a description of obstacles (in terms of vertices), check if the funnel is collision free when executed beginning at state x. Inputs: x: state from which funnel is executed (only the cyclic dimensions matter, really) forest: cell array containing vertices of obstacles funnelLibrar...
<commit_before>#include <algorithm> #include <functional> #include <utility> #include "lhef.h" namespace lhef { Particles SelectParticlesBy(std::function<bool(const Particle&)> pred, const LHEFEvent& lhe) { Particles ps; auto entry = lhe.particle_entries(); std::for_each(entry.c...
<commit_before>#ifndef _ctoolhu_typesafe_id_included_ #define _ctoolhu_typesafe_id_included_ #include <iosfwd> namespace Ctoolhu { namespace TypeSafe { //stores a value (id) and exposes some typical operations usually performed on ids template <typename IdType> class Storage { typedef Storage<IdType> ...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld 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...
<commit_before>#include <iostream> #include <vector> #include <set> #include <map> #include <sstream> #include "stream_iterator.hpp" #include "templateio.hpp" #include "profile.hpp" using namespace std; //============================================================================ // Logic Language Parser. //------...
<commit_before>#include <cerrno> #include <chrono> #include <cstdlib> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <uv.h> #include "log.h" using std::cerr; using std::cout; using std::dec; using std::endl; using std::ofstream; using std::os...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2016 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, ...
<commit_before>#include <iostream> #include <string> #include <unistd.h> int main(){ char HOSTNAME[128]; gethostname(HOSTNAME, sizeof HOSTNAME); bool REPEAT = true; while (REPEAT){ string input; cout << getlogin() << "@" << HOSTNAME << "$ "; getline(cin, input); cout << input << endl; ...
<commit_before>/* * $File: main.cc * $Date: Tue Dec 10 16:43:56 2013 +0800 * $Author: Xinyu Zhou <zxytim[at]gmail[dot]com> */ #include <cstdio> #include <fstream> #include "gmm.hh" #include "datamanip.hh" #include "common.hh" #include "tclap/CmdLine.h" using namespace std; using namespace TCLAP; typedef std::...
<commit_before>//! \file /* ** Copyright (C) - Triton ** ** This program is under the terms of the Apache License 2.0. */ #include <string> #include <triton/astContext.hpp> #include <triton/exceptions.hpp> #include <triton/solverModel.hpp> #include <triton/symbolicVariable.hpp> #include <triton/tritonToZ3Ast.hpp> #...
<commit_before>// Copyright (C) 2013 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Graphics/Loaders/Mesh.hpp> #include <Nazara/Graphics/Model.hpp> #include <Nazara/Renderer/Material.hpp> #incl...
<commit_before>#include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <sstream> #include <tuple> #include <vector> #include <openssl/sha.h> #include <ecdsa/base58.h> #include <ecdsa/key.h> #include "args.h" #include "btcaddr.h" #include "btcwif.h" #define BUFF_SIZE 1024 /** * Show he...
<commit_before>// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>#include "agent.h" #include "environment.h" #include "errors.h" #include <string> #include <vector> #include <fstream> #include <stdexcept> #include <cassert> Strategy ConvertToStrategy(const std::string& identifier) { if(identifier.size() == 1) { switch(identifier[0]) { case 'L...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the Apache 2.0 license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tre...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the Apache 2.0 license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tre...
<commit_before>/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2011 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it...
<commit_before>#include <libnova/libnova.h> #include <deque> #include <fstream> #include <iostream> #include <sstream> #include "config.hh" #include "drawer.hh" #include "exceptions.hh" #include "projection.hh" #include "scene_storage.hh" #include "stars.hh" #include "svg_painter.hh" #include "types.hh" /* struct Sce...
<commit_before>#include <iostream> using namespace std; extern "C" { #include <stdio.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> #include <sys/stat.h> #include <curl/curl.h> #include <errno.h> #include <sqlite3.h> #include <getopt.h> #include <libxml/xmlmemory.h> #include "help.h" #include "logger.h"...
<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 l...
<commit_before>#pragma once //=====================================================================// /*! @file @brief LTC2348-16 ドライバー @n LTC2348/16 bits A/D コンバーター @n Copyright 2017 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================//...
<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_frame/bho.h" #include <shlguid.h> #include <shobjidl.h> #include "base/file_path.h" #include "base/logging.h" #inclu...
<commit_before>/* * Copyright (c) 2006, 2007, 2008, 2009 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...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2017 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...
<commit_before>// @(#)root/foam:$Name: $:$Id: TFoamMaxwt.cxx,v 1.4 2005/04/12 10:01:56 brun Exp $ // Author: S. Jadach <mailto:Stanislaw.jadach@ifj.edu.pl>, P.Sawicki <mailto:Pawel.Sawicki@ifj.edu.pl> //____________________________________________________________________________ // // Class TFoamMaxwt // ===========...
<commit_before>#include "brawlmd5.h" #include "brawlextract.h" #include "find_children.h" #include "usage.h" using namespace System; using namespace System::Collections::Generic; using namespace System::ComponentModel; using namespace System::IO; using namespace System::Reflection; using namespace System::Text::Regula...
<commit_before> <commit_msg>Delete 1.cpp<commit_after><|endoftext|>
<commit_before>#include "win32.h" #include <time.h> #include <string> #include <vector> #include <algorithm> #include <cassert> #include <io.h> #include <stdlib.h> #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 #else #define DELTA_EPOCH_IN_MICROSECS 116...
<commit_before>/** * This file is part of the CernVM File System. */ #include "cmd_pub.h" #include <fcntl.h> #include <string> #include <vector> #include "download.h" #include "manifest.h" #include "notify/messages.h" #include "notify/publisher_http.h" #include "util/pointer.h" #include "util/posix.h" #include "u...
<commit_before>#pragma once #include "../errors.hpp" #include "asio_types.hpp" #include "message_header.hpp" #include <asio/coroutine.hpp> #include <asio/read.hpp> #include <asio/write.hpp> #include <asio/yield.hpp> namespace asio_sodium { namespace detail { template <typename Resumable> class message_writer fi...
<commit_before>#ifndef CPPURSES_WIDGET_LAYOUTS_SELECTING_HPP #define CPPURSES_WIDGET_LAYOUTS_SELECTING_HPP #include <algorithm> #include <type_traits> #include <vector> #include <cppurses/system/events/key.hpp> #include <cppurses/widget/pipe.hpp> namespace cppurses::layout { /// Adds 'Selected Child' concept to a la...
<commit_before>/************************************************************************* * * Copyright (c) 2012 Kohei Yoshida * * 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 ...
<commit_before>// Fenwick Tree / Binary Indexed Tree int bit[N]; void add(int p, int v) { for (p+=2; p<N; p+=p&-p) bit[p] += v; } int query(int p) { int r = 0; for (p+=2; p; p-=p&-p) r += bit[p]; return r; } <commit_msg>Add binary search in bit in log(n)<commit_after>// Fenwick Tree / Binary Indexed Tree int ...
<commit_before>#include "o3d3xx_camera.h" #include <memory> #include <string> #include <unordered_map> #include <vector> #include "gtest/gtest.h" TEST(Camera_Tests, Ctor) { o3d3xx::Camera::Ptr cam = o3d3xx::Camera::Ptr(new o3d3xx::Camera()); EXPECT_EQ(cam->GetIP(), o3d3xx::DEFAULT_IP); EXPECT_EQ(cam->GetXMLR...
<commit_before>#include "config.h" #include "shared.hh" #include "globals.hh" #include "store-api.hh" #include "util.hh" #include "misc.hh" #include <iostream> #include <cctype> #include <exception> #include <algorithm> #include <sys/time.h> #include <sys/stat.h> #include <unistd.h> #include <signal.h> extern char ...
<commit_before>/* * HelloWorldApp.cpp * * Created on: Oct 10, 2010 * Author: rgreen */ #include "HelloWorldApp.h" #include "AppContext.h" #include <batterytech/primitives.h> #include <batterytech/platform/platformgeneral.h> #include <batterytech/Logger.h> #include <batterytech/platform/platformg...
<commit_before>// Copyright 2009 Minor Gordon. // This source comes from the XtreemFS project. It is licensed under the GPLv2 (see COPYING for terms and conditions). #include "org/xtreemfs/client/file.h" #include "org/xtreemfs/client/mrc_proxy.h" #include "org/xtreemfs/client/osd_proxy.h" #include "org/xtreemfs/...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011-2012. // 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) //=================================...