text stringlengths 54 60.6k |
|---|
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University o... |
<commit_before>/*!
* Copyright (c) 2014 by Contributors
* \file engine_empty.cc
* \brief this file provides a dummy implementation of engine that does nothing
* this file provides a way to fall back to single node program without causing too many dependencies
* This is usually NOT needed, use engine_mpi or engi... |
<commit_before>#include "fake_player.hpp"
#include <ctime>
#include <boost/random/discrete_distribution.hpp>
#include "exception.hpp"
#include "walk_move.hpp"
#include "wall_move.hpp"
namespace Quoridor {
FakePlayer::FakePlayer(std::shared_ptr<Board> board,
std::shared_ptr<Pawn> pawn)
: board_(board),... |
<commit_before>#include <stdio.h>
#ifdef WIN32
#include <winsock2.h>
#include <iphlpapi.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#endif
#ifdef __linux__
#define SOCKET_FLAGS MSG_NOSIGNAL
#else
... |
<commit_before>#include <Automaton.h>
#include "Atm_led.h"
Atm_led & Atm_led::begin( int attached_pin )
{
static const state_t state_table[] PROGMEM = {
/* ON_ENTER ON_LOOP ON_EXIT EVT_ON_TIMER EVT_OFF_TIMER EVT_COUNTER EVT_ON EVT_OFF EVT_BLINK ELSE */
/* IDLE */ ACT_INIT, ATM... |
<commit_before>#include "RDom.h"
#include "Util.h"
#include "IROperator.h"
#include "Scope.h"
namespace Halide {
using std::string;
using std::vector;
RVar::operator Expr() const {
return new Internal::Variable(Int(32), name(), domain);
}
Internal::ReductionDomain build_domain(string name0, Expr min0, Expr exte... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-man... |
<commit_before>#include "highlighters.hh"
#include "assert.hh"
#include "window.hh"
#include "color_registry.hh"
#include "highlighter_group.hh"
#include "register_manager.hh"
#include "context.hh"
#include "string.hh"
#include "utf8.hh"
#include "utf8_iterator.hh"
#include <sstream>
#include <locale>
namespace Kakou... |
<commit_before>#include <gtest/gtest.h>
#include <sstream>
#include "cwmp-1-2.hxx"
class Cwmp_1_2_Test : public ::testing::Test {
public:
Cwmp_1_2_Test() {}
virtual ~Cwmp_1_2_Test() {}
};
TEST_F(Cwmp_1_2_Test, GenerateInform) {
const cwmp::cwmp_1_2::Manufacturer manufacturer("manufacturer_string");
const cwm... |
<commit_before>
/*
Copyright 1995 The University of Rhode Island and The Massachusetts
Institute of Technology
Portions of this software were developed by the Graduate School of
Oceanography (GSO) at the University of Rhode Island (URI) in collaboration
with The Massachusetts Institute of Technology (MIT).
... |
<commit_before>/********************************************************************************
** Form generated from reading UI file 'settings.ui'
**
** Created by: Qt User Interface Compiler version 5.3.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************... |
<commit_before>#include <Bitmask.hpp>
#include <NdbOut.hpp>
static
void print(const Uint32 src[], Uint32 len, Uint32 pos = 0)
{
printf("b'");
for(int i = 0; i<len; i++)
{
if(BitmaskImpl::get((pos + len + 31) >> 5, src, i+pos))
printf("1");
else
printf("0");
if((i & 7) == 7)
printf("... |
<commit_before>// ======================================================================== //
// Copyright 2009-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_MATH_QUATERNION_HPP
#define OUZEL_MATH_QUATERNION_HPP
#include <cmath>
#include <cstddef>
#include <limits>
#include "math/Vector.hpp"
namespace ouzel
{
template <typename T> class Quaternion final
{
public:
... |
<commit_before>#include <libprecisegc/details/recorder.hpp>
namespace precisegc { namespace details {
recorder::recorder()
: m_heap_size(0)
, m_last_heap_size(0)
, m_last_alloc_time(gc_clock::now().time_since_epoch())
, m_last_gc_time(gc_clock::now().time_since_epoch())
, m_last_gc_duration(gc_clo... |
<commit_before>/******************************************************************************\
* File: util.cpp
* Purpose: Implementation of wxExtension utility methods
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2009 Anton van Wezenbeek
* All rights are reserved. Reprod... |
<commit_before>/******************************************************************************\
* File: util.cpp
* Purpose: Implementation of wxextension utility methods
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2009 Anton van Wezenbeek
* All rights are reserved. Reprod... |
<commit_before>/******************************************************************************\
* File: util.cpp
* Purpose: Implementation of wxExtension utility methods
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2009 Anton van Wezenbeek
* All rights are reserved. Reprod... |
<commit_before>TFile *f;
void testMergeCont()
{
// Macro to test merging of containers.
TString tutdir = gROOT->GetTutorialsDir();
cout << "----->" << tutdir << endl;
gROOT->LoadMacro(tutdir+"/hsimple.C");
TList *list = GetCollection();
TList *inputs = new TList();
for (Int_t i=0; i<10; i++) {
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLEventImportHelper.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-09 14:19:02 $
*
* The Contents of this fi... |
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <quic/server/SlidingWindowRateLimiter.h>
using namespace std::chrono_literals;
using namespace quic;
TEST(SlidingWindowRateLimiterTest, BasicExceedsCount) {
SlidingWindowRateLimiter limiter(10, 60s);
auto n... |
<commit_before>/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a)... |
<commit_before>/**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary... |
<commit_before>
#include "../../Flare.h"
#include "FlareCreditsMenu.h"
#include "../../Game/FlareGame.h"
#include "../../Game/FlareSaveGame.h"
#include "../../Player/FlareMenuPawn.h"
#include "../../Player/FlareMenuManager.h"
#include "../../Player/FlarePlayerController.h"
#define LOCTEXT_NAMESPACE "FlareCreditsMenu"... |
<commit_before>// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*-
// Copyright (c) 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions ... |
<commit_before>// File_ChannelGrouping - Regrouping PCM streams
// Copyright (C) 2011-2011 MediaArea.net SARL, Info@MediaArea.net
//
// This library is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation... |
<commit_before>// -----------------------------------------------------------------------
// pion-common: a collection of common libraries used by the Pion Platform
// -----------------------------------------------------------------------
// Copyright (C) 2007-2008 Atomic Labs, Inc. (http://www.atomiclabs.com)
//
// ... |
<commit_before>/*
* Copyright 2016 Intel Corporation
*
* 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 applica... |
<commit_before>/**
* @file singleselect.cc
* @author Leonardo Guilherme de Freitas
* @b family menu
* @b type singleselect
* @addtogroup menu
*
* Defines a single-option menu. A single option
* menu lets you define ordered options with identifcators.
* It handles iteration, focus, selection.
*
* @b provide... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkLevelSetFunctionTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkVNLRoundProfileTest1.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
... |
<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 distributed WIT... |
<commit_before>/*
Copyright (c) 2009 by Jeff Weisberg
Author: Jeff Weisberg <jaw @ tcp4me.com>
Created: 2009-Jan-23 10:02 (EST)
Function: console commands
$Id$
*/
#define CURRENT_SUBSYSTEM 'C'
#include "defs.h"
#include "misc.h"
#include "diag.h"
#include "hrtime.h"
#include "thread.h"
#include "config.h"
... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium team:
http://bohrium.bitbucket.org
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the Licens... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium team:
http://bohrium.bitbucket.org
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the Licens... |
<commit_before>/*************************************************************************
* Copyright (C) 2011-2013 by Paul-Louis Ageneau *
* paul-louis (at) ageneau (dot) org *
* *
* ... |
<commit_before>#ifndef KMC_KLANG_EITHER_HPP
#define KMC_KLANG_EITHER_HPP
#include <cassert>
#include <type_traits>
#include <utility>
namespace klang {
namespace {
extern void* enabler;
template <typename From, typename To>
struct enable_if_convertible
: public std::enable_if<std::is_convertible<From, To>::value... |
<commit_before>/*
* Copyright (C) 2012-2014 Yule Fox. All rights reserved.
* http://www.yulefox.com/
*/
#include <elf/db.h>
#include <elf/log.h>
#include <elf/memory.h>
#include <elf/pc.h>
#include <elf/thread.h>
#include <deque>
#include <map>
#include <string>
using namespace google::protobuf;
namespace elf {
e... |
<commit_before>/**
Copyright (c) 2015, Nsynapse Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of... |
<commit_before>#include "engine.h"
#include "constants.h"
#include "state.h"
#include "util.h"
#include <glog/logging.h>
#include <SFML/Graphics.hpp>
namespace Engine {
std::stack<std::unique_ptr<Screen>> screens;
sf::RenderWindow window;
bool running_ = true;
bool init() {
window.create(sf::VideoMode... |
<commit_before>#include "engine.h"
#include "random.h"
#include "Updatable.h"
#include "collisionable.h"
#include "audio/source.h"
#include "io/keybinding.h"
#include "soundManager.h"
#include "windowManager.h"
#include "scriptInterface.h"
#include "multiplayer_server.h"
#include <thread>
#include <SDL.h>
#ifdef DEBU... |
<commit_before>#pragma once
#include <random>
#include <functional>
namespace dust
{
template<class State, class Observation>
class filter
{
public:
using motion_model = std::function<State(const State&, float)>;
using observation_probability = std::function<float(const Observation&,
... |
<commit_before>/*
* mod_dup - duplicates apache requests
*
* Copyright (C) 2013 Orange
*
* 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
*
* U... |
<commit_before>// fluxbox.hh for Fluxbox Window Manager
// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
//
// blackbox.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
//... |
<commit_before>/*
* Point.cpp
*
* Created on: Sep 15, 2013
* Author: drb
*/
#include "Point.h"
#include <cmath>
Point::Point() {
// TODO Auto-generated constructor stub
this->x = 0;
this->y = 0;
}
Point::~Point() {
// TODO Auto-generated destructor stub
}
Point::Point(double X, double Y)
{
this->x =... |
<commit_before>#include <fstream>
#include <iostream>
#include <vector>
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
struct Params {
bool hasFile;
std::string fileName;
};
Params ParseArgs(int argc, char** argv) {
Params p;
std::vector<std::string> args(argv + 1, argv ... |
<commit_before>#include "master.hpp"
namespace factor
{
THREADHANDLE start_thread(void *(*start_routine)(void *),void *args)
{
pthread_attr_t attr;
pthread_t thread;
if (pthread_attr_init (&attr) != 0)
fatal_error("pthread_attr_init() failed",0);
if (pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_JOINABLE) ... |
<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>/* -*- 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>// 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/browser/metrics/user_metrics.h"
#include "chrome/browser/profile.h"
#include "chrome/common/notification_service.... |
<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.
#include "chrome/browser/oom_priority_manager.h"
#include <algorithm>
#include <vector>
#include "base/process.h"
#include "base/proc... |
<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.
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop.h"
#include "base/test/test_timeou... |
<commit_before>// Copyright (c) 2006-2009 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 <string>
#include <windows.h>
#include "base/command_line.h"
#include "base/basictypes.h"
#include "chrome/common/chrome... |
<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.
#include "base/command_line.h"
#include "base/environment.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/mem... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>#include "stdafx.h"
#include "lua_vm.h"
#include "blogger.h"
#include "luanode.h"
#include <assert.h>
#include <string>
long CLuaVM::s_nextID = 0;
//////////////////////////////////////////////////////////////////////
// Constructor
CLuaVM::CLuaVM(/*IHostVirtualMachine& vmHost*/) :
//m_v... |
<commit_before>// Copyright 2011 Google Inc. 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 require... |
<commit_before>#include "command.hh"
#include "common-args.hh"
#include "shared.hh"
#include "store-api.hh"
#include "progress-bar.hh"
using namespace nix;
struct CmdLog : InstallableCommand
{
CmdLog()
{
}
std::string name() override
{
return "log";
}
std::string description() ov... |
<commit_before>#include "output.hpp"
#include "config.hpp"
#include <boost/assert.hpp>
#include <boost/filesystem.hpp>
#include <boost/utility/string_ref.hpp>
#include <climits>
#include <utility>
using namespace synth;
bool Markup::empty() const
{
return beginOffset == endOffset
|| (attrs == TokenAtt... |
<commit_before>#include <algorithm>
#include <iostream>
#include <stdexcept>
#include "config.hpp"
#include "parser.hpp"
requirements Parser::required;
void Parser::init ()
{
required.emplace("announce", std::forward_list<std::string>{"port","peer_id","info_hash","left","compact"}); // init a set of required params ... |
<commit_before>#include "player.h"
Player::CameraNavigationMode Player::cameraNavMode = FREE_FLY;
double Player::scrollY = 0.0;
Player::Player(const glm::mat4 &matrix_, Camera *camera_, GLFWwindow *window_, const std::string &filePath)
: Geometry(matrix_, filePath)
, camera(camera_)
, window(window_)
{
/... |
<commit_before>/*
* Copyright (c) 2003-2009, John Wiegley. 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) 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>#include <cstdlib>
#include <cerrno>
#include <cstring>
#include <cstdio>
#include <cassert>
#include "ring.hpp"
#include <stdint.h>
#include <QFile>
#define DEFAULTBUFFERSIZE 1024
#define DEFAULTMUTATIONINTERVAL 16
#ifdef __linux__
#define _GNU_SOURCE
#include <sched.h>
#include <sys/types.h>
#include... |
<commit_before>#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include <sstream>
#include <iostream>
#include <unordered_map>
#include "url.h"
#include "robots.h"
namespace Rep
{
void Robots::strip(std::string& string)
{
string.erase(string.begin(), std::find_if(strin... |
<commit_before>#include "Config.hpp"
#include "Geometry.hpp"
#include "Model.hpp"
#include "Print.hpp"
#include "TriangleMesh.hpp"
#include "Format/3mf.hpp"
#include "libslic3r.h"
#include "Utils.hpp"
#include <cstdio>
#include <string>
#include <cstring>
#include <iostream>
#include <math.h>
#include <boost/filesystem... |
<commit_before>/*
* =====================================================================================
*
* Filename: socket.cpp
*
* Description: Socket control
*
* Version: 1.0
* Created: 27/01/13 20:55:15
* Revision: none
* Compiler: g++
*
* Author: Dani... |
<commit_before>// Include standard headers
#include <stdio.h>
#include <stdlib.h>
#include "cleanup.h"
// Include GLEW
#ifdef __APPLE_CC__
#include <OpenGL/gl3.h>
#define GLFW_INCLUDE_GLCOREARB
#else
#include "GL/glew.h"
#endif
#include "SDL.h"
#undef main
// Include GLM
#include "glm/glm.hpp"
#include <iostrea... |
<commit_before>#include "tester.h"
#include <vector>
#include <optional>
#include <chrono>
#include "../base/gsl.h"
namespace tester
{
Report report;
static double _presicion = default_double_presicion;
auto& cases()
{
struct CaseData
{
const char* name;
Case::Procedure proc;
};
static std::vecto... |
<commit_before>// -*- mode: c++; coding: utf-8 -*-
/*! @file tissue.h
@brief Interface of Tissue class
*/
#pragma once
#ifndef TISSUE_HPP_
#define TISSUE_HPP_
#include <iostream>
#include <vector>
#include <valarray>
#include <unordered_set>
#include <memory>
#include <string>
#include <boost/functional/hash.hpp>... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <SDL_opengl.h>
#include <list>
#include <vector>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include "tunnel.hxx"
#include "distortion.hxx"
using namespace std;
Tunnel::Tunnel()
: offset(0), clock(0)
{
//Crea... |
<commit_before>//
// George 'papanikge' Papanikolaou
// CEID Advance Algorithm Desing Course 2014
// Library of Efficient Data types and Algorithms (LEDA) testing
//
// Strong Components identifier and checker implementation
//
#include "basic.h"
using namespace leda;
/*
* My implementation of Kosaraju's algorithm ... |
<commit_before>// example.cpp : Simple logger example
//
#include "c11log/logger.h"
#include "c11log/sinks/async_sink.h"
#include "c11log/sinks/file_sinks.h"
#include "c11log/sinks/console_sinks.h"
#include "utils.h"
using std::cout;
using std::endl;
using namespace std::chrono;
using namespace c11log;
using namespa... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief PicoJPEG クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/glfw3_app/blob/master/LIC... |
<commit_before>#ifndef MATCHES_DHT_HPP
#define MATCHES_DHT_HPP
#include <Grappa.hpp>
#include <GlobalAllocator.hpp>
#include <GlobalCompletionEvent.hpp>
#include <ParallelLoop.hpp>
#include <BufferVector.hpp>
#include <Metrics.hpp>
#include <list>
#include <cmath>
//GRAPPA_DECLARE_METRIC(MaxMetric<uint64_t>, max_ce... |
<commit_before>/*=========================================================================
*
* Copyright RTK 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 <string>
#include <iostream>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glut.h>
#endif
// DisplayCluster streaming
#include <dcStream.h>
std::string streamName = "SimpleStreamer";
bool parallelStreaming = false;
int seg... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2018 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 <stdio.h>
#include <string.h>
/*
int main ()
{
char str[] ="- This, a sample string.";
char * pch;
printf ("Splitting string \"%s\... |
<commit_before>#ifndef SIMDIFY_UTIL_INLINE
#define SIMDIFY_UTIL_INLINE
#if defined(__GNUC__)
#define SIMDIFY_FORCE_INLINE __attribute__((always_inline)) inline
#elif defined(_MSC_VER)
#define SIMDIFY_FORCE_INLINE __forceinline
#else
#error "util_inline.h: incompatible compiler"
#endif
#endif // SIMDIFY_UTIL_INL... |
<commit_before>/*==============================================================================
Copyright (c) Kapteyn Astronomical Institute
University of Groningen, Groningen, Netherlands. All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required ... |
<commit_before>/*
* Copyright 2003,2004 The Apache Software Foundation.
*
* 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
*
* Unl... |
<commit_before>/*
* Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
#include "console_server.h"
#include "log.h"
#include "os.h"
#include "platform.h"
#include "string_stream.h"
#include "string_utils.h"
#include "temp_alloc... |
<commit_before>//
// sdSaver.cpp
//
#include <vector>
#include <iostream>
#include <sstream>
#include <algorithm>
#include "sdConst.h"
#include "sdEntity.h"
#include "sdScene.h"
#include "sdSaver.h"
#include "tinyxml2.h"
#include "JSONNode.h"
using namespace std;
string sdGlobalEvent::getKindAsString(void){
str... |
<commit_before>// Copyright (c) 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 "ash/wm/frame_painter.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/test/ash_test_base.h"
#includ... |
<commit_before>// Copyright (c) 2014 bushido
// Copyright (c) 2014 The Vertcoin developers
// Copyright (c) 2014 https://github.com/spesmilo/sx
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "stealth.h"
#include <b... |
<commit_before>#include <math.h> // sqrt
#include <stdio.h> // snprintf
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <api.h>
static void do_keyboard (GLFWwindow* window, int key, int scancode,
int action, int mods)
{
if (GLFW_KEY_ESCAPE == key) {
glfwSetWindo... |
<commit_before>#include "ORDocumentIterator.h"
#include "NOTDocumentIterator.h"
using namespace std;
using namespace sf1r;
ORDocumentIterator::ORDocumentIterator()
:pDocIteratorQueue_(NULL)
,hasNot_(false)
,currDocOfNOTIter_(MAX_DOC_ID)
,initNOTIterator_(false)
,pNOT... |
<commit_before>/* **********************************************************
* Copyright (c) 2015 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkLightActor.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
T... |
<commit_before>#pragma once
#include <memory>
#include "VectorIndexer.hpp"
#include "Bookmark.hpp"
namespace Rendering
{
namespace Buffer
{
class VertexBuffer;
class IndexBuffer;
};
namespace Manager
{
template <typename BufferType>
class BufferPool final
{
public:
BufferPool() = default;
DISA... |
<commit_before>// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkWin32TextMapper.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
S... |
<commit_before>#include "OffScreen.h"
#include "Utility.h"
using namespace Rendering::TBDR;
using namespace Rendering::PostProcessing;
using namespace Rendering::Shader;
using namespace Rendering::Texture;
using namespace GPGPU::DirectCompute;
OffScreen::OffScreen()
: FullScreen()
{
}
OffScreen::~OffScreen()
{
}
v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.