text stringlengths 54 60.6k |
|---|
<commit_before>#include "acf_depth_channel.hpp"
#include <csapex/msg/io.h>
#include <csapex/msg/generic_vector_message.hpp>
#include <csapex/model/node_modifier.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex_opencv/cv_mat_message.h>
#include <csapex_op... |
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
#include <bse/bsemain.hh>
#include <bse/testing.hh>
#include "bse/internal.hh"
using Bse::printerr;
typedef Bse::IntegrityCheck::TestFunc TestFunc;
// == BSE_INTEGRITY_TEST Registry ==
struct TestEntry {
TestFunc test;
cons... |
<commit_before>#include "stdafx.h"
#include "GSCameraPlayer.h"
#include "IpCameraPipeline.h"
#include "WebCameraPipeline.h"
using namespace vosvideo::cameraplayer;
GSCameraPlayer::GSCameraPlayer()
{
LOG_TRACE("GSCameraPlayer created");
}
GSCameraPlayer::~GSCameraPlayer()
{
LOG_TRACE("GSCameraPlay... |
<commit_before>#ifndef SKSAT_WINDOW_HPP
#define SKSAT_WINDOW_HPP
#include <sksat/common.hpp>
#include <sksat/platform.hpp>
namespace sksat {
class window_base {
public:
window_base() : opend(false), xsize(default_xsize), ysize(default_ysize), xpos(default_xpos), ypos(default_ypos) {}
window_base(size_t x, size_t y... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// 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>#include <ContextGDIPlus.h>
#include "utf8.h"
#include <cassert>
bool canvas::ContextGDIPlus::is_initialized = false;
ULONG_PTR canvas::ContextGDIPlus::m_gdiplusToken;
using namespace std;
using namespace canvas;
static std::wstring convert_to_wstring(const std::string & input) {
const char * str ... |
<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.h"
#include "misc.h"
#include ... |
<commit_before>/*
* Copyright (C) 2019 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>// Copyright 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 "web_layer_impl.h"
#include "SkMatrix44.h"
#ifdef LOG
#undef LOG
#endif
#include "base/string_util.h"
#include "cc/active_animati... |
<commit_before>//---------------------------------------------------------
// Copyright 2017 Ontario Institute for Cancer Research
// Written by Jared Simpson (jared.simpson@oicr.on.ca)
//---------------------------------------------------------
//
// nanopolish_phase_reads -- phase variants onto reads
//
#include <std... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk>
Copyright (C) 2007 Mirko Stocker <me@misto.ch>
Copyright (C) 2009 Dominik Hauma... |
<commit_before>#include "DataLikelihood.h"
#include "multichoose.h"
#include "multipermute.h"
long double
probObservedAllelesGivenGenotype(
Sample& sample,
Genotype& genotype,
long double dependenceFactor,
bool useMapQ) {
int observationCount = sample.observationCount();
vecto... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2010 Dan Leinir Turthra Jensen <admin@leinir.dk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the ... |
<commit_before>/**
* @file
* @author Jason Lingle
* @date 2012.02.04
* @brief Implementation of NetworkConnection class
*/
#include <iostream>
#include <SDL.h>
#include "network_connection.hxx"
#include "network_assembly.hxx"
#include "network_geraet.hxx"
#include "antenna.hxx"
#include "io.hxx"
#include "src/... |
<commit_before>#include <Arduino.h>
#include "DollhousePanel.h"
#include "TimingHelpers.h"
#include <Adafruit_TLC59711.h>
#include <Adafruit_NeoPixel.h>
#include <LiquidCrystal.h>
#include <SPI.h>
#include <Fsm.h>
#include <EnableInterrupt.h>
const char NUM_TLC59711 = 1;
const char TLC_DATA = 12;
const char TLC_CLK ... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013-2014 Anatoli Steinmark
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 limita... |
<commit_before>#ifndef TESTERDRIVER_H
#define TESTERDRIVER_H
#include <iostream>
#include <string.h>
using namespace std;
#include "wrapperregdriver.h"
#include "TesterWrapper.h"
// uncomment the second line here to enable verbose reg read/writes
//#define __TESTERDRIVER_DEBUG(x) (cout << x << endl)
#define __TESTERD... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <asio.hpp>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <vector>
#include "antenna.hxx"
#include "tuner.hxx"
#include "io.hxx"
#include "packet_processor.hxx"
#include "abuhops.hxx"
using namespace std;
namespace abuhops ... |
<commit_before>#include "osm2nav.h"
#include <stdio.h>
#include <iostream>
#include <boost/lexical_cast.hpp>
#include "type/data.h"
#include "third_party/osmpbfreader/osmpbfreader.h"
#include "osm_tags_reader.h"
#include "georef/georef.h"
#include "utils/functions.h"
namespace navitia { namespace georef {
struct OSM... |
<commit_before>/*
* Copyright 2016 - 2019 gtalent2@gmail.com
*
* 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 "addresses.hpp"
#include <ox/std/asser... |
<commit_before>#ifndef CXX_CONVERSIONS_HXX
# define CXX_CONVERSIONS_HXX
# include <libport/symbol.hh>
# include <object/cxx-object.hh>
# include <object/float-class.hh>
# include <object/string-class.hh>
# include <scheduler/tag.hh>
namespace object
{
// Nothing to do for objects
template <>
class CxxConvert<l... |
<commit_before>#include <node.h>
#include <v8.h>
#include "Application.h"
#include "SpotifyService/SpotifyService.h"
#include "NodeCallback.h"
#include "objects/node/StaticCallbackSetter.h"
#include "objects/spotify/PlaylistContainer.h"
#include "objects/node/NodePlaylist.h"
#include "objects/node/NodeTrack.h"
#inclu... |
<commit_before>#include <BRepBuilderAPI_MakeShape.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <StlAPI_Writer.hxx>
#include <rice/Class.hpp>
using namespace Rice;
void shape_write_stl(Object self, const char *path)
{
Data_Object<TopoDS_Shape> shape = self.call("render");
StlAPI_Writer writer;
wr... |
<commit_before>/*
* Copyright (C) 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>// Copyright (c) 2014, 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 directory.
#include "ut... |
<commit_before>//===- unittest/ProfileData/CoverageMappingTest.cpp -------------------------=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>// call from command line like, for instance:
// root -l 'acat19.cpp()'
R__LOAD_LIBRARY(libRooFit)
#include <chrono>
#include <iostream>
using namespace RooFit;
////////////////////////////////////////////////////////////////////////////////////////////////////
// timing_flag is used to activate only... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2016-2017 Raffaello D. Di Napoli
This file is part of Lofty.
Lofty is free software: you can redistribute it and/or modify it under the terms of version 2.1 of the GNU
Lesser General Public License as published by the ... |
<commit_before>/*************************************************************************
*
* $RCSfile: ucbstreamhelper.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: mba $ $Date: 2001-07-16 09:28:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 2009 Wang Rui
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with ... |
<commit_before>//===--- CallerAnalysis.cpp - Determine callsites to a function ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//=============================================================================================================
/**
* @file babymegclient.cpp
* @author Limin Sun <liminsun@nmr.mgh.harvard.edu>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvar... |
<commit_before>#include "GL/glew.h"
#include <stdlib.h>
#include <stdio.h>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "photon_opengl.h"
#include "photon_window_managment.h"
#include "photon_core.h"
#include "photon_blocks.h"
#include "photon_texture.h"
#incl... |
<commit_before>/*************************************************************************
*
* $RCSfile: provider.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: abi $ $Date: 2001-06-06 14:48:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
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, co... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
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, co... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
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, co... |
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc.
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, c... |
<commit_before>/*
* copyright (c) 2017 Matthew Oliver
*
* This file is part of ShiftMediaProject.
*
* ShiftMediaProject 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 th... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (testabilitydriver@nokia.com)
**
** This file is part of Testability Driver Qt Agent
**
** If y... |
<commit_before>/**
* light_scan_sim test_ray_cast.cpp
* @brief Test simulating laser rays on an image.
*
* @copyright 2017 Joseph Duchesne
* @author Joseph Duchesne
*/
#include "light_scan_sim/ray_cast.h"
#include <gtest/gtest.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <o... |
<commit_before>#include <algorithm>
#include <istream>
#include <sstream>
#include "parsers/parse_error.hh"
#include "parsers/tina.hh"
#include "pn/arc.hh"
namespace pnmc { namespace parsers {
/*------------------------------------------------------------------------------------------------*/
/*-------------------... |
<commit_before>#include "parsing/utf8.hpp"
#include <string>
#include <string.h>
#include "rdb_protocol/datum_string.hpp"
namespace utf8 {
static unsigned int HIGH_BIT = 0x80;
static unsigned int HIGH_TWO_BITS = 0xC0;
static unsigned int HIGH_THREE_BITS = 0xE0;
static unsigned int HIGH_FOUR_BITS = 0xF0;
static unsi... |
<commit_before>/***************************************************************************
* mng/mng.h
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2002-2004 Roman Dementiev <dementiev@mpi-sb.mpg.de>
* Copyright (C) 2008 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
*
* Dist... |
<commit_before>/***************************************************
Bunny Shed Climate Control
Richard Huish 2016
ESP8266 based with local home-assistant.io GUI,
433Mhz transmitter for heater/fan control
and DHT22 temperature-humidity sensor
----------
Key Libraries:
ESP8266WiFi.h> https://github... |
<commit_before>#include <iostream>
using namespace std;
#include "EasyCL.h"
#include "CLKernel_structs.h"
#include "util/StatefulTimer.h"
#include "util/easycl_stringhelper.h"
typedef struct Info {
int dims;
int offset;
int sizes[25];
int strides[25];
} Info;
static const char *kernelSource = R"DELIM(
typed... |
<commit_before>/*
* Copyright (C) 2008-2013 The Communi 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
* notic... |
<commit_before>/*
* Copyright (c) 2004 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 copyri... |
<commit_before>#include "SkFontHost.h"
#include <math.h>
// define this to use pre-compiled tables for gamma. This is slightly faster,
// and doesn't create any RW global memory, but means we cannot change the
// gamma at runtime.
#define USE_PREDEFINED_GAMMA_TABLES
#ifndef USE_PREDEFINED_GAMMA_TABLES
// define t... |
<commit_before>/* This file is part of fus.
*
* fus 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
* (at your option) any later version.
*
* fus i... |
<commit_before>// -*- C++ -*-
#include <iostream>
#include <string>
#include "apache2/httpd.h"
#include "apache2/http_core.h"
#include "apache2/http_protocol.h"
#include "apache2/http_request.h"
#include "apache2/util_script.h"
#include "acmacs-base/read-file.hh"
// #include "apr_hooks.h"
static void register_hook... |
<commit_before>/*
* @file adaboost_impl.hpp
* @author Udit Saxena
*
* Implementation of the AdaBoost class.
*
* @code
* @article{schapire1999improved,
* author = {Schapire, Robert E. and Singer, Yoram},
* title = {Improved Boosting Algorithms Using Confidence-rated Predictions},
* journal = {Machine Lea... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "rdb_protocol/terms/terms.hpp"
#include <string>
#include <utility>
#include "errors.hpp"
#include <boost/bind.hpp>
#include "rdb_protocol/datum_stream.hpp"
#include "rdb_protocol/error.hpp"
#include "rdb_protocol/func.hpp"
#include "rdb_... |
<commit_before>#include "Bootstrapper.hpp"
#include <functional>
#include <lua-cxx/LuaValue.hpp>
#include <lua-cxx/loaders.hpp>
#include <lua-cxx/userdata.hpp>
#include "LuaPainter.hpp"
#include "LuaFont.hpp"
Bootstrapper::Bootstrapper() :
_lua(),
_desktop(_lua),
_rainback(_lua)
{
_rainback.setWidge... |
<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 "Test.h"
#include "SkChecksum.h"
#include "SkCityHash.h"
// Word size that is large enough to hold results of any checksum type.
typedef uint64_t chec... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>/*
Copyright 2011 Google 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 applicable l... |
<commit_before>///
/// @file LoadBalancerS2.cpp
/// @brief The LoadBalancerS2 assigns work to the individual threads
/// in the computation of the special leaves in the
/// Lagarias-Miller-Odlyzko, Deleglise-Rivat and Gourdon
/// prime counting algorithms. This load balancer is used
/// by ... |
<commit_before>#include "MenuStyle.hpp"
#include <Config/Globals.hpp>
#include <algorithm>
MenuStyle::MenuStyle(int h, int w):
Style(h, w),
menu(nullptr)
{
create();
}
void MenuStyle::create()
{
Style::create();
destroy();
title = new Window(main, Globals::title_height + 2, -1, 1, 1);
int hh = main->getH() -... |
<commit_before>#include "MoCapSimulator.h"
#include "Logging.h"
#undef LOG_CLASS
#define LOG_CLASS "MoCapSimulator"
#include <algorithm>
#include <iterator>
#include <string>
#include "math.h"
const float _frameRate = 60;
struct sRigidBodyMovementParams
{
char* szName;
int axis;
float radius;
float posO... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <kernel/libc.h>
#include <kernel/icxxabi.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <kernel/assert.h>
#include <kernel/tty.h>
#include <kernel/heap.h>
#include <kernel/video.h>
#include <kernel/context.... |
<commit_before>// Sample code to train the encoder-decoder model using small English-Japanese
// parallel corpora.
//
// Model detail:
// Sutskever et al., 2014.
// Sequence to Sequence Learning with Neural Networks.
// https://arxiv.org/abs/1409.3215
//
// Corpora detail:
// https://github.com/odashi/small_par... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>/*
Copyright (c) 2003, 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>#pragma once
#include "oqpi/platform.hpp"
#include "oqpi/error_handling.hpp"
#include "oqpi/synchronization/sync_common.hpp"
namespace oqpi {
//----------------------------------------------------------------------------------------------
// Forward declaration of this platform mutex implemen... |
<commit_before>#include "Expression.hpp"
#ifdef Expression_defined
Expression::Expression()
{
IsLeft = false;
}
NumberExpression::NumberExpression(int number)
{
Value = number;
}
double NumberExpression::Eval()
{
return Value;
}
BinaryExpression::BinaryExpression(BinaryOperator Op, std::unique_ptr<Expression>&&... |
<commit_before>/*
* FileSystem.cpp
*
* Created on: Jun 20, 2014
* Author: Pimenta
*/
// this
#include "FileSystem.hpp"
using namespace std;
using namespace helpers;
FileSystem::Folder FileSystem::rootFolder;
uint32_t FileSystem::localIP;
int FileSystem::Folder::getTotalFiles() {
int to... |
<commit_before>/*
* Copyright 2016-2017 Kacper Kasper <kacperkasper@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "FindWindow.h"
#include <ScintillaView.h>
#include <Application.h>
#include <Box.h>
#include <Button.h>
#include <Catalog.h>
#include <CheckBox.h>
#incl... |
<commit_before>//
// Created by Domagoj Boros on 18/12/2016.
//
#include "OverlapUtils.h"
#include <vector>
#include <algorithm>
#include <map>
#include "GraphUtils.h"
#include <limits.h>
static void popBubble(Graph &g, Vertex &v) {
}
static void isUnitigEnd(GraphEdgeType &graphEdgeType, Vertex &vertexOut, const Gr... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>//
//
//
#include "MicroTasksTask.h"
#include "MicroTasksEvent.h"
#include "MicroTasksAlarm.h"
#include "MicroTasks.h"
#include "debug.h"
using namespace MicroTasks;
uint32_t MicroTasksClass::WaitForEvent = (1 << 31);
uint32_t MicroTasksClass::WaitForMessage = (1 << 30);
uint32_t MicroTasksClass::Wa... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2011 Emmanuel Benazera <ebenazer@seeks-project.info>
*
* 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... |
<commit_before>//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "PrimeTower.h"
#include <algorithm>
#include <limits>
#include "ExtruderTrain.h"
#include "sliceDataStorage.h"
#include "gcodeExport.h"
#include "LayerPlan.h"
#include "infill.h"
#include "Pr... |
<commit_before>
// License: BSD 3-clause
// Copyright: Nick Porcino, 2017
#include "Screenplay.h"
#include <LabText/TextScanner.h>
#include <LabText/TextScanner.hpp>
namespace lab
{
using namespace std;
using namespace TextScanner;
std::string ScriptNode::as_string() const
{
switch (kind)
{
case NodeKind:... |
<commit_before>#include "service.h"
Service::Service()
{
}
bool Service::addNewPersonToList(const vector<int> computerConnectionID,const string name,const string gender, const string birthYear, const string deathYear,const string comment)
{
if(_cSPersonService.addNewPersonToList(name, gender,birthYear, deathYear... |
<commit_before>/*
FLTKKeyboardWidget.hpp:
Copyright (C) 2006 Steven Yi
This file is part of Csound.
The Csound 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
v... |
<commit_before>
/**
*
* Copyright (C) 2013 - 2014 Jolla Ltd.
* Contact: Thomas Perl <thomas.perl@jollamobile.com>
* All rights reserved.
*
* This file is part of libsailfishapp
*
* You may use this file under the terms of the GNU Lesser General
* Public License version 2.1 as published by the Free Software Fou... |
<commit_before>#pragma once
#include <type_traits>
#include "ksp_plugin/plugin.hpp"
// DLL-exported functions for interfacing with Platform Invocation Services.
#if defined(DLLEXPORT)
#error "DLLEXPORT already defined"
#else
#if defined(_WIN32)
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __attri... |
<commit_before>// NanoWin32
// -----------------------------------------------------------------------
// Simple library to subset Win32(64) API functions implemenation on POSIX
// This software distributed by MIT license
// ShellEx functions
#include "NanoWinShellEx.h"
#include "NanoWinError.h"
#include "NanoWinFil... |
<commit_before>#define BOOST_TEST_MODULE TestImpedanceSpectroscopy
#define BOOST_TEST_MAIN
#include <cap/energy_storage_device.h>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/math/constants/constants.hpp>
... |
<commit_before>/*
Copyright (c) 2003, 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>// jemalloc C++ threaded test
// Author: Rustam Abdullaev
// Public Domain
#include <atomic>
#include <functional>
#include <future>
#include <random>
#include <thread>
#include <vector>
#include <stdio.h>
#include <jemalloc/jemalloc.h>
#include <windows.h>
using std::vector;
using std::thread;
using s... |
<commit_before>
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "ChestEntity.h"
#include "../Item.h"
#include "../Entities/Player.h"
#include "../UI/Window.h"
#include "json/json.h"
cChestEntity::cChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld ... |
<commit_before>/*************************************************************************
*
* $RCSfile: DocumentLoader.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2004-02-02 20:07:32 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* ... |
<commit_before>#include "stdafx.h"
#include "ResourceLoader.h"
#include <iostream>
#include "Logger.h"
std::string ResourceLoader::loadTextResource(HMODULE moduleHandle, int id, LPTSTR type)
{
HRSRC resourceHandle = ::FindResource(moduleHandle, MAKEINTRESOURCE(id), type);
if (!resourceHandle)
{
... |
<commit_before>#include "SDLAudioDriver.h"
#include "CircularBuffer.h"
#include "Gui.h"
#include "Stream.h"
#include <SDL.h>
#include <SDL_audio.h>
#include <array>
constexpr struct {
static const bool Enabled = true;
// Whether to output the source samples or the target samples
static const bool SourceSa... |
<commit_before>#include <iostream>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/FrontendActions.h>
#include <clang/Tooling/CommonOptionsParser.h>
#include <clang/Tooling/Refactoring.h>
#include <llvm/Support/Signals.h>
namespace
{
class RedundantPPCallbacks : public clang::PPCallbacks
{
pu... |
<commit_before>//
// GameplayScene.cpp
// MasmorraDados
//
// Created by Marlon Andrade on 16/02/2015.
//
//
#include "GameplayScene.h"
#include "BackgroundLayer.h"
#include "CharacterDiceSprite.h"
#include "RoomPlacement.h"
USING_NS_CC;
#pragma mark - Public Interface
bool GameplayScene::init() {
if (!Scene:... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software 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>/*=========================================================================
*
* Copyright Insight Software 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>#include "Character.h"
#include "PlayScene.h"
CCharacter::CCharacter(void)
{
}
CCharacter::~CCharacter(void)
{
}
void CCharacter::initStatus( void )
{
}
/*
Լ : DetermineAttackTarget
: ü attack_target ϴ Լ ϸ ȴ.
Ŀ GoAttackTarget Լ ϸ
ֿ : ̱ Scene ִ Police迭 鼭 NNPoint Լ ̿
... |
<commit_before>#include "SystemUtils.h"
#include "PlatformSpecificUtils.h"
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <stdio.h>
#include <iostream>
#include <signal.h>
#include <string.h>
#include <sys/stat.h>
#ifdef _MSC_VER
int gettimeofday(struct timeval * tp, struct timezone * tzp)
{
// ... |
<commit_before>//DEFINITION OF A FEW CONSTANTS
const Int_t numberOfSigmasPID = 3;
// ANALYSIS TYPE
const Bool_t anaType = 1;//0 HD; 1 UU;
const Bool_t usePID = kTRUE;
//----------------------------------------------------
AliAnalysisTaskSEDStarSpectra *AddTaskDStarSpectra(Bool_t theMCon=kFALSE)
{
... |
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, 2014 Jeffrey Carpenter <i8degrees@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitt... |
<commit_before><commit_msg>refactor(Scripts/Event): convert pilgrims_bounty into new system (#9608)<commit_after><|endoftext|> |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: RegisterTypes_osimCommon.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#include "gtest/gtest.h"
#include <pistache/optional.h>
using Pistache::Optional;
TEST(optional, constructor) {
Optional<bool> value(Pistache::Some(true));
ASSERT_FALSE(value.isEmpty());
EXPECT_TRUE(value.get());
}
TEST(optional, copy_constructor) {
Optional<bool> value(Pistache::Som... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.