text
stringlengths
54
60.6k
<commit_before>#include "TRCFileAdapter.h" #include <fstream> #include <iomanip> namespace OpenSim { const std::string TRCFileAdapter::_markers{"markers"}; const std::string TRCFileAdapter::_delimiterWrite{"\t"}; // Get rid of the extra \r if parsing a file with CRLF line endings. const std::string TRCFileAdapter::_d...
<commit_before>/* Copyright (c) 2009-2014, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #pragma once #ifndef ELEM_LU_PANEL_HPP #...
<commit_before>// Copyright (C) 2010-2013 Joshua Boyce. // See the file COPYING for copying permission. #pragma once #include <array> #include <cstddef> #include <iosfwd> #include <memory> #include <ostream> #include <vector> #include <utility> #include <windows.h> #include <winnt.h> #include <hades...
<commit_before>/** \file integral.hh **/ #ifndef DUNE_DETAILED_DISCRETIZATIONS_DISCRETEFUNCTIONAL_LOCAL_CODIM1_INTEGRAL_HH #define DUNE_DETAILED_DISCRETIZATIONS_DISCRETEFUNCTIONAL_LOCAL_CODIM1_INTEGRAL_HH // dune-common #include <dune/common/dynmatrix.hh> //// dune-fem //#include <dune/fem/quadrature/cachingqu...
<commit_before>/* A simple server in the internet domain using TCP The port number is passed as an argument */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <iostream> #include <string> #include <cstring>...
<commit_before>#include "Engine.h" #include "Game.h" #include "ObjectDummy.h" #include "BodyRigid.h" #include "BodyDummy.h" #include "Physics.h" #include "ShapeCapsule.h" #include "ActorBase.h" #include "Visualizer.h" #include "sys/SysControl.h" #ifdef MEMORY_INFO #define new new(__FILE__, __LINE__) #endif // MEMORY...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: // #include <BALL/VIEW/WIDGETS/helpViewer.h> #include <BALL/VIEW/KERNEL/message.h> #include <BALL/VIEW/KERNEL/mainControl.h> #include <BALL/SYSTEM/path.h> #include <BALL/FORMAT/lineBasedFile.h> #include <QtGui/QMenu> #include <QtGui/QMouse...
<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) 2007-2009 SlimDX Group * * 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, ...
<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><commit_msg>Fix CI bug<commit_after><|endoftext|>
<commit_before><commit_msg>Add const modifiers.<commit_after><|endoftext|>
<commit_before>#ifndef HEAPS_H #define HEAPS_H #include"objects.hpp" #include<cstring> #include<utility> #include<boost/shared_ptr.hpp> class Generic; class SharedVar; /*----------------------------------------------------------------------------- Semispaces --------------------------------------------------------...
<commit_before>#ifndef TYPES_H #define TYPES_H /* Defines a set of types for use on the hl-side. */ #include<cstring> #include"objects.hpp" #include"generics.hpp" #include"heaps.hpp" #include"executors.hpp" /*----------------------------------------------------------------------------- Specialized broken heart tags -...
<commit_before> #include <sys/stat.h> #include <iostream> #include <string> using namespace std; #include "include/config.h" #include "mds/MDCluster.h" #include "mds/MDS.h" #include "osd/OSD.h" #include "client/Client.h" #include "client/fuse.h" #include "common/Timer.h" #include "msg/FakeMessenger.h" #define ...
<commit_before>/* cryptographyguiclient.cpp Copyright (c) 2004 by Olivier Goffart <ogoffart@kde.org> Copyright (c) 2007 by Charles Connell <charles@connells.org> Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org> **************************************...
<commit_before>#include "formdeviserclass.h" #include "ui_formdeviserclass.h" #include <QFileDialog> #include <QTableWidgetItem> #include <QSortFilterProxyModel> #include <model/deviserclass.h> #include <model/deviserpackage.h> #include <model/deviserattribute.h> #include <model/deviserlistofattribute.h> #include <mo...
<commit_before>// Copyright (c) 2013 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 "ui/gl/vsync_provider.h" #include "base/logging.h" #include "base/time.h" namespace { // These constants define a reasonabl...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file und...
<commit_before> #include "gps.hpp" #include "nmea.hpp" #include "backtrace.hpp" #include <iostream> gps::gps() : running(false), gps_port(io_service), queue_len(50) { } gps::~gps() { stop(); } void gps::start() { running = true; iothread = boost::thread(boost::bind(&gps::gps_comm, this)); } void gps::stop() { ...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>#include "pch.h" #include "Servo.h" namespace servo { void on_load_started() { sServo->Delegate().OnLoadStarted(); } void on_load_ended() { sServo->Delegate().OnLoadEnded(); } void on_history_changed(bool back, bool forward) { sServo->Delegate().OnHistoryChanged(back, forward); } void on_shutdown_com...
<commit_before>#include <ncurses.h> #include <stdlib.h> #include <time.h> #include "lightsout.hpp" #include "print.hpp" namespace roadagain { board::board(int width, int height) : width(width), height(height) { // init seed of rand() by current time srand(time(NULL)); lights = new bool*[height + 2](); ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: test.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 14:31:47 $ * * The Contents of this file are made ava...
<commit_before><commit_msg>ARMY - ARMY STRENGTH.cpp<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: charhiddenitem.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: kz $ $Date: 2007-05-10 14:49:26 $ * * The Contents of this file are...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: charhiddenitem.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2006-06-19 16:10:04 $ * * The Contents of this file are...
<commit_before>//===-- sanitizer_win.cc --------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* This file is part of the KDE project Copyright (C) 2004 David Faure <faure@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 version 2 as published by the Free Software Foundation. This library is...
<commit_before>/* This file is part of the KDE project Copyright (C) 2004 David Faure <faure@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 version 2 as published by the Free Software Foundation. This library is...
<commit_before>/** * * 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 the Apache License, Version 2.0 * (the "...
<commit_before>/* ** network_client.hpp ** Login : <ctaf42@donnetout> ** Started on Thu Feb 2 11:59:48 2012 Cedric GESTES ** $Id$ ** ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2012 Cedric GESTES ** This program is free software; you can redistribute it and/or modify ** it un...
<commit_before>#ifndef HMLIB_MATH_ROOT_INC #define HMLIB_MATH_ROOT_INC 100 # #include<utility> #include<iterator> #include<boost/math/tools/roots.hpp> namespace hmLib { namespace math { template<typename T> struct toms748_root_stepper { using value_type = T; private: value_type step; value_type error; ...
<commit_before>#include <mbed.h> DigitalOut OE(P0_13, 1); BusOut SEL(P0_7, P0_6); /* InterruptIn SW1(P0_3); InterruptIn SW2(P0_2); InterruptIn SW3(P0_11); InterruptIn SW4(P0_10); */ InterruptIn SW1(P0_8); InterruptIn SW2(P0_1); InterruptIn SW3(P0_9); InterruptIn SW4(P0_10); BusOut LSEL(P0_3, P0_2); // Setup the Seria...
<commit_before>#include "md_parser.hpp" #include "text_line_element.hpp" #include "text_paragraph.hpp" #include "title1_paragraph.hpp" #include "title2_paragraph.hpp" #include "ulist1_paragraph.hpp" using namespace std; namespace { bool string_has_only(const std::string & s, const char & c) { return (s.find_first_...
<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 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope...
<commit_before>#ifndef _MATH_ANGLE_HPP #define _MATH_ANGLE_HPP #include <cmath> #include <iosfwd> #include <type_traits> namespace math { template <typename _T> struct radian_traits { static_assert(::std::is_floating_point<_T>::value, "radian_traits<_T> requires floating point type."); static constexpr _T p...
<commit_before>// Copyright (C) 2010 and 2011 Marcin Arkadiusz Skrobiranda. // 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. Redistributions of source code must retain the above copyri...
<commit_before>// Time: O(|V| + |E||) // Space: O(|E|) // Topological sort. class Solution { public: vector<int> findOrder(int numCourses, vector<pair<int, int>>& prerequisites) { vector<int> res; // Store courses with in-degree zero. queue<int> zeroInDegree; // in-degree,...
<commit_before>namespace mant { template <typename ParameterType> class PropertyAnalysis { public: explicit PropertyAnalysis() noexcept; void analyse( const std::shared_ptr<OptimisationProblem<ParameterType>> optimisationProblem) noexcept; void setDistanceFunction( std::s...
<commit_before>/// @file /// @brief time_point to iso8601 string converter #pragma once #include "default_clock.hxx" #ifdef _WIN32 #include "time_zone_difference.hxx" #endif #include <chrono> #include <string> #include <sstream> #include <iomanip> #include <cmath> #include <iostream> namespace usagi { namespace ch...
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Module: FGAccelerometer.cpp Author: Jon Berndt Date started: 9 July 2005 ------------- Copyright (C) 2005 ------------- This program is free software; you can redistribute it and/or modify it under the t...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 PX4 Development Team. All rights reserved. * Author: Mohammed Kabir <mhkabir98@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
<commit_before>#include "stdsneezy.h" #include "obj_tool.h" #include "obj_plant.h" void TBeing::doPlant(string arg) { TThing *t; TTool *seeds; int found=0; if ((t = searchLinkedListVis(this, arg.c_str(), getStuff(), NULL))){ if((seeds=dynamic_cast<TTool *>(t))){ if(seeds->getToolType() == TOOL_SEE...
<commit_before>#include <fstream> #include <iostream> #include <set> #include <sstream> #include <clang/AST/ASTConsumer.h> #include <clang/AST/ASTContext.h> #include <clang/AST/RecursiveASTVisitor.h> #include <clang/Rewrite/Core/Rewriter.h> #include <clang/Tooling/CommonOptionsParser.h> #include <clang/Tooling/Tooling...
<commit_before>/* * mem_cache.cpp * * Created: 3/6/2013 * Author: Collin Kidder */ #ifdef __arm__ // Arduino Due specific implementation #include "mem_cache.h" extern volatile uint8_t AgingTimer; //this function flushes the first dirty page it finds. It should try to wait until enough time as elapsed since //...
<commit_before>#include <leddevice/LedDeviceWrapper.h> #include <leddevice/LedDevice.h> #include <leddevice/LedDeviceFactory.h> // following file is auto generated by cmake! it contains all available leddevice headers #include "LedDevice_headers.h" // util #include <hyperion/Hyperion.h> #include <utils/JsonUtils.h> ...
<commit_before>/* * Adding an application specific engine * (C) 2004,2008 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/stream_cipher.h> #include <botan/engine.h> using namespace Botan; class XOR_Cipher : public StreamCipher { public: void clear() throw() { mask.clear...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkLBFGSBOptimizerTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See I...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/************************************************************************* * * $RCSfile: imapdlg.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: cl $ $Date: 2002-07-11 10:56:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fmtftntx.hxx,v $ * * $Revision: 1.10 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:50:36 $ * * The Contents of this file are made...
<commit_before>// // Created by Axel Naumann on 09/12/15. // //#include "cling/Interpreter/Jupyter/Kernel.h" #include "cling/Interpreter/Interpreter.h" #include "cling/Interpreter/Value.h" #include "llvm/Support/raw_ostream.h" #include <map> #include <string> #include <cstring> // FIXME: should be moved into a Jup...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner // Copyright (C) 2010-2013 The...
<commit_before>#include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "circles.h" #include "debug.h" #include "const.h" #include "camera.h" #include "calibrate.h" using namespace cv; namespace cal{ void wait_for_key(); vector<Point> find_smallest_square(const vector<vector<Point> >& ...
<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) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>// Umar Arshad // Copyright 2014 #include <fstream> #include <sstream> #include <iostream> #include <string> #include <vector> #include <map> #include <memory> using namespace std; typedef map<string, string> opt_t; void print_usage() { cout << R"delimiter(BIN2CPP Converts files from a binary fil...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>#include "AbstractCameraQueue.hpp" #include <ros/console.h> void AbstractCameraQueue::enqueue(std::vector<CameraData> data) { for (std::vector<CameraData>::iterator it = data.begin(); it != data.end(); it++) { enqueue(*it); } } void AbstractCameraQueue::enqueue(CameraData data) { enqueueInternal(...
<commit_before>#include "Utils/Testing.hpp" #include "Messaging/MessageQueue.hpp" using namespace Core; using namespace Messaging; using namespace fakeit; using namespace std::placeholders; namespace { class Content : public Core::IEntity { TYPE_INFO(Content, Core::IEntity, "content") }; struct EventSin...
<commit_before>// RUN: clang-cc -fsyntax-only -verify %s struct add_pointer { template<typename T> struct apply { typedef T* type; }; }; struct add_reference { template<typename T> struct apply { typedef T& type; // expected-error{{cannot form a reference to 'void'}} }; }; template<typename MetaF...
<commit_before>#include <gtest/gtest.h> #include <arrayfire.h> #include <af/dim4.hpp> #include <af/traits.hpp> #include <string> #include <vector> #include <testHelpers.hpp> #include <cmath> using std::string; using std::vector; using af::dim4; template<typename T> class Bilateral : public ::testing::Test { publi...
<commit_before>// Copyright 2014 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" #include "test/cctest/cctest.h" #include "src/api.h" #include "src/debug.h" #include "src/execution.h" #include "src...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkChart.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This s...
<commit_before>#include "Player.h" #include <SFML\Graphics\CircleShape.hpp> #include <SFML\Graphics\RenderTarget.hpp> #include "..\..\Common\GeneralMath.h" #include <iostream> Player::Player(std::string p_name, sf::Font& p_font, bool p_remote) : m_remote(p_remote), nameText(p_name, p_font, 14), m_radius(20), ...
<commit_before>// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list...
<commit_before>/* * Copyright (C) 2017 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 <math.h> #include <stdio.h> #include "HalideRuntime.h" #include <assert.h> #if defined(TEST_OPENCL) #include "HalideRuntimeOpenCL.h" #elif defined(TEST_CUDA) #include "HalideRuntimeCuda.h" #endif #include "gpu_only.h" #include "halide_image.h" int main(int argc, char **argv) { #if defined(TEST...
<commit_before><commit_msg>Fix painting issue in Reader 9.2.<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2015 ARM. All rights reserved. */ #include "mbed-net-sockets/UDPSocket.h" #include "EthernetInterface.h" #include "test_env.h" #include "lwm2m-client/m2minterfacefactory.h" #include "lwm2m-client/m2minterfaceobserver.h" #include "lwm2m-client/m2mdevice.h" #include "lwm2m-client/m2mob...
<commit_before>// RUN: %srcroot/test/runtime/run-scheduler-test.py %s -gxx "%gxx" -llvmgcc "%llvmgcc" -projbindir "%projbindir" -ternruntime "%ternruntime" -ternbcruntime "%ternbcruntime" #include <sys/time.h> #include <time.h> #include <errno.h> #include <assert.h> #include <pthread.h> #include <semaphore.h> #inclu...
<commit_before>/* * Copyright (c) 2011-2014, Intel Corporation * 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. Redistributions of source code must retain the above copyright notice, ...
<commit_before>#include <iostream> #include "../src/exception.h" #include "../src/index.h" void misc_test() { { // empty node checksum const std::string fname = "/tmp/misc_bdt"; if (LeviDB::IOEnv::fileExists(fname)) { LeviDB::IOEnv::deleteFile(fname); } { Le...
<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) 2007 Butterfat, LLC (http://butterfat.net) 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...
<commit_before>#ifndef PYTHONIC_UTILS_NESTED_CONTAINER_HPP #define PYTHONIC_UTILS_NESTED_CONTAINER_HPP #include <limits> #include "pythonic/types/traits.hpp" namespace pythonic { namespace types { class str; } namespace utils { /* compute nested container depth and memory size*/ template<cl...
<commit_before>/* * Author(s): * - Chris Kilner <ckilner@aldebaran-robotics.com> * - Cedric Gestes <gestes@aldebaran-robotics.com> * * Copyright (C) 2010 Aldebaran Robotics */ #include <qi/transport/src/zmq/zmq_poll_client.hpp> #include <qi/transport/src/zmq/zmq_client_backend.hpp> #include <qi/exceptions/excepti...
<commit_before>#include <test/unit/math/test_ad.hpp> #include <cmath> #include <complex> #include <vector> #include <type_traits> TEST(mixFun, absBasics) { using stan::math::abs; int a = abs(1); double b = abs(-2.3); Eigen::Matrix<double, -1, -1> x(2, 3); x << 1, 2, 3, 4, 5, 6; Eigen::Matrix<double, -1, ...
<commit_before>/*************************************************************************** * Copyright (C) 2008 by Daniel Schwen * * daniel@schwen.de * * * * This program is free software; you can redistribute it and/or modify * * ...
<commit_before>/*============================================================================= Library: CppMicroServices Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex...
<commit_before>// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>/****************************************************************************** The MIT License(MIT) Embedded Template Library. https://github.com/ETLCPP/etl http://www.etlcpp.com Copyright(c) 2014 jwellbelove Permission is hereby granted, free of charge, to any person obtaining a copy of this softwar...
<commit_before>/* * * Author: Jeffrey Leung * Last edited: 2015-09-19 * * This C++ file tests the functionality of room.cpp. * */ #include <iostream> #include "../include/room_properties.hpp" #include "../include/room.hpp" // This function returns the given type of room border as a string. std::string RoomBor...
<commit_before>/* Copyright (c) 2013, 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 <assert.h> #include <sys/socket.h> #include "utils.h" #include "client_base.h" const int WRITE_QUEUE_SIZE = -1; int BaseClient::total_clients = 0; BaseClient::BaseClient(ev::loop_ref &loop, int sock_, DatabasePool *database_pool_, double active_timeout_, double idle_timeout_) : io(loop),...
<commit_before>/****************************************************************************** * Copyright (C) 2015 Felix Rohrbach <kde@fxrh.de> * * 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...
<commit_before><commit_msg>planning: load the model file only when it exists.<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <string> #include <ctype.h> #include <cstdlib> #include <stdexcept> class Calculator { private: std::string source; int pos; public: Calculator(std::string s) { source = s; pos = 0; }; // Utilities char peek() { return source[pos]; }; bool isNumber (char ch) ...
<commit_before>//===- DataStructureAA.cpp - Data Structure Based Alias Analysis ----------===// // // 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>/* * Copyright © 2010 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, mod...
<commit_before>// @(#)root/net:$Id$ // Author: Fons Rademakers 18/12/96 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>//***************************************************************************** // Copyright 2017-2019 Intel 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 // ...
<commit_before>//===- SpeculativeExecution.cpp ---------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkBitmap.h" #include "include/core/SkCanvas.h" #include "include/core/SkData.h" #include "include/core/SkFont.h" #inclu...
<commit_before>/// Test the action helpers that fill roofit datasets from RDataFrame. /// /// \date Mar 2021 /// \author Stephan Hageboeck (CERN) #include <RooAbsDataHelper.h> #include <TROOT.h> #include <TRandom3.h> #include "gtest/gtest.h" #include <vector> TEST(RooAbsDataHelper, MTConstruction) { #ifdef R__USE_...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * Flacon - audio File Encoder * https://github.com/flacon/flacon * * Copyright: 2021 * Alexander Sokoloff <sokoloff.a@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
<commit_before> // -*- mode: c++; c-basic-offset:4 -*- // This file is part of libdap, A C++ implementation of the OPeNDAP Data // Access Protocol. // Copyright (c) 2002,2003 OPeNDAP, Inc. // Author: James Gallagher <jgallagher@opendap.org> // // This library is free software; you can redistribute it and/or // modify...
<commit_before>#include "parser/lexer.h" #include "parser/token.h" #include <stdio.h> #include <stdlib.h> namespace ceos { class LexerTest { public: static void testRewind() { Lexer l("1 (", 4); l.token(Token::Type::NUMBER); l.ensure(Token::Type::L_PAREN); l.rewind(); l.token(Token::Type::L_...
<commit_before>#include <array> #include <vorbis/vorbisfile.h> #include "framework/data.h" #include "framework/logger.h" #include "framework/musicloader_interface.h" #include "framework/sound.h" namespace OpenApoc { namespace detail { static MusicTrack::MusicCallbackReturn fillMusicData(sp<MusicTrack> thisTrack, ...