text
stringlengths
54
60.6k
<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>/* Copyright (c) 2008, 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>/* * SessionThemes.cpp * * Copyright (C) 2018 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Pu...
<commit_before><commit_msg>New Java version (6u22). Relevant advisory: http://www.oracle.com/technetwork/topics/security/javacpuoct2010-176258.html BUG=None TEST=test_shell_tests<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2012-2013 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 impleme...
<commit_before><commit_msg>Update minimum plug-in versions to reflect latest Adobe 0-day.<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2003, 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> #include <string> #include <stdexcept> #include "calc.h" #include "sevensegment.h" namespace pocketcalculator { void display_result_for(std::istream &input, std::ostream &output) try { std::string term {}; std::getline(input, term); auto result = calc(term); printLargeNumbe...
<commit_before>/* Copyright (c) 2010, The Barbarian Group 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 co...
<commit_before>/* main.C * * Copyright (C) 2009 Marcel Schumann * * This file is part of QuEasy -- A Toolbox for Automated QSAR Model * Construction and Validation. * QuEasy is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: b3dpolypolygontools.cxx,v $ * $R...
<commit_before>#include <tiramisu/tiramisu.h> #include <string.h> #include "baryon_wrapper.h" using namespace tiramisu; /* * The goal is to generate code that implements the reference. * baryon_ref.cpp */ void generate_function(std::string name, int size) { tiramisu::init(name); constant N("N", size); ...
<commit_before>/*------------------------------------------------------------------------- * * FILE * pqxx/tablestream.hxx * * DESCRIPTION * definition of the pqxx::tablestream class. * pqxx::tablestream provides optimized batch access to a database table * DO NOT INCLUDE THIS FILE DIRECTLY; includ...
<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 (C) 2016 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #ifndef TYPE_SAFE_CONFIG_HPP_INCLUDED #define TYPE_SAFE_CONFIG_HPP_INCLUDED #include <cstddef> #include <cstdl...
<commit_before>#pragma once #include <vector> #include <cstdint> namespace Kunlaboro { namespace detail { class DynamicBitfield { public: DynamicBitfield(); ~DynamicBitfield() = default; void clear(); inline void ensure(std::size_t bit) { const auto count = bit + 1; const std::size_...
<commit_before>#pragma once // TODO: this file should be removed, and all configurations passed to device via USB // (e.g over config_h2d) #include <climits> #include <unordered_map> #include <vector> #include "stream/stream_info.hpp" #include "metadata/frame_metadata.hpp" #include "metadata/capture_metadata.hpp" ...
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library. * Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu) * Project website: http://www.rit.edu/~jpw9607/ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
<commit_before>/************************************************************************* * * $RCSfile: source.cxx,v $ * * $Revision: 1.17 $ * * last change: $Author: rt $ $Date: 2004-10-22 07:54:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>#pragma once #include <utility> template <class Func> class Defer { Func func_; public: Defer(Func func) : func_(std::move(func)) {} Defer(const Defer&) = delete; Defer(Defer&&) = delete; Defer& operator=(const Defer&) = delete; Defer& operator=(Defer&&) = delete; ~Defer() { try { func_(...
<commit_before>/** * \file */ #pragma once #include <rleahylib/rleahylib.hpp> #include <functional> #include <type_traits> /** * \cond */ namespace std { template <> struct hash<String> { public: size_t operator () (String str) const { // Normalize string str.Normalize(Norma...
<commit_before>// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #pragma once #include <Python.h> #include <dynd/type_registry.hpp> #include <type_traits> #include "pyobject_type.hpp" using namespace dynd; // Unpack and convert a single element to a PyObject. template <typen...
<commit_before>/// \file ROOT/TDrawingOptsBase.hxx /// \ingroup Gpad ROOT7 /// \author Axel Naumann <axel@cern.ch> /// \date 2017-09-26 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /*********************************************...
<commit_before><commit_msg>Influxdb: don't remove comas in get_data().<commit_after><|endoftext|>
<commit_before>// https://www.hackerrank.com/contests/w19/challenges/two-robots // Two Robots #include <iostream> #include <cstdlib> #include <map> using namespace std; class Node { public: Node(int _a = -1, int _b = -1) : a(_a), b(_b) {} int a, b; bool operator <(const Node &n) const { return (a ...
<commit_before>#include <gtest/gtest.h> #include "linear_mixer.hpp" #include <iostream> #include "../mixable.hpp" using namespace std; using pfi::lang::shared_ptr; namespace jubatus { namespace framework { namespace mixer { namespace { vector<string> make_vector(const string& s) { vector<string> v; v.push_bac...
<commit_before>#include "gui/qrchaosmainwindow.h" #include <QtCore/qdebug.h> #include <QtWidgets/qaction.h> #include <QtWidgets/qdesktopwidget.h> #include <QtWidgets/qapplication.h> #include "gui/framewindow/qrframewindow.h" #include "gui/qrworkspace.h" #include "gui/qrstatusbar.h" NS_CHAOS_BASE_BEGIN class QrChao...
<commit_before>#if !defined(DOUBLETAKE_XSYNC_H) #define DOUBLETAKE_XSYNC_H /* * @file xsync.h * @brief Mapping between pthread_t and internal thread information. * @author Tongping Liu <http://www.cs.umass.edu/~tonyliu> */ #include <assert.h> #include <pthread.h> #include <stddef.h> #include "globalinfo.hh" #...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: http://www.qt-project.org/ ** ** ** GNU Lesser General Public License Usage ** ** This file may be used ...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2012 Belledonne Communications SARL. 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...
<commit_before>/* * Copyright (c) 2013 Intel Corporation * * 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>/* ** License Applicability. Except to the extent portions of this file are ** made subject to an alternative license as permitted in the SGI Free ** Software License B, Version 1.1 (the "License"), the contents of this ** file are subject only to the provisions of the License. You may not use ** this fi...
<commit_before>#ifndef BENCHMARKS_DESCRIPTORS_SWIG_HPP #define BENCHMARKS_DESCRIPTORS_SWIG_HPP #include <joint/devkit/JointException.hpp> #include <joint/devkit/Logger.hpp> #include <joint/devkit/ManifestReader.hpp> #include <joint/devkit/StringBuilder.hpp> #include <jni.h> #include <implementations/swig/ISwigBenchm...
<commit_before>#include <benchmark/benchmark.h> #include <flexcore/range/actions.hpp> #include <flexcore/core/connection.hpp> #include <random> #include <algorithm> // Benchmark of flexcore range functions using fc::operator>>; struct loop { decltype(auto) operator()(std::vector<float> in, float x, float y) { f...
<commit_before>/** * @file ncl.cpp * * @date Apr 10, 2013 * @author peramaki */ #include "ncl.h" #include "plugin_factory.h" #include "logger_factory.h" #include <boost/lexical_cast.hpp> #include "level.h" #include "forecast_time.h" #define HIMAN_AUXILIARY_INCLUDE #include "neons.h" #include "radon.h" #undef H...
<commit_before>/** * @file */ #include "bi/io/cpp/CppClassGenerator.hpp" #include "bi/io/cpp/CppMemberFiberGenerator.hpp" #include "bi/primitive/encode.hpp" bi::CppClassGenerator::CppClassGenerator(std::ostream& base, const int level, const bool header) : CppBaseGenerator(base, level, header), type(null...
<commit_before>#pragma once #include "fwd.hpp" #include <memory> #include "generator_impl.hpp" template <class T> class generator { std::unique_ptr<generator_impl<T>> p; template <class U> friend bool operator==(const generator<U>& a, const generator<U>& b); public: generator() = default; generator(const gener...
<commit_before>/** * @file pot.cpp * * * @date May 25, 2015 * @author Tack */ #include <boost/lexical_cast.hpp> #include <math.h> #include "pot.h" #include "plugin_factory.h" #include "logger_factory.h" #include "level.h" #include "forecast_time.h" #include "regular_grid.h" #include "util.h" #include "matrix.h"...
<commit_before>/* Module: getconfig_catena4610.cpp Function: Arduino-LMIC C++ HAL pinmaps for the Catena 4610 Copyright & License: See accompanying LICENSE file. Author: Terry Moore, MCCI November 2018 */ #if defined(ARDUINO_DISCO_L072CZ_LRWAN1) #include <arduino_lmic_hal_boards.h>...
<commit_before>/* This file is part of the clang-lazy static checker. Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com Author: Sérgio Martins <sergio.martins@kdab.com> Copyright (C) 2015 Sergio Martins <smartins@kde.org> This program is free software; you can redistribu...
<commit_before>#include "word.h" #include <algorithm> #include <iterator> #include <stdexcept> #include <istream> #include <ostream> #include <cctype> #include <iostream> Word::Word(std::string const &input_string) { if(input_string.empty()) throw std::invalid_argument("given string is empty"); copy_if(input_...
<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 "chrome/common/chrome_version_info.h" #include "chrome/common/extensi...
<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/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome/browser/extensi...
<commit_before>// Copyright (c) 2006-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/file_path.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/automation/browser_proxy.h" #include ...
<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 entry. #include "chrome/browser/sync/util/extensions_activity_monitor.h" #include "base/file_path.h" #include "base/string_util.h" #include ...
<commit_before> # include <Siv3D.hpp> class Block { public: // 引数のないコンストラクタも作っておくといろいろ便利. Block() {} Block(const RectF& region) : m_region(region), m_texture(L"Example/Brick.jpg") {} // 描画以外の操作をする関数 void update() { // 今回は何もない } // 点との当たり判定を取る関数 bool intersects(const Vec2 &shape) const { return m...
<commit_before>/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org...
<commit_before>// Native C++ Libraries #include <iostream> #include <string> // C++ Interpreter Libraries #include <Console.h> <commit_msg>Add the rest of the standard C++ code to main file.<commit_after>// Native C++ Libraries #include <iostream> #include <string> // C++ Interpreter Libraries #include <Console.h> u...
<commit_before>#include <bcc/libbpf.h> #include <bpffeature.h> #include <cstddef> #include <cstdio> #include <fcntl.h> #include <fstream> #include <unistd.h> #include "btf.h" #include "list.h" #include "utils.h" namespace bpftrace { #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) static bool try_load(const char*...
<commit_before>#ifndef ALGORITHM_HUFFMAN_H_ #define ALGORITHM_HUFFMAN_H_ 1 #include <fstream> #include <vector> #include <array> #include <limits> #include <string> #include <cstring> namespace algorithm { /** \breif Modified Huffman coding Huffman coding method with Run Length Encoding. Combines the varia...
<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>/************************************************************************* * * $RCSfile: LocaleNode.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: obo $ $Date: 2005-03-15 13:42:47 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * $RCSfile: astoperation.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2004-02-04 13:23:25 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <visionaray/gl/util.h> #include <visionaray/math/math.h> #include "../util.h" namespace gl = visionaray::gl; namespace visionaray { std::string gl::last_error() { GLenum err = glGetError(); if ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HA...
<commit_before>/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkImage.h" #include "SkRandom.h" #include "SkSurface.h" static sk_sp<SkImage> make_image() { const SkImageI...
<commit_before>/* * Copyright (C) 2018 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 op...
<commit_before>// // main.cpp // GLEngineExample1 // // Created by Asger Nyman Christiansen on 18/12/2016. // Copyright © 2016 Asger Nyman Christiansen. All rights reserved. // #include "GLCamera.h" #include "MeshCreator.h" #include "materials/GLFlatMaterial.h" #include "materials/GLStandardMaterial.h" #include "g...
<commit_before>#include "gpio.hpp" #include "engine.hpp" #include <string> #include <math.h> #include <ros/ros.h> #include <geometry_msgs/Twist.h> using namespace ros; using namespace std; GPIO gpio; // enable direction speed Engine driveLeft(&gpio, GPIO::P9_31, GPIO::P9_21, GPIO::P9_14); Engine driveRight(...
<commit_before>#include <gtest/gtest.h> #include <string> #include "pcre2++/pcre2pp.h" TEST(MatchResults, basic) { pcre2::smatch m; EXPECT_FALSE(m.ready()); EXPECT_TRUE(m.empty()); EXPECT_EQ(0, m.size()); EXPECT_EQ(m.begin(), m.end()); EXPECT_EQ(m.cbegin(), m.cend()); } /** * @see http://pub...
<commit_before>/** * @file csv.cpp * * @date Nov 27, 2012 * @author: partio */ #include "csv.h" #include "logger_factory.h" #include <fstream> #include "regular_grid.h" #include "irregular_grid.h" #include <boost/foreach.hpp> #include "csv_v3.h" #include <boost/filesystem.hpp> using namespace std; using namespa...
<commit_before>#include <vector> #include <openssl/sha.h> #include <openssl/hmac.h> #include <mimetic/mimetic.h> #include <opkele/util.h> #include <opkele/exception.h> #include <opkele/server.h> #include <opkele/data.h> namespace opkele { using namespace std; void server_t::associate(const params_t& pin,param...
<commit_before>#include <stdio.h> #include <cmath> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <assert.h> #include "common/util.h" #include "common/swaglog.h" #include "common/visionimg.h" #include "ui.hpp" #include "paint.hpp" int write_param_float(float param, const char* param_name, bool...
<commit_before>#include "cinder/app/App.h" #include "cinder/ImageIo.h" #if defined( CINDER_COCOA ) #include "cinder/cocoa/CinderCocoa.h" #include <CoreGraphics/CoreGraphics.h> #elif defined( CINDER_MSW ) #include "cinder/msw/CinderMswGdiplus.h" #endif #include "Resources.h" using namespace ci; using namespace ci::...
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<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/update_screen.h" #include "base/logging.h" #include "chrome/browser/chromeos/login/screen_obse...
<commit_before>// Copyright (c) 2008 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/greasemonkey_master.h" #include <fstream> #include "base/file_path.h" #include "base/file_util.h" #include "...
<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/tab_contents_drag_source.h" #include <string> #include "app/gfx/gtk_util.h" #include "app/gtk_dnd_util.h...
<commit_before>/* * Copyright (c) 2008-2018 the MRtrix3 contributors. * * 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 http://mozilla.org/MPL/2.0/ * * MRtrix3 is distributed in the hope that...
<commit_before>#include <stdio.h> #include <stdlib.h> #define N 70 int main(int argc, char *argv[]){ int primo[N]; int primo_siguiente = 1; // Indica el numero de celda en el //que guardar el siguiente primo. primo[0] = 2; /** * Mientras no tenga 70 primos * ...
<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/renderer/print_web_view_helper.h" #include "base/file_descriptor_posix.h" #include "base/logging.h" #include "chrome/...
<commit_before>#include "Engine.h" #include <iostream> #include "Supernova.h" #include "lua.h" #include "lualib.h" #include "lauxlib.h" #include "Scene.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include "Events.h" #include "math/Rect.h" #include "platform/Log.h" #include "LuaB...
<commit_before>// Ouzel by Elviss Strazdins #ifndef OUZEL_FORMATS_INI_HPP #define OUZEL_FORMATS_INI_HPP #include <algorithm> #include <array> #include <cstdint> #include <functional> #include <map> #include <stdexcept> #include <string> #include <string_view> namespace ouzel::ini { class ParseError final: public...
<commit_before>//===- IRBindings.cpp - Additional bindings for ir ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "parser.h" #include "in_uncod_android_bypass_Bypass.h" namespace boost { void throw_exception(std::exception const&) {} } jobject recurseElement(Bypass::Element element) { } JNIEXPORT jobject JNICALL Java_in_uncod_android_bypass_Bypass_processMarkdown (JNIEnv *env, jobject o, jstring m...
<commit_before>/* Copyright (c) 2003 - 2006, Arvid Norberg Copyright (c) 2007, Arvid Norberg, Un Shyam 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 t...
<commit_before>/* Copyright (c) 2007, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>// // cx_grid3D_def.hpp // uzlmath // // Created by Denis-Michael Lux on 08.06.15. // // #ifndef uzlmath_cx_grid3D_def_h #define uzlmath_cx_grid3D_def_h template< typename eT > inline grid3D< complex< eT > >::grid3D() : rows(0) , cols(0) , lays(0) , mem(nullptr) {} template< typenam...
<commit_before>#ifndef VSMC_MPI_NORMALIZING_CONSTANT_HPP #define VSMC_MPI_NORMALIZING_CONSTANT_HPP #include <vsmc/internal/common.hpp> #include <vsmc/core/normalizing_constant.hpp> #include <vsmc/mpi/manager.hpp> namespace vsmc { /// \brief Calculating normalizing constant ratio using MPI /// \ingroup SMP template <...
<commit_before>//===--- ImplicitBoolCastCheck.cpp - clang-tidy----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "omp.h" inline kth_cv_svm::kth_cv_svm(const std::string in_path, const std::string in_actionNames, const field<std::string> in_all_people, const int in_scale_factor, const int in_shift, const int in_scene, //only for kth const int in_dim ...
<commit_before>#include <cppcutter.h> #include "tuishogi.cpp" namespace tuishogi { void test_showState(void) { // Arrange using namespace osl; std::stringbuf string_out; std::streambuf* std_out = std::cout.rdbuf(&string_out); NumEffectState state((SimpleState(HIRATE))); const char* expe...
<commit_before>#pragma once //=====================================================================// /*! @file @brief GUI widget_list クラス @n このクラスは、DROP_DOWN 等に相当するクラスで、「widget_menu」@n を内包する。@n メニューの直接操作は、widget_menu のポインター経由で行う。 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017 Kun...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<commit_before><commit_msg>GLES2: skip GL_ prefix for WEBGL_ extensions<commit_after><|endoftext|>
<commit_before>/* * * Copyright 2016, 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, thi...
<commit_before>// (C) 2014 Arek Olek #pragma once #include <tuple> #include <vector> #include <queue> #include "range.hpp" template <class Graph> Graph bfs_tree(Graph const & G) { typedef std::pair<int, int> edge; Graph T; int parent, v = 0; std::queue<edge> Q; std::vector<bool> V(num_vertices(G)); Q.em...
<commit_before>// Copyright 2019 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 law or...
<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 "content/browser/renderer_host/render_widget_host_view_android.h" #include "base/logging.h" #include "base/message_loop.h" #i...
<commit_before>/* bzflag * Copyright (c) 1993 - 2007 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* * CFG_EARLEY_PARSE.hpp * * Created on: Mar 10, 2011 * Author: Peter Goodman * Version: $Id$ * * Copyright 2011 Peter Goodman, all rights reserved. */ #ifndef FLTL_CFG_EARLEY_PARSE_HPP_ #define FLTL_CFG_EARLEY_PARSE_HPP_ #include <set> #include <vector> #include "fltl/include/CFG.h...
<commit_before>/* * 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 3 of the License, or * (at your option) any later version. * * Written (W) 2006 Mikio L. Braun * Written (...
<commit_before>#include "Repo.hpp" #include "../inanity/data/sqlite.hpp" #include "../inanity/MemoryFile.hpp" #include "../inanity/Exception.hpp" #include <sstream> BEGIN_INANITY_OIL const char Repo::protocolMagic[14] = { 'I', 'N', 'A', 'N', 'I', 'T', 'Y', 'O', 'I', 'L', 'R', 'E', 'P', 'O' }; const int Repo::protocol...
<commit_before>#include "series.h" #include <stdexcept> using namespace std; namespace series { vector<int> digits(string const& sequence) { vector<int> result; for (const char digit : sequence) { result.push_back(digit - '0'); } return result; } vector<vector<int>> slice(string const& seque...
<commit_before>// Copyright (c) 2015 Pierre MOULON. // 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 http://mozilla.org/MPL/2.0/. #include "openMVG/sfm/sfm.hpp" #include "openMVG/exif/exif_IO_Ea...
<commit_before>/* This file is part of Kontact. Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> 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 License, o...
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * This file is part of the libetonyek 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 a...