text
stringlengths
54
60.6k
<commit_before>#pragma once // C++ wrapper around a statically sized array // // Based on: // https://github.com/stephentu/silo/blob/master/static_vector.h #include <algorithm> #include <type_traits> #include <microscopes/common/macros.hpp> template <typename T, size_t MaxSize> class static_vector { static const ...
<commit_before>#pragma once #include "../../base/logging.hpp" #include "../../defines.hpp" #include "../../indexer/classificator.hpp" #include "../../indexer/feature.hpp" #include "../../indexer/feature_merger.hpp" #include "../../indexer/feature_visibility.hpp" #include "../../indexer/point_to_int64.hpp" #include ...
<commit_before>/* Copyright (C) 2006 Imperial College London and others. Please see the AUTHORS file in the main source directory for a full list of copyright holders. Prof. C Pain Applied Modelling and Computation Group Department of Earth Science and Engineering Imperial College London ...
<commit_before>#ifndef OMNI_CORE_ID_HPP #define OMNI_CORE_ID_HPP #include <omni/core/core.hpp> #include <omni/core/domain.hpp> #include <string> #include <ostream> namespace omni { namespace core { /** An `id' is a globally unique identifier that is used throughout omni to identify parts of the context such...
<commit_before><commit_msg>Fixes bug in AcceleratorHandler. It's possible to get events for GtkWidgets outside of those created by Chrome that we need to ignore. I saw this with drag and drop.<commit_after><|endoftext|>
<commit_before>#include <getopt.h> #include "configurator.hpp" #include "isolation_module_factory.hpp" #include "slave.hpp" #include "slave_webui.hpp" using boost::lexical_cast; using boost::bad_lexical_cast; using namespace std; using namespace nexus::internal::slave; void usage(const char *programName, const Co...
<commit_before>#include <vector> #include <fstream> #include <ostream> #include <string> #include "mainWindow.h" #include "addStreamDialog.h" #include "livestreamerProcess.h" #include "fileHelper.h" mainWindow::mainWindow(BaseObjectType *base, const Glib::RefPtr<Gtk::Builder> &builder) : Gtk::Window(base), bu...
<commit_before>#include "mainwidget.h" #include "ui_mainwidget.h" MainWidget::MainWidget(QWidget *parent) : QWidget(parent), ui(new Ui::MainWidget), m_ipconfig( new QProcess( this ) ) { ui->setupUi(this); // setup createAction(); createTrayIcon(); // set echomode ui->passEdit->set...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include "dbmanager.h" #include <QDebug> #include <QFile> #include <QFileDialog> #include <QTextDocument> #include <QMessageBox> #include <QSettings> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui-...
<commit_before>/** * @file DemangleTest.cpp * @brief Demangle class tester. * @author zer0 * @date 2017-09-02 */ #include <gtest/gtest.h> #include <libtbag/debug/Demangle.hpp> using namespace libtbag; using namespace libtbag::debug; TEST(DemangleTest, Default) { std::string const TEST_NAME = "_ZN3FooC1...
<commit_before>#include <cstring> #include <iostream> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <sys/wait.h> #include <sys/types.h> #include "words.h" //implementation of Node Node::Node(string token) { this->content = token; } void Node::setNext(Node* n) { this->next = n; } Node* N...
<commit_before>//============================================================================== // Collapsable widget //============================================================================== #include "collapsablewidget.h" #include "coreutils.h" //===============================================================...
<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/location_bar/star_view.h" #include "base/utf_string_conversions.h" #include "chrome/app/chrome_comma...
<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 "chrome/renderer/renderer_sandbox_support_linux.h" #include "base/global_descriptors_posix.h" #include "base/pickle.h" #incl...
<commit_before>/*++ Module Name: FASTA.cpp Abstract: FASTA reader Authors: Bill Bolosky, August, 2011 Environment: User mode service. Revision History: Adapted from Matei Zaharia's Scala implementation. --*/ #include "stdafx.h" #include "Compat.h" #include "FASTA.h" using namespace std;...
<commit_before>// Time: O(m + n) // Space: O(min(m, n)) // Hash solution. class Solution { public: vector<int> intersection(vector<int>& nums1, vector<int>& nums2) { if (nums1.size() > nums2.size()) { return intersection(nums2, nums1); } unordered_set<int> lookup{nums1.cbegin(...
<commit_before>#include <cstdio> #include <string> #include <regex> #include <fstream> #include <sys/stat.h> // http://tclap.sourceforge.net/manual.html #include "tclap/CmdLine.h" #include "HCIDumpParser.h" #include "MsgPublisherTypeConstraint.h" static HCIDumpParser parserLogic; #define STOP_MARKER_FILE "STOP" inli...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: ImageCompareCommand.cxx, v $ Language: C++ Date: $Date: 2008-11-09 18:18:52 $ Version: $Revision: 1.12 $ Copyright ( c ) Insight So...
<commit_before>//===--- CompilationGraph.cpp - The LLVM Compiler Driver --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open // Source License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "cvm.h" #include <dlfcn.h> #define STR2(s) #s #define STR(s) STR2(s) #ifdef __linux__ #define DAB_LIBC_NAME "libc.so.6" // LINUX #else #define DAB_LIBC_NAME "libc.dylib" // APPLE #endif DabValue DabVM::merge_arrays(const DabValue &arg0, const DabValue &arg1) { auto & a0 = arg0....
<commit_before>/******************************************************************************* * thrill/api/dia_base.cpp * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2015 Sebastian Lamm <seba.lamm@gmail.com> * Copyright (C) 2016 Timo Bingmann <tb@panthema.net> * * All rights reserve...
<commit_before>/* Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved. 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 rig...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkOutputWindow.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted ...
<commit_before>// Ylikuutio - A 3D game and simulation engine. // // Copyright (C) 2015-2022 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>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before><commit_msg>New tests for `Variable::set`.<commit_after><|endoftext|>
<commit_before>/* * statusspec.cpp * StatusSpec project * * Copyright (c) 2014 thesupremecommander * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #include "statusspec.h" AntiFreeze *g_AntiFreeze = nullptr; Killstreaks *g_Killstreaks = nullptr; LoadoutIcons *g_LoadoutIcons = n...
<commit_before>//_________________________________________________________________________ // Macro that creates esd xml collections by querying the tags. // It addresses the following use cases: // o) The tag files are stored locally. // - One queries the tags by using simple string statements. // - One queries th...
<commit_before>// // Created by Miguel Rentes on 30/01/2017. // #include "STL.h" void printKMax(int arr[], int n, int k) { deque<int> mydeque; int greatest = 0, value = 0, index = 0, iteration = 0; /* * pushing all the greatest values on each k-elements to the front of the deque */ for (int ...
<commit_before>#include <coffee/core/plat/sensor/maemo/sensors.h> #include <coffee/core/plat/plat_file.h> #include <coffee/core/plat/plat_memory.h> #include <coffee/core/string_casting.h> #define const_string static const constexpr cstring namespace Coffee{ namespace Sensor{ namespace Maemo{ const_string LIS302DL_N...
<commit_before>/*------------------------------------------------------------------------- * * ddl.cpp * file description * * Copyright(c) 2015, CMU * * /peloton/src/backend/bridge/ddl.cpp * *------------------------------------------------------------------------- */ #include <cassert> #include <iostream> ...
<commit_before>#include "timer_system_time.h" #include "eal/lmice_eal_common.h" #include <sglib.h> #include <errno.h> #include <eal/lmice_eal_spinlock.h> typedef void (timer_callback) (void* pdata); /** * @brief The lm_timer_s struct 定时器 */ struct lm_timer_s { volatile int32_t state; // 状态 int32_...
<commit_before>/* *********************************************************************************************************************** * * Copyright (c) 2021 Google LLC. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
<commit_before>// RUN: cat %s | %cling -Xclang -verify // RUN: cat %s | %cling | FileCheck %s #include "cling/Interpreter/Interpreter.h" #include "cling/Interpreter/StoredValueRef.h" cling::StoredValueRef V; V // CHECK: (cling::StoredValueRef) <<<invalid>>> @0x{{.*}} gCling->evaluate("return 1;", V); V // CHECK: (cl...
<commit_before>//===--------------------------------------------------------------------------------*- C++ -*-===// // _____ _ // / ____| (_) // | (___ ___ __ _ _ _ ___ _ __ _ // ...
<commit_before>/* * File: AlarmClockTest.cpp * Author: Craig Cogdill * Created: October 15, 2015 10:45am * Modifier: Amanda Carbonari * Modified Date: January 5, 2015 3:45pm */ #include "AlarmClockTest.h" #include "AlarmClock.h" #include "StopWatch.h" #include <chrono> #include <iostream> #include <thread> s...
<commit_before>/* * File: AlarmClockTest.cpp * Author: Craig Cogdill * Created: October 15, 2015 10:45am * Modifier: Amanda Carbonari * Modified Date: January 5, 2015 3:45pm */ #include "AlarmClockTest.h" #include "AlarmClock.h" #include "StopWatch.h" #include <chrono> #include <iostream> #include <thread> s...
<commit_before>#include "catch.hpp" #include <chig/Context.hpp> #include <chig/GraphFunction.hpp> #include <chig/LangModule.hpp> using namespace chig; TEST_CASE("JsonSerializer", "[json]") { GIVEN("A default constructed Context and GraphFunction named hello") { Context c; GraphFunction func(c, "hello"); ...
<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 <tchar.h> #include "webkit/glue/plugins/plugin_list.h" #include "base/basictypes.h" #include "base/command_line.h" #inc...
<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 "v8_binding.h" #include "AtomicString.h" #include "CString.h" #include "MathExtras.h" #include "PlatformString.h" #inclu...
<commit_before>/* * (c) Copyright Ascensio System SIA 2010-2019 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of th...
<commit_before>/* This file is part of the Pangolin Project. * http://github.com/stevenlovegrove/Pangolin * * Copyright (c) 2011 Steven Lovegrove, Richard Newcombe * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Softwa...
<commit_before>#include "string_util.h" #include <cmath> #include <cstdarg> #include <array> #include <memory> #include <sstream> #include "arraysize.h" namespace benchmark { namespace { // kilo, Mega, Giga, Tera, Peta, Exa, Zetta, Yotta. const char kBigSIUnits[] = "kMGTPEZY"; // Kibi, Mebi, Gibi, Tebi, Pebi, Exbi,...
<commit_before>#include "file_handler.hpp" #include "elf_file.hpp" FileHandler::FileHandler() {}; bool FileHandler::open(const std::string &filename) { FileUnit *file; /* check file type * TODO: use error codes instead of bool */ file = new ELFFile(filename); if (file->getOpenStatus()) { ...
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "frtconnectionpool.h" #include <vespa/vespalib/util/host_name.h> #include <vespa/vespalib/util/size_literals.h> #include <vespa/fnet/frt/supervisor.h> #include <vespa/fnet/transport.h> #incl...
<commit_before>/* Timbre.cc: Sound timbre handling * * Copyright 2016, 2018 Vincent Damewood * * 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/LIC...
<commit_before>#include <vector> #include <iostream> #include <algorithm> #include <limits> using namespace std; #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include "treehash/boosted-treehash.hh" extern "C" { #include "timers.h" } void fill_random(uint64_...
<commit_before>/* * Copyright (C) 2010-2011 Dmitry Marakasov * * This file is part of glosm. * * glosm 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 y...
<commit_before>/* * Copyright (c) Facebook, Inc. and its 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 req...
<commit_before>/** @file SimpleStepper.cpp @author Evert Chin @brief Fast and Simple Stepper Driver * This file may be redistributed under the terms of the MIT license. * A copy of this license has been included with this distribution in the file LICENSE. */ #include "SimpleStepper.h" #include "T...
<commit_before> #include "cache_size.h" #include <iostream> int main(int argc, char* argv[]) { static constexpr long kCacheSize = 8 * 1024 * 1024; static constexpr long kIterations = 2; static constexpr long kTestSizes = 4; std::vector<int> candidates(kTestSizes); for (int i = 0; i < kTestSizes; i++) { ...
<commit_before>#include "SoundService.hpp" #include "Resource.hpp" #include "Log.hpp" namespace Core { SoundService::SoundService() : mEngineObj(NULL), mEngine(NULL), mOutputMixObj(NULL), mBGMPlayerObj(NULL), mBGMPlayer(NULL), mBGMPlayerSeek(NULL), mPlayerObj(), mPlayer(), mPlayerQu...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/* * This audio sample firstly makes use of the audio::DelayNode, but also demonstrates some more complex methods of control, * like feedback and controlling an audio::Param with other audio::Node's. * * author: Richard Eakin (2014) */ #include "cinder/app/AppNative.h" #include "cinder/app/Renderer...
<commit_before>// Copyright (c) 2013, Andre Gaschler, Quirin Fischer // 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 no...
<commit_before>#include <shogun/classifier/mkl/MKLClassification.h> #ifdef USE_SVMLIGHT #include <shogun/classifier/svm/SVMLight.h> #endif //USE_SVMLIGHT #include <shogun/classifier/svm/LibSVM.h> using namespace shogun; CMKLClassification::CMKLClassification(CSVM* s) : CMKL(s) { if (!s) { #ifdef USE_SVMLIGHT s=ne...
<commit_before>#include "ros/ros.h" #include <gtest/gtest.h> #include "geometry_msgs/Wrench.h" #include "maelstrom_msgs/ThrusterForces.h" class AllocatorTest : public ::testing::Test { public: AllocatorTest() { pub = nh.advertise<geometry_msgs::Wrench>("rov_forces", 10); sub = nh.subscribe("thr...
<commit_before>#include "console.h" #include "util/bitmap.h" #include "util/font.h" #include "util/funcs.h" #include "util/file-system.h" #include "input/input-manager.h" #include "input/input-map.h" #include "globals.h" #include <string> #include <sstream> using namespace std; namespace ConsoleInput{ static int Togg...
<commit_before> #include "EthStratumClient.h" using boost::asio::ip::tcp; EthStratumClient::EthStratumClient(GenericFarm<EthashProofOfWork> * f, string const & host, string const & port, string const & user, string const & pass) : m_socket(m_io_service) { m_host = host; m_port = port; m_user = user; m_pass = pa...
<commit_before>#include <node.h> #include <initializer_list> #include "Pump.h" #include "calculator/PumpEfficiency.h" #include "calculator/OptimalPumpEfficiency.h" #include "calculator/MotorRatedPower.h" #include "calculator/OptimalMotorRatedPower.h" #include "calculator/MotorShaftPower.h" #include "calculator/Optimal...
<commit_before>//******************************************************************* //glfont2.cpp -- glFont Version 2.0 implementation //Copyright (c) 1998-2002 Brad Fish //See glfont.html for terms of use //May 14, 2002 //******************************************************************* //STL headers #incl...
<commit_before>/************************************************************************* * * $RCSfile: impdialog.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2004-09-08 15:59:21 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/** * @author See Contributors.txt for code contributors and overview of BadgerDB. * * @section LICENSE * Copyright (c) 2012 Database Group, Computer Sciences Department, University of Wisconsin-Madison. */ #include <memory> #include <iostream> #include "buffer.h" #include "exceptions/buffer_exceed...
<commit_before>#include <cstdio> #include <memory> #include <boost/filesystem.hpp> #include "paxos/bootstrap.hpp" #include "paxos/handler.hpp" #include "paxos/serialization.hpp" namespace paxos { void EmptyDecreeHandler::operator()(std::string entry) { } CompositeHandler::CompositeHandler() : handlers() { }...
<commit_before>/* * Circles implementation for the GauntletII project. */ #include "Effect.h" #define SPRITE_WIDTH 9 #define SPRITE_HEIGHT 9 static uint8_t heartData[SPRITE_WIDTH * SPRITE_HEIGHT] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00,...
<commit_before>/* * Copyright(c) Records For Living, Inc. 2004-2012. All rights reserved */ // TEST Foundation::Traveral #include "Stroika/Foundation/StroikaPreComp.h" #include "Stroika/Foundation/Debug/Assertions.h" #include "Stroika/Foundation/Configuration/Enumeration.h" #include "Stroika/Foundat...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbregisterednamesconfig.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 17:00:31 $ * * The Contents of this...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>#include "VGroup.h" #include "VGlobal.h" using std::vector; VBase* VGroup::Add(VBase* object) { if (object == nullptr) { VLog("Cannot add nullptr to a VGroup"); return nullptr; } if (object == this) { VLogError("Cannot add itself to it's own list"); return nullptr; } if (GetIndexOfItem...
<commit_before>/********************************************************************************* - Contact: Brigitte Cheynis b.cheynis@ipnl.in2p3.fr - Link: http - Raw data test file : /afs/cern.ch/user/c/cheynis/public/run546.dat - Reference run number : 6360 - Run Type: PHYSICS -...
<commit_before>//===- DataStructure.cpp - Analysis for data structure identification -------=// // // Implement the LLVM data structure analysis library. // //===----------------------------------------------------------------------===// #include "llvm/Analysis/DataStructure.h" #include "llvm/Module.h" #include "llvm/...
<commit_before>//===-- R600ControlFlowFinalizer.cpp - Finalize Control Flow Inst----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>#include <stdio.h> #include <fcntl.h> #include <gphoto2/gphoto2-camera.h> Camera *camera; GPContext *context; void error_func (GPContext *context, const char *format, va_list args, void *data) { fprintf (stderr, "*** Contexterror ***\n"); vfprintf (stderr, format, args); fprintf (stderr, "\n"); } ...
<commit_before>#pragma once #include <charconv> #pragma GCC diagnostic push #ifdef __clang__ #pragma GCC diagnostic ignored "-Wold-style-cast" #pragma GCC diagnostic ignored "-Wimplicit-int-conversion" #pragma GCC diagnostic ignored "-Wshift-sign-overflow" #pragma GCC diagnostic ignored "-Wundef" #endif #include <da...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2013 Jolla Ltd. ** Contact: Aaron Kennedy <aaron.kennedy@jollamobile.com> ** ** This file is part of lipstick. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms ...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>/*++ Copyright (c) 2006 Microsoft Corporation Module Name: trace.cpp Abstract: Trace message support. Author: Leonardo de Moura (leonardo) 2006-09-13. Revision History: --*/ #include"trace.h" #include"str_hashtable.h" #ifdef _TRACE std::ofstream tout(".z3-trace"); #endif bool g_ena...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2017 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
<commit_before><commit_msg>Delete rgb_send.cpp<commit_after><|endoftext|>
<commit_before>// // XorLinkedList.h // FunnyCoding // // Created by Xplorld on 2016/3/27. // Copyright © 2016年 xplorld. All rights reserved. // #ifndef XorLinkedList_hpp #define XorLinkedList_hpp #include <utility> #include <iterator> #include <cstdint> #include <cassert> #include <tuple> #include <type_traits> ...
<commit_before>/* Copyright (c) 2017, EPL-Vizards * 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 ...
<commit_before>/**************************************************************************** This file is part of the QtMediaHub project on http://www.gitorious.org. Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).* All rights reserved. Contact: Nokia Corporation (qt-info@nokia.com)** You may use ...
<commit_before>#include "threadedjobmixin.h" #include <qgpgme/dataprovider.h> #include <gpgme++/data.h> #include <QString> #include <QStringList> #include <QByteArray> #include <boost/mem_fn.hpp> #include <algorithm> using namespace Kleo; using namespace GpgME; using namespace boost; static const unsigned int Ge...
<commit_before>/** Canvas : Basic UI canvas specific to the MoMa. * * Created by Mickal Tits on 03/07/2015 * @file mmCanvas.cpp * @brief MotionMachine source file for Canvas class. * @copyright Numediart Institute, UMONS (c) 2014-2015 * */ #include "mmCanvas.h" using namespace std; using namespace MoMa; /** Static v...
<commit_before>#include <time.h> // NOT TESTED!!!!!! class diddy { public: // only accurate to 1 second static int systemMillisecs() { time_t seconds; seconds = time (NULL); return seconds * 1000; } static void flushKeys() { for( int i=0;i<512;++i ){ app->input->keyStates[i]&=0x100...
<commit_before>#include "Tester.h" #include <algorithm> extern bool Verbose; extern bool ExtraVerbose; MockCallback::MockCallback() { // Start locked. The locked will be released when waiting for parsing to be completed m_parsingMutex.lock(); } bool MockCallback::waitForParsingComplete() { std::unique_lo...
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces. * Copyright (C) 2005, 2006, 2007 Roman Schindlauer * Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner * Copyright (C) 2009, 2010 Peter Schüller * * This file is part of dlvhex. * * dlvhex is free software; you can redistr...
<commit_before>/* * TestLARObj.cpp * * Created on: 08 apr 2016 * Author: Salvati Danilo * License: MIT License https://opensource.org/licenses/MIT * */ #include "catch.hpp" #include "IOInterfaces/LARObj.h" #include <sys/stat.h> TEST_CASE( "Read and write Obj files", "[LARObj]" ) { LAR::IO::LARObj larObj; ...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>#define CATCH_CONFIG_MAIN #include "catch.hpp" #include "kangaru/kangaru.hpp" TEST_CASE("Injected singles are the same returned by the container", "[dependency]") { struct Service1 {}; struct Service2 { Service2() = default; Service2(Service1& s) : s1{&s} {} Service1* s1 = nullptr; }; s...
<commit_before>#include <iostream> #include <gtest/gtest.h> #include <thread> #include <chrono> #include <msgrpc/thrift_struct/thrift_codec.h> using namespace std; using namespace std::chrono; #include "demo/demo_api_declare.h" #if 0 #define ___methods_of_interface___IBuzzMath(_, ...) \ _(1, R...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2009, 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...
<commit_before>#include <QtTest/QtTest> #include <QtTest/qtestcase.h> #include <QSignalSpy> #include <QHostInfo> #include <QDebug> #include "websocket.h" #include "unittests.h" class ComplianceTest : public QObject { Q_OBJECT public: ComplianceTest(); private Q_SLOTS: void initTestCase(); void cleanu...
<commit_before> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <strings.h> #include <string> #include <sstream> #include <signal.h> #include "config/cmd_args.hpp" #include "config/code.hpp" #include "utils.hpp" #include "worker_pool.hpp" #include "buffer_cache/mirrored.hpp" #in...
<commit_before>#include <phypp.hpp> int phypp_main(int argc, char* argv[]) { if (argc < 2) { print("usage: median_sub <directory> [options]"); return 0; } std::string dir = file::directorize(argv[1]); vec1s files = dir+file::list_files(dir+"sci_reconstructed*-sci.fits"); if (files....
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: objectregistry.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2007-11-23 14:07:42 $ * * The Contents of this file ar...
<commit_before>/* * timing.cpp * * Copyright The Mbed TLS Contributors * Copyright (C) 2021, Arm Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You...
<commit_before>/************************************************************************* * * $RCSfile: SQLException.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: oj $ $Date: 2001-10-18 13:17:55 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>// Copyright 2019 Google LLC // // 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...