text
stringlengths
54
60.6k
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resourceprovider.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: ihi $ $Date: 2007-07-12 13:40:35 $ * * The Contents of this file...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resourceprovider.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-10-12 10:56:38 $ * * The Contents of this file ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@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 publis...
<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 "webkit/tools/test_shell/simple_appcache_system.h" #include "base/callback.h" #include "base/lock.h" #include "base/task.h" #...
<commit_before>#include <signal.h> #ifdef PROFILER #include <gperftools/profiler.h> #endif #include "sparse_matrix.h" #include "matrix/FG_sparse_matrix.h" using namespace fm; void int_handler(int sig_num) { #ifdef PROFILER printf("stop profiling\n"); if (!fg::graph_conf.get_prof_file().empty()) ProfilerStop(); #e...
<commit_before>/* * TH02_dev.cpp * Driver for DIGITAL I2C HUMIDITY AND TEMPERATURE SENSOR * * Copyright (c) 2014 seeed technology inc. * Website : www.seeed.cc * Author : Oliver Wang * Create Time: April 2014 * Change Log : * * The MIT License (MIT) * * Permission is hereby granted, free of charge,...
<commit_before>/* This file is part of Groho, a simulator for inter-planetary travel and warfare. Copyright (c) 2018 by Kaushik Ghose. Some rights reserved, see LICENSE Renders a text label */ #include "textlabel.hpp" namespace sim { TextBase::TextBase(Font& font, Text::Alignment ta) { _text.reset(new Text::Ren...
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "proto_converter.h" #include <vespa/searchlib/common/mapnames.h> #include <vespa/vespalib/data/slime/slime.h> #include <vespa/vespalib/data/slime/binary_format.h> #include <vespa/vespalib/da...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: propertysetbase.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2006-07-19 16:44:37 $ * * The Contents of this file ar...
<commit_before>#define VEXCL_SHOW_KERNELS #define BOOST_TEST_MODULE KernelGenerator #include <boost/test/unit_test.hpp> #include "context_setup.hpp" using namespace vex; template <class state_type> state_type sys_func(const state_type &x) { return sin(x); } template <class state_type, class SysFunction> void run...
<commit_before>// // Created by Александр on 09.12.17. // #include <QIODevice> #include <QDataStream> #include "DiffieHellmanCmd.h" QByteArray* DiffieHellmanCmd::req(QByteArray* block) { QDataStream out(block, QIODevice::WriteOnly); out << "test"; return block; } bool DiffieHellmanCmd::res(QByteArray &arra...
<commit_before><commit_msg>skeleton for test, fill out...?<commit_after>/** * tests/jsonUtils.cpp * Generic JSON utility tests. */ #include "catch.hpp" #include "feJsonUtils.h" TEST_CASE("Export class correctly", "[feJsonUtils]") { }<|endoftext|>
<commit_before>/*====================================================================== This file is part of the elastix software. Copyright (c) University Medical Center Utrecht. All rights reserved. See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for details. This software is distri...
<commit_before>/*************************************************************************** * Copyright (c) 2012 Jrgen Riegel <juergen.riegel@web.de> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>#include <seastar/rpc/rpc.hh> #include "messaging_service.hh" #include "serializer.hh" #include "seastarx.hh" namespace netw { struct serializer; // thunk from rpc serializers to generate serializers template <typename T, typename Output> void write(serializer, Output& out, const T& data) { ser::s...
<commit_before>#include <UnitTest++.h> #include "model/unique-multimap.h" bool found_in_category(UniqueMultimap<int, int> multimap, int value, int category) { for (typename UniqueMultimap<int, int>::member_iter iter = multimap.get_members_of_begin(category); iter != multimap.get_members_of_end(category); ...
<commit_before>/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2015. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the ro...
<commit_before>// Copyright 2017, Dawid Kurek, <dawikur@gmail.com> #include "lel/lambda.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #ifdef __clang__ #define IS_TEST_SUPPORTED \ (__clang_major__ > 3) or (__clang_major__ == 3 and __clang_minor__ > 7) #e...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 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. Redistri...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * **********************...
<commit_before>/* Copyright DaiMysha (c) 2015, All rights reserved. https://github.com/DaiMysha 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 lis...
<commit_before>#ifdef _SALOME # include <utilities.h> #else #ifndef __MEDMEM_UTILITIES #define __MEDMEM_UTILITIES # include <cstdlib> # include <iostream> using namespace std; /* --- INFOS is always defined (without _DEBUG_): to be used for warnings, with release version --- */ # define HEREWEA...
<commit_before>/*************************************************************************** * Copyright (c) 2014 Nathan Miller <Nathan.A.Mill[at]gmail.com> * * Balázs Bámer * * ...
<commit_before> #include "../src/ReplyImpl.h" #include "UnitTest++/UnitTest++.h" using namespace std; using namespace restc_cpp; namespace restc_cpp{ namespace unittests { class TestReply : public ReplyImpl { public: using test_buffers_t = std::list<std::string>; TestReply(Context& ctx, RestClient& owner,...
<commit_before>#ifndef UTILS_URI_TEST_HPP #define UTILS_URI_TEST_HPP #include <io/uri.hpp> using namespace Arabica::io; class URITest : public TestCase { public: URITest(std::string name) : TestCase(name) { } // URITest void test1() { URI u("woo"); assertEquals("woo", u.path(...
<commit_before>#include "ArduinoRobot.h" #include "SquawkSD.h" #include "Fat16.h" SQUAWK_CONSTRUCT_ISR(SQUAWK_PWM_PIN5); void RobotControl::beginSpeaker(uint16_t frequency){ SquawkSynth::begin(frequency); SquawkSynth::play(); osc[2].vol = 0x7F; } void RobotControl::playNote(byte period, word length, char mo...
<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 "chrome/browser/ui/views/browser_bubble.h" void BrowserBubble::InitPopup(const gfx::Insets& content_margins) { // TODO(beng...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include <cling/UserInterface/UserInter...
<commit_before>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "common.h" #include "CommonTypes.h" #include "CommonMacros.h" #include "daccess.h" #include ...
<commit_before>#include "glwidget.h" #include <QtOpenGL> #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <glut.h> #endif #include <QDebug> #include "db/database.h" #include "algorithms/pathalgorithms.h" #include "../stable.h" GLWidget::GLWidget(QWidget *parent) : QGLWidget(parent) { canvasWi...
<commit_before>// Ylikuutio - A 3D game and simulation engine. // // Copyright (C) 2015-2021 Antti Nuortimo. // // 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 ...
<commit_before>/* type_test.cpp -*- C++ -*- Rémi Attab (remi.attab@gmail.com), 12 Apr 2014 FreeBSD-style copyright and disclaimer apply Tests for types. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #define REFLECT_USE_EXCEPTIONS 1 #include "reflect.h" #include "test...
<commit_before>#include <config.h> #include <assert.h> #include <dune/common/exceptions.hh> #include <dune/xt/common/logging.hh> #include <dune/xt/common/validation.hh> #include <dune/xt/common/configuration.hh> #include <sstream> #include "dune/multiscale/problems/base.hh" #include "spe10.hh" namespace Dune { namesp...
<commit_before>// Copyright @ Chun Shen 2016 // to compile the code: // g++ convert_to_binary.cpp -lz -o convert_to_binary.e #include <iostream> #include <sstream> #include <fstream> #include <cstdlib> #include "zlib.h" using namespace std; int main(int argc, char *argv[]) { string input_filename; if (ar...
<commit_before>// Copyright 2014-2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "elang/compiler/ast/expressions.h" #include "base/logging.h" #include "elang/compiler/token_type.h" namespace elang { namespace c...
<commit_before>/* * Copyright (C) 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 applicab...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: componentcontext.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: ihi $ $Date: 2007-11-21 16:51:46 $ * * The Contents of this file ...
<commit_before>#include "audio_source.h" #include "audio_mixer.h" #include "audio_source_behaviour.h" using namespace Halley; AudioSource::AudioSource(std::shared_ptr<const AudioClip> clip, AudioSourcePosition sourcePos, float gain, bool loop) : clip(clip) , sourcePos(sourcePos) , looping(loop) , gain(gain) {} ...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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 applic...
<commit_before>// Copyright 2013 Samplecount S.L. // // 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 ...
<commit_before>#include <cassert> #include <functional> #include <iostream> #include <memory> #include <type_traits> #include <utility> #include <vector> // Variation 1: Accept std::reference_wrapper<>. #ifndef ACCEPT_REFERENCE_WRAPPER #define ACCEPT_REFERENCE_WRAPPER 1 #endif #ifndef INSTRUMENT_COPIES #define INSTR...
<commit_before>// Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander /*! \file Logger.cc \brief Defines the Logger class */ #include "Logger.h" #include "Filesystem.h" #ifdef ENABLE...
<commit_before>#include "ros/ros.h" #include <ros/console.h> #include "api_application/Announce.h" #include <vector> class API { public: API(int argc, char **argv) { idCounter = 0; ros::init(argc, argv, "api_server"); ros::NodeHandle n; ros::ServiceServer service = n.advertiseService("announce", announc...
<commit_before>/* c2ffi Copyright (C) 2013 Ryan Pavlik This file is part of c2ffi. c2ffi 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 la...
<commit_before>/* c2ffi Copyright (C) 2013 Ryan Pavlik This file is part of c2ffi. c2ffi 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 la...
<commit_before>#include "purpleline.hpp" void PurpleLine::login_start() { purple_connection_set_state(conn, PURPLE_CONNECTING); purple_connection_update_progress(conn, "Logging in", 0, 3); std::string auth_token = purple_account_get_string(acct, LINE_ACCOUNT_AUTH_TOKEN, ""); if (auth_token != "") { ...
<commit_before>#include "GPU.hpp" void GPU::reset() { std::memset(screen, 0xFF, ScreenWidth * ScreenHeight * sizeof(color_t)); getLine() = getScrollX() = getScrollY() = getBGPalette() = getLCDControl() = getLCDStatus() = _cycles = 0; getLCDStatus() = (getLCDStatus() & ~LCDMode) | Mode::OAM; } void GPU::update_mo...
<commit_before>/* This file is part of the Kate project. * * Copyright (C) 2010 Christoph Cullmann <cullmann@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 ...
<commit_before>/************************************************************************* * * $RCSfile: framework.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: jl $ $Date: 2004-05-10 14:34:20 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com> * * 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. * * This program i...
<commit_before>///////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2019, The Regents of the University of California // All rights reserved. // // BSD 3-Clause License // // Redistribution and use in source and binary forms, with or without // modification, are permitted pr...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File ExpList0D.cpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronautics, Imp...
<commit_before>#include "routing/index_graph_starter.hpp" #include "routing/fake_edges_container.hpp" #include "geometry/mercator.hpp" #include <map> namespace { using namespace routing; using namespace std; Segment GetReverseSegment(Segment const & segment) { return Segment(segment.GetMwmId(), segment.GetFeatur...
<commit_before>#include "SimplifySpecializations.h" #include "IROperator.h" #include "IRMutator.h" #include "Simplify.h" #include "Substitute.h" #include "Definition.h" #include "IREquality.h" #include <set> namespace Halide{ namespace Internal { using std::map; using std::set; using std::string; using std::vector; ...
<commit_before>/* Copyright (c) 2017, Vlad Meșco 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 conditions and th...
<commit_before>#include "HardwareDetection.h" #include "ControllerDevice.h" using namespace LeapOsvr; //////////////////////////////////////////////////////////////////////////////////////////////////////// /*----------------------------------------------------------------------------------------------------*/ Hardw...
<commit_before>#include "parser.h" #include <cinttypes> #include <cstring> #include <curl/curl.h> #include <libxml/parser.h> #include <libxml/tree.h> #include <vector> #include "config.h" #include "curlhandle.h" #include "exception.h" #include "logger.h" #include "remoteapi.h" #include "rssparser.h" #include "rsspars...
<commit_before>/************************************************************************* * * $RCSfile: MCatalog.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: mmaher $ $Date: 2001-10-11 10:07:54 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>// Scintilla source code edit control /** @file XPM.cxx ** Define a class that holds data in the X Pixmap (XPM) format. **/ // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <string.h> #i...
<commit_before>/** * Ice multiplatform dynamic library loader. * * @copyright 2011 David Rebbe */ #include "ice_library.h" #include "ice_exception.h" #include <sstream> using namespace ice; Library::Library(std::string name) { m_name = name; #if (defined(_WIN32) || defined(__WIN32__)) #ifdef ...
<commit_before>#include "stdafx.h" #include "LogPainterFactory.h" #include "ILogItemPainter.h" #include "LogItem.h" class LogSingleLinePainter : public ILogItemPainter { virtual void Draw(HDC hdc, const RECT& rect, const LogItem& item) { int oldBkMode = ::SetBkMode(hdc, TRANSPARENT); int oldTextColor = ::GetText...
<commit_before>#ifndef K3_RUNTIME_DATASPACE_MAPDS_H #define K3_RUNTIME_DATASPACE_MAPDS_H #include <algorithm> #include <iostream> #include <unordered_map> #include <string> #include <functional> // K3 #include <Engine.hpp> namespace K3 { using K3::Engine; using std::shared_ptr; using std::tuple; using std::unorder...
<commit_before>#include <exception> #include <string> #include <map> #include <utility> #include <boost/python.hpp> #include <boost/python/suite/indexing/map_indexing_suite.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> #include <boost/python/return_arg.hpp> #include <vigra/numpy_array.hxx> #in...
<commit_before>#include <boost/asio/io_service.hpp> #include <boost/asio/spawn.hpp> #include <boost/asio/steady_timer.hpp> #include <boost/asio/ip/tcp.hpp> #include <iostream> #include <warpcoil/then.hpp> namespace { namespace asio = boost::asio; void delay(std::chrono::steady_clock::duration duration, asio::...
<commit_before>#include <iostream> #include <boost/algorithm/string.hpp> #include <redox/redox.hpp> #include <json/json.hpp> #include <nghttp2/asio_http2_server.h> using namespace nghttp2::asio_http2; using namespace nghttp2::asio_http2::server; using json = nlohmann::json; generator_cb loading_...
<commit_before><commit_msg>`Entity` destructor: do not print an error if the `Entity` has no name.<commit_after><|endoftext|>
<commit_before>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // #include <dlfcn.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> ...
<commit_before>/** * Ice multiplatform dynamic library loader. * * @copyright 2011 David Rebbe */ #include "ice_library.h" #include "ice_exception.h" #include <sstream> using namespace ice; Library::Library(std::string name) { m_name = name; #if (defined(_WIN32) || defined(__WIN32__)) #ifdef ...
<commit_before>/* * Copyright Andrey Semashev 2007 - 2013. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ /*! * \file snprintf.hpp * \author Andrey Semashev * \date 20.02.2009 *...
<commit_before>#include "messages/messageref.hpp" #include "emotemanager.hpp" #include "settingsmanager.hpp" #include <QDebug> #define MARGIN_LEFT 8 #define MARGIN_RIGHT 8 #define MARGIN_TOP 4 #define MARGIN_BOTTOM 4 using namespace chatterino::messages; namespace chatterino { namespace messages { MessageRef::Mess...
<commit_before>#pragma once //=====================================================================// /*! @file @brief Arithmetic テンプレート @n ※テキストの数式を展開して、計算結果を得る。@n 演算式解析 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2015, 2020 Kunihito Hiramatsu @n Released under the MIT license @n ...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of mhome. ** ** If you have questions regarding the use o...
<commit_before>#ifndef BLOCK_MAP_HPP_ #define BLOCK_MAP_HPP_ #include "clotho/powerset/normalized_key.hpp" #include "clotho/powerset/next_available_order_tag.hpp" namespace clotho { namespace powersets { template < class Element, class Block, class Tag = next_available_order_tag > struct block_map { typedef Ele...
<commit_before>#include <iomanip> #include "solver.h" #include "version.h" #include "core/tuner.h" #include "core/logger.h" #include "core/random.h" #include "model_gboost.h" #include "core/ibstream.h" #include "core/obstream.h" #include "core/algorithm.h" #include "gboost_loss_avg.h" #include "gboost_loss_var.h" usin...
<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>// test_app.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <windows.h> #define PAGE_SIZE 4096 int _tmain(int argc, _TCHAR* argv[]) { HANDLE hFile; hFile = CreateFile ( L"\\\\.\\viosdev", GENERIC_READ | GENERIC_WRITE, ...
<commit_before>{ gStyle->SetOptStat(0); TFile *FCy = new TFile("cyclus_exo1_1.root"); TFile *FCl = new TFile("Scenario.root"); TTree *TCy = (TTree *) FCy->Get("TT"); TTree *TCl = (TTree *) FCl->Get("TreeScenario"); TCanvas *C0 = new TCanvas("C0","Pu",1400,900); C0->Divide(2,2,0.01,0.01); C0->cd(1); TH2D *tmp1 ...
<commit_before>//===- DeadStoreElimination.cpp - Dead Store Elimination ------------------===// // // 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>#include "app.h" #include "palette_manager.h" namespace cistft { Application::Application() : mGlobals(mWorkManager, mAudioNodes, mStftRenderer, mGridRenderer, mAppConfig) , mAudioNodes(mGlobals) , mStftRenderer(mGlobals) , mMonitorRenderer(mGlobals) , mGridRenderer(mGlobals) {} void Application:...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / __...
<commit_before>/* * testSendMsg.cpp * * Author: Peter Johansson */ #ifdef _MOCK_ #include "gtest/gtest.h" #include "../src/CalvinDone/CalvinMini.h" class testMessageOut : public ::testing::Test { protected: virtual void SetUp() {} virtual void TearDown() {} }; TEST(testMessageOut, testStdOut) { Calvin...
<commit_before>#ifndef AST_HPP #define AST_HPP #include <string> #include <sstream> #include <vector> #include <set> #include <memory> #include <typeinfo> #include "utils/error.hpp" #include "token.hpp" #include "utils/util.hpp" #include "operator.hpp" #include "utils/typeInfo.hpp" class ASTNode: public std::enable_...
<commit_before>#include <network.hpp> #include <utility> using namespace MCPP::NetworkImpl; namespace MCPP { void SendHandle::Then (std::function<void (SendState)> callback) { lock.Execute([&] () mutable { callbacks.Add(std::move(callback)); }); } void SendHandle::Complete () noexcept { state=Sen...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 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. Redistributi...
<commit_before>/* * wav.hpp * A struct to read / write headers in the form of RIFF WAV linear PCM * * written by janus_wel<janus.wel.3@gmail.com> * This source code is in public domain, and has NO WARRANTY. * * refer * RIFF WAV specifications * http://msdn.microsoft.com/en-us/library/ms713231.aspx * ...
<commit_before>#define DEBUG 1 /** * File : F.cpp * Author : Kazune Takahashi * Created : 6/14/2020, 3:53:32 AM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdi...
<commit_before>#pragma once #include <memory> #include <utility> #include <type_traits> #include "signal.hpp" namespace eventpp { namespace details { template<class E> struct ETag { using type = E; }; template<int N, int M> struct Choice: public Choice<N+1, M> { }; template<int N> struct Choice<N, N> { }; templa...
<commit_before>/* mockturtle: C++ logic network library * Copyright (C) 2018-2019 EPFL * * 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 limita...
<commit_before>#include <jni.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <pthread.h> #include <android/log.h> #include "cpu/CPUOdroid.h" #include "cpu/CPUNexus5.h" #include "gpu/GPUOdroid.h" #include "gpu/GPUNexus5.h" #include "IOStuff.h" #include "RetrieveModel.h" #define CLASSNAME "DVFS-ndk...
<commit_before>#include "Crown.h" using namespace Crown; int main(int argc, char** argv) { XMLReader xml; xml.LoadFile("res/window.xml"); xml.Print(); getchar(); return 0; } <commit_msg>Delete xmlreader sample<commit_after><|endoftext|>
<commit_before>#undef PV_USE_OPENCL #include "../src/arch/opencl/CLDevice.hpp" #include "../src/arch/opencl/CLKernel.hpp" #include "../src/arch/opencl/CLBuffer.hpp" #include "../src/arch/opencl/pv_uint4.h" #include "../src/utils/Timer.hpp" #include "../src/utils/cl_random.h" #include <assert.h> #include <stdio.h> #in...
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>// sound.cxx -- Sound class implementation // // Started by Erik Hofman, February 2002 // (Reuses some code from fg_fx.cxx created by David Megginson) // // Copyright (C) 2002 Curtis L. Olson - curt@flightgear.org // // This program is free software; you can redistribute it and/or // modify it under th...
<commit_before>#include <stdio.h> #include <iostream> #include <vector> #include <map> #include <libserpent/funcs.h> int main(int argv, char** argc) { if (argv == 1) { std::cerr << "Must provide a command and arguments! Try parse, rewrite, compile, assemble\n"; return 0; } std::string flag ...
<commit_before>#include "oglWidget.h" #include <iostream> // // CONSTRUCTORS //////////////////////////////////////////////////////////////// // /** * @brief Default constructor for OGLWidget. */ OGLWidget::OGLWidget() { // Update the widget after a frameswap connect( this, SIGNAL( frameSwapped() ), ...
<commit_before>/* * This file is part of otf2xx (https://github.com/tud-zih-energy/otf2xx) * otf2xx - A wrapper for the Open Trace Format 2 library * * Copyright (c) 2013-2016, Technische Universität Dresden, Germany * All rights reserved. * * Redistribution and use in source and binary forms, with or without *...