text stringlengths 54 60.6k |
|---|
<commit_before>#include "clientmodel.h"
#include "guiconstants.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "transactiontablemodel.h"
#include "main.h"
#include "ui_interface.h"
#include <QDateTime>
#include <QTimer>
static const int64 nClientStartupTime = GetTime();
ClientModel::ClientModel... |
<commit_before>// ------------------------------------------------------------------------
// Pion is a development platform for building Reactors that process Events
// ------------------------------------------------------------------------
// Copyright (C) 2007-2008 Atomic Labs, Inc. (http://www.atomiclabs.com)
//
... |
<commit_before>#include "clientmodel.h"
#include "guiconstants.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "transactiontablemodel.h"
#include "alert.h"
#include "main.h"
#include "ui_interface.h"
#include <QDateTime>
#include <QTimer>
static const int64 nClientStartupTime = GetTime();
Clien... |
<commit_before>/*
* Copyright (c) 2012 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementat... |
<commit_before>// Copyright (c) 2011-2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/walletframe.h>
#include <fs.h>
#include <node/ui_interface.h>
#include <psbt.h>
#include <qt/gui... |
<commit_before>#include "SLAPrint.hpp"
#include "ClipperUtils.hpp"
#include "ExtrusionEntity.hpp"
#include "Fill/Fill.hpp"
#include "Geometry.hpp"
#include "Surface.hpp"
#include <iostream>
#include <complex>
#include <cstdio>
namespace Slic3r {
void
SLAPrint::slice()
{
TriangleMesh mesh = this->model->mesh();
... |
<commit_before>/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_KEY_HPP
#define NDN_KEY_HPP
#include <vector>
#include "c/key.h"
#include "Name.hpp"
namespace ndn {
class KeyLocator {
public:
KeyLocator()
: type_((ndn_KeyLocatorType)-1), keyNameType_((nd... |
<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-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, ... |
<commit_before>// Copyright 2014 The Crashpad 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
//
// Unle... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <type_t... |
<commit_before>//
// Created by mrjaqbq on 07.03.16.
//
#include <algorithm>
#include <Utils/TypeInfo.h>
#include <Utils/MemorySizes.h>
#include "Core/EngineApis.h"
#include "Core/MemoryModule.h"
#include "Core/WindowManager.h"
#include "Core/Input/InputManager.h"
#include "Core/Resources/ResourceManager.h"
#include ... |
<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><commit_msg>change order of var in PDFExtOutDevData to suppress waring<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<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>#include "WorldMapGenerator.h"
#include <utility>
#include <list>
#include <tuple>
#include "../maths/mathshelper.h"
using namespace arma;
using namespace maths;
using namespace img;
// MODULES ( dplacer ?)
WorldMapGeneratorModule::WorldMapGeneratorModule(WorldMapGenerator * parent) :
_parent(pare... |
<commit_before>#include <k52/optimization/params/double_parameters_array.h>
#include <stdexcept>
namespace k52
{
namespace optimization
{
DoubleParametersArray::DoubleParametersArray(double min_value,
double max_value,
double d... |
<commit_before>// $Id$
//
// You received this file as part of MCA2
// Modular Controller Architecture Version 2
//
//Copyright (C) Forschungszentrum Informatik Karlsruhe
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as publish... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/* ****************************************************************************** *\
Copyright (C) 2012-2017 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:
- Redistri... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2020 - 2021 by Apex.AI 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 Lice... |
<commit_before>#include <iostream>
#include <vector>
int regul(std::vector<int> v) {
while (v.vector::back() == 0) {
v.vector::pop_back();
}
return 0;
}
class zzbar{
public:
zzbar(int d, int n) {
if (d > 1 && n <d) {
deg = d;
num = n;
}
}
// set deg and num
v... |
<commit_before>#pragma once
#include "../std/vector.hpp"
template <class T>
class SimpleTree
{
typedef std::vector<SimpleTree<T> > internal_container_type;
T m_value;
internal_container_type m_siblings;
public:
SimpleTree(T const & value = T()) : m_value(value)
{
}
/// @return reference is valid only... |
<commit_before>
#include <s2sinputstream.h>
#include <s2soutputstream.h>
#include <virtualhost.h>
#include <nanosoft/asyncdns.h>
#include <iostream>
using namespace std;
/**
* Конструктор потока
*/
S2SInputStream::S2SInputStream(XMPPServer *srv, int sock): XMPPStream(srv, sock)
{
}
/**
* Деструктор потока
*/
S2SInpu... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <iterator>
#include <ctime>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include <iterator>
#include <unordered_map>
#include <... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <string>
#include "alphabet.h"
using namespace std;
string pwd;
static const unsigned char MaxChars = 20;
void checkPassword(string password)
{
cout << "checking " << password << endl;
// TODO: generate sha hash, compare hashes
if (passwor... |
<commit_before>#include "dsa_common.h"
#include "link.h"
#include <util/string.h>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <fstream>
#include <regex>
#include "core/client.h"
#include "crypto/ecdh.h"
#include "module/default/console_logger.h"
#include "module/default/dummy_stream... |
<commit_before>#include "mysql.h"
#include <mysql/mysql.h>
#include <cstring>
#include <iostream>
#include <stdexcept>
// Prepared statement templates
const char *query_add_snapshot =
"INSERT INTO snapshot(reason) VALUES (?);";
const char *query_add_reason_malloc =
"INSERT INTO reason_malloc(snapshot_id, ad... |
<commit_before>//
// Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// EGLContextCompatibilityTest.cpp:
// This test will try to use all combinations of context configs and
// surface conf... |
<commit_before>/*
* Copyright (C) 2006 Apple Computer, 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:
* 1. Redistributions of source code must retain the above copyright
* notice,... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <memory>
#include <map>
#include <algorithm>
#include <Lexer.hpp>
#include <Parser.hpp>
#include <Visitors.hpp>
#include <Checker.hpp>
#include <ExprStmt.hpp>
#include <RefExpr.hpp>
#include <IdRef.hpp>
using namespace std;
void PrintR... |
<commit_before>/* listener.cc
Mathieu Stefani, 12 August 2015
*/
#include <pistache/listener.h>
#include <pistache/peer.h>
#include <pistache/common.h>
#include <pistache/os.h>
#include <pistache/transport.h>
#include <pistache/errors.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#in... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkConjugateGradientOptimizerTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All r... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010-2011 Arjen Hiemstra <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU... |
<commit_before>//----------------------------------------------------------------------------
//
// "Copyright Centre National d'Etudes Spatiales"
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
//---------------------------------------------------------------------------... |
<commit_before>/*************************************************************************
> File Name: CardLoader.cpp
> Project Name: Hearthstone++
> Author: Chan-Ho Chris Ohk
> Purpose: Card loader that loads data from cards.json.
> Created Time: 2017/08/13
> Copyright (c) 2017, Chan-Ho Chris Ohk
*********************... |
<commit_before>#include <algorithm>
#include <map>
#include <iostream>
#include "google/protobuf/descriptor.h"
#include "vtrc-rpc-lowlevel.pb.h"
#include "vtrc-rpc-options.pb.h"
#include "vtrc-rpc-channel.h"
#include "vtrc-protocol-layer.h"
#include "vtrc-exception.h"
#include "vtrc-bind.h"
namespace vtrc { namesp... |
<commit_before>#include "Globals.h"
#include "App.h"
#include "ModuleInput.h"
#include "ModuleCamera3D.h"
#include "EditorUI.h"
#include "Game.h"
#include "ModuleWindow.h"
#include "Cursor.h"
#include "imgui.h"
ModuleCamera3D::ModuleCamera3D(bool start_enabled) : Module(start_enabled)
{
SetName("Camera3D");
Calcula... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
<commit_before>/*******************************************************************************
* c7a/api/size.hpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Matthias Stumpp <[email protected]>
*
* This file has no license. Only Chuck Norris can compile it.
*************************************************... |
<commit_before>#include "timeentryeditorwidget.h"
#include "ui_timeentryeditorwidget.h"
#include <QMessageBox>
#include "toggl_api.h"
TimeEntryEditorWidget::TimeEntryEditorWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::TimeEntryEditorWidget),
guid(""),
timeEntryAutocompleteNeedsUpdate(false),
... |
<commit_before>/*
*/
#include "lineFollowing.h"
using namespace std;
using namespace cv;
ControlMovements lineFollowingControl() {
line_main();
return ControlMovements();
}
void line_main() {
// printf("Hello, this is Caleb\n");
VideoCapture cap("../../tests/videos/top_down_4.m4v");
if (!cap.isOpened()... |
<commit_before>/*
*/
#include "lineFollowing.h"
using namespace std;
using namespace cv;
ControlMovements lineFollowingControl() {
line_main();
return ControlMovements();
}
void line_main() {
// printf("Hello, this is Caleb\n");
VideoCapture cap("../../tests/videos/top_down_4.m4v");
if (!cap.isOpened()... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>// Copyright (c) 2015, Karsten Heinze <[email protected]>
// 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 ... |
<commit_before>/**
* @copyright
* ====================================================================
* Copyright (c) 2003 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also availab... |
<commit_before>/***********************************************************************************************************************
* *
* SPLASH build system v0.2 ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/sys/vfs/vfs_main.C $ ... |
<commit_before>#include "globals.h"
#include "syscalls.h"
#define LINUX_FUTEX_WAIT 0
#define LINUX_FUTEX_WAKE 1
#define LINUX_FUTEX_FD 2
#define LINUX_FUTEX_REQUEUE 3
#define LINUX_FUTEX_CMP_REQUEUE 4
#define LINUX_FUTEX_WAKE_OP 5
#define LINU... |
<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>//
// Unit tests for denial-of-service detection/prevention code
//
#include <algorithm>
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include "main.h"
#include "wal... |
<commit_before>#include "test_helper.h"
#include "compiler/lexical_grammar.h"
#include "compiler/prepare_grammar/expand_tokens.h"
#include "helpers/stream_methods.h"
START_TEST
using namespace rules;
using prepare_grammar::expand_token;
using prepare_grammar::ExpandTokenResult;
describe("expand_tokens", []() {
Met... |
<commit_before>#include "Consumer.hpp"
#include <iostream>
#include <fstream>
using namespace std;
using namespace data;
Consumer::Consumer(std::string const& name, TaskCore::TaskState initial_state)
: ConsumerBase(name, initial_state) {}
/// The following lines are template definitions for the various state mac... |
<commit_before>/*
* Copyright (C) 2004, 2006, 2008 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice... |
<commit_before>// Copyright (c) 2015-2019 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Auroracoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
#include <chainparams.h>
#include <pow... |
<commit_before>// Copyright (c) 2013 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/metrics/chrome_browser_main_extra_parts_metrics.h"
#include <string>
#include "base/bind.h"
#include "base/c... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/renderer_host/gtk_key_bindings_handler.h"
#include <gdk/gdkkeysyms.h>
#include <string>
#include <utility>
#in... |
<commit_before>#include <QtWidgets>
#include "mainwindow.h"
#include <fts_fuzzy_match.h>
#include <glob.h>
#include <string>
#include <map>
#include <database.h>
Window::Window(QWidget *parent) : QMainWindow(parent)
{
// Initalise database
db.setDatabaseName("recipes.db");
// Initialise widgets
search... |
<commit_before>/*
Copyright (C) 2012 Kolibre
This file is part of kolibre-player.
Kolibre-player 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 2.1 of the License, or
(at your option) any ... |
<commit_before>/* 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/. */
#include <glog/logging.h>
#include "cnetlink.h"
#include "nbi_impl.h"
#include "tap_manager.h"
#i... |
<commit_before>/**
* Copyright (c) 2011-2018 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free... |
<commit_before>// @(#)root/qtgsi:$Id$
// Author: Denis Bertini, M. Al-Turany 01/11/2000
/*************************************************************************
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "types.hpp"
TEST_CASE("sizeof") {
REQUIRE(sizeof(krbn::absolute_time_point) == 8);
REQUIRE(sizeof(krbn::vendor_id) == 4);
REQUIRE(sizeof(krbn::product_id) == 4);
REQUIRE(sizeof(krbn::location_id) == 4);
}
TEST_CASE("absolute_time_p... |
<commit_before>/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this fi... |
<commit_before>#include "ofxSquareScreen.h"
//--------------------------------------------------------------
void ofxSquareScreen::setup(){
mode = SC_MODE_INIT;
sWidth = ofGetWidth();
sHeight = ofGetHeight();
tween.setParameters(easingsine, ofxTween::easeInOut
, sWidth
, sWidth
, 100,0);
}
//----------... |
<commit_before>/** @file
Support class for describing the local machine.
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. T... |
<commit_before>// Copyright (c) 2012 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 "ipc/ipc_channel_nacl.h"
#include <errno.h>
#include <stddef.h>
#include <sys/nacl_imc_api.h>
#include <sys/nacl_syscalls.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 "build/build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#endif
#include <stack>
#include "base/atomic_sequence_num.h... |
<commit_before>//---------------------------------------------------------------------------
// hexanoise/generator_opencl.cpp
//
// Copyright 2014, [email protected] Released under the MIT License.
//---------------------------------------------------------------------------
#include "generator_opencl.hpp"
... |
<commit_before>#include "frost.h"
#include "forecast_time.h"
#include "level.h"
#include "logger.h"
#include "plugin_factory.h"
#include "fetcher.h"
#include "radon.h"
#include <NFmiLocation.h>
#include <NFmiMetTime.h>
using namespace std;
using namespace himan;
using namespace himan::plugin;
// rampDown function ret... |
<commit_before>/* options.cpp - CS 472 Project #2: Genetic Programming
* Copyright 2014 Andrew Schwartzmeyer
*
* Source file for options namespace
*/
#include <cassert>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <boost/program_options.hpp>
#include "options.hpp"
namesp... |
<commit_before>// $Id$
/*
Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior University
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... |
<commit_before>/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* trans/mangling.hpp
* - Name mangling support
*
*
* $D = ! type
* $A = Array
* $S = *-ptr
* $R = &-ptr
* $P = + symbol
* $E = = symbol
* $C = , symbol
* $H = # symbol
* $pL/$pR = Left/right paren
* $aL/$aR = Left/ri... |
<commit_before>/*************************************************************************
*
* $RCSfile: officeinstallationdirectories.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-07-05 10:36:13 $
*
* The Contents of this file are made available subject to the terms of
* either o... |
<commit_before>/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ ... |
<commit_before>// Copyright (c) 2011 libmv authors.
//
// 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>// test_helpers.cpp : functions to aid in testing and test reporting
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
// test reporting helper
int ReportTestResult(int nrOfFailedT... |
<commit_before>/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRTConf.h"
#include "SkOSFile.h"
SkRTConfRegistry::SkRTConfRegistry(): fConfs(100) {
SkFILE *fp = sk_fopen(configFileLocation(), kRead_SkFILE_F... |
<commit_before>#pragma once
#include "exception.hpp"
#include "debug.hpp"
#include <memory>
namespace utki{
/**
* @brief Intrusive singleton base class.
* This is a basic intrusive singleton template.
* Template params: T - your singletone class type, T_InstanceOwner - class which owns the static 'instance' v... |
<commit_before>/*
Q Light Controller Plus
main.cpp
Copyright (c) Massimo Callegari
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.txt
... |
<commit_before>#include <gtest/gtest.h>
#include <Unittests/unittests_common.hh>
#include <iostream>
namespace {
class OpenMeshVectorTest : public testing::Test {
protected:
// This function is called before each test is run
virtual void SetUp() {
// Do some initial stuf... |
<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 "remoting/jingle_glue/jingle_client.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "jingle/notifier/com... |
<commit_before>#include "tile.h"
#include "animation.h"
#include "camera.h"
#include "util/bitmap.h"
#include "util/debug.h"
#include "util/load_exception.h"
#include "util/token.h"
using namespace std;
using namespace Platformer;
Tile::Tile():
row(0),
column(0){
}
Tile::Tile(const Token * token, std::map< std::str... |
<commit_before>/*
video_resource.cpp
This file is part of:
GAME PENCIL ENGINE
https://create.pawbyte.com
Copyright (c) 2014-2020 Nathan Hurde, Chase Lee.
Copyright (c) 2014-2020 PawByte LLC.
Copyright (c) 2014-2020 Game Pencil Engine contributors ( Contributors Page )
Permission is hereby granted, free of c... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2014-2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>#include <igvc/SerialPort.h>
#include <iostream>
using namespace std;
using namespace boost::asio;
SerialPort::SerialPort(string device, int baud)
: port(ioservice),
path(device)
{
try
{
port.open(device);
} catch(...){}
if( !port.is_open() ) {
throw runti... |
<commit_before><commit_msg>sat: fixup schedule_requests_sat.cc<commit_after><|endoftext|> |
<commit_before>#pragma once
///////////////////////////////////////////////////////////////////////////////
/// @file DBBackend.hpp
/// @author BrainlessLabs
/// @version 0.3
/// @brief Implements the database backend.
///////////////////////////////////////////////////////////////////////////////
#include <soci/soci.... |
<commit_before>/*
* Launch WAS child processes.
*
* author: Max Kellermann <[email protected]>
*/
#include "was_launch.hxx"
#include "system/fd_util.h"
#include "system/fd-util.h"
#include "system/sigutil.h"
#include "spawn/Spawn.hxx"
#include "spawn/Prepared.hxx"
#include "spawn/ChildOptions.hxx"
#include "gerrno.h"
... |
<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>#ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_BASE_LOG_HANDLERS_HPP
#define GHULBUS_LIBRARY_INCLUDE_GUARD_BASE_LOG_HANDLERS_HPP
/** @file
*
* @brief Log Handlers.
* @author Andreas Weis ([email protected])
*/
#include <gbBase/config.hpp>
#include <gbBase/Log.hpp>
#include <condition_variable>
#includ... |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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 Lic... |
<commit_before>/*******************************************************************************
* include/huffman/huff_merge.hpp
*
* Copyright (C) 2017 Marvin Löbel <[email protected]>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
*******************************************... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#pragma once
#include <utility>
#include <stdexcept>
#include <vector>
#include <array_view.hpp>
#include "reflection_info.hpp"
#include "api_types.hpp"
#include "info_iterators.hpp"
namespace shadow
{
namespace reflection_initialization_detail
{
// used to handle cases where reflection_manager is i... |
<commit_before>/*
* type.hpp
*
* Copyright (c) 2015 Masatoshi Hanai
*
* This software is released under MIT License.
* See LICENSE.
*
*/
#ifndef SCALESIM_UTIL_TYPE_HPP_
#define SCALESIM_UTIL_TYPE_HPP_
#include <vector>
#include <boost/unordered_set.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/unorde... |
<commit_before>#include "sherwood_mex.h"
#if USE_OPENMP == 1
#include <omp.h>
#endif
using namespace MicrosoftResearch::Cambridge::Sherwood;
template<typename F>
class FeatureFactory: public IFeatureResponseFactory<F>
{
public:
FeatureFactory(unsigned int dimensions, std::vector<Stats> featureStats) ... |
<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>#ifndef TWISTEDCPP_REACTOR_HPP
#define TWISTEDCPP_REACTOR_HPP
#include "exception.hpp"
#include "sockets.hpp"
#include "ssl_options.hpp"
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/system/system_erro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.