text
stringlengths
54
60.6k
<commit_before>/** * @file classifier_test.cpp * @author Sean Massung */ #include <random> #include "test/classifier_test.h" #include "classify/loss/all.h" namespace meta { namespace testing { template <class Index, class Classifier> void check_cv(Index& idx, Classifier& c, double min_accuracy) { std::vector...
<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 "remoting/jingle_glue/xmpp_signal_strategy.h" #include "base/logging.h" #include "jingle/notifier/base/gaia_token_pre_xmpp_au...
<commit_before>/* * xmpp_features.cpp - XMPP entity features * Copyright (C) 2003 Justin Karneges * * 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 Lic...
<commit_before>// This file is part of the "x0" project, http://xzero.io/ // (c) 2009-2014 Christian Parpart <trapni@gmail.com> // // Licensed under the MIT License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of // the License at: http://opensource.org/li...
<commit_before>// Copyright (c) 2006-2008 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/singleton.h" #include "net/base/ev_root_ca_metadata.h" namespace net { // Raw metadata. struct EVMetadata { // ...
<commit_before><commit_msg>Remove a redefined variable.<commit_after><|endoftext|>
<commit_before>/* * NetworkPlan.hpp * * Created on: 06.06.2016 * Author: hartung */ #ifndef NETWORK_INCLUDE_NETWORKPLAN_HPP_ #define NETWORK_INCLUDE_NETWORKPLAN_HPP_ #include <memory> #include <VariableList.hpp> #include <SimulationServer.hpp> #include "Stdafx.hpp" #include "fmi/InputMapping.hpp" namesp...
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. 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 // // ...
<commit_before>#include <map> #include <iostream> #include <sstream> #include <fstream> #include <readline/readline.h> #include <readline/history.h> #include "sexpr.hpp" #include "ast.hpp" #include "eval.hpp" #include "parse.hpp" #include "type.hpp" #include "package.hpp" const bool debug = false; struct history...
<commit_before>#ifndef VIGRA_RF_RANDOM_FOREST_HXX #define VIGRA_RF_RANDOM_FOREST_HXX #include <type_traits> #include <thread> #include "../multi_shape.hxx" #include "../binary_forest.hxx" #include "../threadpool.hxx" namespace vigra { template <typename FEATURES, typename LABELS, typename SPLITTESTS, typename ...
<commit_before>/** * @author Laurent El Shafey <Laurent.El-Shafey@idiap.ch> * @date Mon Apr 14 20:43:48 CEST 2014 * * @brief Binds configuration information available from bob */ #ifdef NO_IMPORT_ARRAY #undef NO_IMPORT_ARRAY #endif #include <bob.blitz/capi.h> #include <bob.blitz/cleanup.h> #include <string> #inc...
<commit_before>#include <iostream> #include <ncurses.h> #include "maze.h" using namespace std; int main() { const int MAX_SIZE = 71; bool maze[MAX_SIZE * MAX_SIZE]; int nrows = 19; int ncols = 31; int start[2] = {1, 1}; int finish[2] = {1, 1}; char c; initscr(); while (true) { ...
<commit_before>// The MIT License (MIT) // Copyright (c) 2013 Danny Y., Rapptz // 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><commit_msg>Added MPI rank<commit_after><|endoftext|>
<commit_before>#ifndef ITER_CHAIN_HPP_ #define ITER_CHAIN_HPP_ #include "iterbase.hpp" #include <utility> #include <iterator> #include <memory> #include <initializer_list> #include <type_traits> namespace iter { // rather than a chain function, use a callable object to support // from_iterable class Chai...
<commit_before>#include <gtest/gtest.h> #include <fxdiv.h> TEST(uint32_t, cases) { EXPECT_EQ(UINT32_C(42) / UINT32_C(7), fxdiv_quotient_uint32_t(UINT32_C(42), fxdiv_init_uint32_t(UINT32_C(7)))); EXPECT_EQ(UINT32_C(42) / UINT32_C(6), fxdiv_quotient_uint32_t(UINT32_C(42), fxdiv_init_uint32_t(UINT32_C(6))));...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: htmlnum.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-08-14 17:05:11 $ * * The Contents of this file are made a...
<commit_before>#include <valhalla/baldr/signinfo.h> #include "test.h" #include "mjolnir/graphbuilder.h" using namespace std; using namespace valhalla::mjolnir; using valhalla::mjolnir::GraphBuilder; namespace { class test_graph_builder : public GraphBuilder { public: using GraphBuilder::CreateExitSignInfoList; ...
<commit_before>#include "common.th" #define nop a <- a; #define SPI_BASE 0x200 b <- 0 b -> [(SPI_BASE + 0x14)] // set divider // data b <- [reloff(IDLE_COMMAND, 1)] b -> [(SPI_BASE + 0x0)] // bits 0 - 31 b <- [reloff(IDLE_COMMAND, 0)] b -> [(SPI_BASE + 0x4)] // bits 32 - 47 b <- (48 + 8) // message length + response...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmliteme.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: rt $ $Date: 2005-09-09 06:23:39 $ * * The Contents of this file are made...
<commit_before>#include "Actor.hpp" #define LOG_GL #include "glerr.hpp" Actor::Actor(std::shared_ptr<RenderModel> model) : m_orientation(glm::quat(1.0f, 0.0f, 0.0f, 0.0f)) , m_position(glm::vec4(0.0f, 0.0f, 0.0f, 0.0f)) , m_forward(glm::vec4(0.0f, 0.0f, -1.0f, 0.0f)) , m_up(glm::vec4(0.0f, 1.0f, 0.0f, 0.0f)) ...
<commit_before>#include "Audio.h" std::recursive_mutex Audio :: m_Mutex; float Audio :: s_Rolloff = 1.0f; float Audio :: s_MaxDist = 2048.0f; float Audio :: s_ReferenceDist = 256.0f; Audio::Buffer :: Buffer(){ auto l = Audio::lock(); alGenBuffers(1, &id); } Audio::Buffer :: Buffer(const std::string& fn, ICa...
<commit_before>/****************************************************************************** ** Copyright (c) 2015, Intel Corporation ** ** All rights reserved. ** ** ...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Ash Berlin, Aristid Breitkreuz 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, includi...
<commit_before><commit_msg>Fixed tests between distros<commit_after><|endoftext|>
<commit_before>#include <memory> #include <stdio.h> #include "uvpp_udp.hpp" int main() { uvpp::Loop uvloop; uvpp::Signal usignal(uvloop); usignal.set_callback([&uvloop](){ uvloop.stop(); }); usignal.start(SIGINT); struct sockaddr_in saddr; uvpp::Udp mcast(uvloop); uv_ip4_ad...
<commit_before>// Scintilla source code edit control /** @file LexVB.cxx ** Lexer for Visual Basic and VBScript. **/ // Copyright 1998-2005 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #inc...
<commit_before>#include "Model.hpp" #include <GL/gl.h> #include <GL/glu.h> #include <SDL/SDL_image.h> #include <iostream> #include <stdexcept> #include <string> /* * Texture */ Texture::Texture(const std::string& file) : file_(file), loaded_(false) { } Texture::~Texture() { if (loaded_) { glDeleteTextures(1, &...
<commit_before>/* This file is part of the Vc library. Copyright (C) 2009 Matthias Kretz <kretz@kde.org> Vc 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 Lic...
<commit_before>/*========================================================================= Program: Visualization Library Module: Source.cc Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reproduc...
<commit_before>/// /// @file api-c.cpp /// @brief primesieve C API. /// Contains the implementations of the functions declared /// in the primesieve.h header file. /// /// Copyright (C) 2018 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /...
<commit_before>/* Copyright Eli Dupree and Isaac Dupree, 2011, 2012 This file is part of Lasercake. Lasercake 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 3 of the Lice...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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...
<commit_before> #include <vector> #include <algorithm> #include <retest.hpp> #include "config/args.hpp" #include "alloc/malloc.hpp" #include "alloc/object_static.hpp" #include "btree/array_node.hpp" #include "btree/get_fsm.hpp" #include "btree/set_fsm.hpp" #include "buffer_cache/volatile.hpp" #include "event.hpp" usin...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/model/CEvent.cpp,v $ // $Revision: 1.21 $ // $Name: $ // $Author: shoops $ // $Date: 2009/05/07 13:31:19 $ // End CVS Header // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., ...
<commit_before>// Copyright (c) 2012-2016 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 "random.h" #include "scheduler.h" #include "test/test_bitcoin.h" #include <boost/bind.hpp> #include...
<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><commit_msg>planning: add TRAFFIC_LIGHT tag to learning data<commit_after><|endoftext|>
<commit_before>#ifndef STAN_MATH_PRIM_FUN_LOG_SOFTMAX_HPP #define STAN_MATH_PRIM_FUN_LOG_SOFTMAX_HPP #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/fun/log_sum_exp.hpp> #include <stan/math/prim/vectorize/apply_vector_unary.hpp> namespace stan { namespace math { /**...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 * * (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include <vtkPLYReader.h> #include <vtkSmartPointer.h> #include <iostream> #include "ply2json.h" using namespace std; static string inputFilename; static string outputFilename; int main( int argc, char ** argv ) { if (argc != 3) { cout << "Usage: " << argv[0] << " filename.ply output...
<commit_before>/* ########## Copyright (C) 2015 Vincenzo Pacella ## ## Distributed under MIT license, see file LICENSE ## ## or <http://opensource.org/licenses/MIT> ## ## ########## ############################################################# shaduzlabs.com ...
<commit_before> #include "numerics/elliptic_functions.hpp" #include <tuple> #include "glog/logging.h" #include "numerics/combinatorics.hpp" #include "numerics/elliptic_integrals.hpp" #include "numerics/polynomial.hpp" #include "numerics/polynomial_evaluators.hpp" #include "quantities/elementary_functions.hpp" #inclu...
<commit_before>#include <string.h> #include "bigid.h" #include "utils.h" #include "sha1.h" namespace dht { BigId::BigId() { memset(sha1_, 0, arraysize(sha1_)); } BigId::BigId(const std::string& s) { sha1::calc(&s[0], s.size(), sha1_); } BigId::BigId(const char* p, int n) { sha1::calc(p, n, sha1_); } i...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: expander.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 09:25:35 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2016 LiteIDE Team. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Pub...
<commit_before>#include "polyfrag.h" #ifdef POLYFRAG_USE_OPENGL #ifdef __APPLE_CC__ #include <OpenGL/gl.h> #else #include <GL/gl.h> #endif #endif #include <float.h> #include <stdlib.h> #include <algorithm> inline float min(float a, float b) { return a < b ? a : b; } inline float max(float a, float b) { return a < b ...
<commit_before>// Copyright 2018 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/licenses/LICENSE-2.0 // // Unless required by applicable law or...
<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>// Copyright 2019 DeepMind Technologies Ltd. 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 // //...
<commit_before>/* * SchemeSmobAtom.c * * Scheme small objects (SMOBS) for opencog atom properties * * Copyright (c) 2008,2009 Linas Vepstas <linas@linas.org> */ #ifdef HAVE_GUILE #include <vector> #include <cstddef> #include <libguile.h> #include <opencog/atomspace/ClassServer.h> #include <opencog/atomspace/T...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: commonlingui.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 20:43:11 $ * * The Contents of this file are m...
<commit_before>/************************************************************************* * * $RCSfile: flyincnt.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: ama $ $Date: 2001-12-13 12:59:48 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>// // Copyright (c) 2017 Michael W Powell <mwpowellhtx@gmail.com> // Copyright 2017 Garrett D'Amore <garrett@damore.org> // Copyright 2017 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution wh...
<commit_before>//! Copyright (c) 2013 ASMlover. 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, thi...
<commit_before>/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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, i...
<commit_before> #include "QmitkSegmentationPostProcessing.h" #include "QmitkNodeDescriptorManager.h" #include "QmitkToolGUI.h" #include "mitkAutoCropImageFilter.h" #include "mitkBinaryThresholdTool.h" #include "mitkRenderingManager.h" #include "mitkShowSegmentationAsSurface.h" #include "mitkProgressBar.h" #include "mi...
<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>/* * test-lexer.cpp * * Created on: Jun 16, 2019 * Author: iconmaster */ #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "ccl/lexer.hpp" using namespace std; using namespace ccl; static string location = "TEST LOCATION"; namespace std { ostream&...
<commit_before>#include "unittest.hpp" #include "rice/Class.hpp" #include "rice/Constructor.hpp" #include "rice/protect.hpp" #include "rice/Exception.hpp" #include "rice/Array.hpp" #include "rice/String.hpp" #include "rice/Symbol.hpp" #include <iostream> using namespace Rice; using namespace std; TESTSUITE(Class); S...
<commit_before>#include "gtest/gtest.h" #include "SharedInt.h" struct Data { int value = 77; }; GTEST_TEST(BasicTest, PlainCOW) { COW<Data> d; // Access should work on a default constructed object. EXPECT_EQ(77, d->value); } GTEST_TEST(BasicTest, DefaultConstructed) { SharedInt::AllowAllocations(fals...
<commit_before>// Copyright (c) 2013, 2014, Huang-Ming Huang, Object Computing, Inc. // All rights reserved. // // This file is part of mFAST. // // mFAST 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 Softw...
<commit_before>#include <chrono> #include "cproc.h" Cproc::Cproc() : _running(false) { } Cproc::~Cproc() { stop(); } void Cproc::run(Cimage & image) { _running = true; _thread = std::thread(&Cproc::mt_run, this, std::ref(image)); } void Cproc::stop() { _running = false; _thread.join(); } ...
<commit_before>/* * MRustC - Mutabah's Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * debug.cpp * - Debug printing (with indenting) */ #include <debug_inner.hpp> #include <debug.hpp> #include <set> #include <iostream> #include <iomanip> #include <common.hpp> // FmtEscaped int g_debug_indent_level...
<commit_before>#include <boost/bind.hpp> #include <boost/filesystem.hpp> #include <asyncply/parallel.h> #include <asyncply/pipeline.h> #include <asyncply/cmd.h> int main() { using namespace asyncply; std::cout.sync_with_stdio(false); std::vector<std::string> lines; cmd(find("../tests"), grep("test_"), out(lines))...
<commit_before>#include <tests/Base.hh> #include <aleph/containers/PointCloud.hh> #include <aleph/geometry/BruteForce.hh> #include <aleph/geometry/VietorisRipsComplex.hh> #include <aleph/geometry/distances/Euclidean.hh> #include <aleph/persistentHomology/Calculation.hh> #include <aleph/persistentHomology/PhiPersist...
<commit_before>/** * @class PMT * Data Structure: PMT in triggered event * * This represents a PMT in a detector event. */ #ifndef __RAT_DS_PMT__ #define __RAT_DS_PMT__ namespace RAT { namespace DS { class PMT : public TObject { public: PMT() : TObject() {} virtual ~PMT() {} /** ID number of PMT */ ...
<commit_before>#include <catch.hpp> #include <luwra.hpp> #include <memory> struct A { int a; A(int x = 1338): a(x) {} }; TEST_CASE("UserTypeRegistration") { luwra::StateWrapper state; luwra::registerUserType<A>(state); } TEST_CASE("UserTypeConstruction") { luwra::StateWrapper state; luwra::registerUserType<A...
<commit_before>/* Copyright (c) 2003, 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>#pragma once #include <iostream> #include <vector> #include <set> #include <sys/socket.h> #include <net/ethernet.h> #include <net/if_dl.h> #include <ifaddrs.h> // Get Destination Address #define ETH_GDA(eth) \ (struct ether_addr*)((struct eth_header*)eth->ether_dhost) // Get Source Address #def...
<commit_before>#include "field.hpp" #include <algorithm> #include <utility> #include <cassert> Field::Field( Cells&& cells, const Dimension width ) : _cells( std::move( cells ) ) , _size( { width, static_cast< Dimension >( _cells.size() / width ) } ) { assert( static_cast< unsigned int >( _size.x ) * _size.y ==...
<commit_before>// Copyright Toru Niina 2019. // Distributed under the MIT License. #ifndef TOML11_SERIALIZER_HPP #define TOML11_SERIALIZER_HPP #include "value.hpp" #include "lexer.hpp" #include <limits> #include <cstdio> namespace toml { struct serializer { serializer(const std::size_t w = 80, ...
<commit_before>#include "input.h" #include "engine.h" P<WindowManager> InputHandler::windowManager; bool InputHandler::touch_screen = false; glm::mat3x3 InputHandler::mouse_transform; PVector<InputEventHandler> InputHandler::input_event_handlers; PVector<JoystickEventHandler> InputHandler::joystick_event_handlers; #w...
<commit_before>#include "kafka.h" #include <iostream> #include <librdkafka/rdkafkacpp.h> #include <boost/asio/ip/host_name.hpp> // XXX require the unused fields to be present but blank? void set_single_config_field(RdKafka::Conf& rd_conf, YAML::Node& yaml_conf, std::string field) { if (!yaml_conf[field]) { pri...
<commit_before>#include "test_common.h" #include <vector> #include <iostream> #include <algorithm> #include <functional> TEST_UNIT(lambda_test1) { std::vector<int> c{ 1, 2, 3, 4, 5, 6, 7 }; int x = 5; c.erase(std::remove_if(c.begin(), c.end(), [x](int n) { return n < x; }), c.end()); std::cout << "c:...
<commit_before>/* * Copyright (C) 2006,2007,2008,2009,2010,2011,2012 Olly Betts * * 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 "taichi_grid.h" #include <taichi/visual/texture.h> #include <taichi/system/threading.h> #include <taichi/util.h> #include <taichi/math/svd.h> TC_NAMESPACE_BEGIN struct NodeFlags : public bit::Bits<32> { using Base = bit::Bits<32>; TC_BIT_FIELD(uint8, num_effective_neighbours, 0); TC_BIT_...
<commit_before>// Original: https://github.com/fcanas/node-native-boilerplate/blob/master/NativeExtension.cc #include "functions.h" using v8::FunctionTemplate; // NativeExtension.cc represents the top level of the module. // C++ constructs that are exposed to javascript are exported here NAN_MODULE_INIT(InitAll) { ...
<commit_before>#include "myers.h" #include <stdint.h> using namespace std; typedef uint64_t Word; static const int WORD_SIZE = sizeof(Word) * 8; // Size of Word in bits static const Word HIGH_BIT_MASK = ((Word)1) << (WORD_SIZE-1); static int myersCalcEditDistanceSemiGlobal(Word* P, Word* M, int* score, Word** Peq,...
<commit_before>#include "ofApp.h" using namespace ofxCv; using namespace cv; //-------------------------------------------------------------- void ofApp::setup(){ cout << "Hello World!"; ofSetVerticalSync(true); cam.initGrabber(640, 480); tracker.setup(); tracker.setRescale(.5); } //---...
<commit_before>#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ // Screen ofBackground(255); // Font font.loadFont("font/Courier New Bold.ttf", 9); // Misc verbose = true; // Pd int ticksPerBuffer = 8; ofSo...
<commit_before>#include "ofApp.h" #include "Terrain.h" #include "MusicAnalysis.h" //-------------------------------------------------------------- void ofApp::setup() { songNames.push_back("song_1.wav"); musicAnalysis.loadSongs(songNames); terrain.setMusicAnalysis(&musicAnalysis); terrain.initializeTerrain(); ...
<commit_before>#include <cstring> #define BUILDING_NODE_EXTENSION #include <node.h> #include <node_buffer.h> #include <mcnet.h> #include "parser.h" using namespace v8; using namespace node; mcnet::Parser::Parser() { settings.on_packet = mcnet::Parser::on_packet; settings.on_error = mcnet::Parser::on_error; } m...
<commit_before>/****************************************************************************** * Copyright (c) 2015 Jamis Hoo * Distributed under the MIT license * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) * * Project: UDP-Echo * Filename: parser.cc * Version: 1.0 *...
<commit_before>// Nikita Kouevda // 2013/11/02 #include <cmath> #include "prime.hpp" using namespace std; bool isPrime(long int n) { if (n == 2 || n == 3) { return 1; } else if (n < 2 || n % 2 == 0 || n % 3 == 0) { return 0; } for (long int i = 5, max = sqrt(n) + 1; i < max; i += 6) { if (n % i...
<commit_before>/* * redsea - RDS decoder * Copyright (c) Oona Räisänen OH2EIQ (windyoona@gmail.com) * * 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 copi...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // taskwarrior - a command line task list manager. // // Copyright 2006 - 2010, Paul Beckingham. // All rights reserved. // // This program is free software; you can redistribute it and/or modify it under // the terms of the...
<commit_before>#include "../include/scene.hpp" //////////////////////////////////////////////////////////////////////////////// scene::scene(const uint screen_w, const uint screen_h, const uint map_size, const double tiles_separation, const double map_separation): tile_map_(map_size, tiles_separation), map_se...
<commit_before>#include <algorithm> #include "timer.h" double NS_TO_SEC = 1e9; #ifdef __COMPILE_AS_LINUX__ #define CLOCK_TYPE CLOCK_MONOTONIC //CLOCK_PROCESS_CPUTIME_ID #endif // ifdef __COMPILE_AS_LINUX__ Timer::Timer() { reset(); #ifdef __COMPILE_AS_WINDOWS__ get_clock_frequency(); #endif } double Timer::no...
<commit_before>#pragma once enum TokenType { // Symbols ////// NUL, // Reserved WHITESPACE, // Spaces or tabs INDENT, // Spaces or tabs DEDENT, // Spaces or tabs NEWLINE, // /n LEFT_BRACKET, // { RIGHT_BRACKET, // } LEFT_SQUARE, // [ RIGHT_SQUARE, // ] LEFT_PAREN, // ...
<commit_before>// This file is part of the pd::ssl library. // Copyright (C) 2011-2014, Eugene Mamchits <mamchits@yandex-team.ru>. // Copyright (C) 2011-2014, YANDEX LLC. // This library may be distributed under the terms of the GNU LGPL 2.1. // See the file ‘COPYING’ or ‘http://www.gnu.org/licenses/lgpl-2.1.html’. #i...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ // Disable "'this': used in base member initializer list" #ifdef _MSC_VER # pragma warning( push ) # pragma warning(disable: 4355) #endif #include <vector> #include <map> #include <boost/make_shared.hpp> #include <qi/anyo...
<commit_before>/*________________________________ | | | INCLUDES | |_________________________________| */ #include "good.cpp" #include <pcl/io/pcd_io.h> #include <pcl/io/ply_io.h> #include <pcl/visualization/cloud_viewer.h> #include <boost/filesystem.hpp> #includ...
<commit_before>#include "ylikuutio_string.hpp" // Include standard headers #include <cstdio> // std::FILE, std::fclose, std::fopen, std::fread, std::getchar, std::printf etc. #include <cstring> // std::memcmp, std::strcmp, std::strlen, std::strncmp #include <iostream> // std::cout, std::cin, std::cerr #include <lis...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cunooptions.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-09-17 03:37:58 $ * * The Contents of this file are m...
<commit_before>// test.m.cpp #include "gtest/gtest.h" int main( int argc, char* argv[] ) { ::testing::InitGoogleTest( &argc, argv ); return RUN_ALL_TESTS(); }<commit_msg>Correct styling issue<commit_after>// test.m.cpp #include <gtest/gtest.h> int main( int argc, char* argv[] ) { ::testing::InitGoogleTest...
<commit_before>/* * File: main.cpp * Author: ruehle * * Created on July 6, 2010, 12:15 PM */ #include <stdlib.h> #include <votca/csg/csgapplication.h> #include <votca/tools/histogramnew.h> #include <votca/csg/beadlist.h> #include <votca/csg/nblist.h> #include <votca/csg/nblistgrid.h> //using namespace votca::t...
<commit_before>/** * @file * * @brief * * @copyright BSD License (see doc/COPYING or http://www.libelektra.org) */ #include "ansicolors.hpp" #ifdef _WIN32 #include <stdio.h> #undef STDERR_FILENO #undef STDOUT_FILENO #define STDERR_FILENO _fileno (stderr) #define STDOUT_FILENO _fileno (stdout) #else #include <uni...
<commit_before>// Author: Guilherme Amadio, Enrico Guiraud, Danilo Piparo CERN 2/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include "world_rc1.h" #include "galaxy_gen.h" #include "player_controller.h" #include "lightning_effect.h" #include "badger/math/random.h" #include "pathos/render/sky_ansel.h" #include "pathos/loader/imageloader.h" #include "pathos/render/irradiance_baker.h" #include "pathos/mesh/static_mesh_actor.h" ...