text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "rpcserver.h"
#include "init.h"
#include "main.h"
#include "sync.h"
#include "wall... |
<commit_before>#include "SplashScene.h"
#include "HelloWorldScene.h"
#include "AppMacros.h"
#include "GreedyGameSDK.h"
USING_NS_CC;
CCLabelTTF* pLabel;
CCScene* SplashScene::scene()
{
// 'scene' is an autorelease object
CCScene *scene = CCScene::create();
// 'layer' is an autorelease object
... |
<commit_before>/*
* Jamoma DataspaceLib: DistanceDataspace
* Copyright 2007, Nils Peters
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
* Based on code by Trond Lossius, 2007 and
* Jan Schacher / ICST Zurich 2006
*
*
*/
#include "Posit... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkLBFGSBOptimizer.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCo... |
<commit_before>/*
Copyright (c) 2011, The Mineserver Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this ... |
<commit_before>#include <iostream>
#include <chrono>
#include <thread>
#include <string>
#include <fstream>
#include <sstream>
const std::string NETWORK_IF = "eth0";
using namespace std;
int main() {
while (true) {
// Current point in time as reference
const auto date = std::chrono::duration_cast<std::chr... |
<commit_before>/*
Start edit with Emacs
Aris Bezas
*/
#include <string>
using namespace std;
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
//ofSetVerticalSync(true);
ofSetFrameRate(30);
camera.setDistance(400);
ofSetCircleResolution(3);
co... |
<commit_before>#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(0,0,0);
ofSetBackgroundAuto(false);
isFullScreen = false;
ofSetFrameRate(30);
masterCounter = 0;
direction = 1; //count up
// OSC STUFF
rece... |
<commit_before>/* This file is part of Zanshin Todo.
Copyright 2008 Kevin Ottens <ervin@kde.org>
Copyright 2008, 2009 Mario Bensi <nef@ipsquad.net>
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... |
<commit_before>/*
* Copyright (c) 2015 Pavel Vainerman.
*
* This program 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, version 2.1.
*
* This program is distributed in the hope that it will be u... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// FILE: ThorlabsDCStage.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
// DESCRIPTION: Thorlabs device ada... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>//
// flags.cc
// tbd
//
// Created by administrator on 7/10/17.
// Copyright © 2017 inoahdev. All rights reserved.
//
#include <cstdio>
#include <cstdlib>
#include <cerrno>
#include <cstring>
#include "flags.h"
flags::flags(long length)
: length_(length) {
if (length > bit_size()) {
... |
<commit_before>#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using std::atof;
using std::count;
using std::cout;
using std::cerr;
using std::endl;
... |
<commit_before>//
//
// MIT License
//
// Copyright (c) 2020 Stellacore 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... |
<commit_before>/* TimeManager.cpp
*
* Kubo Ryosuke
*/
#include "search/time/TimeManager.hpp"
#include "search/Searcher.hpp"
namespace {
using namespace sunfish;
PV::SizeType getPvStability(const PV& pv, const PV& pv2) {
PV::SizeType pvStability = 0;
for (; pvStability < pv.size() &&
pvStability < pv... |
<commit_before>// https://github.com/KubaO/stackoverflown/tree/master/questions/multisocket-22726075
#include <QtNetwork>
class EchoServer : public QTcpServer
{
QStack<QTcpSocket*> m_pool;
void incomingConnection(qintptr descr) Q_DECL_OVERRIDE {
auto newSocket = m_pool.isEmpty();
auto s = newSocket ?... |
<commit_before>// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
#include <quic/common/TransportKnobs.h>
#include <folly/portability/GTest.h>
using namespace ::testing;
namespace quic {
namespace test {
struct QuicKnobsParsingTestFixture {
std::string serializedKnobs;
bool expectError;
T... |
<commit_before>#include "contest.h"
#include <simlib/debug.h>
#include <simlib/logger.h>
#include <simlib/time.h>
using std::string;
using std::vector;
string Contest::submissionStatusDescription(const string& status) {
if (status == "ok")
return "Initial tests: OK";
if (status == "error")
return "Initial tes... |
<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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sallayout.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2007-12-12 13:19:53 $
*
* The Contents of this file are made... |
<commit_before>#include "xcfun_internal.h"
// Compute the xc potential(s). This is simple for lda and more complicated for
// GGA's. For metaGAA's that depend on tau this is a non-local problem and
// cannot be solved by xcfun. Laplacian dependent metaGGA's could be implemented..
// Another option is to evaluate the... |
<commit_before>/* Copyright (c) 2013-2016 Jeffrey Pfau
*
* 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 "ObjView.h"
#include "GBAApp.h"
#include <QFon... |
<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 "GrSoftwarePathRenderer.h"
#include "GrPaint.h"
#include "SkPaint.h"
#include "GrRenderTarget.h"
#include "GrContext.h"
#include "SkDraw.h"
#include ... |
<commit_before>#ifndef STAN_IO_STAN_CSV_READER_HPP
#define STAN_IO_STAN_CSV_READER_HPP
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <Eigen/Dense>
#include <istream>
#include <iostream>
#include <sstream>
#include <string>
namespace stan {
namespace io {
// FIXME: should cons... |
<commit_before>/*
* File: ShaderProgram.cpp
* Author: Ale Strooisma
*
* Created on June 8, 2015, 5:04 PM
*/
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "ShaderProgram.hpp"
#include "exceptions.hpp"
using namespace std;
str... |
<commit_before>
void logging_setup();
void logging_loop(FILE *logging_file);
void logging_setup() {
p_sensor.MS5803Init();
gps_ser.baud(9600);
mkdir("/sd/test_dir", 0777);
FILE *fp = fopen("/sd/test_dir/test_file.txt", "a");
if(fp == NULL) {
error("Could not open file for write\n");
... |
<commit_before>#include <SPI.h>
#define PACKET_BODY_LENGTH 2
bool transmitMany = false;
int bytesSent = 0;
int CHIPSELECT = 16;
int incomingByte = 0;
int numError = 0;
uint16_t echo[PACKET_BODY_LENGTH] = {0x0, 0xbbbb};
uint16_t stat[PACKET_BODY_LENGTH] = {0x1, 0xaaaa};
uint16_t idle_[PACKET_BODY_LENGTH] = {0x2, 0xcccc}... |
<commit_before>// @(#)root/thread:$Id$
// Author: Danilo Piparo, CERN 11/2/2016
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestMapVectorsAsRGBColors.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for deta... |
<commit_before>// @(#)root/thread:$Id$
// Author: Danilo Piparo, CERN 11/2/2016
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
* All rights reserved. Email: russ@q12.org Web: www.q12.org *
* ... |
<commit_before>#include <iostream>
#include <boost/function.hpp>
#include <lcm/lcm.h>
#include <lcm/lcm-cpp.hpp>
#include "lcmtypes/drc_lcmtypes.hpp"
#include <GL/gl.h>
#include <bot_vis/bot_vis.h>
#include <bot_core/rotations.h>
#include <gdk/gdkkeysyms.h>
#include <path_util/path_util.h>
#include "RobotStateLis... |
<commit_before>/* libs/graphics/animator/SkDisplayXMLParser.cpp
**
** Copyright 2006, The Android Open Source Project
**
** 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://w... |
<commit_before>/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
qffpa_tactic.cpp
Abstract:
Tactic for QF_FPA benchmarks.
Author:
Christoph (cwinter) 2012-01-16
Notes:
--*/
#include"tactical.h"
#include"simplify_tactic.h"
#include"bit_blaster_tactic.h"
#include"sat_tactic.h"
#include"fpa2bv... |
<commit_before>#include "atom.h"
#include "variable.h"
#include "number.h"
#include <string>
#include <iostream>
using namespace std;
bool Variable::match( Atom atom ){
if(_assignable){
_value = atom._symbol ;
_assignable = false;
this->Aptr = &atom;
cout<<"the value of Aptr first ma... |
<commit_before>#include <gtest/gtest.h>
#include "robot_utils/ros_thread_image.h"
class ROSImageObject: public ROSThreadImage
{
public:
ROSImageObject(std::string namenew): ROSThreadImage(namenew) {}
void InternalThreadEntry();
};
void ROSImageObject::InternalThreadEntry() {
std::cout << "test" << ... |
<commit_before>#include "pacman_vision/estimator.h"
#include "pacman_vision/utility.h"
///////////////////
//Estimator Class//
///////////////////
//Constructor
Estimator::Estimator(ros::NodeHandle &n)
{
this->scene.reset(new PEC);
this->nh = ros::NodeHandle (n, "estimator");
this->queue_ptr.reset(new ros::Call... |
<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/.
*
* Copyright (C) 2017, James R. Barlow (https://github.com/jbarlow83/)
*/
/*
* Convert Python ... |
<commit_before>#include "resources.h"
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <dirent.h>
#endif
#include <cstdio>
#include <filesystem>
#include <SDL.h>
#ifdef ANDROID
#include <SDL.h>
#include <jni.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#e... |
<commit_before>#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "smartrewardslist.h"
#include "ui_smartrewardslist.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "platformstyle.h"
#include "txmempool.h"
#include "walle... |
<commit_before>/*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compl... |
<commit_before>#include "crt.h"
#include "map.h"
#include "node.h"
#include "scanner.h"
#include "token.h"
#include "exceptions.h"
#include <iostream>
namespace YAML
{
Map::Map()
{
}
Map::~Map()
{
Clear();
}
void Map::Clear()
{
for(node_map::const_iterator it=m_data.begin();it!=m_data.end();++it) {
de... |
<commit_before>#include <spsc_queue.h>
#include "gtest/gtest.h"
#include <atomic>
#include <memory>
#include <thread>
using namespace std;
using namespace mndy;
TEST(SpscQueueTest, SimpleOneThread) {
spsc_queue<int> q;
spsc_reader<int> r(q);
spsc_writer<int> w(q);
for (int i = 0; i < 8; i++) {
w.push(unique_... |
<commit_before>//..............................................................................
//
// This file is part of the AXL library.
//
// AXL is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloa... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: flushcode.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-07 22:18:51 $
*
* The Contents of this file are made... |
<commit_before>/*
* Copyright (c)2015 Oasis LMF Limited
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this... |
<commit_before>#include "tokenizer.h"
#include "token.h"
#include <string>
#include <cctype>
namespace {
static const char EndOfFileChar = std::char_traits<char>::to_char_type(std::char_traits<char>::eof());
}
//-----------------------------------------------------------------------------------------------... |
<commit_before>#line 2 "togo/hash/hash_combiner.hpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief HashCombiner interface.
@ingroup hash
@ingroup hash_combiner
*/
#pragma once
#include <togo/config.hpp>
#include <togo/types.hpp>
#include <togo/string/string.hpp>
#include <... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// ok is an experimental test harness, maybe to replace DM. Key features:
// * work is balanced across separate processes for stability and isolation;
// *... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "containers/disk_backed_queue.hpp"
#include "arch/io/disk.hpp"
#include "buffer_cache/alt/alt.hpp"
#include "buffer_cache/alt/blob.hpp"
#include "buffer_cache/alt/cache_balancer.hpp"
#include "buffer_cache/alt/alt_serialize_onto_blob.hpp"
#... |
<commit_before><?hh //strict
/**
* This file is part of specify.
*
* (c) Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace specify\reporter;
use specify\LifeCycleEvent;
use specify\LifeCycl... |
<commit_before>#include "example_generator.h"
#include <string>
#include "helper/bounding_box.h"
#include "loader/loader_imagenet_det.h"
#include "helper/high_res_timer.h"
#include "helper/helper.h"
#include "helper/image_proc.h"
using std::string;
// Choose whether to shift boxes using the motion model or using a... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// ok is an experimental test harness, maybe to replace DM. Key features:
// * work is balanced across separate processes for stability and isolation;
// *... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/eff_config/timin... |
<commit_before>/*
Resembla: Word-based Japanese similar sentence search library
https://github.com/tuem/resembla
Copyright 2017 Takashi Uemura
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
h... |
<commit_before>/*
Demonstration of Modified Nodal Analysis
Originally by Antonio Carlos M. de Queiroz (acmq@coe.ufrj.br)
Modified by Dhiana Deva, Felipe de Leo, Silvino Vieira
*/
/*
Elementos aceitos e linhas do netlist:
Resistor: R<nome> <no+> <no-> <resistencia>
VCCS: G<nome> <io+> <io-> <vi+> <vi-> <tr... |
<commit_before>#include "item.h"
#include "itemdb.h"
using namespace RoseCommon;
Item::Item() :
type_(Item::WEARABLE),
id_(0),
isCreated_(false),
gemOpt_(0),
durability_(0),
life_(0),
hasSocket_(false),
isAppraised_(false),
refine_(0),
count_(0),
isStackable_(false),
at... |
<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 libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>#include "HalideRuntime.h"
#include "HalideRuntimeCuda.h"
#include "HalideRuntimeOpenGL.h"
#include "HalideRuntimeOpenGLCompute.h"
#include "HalideRuntimeOpenCL.h"
#include "HalideRuntimeRenderscript.h"
#include "HalideRuntimeMetal.h"
#include "HalideRuntimeIon.h"
#include "runtime_internal.h"
// This r... |
<commit_before>#ifndef FROMEVENT_HPP
#define FROMEVENT_HPP
#include "FlagStatus.hpp"
#include "IOLogWrapper.hpp"
#include "List.hpp"
#include "Params.hpp"
#include "Vector.hpp"
#include "bridge.h"
namespace org_pqrs_Karabiner {
class FromEvent;
class FromEventManager {
friend class FromEvent;
public:
class Item... |
<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 libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/*
* =====================================================================================
*
* Filename: scheduler.cpp
*
* Description: TouchNet 2 Scheduler
*
* Version: 0.1
* Created: 05/03/13 15:54:32
* Revision: none
* Compiler: g++
*
* Auth... |
<commit_before>/*
Copyright (c) 2016 Ravi Peters
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, merge, publish, ... |
<commit_before>#include "blackhole/detail/sink/asynchronous.hpp"
#include <cmath>
#include <condition_variable>
#include <mutex>
namespace blackhole {
inline namespace v1 {
namespace experimental {
namespace sink {
namespace {
static auto exp2(std::size_t factor) -> std::size_t {
if (factor > 20) {
throw... |
<commit_before>// Copyright (c) 2016 The Zcash developers
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44
/*
To set up a new alert system
----------------------------
Create a new alert key pair:
openssl ecparam -name secp256k1 -genkey -param_enc explicit -outform PEM -out data.pem
Get th... |
<commit_before>#include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <cstring>
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include <list>
#include <bitset>
using namespace std;
#define ll long long
#define lson... |
<commit_before>#include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <cstring>
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include <list>
#include <bitset>
using namespace std;
#define ll long long
#define lson... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>// spatial_tree.cpp
//
#include "common/common.h"
#include "spatial_tree.h"
#include "database.h"
#include "page_info.h"
#include "index_tree_t.h"
namespace sdl { namespace db {
spatial_tree::index_page::index_page(spatial_tree const * t, page_head const * h, size_t const i)
: tree(t), h... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>#ifndef DEDICATED_ONLY
#include <boost/assign/list_inserter.hpp>
using namespace boost::assign;
#include <vector>
#include <list>
#include <AL/al.h>
#include <boost/utility.hpp>
#include "sfx.h"
#include "sfxdriver.h"
#include "sfxdriver_openal.h"
#include "gusanos/gconsole.h"
#include "CGameObject.h"... |
<commit_before>/*
* Copyright 2018 Google, Inc.
*
* 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 conditions and the following ... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>#ifndef _OUROBOROS_BASE_HPP_
#define _OUROBOROS_BASE_HPP_
#include <string>
#include <memory>
namespace ouroboros
{
//Have this verify that our code generator is generating valid structures
bool validateStructure();
class base_field
{
public:
base_field(
const std::string& aTitle,
const s... |
<commit_before>#include "version.hpp"
// Get the git version macro from the build system
#include "vg_git_version.hpp"
// Do the same for the build environment info
#include "vg_environment_version.hpp"
#include <iostream>
#include <sstream>
namespace vg {
using namespace std;
// Define all the strings as the mac... |
<commit_before>//===------------------------ stdexcept.cpp -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>//
// ocr.cpp
// license-plate-recognition
//
// Created by David Pearson on 10/22/14.
// Copyright (c) 2014 David Pearson. All rights reserved.
//
#include <opencv2/opencv.hpp>
#include <tesseract/baseapi.h>
#include "ocr.h"
using namespace cv;
using namespace tesseract;
char *get_plate_text(Mat... |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree... |
<commit_before>/*
* Copyright © 2018 AperLambda <aperlambda@gmail.com>
*
* This file is part of λcommon.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
#include "../../include/lambdacommon/system/fs.h"
#include <lambdacommon/lstring.h>
#include <stdexcept>
#ifdef LAMBDA_WI... |
<commit_before>/**
* \file
* \brief Execute async task on application
*
* \author Uilian Ries <uilianries@gmail.com>
*/
#include "task/task.hpp"
#include <stdexcept>
namespace smartaquarium {
task::task(const std::string& _task_name, work _work, Poco::Logger& _logger)
: Poco::Task(_task_name)
, logger_(... |
<commit_before>/**
* \file
* \remark This file is part of VITA.
*
* \copyright Copyright (C) 2013-2015 EOS di Manlio Morini.
*
* \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 this file,
* You can obtain one... |
<commit_before>//============================================================================
// Name : pel.cpp
// Author : Joe Selman
// Version :
//============================================================================
#include "PELConfig.h"
#include <boost/program_options.hpp>
#include <boos... |
<commit_before>#ifndef _PFA_HPP
#define _PFA_HPP
#include <armadillo>
#include <map>
static const double INV_SQRT_2PI = 0.3989422804014327;
static const double INV_SQRT_2PI_LOG = -0.91893853320467267;
inline double normal_pdf(double x, double m, double s)
{
double a = (x - m) / s;
return INV_SQRT_2PI / s * std::... |
<commit_before>/*
Copyright (c) 2010, The Mineserver Project
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, th... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#i... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Contact: Aaron Kennedy <aaron.kennedy@jollamobile.com>
**
** This file is part of lipstick.
**
** This library is free software; you can redistribute it and/or
** modify it under the terms ... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>#ifndef TOML11_REGION_H
#define TOML11_REGION_H
#include "exception.hpp"
#include <memory>
#include <algorithm>
#include <initializer_list>
#include <iterator>
#include <iostream>
namespace toml
{
namespace detail
{
// helper function to avoid std::string(0, 'c')
template<typename Iterator>
std::string... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCNPCRefreshModule.cpp
// @Author : LvSheng.Huang
// @Date : 2013-10-17
// @Module : NFCNPCRefreshModule
// ----------------------------... |
<commit_before>// -*- c-basic-offset: 2; related-file-name: "element.h" -*-
/*
* @(#)$Id$
*
* Modified from the Click Element base class by Eddie Kohler
* statistics: Robert Morris
* P2 version: Timothy Roscoe
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2004 Regents of the... |
<commit_before>#include <native/UriTemplate.hpp>
#include <native/UriTemplateFormat.hpp>
#include <native/UriTemplateValue.hpp>
#include <gtest/gtest.h>
using namespace native;
namespace
{
void initGlobalFormats()
{
static bool initiated = false;
if(initiated)
{
return;
... |
<commit_before>// Copyright 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 "ui/app_list/app_list_switches.h"
#include "base/command_line.h"
namespace app_list {
namespace switches {
// If set, the app i... |
<commit_before>#include "task/task.hh"
task::Task::Task(unsigned task_id, int16_t fun_id, std::vector<int64_t>& params)
: id(task_id)
, is_complete(false)
, fun_id(fun_id)
, params(params)
{}
<commit_msg>Adding task.cc<commit_after>#include "task.hh"
task::Task::Task(unsigned task_id, int16_t fun_id, std::vec... |
<commit_before>// coding: utf-8
// ----------------------------------------------------------------------------
/*
* Copyright (c) 2015, Christian Menard
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImageRegionIterator.h"
#include "itkRGBPixel.h"
#include "itkRGBAPixel.h"
#include "itkRedColormapFunctor.h"
#include "itkGreenColormapFunctor.h"
#include "itkBlueColormapFunctor.h"
#include "itkGreyColorm... |
<commit_before><commit_msg>There are instances where the URLRequestAutomationJob::Kill() function can get called after Cleanup, which results in the AutomationResourceMessageFilter member getting destroyed and a subsequent crash.<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.