text stringlengths 54 60.6k |
|---|
<commit_before>#define THEWIZARDPLUSPLUS_WIZARD_PARSER_PARSER_MACROSES
#include "vendor/better-enums/enum_strict.hpp"
#include "vendor/range/v3/view/drop.hpp"
#include "vendor/range/v3/view/transform.hpp"
#include "vendor/fmt/format.hpp"
#include "vendor/range/v3/view/chunk.hpp"
#include "vendor/range/v3/to_container.... |
<commit_before>// Petter Strandmark 2012.
#include <algorithm>
#include <iostream>
#include <limits>
#include <stdexcept>
#include <vector>
#include <Eigen/Dense>
#include <spii/spii.h>
#include <spii/solver.h>
namespace spii {
// Holds a point in the Nelder-Mead simplex.
// Equipped with a comparison operator for... |
<commit_before>#include "./labelling_coordinator.h"
#include <Eigen/Core>
#include <map>
#include <vector>
#include "./labelling/labels_container.h"
#include "./labelling/clustering.h"
#include "./labelling/labels.h"
#include "./placement/constraint_updater.h"
#include "./placement/persistent_constraint_updater.h"
#inc... |
<commit_before>// Copyright (c) 2014 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/browser/application_system_tizen.h"
#include <cstdio>
#include <string>
#include <appcore/appcore-common.h> ... |
<commit_before>/** \brief A tool to add DDC metadata to title data using various means.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
*... |
<commit_before>#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <sstream>
#include <boost/chrono/thread_clock.hpp>
using namespace std;
using namespace boost::chrono;
typedef long long count_t;
count_t benchmark_empty(count_t count) {
for (count_t i = 0; i < count; ++i) {
;
}
... |
<commit_before>#pragma once
#include "Head.h"
#include <iostream>
#include "maths.hpp"
constexpr const int32_t BASE_MOD = 1000000007; /// caide keep
template<typename T>
inline T& add_mod(T& a, const T b, const T mod = BASE_MOD) {
if ((a += b) >= mod) {
a -= mod;
}
return a;
}
template<typen... |
<commit_before>#include <algorithm>
#include <vector>
#include <queue>
#include <boost/functional/hash.hpp>
#include <unordered_map>
#include "tree_fragment.h"
#include "translator.h"
#include "hg.h"
#include "sentence_metadata.h"
#include "filelib.h"
#include "stringlib.h"
#include "tdict.h"
#include "verbose.h"
usin... |
<commit_before>/**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>/* Catena_Mb85rc64ta.cpp Wed Dec 06 2017 15:33:28 chwon */
/*
Module: Catena_Mb85rc64ta.cpp
Function:
Class for Catena_Mb85rc64ta.
Version:
V0.6.0 Wed Dec 06 2017 15:33:28 chwon Edit level 2
Copyright notice:
This file copyright (C) 2017 by
MCCI Corporation
3520 Krums Corners Road
Ithaca,... |
<commit_before>/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, ... |
<commit_before>// Copyright (c) 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 "media/filters/ffmpeg_audio_decoder.h"
#include "media/base/callback.h"
#include "media/base/data_buffer.h"
#include "media/b... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 Sandro Santilli <strk@kbt.io
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General P... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMetaImageIO.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyri... |
<commit_before>#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <TROOT.h>
#include <TTree.h>
#include <TFile.h>
#include <TSQLServer.h>
#include <TSQLResult.h>
#include <TSQLRow.h>
#include "DataStruct.h"
using namespace std;
int main(int argc, char* argv[])
{
// define the output file structur... |
<commit_before>Breaking Example 1 on purpose - please comment this line to compile
//Moose Includes
#include "Moose.h"
#include "KernelFactory.h"
#include "BCFactory.h"
#include "MaterialFactory.h"
#include "AuxFactory.h"
#include "ComputeResidual.h"
#include "ComputeJacobian.h"
// C++ include files that we need
#inc... |
<commit_before>#pragma once
#include <initializer_list>
#include "Print-lite.hpp"
#include <algorithm>
#include <stdexcept>
#include <iterator>
#include <memory>
#include <string>
#include <random>
namespace evt {
template <typename Type>
class Array {
// MARK: - Attributes
std::unique_ptr<Type[]> value... |
<commit_before>/*---------------------------------------------------------------------\
| |
| _ _ _ _ __ _ |
| | | | | | \_/ | / \ | | |
| ... |
<commit_before>#include <boost/test/unit_test.hpp>
#include <ports/ports.hpp>
#include <ports/region_aware.hpp>
using namespace fc;
BOOST_AUTO_TEST_SUITE(test_parallle_region);
BOOST_AUTO_TEST_CASE(test_region_aware_node)
{
typedef region_aware<event_in_port<int>> test_in_port;
auto region = std::make_shared<para... |
<commit_before>#include "sampler.hpp"
#include "context.hpp"
#include "texture.hpp"
#include "internal/wrapper.hpp"
#include "internal/modules.hpp"
#include "internal/tools.hpp"
#include "internal/glsl.hpp"
/* MGLContext.sampler(texture)
*/
PyObject * MGLContext_meth_sampler(MGLContext * self, PyObject * const * ar... |
<commit_before>/*
Basic Server code for CMPT 276, Spring 2016.
*/
#include <exception>
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <cpprest/base_uri.h>
#include <cpprest/http_listener.h>
#include <cpprest/json.h>
#include <pplx/pplx... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>
#include "stdafx.h"
#include "SerialAsync.h"
using namespace common;
cSerialAsync::cSerialAsync()
: m_isConnect(false)
, m_isSendData(false)
, m_sleepMillis(10)
, m_threadLoop(true)
{
}
cSerialAsync::~cSerialAsync()
{
Close();
}
bool cSerialAsync::Open(const int portNum, const int baudRate)
{... |
<commit_before>namespace mant {
namespace bbob {
class CompositeGriewankRosenbrockFunctionF8F2 : public BlackBoxOptimisationBenchmark {
public:
inline explicit CompositeGriewankRosenbrockFunctionF8F2(
const unsigned int numberOfDimensions) noexcept;
inline std::string toString()... |
<commit_before>#include <SCD/CD/CD_Pair.h>
#include <SCD/CD/CD_Simplex.h>
#include <SCD/CD/CD_SimplexEnhanced.h>
#include <iostream>
//#ifndef NOGLUT
//#define SHOW_LAST_SIMLPEX
//#endif
//#define CD_SAFE_VERSION //use when the scalar has a perfect precision
#define PENETRATION_DEPTH
//#define CD_PAIR_VE... |
<commit_before>/*
* File: main_voctreeLocalizer.cpp
* Author: sgaspari
*
* Created on September 12, 2015, 3:16 PM
*/
#include <openMVG/localization/VoctreeLocalizer.hpp>
#include <openMVG/localization/LocalizationResult.hpp>
#include <openMVG/localization/optimization.hpp>
#include <openMVG/sfm/pipelines/locali... |
<commit_before>/*
Copyright (c) 2008 Pradeepto K. Bhattacharya <pradeepto@kde.org>
( adapted from kdepim/kmail/kmfolderseldlg.cpp and simplefoldertree.h )
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... |
<commit_before>/***************************************************************************
* The Kernel-Machine Library *
* Copyright (C) 2004, 2005 by Rutger W. ter Borg *
* ... |
<commit_before>/*
Copyright (c) 2005 by Volker Krause <vkrause@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any la... |
<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-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.70
Copyright (C) 2018 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
**... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>#include "objLoader.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <map>
#include <set>
using namespace std;
using glm::vec3;
//string split helper
vector<string> split(string s, char delim) {
vector<string> ret;
ret.reserve(10u)... |
<commit_before>#include <iostream>
#include <cassert>
#include "CompareCmd.h"
#include "StringUtils.h"
#include "MeshPart.h"
#include "Tet.h"
#include "Hex.h"
#include "Numeric.h"
#include "AnnLocator.h"
#include "HdfReader.h"
#include "VtkReader.h"
#include "VtkWriter.h"
#include "Timer.h"
#include "Misc.h"
using... |
<commit_before>/*
Mailbox
Copyright (C) 2015 Will Penington
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 version.
This libr... |
<commit_before>#include "control.h"
int Curso::codigo = 0;
void Control::inicializador()
{
U = new Universidad();
CE = new Contenedor_Escuelas();
CC = new Contenedor_Cursos();
Escuela* E1 = new Escuela("Ingles");
Escuela* E2 = new Escuela("Matematicas");
Escuela* E3 = new Escuela("Geologia");
Escuela* E4 = ne... |
<commit_before>/** @file Decoration.cxx
** Visual elements added over text.
**/
// Copyright 1998-2007 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#... |
<commit_before>
// This work derives from Vittorio Romeo's code used for cppcon 2015 licensed under the Academic Free License.
// His code is available here: https://github.com/SuperV1234/cppcon2015
#ifndef EC_MANAGER_HPP
#define EC_MANAGER_HPP
#define EC_INIT_ENTITIES_SIZE 256
#define EC_GROW_SIZE_AMOUNT 256
#incl... |
<commit_before>/*
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2015-2017 Attila Molnar <attilamolnar@hush.com>
*
* This file is part of InspIRCd. InspIRCd 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 Sof... |
<commit_before>// String.cpp
// This file is part of the EScript programming language.
// See copyright notice in EScript.h
// ------------------------------------------------------
#include "String.h"
#include "../EScript.h"
#include "../Utils/StringUtils.h"
#include <sstream>
using namespace EScript;
/... |
<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 at... |
<commit_before>//
// main.c
// EmojicodeCompiler
//
// Created by Theo Weidmann on 27.02.15.
// Copyright (c) 2015 Theo Weidmann. All rights reserved.
//
#include <libgen.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include "Lexer.hpp"
#include "utf8.h"
#include "EmojicodeCompiler.hpp"
#include "... |
<commit_before>#include "Globals.h"
#include "Engine.h"
#include "ModuleRender.h"
#include "ModuleTextures.h"
#include "SDL/include/SDL.h"
#include "SDL_image/include/SDL_image.h"
#include <IL/ilut.h>
#include <cassert>
#pragma comment( lib, "SDL_image/libx86/SDL2_image.lib" )
using namespace std;
ModuleTextures::Mo... |
<commit_before>/*
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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,... |
<commit_before>// Button.cc for FbTk - fluxbox toolkit
// Copyright (c) 2002 Henrik Kinnunen (fluxgen at users.sourceforge.net)
//
// 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 r... |
<commit_before>#include <cstdint>
#include <cstdlib>
#include <iostream>
static constexpr std::uint64_t MOD = 1000000007;
int
main()
{
std::cin.tie(0);
std::ios::sync_with_stdio(false);
int w, h;
std::cin >> w >> h;
std::uint64_t *dp = new std::uint64_t[h * w];
for (int i = 0; i < h; i++) {
dp[i * w... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include <string.h>
#include <util/atomic.h>
#include "GNSS_Clock.h"
#include <MicroNMEA.h>
GNSS_Clock gnss_clock;
void GNSS_Clock::isr(void)
{
gnss_clock.ppsHandler();
}
bool GNSS_Clock::begin(void* buffer, uint8_t len, uint8_t ppsPin, uint8_t edge)
{
_nmea.setBuffer(buffer, len);
pinMode(ppsPi... |
<commit_before>//Copyright (c) 2019 Ultimaker B.V.
#include "BeadingOrderOptimizer.h"
#include <iterator>
#include <unordered_map>
#include <vector>
#include <list>
namespace arachne
{
void BeadingOrderOptimizer::optimize(const std::vector<ExtrusionSegment>& segments, std::vector<std::vector<std::vector<ExtrusionJ... |
<commit_before>#include <Nazara/Utility.hpp>
#include <Nazara/Renderer.hpp>
#include <Nazara/Shader.hpp>
#include <Nazara/Shader/SpirvConstantCache.hpp>
#include <Nazara/Shader/SpirvPrinter.hpp>
#include <array>
#include <iostream>
int main()
{
Nz::Modules<Nz::Renderer> nazara;
Nz::RenderWindow window;
Nz::MeshPa... |
<commit_before>//Copyright (c) 2019 Ultimaker B.V.
#include "BeadingStrategyHelper.h"
namespace arachne
{
double inward_distributed_center_size = 2;
int max_bead_count = -1;
StrategyType toStrategyType(char c)
{
switch (c)
{
case 'n':
return StrategyType::Naive;
case 'N':
... |
<commit_before>#include "entity_system.h"
#include "enumerate.h"
#include "itemdb.h"
#include <entt.hpp>
#include "components/basic_info.h"
#include "components/computed_values.h"
#include "components/faction.h"
#include "components/graphics.h"
#include "components/guild.h"
#include "components/hotbar.h"
#include "comp... |
<commit_before>#include <boost/filesystem.hpp>
#include <boost/ref.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include "Renderer.hpp"
#include "AlloShared/StatsUtils.hpp"
#include "AlloShared/to_human_readable_byte_count.hpp"
#inclu... |
<commit_before>// This code is part of the project "Ligra: A Lightweight Graph Processing
// Framework for Shared Memory", presented at Principles and Practice of
// Parallel Programming, 2013.
// Copyright (c) 2013 Julian Shun and Guy Blelloch
//
// Permission is hereby granted, free of charge, to any person obtainin... |
<commit_before>#include <ros/ros.h>
#include <ros/callback_queue.h>
#ifndef ROS_HELPERS_HPP
#define ROS_HELPERS_HPP
namespace ROSHelpers
{
inline Spin(const double loop_rate)
{
while (ros::ok())
{
ros::getGlobalCallbackQueue()->callAvailable(ros::WallDuration(loop_rate));
}... |
<commit_before>/*-
* Copyright (c) 2011 Benjamin Close <Benjamin.Close@clearchain.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ... |
<commit_before>#include "pdfium_ruby.h"
void Init_pdfium_ruby (void) {
VALUE rb_PDFium = rb_define_module("PDFium");
// Define `Document` and `Page` classes
Define_Document();
Define_Page();
Define_PageSet();
}
<commit_msg>Fix main file's init function for C++, and comment out unimplemented functions.<com... |
<commit_before>/*
* Scene.hpp
*
* Created on: 24.01.2015
* Author: sartz
*/
#pragma once
#include "GameObjectComponent.hpp"
#include <SFML/System.hpp>
#include <vector>
namespace sf{
class Sprite;
}
class GameObject {
public:
sf::Sprite * mySprite = 0;
const sf::Vector2f& getPosition() const;
void... |
<commit_before>// Copyright (c) 2014, Salesforce.com, 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 source code must retain the above copyright
// notice, ... |
<commit_before>#ifndef STAN_MATH_OPENCL_KERNEL_GENERATOR_EVALUATE_INTO_HPP
#define STAN_MATH_OPENCL_KERNEL_GENERATOR_EVALUATE_INTO_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/kernel_generator/operation.hpp>
#include <stan/math/opencl/kernel_generator/as_operation.hpp>
#include <stan/math/opencl/kernel_generator/... |
<commit_before>#pragma once
#include "params.hpp"
#include "math/tune.hpp"
#include "math/momentum.hpp"
namespace nano
{
///
/// \brief hyper-parameter tuning for stochastic optimizers.
///
inline auto make_alpha0s()
{
return nano::make_finite_space(1e-4, 1e-3, ... |
<commit_before><commit_msg>trying to fix teleport bug<commit_after><|endoftext|> |
<commit_before>// Throttle /tf bandwidth
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include <ros/init.h>
#include <ros/node_handle.h>
#include <tf/transform_listener.h>
#include <boost/foreach.hpp>
boost::scoped_ptr<tf::TransformListener> g_tf;
ros::Publisher pub;
void sendTransforms()
{
std::vector<std::st... |
<commit_before>/*
Copyright (c) 2017, Vadim Malyshev, lboss75@gmail.com
All rights reserved
*/
#include "stdafx.h"
#include "vds_cmd_app.h"
#include "http_router.h"
#include "user_manager.h"
#include "tcp_network_socket.h"
#include "http_request.h"
#include "http_serializer.h"
#include "http_client.h"
#include "http_r... |
<commit_before>#include <Core/Utils/StackTrace.hpp>
namespace Ra {
namespace Core {
namespace Utils {
#ifndef OS_WINDOWS
// A C++ function that will produce a stack trace with demangled function and method names.
# include <cxxabi.h> // for __cxa_demangle
# include <dlfcn.h> // for dladdr
# include <exe... |
<commit_before>// template<typename Content>
// class CollectionsDriver : public virtual Root {
// public:
template<typename Content>
typename CollectionsDriver<Content>::CollectionPtr* CollectionsDriver<Content>::empty() {
return new CollectionsDriver<Content>::CollectionPtr(
new CollectionsDriver<Content... |
<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>/*
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>/*$Id$
*
* This source file is a part of the Fresco Project.
* Copyright (C) 2001 Stefan Seefeld <stefan@fresco.org>
* http://www.fresco.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by t... |
<commit_before>/**
* @copyright
* ====================================================================
* 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 copyrig... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification... |
<commit_before>#include "Genes/Look_Ahead_Gene.h"
#include <cmath>
#include <cassert>
#include <memory>
#include "Genes/Gene.h"
#include "Utility.h"
#include "Game/Board.h"
#include "Game/Clock.h"
#include "Moves/Move.h"
Look_Ahead_Gene::Look_Ahead_Gene() :
mean_game_length(50),
game_length_uncertainty(0.5)... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2011, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "IndexWri... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 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>#pragma once
#include <cstdint>
#include <string>
#include <array>
#include <forward_list>
#include <sstream>
#include <memory>
#include <utility>
#include <chrono>
#include <iomanip>
#include <functional>
#include <stdexcept>
namespace wonder_rabbit_project
{
namespace log
{
enum class level_e... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#ifndef ORG_EEROS_SEQUENCER_SEQUENCE_HPP_
#define ORG_EEROS_SEQUENCER_SEQUENCE_HPP_
#include <string>
#include <map>
#include <functional>
#include <vector>
#include <eeros/core/Runnable.hpp>
#include <eeros/sequencer/SequenceException.hpp>
#include <eeros/logger/Logger.hpp>
#include <eeros/... |
<commit_before>#include "menu/option_adventure.h"
#include "util/keyboard.h"
#include "util/load_exception.h"
#include "util/token.h"
#include "util/funcs.h"
#include "object/player.h"
#include "object/object.h"
#include "game.h"
#include "globals.h"
#include <iostream>
using namespace std;
OptionAdventure::OptionAd... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (ivan.frade@nokia.com)
**
** This file is part of the test suite of the QtSparql module (not yet... |
<commit_before>// Time: O(n)
// Space: O(n)
class Solution {
public:
bool isValid(string code) {
auto i = 0;
return validTag(code, &i) && i == code.size();
}
private:
bool validTag(const string& s, int *i) {
auto j = *i;
auto tag = parseTagName(s, &j);
if (tag.empt... |
<commit_before>/*
*
* Copyright (c) 2020-2021 Project CHIP 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
*... |
<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>/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directo... |
<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>#include "text/table.h"
#include "text/cmdline.h"
#include "cortex/cortex.h"
#include "cortex/logger.h"
#include "thread/thread.h"
#include "cortex/measure.hpp"
#include "text/to_params.hpp"
#include "optim/batch/types.h"
#include "optim/stoch/types.h"
#include "text/concatenate.hpp"
#include "cortex/tas... |
<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>/* Copyright 2020 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>//
//
//
#include "MicroTasksTask.h"
#include "MicroTasksEvent.h"
#include "MicroTasks.h"
using namespace MicroTasks;
uint32_t MicroTasksClass::WaitForEvent = (1 << 31);
uint32_t MicroTasksClass::WaitForMessage = (1 << 30);
uint32_t MicroTasksClass::WaitForMask = MicroTasksClass::WaitForEvent | WaitF... |
<commit_before>#include "mjolnir/graphoptimizer.h"
#include "config.h"
#include <ostream>
#include <set>
using namespace valhalla::midgard;
using namespace valhalla::baldr;
namespace valhalla {
namespace mjolnir {
GraphOptimizer::GraphOptimizer(const boost::property_tree::ptree& pt)
: tile_hierarchy_(pt),
... |
<commit_before>// Composes two transform sets.
// Output transform is the result of applying the first input transform, followed by the second.
#include <assert.h>
#include "itkTransformFileReader.h"
#include "itkTransformFileWriter.h"
#include "itkTransformFactory.h"
#include "itkAffineTransform.h"
#include "IOHelp... |
<commit_before>/*-----------------------------------------------------------------------------
This source file is part of Hopsan NG
Copyright (c) 2011
Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson,
Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack
This file is provided "as is", w... |
<commit_before>
#include "FibonacciHeap.h"
using namespace std;
FibonacciHeap::FibonacciHeap()
{
minPointer = NULL;
nodes = 0;
}
FibonacciHeap::~FibonacciHeap()
{
}
void FibonacciHeap::addToRoot(FibonacciNode* x)
{
if(!minPointer)
{
minPointer = x;
x->leftSibling = x;
x->rightSibling = x;
}
else
{
... |
<commit_before>#include "stdafx.h"
#ifdef _WIN32
#include "OculusInterfaceHelper.hpp"
#include "AnnLogger.hpp"
#include "AnnException.hpp"
using namespace std;
using namespace OVR;
using namespace Annwvyn;
void OculusInterfaceHelper::abortOnFailure()
{
session = {};
luid = {};
hmdDesc = {};
//Notify user
AnnDeb... |
<commit_before>
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDICOMImageReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>
#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <fstream>
#include <sstream>
#include <thread>
#include <chrono>
/*
Input File Displaying
int viewLength = 20
int padding = std::min(5, (viewSize - note.size()) / 2);
int startLine = std::max(0, currentLine - padding)... |
<commit_before>/*
HardwareSerial.cpp - esp8266 UART support
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... |
<commit_before>/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief Auxiliary stdlib specializations.
*/
#pragma once
#include <Onsang/config.hpp>
#include <memory>
#include <string>
#include <vector>
#include <deque>
#include <map>
#include <unordered_map>
#include <unordered_s... |
<commit_before>#include <gtest/gtest.h>
#include "Material.h"
class MaterialTest : public ::testing::Test {
protected:
CompMap test_comp;
string test_mat_unit;
string test_rec_name;
double test_size;
Basis test_type;
Material* test_mat;
virtual void SetUp(){
Iso u235 = 92235;
... |
<commit_before><commit_msg><commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.