text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright 2013 Coherent Theory LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2, or
* (at your option) any later version.
*
* ... |
<commit_before>#include <common/buffer.h>
#include <common/endian.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_cache.h>
#include <xcodec/xcodec_encoder.h>
#include <xcodec/xcodec_hash.h>
typedef std::pair<unsigned, uint64_t> offset_hash_pair_t;
struct xcodec_special_p {
bool operator() (uint8_t ch) const
... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>// $Id: anisotropyShiftProcessor.C,v 1.9 2001/12/30 13:28:52 sturm Exp $
#include <BALL/NMR/anisotropyShiftProcessor.h>
#include <BALL/KERNEL/atom.h>
#include <BALL/KERNEL/PTE.h>
#include <BALL/FORMAT/parameterSection.h>
#include <BALL/DATATYPE/string.h>
using namespace std;
namespace BALL
{
const ... |
<commit_before>
#include <cpplocate/cpplocate.h>
#include <cstdlib>
#include <vector>
#include <string>
#if defined SYSTEM_LINUX
#include <unistd.h>
#include <limits.h>
#elif defined SYSTEM_WINDOWS
#include <stdlib.h>
#elif defined SYSTEM_SOLARIS
#include <stdlib.h>
#include <limits.h>
#elif defin... |
<commit_before>/*
PubSubClient.cpp - A simple client for MQTT.
Nicholas O'Leary
http://knolleary.net
*/
#include "WConstants.h"
#include "PubSubClient.h"
#include "Client.h"
#include "string.h"
#define MQTTCONNECT 1<<4
#define MQTTPUBLISH 3<<4
#define MQTTSUBSCRIBE 8<<4
PubSubClient::PubSubClient(uint8_t *ip, ... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "init.h"
#include "main.h"
#include "net.h"... |
<commit_before>#include <iostream>
#include <string.h>
#include <istream>
#include <cstring>
#include <unistd.h>
using namespace std;
#include <cstdio>
#include <cstring>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string>
#include <errno.h>
#include <cstdlib>
#include <vector>
//Cou... |
<commit_before>/*
+----------------------------------------------------------------------+
| PHP-OpenCV |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| tha... |
<commit_before>#include <string.h>
#include <iostream>
#include <vector>
#include <map>
#include "expat.h"
using namespace std;
class XMLObj;
class XMLObjIter {
map<string, XMLObj *>::iterator cur;
map<string, XMLObj *>::iterator end;
public:
XMLObjIter() {}
void set(map<string, XMLObj *>:... |
<commit_before>/*!
\file order_book.cpp
\brief Order book implementation
\author Ivan Shynkarenka
\date 02.08.2017
\copyright MIT License
*/
#include "trader/matching/order_book.h"
namespace CppTrader {
namespace Matching {
OrderBook::~OrderBook()
{
// Release bid price levels
for (auto& ... |
<commit_before>#include "CodeGen_X86.h"
#include "IROperator.h"
#include <iostream>
#include "buffer_t.h"
#include "IRPrinter.h"
#include "IRMatch.h"
#include "Log.h"
#include "Util.h"
#include "Var.h"
#include "Param.h"
#include "integer_division_table.h"
// No msvc warnings from llvm headers please
#ifdef _WIN32
#pr... |
<commit_before>/*
Copyright 2011-2017 Frederic Langlet
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>/* $Id$ */
# ifndef CPPAD_HASH_CODE_INCLUDED
# define CPPAD_HASH_CODE_INCLUDED
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
CppAD is distributed under multiple licenses. This distribution is u... |
<commit_before>/*********************************************************************************************
This file is part of the PSOPT library, a software tool for computational optimal control
Copyright (C) 2009-2020 Victor M. Becerra
This library is free software; you can redistribute it and/or
modify it und... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC 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><commit_msg>A little cleanup.<commit_after><|endoftext|> |
<commit_before><commit_msg>Revert "calc69: #i118068# handle all-hidden case in ScDrawUtil::CalcScale"<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: notemark.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2006-07-21 15:02:41 $
*
* The Contents of this file are made ... |
<commit_before>#include "session.h"
#include <iostream>
#include <fstream>
#include <tuple>
#include <cassert>
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/ASTMatchers/Dynamic/Parser.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/Tooling.h"
#include "clang/Tooling/JSONCompilat... |
<commit_before>/*
* This file is part of Poedit (http://poedit.net)
*
* Copyright (C) 2014 Vaclav Slavik
*
* 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, inc... |
<commit_before>// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "CCActiveAnimation.h"
#include "CCAnimationCurve.h"
#include "TraceEvent.h"
#ifdef LOG
#undef LOG
#endif
#in... |
<commit_before>/*-------------------------------------------------------------------------
*
* FILE
* strconv.cxx
*
* DESCRIPTION
* implementation of string conversions
*
* Copyright (c) 2008-2012, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a fi... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2014 Crytek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>/*
*******************************************************************************
*
* Purpose: Low Power Mode implementation for ESP.
*
*******************************************************************************
* Copyright Oleg Kovalenko 2017.
*
* Distributed under the MIT License.
* (See ... |
<commit_before>namespace factor
{
#define FACTOR_CPU_STRING "ppc"
#define VM_ASM_API VM_C_API
register cell ds asm("r13");
register cell rs asm("r14");
/* In the instruction sequence:
LOAD32 r3,...
B blah
the offset from the immediate operand to LOAD32 to the instruction after
the branch is two instruc... |
<commit_before>#include "testing/testing.hpp"
#include "routing/turns_sound_settings.hpp"
#include "routing/turns_tts_text.hpp"
#include "std/cstring.hpp"
#include "std/string.hpp"
namespace
{
using namespace routing::turns;
using namespace routing::turns::sound;
bool pairDistEquals(PairDist const & lhs, PairDist c... |
<commit_before>/*
* Copyright (c) 1998 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the L... |
<commit_before><commit_msg>Don't use SDCH until open_vcdiff works on all platforms.<commit_after><|endoftext|> |
<commit_before><commit_msg>Adding pipeline test, gotta figure out whats up with the threads and memory leaks<commit_after>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// pipeline_test.cpp
//
// Identification: tests/mfabric/pipeline_test.cpp... |
<commit_before>/*************************************************************************
*
* $RCSfile: sizedev.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: nn $ $Date: 2001-05-15 13:40:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#include "Resources.h"
#include "cinder/ObjLoader.h"
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Arcball.h"
#include "cinder/CameraUi.h"
#include "cinder/Sphere.h"
#include "cinder/ImageIo.h"
#include "cinder/ip/Checkerboard.h"
#include "Res... |
<commit_before>/*
Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com>
Permission to use, copy, modify, and/or 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" A... |
<commit_before>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#pragma once
#include"ork/ork.hpp"
namespace ork {
/*
The C++ standard does not offer a smart pointer with value sematics.
For one, C++ does not offer a standard way to copy an object to... |
<commit_before>//@ {"targets":[{"name":"parser.hpp","type":"include"}]}
#ifndef TEMPLE_PARSER_HPP
#define TEMPLE_PARSER_HPP
#include "item.hpp"
#include "converters.hpp"
#include <clocale>
#include <stack>
namespace Temple
{
namespace
{
struct Locale
{
Locale():m_handle(newlocale(LC_ALL,"C",0))
{m_lo... |
<commit_before>#include "our_string.h"
using namespace std;
our_string our_string:: trim(string right_string,char c)
{
if(right_string.find(c)==-1)
{
return right_string;
}
string left_string="";
int i=right_string.find(c)+1;
left_string=right_string.substr(0,i-1);
... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*---------------------------------------------------------------------\
| |
| _ _ _ _ __ _ |
| | | | | | \_/ | / \ | | |
| ... |
<commit_before>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#include<fstream>
#include<iostream>
#include<sstream>
#include"ork/glm.hpp"
#include ORK_FILE_INCLUDE
#include"ork/geometry.hpp"
#include"ork/text_io.hpp"
#if ORK_USE_JSON
#if ORK_MSC
#p... |
<commit_before>/*
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <event2/event.h>
#include <event2/bufferevent.h>
#include <event2/thread.h>
#include <boost/thread.hpp>
#include <qi/log.hpp>
#include <qi/application.hpp>
#include <qimessaging/event_loop.hpp>
#include "src/event_loop_p.hpp"
namespace qi {
... |
<commit_before>// -*- c-basic-offset: 2; related-file-name: "tuple.h" -*-
/*
* @(#)$Id$
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300,
* Berkeley, CA, 94704. ... |
<commit_before>/*
* Copyright (c) 2018 jmjatlanta and contributors.
*
* The MIT License
*
* 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 limitat... |
<commit_before> /*
kopetechatwindowstylemanager.cpp - Manager all chat window styles
Copyright (c) 2005 by Michaël Larouche <michael.larouche@kdemail.net>
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*****************************************************************... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2009, 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>// This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015 Orbbec 3D
//
// 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.... |
<commit_before>#ifndef CUKE_STEPMANAGER_HPP_
#define CUKE_STEPMANAGER_HPP_
#include <map>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include <boost/enable_shared_from_this.hpp>
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
using boost::shared_ptr;
#include "../Tab... |
<commit_before>#include <gtest/gtest.h>
#include "cyclus.h"
namespace mbmore {
namespace InteractRegionTests {
/*
TEST(StateInstTests, DeployProto) {
std::string config =
"<declared_protos> <val>source</val> </declared_protos>"
"<secret_protos> <val>secret_sink</val> </secret_protos>"
;
int... |
<commit_before>#pragma once
#ifndef OPENGM_SPACE_BASE_HXX
#define OPENGM_SPACE_BASE_HXX
#include <vector>
#include <limits>
#include <typeinfo>
#include "opengm/opengm.hxx"
namespace opengm {
/// Interface of label spaces
template<class SPACE, class I = std::size_t, class L = std::size_t>
class SpaceBase {
public: ... |
<commit_before>// File: Message_Msg.cxx
// Created: 27.04.01 19:44:52
// Author: OCC Team
// Copyright: Open CASCADE S.A. 2005
#include <Message_Msg.hxx>
#include <Message_MsgFile.hxx>
#include <TCollection_AsciiString.hxx>
#include <stdio.h>
typedef enum
{
Msg_IntegerType,
Msg_RealType,
Msg_S... |
<commit_before>#include <iostream>
using namespace std;
class robot {
public:
Robot() {
}
~Robot() {
}
}
<commit_msg>added robot class<commit_after>#include <iostream>
using namespace std;
class Robot {
public:
Robot(int start_x, int start_y, char start_heading) {
... |
<commit_before>#include <QSettings>
#include <QTranslator>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/project.h>
#include <projectexplorer/target.h>
#include <projectexplorer/task.h>
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/buildsteplist.h>
#include <extensi... |
<commit_before>#ifndef Magnum_SceneGraph_Animable_hpp
#define Magnum_SceneGraph_Animable_hpp
/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publ... |
<commit_before>#include <stdio.h>
#include <queue>
#include <vector>
#include <utility>
#include <iostream>
#include <string>
#include <stack>
using namespace std;
stack<string> lv1;
stack<string> lv2;
stack<string> lv3;
string temp;
int templv;
int temptime=0;
int usernum;
int users=0;
int read(int now){
if(now < ... |
<commit_before>#include "stdio.h"
#include "stdlib.h"
#include <iostream>
#define MAXSTRLEN 255 // 用户可在255以内定义最大串长
typedef unsigned char SString[MAXSTRLEN+1]; // 0号单元存放串的长度
void get_next(SString T,int next[]){
int i,j;
next[1]=0;
j=0;
while(i<T[0]){
if(j == 0 || T[i]==T[j]){
++i;
... |
<commit_before>#include "upgrade.h"
#include "util.h"
#include "init.h"
#include <algorithm>
#include <univalue.h>
#include <vector>
#include <boost/thread.hpp>
#include <boost/filesystem.hpp>
#include <boost/exception/exception.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
#include <ostream>
#include <iostrea... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bulmaper.cxx,v $
* $Revision: 1.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bulmaper.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 04:33:09 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: grviewsh.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 14:44:55 $
*
* The Contents of this file are made... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ShardSplitter.h"
#include <folly/dynamic.h>
#include "mcrouter/lib/fbi/cpp/globals.h"
#include "mcrouter... |
<commit_before>// @(#)root/base:$Id$
// Author: Philippe Canal 03/09/2003
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun, Fons Rademakers and al. *
* All rights reserved. *
* ... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if defined(_MSC_VER)
#include <intrin.h>
#else
#include <mmintrin.h>
#endif
#include "build/build_config.h"
#include "media/base/simd... |
<commit_before>/* algorithm.cpp - CS 472 Project #2: Genetic Programming
* Copyright 2014 Andrew Schwartzmeyer
*
* Source file for algorithm namespace
*/
#include <algorithm>
#include <cassert>
#include <ctime>
#include <iostream>
#include <fstream>
#include <future>
#include <thread>
#include "algorithm.hpp"
#in... |
<commit_before>## This file is a template. The comment below is emitted
## into the rendered file; feel free to edit this file.
// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
<%
interfaceDict = {}
%>\
%for key in sensorDict.iterkeys():
<%
sensor = sensorDict[key]
serviceInterface = sensor["se... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fucopy.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: kz $ $Date: 2006-12-13 17:55:29 $
*
* The Contents of this file are made a... |
<commit_before>/**
* @file main.cpp
*
* @brief File containing main Q-Learning algorithm and all necessary associated functions to implementing this routine.
*
* @author Machine Learning Team 2015-2016
* @date March, 2016
*/
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <string>
#include <sstrea... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <android/log.h>
//#include <log/log.h>
#include <log/logger.h>
#include <log/logprint.h>
#include <capnp/serialize.h>
#include "common/timing.h"
#include "cereal/gen/cpp/log.capnp.h"
#include "messaging.hpp"
int main() {
int err;
st... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: TenGlyph.hh
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reprod... |
<commit_before>/*
* Copyright (C) 2011, Paul Tagliamonte <tag@pault.ag>
*
* 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
* ... |
<commit_before>/*
* cli.hpp - Simple framework for writing line-oriented command interpreters
*
* Copyright 2010 Jesús Torres <jmtorres@ull.es>
*
* 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 L... |
<commit_before>// Natron
/* 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/. */
/*
*Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
*contact: immarespond at gmail d... |
<commit_before>#include <vector>
#include <boost/lambda/lambda.hpp>
#include "Linq.h"
namespace CppLinq
{
using namespace std;
using boost::lambda::_1;
struct Person
{
Person(const string& name, int age) :
m_name(name), m_age(age)
{
}
string m_name;
int m_age;
};
class LinqTest
{
public:
L... |
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
#ifndef __RAPICORN_THREAD_HH__
#define __RAPICORN_THREAD_HH__
#include <rcore/utilities.hh>
#include <rcore/threadlib.hh>
#include <thread>
namespace Rapicorn {
struct RECURSIVE_LOCK {} constexpr RECURSIVE_LOCK {}; ///< Flag for r... |
<commit_before>#ifndef TYPE_ARITHMETIC
#define TYPE_ARITHMETIC
struct NullType {};
struct InvalidType {};
typedef char SmallType;
struct BigType { char dummy[16]; };
template<class T> struct TypeForType { typedef T Type;};
template<int N> struct TypeForInt { enum { value = N }; };
template<bool b> struct ... |
<commit_before>// @(#)root/thread:$Id$
// Author: Fons Rademakers 25/06/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>//===--- AccessPathVerification.cpp - verify access paths and storage -----===//
//
// 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>/*
yahoochatselectordialog.h
Copyright (c) 2006 by Andre Duffeck <andre@duffeck.de>
Kopete (c) 2002-2006 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>#ifndef NSB_FILE_HPP
#define NSB_FILE_HPP
#include "scriptfile.hpp"
#include <vector>
#include <map>
struct Line
{
uint16_t Magic;
std::vector<std::string> Params;
};
class NsbFile : public ScriptFile
{
public:
NsbFile(const std::string& Name, char* Data = nullptr, uint32_t Size = 0);
... |
<commit_before>#include "style.h"
#include "material.h"
#include "gl/renderState.h"
#include "gl/shaderProgram.h"
#include "gl/mesh.h"
#include "scene/light.h"
#include "scene/styleParam.h"
#include "scene/drawRule.h"
#include "scene/scene.h"
#include "scene/spriteAtlas.h"
#include "tile/tile.h"
#include "data/dataSou... |
<commit_before>#ifndef UNITTEST11_UTILITY_TOSTRING_HPP
#define UNITTEST11_UTILITY_TOSTRING_HPP
#include <string>
#include <sstream>
namespace ut11
{
namespace Utility
{
template<typename V> struct ParseToString
{
inline std::string operator()(const V& value) const
{
... |
<commit_before>#include "style.h"
#include "scene/scene.h"
#include "scene/sceneLayer.h"
#include "scene/light.h"
#include "tile/mapTile.h"
#include "util/vboMesh.h"
#include "view/view.h"
#include "csscolorparser.hpp"
#include <sstream>
std::unordered_map<std::bitset<MAX_LAYERS>, StyleParamMap> Style::s_styleParam... |
<commit_before>/*! \file */ //Copyright 2011-2016 Tyler Gilbert; All Rights Reserved
#ifndef KERNEL_HPP_
#define KERNEL_HPP_
#if !defined __link
#include <sos/sos.h>
#endif
#include <sos/dev/sys.h>
#include <sos/link.h>
#include "File.hpp"
namespace sys {
/*! \brief Sys Class
* \details This class allows access t... |
<commit_before>
#include <iostream>
#include <fbxsdk.h>
#include "common.h"
using namespace std;
const char* GetTypeName(EFbxType tid)
{
switch (tid)
{
case eFbxUndefined: return "eFbxUndefined";
case eFbxChar: return "eFbxChar";
case eFbxUChar: return "eFbxUChar";
... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "OpenSimSceneWidget.h"
#include "Entity.h"
#include "EC_Highlight.h"
#include <QFileDialog>
namespace WorldBuilding
{
OpenSimSceneWidget::OpenSimSceneWidget() :
UiProxyWidget(... |
<commit_before>#include "SimpleField.hpp"
#include <stdexcept>
#include <iostream>
#include <string>
SimpleField::SimpleField(std::vector<std::string> strs)
{
for (int i = 0; i < 32; ++i) {
for(int j = 0; j < 32; ++j) {
mat[i][j] = strs[i][j] == '1';
ok[i][j] = false;
is_first = true;
}
}... |
<commit_before>/*
Copyright (c) DataStax, 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 law or agreed to... |
<commit_before>/** \brief Adds local MARC data from a database to MARC title records w/o local data.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2020 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it an... |
<commit_before>#include <cap/default_inspector.h>
#include <cap/supercapacitor.h>
namespace cap {
template <int dim>
std::map<std::string, double>
extract_data_from_super_capacitor(EnergyStorageDevice *device)
{
std::map<std::string, double> data;
auto super_capacitor = dynamic_cast<SuperCapacitor<dim>*>(devi... |
<commit_before>/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>#line 12 "network.nw"
#include "network.h"
#include <QAbstractSocket>
#include <QTcpSocket>
#include <QTcpServer>
#include <QWebSocket>
#line 22 "network.nw"
// TcpClient functions/*{{{*/
int network_tcp_client(lua_State *L) {/*{{{*/
QTcpSocket *tcpSocket = new QTcpSocket();
QTcpSocket **p = static... |
<commit_before>/*
* seqinfo.cc
*
* Created on: Feb 27, 2015
* Author: mimitantono
*/
#include "seqinfo.h"
#include <stddef.h>
pthread_mutex_t seqinfo_t::mutex;
seqinfo_t::seqinfo_t() {
header = 0;
seq = 0;
headerlen = 0;
hdrhash = 0;
seqlen = 0;
abundance = 0;
visited = false;
// pthread_mutex_init... |
<commit_before>#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "server.h"
#include "http.tab.hpp"
#define SERV_PORT 8080
using namespace sock;
using namespace hcppd;
using namespace std;
extern int yyparse();
extern int yylex_destroy();
extern int yy_scan_string(const c... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <cstdlib>
#include <getopt.h>
#include <cassert>
#include <cmath>
#include "ntHashIterator.hpp"
#include "Uncompress.h"
#ifdef _OPENMP
# include <omp.h>
#endif
#define PROGRAM "ntc... |
<commit_before>/*
** Author(s):
** - Herve Cuche <hcuche@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <iostream>
#include <string>
#include <boost/program_options.hpp>
#include <qi/os.hpp>
#include <qimessaging/session.hpp>
#include <qimessaging/server.hpp>
#include <qimessaging/o... |
<commit_before>#pragma once
#include <cstdint>
#include <chrono>
#include <ratio>
#include <uv.h>
#include "stream.hpp"
#include "error.hpp"
namespace uvw {
class Tcp final: public Stream<Tcp> {
static void protoConnect(uv_connect_t* req, int status) {
auto handle = req->handle;
delete req;
... |
<commit_before>/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... |
<commit_before>#include "PuffinApp.h"
#include "Moose.h"
#include "AppFactory.h"
#include "ModulesApp.h"
#include "MooseSyntax.h"
//PUFFIN
//POSTPROCESSORS
#include "IMCFraction.h"
template<>
InputParameters validParams<PuffinApp>()
{
InputParameters params = validParams<MooseApp>();
return params;
}
PuffinApp::... |
<commit_before>/*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#include <Carna/base/Spatial.h>
#include <Carna/base/Node.h>
#include <Carna/base/CarnaException.h>
namespace Carna
{
namesp... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.