text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2014 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 "sandbox/mac/os_compatibility.h"
#include <servers/bootstrap.h>
#include <unistd.h>
#include "base/mac/mac_util.h"
namespace sa... |
<commit_before>// sound.cxx -- Sound class implementation
//
// Started by Erik Hofman, February 2002
// (Reuses some code from fg_fx.cxx created by David Megginson)
//
// Copyright (C) 2002 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify... |
<commit_before>#include "earth.h"
//
// CONSTRUCTORS ////////////////////////////////////////////////////////////////
//
Earth::Earth()
: Planet( ":/texture/earth.jpg" )
{
transform.setScale( 0.09158f );
moon = new EarthMoon();
}
//
// OVERRIDDEN FUNCTIONS
//
void Earth::initializeGL()
{
Pl... |
<commit_before>#include <tests/Base.hh>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <aleph/geometry/CoverTree.hh>
using namespace aleph::geometry;
template <class T> struct SimpleMetric
{
T operator()( T a, T b )
{
return std::abs(... |
<commit_before>#include "FitsObject.h"
#include <stdexcept>
using namespace std;
Fits::Fits(const string &filename)
: m_status(0), m_filename(filename)
{
fits_open_file(&*this->fptr(), this->m_filename.c_str(), READWRITE, &this->status());
this->check();
}
Fits::Fits() {}
Fits::~Fits()
{
fits_close_... |
<commit_before>// Eflags register
#define FL_CF 0x00000001 // Carry Flag
#define FL_PF 0x00000004 // Parity Flag
#define FL_AF 0x00000010 // Auxiliary carry Flag
#define FL_ZF 0x00000040 // Zero Flag
#define FL_SF 0x00000080 // Sign Flag
#define... |
<commit_before>#include "Common.hpp"
#include "raycaster/Raycaster.hpp"
#include "helpers/Random.hpp"
#include "input/Input.hpp"
#include "input/InputCallbacks.hpp"
#include "input/ControllableCamera.hpp"
#include "helpers/System.hpp"
#include "resources/ResourcesManager.hpp"
#include "graphics/ScreenQuad.hpp"
#include... |
<commit_before>/*
* Jamoma DSP Wavetable Oscillator
* Copyright © 2003, Timothy Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "TTWavetable.h"
#define thisTTClass TTWavetable
#define thisTTClassName "wavetable"
#define thisTTClassT... |
<commit_before>//The MIT License (MIT)
//
// Copyright (c) 2015 Relja Ljubobratovic, ljubobratovic.relja@gmail.com
//
// 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, ... |
<commit_before>// Copyright (C) 2012-2017 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "IPCTestUtils.h"
#include <leapipc/CircularBufferEndpoint.h>
#include <autowiring/autowiring.h>
#include <autowiring/CoreThread.h>
#include <cstdio>
#include <thread>
#include <gtest/gtest.h>
using namespace l... |
<commit_before>/*************************************************************************
*
* $RCSfile: xlroot.hxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: rt $ $Date: 2005-03-29 13:47:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/* bzflag
* Copyright (c) 1993-2011 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
*... |
<commit_before>// Copyright (C) 2015 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "RendererOGL.h"
#include "TextureOGL.h"
#include "RenderTargetOGL.h"
#include "ShaderOGL.h"
#include "MeshBufferOGL.h"
#include "Engine.h"
#include "Scene.h"
#include "Camera.h"
#include "Utils.h"
#if defined(SUPP... |
<commit_before>/*************************************************************************
*
* $RCSfile: tbinsert.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2004-11-19 11:15:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#ifndef NPA_HPP
#define NPA_HPP
#include "npafile.hpp"
#include "mapfile.hpp"
#include "nsbfile.hpp"
#endif
<commit_msg>Remove npa.hpp<commit_after><|endoftext|> |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_DETAIL_WHITTED_INL
#define VSNRAY_DETAIL_WHITTED_INL 1
#include <array>
#include <cstddef>
#include <visionaray/get_surface.h>
#include <visionaray/result_record.h>
#include <visionaray... |
<commit_before>///
/// @file PreSieve.cpp
/// @brief Pre-sieve multiples of small primes to speed up the
/// sieve of Eratosthenes.
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
... |
<commit_before>#include <ctime>
#include <string>
#include <map>
#include <vector>
#include <sstream>
#include <fstream>
#include <iostream>
#include <iomanip>
using namespace std;
typedef map<int, string, less<int> > names;
typedef map<string, int, less<string> > points;
int number(int from, int to)
{
return ((ra... |
<commit_before>#include "ImGuiToolSystem.hpp"
#include "EntityManager.hpp"
#include "components/ImGuiComponent.hpp"
#include "imgui.h"
#include "to_string.hpp"
#ifndef KENGINE_IMGUI_TOOLS_SAVE_FILE
# define KENGINE_IMGUI_TOOLS_SAVE_FILE "tools.cnf"
#endif
class ConfFile {
public:
void parse() {
std::ifstream f(K... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld
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 w... |
<commit_before>/*******************************************************************************
* Copyright (c) 2013, Art Clarke. All rights reserved.
*
* This file is part of Humble-Video.
*
* Humble-Video is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General P... |
<commit_before>/**
* @file lloutputmonitorctrl.cpp
* @brief LLOutputMonitorCtrl base class
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the t... |
<commit_before>// Copyright (c) 2010 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 "webkit/fileapi/file_system_quota.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#inc... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pfuncache.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2006-07-21 15:06:03 $
*
* The Contents of this file are made... |
<commit_before>/**
* syntaxhighlighter.cpp
*
* Copyright (c) 2003 Trolltech AS
*
* 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; version 2 of the License
*
* This program is distrib... |
<commit_before>/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>/////////////////////////////////////////////////////////////////////////
//
// Author: Mateusz Jurczyk (mjurczyk@google.com)
//
// Copyright 2017-2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
<commit_before>// tsukasa.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char *argv[])
{
#ifdef _WIN32
_setmode(_fileno(stdin), _O_BINARY);
#endif
int i;
unsigned int j;
int data_pos;
int audio_stream_number = 0;
/* Object ID */
un... |
<commit_before>/*=============================================================================
Copyright (c) 2012-2014 Richard Otis
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===============================... |
<commit_before>#include <coffee/CCore>
#include <coffee/graphics_apis/CGLeam>
#include <coffee/COpenVR>
#include <coffee/CGraphics>
using namespace Coffee;
using namespace CDisplay;
using GL = CGL::CGL43;
class CDRenderer : public Coffee::CDisplay::CGLeamRenderer
{
public:
CDRenderer()
: CGLeamRenderer(0... |
<commit_before>/* Sirikata
* PrintFilter.cpp
*
* Copyright (c) 2010, Jeff Terrace
* 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 ... |
<commit_before>#include "stdafx.h"
#include "CNodeFunction.h"
CNodeFunction::CNodeFunction( )
{
memsize = sizeof( size_t );
}
void CNodeFunction::Update( HotSpot & Spot )
{
StandardUpdate( Spot );
if (Spot.ID == 0)
DisassembleBytes( Spot.Address );
}
int CNodeFunction::Draw( ViewInfo & View, int x, int y )
{
... |
<commit_before>#include <cassert>
#include <cmath>
namespace foaw {
template <typename T, size_t N>
T estimate_velocity(const std::array<T, N>& circular_buffer, size_t oldest_index,
T sample_period, T allowed_error, T overflow_value) {
assert(sample_period > static_cast<T>(0));
assert(allowed_error > ... |
<commit_before>#include "catch.hpp"
#include <reflection_manager.hpp>
#include <iterator>
TEST_CASE("test info_iterator_ with const type", "[info_iterator_]")
{
constexpr shadow::type_info type_info_array[] = {
{"type1", 1}, {"type2", 2}, {"type3", 3}, {"type4", 4},
};
SECTION("Construct info_i... |
<commit_before>#include "fsm.hpp"
// =========================================================================
void FsmArgumentStack::Reset()
{
mStringPos = 0;
mIntPos = 0;
}
void FsmArgumentStack::Push(std::string str)
{
mStringArgs.push_back(str);
}
void FsmArgumentStack::Push(s32 integer)
{
mIntA... |
<commit_before>// $Id$
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
<commit_before><commit_msg>r10734/sofa : returning reference to local temporary object<commit_after><|endoftext|> |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*===========================================
GRRLIB (GX Version)
Example code by Xane
This example shows a basic particle
engine creating a Smokebomb.
============================================*/
#include <grrlib.h>
#include <cstdlib>
#include <wiiuse/wpad.h>
#include... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) <2015> <Romain LEGUAY romain.leguay@gmail.com>
*
* 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, includ... |
<commit_before>/*
* Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>/* * This file is part of m-keyboard *
*
* 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.
*
* This l... |
<commit_before>/******************************************************************************\
This file is part of the C! library. A.K.A the cbang library.
Copyright (c) 2003-2014, Cauldron Development LLC
Copyright (c) 2003-2014, Stanford University
... |
<commit_before>/**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
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 S... |
<commit_before>/*
Copyright (C) 2018 Alexander Akulich <akulichalexander@gmail.com>
This file is a part of TelegramQt library.
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; e... |
<commit_before>#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
using namespace std;
typedef unsigned long long int ulli;
vector<ulli> collatz(ulli number){
vector<ulli> seq;
while(number > 1){
if( number%2 == 1 ){
... |
<commit_before>#include "ElectronicWireGenerator.hpp"
#include "ClipperUtils.hpp"
#include "SVG.hpp"
namespace Slic3r {
ElectronicWireGenerator::ElectronicWireGenerator(Layer* layer, double extrusion_width,
double extrusion_overlap, double first_extrusion_overlap, double overlap_min_extrusion_length, double ... |
<commit_before>#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include "Battle.h"
#include "Creature.h"
#include "Dialogue.h"
BattleEvent::BattleEvent(Creature* _source, Creature* _target, BattleEventType _type)
: source(_source), target(_target), type(_type)
{
}
Creatu... |
<commit_before>// Copyright (c) 2010 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 "media/filters/audio_renderer_algorithm_base.h"
#include "base/logging.h"
#include "media/base/buffers.h"
namespace media {
... |
<commit_before>////////////////////////////////////////////////////////////
//
// DAGON - An Adventure Game Engine
// Copyright (c) 2011-2013 Senscape s.r.l.
// All rights reserved.
//
// 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 dist... |
<commit_before>#include "watchdog_service.hpp"
#include <sdbusplus/bus.hpp>
#include <sdbusplus/message.hpp>
#include <string>
#include <xyz/openbmc_project/State/Watchdog/server.hpp>
#include "host-ipmid/ipmid-api.h"
using sdbusplus::message::variant_ns::get;
using sdbusplus::message::variant_ns::variant;
using sdb... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>#ifndef GOL_H_INCLUDED
#define GOL_H_INCLUDED
#include "tile.hxx"
namespace game_of_life
{
class WorkerCommunicator
{
public:
virtual void beginIteration() = 0;
virtual void sendBorders(Borders t) = 0;
virtual Borders receiveBorders() = 0;
virtual void waitForBordersRead() = 0;
v... |
<commit_before>/*
* AscEmu Framework based on ArcEmu MMORPG Server
* Copyright (C) 2014-2015 AscEmu Team <http://www.ascemu.org/>
* Copyright (C) 2008-2012 ArcEmu Team <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General P... |
<commit_before>// -----------------------------------------------------------------------------
//
// MIT License
//
// Copyright (c) 2016 Alberto Sola
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// i... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// insert_executor.cpp
//
// Identification: src/backend/executor/insert_executor.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===-------------------... |
<commit_before>/*
* Louvain.cpp
*
* Created on: 25.02.2013
* Author: cls
*/
#include "Louvain.h"
namespace EnsembleClustering {
Louvain::Louvain(std::string par) {
this->parallelism = par;
}
Louvain::~Louvain() {
// TODO Auto-generated destructor stub
}
Clustering Louvain::pass(Graph& G) {
// init ... |
<commit_before>//
// HUDErrorRenderer.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 9/28/13.
//
//
#ifndef __G3MiOSSDK__HUDErrorRenderer__
#define __G3MiOSSDK__HUDErrorRenderer__
#include "ErrorRenderer.hpp"
#include "HUDImageRenderer.hpp"
#include "ImageFactory.hpp"
class HUDErrorRenderer_ImageFactory :... |
<commit_before>// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2013, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redist... |
<commit_before>// Copyright (c) 2021 by Apex.AI 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... |
<commit_before>//===--- BackendUtil.cpp - LLVM Backend Utilities -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===--- CodeGenTypes.cpp - TBAA information for LLVM CodeGen -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- MachineLICM.cpp - Machine Loop Invariant Code Motion Pass ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Bill Wendling and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>#ifndef ARABICA_XSLT_STYLESHEETCONSTANT_HPP
#define ARABICA_XSLT_STYLESHEETCONSTANT_HPP
#include <XML/XMLCharacterClasses.hpp>
#include <XPath/impl/xpath_namespace_context.hpp>
#include <memory>
#include "xslt_stylesheet_parser.hpp"
#include "xslt_compiled_stylesheet.hpp"
#include "xslt_compilation_con... |
<commit_before>/**
* Copyright (c) 2011-2014 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin_explorer.
*
* libbitcoin_explorer 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 pub... |
<commit_before>/*
Class for displaying connection errors
Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.com>
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; eit... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
* Copyright (c) 2016-2018 metaverse core developers (see MVS-AUTHORS)
*
* This file is part of metaverse.
*
* metaverse is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Li... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>/*************************************************************************
This software allows for filtering in high-dimensional measurement and
state spaces, as described in
M. Wuthrich, P. Pastor, M. Kalakrishnan, J. Bohg, and S. Schaal.
Probabilistic Object Tracking using a Range Camera
IEEE/RSJ Int... |
<commit_before>#pragma once
#include "mmu.h"
#include <atomic>
#include "spinlock.h"
using std::atomic;
// Per-CPU state
struct cpu {
cpuid_t id; // Index into cpus[] below
int ncli; // Depth of pushcli nesting.
int intena; // Were interrupts enabled before ... |
<commit_before>#include "Main.h"
//获取基本信息
void handlerGetDeviceBaseInfo(struct bufferevent * bufEvent,Json::Value &data){
char buffer[100];
//获取内存大小
struct sysinfo memInfo;
sysinfo(&memInfo);
//获取磁盘大小
struct statfs diskInfo;
statfs(DISK_SIZE_PATH, &diskInfo);
//格式化数据
double totalMem... |
<commit_before>/**
* @file llfloaterconversationpreview.cpp
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2012, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>//===--- Immediate.cpp - the swift immediate mode -------------------------===//
//
// 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>#include "../Thread.h"
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
__thread int x = 0;
void print()
{
printf("pid=%d tid=%d x=%d\n", getpid(), muduo::CurrentThread::tid(), x);
}
int main()
{
printf("parent %d\n", getpid());
print();
x = 1;
print();
pid_t p = fork();
i... |
<commit_before>#include <combine/omexdescription.h>
#include <sbml/xml/XMLInputStream.h>
#include <sbml/xml/XMLOutputStream.h>
#include <sbml/xml/XMLNode.h>
#include <sbml/xml/XMLToken.h>
#include <fstream>
#include <iomanip>
#include <ctime>
#include <cstdlib>
#include <sstream>
LIBSBML_CPP_NAMESPACE_USE
LIBCOMBIN... |
<commit_before>/*
*
*/
#include "IPyraNet2DLayer.h"
#include <assert.h>
#define UNIFORM_PLUS_MINUS_ONE ( static_cast<OutType>((2.0 * rand())/RAND_MAX - 1.0) )
template<class OutType>
IPyraNet2DLayer<OutType>::IPyraNet2DLayer()
: IPyraNetLayer<OutType>(),
width(0),
height(0),
recepti... |
<commit_before>//===- MCJITTest.cpp - Unit tests for the MCJIT ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>Replace hex values in SpdyFramerTest.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2006, 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 of source code must retain the above copyright
// notice, this ... |
<commit_before>/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/type_checker.h"
#include "kernel/instantiate.h"
#include "kernel/abstract.h"
#include "kernel/for_each_fn.h"
#include "libra... |
<commit_before>//===--- ManagedValue.cpp - Value with cleanup ----------------------------===//
//
// 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>// Copyright 2014 Toggl Desktop developers.
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <iostream> // NOLINT
#include "./../kopsik_api.h"
#include "./../kopsik_api_private.h"
#include "./test_data.h"
#include "./../settings.h"
#include "./../proxy.h"
#include "Poco/FileStream.h"
#incl... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "ba... |
<commit_before>/*
* (C) 2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_BCRYPT)
#include <botan/bcrypt.h>
#endif
#if defined(BOTAN_HAS_PASSHASH9)
#include <botan/passhash9.h>
#endif
namespace Botan_Tests {
namespace {
... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_ASSEMLBER_LOCAL_CODIM1_HH
#define DUNE_GDT_ASSEMLBER_LOCAL_CODIM1_HH
#i... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://open... |
<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 "inputEvent.hpp"
#include "game.hpp"
#include "ws.hpp" // IWsConnection::send
#include "outputEvent.hpp" // BytesOut
#include <iostream>
#include <locale>
#include <codecvt>
struct BytesIn {
const char *s;
size_t len;
size_t pos;
uint8_t getByte()
{ if(pos == len) throw 0;
retur... |
<commit_before>
// define before any includes
#define BOOST_SPIRIT_THREADSAFE
#include <dirent.h>
#include <syslog.h>
#include <sys/stat.h>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cassert>
#include <strings.h>
#include <algorithm>
#include <exception>
#includ... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Manasij Mukherjee <manasij7479@gmail.com>
// author: Vassil Vassilev <vvasilev@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the Uni... |
<commit_before>#include <cstdint>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <tuple>
#include <vector>
#include <openssl/sha.h>
#include <ecdsa/base58.h>
#include <ecdsa/key.h>
#include "args.h"
#include "btcaddr.h"
#include "btcwif.h"
#define BUFF_SIZE ... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "ExecutionContext.h"
#include... |
<commit_before>#ifdef TEST
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <unistd.h>
#include <cstdlib>
#include "test_helpers/bart_test_helper.h"
#endif
//#include "aqdata/aq_base.h"
int main(int argc, char* argv[]) {
#ifdef TEST
// Parse optional arguments
int c;
while ((c = getopt (argc, argv, ... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <istream>
#include <string>
#include <vector>
#include "../include/sha512.h"
int menu1(std::vector<std::string>&, int&);
void menuSelectAlias(std::vector<std::string>&, int&, int&, int&);
void menuExit(int&);
void menuMakeItem(std::vector<std::string>&, i... |
<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>/* Copyright © 2001-2018, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open public ... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>#include <iostream>
#include "cons.h"
#include "eval.h"
#include "reader.h"
namespace
{
class Repl
{
std::istream& in_;
std::ostream& out_;
std::string prompt_ = "mclisp> ";
mclisp::Reader reader_;
public:
explicit Repl(std::istream& in=std::cin, std::ostream& out=std::cout):
in_(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.