text
stringlengths
54
60.6k
<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 tha...
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "compressor.h" #include <vespa/vespalib/util/memory.h> #include <vespa/vespalib/util/stringfmt.h> #include <stdexcept> #include <lz4.h> #include <lz4hc.h> using vespalib::alloc::All...
<commit_before>/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * ...
<commit_before>/************************************************************************* * * $RCSfile: fuoltext.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: dl $ $Date: 2001-06-12 12:42:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/** * Extract features and score statistics from nvest file, optionally merging with * those from the previous iteration. * Developed during the 2nd MT marathon. **/ #include <iostream> #include <string> #include <vector> #include <getopt.h> #include <boost/scoped_ptr.hpp> #include "Data.h" #inclu...
<commit_before>/************************************************************************* * * $RCSfile: unoobj.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: kz $ $Date: 2005-03-01 17:35:28 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include "cinder/Cinder.h" #if defined( CINDER_COCOA_TOUCH ) #include "cinder/app/AppCocoaTouch.h" typedef ci::app::AppCocoaTouch AppNative; #else #include "cinder/app/AppBasic.h" typedef ci::app::AppBasic AppNative; #endif #include "cinder/gl/gl.h" #include "cinder/Clipboard.h" #include "cinder/gl...
<commit_before>/************************************************************************* * * $RCSfile: grviewsh.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2004-01-20 12:50:36 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/************************************************************************* * * $RCSfile: presvish.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: ka $ $Date: 2001-12-17 10:14:46 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>// Copyright (c) 2010 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. All cont...
<commit_before>#pragma once #include <cmath> #include <cassert> namespace studd { // returns an iterator to the element which maximizes the function template<class InputIt, class UnaryFunction, class T = typename std::iterator_traits<InputIt>::value_type> InputIt argmax(InputIt first, InputIt...
<commit_before>#pragma once #include "core/sstring.hh" namespace version { inline const int native_protocol() { return 3; } inline const sstring& release() { static sstring v = "2.1.8"; return v; } } <commit_msg>version: do not store current version as a string<commit_after>#pragma once #include "core/s...
<commit_before>/* * sql_tests.cpp */ #include "SQLParser.h" #include <stdio.h> #include <string> #include <cassert> #include <thread> #include <time.h> #define STREQUALS(str1, str2) std::string(str1).compare(std::string(str2)) == 0 #define ASSERT(cond) if (!(cond)) { fprintf(stderr, "failed! Assertion (" #cond ")\...
<commit_before>#include "s3.h" using namespace himan; #ifdef HAVE_S3 #include "debug.h" #include "timer.h" #include "util.h" #include <iostream> #include <libs3.h> #include <mutex> #include <string.h> // memcpy namespace { static std::once_flag oflag; const char* access_key = 0; const char* secret_key = 0; const ch...
<commit_before>#include <stdio.h> #include <vector> #include <cmath> #include <string> #include "common/input_output.h" using std::cout; using std::endl; // all dimensions are in millimeters, milligrams real container_width = 5; // width of area with particles real container_length = 25; // length of are...
<commit_before>#include "waypoint_serializer.h" #include "swganh_core/object/waypoint/waypoint.h" #include "swganh/crc.h" using namespace swganh::object; void PlayerWaypointSerializer::SerializeBaseline(swganh::ByteBuffer& data, const PlayerWaypointSerializer& t) { data.write<uint64_t>(t.waypoint->GetObjectId()...
<commit_before>/* Copyright 2018 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 required by applicable law o...
<commit_before>///////////////////////////////////////// // // OpenLieroX // // code under LGPL, based on JasonBs work, // enhanced by Dark Charlie and Albert Zeyer // // ///////////////////////////////////////// // Client class - Sending routines // Created 22/7/02 // Jason Boettcher #include "LieroX.h"...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2017 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>#include "config.h" #include "common.hpp" #include "fetch/http.hpp" #include "logging/logger.hpp" #include "http_server/server.hpp" #include "vector_tile.pb.h" #include <mapnik/datasource_cache.hpp> #include <iostream> namespace { server_options default_options(const std::string &map_file) { server...
<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_PLAYGROUND_PRODUCTS_BASE_HH #define DUNE_GDT_PLAYGROUND_PRODUCTS_BASE_H...
<commit_before>// graph.cpp: Santiago Arias // Description: Graph algo #include <iostream> #include <vector> using namespace std; //using std::vector; class Edgenode{//node public: Edgenode(): value(-1){ } Edgenode(int v):value(v){} int value; }; class Graph{ public: Graph(): nvertices(0), nedges(0), e...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lic...
<commit_before>// Copyright (c) 2014-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "hash.h" #include "uint256.h" #include <assert.h> #include <stdint.h> #include ...
<commit_before>/* OpenDECK library v1.3 File: Buttons.cpp Last revision date: 2014-12-25 Author: Igor Petrovic */ #include "OpenDeck.h" const uint8_t buttonDebounceCompare = 0b11111000; void OpenDeck::setButtonPressed(uint8_t buttonNumber, bool state) { uint8_t arrayIndex = buttonNumber/8; uint8_t butto...
<commit_before>// Copyright (c) 2015, Galaxy 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 "sdk/galaxy.h" #include <fstream> #include <cstdio> #include <cstdlib> #include <errno.h> #include <string.h> #include <gflags/gfla...
<commit_before><commit_msg>Added "structure disambiguation maps" to conceptual inheritance prototype. The purpose of this is to provide the ability to request different conceptual structures of the same conceptual type -- e.g. the additive group or the multiplicative group of a field.<commit_after><|endoftext|>
<commit_before> /* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkColorPriv.h" #include "SkDebugCanvas.h" #include "SkDrawCommand.h" #include "SkDrawFilter.h" #include "SkDevice.h" #include "SkXfermode.h" #ifdef...
<commit_before>/* * ALURE OpenAL utility library * Copyright (c) 2009-2010 by Chris Robinson. * * 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>#include "selfdrive/ui/qt/setup/setup.h" #include <cstdio> #include <cstdlib> #include <sstream> #include <QApplication> #include <QLabel> #include <QVBoxLayout> #include <curl/curl.h> #include "selfdrive/hardware/hw.h" #include "selfdrive/ui/qt/api.h" #include "selfdrive/ui/qt/qt_window.h" #include ...
<commit_before>#include "vg_set.hpp" namespace vg { // sets of VGs on disk void VGset::transform(std::function<void(VG*)> lambda) { for (auto& name : filenames) { // load VG* g = NULL; if (name == "-") { g = new VG(std::cin, show_progress); } else { ifstream...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include <algorith...
<commit_before>// Copyright 2014-2016 the project authors as listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by the // license that can be found in the LICENSE file. #include "Device.h" #include "MqttDevice.h" #include <Arduino.h> #include <stdio.h> #include <string.h> #define ...
<commit_before>// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/silicon_creator/lib/otbn_util.h" #include "gtest/gtest.h" namespace otbn_util_unittest { namespace { TEST(OtbnTest, OtbnInit) { o...
<commit_before>#include "pch.h" #include "ang/core/async.hpp" using namespace ang; using namespace ang::core; using namespace ang::core::async; ANG_IMPLEMENT_INTERFACE(ang::core::async, ioperation<void>); ANG_IMPLEMENT_BASIC_INTERFACE(ang::core::async::itask, ioperation<void>); //ANG_IMPLEMENT_BASIC_INTERFACE(ang::co...
<commit_before>/* * Copyright (C) 2006-2009 by Marc Boris Duerner, Tommi Maekitalo * * This library 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 2.1 of the License, or (at you...
<commit_before>// Copyright 2012 the V8 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. #include "src/v8.h" #if V8_TARGET_ARCH_X87 #include "src/interface-descriptors.h" namespace v8 { namespace internal { const Register ...
<commit_before>#include "photon_blocks.h" #include "photon_opengl.h" #include "photon_level.h" #include "photon_laser.h" #include "photon_texture.h" #include "glm/ext.hpp" GLuint texture_plain_block, texture_mirror; namespace photon{ namespace blocks{ void DrawBox(glm::uvec2 location){ // TODO - maybe add opti...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 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. Red...
<commit_before>/* * Smithsonian Astrophysical Observatory, Cambridge, MA, USA * This code has been modified under the terms listed below and is made * available under the same terms. */ /* * Copyright 1993-2004 George A Howlett. * * Permission is hereby granted, free of charge, to any person obtaining * a copy...
<commit_before>/* * ConstantPropagation.cpp * * This file is part of the "XieXie 2.0 Project" (Copyright (c) 2014 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "ConstantPropagation.h" #include "StringModifier.h" #include "TACRelationInst.h" #include "TACReturnInst.h" #include "TACS...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/* * node-rdkafka - Node.js wrapper for RdKafka C/C++ library * * Copyright (c) 2016 Blizzard Entertainment * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE.txt file for details. */ #include <string> #include <vector> #include <list> #inclu...
<commit_before>/** * \file * \remark This file is part of VITA. * * \copyright Copyright (C) 2013-2015 EOS di Manlio Morini. * * \license * 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>/************************************************************************* * * $RCSfile: localebackend.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-10-22 08:13:51 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>/*========================================================================== SeqAn - The Library for Sequence Analysis http://www.seqan.de ============================================================================ Copyright (C) 2007 This library is free s...
<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 appl...
<commit_before>/* Copyright 2017 QReal Research Group * * 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 applica...
<commit_before>#include <string.h> #include <node.h> #include <node_internals.h> #include <node_buffer.h> #include <v8.h> extern "C" { #include "scrypt_platform.h" #include "crypto_scrypt.h" } #define ASSERT_IS_BUFFER(val) \ if (!Buffer::HasInstance(val)) { \ return ThrowException(Exception::TypeError(String:...
<commit_before>/********************************************************************* * Copyright (C) 2015 Francisco Javier Paz Menendez * * 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:/...
<commit_before>/** * \file * \brief MutexRecursiveOperationsTestCase class implementation * * \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the ...
<commit_before>//Copyright (c) 2020 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "DistributedBeadingStrategy.h" namespace cura { DistributedBeadingStrategy::Beading DistributedBeadingStrategy::compute(coord_t thickness, coord_t bead_count) const { Beading ret; re...
<commit_before>/****************************************************************************** * Copyright (c) 2014 Jamis Hoo * Distributed under the MIT license * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) * * Project: * Filename: test.cc * Version: 1.0 * Author:...
<commit_before>#include "AmsRouter.h" #include "Log.h" #include <algorithm> AmsRouter::AmsRouter(AmsNetId netId) : localAddr(netId) {} long AmsRouter::AddRoute(AmsNetId ams, const IpV4& ip) { std::lock_guard<std::recursive_mutex> lock(mutex); const auto oldConnection = GetConnection(ams); ...
<commit_before>#include "../tlang.h" #include <taichi/util.h> #include <taichi/visual/gui.h> #include <taichi/system/profiler.h> #include <taichi/visualization/particle_visualization.h> TC_NAMESPACE_BEGIN using namespace Tlang; auto cnn = []() { CoreState::set_trigger_gdb_when_crash(true); Program prog(Arch::gp...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 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>/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, 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...
<commit_before>//////////////////////////////////////////////////////////////////////////// // // The MIT License (MIT) // Copyright (c) 2016-2026 // ------------------------------------------------------------------------- // Module: luabind_plus_test // File name: main.cpp // Created: 2016/04/01 by Al...
<commit_before>// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #include "memtransfer_ios.h" #import <CoreVideo/...
<commit_before>#include <stdio.h> #include <string.h> #include <unistd.h> #include <mpi.h> #define MASTER 0 #define TAG 0 #define MSGSIZE 10 #define MAX 25 int main(int argc, char *argv[]) { int my_rank, source, num_nodes; char my_host[MAX]; char message[MSGSIZE]; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_...
<commit_before>/* ************************************************ * GEANT4 VCGLIB/CAD INTERFACE * * File: CADMesh.cc * * Author: Christopher M Poole, * Email: mail@christopherpoole.net * * Date: 7th March, 2011 **************************************************/ // USER // #include "CADMesh....
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2006 Ben van Klinken <bvklinken@gmail.com> * * 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 ...
<commit_before>#include "nany/nany.h" #include <yuni/io/file.h> #include <yuni/core/math.h> #include <yuni/core/process/program.h> #include "libnanyc-config.h" #include "common-debuginfo.hxx" #include <string.h> #include <iostream> #ifdef YUNI_OS_LINUX #include <sys/utsname.h> #endif using namespace Yuni; namespace...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: appchild.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: obo $ $Date: 2006-09-17 16:14:03 $ * * The Contents of this file are made...
<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><commit_msg>`Model`: remove unused member variable `std::string triangulation_type`.<commit_after><|endoftext|>
<commit_before><commit_msg>`Scene` constructor: cleaning up code.<commit_after><|endoftext|>
<commit_before>#include "codectabswidget.h" #include "ui_codectabswidget.h" CodecTabsWidget::CodecTabsWidget(QWidget *parent) : QWidget(parent), ui(new Ui::CodecTabsWidget) { ui->setupUi(this); ui->tabWidget->setCurrentIndex(0); connect(ui->tabWidget, &QTabWidget::currentChanged, this, Co...
<commit_before>/** -*- C++ -*- * union_dataset.cc * Mich, 2016-09-14 * This file is part of MLDB. Copyright 2016 Datacratic. All rights reserved. **/ #include "union_dataset.h" #include <thread> #include <math.h> #include "mldb/builtin/id_hash.h" #in...
<commit_before>#ifndef STAN_MATH_PRIM_FUN_IDENTITY_FREE_HPP #define STAN_MATH_PRIM_FUN_IDENTITY_FREE_HPP #include <stan/math/prim/meta.hpp> namespace stan { namespace math { /** * Returns the result of applying the inverse of the identity * constraint transform to the input. This promotes the input to the least up...
<commit_before>// #include "condor_config.h" #include "classad_package.h" #include <ctype.h> enum Commands { _NO_CMD_, CLEAR_TOPLEVEL, DEEP_INSERT_ATTRIBUTE, DEEP_REMOVE_ATTRIBUTE, EVALUATE, EVALUATE_WITH_SIGNIFICANCE, FLATTEN, HELP, INSERT_ATTRIBUTE, NEW_TOPLEVEL, OUTPUT_TOPLEVEL, QUIT, REMOVE_A...
<commit_before>#include "util.h" #include <iostream> #include <iomanip> using namespace std; void print_stock_table(mysqlpp::Query& query) { query.reset(); query << "select * from stock"; // You can write to the query object like you would any other ostrem mysqlpp::Result res = query.store(); // Query::store()...
<commit_before>/* Copyright wangchw(wangox@gmail.com). All right reserved. * Use of this source code is governed by BSD-style license * that can be found in the LICENSE file. */ #include <wrpc/channel.h> #include <wrpc/client.h> #include <wrpc/wrpc.pb.h> #include <google/protobuf/descriptor.h> #include <istream> #...
<commit_before>//===------------------------- chrono.cpp ---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>/* Copyright (c) 2015 Zamarin Arthur 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>#ifndef TEST_UNIT_MATH_MIX_MAT_UTIL_AUTODIFF_TESTER_HPP #define TEST_UNIT_MATH_MIX_MAT_UTIL_AUTODIFF_TESTER_HPP #include <stan/math/mix/mat.hpp> #include <test/unit/math/mix/mat/seq_reader.hpp> #include <test/unit/math/mix/mat/seq_writer.hpp> #include <gtest/gtest.h> #include <stdexcept> namespace stan...
<commit_before>#ifndef TEST_UNIT_MATH_MIX_MAT_UTIL_AUTODIFF_TESTER_HPP #define TEST_UNIT_MATH_MIX_MAT_UTIL_AUTODIFF_TESTER_HPP #include <stan/math/mix/mat.hpp> #include <test/unit/math/mix/mat/seq_reader.hpp> #include <test/unit/math/mix/mat/seq_writer.hpp> #include <gtest/gtest.h> #include <stdexcept> namespace stan...
<commit_before>#include "webcam.hpp" #include <chrono> using namespace cv; using namespace std; Mat ellipticKernel(int width, int height = -1) { if (height==-1) { return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2)); } else { return getStructuringElement(MORPH_ELLIPSE,Size(widt...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. */ #include "TestSscCommon.h" #include <adios2.h> #include <gtest/gtest.h> #include <mpi.h> #include <numeric> #include <thread> using namespace adios2; int mpiRank = 0; int mpiSi...
<commit_before> #include <Arduino.h> #include <inttypes.h> /////////////////////////// #define NODE_COUNT 8 #define XOD_DEBUG #define DEBUG_SERIAL Serial #ifdef XOD_DEBUG # define XOD_TRACE(x) DEBUG_SERIAL.print(x) # define XOD_TRACE_LN(x) DEBUG_SERIAL.println(x) # define XOD_TRACE_F(x) XOD_TRACE(F(x)) ...
<commit_before>/* Copyright (c) 2019 PaddlePaddle 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 ap...
<commit_before>// Pass -DGHEAP_CPP11 to compiler for gheap_cpp11.hpp tests, // otherwise gheap_cpp03.hpp will be tested. #include "gheap.hpp" #include "gpriority_queue.hpp" #include <algorithm> // for *_heap(), copy(), move() #include <cstdlib> // for rand(), srand() #include <ctime> // for clock() #include ...
<commit_before>/* For secp384r1 define this macro if using secp384r1 */ // #define MCLBN_FP_UNIT_SIZE 6 /* For secp521r1 1. rebuild libmcl.a make clean && make lib/libmcl.a MCL_MAX_BIT_SIZE=576 2. define this macro if using secp521r1 */ // #define MCLBN_FP_UNIT_SIZE 9 #include <mcl/she.hpp> #include <cybozu/opti...
<commit_before>#include <catch.hpp> #include "../src/base.hpp" TEST_CASE("TranslationException") { REQUIRE_THROWS_AS(throw ctf::TranslationException("m"), ctf::TranslationException &); REQUIRE_THROWS_WITH(throw ctf::TranslationException("m"), "m"); } TEST_CASE("Symbol Construction", "[Symbol]...
<commit_before>#include <cstddef> #include <cstdint> #include <type_traits> #include <utility> #include <tuple> using size_type = std::size_t; template <size_type N> using Number = std::integral_constant<size_type, N>; namespace detail { using ByteSize = std::integral_constant<size_type, 8>; template <size_type Si...
<commit_before>#include <algorithm> #include <cstring> #include <ctime> #include "frame/test_macros.h" #include "time/time_utility.h" CASE_TEST(time_test, zone_offset) { util::time::time_utility::update(); time_t offset = util::time::time_utility::get_sys_zone_offset() - 5 * util::time::time_utility::HOUR_SE...
<commit_before>#include "FImage.h" using namespace FImage; int main(int argc, char **argv) { Var x, y; Func f, g; printf("Defining function...\n"); f(x, y) = 2.0; g(x, y) = f(x+1, y) + f(x-1, y); Var xo, xi, yo, yi; g.split(x, xo, xi, 4); g.split(y, yo, yi, 4); g.transpose(xo, yi...
<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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: foptmgr.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2006-07-21 13:24:31 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tabvwshd.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2006-07-21 15:17:18 $ * * The Contents of this file are made ...
<commit_before>/********************************************************************** * $Id$ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * Copyright (C) 2005 Refractions Research Inc. * * This is free software; you can redistribute and/...
<commit_before>/* Copyright (C) 2003 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be useful, ...
<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. #ifdef _WIN32 #include <winsock2.h> #else #include <arpa/inet.h> #endif #include <map> #include "base/compiler_specific.h" #include "...
<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_TEST_OPERATORS_WEIGHTED_L2_HH #define DUNE_GDT_TEST_OPERATORS_WEIGHTED_...
<commit_before>#include <config.h> #include "grid_creation.hh" #include <dune/stuff/common/ranges.hh> #include <dune/stuff/grid/structuredgridfactory.hh> #include <dune/stuff/grid/information.hh> // Helper struct to make overlap for SPGrid possible // Declared in unnamed namespace to avoid naming conflicts namespace ...
<commit_before>#ifndef SILICIUM_ASIO_TCP_ACCEPTOR_HPP #define SILICIUM_ASIO_TCP_ACCEPTOR_HPP #include <silicium/observable/observer.hpp> #include <silicium/exchange.hpp> #include <silicium/error_or.hpp> #include <boost/asio/ip/tcp.hpp> namespace Si { namespace asio { typedef error_or<std::shared_ptr<boost::asio::...
<commit_before>//----------------------------------------------------------------------------- // Copyright 2012-2016 Masanori Morise. All Rights Reserved. // Author: mmorise [at] yamanashi.ac.jp (Masanori Morise) // // common.cpp includes functions used in at least two files. // (1) Common functions // (2) FFT, IFFT a...
<commit_before>/******************************************************* * Copyright (c) 2015-2019, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **************************...
<commit_before>#include <iostream> #include "include/Sales_item.h" int main() { Sales_item item1, item2; std::cin >> item1 >> item2; if (item1.isbn() == item2.isbn()) { std::cout << item1 + item2 << std::endl; return 0; } else { std::cerr << "Data must refer to same ...
<commit_before>// bdls_processutil.cpp -*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used ...