text
stringlengths
54
60.6k
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2008/06/20 // Author: Sriram Rao // // Copyright 2008-2012,2016 Quantcast Corporation. All rights reserved. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Ve...
<commit_before>/* * Copyright (c) 2006, Mathieu Champlon * 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 ...
<commit_before>#include "sellpopup.h" #include "ui_sellpopup.h" #include <list> Sellpopup::Sellpopup(QWidget *parent, Player *player, SubjectBlock *block) : QWidget(parent), ui(new Ui::Sellpopup) { ui->setupUi(this); layout = new QVBoxLayout(ui->scrollAreaWidgetContents); // initialize this->p...
<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 (C) 2015 Dario Oliveri See copyright notice in LICENSE.md *******************************************************************************/ #pragma once #include <exception> //uncomment following line to disa...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkNewickTreeReader.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#pragma once #include "depthai/pipeline/Node.hpp" // shared #include "depthai-shared/properties/StereoDepthProperties.hpp" #include "depthai/pipeline/datatype/StereoDepthConfig.hpp" namespace dai { namespace node { /** * @brief StereoDepth node. Compute stereo disparity and depth from left-right ima...
<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 mcompositor. ** ** If you have questions regarding the...
<commit_before>#include <QtGui> class Widget : public QWidget { Q_OBJECT public: Widget() { QWidget *stackWidget = new QWidget; stackWidget->setFixedSize(400, 300); button = new QPushButton("pushbutton", stackWidget); plainTextEdit = new QPlainTextEdit(stackWidget); ...
<commit_before>/** * \file * \brief STM32F0 chip vector table and default weak handlers * * \author Copyright (C) 2017 Cezary Gapinski cezary.gapinski@gmail.com * * \par License * 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...
<commit_before>/* This file is part of Kontact. Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> Copyright (c) 2005-2006,2008 Allen Winter <winter@kde.org> This program 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 Sof...
<commit_before>#include "Variant.h" #include <chrono> #include <thread> #include <mutex> #include <pqxx/pqxx> #include <boost/algorithm/string.hpp> using namespace std; using namespace chrono; using namespace vcflib; using namespace pqxx; /* CREATE TABLE public._2_variant ( bin integer, chr character varying...
<commit_before>/****************************************************************************** The MIT License(MIT) Embedded Template Library. https://github.com/ETLCPP/etl https://www.etlcpp.com Copyright(c) 2020 jwellbelove Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa...
<commit_before>#include "Field.h" #include <vtkImageData.h> #include <vtkImageExtractComponents.h> #include <vtkImageGradient.h> #include <vtkMetaImageReader.h> #include <vtkMetaImageWriter.h> #include <vtkSmartPointer.h> #include <vtkXMLImageDataReader.h> #include <itpp/itsignal.h> #include <itpp/itstat.h...
<commit_before>/* Copyright (c) 2006, 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>/* Copyright (c) 2006, 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>#include <iostream> #include <cmath> #include <algorithm> using namespace std; #define MAX_PAIR_NUM 1000 typedef struct Record { int pos; int pixel; } Record; int pixel_pair[MAX_PAIR_NUM][2]; int img_width; Record result[MAX_PAIR_NUM * 9]; bool cmp(const Record& a, const Record& b); int get_pix...
<commit_before>#include "otc/newick.h" #include "otc/util.h" #include "otc/test_harness.h" using namespace otc; class TestValidTreeStruct { const std::string filename; public: TestValidTreeStruct(const std::string & fn) :filename(fn) { } char runTest(const TestHarness &) const { std::ifstream inp; if...
<commit_before>#include "joystick.hpp" // #include "Rotate.h" #include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <vector> #include <string> #include <math.h> const int DEAD_ZONE = 16384; const int AXIS_MAX = 32767.0; using namespace ros; using namespace std; int main(int argc, char **argv) { // init ...
<commit_before>// EtherEvent - Easy to use password authenticated network communication between Arduinos and EventGhost Network Event Sender/Receiver and TCPEvents plugins: http://github.com/per1234/EtherEvent #define ETHEREVENT_NO_AUTHENTICATION //this is to prevent EtherEvent.cpp's include of EtherEvent.h from inclu...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved */ #include "../StroikaPreComp.h" #if defined (__GCC__) #include <cxxabi.h> #elif qPlatform_Windows #include <Windows.h> #include <Dbghelp.h> #endif #include "../Execution/Finally.h" #include "Demangle....
<commit_before>#include "coders_crux.gen.h" // Contains FB32 palette #include "number_font.h" #include "ElementCube.h" #include "Element.h" #include "periodic.h" /* Order of adding electrons according to WolframAlpha: 1. Right 2. Left 3. Top 4. Bottom Repeat pattern as needed. Also used when rendering lines for the co...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Klarälvdalens Datakonsult AB (KDAB). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Compositor. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of th...
<commit_before>#include "GameEngine.h" #include "entity/Fire.h" #include "entity/Character.h" #include "entity/Bomb.h" #include <cassert> namespace common { GameEngine::GameEngine() : QObject(), net::GameEventVisitor(), max_duration_(10 * 60 * 1000), // 10 minutes players_(), world_(new World(79...
<commit_before>/*************************************************************************** copyright : (C) 2004-2005 by Allan Sandfeld Jensen email : kde@carewolf.org ***************************************************************************/ /**************************************...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: formlayerexport.cxx,v $ * * $Revision: 1.18 $ * * last change: $Author: hr $ $Date: 2007-06-27 15:15:36 $ * * The Contents of this file a...
<commit_before>/* Copyright (C) 2014 Alexandr Akulich <akulichalexander@gmail.com> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SH...
<commit_before>/* This macro will add histograms from a list of root files and write them to a target root file. The target file is newly created and must not be identical to one of the source files. Syntax: hist_add targetfile source1 source2 ... Author: Sven A. Schmidt, sven.schmidt@cern.ch Date: ...
<commit_before>/* * This file is part of telepathy-accounts-kcm * * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/> * * 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...
<commit_before>/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * ...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 License, or (a...
<commit_before>#ifndef SCAN_IMPL_CPP #define SCAN_IMPL_CPP #include "scan.cpp" #include "../include/common.h" #include "../include/gpuOpenclLib.h" static void scanImpl(cl_mem d_input, int rLen, cl_mem d_output, struct clContext * context, struct statistic * pp) { preallocBlockSums(rLen, context); prescanA...
<commit_before>// // yssa_regalloc.cpp // // Created by Edmund Kapusniak on 27/03/2015. // Copyright (c) 2015 Edmund Kapusniak. All rights reserved. // #include "yssa_regalloc.h" #include <queue> #include <make_unique.h> #include "yssa.h" /* This is how we do register allocation: - We identify al...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: options.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2006-06-19 20:47:38 $ * * The Contents of this file are made a...
<commit_before>/* Generated from orogen/lib/orogen/templates/typekit/ros/Convertions.hpp */ #ifndef __OROGEN_GENERATED_<%= typekit.name.upcase %>_ROS_CONVERTIONS_HPP #define __OROGEN_GENERATED_<%= typekit.name.upcase %>_ROS_CONVERTIONS_HPP #include "Types.hpp" #include <boost/cstdint.hpp> #include <string> <% if !us...
<commit_before>/************************************************************************* * * $RCSfile: scriptinfo.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2004-09-17 14:52:19 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_HDD_TEST_LINEARELLIPTIC_BLOCK_SWIPDG_EXPECTATIONS_HH #define DUNE_HDD_TEST...
<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>#include "ConfigShardServer.h" QuorumInfo::QuorumInfo() { quorumID = 0; paxosID = 0; needCatchup = false; unused1 = 0; unused2 = 0; unused3 = 0; } bool QuorumInfo::ReadList(ReadBuffer& buffer, List<QuorumInfo>& quorumInfos) { unsigned i, length; int re...
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 2006. 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 <boost/python.hpp> #include <libtorrent/session.hpp> #include <...
<commit_before>/* * Copyright © 2012 Intel Corporation * * 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, mod...
<commit_before>#include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <signal.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include "char_public.h" #define ERR_EXIT(m) \ do \ { \ pe...
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE #include "Framework.h" #include "SceneAPI.h" #include "IComponentFactory.h" #include "SceneWidgetComponents.h" #include "EC_WidgetCanvas.h" #include "EC_WebView.h" #include "EC_SlideShow.h" #include "EC_WidgetBillboard.h" exter...
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 2006. 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 <libtorrent/session.hpp> #include <libtorrent/torrent.hpp> #inc...
<commit_before>#include <string> #include <iostream> #include <sstream> #ifdef HAVE_BOOST #include <boost/program_options.hpp> #endif #include "CmdSession.h" #include <SmurffCpp/Predict/PredictSession.h> #include <SmurffCpp/Sessions/SessionFactory.h> #include <SmurffCpp/Configs/Config.h> #include <SmurffCpp/Utils/Er...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File SharedArray.hpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Scientific Computing and Imaging Institute, // University of Utah (USA) and Department o...
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 2006. 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 <boost/python.hpp> #include <libtorrent/session.hpp> #include <...
<commit_before>/************************************************************************* * * $RCSfile: xmlitemm.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: rt $ $Date: 2004-07-12 13:36:43 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> */ #include <uavcan_lpc11c24/clock.hpp> #include <chip.h> #include "internal.hpp" namespace uavcan_lpc11c24 { namespace clock { namespace { bool initialized = false; bool utc_set = false; int32_t utc_correction_usec_per_overflow_x16 ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File: NekLinSys.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, Im...
<commit_before>#pragma once #include <type_traits> #include <vector> #include <initializer_list> #include <cstddef> #include <algorithm> #include <iterator> #include <utility> #include <memory> #include <new> namespace helene { template <class T, std::size_t StackBufferSize = sizeof(std::vector<T>)> class small_vec...
<commit_before>/** * Appcelerator Titanium Mobile * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include <jni.h> #include <v8.h> #include "JNIUtil.h" #include "TypeCo...
<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>// ------------------------------------------------------------------------- // @FileName : NFCLogModule.cpp // @Author : LvSheng.Huang // @Date : 2012-12-15 // @Module : NFCLogModule // @Desc : // -------------------------...
<commit_before>#include "gtest/gtest.h" #include "c7a/data/data_manager.hpp" using namespace c7a::data; TEST(DataManager, GetLocalBlock_FailsIfNotFound) { DataManager manager; ASSERT_ANY_THROW(manager.GetLocalBlocks<int>(0)); } TEST(DataManager, GetLocalEmitter_FailsIfNotFound) { DataManager manager; ...
<commit_before>// Copyright (c) 2015-2019 Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/sequences/ #ifndef TAO_SEQ_FOLD_HPP #define TAO_SEQ_FOLD_HPP #include <type_traits> #include "integer_sequence.hpp" #include "make_integer_sequence.hpp" #include "select.hpp" namespace tao { ...
<commit_before>// Copyright (c) 2013 The Chromium Embedded Framework 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 "include/cef_scheme.h" #include "base/file_util.h" #include "base/files/scoped_temp_dir.h" #include ...
<commit_before>/// /// @file has_openmp.cpp /// @brief Used to check if MSVC compiler supports OpenMP. /// /// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <omp.h> #include <iostream>...
<commit_before> #include <iostream> #include <algorithm> #include <memory> #include <cpplocate/cpplocate.h> #include <cpplocate/ModuleInfo.h> #include <glm/vec2.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glbinding/gl/gl.h> #include <glbinding/gl/extension.h> #include <glbinding/gl/bitfield.h> #include <g...
<commit_before>/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* Copyright 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>/*************************************************************** * * 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>#include <coreutils/log.h> #include "petsciiconsole.h" #include <array> #include <algorithm> LOGSPACE("utils"); namespace bbs { using namespace std; /** PETSCII->ASCII 0x20 -> 0xFF **/ static int petsciiTable[] = { 0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027, 0x0028,0x0029,0x002A,0x0...
<commit_before>#include "process.hpp" #include <cstring> #include <TlHelp32.h> #include <stdexcept> Process::Data::Data(): id(0), handle(NULL) {} namespace { // Simple HANDLE wrapper to close it automatically from the destructor. class Handle { public: Handle() : handle(INVALID_HANDLE_VALUE) { } ~Handle() { ...
<commit_before>// $Id$ // // Jet sample analysis task. // // Author: S.Aiola #include <TClonesArray.h> #include <TH1F.h> #include <TH2F.h> #include <TList.h> #include <TLorentzVector.h> #include "AliVCluster.h" #include "AliVTrack.h" #include "AliEmcalJet.h" #include "AliRhoParameter.h" #include "AliLog.h" #include "...
<commit_before>#include <algorithm> #include <unistd.h> #include "../core/converter.h" #include "xsocket.h" using namespace std; using namespace MM_NAMESPACE()::NET; SocketStream::SocketStream(int fd) : fd(fd) {} SocketStream::SocketStream(const SocketStream& obj) : fd(obj.fd) {} SocketStream::~SocketStream() { c...
<commit_before>//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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://ww...
<commit_before>// RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -O0 -S %s -o %t-64.s && // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s && // RUN: clang-cc -triple i386-apple-darwin -std=c++0x -O0 -S %s -o %t-32.s && // RUN: FileCheck -check-prefix LP32 -input-file=%t-32.s %s && // RUN: true extern...
<commit_before>/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkRefCnt.h" #include "include/core/SkString.h" #include "include/core/SkUnPreMultiply.h" #include "include/effects/SkColorMatrix.h" #incl...
<commit_before>#include <gtest/gtest.h> #include <configuration.h> #include <string.h> #include <string> #include <stdlib.h> using namespace std; int main(int argc, char **argv) { // Select the proper storage.json file for the tests string foglamp_root = getenv("FOGLAMP_ROOT"); string foglamp_data = foglamp_root...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentat...
<commit_before>#include "COLLIDE.H" #include "SPECIFIC.H" long zfront; long xfront; short GlobalCollisionBounds[6]; char LM[15]; void TestForObjectOnLedge(struct ITEM_INFO *item, struct COLL_INFO *coll)//2A940, 2AB68 { S_Warn("[TestForObjectOnLedge] - Unimplemented!\n"); } void TriggerLaraBlood()//2A838, 2AA60 { S...
<commit_before>/******************************************************************************* * Copyright 2018 Intel 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...
<commit_before>//***************************************************************************** // Copyright 2017-2019 Intel 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 // ...
<commit_before>#include <random> #include <chrono> #include <sstream> #include "nodes/EANode/MutationOperation.hpp" #include "core/utils/HierRNG.hpp" MutationOperation::MutationOperation() { this->init(0); } MutationOperation::MutationOperation(double mutationRate) { this->init(mutationRate); } MutationOperation::...
<commit_before>/*============================================================================= Copyright (c) 2016-2018 Joel de Guzman Distributed under the MIT License [ https://opensource.org/licenses/MIT ] =============================================================================*/ #if !defined(PHOTON_GUI_L...
<commit_before>#include "Application.h" #include "GameObject.h" #include "Component.h" #include "ComponentTransform.h" #include "ComponentMesh.h" #include "ComponentMaterial.h" #include "ComponentCamera.h" #include "ModuleMeshes.h" #include "RaycastHit.h" GameObject::GameObject() { name.resize(30); name = "Empty Gam...
<commit_before>/* Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, ...
<commit_before>/** * Declares all GameScenes: Splash Screen, Main Menu, Play, etc. * * Author: Skylar Payne * Date: 8/21/2013 * File: GameScenes.cpp **/ #include "GameScenes.h" #include "IListener.h" #include <lua.hpp> #include "LuaBindings.h" #include "PositionComponent.h" #include "MovementCom...
<commit_before>#include "SHA1.h" void SHA1::run(const std::string & data, uint32_t & H0, uint32_t & H1, uint32_t & H2, uint32_t & H3, uint32_t & H4){ unsigned int n = 0; for(; n < (data.size() >> 6); n++){ uint32_t skey[80]; for(uint8_t x = 0; x < 16; x++){ skey[x] = toint(data.subs...
<commit_before>#include "IntegerInterval.hpp" #include <gtest/gtest.h> #include <iostream> using namespace std; using namespace dscr; TEST(IntegerInterval, ForwardIteration) { for (int n = 0; n < 10; ++n) { integer_interval R(n); set<integer_interval::value_type> S(R.begin(), R.end()); ...
<commit_before>#include <osg/Image> #include <osg/Notify> #include <osg/Geode> #include <osg/GL> #include <osgDB/Registry> /**************************************************************************** * * Follows is code written by GWM and translated to fit with the OSG Ethos. * * * Ported into the OSG as a plug...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 2007 Cedric Pinson * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commercial and non commercial * applications, as long as this copyright notice is maintained. * * This applicatio...
<commit_before>#include <osg/Image> #include <osg/Notify> #include <osg/Geode> #include <osg/Image> #include <osg/GL> #if defined _WIN32 && !defined OSG_LIBRARY_STATIC //Make the half format work against openEXR libs #define OPENEXR_DLL #endif #include <osgDB/Registry> #include <osgDB/FileNameUtils> #include <osgDB/F...
<commit_before>/* * Copyright (c) 2012 Rafael Rivera * * 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, * ...
<commit_before>/************************************************************************* * * $RCSfile: specialtypemanager.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * * The Contents of this file are made available subject to the terms of * either of the f...
<commit_before>/* * Player.cpp * * Created on: Nov 26, 2017 * Author: lowji */ #include "Player.h" #include "Card.h" Player::Player(string name){ this->name=name; } void Player::addOne(Card temp){ handOne=temp; } void Player::addTwo(Card temp){ handTwo=temp; } int Player::getTotalChips(){ return tot...
<commit_before>#include "game.hpp" int Game::startGame() { std::string str; while(true) { std::getline(std::cin, str); if(!uciHandler(str)) { return 0; }; } } void Game::goFixedDepth() { clearCash(); variant.clear(); variant.resize(max_depth); std::vector<uint64_t>hash; std::ve...
<commit_before> /* * Copyright 2010 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkData.h" #include "SkFlate.h" #include "SkPDFCatalog.h" #include "SkPDFStream.h" #include "SkStream.h" static bool skip_compression(SkPDFCatalog* ...
<commit_before>/**************************************************************************** * * Copyright (C) 2018-2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are me...
<commit_before>/* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under the terms of the Common Public License Version 1.0. A...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<commit_before>#include <metaSMT/support/parser/SMT2Parser.hpp> #include <metaSMT/support/parser/UTreeEvaluator.hpp> #include <string> #include <fstream> using namespace std; using namespace metaSMT; using namespace metaSMT::solver; using namespace metaSMT::evaluator; using namespace metaSMT::smt2; int main(int argc...
<commit_before>#include <plugintest.h> #include "testinstaller.h" using namespace QtAutoUpdater; class HomebrewTest : public PluginTest { Q_OBJECT protected: bool init() override; bool cleanup() override; QString backend() const override; QVariantMap config() override; QList<UpdateInfo> createInfos(const QVersi...
<commit_before>#include "Player.hpp" #include "Houses.hpp" #include <cassert> Player::Player(House theHouse, int theId): id(theId), house(theHouse), color(Houses::getDefaultColor(house)) { // SMELL: We also do this in the unit repository filenames[Unit::Type::Trike] = "Unit_Trike.bmp"; filenames[Unit::Type::...
<commit_before>/** * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
<commit_before>#ifndef STAN_MATH_PRIM_MAT_PROB_MULTI_NORMAL_CHOLESKY_LPDF_HPP #define STAN_MATH_PRIM_MAT_PROB_MULTI_NORMAL_CHOLESKY_LPDF_HPP #include <stan/math/prim/mat/fun/columns_dot_product.hpp> #include <stan/math/prim/mat/fun/columns_dot_self.hpp> #include <stan/math/prim/mat/fun/dot_product.hpp> #include <stan/...
<commit_before>#include "base/logging.h" #include "gl_state.h" #ifdef _WIN32 #include "GL/wglew.h" #endif #if defined(USING_GLES2) #if defined(ANDROID) PFNGLALPHAFUNCQCOMPROC glAlphaFuncQCOM; PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC eglGetSystemTimeFrequencyNV; PFNEGLGETSYSTEMTIMENVPROC eglGetSystemTimeNV; #endif #if !defin...
<commit_before>/* * Copyright (c) 2012 Sacha Refshauge * */ // Qt implementation of the framework. // Currently supports: Symbian, Blackberry, Linux #include <QtGui/QApplication> #include <QUrl> #include <QDir> #include <QDesktopWidget> #include <QDesktopServices> #ifdef __SYMBIAN32__ #include <e32std.h> #endif #i...