text stringlengths 54 60.6k |
|---|
<commit_before>//
// Copyright (c) 2016 Joy Narical <jnarical@gmail.com> MIT license
//
// display.cpp
//
#include "display.hpp"
#include "strings.hpp"
#include "input.hpp"
#include "battlefield.hpp"
#include "powerup.hpp"
#include "player.hpp"
#include "item.hpp"
#include "monster.hpp"
#include "field.hpp"
#include ... |
<commit_before>#include <memory>
#include <utility>
#include <vector>
#include "base_test.hpp"
#include "expression/binary_predicate_expression.hpp"
#include "expression/expression_functional.hpp"
#include "operators/get_table.hpp"
#include "operators/table_scan.hpp"
#include "scheduler/current_scheduler.hpp"
#includ... |
<commit_before>#include <yuni/yuni.h>
#include <yuni/io/file.h>
#include <yuni/core/system/console.h>
#include <yuni/core/getopt.h>
#include "details/grammar/nany.h"
#include <iostream>
#include <vector>
using namespace Yuni;
#ifndef NANY_VERSION
#error define NANY_VERSION is missing
#endif
#define likely(X) YUNI... |
<commit_before>#ifndef DISSENT_ANONYMITY_SHUFFLE_ROUND_H_GUARD
#define DISSENT_ANONYMITY_SHUFFLE_ROUND_H_GUARD
#include <QBitArray>
#include <QDataStream>
#include <QMetaEnum>
#include <QSharedPointer>
#include "Connections/Network.hpp"
#include "Log.hpp"
#include "Round.hpp"
namespace Dissent {
namespace Anonymi... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... |
<commit_before>/*************************************************************************
*
* $RCSfile: saxnamespacefilter.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2004-02-25 17:55:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*************************************************************************
*
* $RCSfile: ZipFile.hxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: hr $ $Date: 2003-03-26 14:13:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief input クラス @n
数値、文字列などの入力クラス
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#incl... |
<commit_before>#ifndef __MODEL_HPP_INCLUDED
#define __MODEL_HPP_INCLUDED
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h>
#endif
// Include GLFW
#ifndef __GLFW3_H_INCLUDED
#define __GLFW3_H_INCLUDED
#include <glfw3.h>
#endif
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/message_box.h"
namespace atom {
int ShowMessageBox(NativeWindow* parent_window,
MessageBoxType type,
... |
<commit_before>#ifndef SYNCHRONIZE_LOCKS_NUM
# define SYNCHRONIZE_LOCKS_NUM 0x100
#endif
#ifndef READ_SIDE_PARALLELISM
# define READ_SIDE_PARALLELISM 0x8
#endif
#include <iostream>
#include <array>
#include <mutex>
#include <memory>
#include <functional>
#include <algorithm>
#include <thread>
namespace syncope {
... |
<commit_before>/*
* Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your o... |
<commit_before>#include <iostream>
#include <stack>
using namesspace std;
int evaluateOp(char operator,int numberStack, char operatorStack)
{
int leftValue = numberStack.pop();
int rightValue = numberStack.pop();
int result;
switch(operator)
{
case '+':
result = leftValue + rightValue;
return result;
bre... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
... |
<commit_before>#include <QApplication>
#include <QDir>
#include <QTextStream>
#include <QTimer>
#include "run-scenario.h"
RunScenario::RunScenario()
{
_rootDir = QDir::currentPath() + QDir::separator() + "dirs";
// Set up model.
_model.setReadOnly(true);
_model.setRootPath(_rootDir);
// In the G... |
<commit_before>/*
* Copyright (C) 2018 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>#include "types.h"
#include "mmu.h"
#include "kernel.hh"
#include "amd64.h"
#include "cpu.hh"
#include "traps.h"
#include "queue.h"
#include "spinlock.h"
#include "condvar.h"
#include "proc.hh"
#include "kmtrace.hh"
#include "bits.hh"
struct intdesc idt[256] __attribute__((aligned(16)));
// boot.S
exte... |
<commit_before>//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
typedef int errno_t;
#de... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/mrs_lo... |
<commit_before><commit_msg>Missing const<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2017 Leonid Yuriev <leo@yuriev.ru>
* and other libmdbx authors: please see AUTHORS file.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of t... |
<commit_before>#include "io.h"
#include <sstream>
#include <fstream>
#include <iomanip>
#include <gflags/gflags.h>
#include "proto/metadata.pb.h"
#include "proto/chunk.pb.h"
DEFINE_string(dataset, "", "Input dataset");
DEFINE_string(output, "", "Path to file where to store calculated PageRank");
/*
* NOTE! It's p... |
<commit_before><commit_msg>update python bindings some more<commit_after><|endoftext|> |
<commit_before>#ifndef VIENNAFVM_QUANTITY_HPP
#define VIENNAFVM_QUANTITY_HPP
/* =======================================================================
Copyright (c) 2011, Institute for Microelectronics, TU Wien
http://www.iue.tuwien.ac.at
-----------------
ViennaFVM - The... |
<commit_before>#include "CommunicationInterface.h"
// constructor
CommunicationInterface::CommunicationInterface(void)
:
outputDataBuffer_(""),
placeInBuffer_(false),
dataBufferIndex_(0),
nModules_(0)
{
// Do nothing.
}
// Destructor - make sure to clean up those pointers!
CommunicationInterface::~Co... |
<commit_before>#include "imgui_extra.h"
#include "imgui.h"
#define _USE_MATH_DEFINES
#include <cmath>
namespace imgui
{
bool
Knob(const char* label, float* p_value, float v_min, float v_max)
{
constexpr auto pi = static_cast<float>(M_PI);
constexpr float angle_min = pi * 0.75f;
conste... |
<commit_before>// Copyright (c) 2012-2015 Dano Pernis
// See LICENSE for details
#include <gtk/gtk.h>
#include <glib.h>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <cassert>
#include "CPU.h"
namespace hcc {
struct ROM : public IROM {
unsigned short *data;
static const unsigned int si... |
<commit_before>// {{{ Copyright notice
/* Copyright (c) 2007-2009, Adam Harvey
*
* 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 ... |
<commit_before>class Game
{
unsigned int player_limit;
std::list<char> bunch;
std::map<std::string, Player> players;
sf::Int16 peel_number {0};
bool playing {false};
bool ready_to_peel {false}; // game is ready for next peel
bool waiting {false}; // waiting for clients to acknowledge critical server packets befo... |
<commit_before>/*************************************************************************
*
* $RCSfile: flddropdown.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-06-30 15:50:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include <iostream>
#include <algorithm>
#include <iterator>
#include <stdexcept>
template<typename T,typename Alloc>
class vector
{
public:
typedef T value_type;
typedef Alloc alloc_type;
typedef value_type & reference;
typedef value_type * pointer;
typedef const value_type & c... |
<commit_before>//
// EventBus.hpp
// CatchLib
//
// Created by Jesper Persson and Sebastian Odbjer on 2/10-12.
// Copyright (c) 2012 Catch22. All rights reserved.
//
#include "EEvent.hpp"
#include "IEventListener.hpp"
struct EventListenerArray
{
IEventListener** m_eventListeners;
int m_size;
int m_incrementBy;
... |
<commit_before>/*************************************************************************
> File Name: Interface.cpp
> Project Name: Hearthstone++
> Author: Young-Joong Kim
> Purpose: Interface for Hearthstone Game Agent
> Created Time: 2017/10/24
> Copyright (c) 2017, Young-Joong Kim
***************************... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2018 SabberStone Team, darkfriend77 & rnilva
// Hearthstone++ is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <hspp/Actions/Choose.hpp>
#include <h... |
<commit_before>/*
* Copyright (c) 2015, Nagoya University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, t... |
<commit_before>#include "feStats.h"
const feStats feStats::ZERO = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
bool feStats::operator==(const feStats &rhs) const {
return (hp == rhs.hp
&& str == rhs.str
&& mag == rhs.mag
&& skl == rhs.skl
&& spd == rhs.spd
&& lck == rhs.lck
&& def == rhs.def
&& res == rhs.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chgviset.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:27:10 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: conditio.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:28:47 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: notesuno.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:44:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// $Id$
// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full ... |
<commit_before>//
// upb - a minimalist implementation of protocol buffers.
//
// Copyright (c) 2011 Google Inc. See LICENSE for details.
// Author: Josh Haberman <jhaberman@gmail.com>
// Routines for reading and writing message data to an in-memory structure,
// similar to a C struct.
//
// upb does not define one si... |
<commit_before>#include "directory.hh"
#include "../messages/filelist.hh"
#include "../messages/boost_impl.hh"
#include "../messages/factory.hh"
#include <boost/asio.hpp>
#include <iomanip>
using namespace std;
using namespace eclipse;
using namespace eclipse::messages;
using boost::asio::ip::tcp;
using vec_str = std:... |
<commit_before>/*
* Copyright (C) 2014 Endless Mobile
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This... |
<commit_before>/*** Copyright (c), The Regents of the University of California ***
*** For more infophybunation please refer to files in the COPYRIGHT directory ***/
/*
* iphybun - The irods phybun utility
*/
#include "irods_client_api_table.hpp"
#include "irods_pack_table.hpp"
#include "rodsClient.hpp"
#i... |
<commit_before>#include "threads.h"
#include "assert.h"
#if defined(_MSC_VER)
ThreadID CreateThreadSimple(ThreadFunc func, void* arg){
ThreadID id ={};
id.handle = CreateThread(NULL, 0, func, arg, 0, &id.threadId);
return id;
}
void JoinThread(ThreadID thread){
WaitForSingleObject(thread.handle, INFINITE);
}
vo... |
<commit_before>#ifndef BITOPS_HH
#define BITOPS_HH
#include <limits>
#include <type_traits>
#include <cstdint>
#include <climits>
namespace std {
///////////////////////////
//Basic bitwise operations
///////////////////////////
//Returns the number of trailing 0-bits in x, starting at the least significant bit pos... |
<commit_before>#include "hornet/java.hh"
#include "hornet/system_error.hh"
#include "hornet/java.hh"
#include "hornet/zip.hh"
#include "hornet/vm.hh"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#include <algorithm>
#include <cassert>
#include <climits>
#include <cstring>
#i... |
<commit_before>// Copyright (c) 2006-2008 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 "chrome/test/testing_profile.h"
#include "build/build_config.h"
#include "base/string_util.h"
#include "chrome/browser/b... |
<commit_before>/* * This file is part of meego-im-framework *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
... |
<commit_before>#include <sys/ucontext.h>
namespace factor {
// Fault handler information. MacOSX version.
// Copyright (C) 1993-1999, 2002-2003 Bruno Haible <clisp.org at bruno>
// Copyright (C) 2003 Paolo Bonzini <gnu.org at bonzini>
// Used under BSD license with permission from Paolo Bonzini and Bruno Haible,
... |
<commit_before>// Copyright 2015 FMAW
#include <iostream>
#include <fstream>
#include "./grid.h"
#include "./gridmap.h"
#include <fat.h>
#include <nds.h>
namespace GridMap{
void loadDefaultGridMap( Grid &g ) { loadGridMap("defaultMap", g); }
void loadGridMap( const char* mapName, Grid &g ){
FILE* test = fopen ("./... |
<commit_before># include "vtkPointData.h"
# include "vtkPoints.h"
# include "vtkPolyDataMapper.h"
# include "vtkRenderWindow.h"
# include "vtkJPEGReader.h"
# include "vtkOBJReader.h"
# include "vtkProperty.h"
# include "vtkOpenGLHardwareSupport.h"
# include "vtkOpenGLRenderWindow.h"
#include "vtkTexturingHelper.h"
vt... |
<commit_before>
#include "HuboRT/Manager.hpp"
int main(int argc, char* argv[])
{
HuboRT::Manager mgr;
mgr.launch();
return 0;
}
<commit_msg>trying to debug the manager launch<commit_after>
#include "HuboRT/Manager.hpp"
#include <syslog.h>
int main(int argc, char* argv[])
{
syslog( LOG_NOTICE, "About... |
<commit_before>//python3 module for tinyobjloader
//
//usage:
// import tinyobjloader as tol
// model = tol.LoadObj(name)
// print(model["shapes"])
// print(model["materials"]
#include <Python.h>
#include <vector>
#include "../tiny_obj_loader.h"
typedef std::vector<double> vectd;
PyObject*
pyTupleFromfloat3 (float a... |
<commit_before>//===-- ClangdFuzzer.cpp - Fuzz clangd ------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>#include "stats.h"
Stats::Stats() {
this->allocCount = 0;
this->freeCount = 0;
this->invalidReadCount = 0;
this->invalidWriteCount = 0;
this->fenceHitCount = 0;
this->invalidFreeCount = 0;
this->midFreeChunkCount = 0;
this->freeNullCount = 0;
this->invalidReturnCount = 0;
this->fenceOverflowHi... |
<commit_before>#include "stats.h"
Stats::Stats() {
this->mallocCount = 0;
this->freeCount = 0;
this->invalidReadCount = 0;
this->invalidWriteCount = 0;
this->fenceHitCount = 0;
this->invalidFreeCount = 0;
this->midFreeChunkCount = 0;
this->freeNullCount = 0;
this->invalidReturnCount = 0;
this->fenceOverflowH... |
<commit_before>/*
kopeteviewmanager.cpp - View Manager
Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org>
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/*
** transport-client.cpp
** Login : <hcuche@hcuche-de>
** Started on Thu Jan 5 15:21:13 2012 Herve Cuche
** $Id$
**
** Author(s):
** - Herve Cuche <hcuche@aldebaran-robotics.com>
**
** Copyright (C) 2012 Herve Cuche
*/
#include <iostream>
#include <cstring>
#include <map>
#include <stdint.h>
#incl... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* This file is part of meego-keyboard
*
* Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: Mohammad Anwari <Mohammad.Anwari@nokia.com>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted pr... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vcldemo.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-05 15:56:47 $
*
* The Contents of this file are made a... |
<commit_before><commit_msg>use different line and fill colors<commit_after><|endoftext|> |
<commit_before>/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... |
<commit_before>#include "in_memory_tracer.h"
#include <lightstep/tracer.h>
#define CATCH_CONFIG_MAIN
#include <lightstep/catch/catch.hpp>
#include <google/protobuf/util/message_differencer.h>
using namespace lightstep;
using namespace opentracing;
namespace lightstep {
std::shared_ptr<Tracer> make_lightstep_tracer(
... |
<commit_before>#ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <list>
#include <set>
#include <cmath>
#include <cassert>
#include <iostream>
#include <iterator>
#include <type_traits>
#include <utility>
#include <vigra/multi_array.hxx>
#include <vigra/linear_algebra.hxx>
namespace vigra
{
template<unsigne... |
<commit_before>/*
test_text
Do some simple text drawing
*/
#include "drawproc.h"
#include "guistyle.h"
#include <stdio.h>
static GUIStyle styler;
static const int gMaxMode = 3;
static int gMode = 0;
pb_rgba fb;
pb_rect keyRect = { 0, 0, 34, 34 };
/*
VK_SPACE, 168, 242, 204, 34
*/
//void draw();
void mousePresse... |
<commit_before>#include "TestAlgorithm.h"
/**
* @brief TestAlgorithm::TestAlgorithm create new algorithm with given ID
* @param id algorithm ID
*/
TestAlgorithm::TestAlgorithm() {
mId = "default";
mName = "Test algorithm";
mDescription = "dummy algorithm that scores randomly";
}
/**
* @brief TestAlgor... |
<commit_before>#include "gvki/Logger.h"
#include "gvki/PathSeperator.h"
#include <cstdlib>
#include <cstdio>
#include <cassert>
#include <errno.h>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "string.h"
#include "gvki/Debug.h"
// For mkdir(). FIXME: Make windows compatible
#include <sys/stat.h>
... |
<commit_before>#ifndef SIMPLE_HERO_CPP_
#define SIMPLE_HERO_CPP_
#include "simple_hero.hpp"
#include <stdlib.h>
#include <queue>
Simple_Hero::Simple_Hero( int type ) : Actor( type ) {
actor_list = vector<Vertex>();
made_graph = false;
}
const char* Simple_Hero::getActorId() {
return "simplehero";
}
const char... |
<commit_before>// Copyright (c) 2015 The Brick Authors.
#include "brick/brick_app.h"
#include <unistd.h>
#include <gtk/gtk.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <X11/Xlib.h>
#include <X11/extensions/scrnsaver.h>
#include "third-party/json/json.h"
#include "include/wrapper/cef_helpers.h"
#include "i... |
<commit_before>#include "TestGeneratedProperty.h"
#include "PEG/test.peg.h"
#include "PEG/test2.peg.h"
#include <QtTest/QtTest>
void TestGeneratedProperty::test1()
{
QtnPropertySetTest1 p;
QVERIFY(p.name() == "Test1");
p.a = 2;
QVERIFY(p.a == 2);
p.a = 15;
QVERIFY(p.a.maxValue() == 10);
QV... |
<commit_before>#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Log.h"
#include "ui/Suite.h"
#include "mason/Hud.h"
#include "mason/Common.h"
#include "mason/Config.h"
#include "mason/Assets.h"
#include "mason/Profiling.h"
#include "HudTest.h"
#include "MiscTes... |
<commit_before>#include <GL/glew.h>
#include "Shader.hpp"
Shader::Shader(std::ifstream & ShaderFile,GLuint ProgramID,int Type,std::string name)
{
ShaderFile.seekg(0,std::ios_base::end);
int length=ShaderFile.tellg();
ShaderFile.seekg(0,std::ios_base::beg);
char * Contents=new char[length+1];
Shade... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do ... |
<commit_before>#include "instance.hh"
#include "chacha20.hh"
namespace ssev{
template <typename protocol>
void instance<protocol>::timer_event(ev::periodic &watcher, int revents){
}
template <typename protocol>
void instance<protocol>::recv_event(ev::io &watcher, int revents){
}
template <typename protocol>
void i... |
<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>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: metaOutput.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.... |
<commit_before>/*=========================================================================
Program: gdcm
Module: gdcmDict.cxx
Language: C++
Date: $Date$
Version: $Revision$
... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2017 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>#ifndef hSDK_HeaderPlusPlus
#define hSDK_HeaderPlusPlus
#include <string>
#include <tuple>
class mv;
namespace hSDK
{
static_assert(sizeof(void *) == 4 && sizeof(std::size_t) == 4, "MMF2 only supports 32-bit extensions");
#ifdef UNICODE
using char_t = wchar_t;
#define T_ L
#else
using char_t = ... |
<commit_before>/*
* Copyright (C) 2017 Tmplt <tmplt@dragons.rocks>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versio... |
<commit_before>#include <iostream>
#include <vector>
#include <map>
#include "numpy_import.h"
#ifdef NO_IMPORT_ARRAY
#undef NO_IMPORT_ARRAY
#endif
#include "numpy/arrayobject.h"
#include "Python.h"
#include "datarobot2d.h"
#include "utils.h"
#define ARGS_NUM_CHECK(NUM) if (PyTuple_GET_SIZE(cpp_args) != NUM) { \
... |
<commit_before>#pragma once
// Include most Rack headers for convenience
#include <common.hpp>
#include <math.hpp>
#include <string.hpp>
#include <system.hpp>
#include <random.hpp>
#include <network.hpp>
#include <asset.hpp>
#include <window.hpp>
#include <app.hpp>
#include <midi.hpp>
#include <helpers.hpp>
#include <... |
<commit_before>/**
* binary search tree class
* created by lisovskey
*/
#ifndef TREE_H
#define TREE_H
#define RZD_BEGIN namespace rzd {
#define RZD_END }
#define ANYWAY
#define THEN
#include <list>
#include <memory>
#include <ostream>
#include <optional>
RZD_BEGIN
using std::list;
using std::ostream;
using std:... |
<commit_before>#include "util/bitmap.h"
#include <math.h>
#include <iostream>
#include "level/utils.h"
#include "network/messages.h"
#include "loading.h"
#include "util/file-system.h"
#include "util/font.h"
#include "util/funcs.h"
#include "globals.h"
#include <vector>
#include <pthread.h>
#include "util/message-queue... |
<commit_before>#include <iostream>
#include <cstdio>
#include <QApplication>
#include <QtUiTools>
#include "med.hpp"
using namespace std;
class MainUi : public QObject {
Q_OBJECT
public:
MainUi() {
loadUiFiles();
}
Med med;
private slots:
void onProcessClicked() {
med.listProcesses();
proce... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id: vmware4.cc,v 1.1 2006/12/17 08:17:28 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
/*
* This file provides support for VMWare's virtual disk image
* format version 4 and above.
... |
<commit_before>//
// StaticAnalyser.cpp
// Clock Signal
//
// Created by Thomas Harte on 03/05/2018.
// Copyright © 2018 Thomas Harte. All rights reserved.
//
#include "StaticAnalyser.hpp"
#include "../AppleII/Target.hpp"
#include "../Oric/Target.hpp"
#include "../Disassembler/6502.hpp"
#include "../Disassembler/... |
<commit_before>#include "natives.hpp"
#include "LogManager.hpp"
#include "PluginLog.hpp"
#include <fmt/format.h>
// native Logger:CreateLog(const name[], bool:debuginfo = true);
AMX_DECLARE_NATIVE(Native::CreateLog)
{
ScopedDebugInfo dbg_info(amx, "CreateLog", params, "sd");
const char *name = nullptr;
amx_StrPa... |
<commit_before>#define DEBUG // Allow debugging
#define DEBUG2 // Allow debug lvl 2
#include <os>
#include <net/ip4.hpp>
#include <net/ip4/packet_ip4.hpp>
#include <net/packet.hpp>
using namespace net;
int IP4::bottom(Packet_ptr pckt){
debug2("<IP4 handler> got the data. \n");
const uint8_t* data = pckt->bu... |
<commit_before>void readCDB (TObject *task1);
//_____________________________________________________________________________
AliAnalysisTask *AddTaskT0Calib(Int_t runNumber)
{
//
// add calibration task
//
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Error("AddTas... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestAMRBox.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This... |
<commit_before>//==============================================================================
// CellML annotation view CellML details widget
//==============================================================================
#include "borderedwidget.h"
#include "cellmlannotationviewcellmldetailswidget.h"
#includ... |
<commit_before>#include "VXGI.h"
#include "BindIndexInfo.h"
#include "ShaderFactory.hpp"
#include "MainRenderer.h"
using namespace Device;
using namespace Core;
using namespace Rendering;
using namespace Rendering::Light;
using namespace Rendering::Shadow;
using namespace Rendering::Manager;
using namespace Rendering:... |
<commit_before>#ifndef __OPERANDS_HH__
#define __OPERANDS_HH__
#include <memory>
#include <stack>
#include <string>
#include "exprtoken.hh"
// fwd decl
namespace Evaluators
{
class Visitor;
} // namespace Evaluators
namespace Operands
{
typedef double NumericType;
class Operand: public ExpressionToken
{
public:
... |
<commit_before>// Copyright 2018 Global Phasing Ltd.
#define GEMMI_PROG na
#include "options.h"
#include <cstdio> // for fprintf, fopen
#include <cstdlib> // for strtol, strtod, exit
#include <cstring> // for strcmp, strchr
#include <gemmi/fileutil.hpp> // for expand_if_pdb_code, file_open_or
#include <gemmi/vers... |
<commit_before>//@author A0094446X
#include "stdafx.h"
#include "CppUnitTest.h"
#include "You-GUI\main_window.h"
#include "You-GUI\system_tray_manager.h"
#include "You-QueryEngine\api.h"
#include "You-GUI\task_panel_manager.h"
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
using Task = You::Cont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.