text
stringlengths
54
60.6k
<commit_before> #include "NNApplication.h" #include "NNInputSystem.h" #include "NNAudioSystem.h" #include "NNResourceManager.h" #include "NNNetworkSystem.h" NNApplication* NNApplication::m_pInstance = nullptr; NNApplication::NNApplication() : m_Hwnd(nullptr), m_hInstance(nullptr), m_ScreenHeight(0), m_ScreenWidth(0...
<commit_before>/* * This file is part of the Electron Orbital Explorer. The Electron * Orbital Explorer is distributed under the Simplified BSD License * (also called the "BSD 2-Clause License"), in hopes that these * rendering techniques might be used by other programmers in * applications such as scientific visu...
<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. */ // This is a GPU-backend specific test. It relies on static intializers to work #include "SkTypes.h" #if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS...
<commit_before>/***************************************************************************** * Project: RooFit * * Package: RooFitModels * * @(#)root/roofit:$Id$ * Authors: ...
<commit_before>/* * Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu) * * Released under the MIT license, see LICENSE.txt */ #include <cstdlib> #include <iostream> #include <fstream> #include <algorithm> #include "hal.h" using namespace std; using namespace hal; static void printSequenceLine(ostream& outS...
<commit_before>/* Copyright (c) 2009-2019, Intel Corporation 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 con...
<commit_before>/* * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017-2021 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
<commit_before>#include "poke.h" Poke::Poke() : size(0), mode(PM_NOOP) {} Poke::Poke(uint8_t val, volatile uint8_t *addr_) : size(sizeof(uint8_t)), mode(PM_INT), addr(addr_), value8(val) { } Poke::Poke(uint16_t val, volatile uint16_t *addr_) : size(sizeof(uint16_t)), mode(PM_INT), addr(addr_), value16(val) { } Poke::Po...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SdGlobalResourceContainer.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2008-04-03 14:05:40 $ * * The Contents of th...
<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 <atlbase.h> #include <vector> #include "base/file_path.h" #include "base/scoped_comptr_win.h" #include "chrome/browser/browse...
<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>#include "core/itf/ray.h" #include "core/itf/triangle.h" #include "math/itf/constants.h" #include <iostream> using namespace lb; using namespace lb::math; Ray::Ray(const Vector &origin, const Vector &direction): o(origin), d(direction) { } bool Ray::intersectsGeometrically(const Triangle &tr...
<commit_before>// Steer TRD QA train for Reconstruction (Clusterizer, Tracking and PID). // // Usage: // run.C(tasks, files) // tasks : "ALL" or one/more of the following: // "EFF" : TRD Tracking Efficiency // "EFFC" : TRD Tracking Efficiency Combined (barrel + stand alone) - only in case of simulations ...
<commit_before>// This file is part of Poseidon. // Copyleft 2020, LH_Mouse. All wrongs reserved. #ifndef POSEIDON_FWD_HPP_ #define POSEIDON_FWD_HPP_ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <asteria/fwd.hpp> #include <rocket/ascii_case.hpp> #include <rocket/linear_buffer.hpp> #include <rocket/atom...
<commit_before>/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) ...
<commit_before>/// \file ROOT/TCanvas.hxx /// \ingroup Gpad ROOT7 /// \author Axel Naumann <axel@cern.ch> /// \date 2015-07-08 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /******************************************************...
<commit_before>#include "UnitTest++/UnitTestPP.h" #include "UnitTest++/TestMacros.h" #include "UnitTest++/TestList.h" #include "UnitTest++/TestResults.h" #include "UnitTest++/TestReporter.h" #include "UnitTest++/ReportAssert.h" #include "RecordingReporter.h" #include "ScopedCurrentTest.h" using namespace UnitTest; usi...
<commit_before>/************************************************************************* * * $RCSfile: SlsPageDescriptor.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-07-13 14:24:32 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before>#include "Thread.hpp" #include "Exception.hpp" #ifdef ___INANITY_PLATFORM_POSIX #include <pthread.h> #include <time.h> #endif BEGIN_INANITY Thread::Thread(ptr<ThreadHandler> handler) : handler(handler) { try { #if defined(___INANITY_PLATFORM_WINDOWS) thread = NEW(Platform::Win32Handle(CreateThread(...
<commit_before>//(c) 2016 by Authors //This file is a part of ABruijn program. //Released under the BSD license (see LICENSE file) #include <vector> #include <iostream> #include <unordered_set> #include <unordered_map> #include "chimera.h" #include "logger.h" void ChimeraDetector::detectChimeras() { Logger::get()....
<commit_before>#pragma once #ifndef QI_OBJECTUID_HPP #define QI_OBJECTUID_HPP #include <boost/optional.hpp> #include <ka/typetraits.hpp> #include <ka/utility.hpp> #include <qi/ptruid.hpp> namespace qi { /// Unique identifier of an object being referred to by a qi::Object instance. /// /// @warning Users: your c...
<commit_before>//===- YAML.cpp - YAMLIO utilities for object files -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "png.h" const unsigned char Png::header_magic[] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A }; size_t Png::Leanify(size_t size_leanified /*= 0*/) { char *p_read, *p_write; // header p_read = fp; p_write = p_read - size_leanified; if (size_leanified) { ...
<commit_before>#include <stdio.h> ISSPACE(C) (C == (int)' ') ISALPHA(C) (('a' <= C && C <= 'z') || ('A' <= C && C <= 'Z')) ISNUM(C) ('0' <= C && C <= '9') ISALNUM(C) (ISALPHA(C) || ISNUM(C)) enum Token { tok_eof = -1, // commands tok_def = -2, tok_extern = -3, // primary tok_identifier ...
<commit_before> CalibratePeriod(TString lPeriodName = "LHC10h"){ //Load ALICE stuff TString gLibs[] =   {"STEER", "ANALYSIS", "ANALYSISalice", "ANALYSIScalib","OADB"}; TString thislib = "lib"; for(Int_t ilib = 0; ilib<5; ilib++){ thislib="lib"; thislib.Append(gLibs[ilib].Da...
<commit_before>//===================================================== // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public Licen...
<commit_before>#include <seqan/sequence.h> #include <seqan/index.h> using namespace seqan; int main() { // One possible solution to the first sub assignment String<Dna> text = "ACGTTTGACAGCT"; Index<String<Dna>, IndexEsa<> > index(text); // One possible solution to the second sub assignment StringSet<String<Dna> > s...
<commit_before>#pragma once #ifndef _QI_SIGNALHELPER_HPP_ #define _QI_SIGNALHELPER_HPP_ #include <qi/actor.hpp> #include <qi/anyobject.hpp> #include <qi/clock.hpp> #include <qi/signal.hpp> namespace qi { /** * @brief A tool to track signal emissions, specialized for testing. * A signal spy can acknowledge every si...
<commit_before>#include "swf.h" const unsigned char Swf::header_magic[] = { 'F', 'W', 'S' }; const unsigned char Swf::header_magic_deflate[] = { 'C', 'W', 'S' }; const unsigned char Swf::header_magic_lzma[] = { 'Z', 'W', 'S' }; size_t Swf::Leanify(size_t size_leanified /*= 0*/) { if (is_fast && *fp !=...
<commit_before>// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/api/atom_bindings.h" #include <algorithm> #include <iostream> #include <memory> #include <string> #include "atom/common/atom_version.h" #include ...
<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. #include "chrome/browser/extensions/user_script_master.h" #include <vector> #include "base/file_path.h" #include "base/file_util.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/extensions/webstore_installer.h" #include "base/string_util.h" #include "chrome/browser/browser_process.h" #i...
<commit_before>#include "SharedCommandData.h" #include <gtest\gtest.h><commit_msg>Adding shared command data tests<commit_after>#include "SharedCommandData.h" #include <gtest\gtest.h> TEST(SharedCommandDataTest1, extractBadCommand) { SharedCommandData scd; filterDataMap scdInput; scdInput[COMMAND_INPUT] = ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief upload request handler /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Ver...
<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 entry. // // Implement the storage of service tokens in memory. #include "chrome/browser/sync/util/user_settings.h" namespace browser_sync {...
<commit_before>#define SASS_NODE_INCLUDED #include <string> #include <vector> namespace Sass { using namespace std; enum Node_Type { none, flags, comment, root, ruleset, propset, selector_group, selector, selector_combinator, simple_selector_sequence, backref, ...
<commit_before>/* * File: strings.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/sedna.h" #include "tr/strings/utf8.h" #include "tr/pstr/pstr.h" #include "tr/pstr/pstr_long.h" #include "tr/executor/fo/casting_operations.h" #include "c...
<commit_before>/************************************************************************* * * $RCSfile: corframe.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: np $ $Date: 2002-11-14 18:01:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ConstantEnvironment.h" int64_t SignedConstantDomain::max_element() const { if (constant_domain().is_val...
<commit_before>/* keyview.cpp * * Author: Austin Voecks * * Usage: * sudo keyview (input_device_name) [output_log_file] */ #include "keyview.h" int main(int argc, char **argv) { // variables int num_keys, fd, key_counter = 0; struct input_event ev; bool is_modifier_key, shift_state, alt_state, ...
<commit_before>/* * Copyright (c) 2014 David Wicks, sansumbrella.com * 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 *...
<commit_before>// // Copyright (C) 2006-2015 SIPez LLC. All rights reserved. // // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ //////////////...
<commit_before>#include <QtGui/QPainter> #include <QtWidgets/QStyle> #include <QtWidgets/QStyleOptionGraphicsItem> #include <qrkernel/settingsManager.h> #include "lineItem.h" #include "wallItem.h" using namespace twoDModel::items; using namespace qReal; using namespace graphicsUtils; LineItem::LineItem(QPointF const...
<commit_before>#include <catch2/catch.hpp> #include <optional> #include <vector> struct Block { size_t offset; size_t size; operator bool() { return size != 0; } }; class TLSFAllocator { struct TLSFSizeClass { size_t sizeClass; uint64_t slBitmap; std::vector<std::vector<Block>> freeBlocks; }; ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Build Suite. ** ** Commercial License Usage ** Licensees holding valid commercial Qt ...
<commit_before>#include <catch2/catch.hpp> #include <optional> #include <vector> #include <algorithm> struct Block { size_t offset; size_t size; operator bool() { return size != 0; } }; class TLSFAllocator { struct TLSFSizeClass { size_t sizeClass; uint64_t slBitmap; std::vector<std::vector<Block>...
<commit_before>/* * * Copyright 2016 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker 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, ...
<commit_before>// // Copyright (C) 2006-2010 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2006-2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ ////////////////////////////////////////////////////////////////////////////// #include <...
<commit_before>// coding: utf-8 #ifndef TASK_MECHANICS_HPP # error "Don't include this file directly, use 'task_mechanics.hpp' instead!" #endif task::Mechanics::Mechanics(Leds &leds, Buttons &buttons) : leds(leds), buttons(buttons), isCalibratedX(false), isCalibratedZ(false), correctionX(-40), correctionZ(15), xMo...
<commit_before>/*************************************************/ /* regex.cpp */ /*************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /********************************************...
<commit_before> #include <iostream> #include <unordered_map> #include <boost/algorithm/string.hpp> #include <vector> #include <Galois/Galois.h> #include <Galois/Graph/Graph.h> #include <cstring> #include <string> #include <fstream> using namespace std; using namespace boost; typedef enum{pi,po,nd} node_type; struct ...
<commit_before>#include <stdio.h> #include <iostream> #include <QString> #include <QVariant> #include <QMessageBox> #include <QDebug> int line_no = 1; int file_eof = 0; int last_op = 0; const int cmd_invalid = 0; const int cmd_assign = 1; // var = 12 const int cmd_assign_plus = 2; // var = 12 + 44 const...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/net/url_request_fetch_job.h" #include <algorithm> #include <string> #include "atom/browser/api/atom_api_session.h" #include "atom/browser/atom_b...
<commit_before>// -*- Mode:C++ -*- /**************************************************************************************************/ /* */ /* Copyright (C) 2016 University of Hull ...
<commit_before>#include "common/viditem/vscviditemvidstor.h" VSCVidItemVidStor::VSCVidItemVidStor(VidStor cStor, QTreeWidgetItem *parent) : m_cStor(cStor), VSCVidItemInf(parent) { } VSCVidItemVidStor::~VSCVidItemVidStor() { }<commit_msg>Signed-off-by: xsmart <xsmart@veyesys.com><commit_after>#include "co...
<commit_before>// kmsearchpatternedit.cpp // Author: Marc Mutz <Marc@Mutz.com> // This code is under GPL #include <config.h> #include "kmsearchpatternedit.h" #include "kmsearchpattern.h" #include <klocale.h> #include <kdebug.h> #include <klineedit.h> #include <kparts/componentfactory.h> #include <kregexpeditorinterf...
<commit_before>/* * Graph.cpp * * Created on: 04.02.2013 * Author: cls */ #include "Graph.h" namespace EnsembleClustering { Graph::Graph(count n) : n(n), deg(n, 0), adja(n), eweights(n) { // set name from global id static int64_t graphId = 1; std::stringstream sstm; sstm << "G#" << graphId++; this->n...
<commit_before>//===-- ProcessLinux.cpp ----------------------------------------*- 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 <QtQml> #include <QEvent> #include "qamousesensor.h" QAMouseSensor::QAMouseSensor(QQuickItem* parent) : QQuickItem(parent) { // setAcceptedMouseButtons(Qt::LeftButton); // setFiltersChildMouseEvents(true); timerId = 0; m_filter = 0; } void QAMouseSensor::mousePressEvent(QMouseEve...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/net/url_request_fetch_job.h" #include <algorithm> #include <string> #include "atom/browser/api/atom_api_session.h" #include "atom/browser/atom_b...
<commit_before>/* accountconfig.cpp - Kopete account config page Copyright (c) 2003 by Olivier Goffart <ogoffart@tiscalinet.be> ************************************************************************* * * * This program is fr...
<commit_before>/************************************************************************** * * Copyright 2011 LunarG, Inc. * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...
<commit_before>/* MusicXML Library Copyright (C) Grame 2006-2013 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 at http://mozilla.org/MPL/2.0/. Grame Research Laboratory, 11, cours de Verdun G...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hi_factory.cxx,v $ * $Revision: ...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2001 Cornelius Schumacher <schumacher@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 Software Foundation; either version 2 o...
<commit_before>#include <ir/index_manager/index/MultiTermPositions.h> using namespace izenelib::ir::indexmanager; MultiTermPositions::MultiTermPositions(void) { current = NULL; pTermPositionQueue = NULL; } MultiTermPositions::~MultiTermPositions(void) { close(); } docid_t MultiTermPositions::doc() { ...
<commit_before>// https://www.codeeval.com/open_challenges/84/ #include <iostream> #include <fstream> using namespace std; bool isBalanced(string str); // - An empty string "" bool isEmpty(string str) { return str.length() == 0; } // - One or more of the following characters: 'a' to 'z', ' ' (a space) or ':' ...
<commit_before>#ifndef CLUSTERING_IMMEDIATE_CONSISTENCY_BRANCH_HASH_REGION_HPP_ #define CLUSTERING_IMMEDIATE_CONSISTENCY_BRANCH_HASH_REGION_HPP_ // TODO: Find a good location for this file. #include <stdint.h> #include <algorithm> #include <vector> #include "rpc/serialize_macros.hpp" #include "utils.hpp" // Return...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: prs_cpp.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2007-11-02 17:03:30 $ * * The Contents of this file are made a...
<commit_before> #include "ksp_plugin/part.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace principia { using si::Kilogram; using si::Metre; using si::Second; namespace ksp_plugin { class PartTest : public testing::Test { protected: PartTest() : degrees_of_freedom_({ Barycentric...
<commit_before>/** * @file CommonLanguageAnalyzer.cpp * @author Kent, Vernkin * @date Nov 23, 2009 * @details * Common Language Analyzer for Chinese/Japanese/Korean. */ /** * @brief Rewrite CLA using new interfaces. * @author Wei */ ////#define SF1_TIME_CHECK //#include <util/profiler/ProfilerGroup.h...
<commit_before>#include "get_code.h" #include <set> #include <fstream> #include <boost/regex.hpp> #include <boost/format.hpp> using namespace thewizardplusplus::wizard_basic_3; using namespace boost; using namespace boost::filesystem; const auto LIBRARIES_PATH = std::string("libraries"); const auto INCLUDE_OPERATOR_P...
<commit_before>/* * GLBlendState.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "GLBlendState.h" #include "../Ext/GLExtensions.h" #include "../Ext/GLExtensionRegistry.h" #include "../GLCore.h" #include "../GLTyp...
<commit_before>// // Created by Zal on 11/19/16. // #include <assert.h> #include <utility> #include "BinaryMatrix.h" void BinaryMatrix::BinaryMatrix(int w, int h) { this->width = w; this->height = h; this->baseSize = sizeof(char) * 8; int n = w*h; this->dataLength = (n % baseSize == 0)? n/baseSiz...
<commit_before>#include <QString> #include <functional> #include <future> #include <memory> #include "kernel.h" #include "coverage.h" #include "columndefinition.h" #include "table.h" #include "attributerecord.h" #include "polygon.h" #include "geometry.h" #include "feature.h" #include "featurecoverage.h" #include "symbo...
<commit_before>/* **** **** **** **** **** **** **** **** * * * _/ _/ _/ * _/_/_/ _/_/_/ _/_/_/ * _/ _/ _/ _/ _/ _/ * _/ _/ _/ _/ _/ _/ * _/_/_/ _/_/_/ _/_/_/ * * bit by bit * bbb/core/type/container/type_holder.hpp * * author: ISH...
<commit_before>//===================================================== // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as p...
<commit_before>#include "ir.h" #include <numeric> #include <Eigen/Dense> TLANG_NAMESPACE_BEGIN class IRPrinter : public IRVisitor { public: int current_indent; IRPrinter() { current_indent = -1; } template <typename... Args> void print(std::string f, Args &&... args) { for (int i = 0; i < current...
<commit_before>#include "common/PosixThreadImpl.h" extern "C" { void* rho_nativethread_start(); void rho_nativethread_end(void*); } namespace rho { namespace common { IMPLEMENT_LOGCLASS(CPosixThreadImpl, "RhoThread"); CPosixThreadImpl::CPosixThreadImpl() :m_stop_wait(false) { #if defined(OS_ANDROID) // Andr...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "SkCanvas.h" #include "SkMatrixConvolutionImageFilter.h" #include "SkPaint.h" #include "SkRandom.h" #include "SkString.h" class ...
<commit_before>// Seek Thermal Viewer/Streamer // http://github.com/fnoop/maverick #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "seek.h" #include "SeekCam.h" #include <iostream> #include <string> #include <signal.h> #include <memory> #include "args.h" using namespace cv; usin...
<commit_before>#include <iostream> #include <string> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <string.h> #include <cstring> #include <wait.h> #include <vector> #include <fcntl.h> #include <cstdlib> #include <errno.h> #include <sys/stat.h> #include <boost/algorithm/str...
<commit_before> #include "loop.h" #include "kscreen.h" #include "config.h" #include "output.h" #include "mode.h" #include <QX11Info> #include <QtCore/QDebug> #include <X11/X.h> #include <X11/Xlib.h> #include <X11/extensions/Xrandr.h> Loop::Loop(QObject* parent): QObject(parent) { QMetaObject::invokeMethod(this,...
<commit_before> #include "../../Flare.h" #include "FlareSubsystemStatus.h" #include "../Components/FlareRoundButton.h" #include "../../Spacecrafts/FlareWeapon.h" #include "../../Spacecrafts/FlareSpacecraft.h" #define LOCTEXT_NAMESPACE "FlareSubsystemStatus" /*---------------------------------------------------- Con...
<commit_before>/* This file is part of the Vc library. Copyright (C) 2009-2012 Matthias Kretz <kretz@kde.org> Vc is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of th...
<commit_before>#ifndef ITER_REVERSE_HPP_ #define ITER_REVERSE_HPP_ #include "iterbase.hpp" #include <utility> #include <iterator> namespace iter { template <typename Container> class Reverser; template <typename Container> Reverser<Container> reversed(Container&&); template <typename Container...
<commit_before>#include "UnrealEnginePythonPrivatePCH.h" #include "PyCommandlet.h" #include "Regex.h" UPyCommandlet::UPyCommandlet(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { LogToConsole = 1; } int32 UPyCommandlet::Main(const FString& CommandLine) { TArray<FString> Tokens, Switches...
<commit_before>#include "MysqlDbConnection.h" namespace sf1r { MysqlDbConnection::MysqlDbConnection() :DB_NAME("SF1R"), PoolSize(16) { } MysqlDbConnection::~MysqlDbConnection() { close(); } void MysqlDbConnection::close() { mutex_.acquire_write_lock(); for(std::list<MYSQL*>::iterator it= pool_.begin();...
<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 "text_renderer.h" #include "lib/bitmap.h" #include "lib/common.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <limits.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> // **************************************************************************** //...
<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 <set> #include <string> #include "chrome/browser/download/download_util.h" #include "base/logging.h" #include "base/str...
<commit_before> #include <gloperate/pipeline/Pipeline.h> #include <vector> #include <set> #include <cppassist/logging/logging.h> using namespace cppassist; namespace gloperate { Pipeline::Pipeline(ViewerContext * viewerContext, const std::string & name) : Stage(viewerContext, name) , m_sorted(false) { } Pipeli...
<commit_before>/* This code is subject to the terms of the Mozilla Public License, v.2.0. http://mozilla.org/MPL/2.0/. */ #include "App.h" #include "Interface.h" #include "callbacks/ComputedOptions.h" #include "peer_server/MultiplexedSocketPool.h" #include "storage/FileStore.h" #include "storage/SimpleFileStore.h" #i...
<commit_before>//============================================================================ // Name : TimeSeriesStatisticsDemo.cpp // Author : Dominik Skoda <skoda@d3s.mff.cuni.cz> // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //===================...
<commit_before>/*************************************************************************** ** ** ** Copyright (C) 2009-2011 Nokia Corporation. ** ** ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkExtractImageTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKC...
<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 "chrome/renderer/audio_message_filter.h" #include "base/message_loop.h" #include "chrome/common/render_messages.h" #include "...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/platform_thread.h" #include "base/win_util.h" #include "chrome/installer/util/install_util.h" #include "chrome/test/...
<commit_before>/* Author: Michael Schmidt Description: An a-star implementation to solve a sliding puzzle problem Assumptions: Board is N x N. */ #include "globals.h" #include "state.h" #include "pair.h" /* Prototypes */ void expand_state (StatePtr parent, set<StatePtr, ClosedPtrCompare> & closed_l...
<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 "chrome/tools/convert_dict/dic_reader.h" #include <algorithm> #include <set> #include "base/file_util.h" #include "base...