text
stringlengths
54
60.6k
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public License. See // LICENSE.TX...
<commit_before>/* - Fahre zu Position A - Mache dann Wandverfolgung bis Position B erreicht wird -- Falls Wandverfolgung nicht möglich, fahre direkt zu Position B - Wenn Position B erreicht, beende Wallfollowing und beende Task oder beginne von vorn */ #include "taskwallnavigation.h" #include ...
<commit_before>/** * \file affordance_safari.cpp * \brief * * \author Andrew Price * \date November 27, 2013 * * \copyright * * Copyright (c) 2013, Georgia Tech Research Corporation * All rights reserved. * * This file is provided under the following "BSD-style" License: * Redistribution and use in source ...
<commit_before> #include "stdafx.h" #include "Math.h" #include <D3dx9math.h> using namespace common; //-------------------------------- // Constructor //-------------------------------- Quaternion::Quaternion() { } //Quaternion::Quaternion //-------------------------------- // //-------------------------------- Qua...
<commit_before>/************************************************************************* * * $RCSfile: mergedcomponentdata.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2003-03-19 16:18:48 $ * * The Contents of this file are made available subject to the terms of * either of the foll...
<commit_before>#ifndef TOPAZ_ALGO_STATIC_HPP #define TOPAZ_ALGO_STATIC_HPP #include <cstddef> #include <tuple> namespace tz::algo { template<std::size_t Begin, std::size_t End, typename Functor> constexpr void static_for(const Functor& function) { if constexpr(Begin < End) { function(std::integral_constant<...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>#include "factory.h" #include "opencv_video_source.h" #include "opencv_video_target.h" #ifdef USE_FFMPEG #include "ffmpeg_video_target.h" #endif namespace gg { IVideoSource * Factory::_sources[2] = { NULL, NULL }; IVideoSource * Factory::connect(enum Device type) { int device_id = -1; // default v...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TColumnsHelper.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 04:58:27 $ * * The Contents of this file are...
<commit_before>/* Copyright (C) 2000-2001 Dawit Alemayehu <adawit@kde.org> Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> Copyright (C) 2007, 2008 Apple Inc. All rights reserved. Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> This program is free software; you can redistribute it and/o...
<commit_before> #include "app/gibbs/gibbs_sampling.h" #include "app/gibbs/single_node_sampler.h" #include "io/pb_parser.h" #include "common.h" #include <unistd.h> #include <fstream> #include "timer.h" void load_fg(dd::FactorGraph * const _p_fg, const dd::CmdParser & cmd, const int & nodeid){ std::cout << "LOADING F...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing ** ** This file is part of the Qt Build Suite. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this fi...
<commit_before>#include "permuter.h" #include <sys/stat.h> #include <stdio.h> #include <fstream> #include <vector> #include <iostream> #include <algorithm> #include <iterator> #include <boost/algorithm/string.hpp> #include <codecvt> #include <locale> #include <clocale> #include <cstdlib> #define ENDL "\n" Permuter::P...
<commit_before>// Copyright (c) 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. // This file was forked off the Mac port. #include "webkit/tools/test_shell/test_webview_delegate.h" #include <gtk/gtk.h> #include "...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2014. // 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) //=================================...
<commit_before>#include "aquila/global.h" #include "aquila/source/SignalSource.h" #include "aquila/source/Frame.h" #include "aquila/source/FramesCollection.h" #include <unittestpp.h> #include <algorithm> bool equalSamples(Aquila::Frame frame, Aquila::SampleType arr[]) { return std::equal(std::begin(frame), std::en...
<commit_before>#include "Hardware.h" #define PIN_LED_R 14 #define PIN_LED_G 13 #define PIN_LED_B 10 #define PIN_MOTOR_I_PWM 22 #define PIN_MOTOR_I_DIR 27 #define PIN_MOTOR_J_PWM 24 #define PIN_MOTOR_J_DIR 28 #define PIN_MOTOR_K_PWM 25 #define PIN_MOTOR_K_DIR 29 #define PIN_LINE_LED 12 #define PIN_BUZZER 11 const i...
<commit_before>#include <gtest/gtest.h> #include "agent.h" #include "../test_context.h" #include "../test_agents/test_agent.h" namespace cyclus { namespace toolkit { TEST(TimeSeriesTests, Power) { TestContext tc; Agent* a = new TestAgent(tc.get()); RecordTimeSeries<POWER>(a, 42.0); } TEST(TimeSeriesTests, Ra...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File: NekConstantSizedVector.hpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Ae...
<commit_before>#include "CascadeClassifierWrap.h" #include "OpenCV.h" #include "Matrix.h" #include <nan.h> Persistent<FunctionTemplate> CascadeClassifierWrap::constructor; void CascadeClassifierWrap::Init(Handle<Object> target) { NanScope(); Local<FunctionTemplate> ctor = NanNew<FunctionTemplate>(CascadeCla...
<commit_before>/* This file is part of MMOServer. For more information, visit http://swganh.com Copyright (c) 2006 - 2010 The SWG:ANH Team MMOServer 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 v...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "rpcnetwork.h" #include "rpcservicepool.h" #include "rpcsendv1.h" #include "rpcsendv2.h" #include "rpctargetpool.h" #include "rpcnetworkparams.h" #include <vespa/messagebus/erro...
<commit_before>#include "application.h" #ifdef Q_OS_WIN #include <windows.h> //need for support console (It's Windows baby) #endif #include <iostream> #include <getopt.h> #define STRINGIFY(x) #x #define DEF_TO_STR(x) STRINGIFY(x) Application::Application(int &argc, char **argv) : QGuiApplication(argc...
<commit_before>#ifndef INCLUDE_AL_GRAPHICS_ASSET_HPP #define INCLUDE_AL_GRAPHICS_ASSET_HPP /* Allocore -- Multimedia / virtual environment application class library Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB. Copyright (C) 2012. The Regents of the University of California. All ri...
<commit_before>/* @doc Computation of the dynamic aspect for a robot. This class will load the description of a robot from a VRML file following the OpenHRP syntax. Using ForwardVelocity it is then possible specifying the angular velocity and the angular value to get the absolute position, and absolute vel...
<commit_before>/*========================================================================= * * Copyright UMC Utrecht and contributors * * 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><commit_msg>Further prune optimizations.<commit_after><|endoftext|>
<commit_before>#include "GolfBall.hpp" #include "../Resources.hpp" #include "Default3D.vert.hpp" #include "Default3D.geom.hpp" #include "Default3D.frag.hpp" #include "glm/gtc/constants.hpp" #include "../Util/Log.hpp" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/quaternion.hpp> GolfBall::GolfBall(BallType ...
<commit_before>/** * COMP 4002 - Assignment 2 * * Task 1: Render a sphere at (100, 10, 100) using perspective projection. * Task 2: Render a hierarchical object beside the sphere from Task 1. * Task 3: Create a camera class with yaw, pitch and roll. * Task 4: Bonus: Use keys 1-5 to select robot arm, then z & x to...
<commit_before>/*========================================================================= Program: ParaView Module: vtkSelection.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT...
<commit_before>// Copyright 2016 The Mumble Developers. All rights reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file at the root of the // Mumble source tree or at <https://www.mumble.info/LICENSE>. #include "../mumble_plugin_win32.h" static int fetch(f...
<commit_before>#include <iostream> #include <string> #include "HammingCode.h" using namespace std; /* void addParity(bool d1, bool d2, bool d3, bool d4, bool d5, bool d6, bool d7, bool d8, bool & p1, bool & p2, bool & p4, bool & p8); void checkParity(bool &d1, bool &d2, bool &d3, bool &d4, bool &d5, bool &d6, b...
<commit_before>#include "data_type.hpp" #include <bitcoin/format.hpp> namespace libbitcoin { // readable_data_type void readable_data_type::set(uint32_t value) { data_buffer_ = uncast_type(value); prepare(); } void readable_data_type::set(const data_chunk& data) { extend_data(data_buffer_, data); p...
<commit_before>#include <tesseract/baseapi.h> #include <leptonica/allheaders.h> #include <string> #include <libgen.h> int main(int argc, char *argv[]) { if(argc != 3) { printf("USAGE: %s imagefile outputdir\n", argv[0]); return 1; } std::string input_filename = std::string(argv[1]); std::string input_basename =...
<commit_before>/* Copyright 2016 Stanford University, NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before>#ifndef BUFFER_CACHE_ALT_EVICTER_HPP_ #define BUFFER_CACHE_ALT_EVICTER_HPP_ #include <stdint.h> #include <functional> #include "buffer_cache/alt/eviction_bag.hpp" #include "concurrency/cache_line_padded.hpp" #include "concurrency/pubsub.hpp" #include "threading.hpp" class cache_balancer_t; namespace...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2002 * Copyright by ESO (in the framework of the ALMA collaboration) * and Cosylab 2002, All rights reserved * * This library is fre...
<commit_before>/* OpenSceneGraph example, osgcluster. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify...
<commit_before>/* ModbusIP_ESP8266.cpp - Source for Modbus IP ESP8266 AT Library Copyright (C) 2015 Andr Sarmento Barbosa */ #include "ModbusIP_ESP8266AT.h" ModbusIP::ModbusIP() { } void ModbusIP::config(ESP8266 &wifi, String ssid, String password) { //Check errors //Enable serial log wifi.setOp...
<commit_before>#include <algorithm> #include <vector> #include "caffe/layer.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> void SliceLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { co...
<commit_before>//===- lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp -------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>#pragma once #include <b1/session/shared_bytes.hpp> namespace eosio::session { // An immutable structure to represent a key/value pairing. class key_value final { public: friend key_value make_kv(shared_bytes key, shared_bytes value); template <typename Key, typename Value, typename Allocator>...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File: NekVectorFwd.hpp // // 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,...
<commit_before>#include "scenes.h" #include <cstdio> #include <cmath> /* MC::MC() { } MC::MC(ftRender::SubImage image) { im = image; this->body = NULL; this->bodyType = FT_Kinematic; setPosition(0, 0); setRectSize(ftVec2(1.0f, 1.0f)); scale = 1.0f; } void MC::draw() { ftVec2 pos = this->getPosition(); drawIm...
<commit_before>/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2018 David Shah <david@symbioticeda.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 permiss...
<commit_before>//===- PromoteMemoryToRegister.cpp - Convert memory refs to regs ----------===// // // This file is used to promote memory references to be register references. A // simple example of the transformation performed by this function is: // // FROM CODE TO CODE // %X = all...
<commit_before>#include <gtest/gtest.h> #include <archie/utils/unique_tuple.h> #include <archie/utils/typeholder.h> #include <archie/utils/get.h> #include <archie/utils/select.h> #include <string> #include <memory> #include <list> namespace detail { struct PackedStruct { struct Id : archie::utils::TypeHolder<unsigne...
<commit_before>#include "TATUInterpreter.h" TATUInterpreter::Interpreter(unsigned char *string, unsigned int length){ int i; switch(string[0]){ case COMMAND_SET: command.OBJ.TYPE = TATU_SET; if(string[4] == CODE_INFO){ command.OBJ.CODE = TATU_CODE_INFO; ...
<commit_before>#include <assert.h> #include <algorithm> #include <cmath> #include <iostream> #include <iomanip> #include <set> #include <ftl/ftl.h> #include "timestamp.h" // Find the sum of all the multiples of 3 or 5 below 1000. int problem1() { return ftl::range(1000) .filter_lazy([](let x){ return x % 3 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SlideSorterView.hxx,v $ * * $Revision: 1.13 $ * * last change: $Author: kz $ $Date: 2008-04-03 14:38:09 $ * * The Contents of this file a...
<commit_before>/** * @file Cognition.cpp * * @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a> * Implementation of the class Cognition */ #include "Cognition.h" #include "Tools/Debug/DebugDrawings3D.h" ///////////////////////////////////// // Modules ////////////...
<commit_before>#include "StdAfx.h" #include "Controller.h" #include "ControllerManager.h" #include "ControllerFilters.h" #include "ObstacleContext.h" #include "RigidDynamic.h" #include "Shape.h" #include "ControllerState.h" #include "ControllerStats.h" using namespace System::Linq; Controller::Controller(PxController...
<commit_before>// run in subdir as // root -b -q -l ../../../../lydia/workspace-run2-ggf.root '../time_higgs_lydia.C(1,1)' using namespace RooFit; // only used for dataset Lydia 2: using namespace RooStats; using namespace HistFactory; const char* project_dir = "/Users/pbos/projects/apcocsm"; const char* run_subdir ...
<commit_before>#pragma once //=====================================================================// /*! @file @brief R8C/M110AN, R8C/M120AN グループ・コンパレーターレジスタ定義 @n Copyright 2015 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #includ...
<commit_before>/************************************************************************* * * $RCSfile: svgwriter.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2004-05-03 13:53:17 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include "Nonlinear3D.h" #include "SolidModel.h" #include "Problem.h" #include "SymmIsotropicElasticityTensor.h" #include "VolumetricModel.h" namespace Elk { namespace SolidMechanics { Nonlinear3D::Nonlinear3D( const std::string & name, InputParameters parameters ) :Elemen...
<commit_before>/* Kopete Yahoo Protocol Receive a file Copyright (c) 2006 André Duffeck <duffeck@kde.org> ************************************************************************* * * * This library is free software; you can...
<commit_before>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QIMESSAGING_DETAILS_GENERICOBJECT_HXX_ #define _QIMESSAGING_DETAILS_GENERICOBJECT_HXX_ #include <qimessaging/buffer.hpp> #include <qimessaging/future.hpp> namespace qi { template<typename T> Gene...
<commit_before>#pragma once #include "common/SignalVector.hpp" #include <QAbstractTableModel> #include <QStandardItem> #include <boost/optional.hpp> #include <pajlada/signals/signalholder.hpp> namespace chatterino { template <typename TVectorItem> class SignalVectorModel : public QAbstractTableModel, ...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2016 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before><commit_msg>fix a whole screen flicker when enabling TAA<commit_after><|endoftext|>
<commit_before> /* * random_gen_test.cpp - Tests for random number generator * * This file is not performance critical and thus could be compield with lower * level optimization in order to enable assert() */ #include "test_suite.h" /* * TestRandCorrectness() - Tests whether the generator gives corre...
<commit_before>/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as publis...
<commit_before>#ifdef _WIN32 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) #endif #include <iostream> #include <fstream> #include <cctype> #include <algorithm> #include <sys/stat.h> #include "file.hpp" #include "context.hpp" #include "sass2scss/sass2scss.h" namespace Sass { namespace File { using namespa...
<commit_before>/* * Copyright (c) 2013 NEC Corporation * All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html */ #include <...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<commit_before>//===--- TerminalReaderWin.cpp - Input From Windows Console -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// =========================================================================== // (C) 1996-98 Vienna University of Technology // =========================================================================== // NAME: bboxarea // TYPE: c++ code // PROJECT: Bounding Box Area // CONTENT: ...
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() #include "catch.hpp" #include <vector> #include "tclap/ValueArg.h" #include "Simulation.hpp" TEST_CASE("The Simulation parses command line arguments", "[Simulation]") { warped::Simulation* s = nullptr; std::vector<const char*>...
<commit_before>// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <stdio.h> #include <stdlib.h> #include <vespa/vespalib/net/socket_address.h> #include <vespa/vespalib/stllike/string.h> #include <vespa/vespalib/util/stringfmt.h> #include <set...
<commit_before>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<commit_before>//-------------------------------------------------------------------------------------------------- /** * @file envVars.cpp * * Environment variable helper functions used by various modules. * * Copyright (C) Sierra Wireless Inc. */ //---------------------------------------------------------------...
<commit_before>// Copyright Daniel Wallin 2009. Use, modification and distribution is // subject to 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) #include "test.hpp" #include <luabind/luabind.hpp> #include <luabind/class_info.hpp> s...
<commit_before>#include "test.hh" #include "../src/controller.cc" #include "mock-ptrace.hh" static int test_thread(void *priv) { return 0; } TEST(controllerForkError) { IController &controller = IController::getInstance(); MockPtrace &ptrace = (MockPtrace &)IPtrace::getInstance(); EXPECT_CALL(ptrace, forkAndAtt...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // 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 Ge...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // 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 Ge...
<commit_before>/* * Recognizer.cc * * Copyright (C) 2015 Linas Vepstas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and including the * exceptions * at http://opencog.org/...
<commit_before>#include <iostream> #include <stdlib.h> #include "color.h" //#include <conio.h> using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; int checkwin(); void board(); int main() { int player = 1,i,choice; char mark; do { board(); player=(player%2)?1:2; cout << "P...
<commit_before>// Copyright © 2016-2017, Prosoft Engineering, Inc. (A.K.A "Prosoft") // 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 abo...
<commit_before>#include "dynet/io.h" #include "dynet/tensor.h" #include "dynet/except.h" #include "dynet/str-util.h" using namespace std; using namespace dynet; // Precision required not to lose accuracy when serializing float32 to text. // We should probably use std::hexfloat, but it's not supported by some // older...
<commit_before>#include <Python.h> #include <vector> #include <iostream> #include <cmath> #define file_num 2 #define threshhold 0.6 #define allowable_difference 100 using namespace std; struct peak{ char* chr; int chr_start; int chr_end; float score; float signal; float q_value; float error_rate; ...
<commit_before>/** * Copyright (c) 2017 DeepCortex GmbH <legal@eventql.io> * Authors: * - Paul Asmuth <paul@eventql.io> * - Laura Schlimmer <laura@eventql.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license")...
<commit_before>#include <gtest/gtest.h> #include <Semaphore.hpp> #include <Error.hpp> ////////////////////////////////////////////////////////////////// TEST(Semaphore, test_01) { using namespace linux::posix; Name n("/ARTA"); OpenOptions f; Semaphore s1(n, false, f, 4); Semaphore s2(n, false)...
<commit_before>/* * Copyright 2012-2013 BrewPi/Elco Jacobs. * * This file is part of BrewPi. * * BrewPi 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 License, or * (at your op...
<commit_before>#include "ofAppRunner.h" //======================================================================== // static variables: ofBaseApp * OFSAptr; bool bMousePressed; bool bRightButton; int width, height; ofAppBaseWindow * window = NULL; //============================================...
<commit_before>#include <stdexcept> #include <QClipboard> #include <QMessageBox> #include <QSettings> #include <QSharedPointer> #include <QWidget> #include <CorpusWidget.hh> #include <DactMacrosModel.hh> #include <DactTreeScene.hh> #include <DactTreeView.hh> #include <DependencyTreeWidget.hh> #include <FilterModel.hh...
<commit_before>// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>#include "TextField.hpp" #include <Engine/Geometry/Rectangle.hpp> #include <Engine/Font/Font.hpp> #include <Engine/Manager/Managers.hpp> #include <Engine/Manager/ResourceManager.hpp> #include <Engine/Util/Input.hpp> #include <Engine/Physics/Rectangle.hpp> using namespace GUI; TextField::TextField(Widg...
<commit_before>#ifndef TESTS_SAMPLE_PROBLEM_HPP #define TESTS_SAMPLE_PROBLEM_HPP // Generates matrix for poisson problem in a unit cube. template <typename real, typename index> int sample_problem( ptrdiff_t n, std::vector<real> &val, std::vector<index> &col, std::vector<inde...
<commit_before>#pragma once #include <glm/vec3.hpp> #include <memory> #include "../linking.hpp" class btCollisionShape; class PhysicsManager; namespace Physics { class Trigger; /// Represents a shape for physics objects and facilitates creation of /// underlying types. class Shape { friend c...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2019, Image Engine Design 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:...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "PlatformWin.h" #include "Framework.h" #if defined(_WINDOWS) namespace Foundation { std::string PlatformWin::GetApplicationDataDirectory() { LPITEMIDLIST pidl;...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include <algorithm> #include <sys/stat.h> #include "CompileConfig.h" #if defined(OUZEL_PLATFORM_OSX) #include <sys/types.h> #include <pwd.h> #include <CoreServices/CoreServices.h> #elif defined(OUZEL_PLATFORM_W...
<commit_before>/**************************************************************************** * Copyright (c) 2012-2018 by the DataTransferKit authors * * All rights reserved. * * ...
<commit_before>// Copyright 2017 Adam Smith // 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 agree...
<commit_before>/* * Copyright (c) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyri...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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 "assert.h" #include "chainparams.h" #include "main.h" #include...
<commit_before>// Copyright (c) 2009-2016 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Developers // Copyright (c) 2015-2016 Silk Network // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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 "assert.h" #include "chainparams.h" #include "main.h" #include...