text stringlengths 54 60.6k |
|---|
<commit_before>#include "json-to-value.hh"
#include <variant>
#include <nlohmann/json.hpp>
#include <nlohmann/detail/exceptions.hpp>
using json = nlohmann::json;
using std::unique_ptr;
namespace nix {
// for more information, refer to
// https://github.com/nlohmann/json/blob/master/include/nlohmann/detail/input/jso... |
<commit_before>const char* VERTEX_Z_PASS_SRC = "#version 330 core\n"
"layout(location=0) in vec3 position;"
"layout(location=1) in vec3 normal;"
"layout(location=2) in vec2 texCoords;"
"unifor... |
<commit_before>/* Copyright 2017 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 <algorithm>
#define NOMINMAX // Para que nadie nos redefina min max
#include <sstream>
#include "game_window.h"
#include "../parser_yaml/parser_yaml.h"
using namespace std;
bool GameWindow::sdlInitialized = false;
bool GameWindow::initialize() {
Logger::getInstance()->writeInformation("Ini... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
#include <numeric>
#include <thread>
#include <adios2.h>
#include <adios2/common/ADIOSMacros.h>
#include <adios2/helper/adiosFunctions.h>
#include <gtest/gtest.h>
using namesp... |
<commit_before>/*
* This file is part of the UnTech Editor Suite.
* Copyright (c) 2016 - 2020, Marcus Rowe <undisbeliever@gmail.com>.
* Distributed under The MIT License: https://opensource.org/licenses/MIT
*/
#include "scenes-editor-editor.h"
#include "gui/imgui.h"
#include "gui/list-helpers.h"
#include "models/r... |
<commit_before>#include "ROOT/TDataFrame.hxx"
#include "TRandom.h"
#include "TInterpreter.h"
#include "gtest/gtest.h"
using namespace ROOT::Experimental;
namespace TEST_CATEGORY {
int DefineFunction()
{
return 1;
}
struct DefineStruct {
int operator()() { return 1; }
};
void FillTree(const char *filename, c... |
<commit_before>#include "network_packets.h"
// -------------------- NetworkPacket --------------------------
// serialization
Packet::Packet(int32_t id, uint32_t flag, int derived_size) : id(id), flag(flag) {
packet_size = header_size + derived_size;
packet = (char*)malloc(packet_size);
std::cout << "Packet C... |
<commit_before>#pragma once
#include <vector>
#include <tuple>
#include <array>
#include <Eigen/Dense>
#include <iod/symbols.hh>
#include <vpp/core/image2d.hh>
#include <vpp/core/vector.hh>
#include <vpp/core/liie.hh>
#include <vpp/core/box_nbh2d.hh>
#include <vpp/core/make_array.hh>
namespace vpp
{
template <ty... |
<commit_before>// Copyright (C) 2014 sails Authors.
// All rights reserved.
//
// Official git repository and contact information can be found at
// https://github.com/sails/sails and http://www.sailsxu.com/.
//
// Filename: monitor.cc
//
// Author: sailsxu <sailsxu@gmail.com>
// Created: 2014-10-20 17:14:50
#include ... |
<commit_before>// Copyright 2015 Toggl Desktop developers.
#include "../src/netconf.h"
#include <string>
#include <sstream>
#include "./https_client.h"
#include "Poco/Environment.h"
#include "Poco/Logger.h"
#include "Poco/Net/HTTPCredentials.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/URI.h"
#include... |
<commit_before>#include <cstdio>
#include <cmath>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <set>
#include <vector>
#include <sstream>
#include <typeinfo>
using namespace std;
class ${ClassName} {
public:
${Method.ReturnType} ${Method.Name}(${Method.Params}) {
return ${Metho... |
<commit_before>/*
* Copyright © 2012 Intel Corporation
*
* 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, mod... |
<commit_before>#ifndef TOML_PARSER
#define TOML_PARSER
#include "definitions.hpp"
#include "exceptions.hpp"
#include "line_operation.hpp"
#include "toml_values.hpp"
#include "parse_to_value.hpp"
namespace toml
{
enum class LineKind
{
TABLE_TITLE, // (ex) [tablename]
ARRAY_OF_TABLE_TITLE, // (ex) [[ta... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
*... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
*... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2013 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>// Copyright (c) 2011-2012 Zeex
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list o... |
<commit_before>/*
* Copyright (c) 2015 OpenALPR Technology, Inc.
* Open source Automated License Plate Recognition [http://www.openalpr.com]
*
* This file is part of OpenALPR.
*
* OpenALPR is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License
* ver... |
<commit_before>/**
* \file prastar.cc
*
*
*
* \author Seth Lemons
* \date 2008-11-19
*/
#include <assert.h>
#include <math.h>
#include <errno.h>
#include <vector>
#include <limits>
extern "C" {
#include "lockfree/include/atomic.h"
}
#include "util/timer.h"
#include "util/mutex.h"
#include "util/msg_buffer.h"... |
<commit_before>#include <Python.h>
#include "structmember.h"
#include <cassert>
#include <string>
#include <iostream>
#include <indri/CompressedCollection.hpp>
#include <indri/DiskIndex.hpp>
#include <indri/QueryEnvironment.hpp>
#include <indri/Path.hpp>
using std::string;
#define CHECK_EQ(first, second) assert(fir... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#ifndef BULL_GRAPHICS_LIGHT_DIRECTIONALLIGHT_HPP
#define BULL_GRAPHICS_LIGHT_DIRECTIONALLIGHT_HPP
#include <Bull/Graphics/Light/AbstractLight.hpp>
#include <Bull/Math/Vector/Vector3.hpp>
namespace Bull
{
class BULL_GRAPHICS_API DirectionalLight : public AbstractLight
{
public:
/*! ... |
<commit_before>/*
Copyright (c) 2009-2014, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef EL_HERMITIANUNIFORM... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_DEPTHRENDERTECHNIQUE_HPP
#define NAZARA_DEPTHRENDERTECHNIQUE_HPP
#include <Nazara/Prerequesites.... |
<commit_before>#pragma once
#include <type_traits>
#include "string_literal.hpp"
namespace named_types {
template <class Char> unsigned long long constexpr const_hash(Char const *input) {
return *input ? static_cast<unsigned long long>(*input) + 33 * const_hash(input + 1) : 5381;
}
template <class Char, size_t Si... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>#include <algorithm>
#include <iostream>
#include <tiramisu/debug.h>
#include <Halide.h>
using namespace Halide;
using namespace Halide::Internal;
using std::string;
using std::map;
using std::vector;
namespace tiramisu
{
namespace
{
string stmt_to_string(const string &str, const Stmt &s)
{
std... |
<commit_before>#ifndef STAN_MATH_REV_CORE_OPERATOR_ADDITION_HPP
#define STAN_MATH_REV_CORE_OPERATOR_ADDITION_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core/var.hpp>
#include <stan/math/prim/err/check_matching_dims.hpp>
#include <stan/math/rev/core/callback_vari.hpp>
#include <stan/math/prim/fun/con... |
<commit_before>/*
Licensed Materials - Property of IBM
DB2 Storage Engine Enablement
Copyright IBM Corporation 2007,2008
All rights reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
(a) Redistributions of source cod... |
<commit_before>/*
An erlang driver for taglib that outputs JSON.
This process is passed filenames on stdin (from erlang)
It uses taglib on the file, and outputs JSON containing the
metadata, according to taglib. One line of JSON output per file.
*/
#include <taglib/fileref.h>
#include <taglib/tag.h>
... |
<commit_before>/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This l... |
<commit_before>/******************************************************************************
* Copyright 2018 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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attributefactory.h"
#include "integerbase.h"
#include "floatbase.h"
#include "defines.h"
#include "singlestringattribute.h"
#include "singleboolattribute.h"
#include "singlest... |
<commit_before>#define GLOG_NO_ABBREVIATED_SEVERITIES
#undef TRACE_SYMPLECTIC_PARTITIONED_RUNGE_KUTTA_INTEGRATOR
#include <algorithm>
#include "benchmark/benchmark.h"
#include "integrators/symplectic_partitioned_runge_kutta_integrator.hpp"
using principia::integrators::SPRKIntegrator;
namespace principia {
namespa... |
<commit_before>#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <st... |
<commit_before>//============================================================================
// Name : jaco_arm.cpp
// Author : WPI, Clearpath Robotics
// Version : 0.5
// Copyright : BSD
// Description : A ROS driver for controlling the Kinova Jaco robotic manipulator arm
//=========================... |
<commit_before>/**
* @file /sophus_ros_conversions/include/sophus_ros_conversions/geometry.hpp
*/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef sophus_ros_conversions_GEOMETRY_HPP_
#defin... |
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@webzone.net)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gen... |
<commit_before>#include "ArraySort.h"
namespace NP_ARRAYSORT
{
void quickSort(Comparable ** array, int fromIndex, int toIndex)
{
if (fromIndex < toIndex) {
int position = partition(array, fromIndex, toIndex);
quickSort(array, fromIndex, position - 1);
quickSort(array, position + 1, toIndex);
}
}
int p... |
<commit_before>/// \file ROOT/TCanvas.hxx
/// \ingroup Gpad ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-07-08
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/******************************************************... |
<commit_before>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
<commit_before>// $Id: sample.cpp 793 2008-08-17 14:33:30Z glandrum $
//
// Copyright (C) 2009 Greg Landrum
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <Graph... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>#include "worklist3.h"
#include <iostream>
#include <stdlib.h>
//FILE *fp;
void node::set_data(int element)
{
data = element;
}
void node::get_data()
{
cout << data << " -> ";
}
linklist::linklist()
{
//exit = 1; count = 0; length = 0; choice = 0; search = 0;
num = 0; count = 0;
first = new node;... |
<commit_before>#include "xchainer/array_repr.h"
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <vector>
#ifdef XCHAINER_ENABLE_CUDA
#include <cuda_runtime.h>
#endif // XCHAINER_ENABLE_CUDA
#include "xchainer/array.h"
#include "xchainer/array_... |
<commit_before>/** ---------------------------------------------------------------------------
* @file: shader.cpp
*
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
* MIT License, see LICENSE file for more details.
* ----------------------------------------------------------------------------
*/
... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
systemtrayicon.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2007 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
<commit_before>/*
Copyright (c) 2015,
Dan Bethell, Johannes Saam, Vahan Sosoyan.
All rights reserved. See Copyright.txt for more details.
*/
#include "Client.h"
#include <boost/lexical_cast.hpp>
#include <stdexcept>
#include <iostream>
using namespace aton;
using boost::asio::ip::tcp;
Client::Client( std::string ho... |
<commit_before>/* Copyright (c) 2017 Wenova - Rise of Conquerors. All rights reserved.
*
* This work is licensed under the terms of the MIT license.
* For a copy, see <https://opensource.org/licenses/MIT>.
*/
/**
* @file Config.cpp
* Implements class Config methods.
*/
#include "Config.h"
int Config::width;
in... |
<commit_before>#include "DG_Job.h"
#include <SDL.h>
#include <atomic>
#include "DG_Windows.h"
namespace DG
{
static const u32 JOB_COUNT = 4096;
static const u32 JOB_MASK = JOB_COUNT - 1u;
thread_local u32 LocalJobBufferIndex = 0;
thread_local Job LocalJobBuffer[JOB_COUNT];
thread_local Job* LocalJobQueue[JOB_COU... |
<commit_before>#include "Entity.hpp"
Entity::Entity()
{
}
void Entity::setVelocity(sf::Vector2f velocity)
{
m_velocity = velocity;
}
void Entity::setVelocity(float velX, float velY)
{
m_velocity.x = velX;
m_velocity.y = velY;
}
sf::Vector2f Entity::getVelocity()
{
return m_velocity;
}
void Entity... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: Glyph3D.cc
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, reprodu... |
<commit_before>//===--- ASTScopePrinting.cpp - Swift Object-Oriented AST Scope -----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//== RegionStore.cpp - Field-sensitive store model --------------*- C++ -*--==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Scintilla source code edit control
/** @file KeyMap.cxx
** Defines a mapping between keystrokes and commands.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include "Platform.h"
#incl... |
<commit_before>//===-- MachineInstr.cpp --------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Value.h"
using std::cerr;
// Constructor for instructions with fixed #operands (ne... |
<commit_before>// Scintilla source code edit control
/** @file LexCPP.cxx
** Lexer for C++, C, Java, and Javascript.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
... |
<commit_before>#include "Matrix.h"
/* ===========================================================================================
// Basic constructor
============================================================================================*/
Matrix::Matrix()
: m_iColumns(1)
, m_iRows(1)
, m_pdData(NUL... |
<commit_before>#include <Refal2.h>
namespace Refal2 {
//-----------------------------------------------------------------------------
// CProgram
CProgram::CProgram( int numberOfModules ) :
modulesSize( numberOfModules ),
modules( new CRuntimeModule[modulesSize] )
{
assert( modulesSize > 0 );
assert( modules != ... |
<commit_before>#include <nan.h>
#include "Packers.h"
#include "Memory.h"
namespace streampunk {
void dumpPGroupRaw (uint8_t *pgbuf, uint32_t width, uint32_t numLines) {
uint8_t *buf = pgbuf;
for (uint32_t i = 0; i < numLines; ++i) {
printf("PGroup Line%02d: %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x... |
<commit_before>//===-- TargetAsmInfo.cpp - Asm Info ---------------------------------------==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <cstddef>
#include "Smooth.h"
#include "PollardRho.h"
namespace Math {
namespace Fac {
bool isSmooth(const mpz_t n, const mpz_t B, mpz_t *C) {
vector<mpz_t*> facs;
pollardRhoFactor(n, facs);
mpz_t max;
mpz_init(max);
mpz_set_ui(max, 0);
for (size_t i ... |
<commit_before>#include <node.h>
#include <initializer_list>
#include "../amo-library/Pump.h"
#include "../amo-library/calculator/PumpEfficiency.h"
#include "../amo-library/calculator/OptimalPumpEfficiency.h"
#include "../amo-library/calculator/MotorRatedPower.h"
#include "../amo-library/calculator/OptimalMotorRatedPo... |
<commit_before>//
// vertex.cpp
// regex
//
// Created by leviathan on 16/7/19.
// Copyright © 2016年 leviathan. All rights reserved.
//
#include <iostream>
#include "vertex.hpp"
<commit_msg>Delete Vertex.cpp<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2007, 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>#include "broker.hpp"
#include "message.hpp"
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <unordered_map>
namespace {
bool revStrEquals(const std::string& str1, const std::string& str2) { //compare strings in reverse
if(str1.length() != str2.length()) return false;
for(i... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <cerrno>
/* Use the POSIX glob(3) function if available. On a native Windows port,
* you'll need to make your own glob(3) implementation and define HAVE_GLOB, or
* enti... |
<commit_before>/*
* Copyright (c) 2012, Dennis Hedback
* 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>/*
* Copyright (c) 2011, Peter Thorson. 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, th... |
<commit_before>/*
* This file is part of the QPackageKit project
* Copyright (C) 2008 Adrien Bustany <madcat@mymadcat.com>
* Copyright (C) 2010-2011 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public... |
<commit_before>/*
* Copyright (c) 2013-2015 John Connor (BM-NC49AxAjcqVcF5jNPu85Rb8MJ2d9JqZt)
*
* This file is part of vanillacoin.
*
* vanillacoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one publis... |
<commit_before>/* Linguagens de Programação 2017.1
* Autorship: Daniel Barbosa and Erick Silva
*
* Implementation of the List ADT using doubly linked list
*/
// Quick compilation
// g++ src/driver.cpp -o bin/list -I include -Wall -std=c++11
#include <iostream>
#include <cassert>
#include "list.h"
using namespa... |
<commit_before>//=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#include "engine.h"
#include <QDateTime>
#include <QTextStream>
#include <QSettings>
#include <QStandardPaths>
#include "globals.h"
#include "fileworker.h"
#include "statfileinfo.h"
Engine::Engine(QObject *parent) :
QObject(parent),
m_clipboardContainsCopy(false),
m_progress(0)
{
m_fileW... |
<commit_before>#include "engine.h"
#include "random.h"
#include "gameEntity.h"
#include "Updatable.h"
#include "collisionable.h"
#include "audio/source.h"
#include <SDL.h>
#ifdef DEBUG
#include <typeinfo>
int DEBUG_PobjCount;
PObject* DEBUG_PobjListStart;
#endif
#ifdef WIN32
#include <windows.h>
namespace
{
HIN... |
<commit_before>// fluxbox.hh for Fluxbox Window Manager
// Copyright (c) 2001 - 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
//
// blackbox.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net)
//
// Permission is hereby granted, free of charge, to any person ... |
<commit_before>/**
* @file fsLogic.cc
* @author Rafal Slota
* @author Konrad Zemek
* @copyright (C) 2013-2015 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "fsLogic.h"
#include "context.h"
#include "events/eventManager.h"
#include "logging.h"... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <sstream>
#include <fstream>
#include <openssl/md5.h>
#include "boost/filesystem/operations.hpp"
#include "boost/filesystem/path.hpp"
#include <pHash.h>
#include "imagedb.h"
#include "common.h"
using namespace std;
namespace fs = boost::filesystem;
vo... |
<commit_before>#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "model.h"
#include "camera.h"
#include "kernel.h"
#include "string.h"
Kernel::Kernel(int argc, char** argv)
{
/* open and read config file */
char option[255];
char value[255];
FILE *config_file;
config_file = fo... |
<commit_before>//-----------------------------------------------------------------------------
// HIMG, by Marcus Geelnard, 2015
//
// This is free and unencumbered software released into the public domain.
//
// See LICENSE for details.
//-----------------------------------------------------------------------------
#... |
<commit_before>// cpsm - fuzzy path matcher
// Copyright (C) 2015 Jamie Liu
//
// 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
//
// Unle... |
<commit_before>// [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
#include <Rmath.h>
#include <vector>
#include <cassert>
#include "vmat.h"
#include "gmat.h"
#include "DataPairs.h"
#include "quadrule.h"
#include "pn.h"
#include "functions.h"
using namespace Rcpp;
using namespace arma;
using namespace std... |
<commit_before>// [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
#include <Rmath.h>
#include <vector>
#include <cassert>
#include "vmat.h"
#include "gmat.h"
#include "DataPairs.h"
#include "quadrule.h"
#include "pn.h"
#include "functions.h"
using namespace Rcpp;
using namespace arma;
using namespace st... |
<commit_before>/**
* @file options.cc
* @author Konrad Zemek
* @copyright (C) 2014 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in 'LICENSE.txt'
*/
#include "options.h"
#include "veilConfig.h"
#include "veilErrors.h"
#include "veilException.h"
#include "veilfs.h"
#include ... |
<commit_before>#include "GLFWController.hpp"
#include "ModelView.hpp"
#include "AffinePoint.hpp"
#include "AffineVector.hpp"
#include "ModelViewWithShader.hpp"
#include "Block.hpp"
#include "DependencyContainer.hpp"
#include "otuchaConfig.h"
#include "Matrix3x3.hpp"
#include "TextureAtlas.hpp"
#include "TextureFont.hpp... |
<commit_before>#include "output.h"
#include "buffer_pool.h"
#include "compress.h"
#include "cso.h"
namespace maxcso {
// TODO: Tune, less may be better.
static const size_t QUEUE_SIZE = 128;
Output::Output(uv_loop_t *loop, const Task &task)
: loop_(loop), flags_(task.flags), state_(STATE_INIT), srcSize_(-1), index_... |
<commit_before>/* Copyright (c) 2009, Sebastien Mirolo
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 l... |
<commit_before>#include "pb_conn.h"
#include "pink_define.h"
#include "worker_thread.h"
#include "xdebug.h"
#include <string>
namespace pink {
PbConn::PbConn(const int fd, const std::string &ip_port) :
PinkConn(fd, ip_port),
header_len_(-1),
cur_pos_(0),
rbuf_len_(0),
connStatus_(kHeader),
wbuf_len_(0),
... |
<commit_before>#include "pbview.h"
#include <cinttypes>
#include <cstdio>
#include <cstring>
#include <ncurses.h>
#include <iostream>
#include <sstream>
#include "config.h"
#include "configcontainer.h"
#include "dllist.h"
#include "download.h"
#include "fmtstrformatter.h"
#include "help.h"
#include "listformatter.h"
... |
<commit_before>#include "player.h"
Pacman::Pacman()
{
MobileObject::MobileObject();
x = 0;
y = 0;
boundX = 0;
boundY = 0;
velocity = 1;
image = NULL;
};
void Pacman::Init(float x, float y, int boundX, int boundY, int velocity, float lives, ALLEGRO_BITMAP *image)
{
MobileObject::Init(x, y, boundX, boundY, im... |
<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>
#include "reader.h"
#include <cassert>
#include <cstring>
#include <stack>
#define BUFF_CAP 4096
#define MAX_SEQ 524288
using std::istream;
using std::stack;
namespace AMOS {
Reader::Reader(istream& input): input(&input), buff_written(0) {
buff = new char[BUFF_CAP];
buff_cap = BUFF_CAP;
... |
<commit_before>/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the fi... |
<commit_before>#include "SystemCPU.hpp"
#include <iostream>
using namespace std;
int main()
{
while (true)
{
SystemCpu syscpu;
cout << syscpu.getCpuModeInfo() << endl;
}
system("pause");
}
TCHAR* SystemCpu::getCpuModeInfo()
{
HKEY key;
TCHAR data[1024];
DWORD dwSize;
dwSize = sizeof(data) / sizeof(T... |
<commit_before>#include "results.h"
#include "engine.h"
#include <cstdint>
#include <string>
#include <vector>
#include <napi.h>
// all/mask percent to js
Napi::Array
ToJs(const Napi::Env &env, const std::string &name, const uint_fast32_t diffsPerc, const uint_fast32_t percentResult) {
Napi::Array resultsJs = Napi... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.