text
stringlengths
54
60.6k
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2001 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. Redistr...
<commit_before>#include "convergence/moments/convergence_checker_l1_norm.hpp" namespace bart::convergence::moments { ConvergenceCheckerL1Norm::ConvergenceCheckerL1Norm(const double max_delta) { max_delta_ = max_delta; } bool ConvergenceCheckerL1Norm::IsConverged(const Vector& current_iteration, const Vector& previ...
<commit_before>/* * Copyright (c) 2012-2015 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ #include "config.h" #include "dynamic_string.h" #include "lua_resource.h" #include "os.h" #include "temp_allocator.h" #include "array.h" #include "compile_o...
<commit_before>/************************************************* * HMAC_RNG Source File * * (C) 2008 Jack Lloyd * *************************************************/ #include <botan/hmac_rng.h> #include <botan/entropy.h> #include <botan/loadstor.h> #include <botan/x...
<commit_before>/**************************************************************************** * * Copyright (c) 2018-2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are me...
<commit_before>/** * @file sparse_coding_impl.hpp * @author Nishant Mehta * * Implementation of Sparse Coding with Dictionary Learning using l1 (LASSO) or * l1+l2 (Elastic Net) regularization. */ #ifndef __MLPACK_METHODS_SPARSE_CODING_SPARSE_CODING_IMPL_HPP #define __MLPACK_METHODS_SPARSE_CODING_SPARSE_CODING_IMP...
<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 QtCompositor** ** ** Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** ** Contact: Nokia Corporation qt-info@nokia.com ** ** You may use this file under the t...
<commit_before>#include <qif> #include "pybind11_aux.h" namespace py = pybind11; using namespace py::literals; using namespace qif; void init_channel_module(py::module); void init_probab_module(py::module); void init_metric_module(py::module); void init_measure_module(py::module); void init_mechanism_module(py::modu...
<commit_before>#pragma once /* ** Copyright (C) 2013 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QITYPE_ANYFUNCTION_HPP_ #define _QITYPE_ANYFUNCTION_HPP_ #include <qitype/api.hpp> #include <boost/function.hpp> #include <vector> namespace qi { class AnyValue; class AutoAnyReference; templat...
<commit_before> #pragma once #include "quantities/si.hpp" namespace principia { namespace quantities { namespace si { template<typename D> std::string Format() { auto const format_unit = [](std::string const& name, int const exponent) -> std::string { switch (exponent) { ca...
<commit_before>// Created by 乔磊 on 2015/8/7. // Copyright (c) 2015年 乔磊. All rights reserved. // #include <NSolver/linearVelocityPotential/linearVelocityPotential.h> namespace velocityPotential { using namespace dealii; template <int dim> void LinearVelocityPotential<dim>::transfer_solution ( const FESyst...
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen * * 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>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, to any person obta...
<commit_before>// // // Copyright 2020 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 "dockerappmanager.h" #include <sstream> /** * @brief This package manager compliments the OSTreePackageManager by also including optional Docker Apps. * * A full description of the Docker App project can be found here: * https://github.com/docker/app/ * * Docker Apps are very analogous ...
<commit_before>/* Copyright 2017 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 (c) Meta Platforms, Inc. and affiliates. * * 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 r...
<commit_before>#include <QtTest/QtTest> #include <QProcess> #include "../cutehmi.dirs.hpp" namespace cutehmi { namespace daemon { class test_cutehmi_daemon: public QObject { Q_OBJECT private slots: void initTestCase(); void helpOption(); void versionOption(); void countDaemonExample(); private: Q...
<commit_before>809e926a-2d15-11e5-af21-0401358ea401<commit_msg>809e926b-2d15-11e5-af21-0401358ea401<commit_after>809e926b-2d15-11e5-af21-0401358ea401<|endoftext|>
<commit_before>7f6cf578-2d15-11e5-af21-0401358ea401<commit_msg>7f6cf579-2d15-11e5-af21-0401358ea401<commit_after>7f6cf579-2d15-11e5-af21-0401358ea401<|endoftext|>
<commit_before>#include "Piezas.h" #include <vector> /** CLASS Piezas * Class for representing a Piezas vertical board, which is roughly based * on the game "Connect Four" where pieces are placed in a column and * fall to the bottom of the column, or on top of other pieces already in * that column. For an il...
<commit_before>#include <set.hpp> #include <kdb> #include <iostream> using namespace std; using namespace kdb; SetCommand::SetCommand() {} int SetCommand::execute(int argc, char**argv) { if (argc != 3 && argc != 4) { cerr << "Please provide a name and a value to set" << endl; cerr << "Usage: set <name> [<val...
<commit_before>#include "log.h" // boost includes are not always warning-clean. Disable warnings that // cause problems before including the headers, then re-enable the warnings. #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wextra" #include <boost/log/support/date_time.hpp> #include <boost/log/express...
<commit_before>/* * Copyright 2014 The Imaging Source Europe 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 * * Unless required b...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2005 by Curtis Krauskopf // Copyright (c) 2005 by Peter Kuemmel // // Code covered by the MIT License // The authors make no representations about the suitability of this software // for ...
<commit_before>/* * Copyright (c) 2007-2008 Digital Bazaar, Inc. All rights reserved. */ #include <iostream> #include <sstream> #include "db/rt/Exception.h" #include "db/test/Test.h" #include "db/test/Tester.h" #include "db/test/TestRunner.h" #include "db/config/ConfigManager.h" #include "db/data/json/JsonWriter.h"...
<commit_before>////////////////////////////////////////////////// // // ChCCollisionSystemBullet.cpp // // ------------------------------------------------ // Copyright:Alessandro Tasora / DeltaKnowledge // www.deltaknowledge.com // ------------------------------------------------ //////////////////////...
<commit_before>#include <archie/utils/fused/find.h> #include <archie/utils/test.h> #include <type_traits> namespace fused = archie::utils::fused; void canUseFusedFind() { unsigned a = 0u; int b = 1; char c = '2'; double d = 3.0; unsigned e = 4u; auto x = fused::find<unsigned&>(a, b, c, d, e); auto y = ...
<commit_before>/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associat...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: LogarithmicRegressionCurveCalculator.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-17 13:26:01 $ * * The Co...
<commit_before>// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "app/l10n_util.h" #include "base/file_path.h" #include "base/gfx/rect.h" #include "chrome/browser/view...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/extensions/extension_t...
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/message_loop.h" #include "base/process.h" #include "base/scoped_ptr.h" #include "chrome/browser/renderer_host/audio_rend...
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" #include "base/command_line.h" #include "base/logging.h" #include "...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/tab_contents/tab_specific_content_settings.h" #include "base/utf_string_conversions.h" #include "chrome/brows...
<commit_before>#pragma once #include "net.hpp" #include "net_raw.hpp" #include "net_raw_utils.hpp" #include "net_gpu_impl.hpp" template <typename activation, typename error> inline void gpu_train_batch(FeedForward_Network<activation, error>& network, arma::Mat<float> inputs, arma::Mat<float> targets, float learni...
<commit_before>#include <cstdint> #include <iostream> #include <memory> #include <algorithm> #include <boost/regex.hpp> #include <osmium/area/assembler.hpp> #include <osmium/area/multipolygon_collector.hpp> #include <osmium/index/map/dummy.hpp> #include <osmium/index/map/sparse_mem_array.hpp> #include <osmium/handle...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>/** * @file IKParameters.cpp * * @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a> * Implement of parameters for IK motion */ #include "IKParameters.h" IKParameters::IKParameters() :ParameterList("IKParameters") { PARAMETER_REGISTER(footOffsetY) = 0; // stand parameter PARAMETE...
<commit_before><commit_msg>Add the initial template of answer to question 5.1<commit_after><|endoftext|>
<commit_before>// // DialogueBoxSystem.cpp // Chilli Source // Created by Ian Copland on 04/03/2014. // // The MIT License (MIT) // // Copyright (c) 2014 Tag Games Limited // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (th...
<commit_before> #include <random> #include "../../str_util.hpp" #include "../../no_rt_util.h" #include "../../tbl.hpp" #include "../LavaFlow.hpp" enum Slots { GAUSS_IDXVERTS_OUT = 0 //GAUSS_PARAMS_IN = 0, //GAUSS_IDXVERTS_OUT = 1 }; namespace RNG { using rng_t = ::std::mt19937; using urng_t = ::std:...
<commit_before>#include "mmd/pmx/mesh.hpp" #include "../stream.hpp" namespace mmd { namespace pmx { Vertex::Vertex() {} void Vertex::load(Fs *fs, Header *header) { Stream *stream = (Stream *)fs; position = stream->readVec3(); normal = stream->readVec3(); ...
<commit_before>/* Copyright (C) 2014 Torbjorn Rognes This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
<commit_before>/* Copyright (C) 2007 <SWGEmu> This File is part of Core3. This program 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 of the License, or (at your option) any later version....
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_path.h" #include "base/file_util.h" #include "base/scoped_temp_dir.h" #include "base/test/thread_test_helper.h" #in...
<commit_before>#include "stdafx.h" #include "inc\CircularTorus.h" namespace Geometry { CircularTorus::CircularTorus() : m_topVis(true) , m_bottomVis(true) { } CircularTorus::~CircularTorus() { } void CircularTorus::subDraw() { osg::ref_ptr<osg::Vec3Array> vertexArr = new osg::Vec3Array; osg::ref_ptr<osg::Vec3...
<commit_before>#include "network.h" #include <QDebug> Network::Network(QObject *parent) :QObject(parent) { my_socket = new QUdpSocket(this); my_socket->bind(QHostAddress::LocalHost, 1337); connect(my_socket, SIGNAL(readyRead()), this, SLOT(processPendingDatagram())); } void Network::sendData(Q...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: itkImageToImageTranslationMeanSquaresRegistrationTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2000 National Lib...
<commit_before>#include "./JPetSinogram.h" #include <boost/numeric/ublas/matrix.hpp> #include <vector> #include <utility> #include <cmath> using namespace boost::numeric::ublas; JPetSinogram::JPetSinogram() { } JPetSinogram::~JPetSinogram() { } /*! \brief Function returning vector of vectors with value of sinogram(1...
<commit_before>/* * Copyright (c) 2003-2009, John Wiegley. 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,...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if SK_SUPPORT_GPU #include "gm.h" #include "SkCanvas.h" #include "SkColorShader.h" #include "SkPaint.h" #include "SkSurface.h" namespace skiagm { /* * This...
<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>/* * Session management. * * author: Max Kellermann <mk@cm4all.com> */ #include "session.hxx" #include "cookie_jar.hxx" #include "shm/dpool.hxx" #include "shm/dbuffer.hxx" #include "expiry.h" #include "crash.hxx" #include "expiry.h" #include <daemon/log.h> #include <assert.h> #include <stdlib.h> #...
<commit_before>#include <faunus/species.h> #include <faunus/inputfile.h> #include <faunus/textio.h> #include <faunus/physconst.h> #include <faunus/json.h> #include <stdlib.h> namespace Faunus { AtomData::AtomData() { activity=0; charge=0; dp=0; dprot=0; eps=0; hydrophobic=0; mean=0; ...
<commit_before>#include "openmc/summary.h" #include <fmt/core.h> #include "openmc/capi.h" #include "openmc/cell.h" #include "openmc/file_utils.h" #include "openmc/hdf5_interface.h" #include "openmc/lattice.h" #include "openmc/material.h" #include "openmc/mgxs_interface.h" #include "openmc/nuclide.h" #include "openmc/...
<commit_before>#include "systems.h" #include "compiler.h" #include "mswin.h" #include "resources.h" #include "vector.h" #include "make_system.h" #include "cramer.h" #include "graphics.h" #include "memory.h" #include <cstdint> struct triangle_t { float xyz [3] [4]; // Co-ordinates for a single triangle XYZ of the Moe...
<commit_before>#include "Navigation.h" #include <iostream> #include <assert.h> using namespace std; void testInputNodes(const char* file); void testReconstructPath(const char* file); void testFindPath(const char* file); void testTravelFromSourceToSink(const char* file); int main(int argc, char const *argv[]) { if(a...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: RootSolver.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by t...
<commit_before>#include "trainer.hpp" //trainer class void Trainer::SetLife(float life) //setlife function { //write process memory with the new value int stat = WriteProcessMemory(Trainer::memory.hProc, (LPVOID)Trainer::TRAINER_LIFE, &life, (DWORD)sizeof(life), NULL); if (stat > 0){ //if it success it says this ...
<commit_before>#include "../googletest/include/gtest/gtest.h" #include "../include/easylogging++.h" #include "../include/llg.hpp" #include "../include/integrators.hpp" #include "../include/io.hpp" #include "../include/simulation.hpp" INITIALIZE_EASYLOGGINGPP TEST(llg, drift) { double deriv[3]; const double st...
<commit_before>// Copyright 2022 Michael Fisher <mfisher@lvtk.org> // SPDX-License-Identifier: ISC #include <algorithm> #include "lvtk/ui/input.hpp" #include "lvtk/ui/main.hpp" #include "lvtk/ui/view.hpp" #include "lvtk/ui/widget.hpp" #define PUGL_DISABLE_DEPRECATED #include <pugl/pugl.h> // flip these for verbose ...
<commit_before>#include "../mtl.hpp" #include "../src/debug.hpp" #include <iostream> using A = std::tuple<int, int>; using B = std::tuple<long, char>; // Has type // ================================================================================ static_assert(mtl::has_type<char, B>::value, ""); static_assert(mtl::ha...
<commit_before>#include <cstdio> #include <cstdlib> #include <iostream> #define MAXSTRLEN 255 // 用户可在255以内定义最大串长 typedef unsigned char SString[MAXSTRLEN+1]; // 0号单元存放串的长度 void get_next(SString T,int next[]){ int i=1,j; next[1]=0; j=0; while(i<T[0]){ if(j == 0 || T[i]==T[j]){ ++i; ++j...
<commit_before>#pragma once #include "util.hh" #include "queue.hh" #include <avr/interrupt.h> #include <util/delay.h> #include <util/twi.h> // See http://www.chrisherring.net/all/tutorial-interrupt-driven-twi-interface-for-avr-part1/ /* enum TWIMode { TWIMaster, TWISlave }; */ class I2C { public: enum Transf...
<commit_before>/* * Copyright 2014–2015 The SmartSqlite contributors (see NOTICE.txt) * * 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-...
<commit_before>// Copyright (c) 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 <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name //...
<commit_before>#include <BinaryTree.hpp> #include <catch.hpp> SCENARIO ("init", "[init]") { BinaryTree<int> obj; REQUIRE(obj.root_() == nullptr); } SCENARIO("insert", "[insert]") { BinaryTree<int> obj; obj.insert_node(3); REQUIRE(obj.find_node(3, obj.root_())->data == 3); } SCENARIO("find_node", "[find_nod...
<commit_before>#include <binary_search_tree.hpp> #include <catch.hpp> SCENARIO("default constructor") { BinarySearchTree<int> bst; REQUIRE(bst.root() == nullptr); REQUIRE(bst.count() == 0); } SCENARIO("insertElement") { BinarySearchTree<int> bst; bst.insert(7); REQUIRE(bst.findElement() == 7); REQUIRE(bst.cou...
<commit_before>#include <matrix.hpp> #include <catch.hpp> SCENARIO("matrix init without parametrs", "[init wp]") { Matrix matrix; REQUIRE(matrix.rows() == 4); REQUIRE(matrix.columns() == 4); for (int i=0;i<matrix.rows(); i++) { for (int j = 0; j<matrix.columns();j++) { REQUIRE(matrix.Element(i,j) == 0); }...
<commit_before>#define CATCH_CONFIG_RUNNER #include <catch.hpp> #include "sphere.cpp" #include "box.hpp" #include <glm/vec3.hpp> TEST_CASE("get volume of sphere", "[volume]") { Sphere sphere; REQUIRE(sphere.volume() == Approx(4.1888)); } TEST_CASE("get area of sphere", "[area]") { Sphere sphere; REQUIRE(sphere.a...
<commit_before>#include <gtest\gtest.h> #include <BufferedReader.h> TEST(BufferedReader, OpenClose) { BufferedReader reader(1024); EXPECT_FALSE(reader.Close()); EXPECT_FALSE(reader.Open(nullptr)); EXPECT_FALSE(reader.Open(L"C:/temp/cwd/zbot")); EXPECT_TRUE(reader.Open(L"file")); EXPECT_TRUE(reader.Close()); EX...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>/* code_completion_service.cpp */ #include "code_completion_service.h" #include "io/resource_loader.h" #include "globals.h" #ifdef GDSCRIPT_ENABLED #include "modules/gdscript/gd_script.h" #endif static bool _is_symbol(CharType c) { return c!='_' && ((c>='!' && c<='/') || (c>=':' && c<='@') || (c>='[...
<commit_before>// you can use includes, for example: #include <algorithm> // you can write to stdout for debugging purposes, e.g. // cout << "this is a debug message" << endl; int findMin(vector<int> &P) { int minP(P[0]); for(unsigned int i=0; i<P.size(); ++i) { if( P[i]<minP ) minP = P[i]...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2015. All rights reserved */ #ifndef _Stroika_Foundation_Streams_OutputStream_inl_ #define _Stroika_Foundation_Streams_OutputStream_inl_ 1 /* ******************************************************************************** ***************************...
<commit_before>#include <tiramisu/tiramisu.h> #include <string.h> #include "baryon_wrapper.h" using namespace tiramisu; /* Implementation log: - Sum: 7h 35mn. */ /* * The goal is to generate code that implements the reference. * baryon_ref.cpp */ void generate_function(std::string name) { tiramisu::ini...
<commit_before>#include "catch.hpp" #include <type_traits> #include <compile_time.hpp> #include <string> namespace myspace { REGISTER_TYPE_BEGIN() REGISTER_TYPE(int) REGISTER_TYPE(float) REGISTER_TYPE(double) REGISTER_TYPE_END() } TEST_CASE("", "") { } <commit_msg>Add unit tests for the case of registering no types...
<commit_before>#include "SDLApplication.h" #ifdef HX_MACOS #include <CoreFoundation/CoreFoundation.h> #endif namespace lime { AutoGCRoot* Application::callback = 0; double Application::GetTicks () { return SDL_GetTicks (); } SDLApplication::SDLApplication () { SDL_Init (SDL_INIT_VIDEO | ...
<commit_before>#include <ros/ros.h> //#include <gazebo_msgs/ApplyJointEffort.h> #include <urdf/model.h> #include <urdf_interface/joint.h> #include <cstdlib> #include <sys/time.h> #include <time.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/Twist.h> #include <atlas_gazebo_msgs/RobotState.h> #include <lcm/lc...
<commit_before>#include "../TestCase.hpp" #include <ctime> WRD_TEST_START(MemRobustTest) class A : public Object { public: virtual const Class& getClass() const { static TClass<A> in; return in; } int age; }; class B : public A { public: virtual const Class& getClass() const { static TClass<B> i...
<commit_before>// Copyright 2019 The TCMalloc 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<commit_before>// Copyright 2019 The TCMalloc 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: propertyanimationnode.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2006-12-13 15:34:26 $ * * The Contents of this f...
<commit_before>// Copyright (c) 2019 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 <iostream> #include <memory> #include <string> #include <utility> #include "net/third_party/quiche/src/quic/core/quic_types.h...
<commit_before>#define _IRR_STATIC_LIB_ #include <irrlicht.h> #include <iostream> #include <cstdio> #include "../source/Irrlicht/COpenGLExtensionHandler.h" using namespace irr; using namespace core; /** We do cool stuff here, like make an event receiver to process input **/ class MyEventReceiver : publ...
<commit_before>// Copyright (c) 2019 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 <iostream> #include <memory> #include <string> #include <utility> #include "net/third_party/quiche/src/quic/core/quic_types.h...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include <algorithm> #include "Node.h" #include "Engine.h" #include "SceneManager.h" #include "Layer.h" #include "Animator.h" #include "Camera.h" #include "Utils.h" #include "MathUtils.h" #include "Drawable.h" namespace ou...
<commit_before>/* * Copyright (c) 2012, 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 source code must retain the above copyright * ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_pgpe...
<commit_before>#include "analogjoystick.hpp" void setupJoystick() { pinMode(joystickXADC, INPUT); pinMode(joystickXADC, INPUT); pinMode(joystickEnable, INPUT); digitalWrite(joystickEnable, HIGH); } /* void disableJoystick() { digitalWrite(joystickEnable, LOW); } */ void getJoystickReading(int* X, int* Y) { *X = ...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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>AliAnalysisTaskJetHBOM *AddTaskJetHBOM(char* bRec = "AOD",char* bGen = "",UInt_t filterMask = 272, UInt_t iPhysicsSelectionFlag = AliVEvent::kAny,Char_t *jf = "KT", Float_t radius = 0.4,Int_t kWriteAOD = kFALSE,char* deltaFile = "",Float_t ptTrackCut = 0.15, Float_t etaTrackWindow = 0.9,Float_t vertexWin...
<commit_before>/** * @file PathPlanner.cpp * * @author <a href="mailto:akcayyig@hu-berlin.de">Yigit Can Akcay</a> * Implementation of class PathPlanner */ #include "PathPlanner.h" PathPlanner::PathPlanner() : step_buffer({}), foot_to_use(Foot::RIGHT), last_stepRequestID(getMotionStatus().stepControl.stepRequestI...