text stringlengths 54 60.6k |
|---|
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: serviceinfohelper.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:55:54 $
*
* The Contents of this file ... |
<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 "content/common/sandbox_init_wrapper.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/logging.h"
... |
<commit_before>#if __cplusplus > 199711L
#include "Halide.h"
// When using Generators to JIT, just include the Generator .cpp file.
// Yes, this is a little unusual, but it's recommended practice.
#include "example_generator.cpp"
using Halide::Image;
const int kSize = 32;
void verify(const Image<int32_t> &img, flo... |
<commit_before>/*
All Hands On Deck
Copyright (C) 2015-2017 Vladimir "allejo" Jimenez
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 3 of the License, or
(at your ... |
<commit_before>#include <memory>
#include <UnitTest++/UnitTest++.h>
#include "Article.h"
#include "ArticleCollection.h"
SUITE(CollectionTests)
{
using namespace WikiWalker;
TEST(MakeSureNoDuplicateArticlesExist)
{
ArticleCollection w;
auto la1 = std::make_shared<Article>("King"),
la2 = std::m... |
<commit_before>#ifndef DUNE_STUFF_LA_CONTAINER_SEPARABLE_HH
#define DUNE_STUFF_LA_CONTAINER_SEPARABLE_HH
#include <dune/common/exceptions.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/stuff/la/container/eigen.hh>
#include <dune/stuff/function/nonparametric/expression.hh>
#include <dune/stuff/common/separab... |
<commit_before>
#include <iostream>
#include <fstream>
#include <utility>
#include <ctime>
// TCLAP
#include "tclap/CmdLine.h"
#include <sdsl/bit_vectors.hpp>
#include <cstdio>
#include <cstdlib>
#include <libgen.h>
#include <sparsepp/spp.h>
#include <boost/dynamic_bitset.hpp>
using spp::sparse_hash_map;
// Custom ... |
<commit_before><commit_msg>INTEGRATION: CWS ooo19126 (1.1.1.1.272); FILE MERGED 2005/09/05 14:01:06 rt 1.1.1.1.272.1: #i54170# Change license header: remove SISSL<commit_after><|endoftext|> |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2013-2017 ARM Limited
*
* 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
... |
<commit_before>/*
** Copyright 2015 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law o... |
<commit_before>#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
using namespace std;
void callback(const sensor_msgs::PointCloud2ConstPtr& cloud) {
ROS_INFO("Callback! %d %d", cloud->width, cloud->height)... |
<commit_before>#include "Polymer.h"
#include<cmath>
#include<iostream>
#include<stdlib.h>
void Polymer::Initiate_monomer_array(double pos, double vel) {
delete A_monomer;
A_monomer = new Monomer [A_length];
if (pos != 0 && vel != 0)
for (int i=0;i<A_length;i++)
A_monomer[i].Set_pos_vel((rand()%5)*9./10,0);... |
<commit_before>#include <ContentForgeTool.h>
#include <Utils.h>
#include <HRDParser.h>
//#include <CLI11.hpp>
#include <thread>
//#include <mutex>
#include <iostream>
#include <filesystem>
namespace fs = std::filesystem;
// Set working directory to $(TargetDir)
// Example args:
// -s src/effects
class CEffectTool : ... |
<commit_before>#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "entityx/System.h"
#include "Transform.h"
#include "cinder/Perlin.h"
#include "cinder/Rand.h"
#include "Components.h"
#include "Systems.h"
#include "Expires.h"
#include "ExpiresSystem.h"
#include "Behavior... |
<commit_before>/**
* Copyright (c) 2016-2018 Netflix, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
<commit_before>//===--- TextInput.cpp - Main Interface -------------------------*- 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 "merkle_server.h"
#include "dhash.h"
// ---------------------------------------------------------------------------
// merkle_send_range
// This class
// 1) sends all the keys returned by the database iterator
// 2) and then deletes itself
// It limits itself to at max 64 outstanding s... |
<commit_before><commit_msg>Contributions to tests by David Hoerl<commit_after><|endoftext|> |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2012 Thibaut Gridel <tgridel@free.fr>
//
#include <QtTest/QtTest>
... |
<commit_before>/*! \file uobject-common.cc
*******************************************************************************
File: uobject-common.cc\n
Implementation of the UObject class.
This file is part of LIBURBI\n
Copyright (c) 2004, 2005, 2006, 2007, 2008 Jean-Christophe Baillie.
Permission to use, copy, mo... |
<commit_before>#include <gtest/gtest.h>
#include <ttl/mmap.h>
using namespace thalhammer;
TEST(MMAPTest, MapFile) {
const std::string data = "Hello World, how are you ?";
mmap map;
ASSERT_EQ(nullptr, map.data());
ASSERT_FALSE(map.is_valid());
ASSERT_TRUE(map.open("test_data/mmap_test.txt"));
ASSERT_TRUE(map.... |
<commit_before>/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0... |
<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 "config.h"
#include "FormData.h"
#include "HTTPHeaderMap.h"
#include "ResourceRequest.h"
#undef LOG
#include "base/logg... |
<commit_before>/*!
* \page batch_travelccm_cpp Command-Line Utility to Demonstrate Typical TravelCCM Usage
* \code
*/
// STL
#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
// Boost (Extended STL)
#include <boost/program_options.hpp>
// StdAir
#include <stdair/basic/Bas... |
<commit_before>/*
Bacula® - The Network Backup Solution
Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it a... |
<commit_before>// This file is part of Playslave-C++.
// Playslave-C++ is licenced under the MIT license: see LICENSE.txt.
/**
* @file
* The BoostRingBuffer class template.
* @see ringbuffer/ringbuffer.hpp
* @see ringbuffer/ringbuffer_pa.hpp
*/
#ifndef PS_RINGBUFFER_BOOST_HPP
#define PS_RINGBUFFER_BOOST_HPP
#in... |
<commit_before>/*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>/* Copyright 2016 Stanford University, NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
#include "adjustment.hh"
#include "factory.hh"
namespace Rapicorn {
Adjustment::Adjustment() :
sig_value_changed (Aida::slot (*this, &Adjustment::value_changed)),
sig_range_changed (Aida::slot (*this, &Adjustment::range_changed... |
<commit_before>#ifndef MIDDLEWARE_PARSLEY_HPP
#define MIDDLEWARE_PARSLEY_HPP
#include "json.hpp"
#include "middleware.hpp"
/**
* @brief A vegan way to parse JSON Content in a response
* @details TBC..
*
*/
class Parsley : public server::Middleware {
public:
virtual void process(
server::Request_ptr req,
... |
<commit_before>#ifndef ITER_POWERSET_HPP_
#define ITER_POWERSET_HPP_
#include "iterbase.hpp"
#include "combinations.hpp"
#include <cassert>
#include <memory>
#include <initializer_list>
#include <utility>
#include <iterator>
#include <type_traits>
namespace iter {
template <typename Container>
class Powerset... |
<commit_before><commit_msg>添加性能测试用例<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2009-2013 Juli Mallett. 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, th... |
<commit_before>/*
** Copyright 2011 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed i... |
<commit_before>/*
* SessionExecuteChunkOperation.hpp
*
* Copyright (C) 2009-16 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU... |
<commit_before>/* Copyright 2015 CyberTech Labs Ltd.
*
* 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 applicab... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ViewShellImplementation.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:44:10 $
*
* The Contents of thi... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2015, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "MainUI.h"
#include "ui_MainUI.h"
#include "syntaxSuppor... |
<commit_before>#include <allheaders.h>
#include <tesseract/baseapi.h>
#include <libgen.h> // for dirname
#include <cstdio> // for printf
#include <cstdlib> // for std::getenv, std::setenv
#include <string> // for std::string
#ifndef TESSERACT_FUZZER_WIDTH
# define TESSERACT_FUZZER_WIDTH 100
#endif
#ifndef TESS... |
<commit_before>/*
* Copyright (c) 2014-2016, imec
* All rights reserved.
*/
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <random>
#include <unistd.h>
#include "io.h"
#include "bpmf.h"
using namespace std;
using namespace Eigen;
#ifdef BPMF_HYBRID_COMM
#define BPMF_GPI_C... |
<commit_before>// Copyright 2014 The Cockroach Authors.
//
// 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 appli... |
<commit_before>#ifdef HAVE_CONFIG_H
# include "../config.h"
#endif // HAVE_CONFIG_H
#ifdef STDC_HEADERS
# include <string.h>
# include <stdlib.h>
#endif // STDC_HEADERS
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif // HAVE_STDIO_H
#include "../src/i18n.hh"
#include "bsetroot.hh"
#include <iostream>
using names... |
<commit_before>#include <stdlib.h>
#include <string.h>
#include <re2jit/threads.h>
static rejit_thread_t *rejit_thread_new(rejit_threadset_t *r)
{
rejit_thread_t *t;
if (r->free) {
// Reuse dead threads to cut on malloc-related costs.
t = r->free;
r->free = t->next;
} else {
... |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*/
#include "row_cache.hh"
#include "core/memory.hh"
#include "core/do_with.hh"
#include "core/future-util.hh"
#include <seastar/core/scollectd.hh>
#include "memtable.hh"
static logging::logger logger("cache");
cache_tracker& global_cache_tracker() {
static t... |
<commit_before>#ifndef RANGER_UTIL_RW_LOCK_HPP
#define RANGER_UTIL_RW_LOCK_HPP
#include <mutex>
#include <condition_variable>
namespace ranger { namespace util {
class rw_lock
{
public:
rw_lock() = default;
rw_lock(const rw_lock&) = delete;
rw_lock& operator = (const rw_lock&) = delete;
void read_lock()
{
s... |
<commit_before>//===- ValueTypes.cpp - Tablegen extended ValueType implementation --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<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>/* -*- 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 "include/a_devdiag.h"
#include "include/netstructures.h"
void a_devdiag() {
pcap_if_t *alldevs;
char errbuf[PCAP_ERRBUF_SIZE];
if (pcap_findalldevs(&alldevs, errbuf) == -1) {
printf("Could not find all network devices: %s\n", errbuf);
exit(1);
}
int i = 0;
pcap_if_t *d;
for (d = al... |
<commit_before>#include <vsmc/utility/tuple_manip.hpp>
#include <vsmc/internal/traits.hpp>
#include <cassert>
namespace temp_ns {
VSMC_DEFINE_TUPLE_APPLY(Vector, std::vector)
}
int main ()
{
assert(VSMC_HAS_CXX11_VARIADIC_TEMPLATES);
using vsmc::cxx11::is_same;
typedef std::tuple<> empty;
typedef... |
<commit_before>/**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#include <cstdlib>
#ifdef CLEVER_WIN32
# include <direct.h>
# include <windows.h>
# define PATH_MAX MAX_PATH
#else
# include <dirent.h>
# include <unistd.h>... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: precompiled_vcl.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2006-09-17 11:47:02 $
*
* The Contents of this file a... |
<commit_before><commit_msg>XubString->OUString<commit_after><|endoftext|> |
<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><commit_msg>remove obsolete pieces, and erroneous conditional<commit_after><|endoftext|> |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (a... |
<commit_before>#include <node.h>
#include <node_object_wrap.h>
#include <unicode/unistr.h>
#include <unicode/usprep.h>
#include <cstring>
#include <exception>
using namespace v8;
using namespace node;
/*** Utility ***/
static Handle<Value> throwTypeError(const char *msg)
{
return ThrowException(Exception::TypeErro... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// Licensed to Qualys, Inc. (QUALYS) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// QUALYS licenses this fil... |
<commit_before>#ifndef VIENNAGRID_STORAGE_INSERTER_HPP
#define VIENNAGRID_STORAGE_INSERTER_HPP
//#include "viennagrid/storage/reference.hpp"
#include "viennagrid/storage/container_collection.hpp"
#include "viennagrid/storage/container_collection_element.hpp"
namespace viennagrid
{
namespace storage
{
... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://open... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_SPACES_CONTINUOUSLAGRANGE_HH
#define DUNE_GDT_SPACES_CONTINUOUSLAGRANGE... |
<commit_before>//------------------------------------------------------------------------------
// File: oapiimpl.hpp
//
// Desc: OpenCVR API - OpenCVR API.
//
// Copyright (c) 2014-2018 opencvr.com. All rights reserved.
//------------------------------------------------------------------------------
#ifndef __VSC_OAPI... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_OPERATOR_PRODUCTS_HH
#define DUNE_GDT_OPERATOR_PRODUCTS_HH
#include <ty... |
<commit_before>/*
To run, compile and execute a C++ program on Linux Mint /Ubuntu.
First install the g++ compiler...
sudo apt-get install g++
...and then follow the steps:
Open terminal ( Ctrl+Alt+t)
Locate the program file on terminal
g++ programname -o outputfilename
g++ helloworld.cpp -o hello
./he... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, 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:
*
* * Redistributions of... |
<commit_before>#pragma once
#include <limits>
#include <cassert>
#include "acmacs-base/vector.hh"
#include "acmacs-base/transformation.hh"
#include "acmacs-base/stream.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
class Coordinates : public Vector
{
pu... |
<commit_before>#include <iostream>
using namespace std;
#include <TFile.h>
#include <TTree.h>
#include <TChain.h>
#include <TVectorD.h>
#include <TF1.h>
#include "X.h"
using namespace GEFICA;
//______________________________________________________________________________
// Create grid for 1-D field calculation.
// ... |
<commit_before>#include "sync_client.h"
<commit_msg>[sync] Fix pin_sim.cc.<commit_after>// Jonathan Eastep, Harshad Kasture, Jason Miller, Chris Celio, Charles Gruenwald,
// Nathan Beckmann, David Wentzlaff, James Psota
// 10.12.08
//
// Carbon Computer Simulator
//
// This simulator models future multi-core computers ... |
<commit_before>
#include "platform.h"
#include <platform/xlib/system.h>
//#include <platform/xcb/system.h>
//#include <platform/dummy/system.h>
namespace platform
{
////////////////////////////////////////
void platform::init( void )
{
platform::platform::enroll( "xlib", "gl", [] { return std::make_shared<xlib::sys... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2021 Intel Corporation. All Rights Reserved.
#include <iostream>
#include <string>
#include <string.h> // memcpy
#include <fstream>
#include <vector>
#include "tclap/CmdLine.h"
#include <lz4.h>
#define STB_IMAGE_IMPLEMENTATION... |
<commit_before>namespace mant {
template <typename T, typename U = double>
class GridSearch : public SamplingBasedOptimisationAlgorithm<T, U> {
public:
explicit GridSearch(
const std::shared_ptr<OptimisationProblem<T, U>> optimisationProblem) noexcept;
void setNumberOfSamples(
c... |
<commit_before>// symbiosis: A framework for toy compilers
//
#include "symbiosis.hpp"
#include <sys/stat.h>
#include <iostream>
#include <vector>
#include <functional>
#include "cpu_defines.hpp"
using namespace std;
namespace symbiosis {
void dump(uchar* start, size_t s) {
for (size_t i = 0; i < s; i++) {
... |
<commit_before>#include <stdio.h>
#include <string.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
#define N 10100
int par[N];
int n;
int l, r;
vector<int> lv, rv;
int main () {
int T;
cin >> T;
for (int i = 0; i < T; i++) {
::memset(par, ... |
<commit_before>#ifndef VEXCL_VECTOR_POINTER_HPP
#define VEXCL_VECTOR_POINTER_HPP
/*
The MIT License
Copyright (c) 2012-2015 Denis Demidov <dennis.demidov@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to de... |
<commit_before>/* Simulation of a neural network - read the header and README for further documentation */
#include "neuron.hpp"
#include <fstream>
#include "ppm/ppm.hpp"
#include "tclap/ValueArg.h"
#include <cassert>
#define INIT_SPIKE_FACTOR 10
WARPED_REGISTER_POLYMORPHIC_SERIALIZABLE_CLASS(CellEvent)
std::vector... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "utils.h"
#ifdef HAVE_PTHREAD_NAMING
#include <pthread.h>
#ifndef DE... |
<commit_before>#include "vlc_video_source.h"
#include <cstdio>
#include <cstdlib>
#include <chrono>
#include <thread>
namespace gg
{
VideoSourceVLC::VideoSourceVLC(const std::string path)
: _vlc_inst(nullptr)
, _vlc_mp(nullptr)
, _running(false)
, _video_buffer(nullptr)
, _data_length(0)
, _co... |
<commit_before>#define BOOST_TEST_MODULE EnergyStorageDevice
#define BOOST_TEST_MAIN
#include <cap/energy_storage_device.h>
#include <cap/resistor_capacitor.h>
#include <boost/test/unit_test.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <boost/archive/text_iarchi... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/Plate/Rpc.h>
#include <vw/Plate/IndexService.h>
#include <vw/Core/Stopwatch.h>
#i... |
<commit_before> /**
* \file main.cc
* \brief Program for giving an indication when a rfid card has been detected, a database connection has been made and a string has been encrypted
* \author Tim IJntema, Stefan de Beer, Arco Gelderblom, Rik Honcoop, Koen de Groot, Ricardo Bouwman, Philippe Zwietering, L... |
<commit_before>/*
* Copyright (c) 2013 Matthew Arsenault
*
* This is part of moor, a wrapper for libarchive
*
* 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, inclu... |
<commit_before><commit_msg>corrected stream reading<commit_after><|endoftext|> |
<commit_before>#ifndef ITER_DROPWHILE_H_
#define ITER_DROPWHILE_H_
#include <iterbase.hpp>
#include <utility>
#include <iterator>
#include <initializer_list>
namespace iter {
template <typename FilterFunc, typename Container>
class DropWhile;
template <typename FilterFunc, typename Container>
DropW... |
<commit_before>// Copyright (c) 2014 Ollix. 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... |
<commit_before><commit_msg>Disable JingleSessionTests on Windows<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2018 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
<commit_before>//
// Copyright (c) 2017 The Khronos Group 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.org/licenses/LICENSE-2.0
//
// Unless required by... |
<commit_before>// Copyright 2015 Open Source Robotics Foundation, 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.org/licenses/LICENSE-2.0
//
// Unless re... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* m... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../../StroikaPreComp.h"
#include "../../../Foundation/Characters/String_Constant.h"
#include "../../../Foundation/Characters/String2Int.h"
#include "../../../Foundation/Debug/Assertions.h"
#include ".... |
<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 <plasp/pddl/expressions/Not.h>
#include <plasp/pddl/expressions/And.h>
#include <plasp/pddl/expressions/Or.h>
namespace plasp
{
namespace pddl
{
namespace expressions
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Not
//
//////////... |
<commit_before>#ifndef ITER_ENUMERATE_H_
#define ITER_ENUMERATE_H_
#include "iterbase.hpp"
#include <utility>
#include <iterator>
#include <functional>
#include <initializer_list>
#include <type_traits>
// enumerate functionality for python-style for-each enumerate loops
// for (auto e : enumerate(vec)) {
// st... |
<commit_before>#include "equations.hpp"
#include <algorithm>
#include <stdexcept>
EquationPiece::EquationPiece(char op) : type(Type::Operation), operation(op) {}
EquationPiece::EquationPiece(double num) : type(Type::Number), number(num) {}
std::string Equation::doubleToString(double num) const {
std::string doubleS... |
<commit_before>#ifndef RING_BUFFER_HPP
#define RING_BUFFER_HPP
/// Code courtesy of: http://www.osix.net/modules/article/?id=464
template<typename kind>
class RingBuffer {
public:
// static const unsigned long RING_BUFFER_SIZE = 32768;
static const unsigned long RING_BUFFER_SIZE = 16384.
private:
kind buffer... |
<commit_before>// Ignore unused parameter warnings coming from cppuint headers
#include <libmesh/ignore_warnings.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCase.h>
#include <libmesh/restore_warnings.h>
#include <libmesh/quadrature.h>
using namespace libMesh;
#define MACROCOMMA ,
#define T... |
<commit_before>#include "HalideRuntime.h"
#include "printer.h"
#include "runtime_internal.h"
#ifdef __cplusplus
extern "C" {
WEAK int halide_device_free(void *user_context, struct buffer_t *buf) {
return 0;
}
WEAK void halide_mutex_lock(struct halide_mutex *mutex) {
}
WEAK void halide_mutex_unlock(struct ... |
<commit_before>/*
* testSocket.cpp
*
* Created on: 25 May 2016
* Author: gnx91527
*/
#include <signal.h>
#include <string>
#include <cstring>
#include <iostream>
#include <fstream>
using namespace std;
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/propertyconfigurato... |
<commit_before>// Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "core/Setup.h"
#if OUZEL_COMPILE_DIRECT3D11
#include "ShaderResourceD3D11.hpp"
#include "RenderDeviceD3D11.hpp"
#include "utils/Log.hpp"
namespace ouzel
{
namespace graphics
{
static DXGI_FORMAT ... |
<commit_before>// Copyright 2012 Andrew C. Morrow
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.