text
stringlengths
54
60.6k
<commit_before>/* Copyright (c) 2010 - 2021 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"), to deal in the Software without restriction, including without limitation the rights to use, co...
<commit_before>/* Copyright (c) 2010 - 2021 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"), to deal in the Software without restriction, including without limitation the rights to use, co...
<commit_before>/* Copyright (c) 2010 - 2021 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"), to deal in the Software without restriction, including without limitation the rights to use, co...
<commit_before>/* Copyright (c) 2010-present 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"), to deal in the Software without restriction, including without limitation the rights to use, c...
<commit_before>/** * capture.cpp * * @date Nov 4, 2015 * @author Ryan Peach * @version v0.1 */ #include "capture.hpp" #define TEST void Capture::Frame(Mat img) { frame = &img; edges = NULL; polys = NULL; fps = NULL; rects = NULL; } Mat* Capture::getEdges() { if (edges == NULL) { auto out = edgesCanny(...
<commit_before>#include <iostream> using namespace std; int divide(int dividend, int divisor); int main() { cout << divide(2147483647,2) << endl; cout << divide(2147483647,2) << endl; cout << divide(2147483647,2) << endl; cout << divide(2147483647,2) << endl; cout << divide(2147483647,2) << endl; ...
<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 2010 Miklos Vajna. * * OpenOffice.org - a multi-platform office ...
<commit_before>//===- FileCheck.cpp - Check that File's Contents match what is expected --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#ifndef STAN_MATH_OPENCL_IS_MATRIX_CL_HPP #define STAN_MATH_OPENCL_IS_MATRIX_CL_HPP #ifdef STAN_OPENCL #include <stan/math/prim/meta.hpp> #include <type_traits> namespace stan { namespace math { /** * Dummy class to instantiate matrix_cl to enable for specific types. * @ingroup matrix_cl_group ...
<commit_before>#ifndef STAN_MATH_OPENCL_REV_MULTIPLY_HPP #define STAN_MATH_OPENCL_REV_MULTIPLY_HPP #ifdef STAN_OPENCL #include <stan/math/prim/meta/is_kernel_expression.hpp> #include <stan/math/opencl/prim/multiply.hpp> #include <stan/math/opencl/matrix_cl.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev...
<commit_before>#ifndef STAN_MATH_REV_FUN_LOG_SUM_EXP_HPP #define STAN_MATH_REV_FUN_LOG_SUM_EXP_HPP #include <stan/math/rev/meta.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev/fun/typedefs.hpp> #include <stan/math/prim/meta.hpp> #include <stan/math/prim/fun/constants.hpp> #include <stan/math/prim/fun/Ei...
<commit_before>// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> #include <sstream> // StdAir #include <stdair/stdair_types.hpp> #include <stdair/basic/BasChronometer.hpp> #inclu...
<commit_before>#include <CppUTest/TestHarness.h> #include <CppUTestExt/MockSupport.h> #include "../can_datagram.h" #include "../config.h" #include "mocks/can_interface_mock.h" #include "../can_interface.h" #include "../command.h" #include <cstdio> void read_eval(can_datagram_t *input, can_datagram_t *output, bootload...
<commit_before>#define _BSD_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/types.h> #include <sys/ptrace.h> #include <sys/uio.h> #include <unistd.h> #include "ptbox.h" pt_debugger::pt_debugger() : on_return_callback(NULL) {} #if PTBOX_FREEBSD ...
<commit_before>//CODEIMGAME #include "../graphics.hpp" #include "sstream" #include "vector" #include "stdlib.h" #include "time.h" #include "math.h" using namespace genv; using namespace std; const int kx = 1330; const int ky = 600; struct Sboxok { int x; int y; int vx; int vy; unsigned char rr,gg,bb; int elet;...
<commit_before>#include <cstdlib> #include "map.h" using worker::Entity; using worker::List; using shoveler::TilemapTilesTile; static const int halfMapWidth = 100; static const int halfMapHeight = 100; static ChunkData createChunk(int x, int y, int chunkSize); List<ChunkData> generateMapChunks(int chunkSize) { Li...
<commit_before>#include <reactive/bridge.hpp> #include <reactive/consume.hpp> #include <boost/optional.hpp> #include <boost/test/unit_test.hpp> #include <lua.hpp> namespace Si { struct lua_deleter { void operator()(lua_State *L) const { lua_close(L); } }; std::unique_ptr<lua_State, lua_deleter> open_lua(...
<commit_before>#include "InputMesh.h" #include <maya/MFnMesh.h> #include <maya/MDataBlock.h> #include <maya/MFloatArray.h> #include <maya/MFloatPointArray.h> #include <maya/MFloatVectorArray.h> #include <maya/MIntArray.h> #include <maya/MMatrix.h> #include "util.h" InputMesh::InputMesh(int assetId, int inputIdx) : ...
<commit_before>/* The MIT License (MIT) Copyright (c) 2013-2019 Winlin 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>// Open a FITS file whose primary array represents // a spectrum (flux vs wavelength) void FITS_tutorial5() { TVectorD *v; printf("\n\n--------------------------------\n"); printf("WELCOME TO FITS tutorial #5 !!!!\n"); printf("--------------------------------\n"); printf("We're gonna o...
<commit_before>// Copyright 2012 Cloudera Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbaobjectex.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2005-09-23 11:58:40 $ * * The Contents of this file are ma...
<commit_before>/************************************************************************* * * $RCSfile: atrfld.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2004-03-17 12:16:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * $RCSfile: ascatr.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: vg $ $Date: 2003-04-17 14:48:33 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK // RUN: %clangxx_asan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s --c...
<commit_before>/* * * Copyright 2019 gRPC authors. * * 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 "ai.h" #include <iostream> #include <stdlib.h> #include <time.h> using namespace BWAPI; using namespace Filter; // Global variables. bool supplyNeeded; int infantryBuildingCheckTimer; int infantryBuildingCost; int infantryBuildingLimit; int infantryCost; int resourceDepotBuildingCheckTimer; in...
<commit_before>#include "ai.h" #include <iostream> using namespace BWAPI; using namespace Filter; void ai::onEnd(bool isWinner){ } void ai::onFrame(){ if(!Broodwar->self() || Broodwar->getFrameCount() % Broodwar->getLatencyFrames() != 0 || Broodwar->isPaused() || Broodwar->isReplay()){ ...
<commit_before>#include "helpers/read_test_entries.h" #include <assert.h> #include <string> #include <regex> #include "helpers/file_helpers.h" using std::move; using std::regex; using std::regex_search; using std::regex_replace; using std::regex_constants::extended; using std::smatch; using std::string; using std::vec...
<commit_before> #include "TestGlobals.h" #include "ChunkBuffer.h" int main(int argc, char** argv) { { cChunkBuffer buffer; // Empty chunks buffer.SetBlock(0,0,0, 0xAB); testassert(buffer.GetBlock(0,0,0) == 0xAB); buffer.SetMeta(0,16,0, 0xC); testassert(buffer.GetMeta(0,16,0) == 0xC); // loaded but n...
<commit_before>/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkFrontBufferedStream.h" #include "SkRefCnt.h" #include "SkStream.h" #include "SkTypes.h" #include "Test.h" static void test_read(skiatest::Reporter*...
<commit_before>#include "catch.hpp" #include "PermutationSequence.hpp" using namespace std; TEST_CASE("Permutation Sequence") { PermutationSequence s; SECTION("Sample tests") { vector<string> expected{"123", "132", "213", "231", "312", "321"}; for (int k = 1; k <= 6; k++) REQUIRE...
<commit_before> #include <gtest/gtest.h> #include <gmock/gmock.h> #include <CompositeTransformation.h> #include <MetaEvent.h> #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> namespace test { using namespace std; using ::testing::_; using ::testing::Return; using ::testing::AtLeast; using :...
<commit_before>/*! @file zerocrossings.cc * @brief Tests for SoundFeatureExtraction::Transforms::ZeroCrossings. * @author Markovtsev Vadim <v.markovtsev@samsung.com> * @version 1.0 * * @section Notes * This code partially conforms to <a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml">Go...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: versionhelper.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-09 12:08:39 $ * * The Contents of this file are ...
<commit_before>#ifndef __FUTURE_HPP__ #define __FUTURE_HPP__ #include "latch.hpp" namespace process { template <typename T> class Promise; template <typename T> class Future { public: Future(); Future(const T& _t); Future(const Future<T>& that); Future<T>& operator = (const Future<T>& that); virtual ~Fu...
<commit_before>/* Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your op...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * 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...
<commit_before>#ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS #endif #include "framework/data.h" #include "framework/framework.h" #include "framework/fs.h" #include "framework/logger.h" #include "framework/trace.h" #include <physfs.h> #ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS #endif #ifdef ANDROID #define be16toh...
<commit_before>// // IsingTest.cpp // jdemon // // Created by Mark Larus on 3/4/13. // Copyright (c) 2013 Kenyon College. All rights reserved. // #include <boost/test/unit_test.hpp> #include <set> #include <algorithm> #include <stack> #include "Ising.h" #include "Utilities.h" #include "TestFixtures.h" #include "...
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*- uiserver/decryptverifywizard.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2007 Klarälvdalens Datakonsult AB Kleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public L...
<commit_before>// Ignore unused parameter warnings coming from cppuint headers #include <libmesh/ignore_warnings.h> #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestCase.h> #include <libmesh/restore_warnings.h> #include <libmesh/equation_systems.h> #include <libmesh/mesh.h> #include <libmesh/mesh_gen...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as p...
<commit_before>/* Copyright (c) 2015-present 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"), to deal in the Software without restriction, including without limitation the rights to use, c...
<commit_before>// $Id$ // // Copyright (C) 2003-2011 Greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. ...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSenseUtilities.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2013 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
<commit_before>/* * AddTask macro for class * Redmer Alexander Bertens, rbertens@cern.ch * Utrecht University, Utrecht, Netherlands * * Note: this macro is pretty much a copy of AddTaskEmcalJetSample.C * */ AliAnalysisTaskRhoVnModulation* AddTaskRhoVnModulation( const char *ntracks = "Tracks", c...
<commit_before>#include <Halide.h> #include <stdio.h> #include <stdlib.h> #include <functional> using namespace Halide; int test_per_channel_select() { Func gpu("gpu"), cpu("cpu"); Var x("x"), y("y"), c("c"); gpu(x, y, c) = cast<uint8_t>(select(c == 0, 128, c =...
<commit_before>#ifndef QUEUES_H_INCLUDED #define QUEUES_H_INCLUDED #include <wiz/global.h> #include <wiz/wizardError.h> #include <wiz/newarrays.h> /// #define QUEUES_DEBUG namespace wiz{ class QueueEmptyError : public wiz::Error { public: QueueEmptyError() : wiz::Error( "queueEmptyError" ) { } }; class ...
<commit_before>// @(#)root/utils:$Name: $:$Id: rlibmap.cxx,v 1.12 2004/05/17 17:40:00 rdm Exp $ // Author: Fons Rademakers 05/12/2003 /************************************************************************* * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before><commit_msg>bool improvements<commit_after><|endoftext|>
<commit_before>#include "core/generator_maze.h" #include "core/generator_cell.h" #include "core/random.h" #include "core/imageops.h" #include "core/debug.h" #include <iostream> // later when doing floodfill // #include "core/colorbrewer.h" void maze() { auto random = Random {}; auto maze = generator::Maze::Fro...
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/globals.h" #if defined(TARGET_OS_MACOS) #include "vm/os.h" #include <errn...
<commit_before><commit_msg>sal: fix build with clang and --enable-crashdump<commit_after><|endoftext|>
<commit_before>/*! CreditMetrics.cpp : Defines the entry point for the console application. Note: The given .csv files are not formatted consistently. The .csv parsers below are designed to handle the inconsistencies present in the files in a somewhat general manner by removing extra characters and white space. *...
<commit_before>#include "Main.h" //获取基本信息 void handlerGetDeviceBaseInfo(struct bufferevent * bufEvent,Json::Value &data){ char buffer[100]; //获取内存大小 struct sysinfo memInfo; sysinfo(&memInfo); //获取磁盘大小 struct statfs diskInfo; statfs(DISK_SIZE_PATH, &diskInfo); //格式化数据 double totalMem...
<commit_before>/*===================================[ Algorithmen und Datenstrukturen]================================================================* * * * @Version: 1.0.0 * @Author: Achim Grolimund (achim.grolimund@hf-ict.info) * @Date: 01.1.2017 * * @Description: * * Beispiel: * * Anmerkung: * ...
<commit_before>#include "distributions/joint_GMM.h" #include "distributions/joint_gaussian.h" #include "vector" #include "bmp_image.h" #include "dataset/distr_array.h" #include "io/edda_vtk_reader.h" #include "io/edda_vtk_writer.h" #include "io/edda_reader.h" #include "io/edda_writer.h" #include "distributions/histogra...
<commit_before>// $Id$ // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 /************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full ...
<commit_before>#include <iostream> #include "BinaryTree.hpp" using namespace std; int main(int argc, char **argv) { Lista<int> pre, in, post; pre.insertar(10,1); pre.insertar(20,2); pre.insertar(40,3); pre.insertar(80,4); pre.insertar(50,5); pre.insertar(90,6); pre.insertar(30,7)...
<commit_before><commit_msg>Fix camera lurch on unfocused click and drag<commit_after><|endoftext|>
<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>#pragma once #include "interrupted_exception.hpp" namespace kumori { class sync : boost::noncopyable { public: sync(boost::asio::io_service& service, const std::function<void()>& entry_point, std::size_t stack_size) : entry_point_(entry_point) , timer_(service) , context_(&sync::callback...
<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>#include <davix.hpp> #include <davixcontext.hpp> #include <params/davixrequestparams.hpp> #include <auth/davixauth.hpp> #include <gtest/gtest.h> using namespace std; using namespace Davix; // instanciate and play with gates TEST(CredTest, basicLoad){ DavixError* tmp_err=NULL; davix_set_log_leve...
<commit_before>#include <cstring> #include <iostream> #include <atomic> #include <vector> #include <functional> #include <type_traits> #include <stdexcept> #include <flatbuffers/flatbuffers.h> #include <flatbuffers/idl.h> #include <flatbuffers/util.h> #include "libvedis.h" #include "libenet.h" #include "signal_handl...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <pwd.h> #include <grp.h> /** * small utility to use instead of "su" when we want to just * switch to the vespa user...
<commit_before>/* * ===================================================================================== * * Filename: encore.cpp * * Description: Encore - A computational framework for analysis of GWAS and other * biological data * * Includes epistasis interaction analysis (re...
<commit_before>#include <rusql/rusql.hpp> #include "test.hpp" #include "database_test.hpp" int main(int argc, char *argv[]) { auto db = get_database(argc, argv); test_init(20); db->execute("CREATE TABLE rusqltest (`value` VARCHAR(10) NOT NULL)"); test_start_try(6); try { db->execute("INSERT INTO rusqltest VALU...
<commit_before>/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across ...
<commit_before>//===- CoverageReport.cpp - Code coverage report -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------...
<commit_before>/* tests/win32/msgwnd.cpp * * Copyright (C) 2007 Antonio Di Monaco * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "tests/catch.hpp" #include "win32/msgwnd.hpp" TEST_CASE("Message window", "[Win32]") { SECTI...
<commit_before>/******************************************************************************* * thrill/mem/manager.hpp * * Part of Project Thrill. * * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris can compile it. ********************************************...
<commit_before>/** @file ConnectionSTREAMEntry.cpp @author Lime Microsystems @brief Implementation of STREAM board connection. */ #include "ConnectionSTREAM.h" #include <iostream> using namespace lime; #ifdef __unix__ void ConnectionSTREAMEntry::handle_libusb_events() { struct timeval tv; tv.tv_se...
<commit_before>#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetVerticalSync(true); renderEngine = NULL; ofxMultiGLFWWindow *glfw = (ofxMultiGLFWWindow*)ofGetWindowPtr(); //Look for number of monitors // int numberOfMonitors; G...
<commit_before>#include "tcpserver.h" #include "util/net.h" using namespace std; using namespace happyntrain::network; using namespace happyntrain::fd; namespace happyntrain { class TCPChannel; TCPChannel::TCPChannel(EventLoop* eventloop, ConnectionSocketFD&& connectionSocket) : state_(State::INVALID), c...
<commit_before>#include <boost/test/unit_test.hpp> #include "client/Client.hpp" #include "client/SocketFactory.hpp" #include "server/CoreServer.hpp" #include "net/Cert.hpp" #include "net/Net.hpp" #include "net/TcpSocket.hpp" #include "Response.hpp" #include "../TestThread.hpp" #include <thread> using namespace http; ...
<commit_before>#include "himan_unit.h" #include "util.h" #define BOOST_TEST_MODULE util using namespace std; using namespace himan; const double kEpsilon = 1e-3; BOOST_AUTO_TEST_CASE(UV_TO_GEOGRAPHICAL) { // Transform grid coordinates to lat and lon in stereographic projection himan::point stereoUV(8.484046, 3.8...
<commit_before>// Copyright 2014 Toggl Desktop developers. // NB! Setters should not directly calculate // anything besides setting the field asked. // This is because same setters are used when // loading from database, JSON etc. If time entry // needs to be recalculated after some user // action, the recalculation s...
<commit_before>//---------------------------------------------------------------------------- /// \file timestamp.cpp //---------------------------------------------------------------------------- /// \brief Implementation of timestamp class. //--------------------------------------------------------------------------...
<commit_before>#line 2 "togo/hash.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file hash.hpp @brief Hashing utilities. @ingroup hash */ #pragma once #include <togo/config.hpp> #include <togo/debug_constraints.hpp> #include <togo/types.hpp> #include <am/hash/fnv.hpp> namespace ...
<commit_before>#line 2 "togo/tags.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file tags.hpp @brief Variation/placeholder tags. @ingroup utility */ #pragma once #include <togo/config.hpp> namespace togo { /** @addtogroup utility @{ */ /** @name Variation/placeholder tags */...
<commit_before>#include "ros/ros.h" #include <gtest/gtest.h> #include "geometry_msgs/Wrench.h" #include "vortex_msgs/ThrusterForces.h" class AllocatorTest : public ::testing::Test { public: AllocatorTest() { pub = nh.advertise<geometry_msgs::Wrench>("rov_forces", 10); sub = nh.subscribe("thruster_forces", ...
<commit_before>//===- PowerPCRegisterInfo.cpp - PowerPC Register Information ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>#ifndef SCAN_CLASSIFY_SWITCH_BIT_BLOCK_RECOMBINER_HPP_ #define SCAN_CLASSIFY_SWITCH_BIT_BLOCK_RECOMBINER_HPP_ #include "clotho/recombination/bit_block_recombiner_def.hpp" #include "clotho/recombination/inspect_methods.hpp" #include "clotho/utility/bit_masks.hpp" namespace clotho { namespace recombine ...
<commit_before>/* * Copyright (c) 2015, Lakshman Anumolu, Pradeep Garigipati * All rights reserved. * * This file is part of MeshIO whose distribution is governed by * the BSD 2-Clause License contained in the accompanying LICENSE.txt * file. */ #include <gtest/gtest.h> #include <meshio/stl.hpp> #include "testH...
<commit_before>#include "calc.cpp" #include <iostream> int main(){ while (std::cin) { std::cout << "Please type your term to calculate: "; int result = calc(std::cin); std::cout << "= " << result << '\n'; } } <commit_msg>simpler prompt<commit_after>#include "calc.cpp" #include <iostream> int main(){ while (s...
<commit_before>//===-- X86FloatingPoint.cpp - FP_REG_KILL inserter -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* ----------------------------------------------------------------------------- Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/...
<commit_before>//===-- VPlanVerifier.cpp -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#pragma once #include <array> #include <vector> #include <ostream> #ifdef DEBUG # include <iostream> #endif #include "util.hpp" #include "debug.hpp" namespace utki{ // TODO: remove when C++'20 becomes very common. /** * @brief span template class. * This class is a wrapper of continuous memory bu...
<commit_before>// operations with variables #include <iostream> int main() { // declaring variables int a, b; int result; // process a = 5; b = 2; a = a + 1; result = a - b; // print the result std::cout << result << std::endl; // terminate the program return 0; } <commit_msg>add few more ma...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 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 <chainparams.h> #include <fs.h> #include <logging.h> #inc...
<commit_before>/* * Copyright 2017-present Facebook, Inc. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under...
<commit_before>/* * Copyright 2008-2013 NVIDIA Corporation * * 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 require...
<commit_before>/* * CandidateHeap.cpp * * Created on: Mar 27, 2016 * Author: michel */ #include "CandidateHeap.hpp" CandidateHeap::CandidateHeap(std::string dir, int* activeIJs, int kPrime, TreeBuilderExtMem *tb, long sizeExp) : ArrayHeapExtMem(dir,activeIJs,sizeExp){ initialize( kPrime, tb); } Candidate...
<commit_before>///// #include "Precompiled.h" #include "GetOptInc.h" #include "resource.h" #include <Shellapi.h> #include <Shlobj.h> #include <Shlwapi.h> #include <commctrl.h> #if defined(_WIN32_WINNT_WIN8) && defined(_WIN32_WINNT) && \ _WIN32_WINNT >= _WIN32_WINNT_WIN8 #include <Processthreadsa...
<commit_before>//===--- clang.cpp - C-Language Front-end ---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...