text
stringlengths
54
60.6k
<commit_before>/* * Copyright (c) 2003 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyri...
<commit_before>/* LICENSE NOTICE Copyright (c) 2009, Frederick Emmott <mail@fredemmott.co.uk> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTW...
<commit_before>#include <iostream> #include <map> #include "IRVisitor.h" #include "IRMatch.h" #include "IREquality.h" #include "IROperator.h" namespace Halide { namespace Internal { using std::vector; using std::map; using std::string; void expr_match_test() { vector<Expr> matches; Expr w = Variable::make(I...
<commit_before>/* * MapView.cpp * RunParticles * * Created by Doug Letterman on 2/21/13. * Copyright 2013 Doug Letterman. All rights reserved. * */ #include "MapView.h" #include <QDebug> #define MAX_WIDTH 1.6e+07 MapView::MapView() : _left(0.), _top(0.), _right(0.), _bottom(0.), _aspe...
<commit_before>#include "treeface/scene/MaterialManager.h" #include "treeface/Config.h" #include "treeface/base/Enums.h" #include "treeface/base/PackageManager.h" #include "treeface/gl/Program.h" #include "treeface/graphics/VectorGraphicsMaterial.h" #include "treeface/misc/Errors.h" #include "treeface/misc/Propert...
<commit_before>#include "catch.hpp" #include "broker.hpp" #include "span.h" #include <vector> #include <iostream> using namespace std; using namespace gsl; using Payload = vector<ubyte>; struct TestMqttSubscriber { void newMessage(span<ubyte> bytes) { messages.emplace_back(bytes.begin(), bytes.end()); ...
<commit_before>#include <unordered_map> #include <algorithm> #include "zs_memory.hh" #include "vm.hh" #include "cons.hh" #include "delay.hh" #include "env.hh" #include "procedure.hh" #include "s_closure.hh" #include "symbol.hh" #include "s_rules.hh" #include "zs_error.hh" #include "rational.hh" #include <iostream> #in...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014-2015 Jolla Ltd. ** Contact: slava.monich@jolla.com ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License versi...
<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 "app/keyboard_codes.h" #include "chrome/browser/automation/ui_controls.h" #include "chrome/browser/views/chrome_views_delegate...
<commit_before>/* * Copyright (c) 2012 - 2015 Kulykov Oleh <info@resident.name> * * 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 limitatio...
<commit_before>#include <cassert> #include <iostream> #include <fstream> #include <string> #include <map> #include "ClassFile.h" using namespace std; map<string, string> classRemap; map<string, string> fieldRemap; map<string, string> methodRemap; namespace { string getString(ClassFile const& class_, int index) { ...
<commit_before>/**************************************************************************** ** ncw is the nodecast worker, client of the nodecast server ** Copyright (C) 2010-2011 Frédéric Logier <frederic@logier.org> ** ** https://github.com/nodecast/ncw ** ** This program is free software: you can redistrib...
<commit_before>#include <cstring> #include <utility> #include "abort/abort.h" #include "chess_util4.h" #include "eval.h" #include "MoveGen4.h" #include "Search4.h" namespace Chess { Search4::Statistics::Statistics() : lnode_count(0), node_count(0), qnode_count(0) { ...
<commit_before>/****************************************************************************** Copyright (C) 2002-2015 Argentum Online & Dakara Online Developers 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...
<commit_before>// Copyright 2017 ASTRON - Netherlands Institute for Radio Astronomy // Copyright 2017 NLeSC - Netherlands eScience Center // // 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>#include "string_tools.h" #include <sstream> std::vector<std::string> split(const std::string& str) { std::string buf; // Have a buffer string std::stringstream ss(str); // Insert the string into a stream std::vector<std::string> tokens; // Create vector to hold our words while (ss >> buf) ...
<commit_before>// // This file is part of khmer, http://github.com/ged-lab/khmer/, and is // Copyright (C) Michigan State University, 2009-2013. It is licensed under // the three-clause BSD license; see doc/LICENSE.txt. Contact: ctb@msu.edu // #include "hllcounter.hh" #include <math.h> #include <algorithm> #include <...
<commit_before>#include "ui/nodes_view.h" #include <QDebug> #include <QDragEnterEvent> #include <QDragLeaveEvent> #include <QDragMoveEvent> #include <QMimeData> #include <QTimeLine> #include "core/registry.h" #include "elements/package.h" #include "nodes/node.h" #include "ui/elements_list.h" #include "ui/link_item.h"...
<commit_before><commit_msg>added tests for vsscanf_s, vfscanf_s, vfwscanf_s and vswscanf_s functions<commit_after><|endoftext|>
<commit_before>#include "billing.h" #ifdef __ANDROID__ #include "android/AndroidBilling.h" #else #include "sim/BillingSimulator.h" #endif namespace oxygine { namespace billing { spEventDispatcher _dispatcher; spEventDispatcher dispatcher() { return _dispatcher; } ...
<commit_before>#include "checker.h" /** * device-file record checker * * This is a device-file checker that goes through and reads all the records written to the device-file and validates * them. Ideally, all records will be complete and valid, but as this is used to test for the effect of power loss, it * is exp...
<commit_before>#include "console.h" #include <iostream> #include "defs.h" #define LINE_SIZE 512 Console::Console(){ shell = new Shell(); handler = new Handler(shell); } Console::~Console(){ delete handler; delete shell; } bool Console::start(){ while(!handler->isTerminated()){ bool exec_OK; ...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above c...
<commit_before>#include <boost/preprocessor.hpp> #include <boost/shared_ptr.hpp> #include <cds/init.h> #include <cds/gc/hp.h> #include <cds/threading/model.h> #include "cql/cql.hpp" #define CASE_STRING_FOR_ENUM(enum_const) \ case enum_const: return #enum_const const char* cql::to_string(const cql_consistency_enum c...
<commit_before>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation w...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <openssl/aes.h> #include <openssl/evp.h> #include <vector> #include <string> #ifdef WIN32 #include <wi...
<commit_before>/* * Copyright (c) 2007-2008 Digital Bazaar, Inc. All rights reserved. */ #include <iostream> #include "db/test/Test.h" #include "db/test/Tester.h" #include "db/test/TestRunner.h" #include "db/rt/Thread.h" #include "db/sql/Row.h" #include "db/sql/mysql/MySqlConnection.h" #include "db/sql/mysql/MySqlC...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2009 Mathieu Gautier <mathieu.gautier@cea.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms ...
<commit_before>/* * Copyright (C) 2015,2016,2017 deipi.com LLC and contributors. All rights reserved. * * 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 wit...
<commit_before>/* LibMary - C++ library for high-performance network servers Copyright (C) 2011 Dmitry Shatrov 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 versi...
<commit_before>// // generic.hpp // integral // // Copyright (C) 2014, 2016 André Pereira Henriques // aphenriques (at) outlook (dot) com // // This file is part of integral. // // integral is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publish...
<commit_before>/** Copyright(c) 2015 - 2017 Denis Blank <denis.blank at outlook dot 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 th...
<commit_before>/** * \file * \brief Unit Test for Thermal Mock Config * * \author Uilian Ries <uilianries@gmail.com> */ /** Should not link with unit test lib */ #define BOOST_TEST_NO_LIB #include <string> #include <boost/filesystem.hpp> #include <boost/test/unit_test.hpp> #include <Poco/File.h> #include "bbbg...
<commit_before>// // Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”) // 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 Licens...
<commit_before>#include "history.h" History::History(const std::string& fileName): _mem(fileName) { if (_mem.size()==0) { _mem.reserve(_emptyLen); _mem.allocate(_header); _mem.allocate(_info); _header.head() = _info.addr(); _header.dataHead() = FileMem::nullPtr; _mem.sync...
<commit_before>// Copyright (c) Arduino. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <time.h> #include <sys/time.h> #include "sdk/httpapi.h" #include "sdk/iot_logging.h" #include "util/HTTPSClient.h" #include "util/NTPClient.h" ...
<commit_before>#include "libtorrent/session.hpp" #include "libtorrent/hasher.hpp" #include <fstream> #include <boost/thread.hpp> #include <boost/tuple/tuple.hpp> #include <boost/filesystem/operations.hpp> #include <boost/filesystem/convenience.hpp> #include "test.hpp" using boost::filesystem::remove_all; using boost:...
<commit_before>#include "splitruns.h" #include "pvalue.h" #include "gtest/gtest.h" #include <gsl/gsl_cdf.h> TEST(splitruns, split) { constexpr double Tobs = 15.5; constexpr unsigned N = 12; constexpr unsigned n = 2; const double F = runs_cumulative(Tobs, N); const double approx = F*F / (1.0 + Delt...
<commit_before><commit_msg>Rearrange the code to avoid a memory leak as suggested by coverity.<commit_after><|endoftext|>
<commit_before>#include <gtest/gtest.h> #include <mnc.h> #include <iostream> #ifdef MNC_V8 #include "v8/test-v8-common.h" #define OBJECT_CONTEXT_TEST_SUITE V8ObjectContext #endif #ifdef MNC_JSC #include "jsc/test-jsc-common.h" #define OBJECT_CONTEXT_TEST_SUITE JSCObjectContext #endif using namespace mnc; static mnc...
<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>#include "blob_mock.hpp" #include "dlsys_mock.hpp" #include "fs.hpp" #include "manager_mock.hpp" #include "utils.hpp" #include <filesystem> #include <memory> #include <string> #include <vector> #include <gtest/gtest.h> namespace fs = std::filesystem; namespace blobs { using ::testing::_; using ::test...
<commit_before>/* * Copyright (c) 2013 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. ...
<commit_before>//----------------------------------*-C++-*----------------------------------// /*! * \file utils/HDF5_IO.hh * \author Thomas M. Evans * \date Thu Nov 07 21:53:44 2013 * \brief HDF5_IO class definition. * \note Copyright (C) 2013 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //--------...
<commit_before>/* * Copyright (C) 2011-2012 DarkCore <http://www.darkpeninsula.eu/> * Copyright (C) 2011-2012 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2012 MaNGOS <http://getmangos.com/> * This program is free software...
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__MULTIVARIATE__CONTINUOUS__MULTI_GP_HPP__ #define __STAN__PROB__DISTRIBUTIONS__MULTIVARIATE__CONTINUOUS__MULTI_GP_HPP__ #include <boost/random/normal_distribution.hpp> #include <boost/random/variate_generator.hpp> #include <stan/math/matrix_error_handling.hpp> #inclu...
<commit_before>/****************************************************************/ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* All contents are licensed under LGPL V2.1 */ /* See LICENSE for full r...
<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-CHROMIUM file. #include "browser/url_request_context_getter.h" #include <algorithm> #include "browser/network_delegate.h" #include "base/c...
<commit_before>/* Rapicorn * Copyright (C) 2005 Tim Janik * * 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 your option) any later versio...
<commit_before>#include <iostream> #include <math.h> void find_missing(int array[], int n){ //takes O(2^n)time and takes the memory of two of the arrays int size = pow(2,n); bool found[size]; for (int x=0;x<size;x++)found[x]=0; for (int x=0;x<size-2;x++)found[array[x]]=1; for (int x=0;x<size;x++) if(!foun...
<commit_before>/** * The MIT License (MIT) * * Copyright © 2018 Ruben Van Boxem * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ...
<commit_before>#include "backup_debug.h" // Call all the trace and warn code (for coverage) int test_main (int argc __attribute__((__unused__)), const char *argv[] __attribute__((__unused__))) { HotBackup::CopyTrace("hello", "there"); return 0; } <commit_msg>Refs #6699. Some coverage in backup_debug.cc<commit_...
<commit_before>/************************************************************************* * * $RCSfile: pm_aldef.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2005-03-23 08:59:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include "gtest/gtest.h" #define AUTOMATIC_CONVERSIONS #include <FileMgr.h> #include <file/file.h> #include <MemoryMgr.h> #include <WindowMgr.h> using namespace Executor; QDGlobals qd; #include <quickdraw/cquick.h> #include <vdriver/vdriver.h> #include <ResourceMgr.h> class MockVDriver : public VideoD...
<commit_before>/*------------MD.cpp----------------------------------------------------------// * * MD.cpp -- a simple event-driven MD simulation * * Purpose: Figure out the pressure on the interior of a box based on * Boltzmann's theory and stuff * * Notes: This simulation will predominantly fol...
<commit_before>/** * Unix Tools For Windows * - date: write the date and time * * Written in 2013 by Ruben Van Boxem <vanboxem.ruben@gmail.com> * * To the extent possible under law, the author(s) have dedicated all copyright and related * and neighboring rights to this software to the public domain worldwide. T...
<commit_before>#include "gtest/gtest.h" TEST(SimpleMathTest, Sum) { // This test is named "Negative", and belongs to the "FactorialTest" // test case. EXPECT_EQ(2, 1+1); EXPECT_EQ(4, 2+2); // EXPECT_EQ(expected, actual) } TEST(SimpleMathTest, Difference) { EXPECT_EQ(0, 1-1); EXPECT_EQ(1, 2-1); EXPECT_...
<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>/* * #%L * %% * Copyright (C) 2011 - 2014 BMW Car IT GmbH * %% * 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>#include "mesh.hpp" #include "shader_suite.hpp" #include "render_context.hpp" #include "renderer.hpp" #include <string.h> using namespace Util; using namespace Vulkan; namespace Granite { Hash StaticMesh::get_instance_key() const { Hasher h; h.u64(vbo_position->get_cookie()); h.u32(position_stride);...
<commit_before>/* * VHDL code generation for statements. * * Copyright (C) 2008 Nick Gasson (nick@nickg.me.uk) * * 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 ...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>/******************************************************* * Copyright (c) 2014, 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 "common.th" #include "spi.th" prologue b <- 0 b -> [(SPI_BASE + 0x14)] // set divider c <- 1 c -> [(SPI_BASE + 0x18)] // set SS to 1 b <- rel(IDLE_COMMAND) call(put_spi) wait_for_sd_ready: b <- rel(RESET_COMMAND) call(put_spi) c <- [(SPI_BASE + 0x0)] /...
<commit_before>#include <cassert> #include <iostream> #include <list> #include <pqxx/pqxx> #include <pqxx/compiler-internal.hxx> using namespace PGSTD; using namespace pqxx; namespace { #ifndef PQXX_HAVE_DISTANCE template<typename ITERATOR> size_t distance(ITERATOR begin, ITERATOR end) { size_t d = 0; while (be...
<commit_before>#include <cstdio> #include <cstdlib> #include <algorithm> #include <map> #include <memory> #include "dashmm.h" constexpr int source_test_count = 10000; constexpr int target_test_count = 10000; struct UserSourceData { double pos[3]; double mass; }; struct UserTargetData { double pos[3]; doub...
<commit_before>#include "data-general.hpp" #include "data-course.hpp" #include "data-major.hpp" #include "data-student.hpp" using namespace std; vector<Course> all_courses; void loadCourses() { ifstream infile("data/2012-13-s2-csv.csv"); string str; // read in the header line getline(infile, str); while (infile.p...
<commit_before>/* * Copyright (C) 2014 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>#include "../src/utility.h" #include <google/protobuf/util/message_differencer.h> #include <algorithm> #include "utility.h" namespace lightstep { //------------------------------------------------------------------------------ // LookupSpansDropped //-----------------------------------------------------...
<commit_before>#include <cstring> #include <iomanip> #include <iostream> #include <asio.hpp> #include <asio/serial_port.hpp> #include <asio/signal_set.hpp> #include <google/protobuf/io/coded_stream.h> #include "packet/frame.h" #include "pose.pb.h" #include "simulation.pb.h" namespace { asio::io_service io_service;...
<commit_before>#include <functional> #include "arch/runtime/starter.hpp" #include "serializer/config.hpp" #include "unittest/mock_file.hpp" #include "unittest/gtest.hpp" namespace unittest { // This test is completely vacuous, but should invite expansion in the future. void run_CreateConstructDestroy() { // Thi...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/targeting/common/util.C $ ...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MIT...
<commit_before>/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include "pipeline.h" #include "pipeline_exception.h" #include "edge.h" #inc...
<commit_before>// __BEGIN_LICENSE__ // Copyright (C) 2006-2011 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/Plate/SnapshotManager.h> #include <vw/Plate/detail/MipmapHelpers.h> #include <vw/...
<commit_before>#include <Common.h> #include <Logging/Logger.h> #include <Network/PacketContainer.h> #include "Network/GameConnection.h" #include "Network/PacketWrappers/ActorControlPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/P...
<commit_before>#include <silicium/byte.hpp> #include <boost/test/unit_test.hpp> #include <boost/lexical_cast.hpp> #include <boost/unordered_map.hpp> #include <unordered_map> BOOST_AUTO_TEST_CASE(byte_zero) { Si::byte b = Si::byte::zero; BOOST_STATIC_ASSERT(sizeof(b) == 1); BOOST_CHECK_EQUAL(0, static_cast<char>(b))...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "frontend.h" #include "environment.h" #include "operator_info.h" #include "kernel_exception.h" #include "builtin.h" #include "pp.h" ...
<commit_before>#ifndef CORE_ANIMATIONS_REPEAT_HPP_ #define CORE_ANIMATIONS_REPEAT_HPP_ #include <algorithm> #include <memory> #include <core/animation.hpp> template <typename Value> class Repeat: public Animation<Value> { public: Repeat(int counter, AnimationPtr<Value> &&animation): m_initialCounter(std:...
<commit_before>#line 2 "togo/gfx/renderer/types.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ #pragma once #include <togo/config.hpp> #include <togo/types.hpp> #include <togo/hash/hash.hpp> #include <togo/memory/types.hpp> #include <togo/gfx/types.hpp> #include <togo/collection/...
<commit_before>/** ** \file runner/runner.cc ** \brief Implementation of runner::Runner. */ //#define ENABLE_DEBUG_TRACES #include "libport/compiler.hh" #include <sstream> #include <libport/foreach.hh> #include <libport/symbol.hh> #include "kernel/uconnection.hh" #include "ast/clone.hh" #include "object/atom.hh"...
<commit_before>/************************************************************************* * * $RCSfile: svarray.cxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:59:01 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<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) 2011 The Android Open Source Project * * 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 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: swfntcch.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2006-08-14 16:47:20 $ * * The Contents of this file are made ...
<commit_before>#include "settingspage.hpp" #include "ui_settingspage.h" #include "json/assertions.h" #include "json/value.h" #include "json/writer.h" #include "json/json.h" #include "json/config.h" #include <QDebug> #include "util.hpp" #include "constants.hpp" SettingsPage::SettingsPage(QWidget *parent) : QWidget...
<commit_before>#include "file/path.h" // Normalize slashes. void PathBrowser::SetPath(const std::string &path) { if (path[0] == '!') { path_ = path; return; } path_ = path; for (size_t i = 0; i < path_.size(); i++) { if (path_[i] == '\\') path_[i] = '/'; } if (!path_.size() || (path_[path_.size() - 1] != '...
<commit_before>/** * @file storageMapper.cc * @author Beata Skiba * @author Rafal Slota * @copyright (C) 2013 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in 'LICENSE.txt' */ #include "storageMapper.h" #include "veilfs.h" #include "glog/logging.h" #include <ctime> #includ...
<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>/* 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>/* * Copyright (C) 2016-2017, Egor Pugin * * 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 applicab...
<commit_before>#include <iostream> #include <string> #include "random.h" #include "skip_list.h" struct foo { foo() { std::cout << "Construct foo" << std::endl; } foo(foo const& f) { std::cout << "Copy construct foo" << std::endl; } ~foo() { std::cout << "De...
<commit_before>// -------------------------------------------------------------------- // main.cpp // // Created by Barrett Davis on 5/8/16. // Copyright © 2016 Tree Frog Software. All rights reserved. // -------------------------------------------------------------------- #include <iostream> #include "Dnn.h" #inclu...
<commit_before>/** * Created by Jian Chen * @since 2016.08.21 * @author Jian Chen <admin@chensoft.com> * @link http://chensoft.com */ #include <socket/tcp/tcp_handler.hpp> #include <cstring> // ----------------------------------------------------------------------------- // conn chen::tcp::conn::conn(bsd::sock...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // taskwarrior - a command line task list manager. // // Copyright 2006-2013, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and as...
<commit_before>#include <mio/mmap.hpp> #include <mio/shared_mmap.hpp> #include <string> #include <fstream> #include <cstdlib> #include <iostream> #include <cassert> #include <system_error> #include <numeric> int handle_error(const std::error_code& error) { const auto& errmsg = error.message(); std::printf("er...
<commit_before>#define CATCH_CONFIG_RUNNER #include "catch.hpp" #include "variant.hpp" #include <cstdint> #include <limits> #include <string> #include <ostream> #include <memory> TEST_CASE( "variant version", "[variant]" ) { unsigned int version = VARIANT_VERSION; REQUIRE(version == 100); #if VARIANT_VERS...
<commit_before>#include "matrix.hxx" #include <cstring> #include <vector> #include <string> #include <sstream> #include <algorithm> #include "../exceptions.hxx" using namespace std; namespace game_of_life { Matrix::Matrix() {} Matrix::Matrix(size_t height, size_t width): height(height), width(width), d...
<commit_before>#include <stdio.h> #include <time.h> #include <math.h> #include "expr.h" double myrandom() { return double(rand()) / RAND_MAX; } double sqr(double x) { return x*x; } double len2(double a, double b) { return sqrt(a*a + b*b); } int main() { Expr::addFunction("sqr", sqr); Expr::addFu...
<commit_before>#include "generate.hpp" #include "serialization/model2d.hpp" namespace beat { namespace g2 { template <class T> struct Serialization : Generator {}; using STypes = ::testing::Types< Point, Line, Ray, Segment, Circle, Capsule, AABB, Triangle, Convex >; TYPED_TEST_CAS...