text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef DUNE_STUFF_GRID_PROVIDER_CUBE_HH
#define DUNE_STUFF_GRID_PROVIDER_CUBE_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
#include <config.h>
#endif // ifdef HAVE_CMAKE_CONFIG
#if HAVE_DUNE_GRID
#include <sstream>
#include <type_traits>
#include <boost/assi... |
<commit_before>#ifndef DUNE_STUFF_GRID_PROVIDER_CUBE_HH
#define DUNE_STUFF_GRID_PROVIDER_CUBE_HH
// system
#include <sstream>
// dune-common
#include <dune/common/parametertree.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/common/exceptions.hh>
#include <dune/common/fvector.hh>
// dune-grid
#include <dune/... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xtextedt.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2007-06-27 21:32:31 $
*
* The Contents of this file are made... |
<commit_before>//
// Copyright (c) 2014-2016 Ian Godin
// All rights reserved.
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE.txt file for terms
//
#include "geometry.h"
#include <tuple>
#include <cmath>
namespace
{
template<int n, typename T>
inline const draw::polyline::point &pt( co... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: edatmisc.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 03:25:54 $
*
* The Contents of this file are made ... |
<commit_before>// file PWScore.cpp
//-----------------------------------------------------------------------------
#if (defined(_MSC_VER) && (_MSC_VER >= 1300))
#include <fstream>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
#else
#include <fstream.h> // for WritePlaintextFile
#include ... |
<commit_before>
#include "stdafx.h"
#include "particlesystems.h"
#include <graphics/device.h>
#include <graphics/camera.h>
#include <graphics/shaperenderer2d.h>
#include <particles/parser.h>
#include <particles/instances.h>
#include "../obj.h"
#include "../config/config.h"
#include "ui/ui_render.h"
using namespace ... |
<commit_before>/******************************************************************************//**
* @copyright (c) RDO-Team, 2011
* @file braces.cpp
* @authors
* @date 16.04.2011
* @brief unknown
* @indent 4T
***************************************************************************... |
<commit_before>#include <boost/python.hpp>
#include <boost/python/docstring_options.hpp>
#include <boost/numpy.hpp>
#include <boost/scoped_array.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <sstream>
#include "zhangsuen.h"
typedef unsigned char uchar_... |
<commit_before>#include <algorithm> /* max, min, next_permutation, prev_permutation */
#include <functional> /* greater */
#include <list>
#include <sstream> /* istringstream, ostringstream */
#include <stdexcept> /* logic_error, invalid_argument */
#include <string>
#include <vector>
#include "Permutation.hpp"
#in... |
<commit_before>#ifndef OPENBFME_STRING_HPP
#define OPENBFME_STRING_HPP
#include "types.hpp"
#include <vector>
namespace OpenBFME {
struct Printable{
// TODO - support more stuffs.
enum Type{
Integer, Decimal, Character, String
};
Type type;
union {
integer num;
decimal dec... |
<commit_before>/** \file add_synonyms.cc
* \brief Generic version for augmenting title data with synonyms found
in the authority data
* \author Johannes Riedl
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free software: you can redistribute it and/or m... |
<commit_before>// SqlPipe.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
// The following come from "SQL Server 2005 Virtual Backup Device Interface (VDI) Specification"
// http://www.microsoft.com/downloads/en/details.aspx?familyid=416f8a51-65a3-4e8e-a4c8-adfe15e850fc
#include "vd... |
<commit_before>/*
* Copyright (C) 2016 Patrizio Bekerle -- http://www.bekerle.com
*
* 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; version 2 of the License.
*
* This program is distribut... |
<commit_before>/** \file add_synonyms.cc
* \brief Generic version for augmenting title data with synonyms found
in the authority data
* \author Johannes Riedl
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free software: you can redistribute it and/or m... |
<commit_before>#include <chrono>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <ratio>
#include <string>
#include <stdlib.h>
#include <time.h>
#include<sys/time.h>
#include "omp.h"
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/strin... |
<commit_before>/*
* Copyright (C) 2012 David Edmundson <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... |
<commit_before>// "Hello World" in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!" <<endl;
cout << "Hello World!" <<endl;
cout << "Hello World!" <<endl;
cout << "Hello World!" <<endl;
cout << "Hello World!" <<endl;
return 0;
}
<commit_msg>insert bl... |
<commit_before>/* Rapicorn
* Copyright (C) 2005 Tim Janik
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later versio... |
<commit_before>/*
open source routing machine
Copyright (C) Dennis Luxen, 2010
This program 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; either version 3 of the License, or
any later version.
T... |
<commit_before>#pragma once
#include <future>
#include <agency/execution_categories.hpp>
#include <agency/functional.hpp>
#include <functional>
namespace agency
{
class sequential_executor
{
public:
using execution_category = sequential_execution_tag;
template<class Function, class T>
void execute(Fu... |
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
// rapicorn-zintern - small C source compression utility
#include <cxxaux.hh>
#include <glib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <zlib.h>
#include <string>
typedef Rapicorn::uint8 uint8;
typedef std... |
<commit_before>/*
* Copyright 2017-2018 Baidu 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 applicabl... |
<commit_before>#include "audio_player.h"
#include <QtMath>
#include <QDebug>
//Get the percentage downloaded of an internet file stream, or the buffer level when streaming in blocks.
//QWORD len=BASS_StreamGetFilePosition(stream, BASS_FILEPOS_END); // file/buffer length
//QWORD buf=BASS_StreamGetFilePosition(stream, B... |
<commit_before>/*************************************************************************
*
* $RCSfile: labelexp.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2003-04-17 15:25:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>void loadlibs ()
{
gSystem->Load("libPhysics");
gSystem->Load("libMinuit");
gSystem->Load("libmicrocern");
gSystem->Load("libpdf");
gSystem->Load("libpythia6");
gSystem->Load("libEG");
gSystem->Load("libGeom");
gSystem->Load("libVMC");
gSystem->Load("libEGPythia6");
gSystem->Load("l... |
<commit_before>/*
This file is part of the E_Rendering library.
Copyright (C) 2009-2012 Benjamin Eikel <[email protected]>
Copyright (C) 2009-2012 Claudius Jähn <[email protected]>
Copyright (C) 2009-2012 Ralf Petring <[email protected]>
This library is subject to the terms of the Mozilla Public License,... |
<commit_before>
// Copyright 2010-2012 University of Washington. All Rights Reserved.
// LICENSE_PLACEHOLDER
// This software was created with Government support under DE
// AC05-76RL01830 awarded by the United States Department of
// Energy. The Government has certain rights in the software.
#include <boost/test/unit... |
<commit_before>#ifndef __SNOWMAN_HPP__
#define __SNOWMAN_HPP__
#include <stdexcept>
#include <vector>
#include <string>
#include <map>
struct Variable;
typedef bool tUndefined;
typedef double tNum;
typedef std::vector<Variable> tArray;
typedef std::string tBlock;
typedef tArray::size_type vvs;
typedef tBlock::size_... |
<commit_before>#ifndef __SNOWMAN_HPP__
#define __SNOWMAN_HPP__
#include <stdexcept>
#include <vector>
#include <string>
#include <map>
struct Variable;
typedef std::vector<Variable>::size_type vvs;
typedef std::string::size_type ss;
class SnowmanException: public std::runtime_error {
public:
SnowmanExce... |
<commit_before>#include "CPU.h"
#if defined(__x86_64__) || defined(__i386__)
#include <cpuid.h>
#endif
#include "Log.h"
namespace i2p
{
namespace cpu
{
bool aesni = false;
bool avx = false;
void Detect()
{
#if defined(__x86_64__) || defined(__i386__)
int info[4];
__cpuid(0, info[0], info[1], info[2], info[3]);... |
<commit_before>////////////////////////////////////////////////////////////////////
// OBJ.cpp
//
// Copyright 2007 cDc@seacave
// Distributed under the Boost Software License, Version 1.0
// (See http://www.boost.org/LICENSE_1_0.txt)
#include "Common.h"
#include "OBJ.h"
using namespace SEACAVE;
// D E F I N E S //... |
<commit_before>#include "SM_Polyline.h"
#include <cavc/polylineoffset.hpp>
namespace sm
{
std::vector<std::vector<vec2>>
polyline_offset(const std::vector<vec2>& polyline, float distance, bool is_closed)
{
cavc::Polyline<float> input;
input.isClosed() = is_closed;
const size_t n = is_closed ? polyline.size() - ... |
<commit_before>//
// ogrfielddefn.cc
//
//
// Copyright (c) 2011, JF Gigand
//
// 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 righ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkAxesTransformRepresentation.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for... |
<commit_before>
//#define __STRICT_ANSI__
#define ERROR_VALUE -1
#include "SerialClass.h"
#include "stdio.h"
#include <string>
#include <errno.h>
#include "error.h"
Serial::Serial(char *portName) {
// We're not yet connected
this->connected = false;
#ifdef _WIN32
// Try to connect to the given port throuh Crea... |
<commit_before>/*
* Copyright 2010, Milos Pejovic. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <support/String.h>
#include <stdio.h>
#include "ScaleDialog.h"
extern char* kOk;
extern char* kCancel;
const char* kScaleTitle = "Adjust the scale value";
ScaleDialog::ScaleDialo... |
<commit_before>#include "BigFix/ArchiveReader.h"
#include "BigFix/ArchiveStream.h"
#include "BigFix/DataRef.h"
#include "BigFix/InflateStream.h"
#include <iostream>
using namespace BigFix;
class ArchiveListStream : public ArchiveStream
{
public:
virtual void Directory( const char* name,
Ar... |
<commit_before>/* Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... |
<commit_before>//project
#include "SuperRegion.h"
SuperRegion::SuperRegion()
: reward(0)
{
}
SuperRegion::SuperRegion(const int& pReward)
: reward(pReward)
{
}
SuperRegion::~SuperRegion()
{
}
void SuperRegion::addRegion(const int& region)
{
regions.push_back(region);
}
<commit_msg>added methods to SuperRegion<co... |
<commit_before>/*
Copyright 2012 Tzvetan Mikov <[email protected]>
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... |
<commit_before>#include "boid.h"
/**
* @brief Create a new boid
*
* Creates a new QQmlComponent using the main QQmlApplicationEngine of the program and
* the Boid.qml file.
* After the component is created and ready, the QObject is created and parented to the
* canvas object.
* Lastly we set the position random... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 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>#ifndef MJOLNIR_CORE_EXCLUSION_LIST_HPP
#define MJOLNIR_CORE_EXCLUSION_LIST_HPP
#include <mjolnir/core/System.hpp>
#include <mjolnir/util/range.hpp>
#include <mjolnir/util/logger.hpp>
#include <algorithm>
#include <iterator>
#include <utility>
#include <vector>
namespace mjolnir
{
// In some cases, lik... |
<commit_before><commit_msg>🛠 Avoid shadowing warning<commit_after><|endoftext|> |
<commit_before>#include "cfilelistmodel.h"
#include "shell/cshell.h"
#include "ccontroller.h"
#include "../../../cmainwindow.h"
#include "../../columns.h"
DISABLE_COMPILER_WARNINGS
#include <QMimeData>
#include <QUrl>
RESTORE_COMPILER_WARNINGS
#include <set>
CFileListModel::CFileListModel(QTreeView * tr... |
<commit_before>/*
-------------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2014-2019 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"... |
<commit_before>#include <gtest/gtest.h>
#include <entt/signal/delegate.hpp>
int delegate_function(const int &i) {
return i*i;
}
int curried_function(const int *i, int j) {
return *i+j;
}
struct delegate_functor {
int operator()(int i) {
return i+i;
}
int identity(int i) const {
r... |
<commit_before>/*
* Copyright (c) 2013 The WebM 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>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <[email protected]>
// Copyright (C) 2008 Benoit Jacob <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v... |
<commit_before>#include "TableLogger.h"
#include <boost/foreach.hpp>
TableLogger::TableLogger()
:header_space_(' ', 3)
{}
TableLogger::TableLogger(const std::vector<HeaderStyle> &header)
:header_(header), header_space_(' ', 3)
{}
void TableLogger::LogTableHead()
{
using std::cout;
cout << "Sphere Elliminatio... |
<commit_before>// =============================================================================
// Authors: Radu Serban, Justin Madsen
// =============================================================================
//
// Base class for a vehicle wheel.
// A wheel subsystem does not own a body. Instead, when attached t... |
<commit_before>#ifndef CPPUT_TESTHARNESS_HPP
#define CPPUT_TESTHARNESS_HPP
///////////////////////////////////////////////////////////////////////////////
///
/// \brief A light-weight and easy to use unit testing framework for C++
/// \details Header-only unit testing framework that makes unit testing easy
/// ... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_HDD_TEST_LINEARELLIPTIC_SWIPDG_HH
#define DUNE_HDD_TEST_LINEARELLIPTIC_SWI... |
<commit_before>#include "extensions/openpower-pels/data_interface.hpp"
#include "extensions/openpower-pels/host_interface.hpp"
#include <fcntl.h>
#include <filesystem>
#include <sdeventplus/source/io.hpp>
#include <gmock/gmock.h>
namespace openpower
{
namespace pels
{
class MockDataInterface : public DataInterface... |
<commit_before>#include <functional>
#include <future>
#include <unordered_map>
#include "kernel.h"
#include "raster.h"
#include "itemdomain.h"
#include "thematicitem.h"
#include "symboltable.h"
#include "ilwisoperation.h"
#include "classification/sampleset.h"
#include "classifier.h"
#include "rasterclassification.h"
... |
<commit_before>//===--- swift-serialize-diagnostics.cpp ----------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before><commit_msg>Use IOMessageLoop in a SyncFileSystem test<commit_after><|endoftext|> |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dll_... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2011 Francois Beaune
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... |
<commit_before>//===----------------------------------------------------------------------===//
//
// 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>/****************************************************************************
**
** 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 2014-2021 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
<commit_before>/*
* Copyright (c) 2015, Nagoya 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 copyright notice, t... |
<commit_before>#include "telnetpp/detail/routing_visitor.hpp"
#include "telnetpp/options/naws/client.hpp"
#include "telnetpp/options/naws.hpp"
#include "telnetpp/protocol.hpp"
#include "telnetpp/detail/registration.hpp"
#include "expect_elements.hpp"
#include <gtest/gtest.h>
TEST(routing_visitor_test, text_routes_to_t... |
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__MULTI_STUDENT_T_HPP__
#define __STAN__PROB__DISTRIBUTIONS__MULTI_STUDENT_T_HPP__
#include <cstdlib>
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <stan/math/error_handling.hpp>
#include <stan/math/... |
<commit_before>#include "catch.hpp"
#include <iostream>
#include <exception> // std::bad_function_call, std::runtime_error
#include <thread> // std::thread, std::this_thread::yield
#include <mutex> // std::mutex, std::unique_lock
#include <condition_variable> // std::condition_variable
#include <functional> // std::fu... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/* Totem Cone plugin
*
* Copyright © 2004 Bastien Nocera <[email protected]>
* Copyright © 2002 David A. Schleef <[email protected]>
* Copyright © 2006, 2008 Christian Persch
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Publi... |
<commit_before>/*
* Copyright (c) 2020 The WebM 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>#include "TestScene.h"
#include "base/stringUtil.h"
using namespace fei;
void TestScene::init()
{
setCamera(&mainCam);
mainCam.setCameraSize(Vec2(800, 600));
_renderTarget.setSize(Vec2(800, 600));
_renderTarget.getTexture()->setHasAlpha(true);
_renderTarget.getTexture()->setMagFilter(GL_NEAREST);... |
<commit_before>#include <gtest/gtest.h>
#include <errors.h>
#include <instruction.h>
#define TEST_CLASS InstructionSetTest
class TEST_CLASS : public testing::Test {
protected:
TEST_CLASS();
InstructionSet set;
Instruction low, high;
};
TEST_CLASS::TEST_CLASS() : low({'a', 'b'}, 0, NULL), high({'a', 'b', ... |
<commit_before>/*
* Copyright 2019 Couchbase, 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... |
<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 "BenchTimer.h"
#include "SamplePipeControllers.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkGPipe.h"
#include "SkOSFile.h"
#include "SkPi... |
<commit_before>
/*
* Copyright (c) 2012 Karl N. Redgate
*
* 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, m... |
<commit_before>#include "main.h"
void mainLoop()
{
handleInput();
glfwGetFramebufferSize(window, &width, &height);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// bottom-left: Euler Camera (float)
drawQuarter(0, 0, width/2, height/2, rcamf);
// bottom-right: Euler Camera (double)
drawQuarter(wi... |
<commit_before>/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Zhenkai Zhu <[email protected]>
* @author: Alexander Afanasyev <[email protected]>
* @author: Jeff Thompson <[email protected]>
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_SIG... |
<commit_before><commit_msg>Disk Cache: Make sure that file descriptors are valid before calling close().<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* This file is part of Scylla.
*
* Scylla 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, either version 3 of the License,... |
<commit_before>/*
* Copyright 2011, Blender Foundation.
*
* 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
* of the License, or (at your option) any later version.
*
* Th... |
<commit_before>#pragma once
#include "constants.hpp"
#include "libkrbn/libkrbn.h"
#include "logger.hpp"
#include <pqrs/spdlog.hpp>
class libkrbn_log_lines_class final {
public:
libkrbn_log_lines_class(std::shared_ptr<std::deque<std::string>> lines) : lines_(lines) {
}
std::shared_ptr<std::deque<std::string>> g... |
<commit_before>/**
* \file Poisson.cpp
* \brief
*
* Poisson disk points generator
*
* \version 1.0
* \date 06/05/2014
* \author Sergey Kosarevsky, 2014
* \author [email protected] http://www.linderdaum.com
*/
/*
To compile:
gcc Poisson.cpp -std=c++11 -lstdc++
*/
// Fast Poisson Disk Sampling in Arbi... |
<commit_before>// http://algospot.com/judge/problem/read/CLOCKSYNC
#include <iostream>
#include <cstdio>
using namespace std;
int sw [] = { // switch
7, // {0, 1, 2},
2696, // {3, 7, 9, 11},
50192, // {4, 10, 14, 15},
241, // {0, 4, 5, 6, 7},
5568, // {6, 7, 8, 10, 12},... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>
#include <Flexible/config.h>
#include "ComponentSpecializationsDefines.h"
#include <sofa/core/ObjectFactory.h>
#include <SofaBaseMechanics/IdentityMapping.inl>
#include <SofaMiscMapping/SubsetMultiMapping.inl>
namespace sofa
{
namespace component
{
namespace mapping
{
SOFA_DECL_CLASS(EVALUA... |
<commit_before>/*=========================================================================
*
* Copyright RTK Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
<commit_before>/*
* File: main.cpp
* Author: chenone2316
*
* Created on June 1, 2015, 1:46 PM
*/
#include <broker/broker.hh>
#include <broker/endpoint.hh>
#include <broker/message_queue.hh>
#include <osquery/sdk.h>
#include <poll.h>
#include <iostream>
#include <unistd.h>
#include <iostream>
#include <sstream... |
<commit_before>// Filename: main.cpp
// Author: Christopher Goes
// Course: CS 404 Machine Learning and Data Mining
// Semester: Spring 2016
// Description: Assignment 3 main program logic
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <vector>
#include <cmath>
#include "matrix.h"
#define DE... |
<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>#include "map/place_page_info.hpp"
#include "map/reachable_by_taxi_checker.hpp"
#include "partners_api/ads_engine.hpp"
#include "partners_api/banner.hpp"
#include "indexer/feature_utils.hpp"
#include "indexer/osm_editor.hpp"
#include "platform/measurement_utils.hpp"
#include "platform/preferred_langua... |
<commit_before>#include "utAllocore.h"
int utFile() {
#define DELIM AL_FILE_DELIMITER_STR
// static functions
assert(File::exists("."));
//assert(File::exists("." DELIM)); // fails under win32
assert(File::isDirectory("."));
assert(File::isDirectory(".." ));
assert(!File::isDirectory(".." DELIM ".." DELIM "M... |
<commit_before>/**
* \file drawSliceInPhi.cc
* \example segmented/drawSliceInPhi.cc
*/
// Draw weighting potential of a segment of Siegfried (6 segments in phi)
void CalculateWeightingPotential()
{
GeFiCa::SegmentedInPhi *siegfried = new GeFiCa::SegmentedInPhi;
siegfried->V0=0*GeFiCa::volt;
siegfried->V1=1*... |
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include <globals.h>
#include <prototypes.h>
#include <pthread.h>
#include <iostream.h>
#include <stdi... |
<commit_before>
#include "../JSUtil.hpp"
#include "../EmersonScript.hpp"
#include "JSTimerStruct.hpp"
#include "../JSObjects/JSFields.hpp"
#include <v8.h>
#include "../JSLogging.hpp"
#include <sirikata/core/network/IOTimer.hpp>
#include <sirikata/core/network/Asio.hpp>
#include <sirikata/core/service/Context.hpp>
#incl... |
<commit_before>/*
* Copyright (c) 2013 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... |
<commit_before>/**
* \file Encryption.cc
* \author Rik Honcoop
* \copyright Copyright (c) 2017, The R2D2 Team
* \license See LICENSE
*/
#include "Encryption.hh"
Encryption::Encryption(){
encryptKey = 1;
}
Encryption::Encryption(int encryptionKey){
encryptKey = encryptionKey;
}
string Encryption::Decrypt(... |
<commit_before>#include <ctime>
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include "camera.hpp"
#include <vector>
//static const int WIDTH = 640;
//static const int HEIGHT = 480;
static const int FPS = 6;
static const int DEVICE = 0;
static const std::string DIRECTORY_PATH = "/home/pi/Pictures/";//pat... |
<commit_before>#include "General_Utilities.hpp"
#include <cmath>
#include <iostream>
#include <fstream>
#include <chrono>
#include <cstdlib>
#include <libconfig.h++>
#include "Physical_Parameters.hpp"
using namespace libconfig;
//Config file
string FormFactor="None";
string SimID="default";
string experiment="... |
<commit_before><commit_msg>Take reference instead of copying whole.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <core/session/onnxruntime_cxx_api.h>
#include <iostream>
#include <fstream>
#ifdef _WIN32
#include "getopt.h"
#else
#include <getopt.h>
#include <thread>
#endif
#include "TestResultStat.h"
#include "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.