text stringlengths 54 60.6k |
|---|
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "IndexWri... |
<commit_before>/**
* HAL
*
* Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#include "HAL/JSFunction.hpp"
#include "HAL/JSString.hpp"
#include "HAL/JSValue.hpp"
#includ... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// Hearthstone++ is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#ifndef ROSETTASTONE_TARGETING_HPP
#define ROS... |
<commit_before>/*
* Copyright 2012 Bram van der Kroef
*
* This file is part of LESS CSS Compiler.
*
* LESS CSS Compiler 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, o... |
<commit_before>/*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef LINE_PARSER_HXX
#define LINE_PARSER_HXX
#include "util/StringUtil.hxx"
#include "util/CharUtil.hxx"
#include <stdexcept>
class LineParser {
char *p;
public:
using Error = std::runtime_error;
explicit LineParser(char *_p):p(StripLe... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>#include "Platform/HardwareInfo.h"
#if INTRA_PLATFORM_OS==INTRA_PLATFORM_OS_Windows
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4668)
#endif
#include <Windows.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace... |
<commit_before>
/*
*
* Error Codes
* 1.x - Sql Errors
* 2.x - New MP
* 3.x - Open MP
*
*/
// 1. Need to check and see if an mp is already open, prior to creating a new one,
// so i can reload what was there and what view was there...
// 2. Need to replace openview with OpenWindow
#include "MainWindow.h"
... |
<commit_before>/**
** \file scheduler/job.hh
** \brief Definition of scheduler::Job.
*/
#ifndef SCHEDULER_JOB_HH
# define SCHEDULER_JOB_HH
# include <iosfwd>
# include <list>
# include <vector>
# include <libport/symbol.hh>
# include <libport/utime.hh>
# include "object/symbols.hh"
# include "object/urbi-excepti... |
<commit_before>/******************************************************************************
Copyright (c) 2012, Benno Grolik <fwxx@rocketmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- ... |
<commit_before>#include "MappedRead.h"
#include "Log.h"
//#include "Config.h"
#undef module_name
#define module_name "READ"
#ifdef INSTANCE_COUNTING
volatile int MappedRead::sInstanceCount = 0;
volatile int LocationScore::sInstanceCount = 0;
#endif
volatile int MappedRead::maxSeqCount = 0;
MappedRead::MappedRead(in... |
<commit_before>#include <Arduino.h>
#include "RemoteControl.h"
#include <IRLib.h>
IRrecv My_Receiver(7); // TODO: use whatPin
IRdecode My_Decoder;
RemoteControl::RemoteControl( int whatPin )
{
// initialize variables
pin = whatPin;
pin = 7; // TODO: fix
last_command = RemoteCommandNone;
My_Receiver.enab... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>
#include <libclientserver.h>
/**
* Init
*
* This should be called to intialize any base class member variables and state.
*
*/
void ClientBase::Init()
{
memset(&m_SoftTimeout, 0, sizeof(m_SoftTimeout));
memset(&m_HardTimeout, 0, sizeof(m_HardTimeout));
memset(&m_ReConnectTimeout, 0, sizeof(m_R... |
<commit_before>//Example to fit two histograms at the same time
//Author: Rene Brun
#include "TH2D.h"
#include "TF2.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "TRandom3.h"
#include "TVirtualFitter.h"
#include "TList.h"
#include <vector>
#include <map>
#include <iostream>
double gauss2D(double *x, double... |
<commit_before>#include "TimeManager.h"
#include "Logger.h"
#include "Helpers\Helpers.h"
namespace star
{
TimeManager::TimeManager()
#ifdef _WIN32
:mFrequency()
,mF1()
,mF2()
#else
:mF1(0)
,mF2(0)
,mElapsed(0)
#endif
,mDeltaMs(0)
,mDeltaS(0)
,mDeltauS(0)
,mTotalMS(0)
{
}
... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <cmath>
using namespace std;
double getNumberFromString(string& s) {
unsigned int i = 1;
double number;
while (i < s.size() && s[i] != ',') {
i++;
}
... |
<commit_before>//
// ZX80O.cpp
// Clock Signal
//
// Created by Thomas Harte on 04/06/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#include "ZX80O.hpp"
using namespace Storage::Tape;
ZX80O::ZX80O(const char *file_name) :
Storage::FileHolder(file_name) {
// Files can be no longer than 16 kb
... |
<commit_before>/* Copyright (C) 2005-2007, Thorvald Natvig <thorvald@natvig.com>
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 co... |
<commit_before>#include <nan.h>
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <stdlib.h>
#include <stdio.h>
#include <poppler/qt4/poppler-form.h>
#include <poppler/qt4/poppler-qt4.h>
#include <cairo/cairo.h>
#include <cairo/cairo-pdf.h>
#include <QtCore/QBuffer>
#include <QtCore/QF... |
<commit_before>/****************************************************************************
** libebml : parse EBML files, see http://embl.sourceforge.net/
**
** <file/class description>
**
** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved.
**
** This file is part of libebml.
**
** This library is free sof... |
<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>/* -------------------------------------------------------------------------- *
* OpenSim: testMarkerData.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>// testConstrollers.cpp
// Author: Ajay Seth
/*
* Copyright (c) 2009, Stanford University. All rights reserved.
* Use of the OpenSim software in source form is permitted provided that the following
* conditions are met:
* 1. The software is used only for non-commercial research and education. I... |
<commit_before>#include <iostream>
#include <SDL2/SDL.h>
#include <GL/glew.h>
#include <GL/glu.h>
#include <SDL2/SDL_opengl.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Cube.h"
#include "Origin.h"
#include "Shader.h"
#include "ShaderManager.h"
using namespace std;
using glm::vec3;
us... |
<commit_before>#include <iostream>
#include <fcntl.h>
#include <vector>
#include <boost/asio/posix/stream_descriptor.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
namespace ba = boost::asio;
std::vector<char> data(4096);
void start_read( ba::posix::stream_descriptor &desc );
void read_handler( boost::sys... |
<commit_before>// $Id$
//
// Task to setup emcal related global objects.
//
// Author: C.Loizides
#include <TClonesArray.h>
#include <TGeoGlobalMagField.h>
#include <TGeoManager.h>
#include "AliAODEvent.h"
#include "AliAnalysisManager.h"
#include "AliCDBManager.h"
#include "AliEMCALGeometry.h"
#include "AliESDEvent.h"... |
<commit_before>#include "RubyObject.h"
#include "common.h"
#include <vector>
#include <iostream>
using namespace std;
using namespace v8;
VALUE trueArg = Qtrue;
RubyObject::TplMap RubyObject::s_functionTemplates;
Local<Function> RubyObject::GetClass(VALUE klass)
{
HandleScope scope;
Persistent<FunctionTempla... |
<commit_before>#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <unistd.h>
#include <sys/time.h>
#include <time.h>
#include <omp.h>
#include "readjpeg.h"
void normalize( float * kernel ) {
int sum = 0;
for (int i = 0; i < 25; i++ ) {
sum += kernel[i];
}
for (int i = 0; i ... |
<commit_before>#include "./include/bot.hpp"
#include "./include/packet.hpp"
#include "./include/server.hpp"
#include <thread>
#include <mutex>
namespace IRC {
Bot::Bot(const std::string& n, const std::string& pass, const std::vector<std::string>& _admins)
: nick(n) , password(pass),
start_time(std::chrono::sy... |
<commit_before>#include "TpObserver.h"
TpObserver::TpObserver (const ChannelClassList &channelFilter,
QObject *parent )
: AbstractClientObserver(channelFilter)
, IObserver (parent)
, id(1) // Always ignore
{
}//TpObserver::TpObserver
void
TpObserver::setId (int i)
{
id... |
<commit_before>/*
Copyright (c) Aleksey Fedotov
MIT license
*/
#include "Common/FileSystem.h"
#include "Common/Image.h"
#include "Common/OpenGLWindow.h"
#include "Common/OpenGL.h"
#include "Common/Camera.h"
#include "Common/Spectator.h"
#include <SDL.h>
#include <GL/glew.h>
#include <cassert>
#in... |
<commit_before>// Copyright (C) 2016 xaizek <xaizek@openmailbox.org>
//
// This file is part of uncov.
//
// uncov is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
/... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All right... |
<commit_before>// Scintilla source code edit control
/** @file LineMarker.cxx
** Defines the look of a line marker in the margin .
**/
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <string.h>
#incl... |
<commit_before>#include "MSA_Stream.hpp"
#include "file_io.hpp"
static void read_chunk( MSA_Stream::file_type::pointer fptr,
const size_t number,
MSA_Stream::container_type& prefetch_buffer,
const size_t max_read,
size_t&... |
<commit_before>#include "MainWindow.hpp"
#include "ui_MainWindow.h"
#include <algorithm>
#include <unordered_set>
#include <QProgressBar>
#include <QLabel>
#include <QSystemTrayIcon>
#include <QMessageBox>
#include <QDebug>
#include "matrix/Room.hpp"
#include "matrix/Session.hpp"
#include "sort.hpp"
#include "RoomV... |
<commit_before>#include "Mandelbrot.h"
Mandelbrot::Mandelbrot()
{
}
void Mandelbrot::Update(short *vals) const
{
int step = parallel_height / thread::hardware_concurrency();
vector<thread> threads;
for (int i = 0; i < parallel_height; i += step)
threads.push_back(thread(&Mandelbrot::Slice, *this,... |
<commit_before>// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "allocators.h"
#ifdef WIN32
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x050... |
<commit_before>#include <float.h>
#include <QDateTime>
#include <QDebug>
#include "amqp_frame.h"
#include "amqp_table.h"
using namespace QAMQP;
/*
* field value types according to: https://www.rabbitmq.com/amqp-0-9-1-errata.html
t - Boolean
b - Signed 8-bit
Unsigned 8-bit
s - Signed 16-bit
Unsigned 16-bit
I... |
<commit_before>/*******************************************************
* Copyright (c) 2014, 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>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
// TEST Foundation::Containers::Stack
// STATUS PRELIMINARY
#include "Stroika/Foundation/StroikaPreComp.h"
#include <iostream>
#include <sstream>
#include "Stroika/Foundation/Containers/Stack.h"
#include "Stroika/... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
// TEST Foundation::Execution::ThreadSafetyBuiltinObject
#include "Stroika/Foundation/StroikaPreComp.h"
#include <mutex>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Containe... |
<commit_before>/*
* Copyright(c) Sophist Solutions Inc. 1990-2014. All rights reserved
*/
// TEST Foundation::Memory
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Containers/Mapping.h"
#include "Stroika/Foundation/Debug/Assertions.h"
#include "Stroika/Foundation/Debug/T... |
<commit_before>#include "MoveSystem.h"
#include <iostream>
void MoveSystem::update(int currentStep)
{
const std::vector<int> &positionKeys = positionComponentList.uids();
const std::vector<int> &velocityKeys = velocityComponentList.uids();
for(int i = 0; i < positionKeys.size(); i++)
{
int uid = pos... |
<commit_before>#include "Moves/Move.h"
#include <cassert>
#include <cctype>
#include <string>
#include "Game/Board.h"
#include "Game/Square.h"
#include "Game/Game_Result.h"
#include "Game/Piece.h"
Move::Move(Square start, Square end) noexcept :
origin(start),
destination(end)
{
ass... |
<commit_before>// TimeFn.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
struct time {
int hour;
int minute;
int second;
};
class TimeClass {
private:
int _hour; // current hour of the day
int _minute; // current minu... |
<commit_before>/*
This source file is part of pairOculus, a student project aiming at creating a
simple 3D multiplayer game for the Oculus Rift.
Repository can be found here : https://github.com/Target6/pairOculus
Copyright (c) 2013 Target6
Permission is hereby granted, free of charge, to any person obtaining a cop... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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>// Copyright 2006-2009 the V8 project authors. 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
// n... |
<commit_before>//
// Created by volundr on 7/6/16.
//
#include "UartInterface.h"
namespace bno055 {
/**
* Opens communications with the UART device found at location 'deviceFile'
* This code was taken from the 'Using the UART' tutorial page found at
* http://www.raspberry-projects.com/pi/programmi... |
<commit_before>/*
* C++ UDP socket server for live image upstreaming
* Modified from http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/practical/UDPEchoServer.cpp
* Copyright (C) 2015
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... |
<commit_before>/*
Greesound
Copyright (C) 2015 Grame
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Grame Centre national de création musicale
11, cours de Ve... |
<commit_before>/*
Copyright 2014 Justin White
See included LICENSE file for details.
*/
#define _ELPP_UNICODE
#define ELPP_NO_DEFAULT_LOG_FILE
#include <easylogging++.h>
INITIALIZE_EASYLOGGINGPP
#include <Game.h>
//system data
const int version = 0;
const int revision = 1;
const int width = 1280;
const int... |
<commit_before>#include <nds.h>
#include "./background.h"
#include "./debug.h"
namespace FMAW {
//------------------------------------------------------------------------------
// Background class.
//------------------------------------------------------------------------------
background_id Background::nextEmptyBa... |
<commit_before>// Time echo -e "1 1\n1 2\n2 3\n3 4\n4 5" |./bacon playedin.csv
// time echo -e "1 1\n1 2" |./bacon playedin.csv
/*
Some numbers:
Max ActorID: 1971696
NRows: 17316773-1
Max MovieID: 1151758
*/
#include <iostream>
#include <ios>
#include <fstream>
#include <vector>
#include <fcntl.h>
#include <unistd.h>... |
<commit_before>//Copyright (c) 2019 Ultimaker B.V.
#include "Statistics.h"
#include <sstream>
#include <fstream>
#include "utils/logoutput.h"
namespace arachne
{
void Statistics::analyse(Polygons& input, std::vector<std::vector<std::vector<ExtrusionJunction>>>& polygons_per_index, std::vector<std::vector<std::vec... |
<commit_before>#include "TGATexture.h"
#include <fstream>
#include <vector>
#include <algorithm>
// all possible image types
// described in TGA format specification
enum class tga_image_type : uint8_t
{
none = 0, // no image data
colormap = 1, // uncompressed, colormap
bgr = 2, // ... |
<commit_before>//Copyright (c) 2017 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "infill.h"
#include "LayerPlan.h"
#include "TopSurface.h"
namespace cura
{
TopSurface::TopSurface()
{
//Do nothing. Areas stays empty.
}
TopSurface::TopSurface(SliceMeshStorage& mesh, si... |
<commit_before>#include "UserKernel.h"
extern "C" {
#include "lua.h"
#include "utils.h"
#include "luaT.h"
}
#include "EasyCL.h"
#include "THClKernels.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
static std::string getTensorInfoClSrc();
enum ClKernelDirection {
input,
out... |
<commit_before>#include "bits2blocks.h"
#define MASK_5BIT 0x000001F
#define MASK_10BIT 0x00003FF
#define MASK_16BIT 0x000FFFF
#define MASK_26BIT 0x3FFFFFF
#define MASK_28BIT 0xFFFFFFF
#define MAX_ERR_LEN 3
namespace redsea {
namespace {
uint32_t rol10(uint32_t word, int k) {
uint32_t result = word;
uint32_t l... |
<commit_before>/*
Author: Anfego
Date: 04/11/14
Class: CSCI 6430
Professor: Dr. Buttler
University: MTSU
Desciption:
This program is an implementation of a MPI tupple space
Support for:
PP_Init()
PP_Put()
PP_Get()
PP_Reserve()
PP_Finalize()
*/
#include <vector> // stack
#include <utility>
#... |
<commit_before>/*
* Access logging.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef BENG_PROXY_ACCESS_LOG_HXX
#define BENG_PROXY_ACCESS_LOG_HXX
#include <http/status.h>
#include <stdint.h>
struct http_server_request;
#ifndef NO_ACCESS_LOG
#include <daemon/log.h>
#endif
#ifdef NO_ACCESS_LOG
static inlin... |
<commit_before>#include "journal.h"
#include "qif.h"
#include "datetime.h"
#include "error.h"
#include "util.h"
#include <cstring>
#include <memory>
namespace ledger {
#define MAX_LINE 1024
static char line[MAX_LINE + 1];
static std::string path;
static unsigned int linenum;
static inline char * get_line(... |
<commit_before>/// \file annotation.hpp
/// utilities for working with Struct-formatted annotations on Protobuf objects
#ifndef VG_ANNOTATION_HPP_INCLUDED
#define VG_ANNOTATION_HPP_INCLUDED
#include <vector>
#include <string>
#include <type_traits>
#include <google/protobuf/struct.pb.h>
namespace vg {
using names... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by t... |
<commit_before>// Copyright (C) 2014 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
//// This library is free software; you can redistribute it and/or
//// modify it under the terms of the GNU Lesser General Public
//// License version 2.1 as published by the Free Software Foundation.
////
... |
<commit_before>/* Copyright (c) 2017 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, ... |
<commit_before>// Copyright (c) 2017, Franz Hollerer.
// SPDX-License-Identifier: MIT
#include <iostream>
#include <catch/catch.hpp>
#include <hodea/core/cstdint.hpp>
#include <hodea/core/cpu_endian.hpp>
using namespace hodea;
TEST_CASE("Cpu endian: is_cpu_le()", "[is_cpu_le]")
{
REQUIRE(is_cpu_le() == HONDEA_IS... |
<commit_before>#include <config.h>
// dune-multiscale
// Copyright Holders: Patrick Henning, Rene Milk
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "localoperator.hh"
#include <assert.h>
#include <boost/assert.hpp>
#include <dune/common/exceptions.hh>
#include <dune/multisca... |
<commit_before>//==============================================================================
// Single cell simulation view information solvers widget
//==============================================================================
#include "cellmlfileruntime.h"
#include "cellmlfilevariable.h"
#include "singl... |
<commit_before>/*
This file is part of KMail.
Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
vers... |
<commit_before>/***************************************************************************
* *
* Copyright (C) 2007-2013 by Johan De Taeye, frePPLe bvba *
* ... |
<commit_before>// Copyright 2011 the V8 project authors. 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>//Author: Eddy Offermann
// This macro shows several ways to invert a matrix . Each method
// is a trade-off between accuracy of the inversion and speed.
// Which method to chose depends on "how well-behaved" the matrix is.
// This is best checked through a call to Condition(), available in each
// dec... |
<commit_before>// Copyright (C) 2010, Vaclav Haisman. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modifica-
// tion, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright no... |
<commit_before>/*
qgpgmekeyformailboxjob.cpp
This file is part of qgpgme, the Qt API binding for gpgme
Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik
Software engineering by Intevation GmbH
QGpgME is free software; you can redistribute it and/or
modify it under the t... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: document.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2008-02-26 14:48:32 $
*
* The Contents of this file are mad... |
<commit_before>/*
* Ascent MMORPG Server
* Copyright (C) 2005-2008 Ascent Team <http://www.ascentemu.com/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the ... |
<commit_before>#include <QtWidgets>
#include "GeometryWidget.hpp"
#include <Spirit/Geometry.h>
GeometryWidget::GeometryWidget(std::shared_ptr<State> state, SpinWidget * spinWidget)
{
this->state = state;
this->spinWidget = spinWidget;
// Setup User Interface
this->setupUi(this);
// We use a regular expressi... |
<commit_before>/*
Copyright (c) 2017 Maxim Teryokhin
This code is licensed under MIT. See LICENSE file for more details.
*/
#include <algorithm>
#include <fstream>
#include <iostream>
#include <iterator>
#include <set>
#include <map>
#include <string>
#include <vector>
using namespace std;
struct Flowerbed {... |
<commit_before>#include "TEnum.h"
#include "TInterpreter.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <type_traits>
TEST(TEnum, UnderlyingType)
{
gInterpreter->Declare(R"CODE(
enum E0 { kE0One };
enum E1 { kE1One = LONG_MAX };
enum E2 { kE2One = ULONG_MAX };
enum E3: char { kE3One };
enum Eb: bo... |
<commit_before>#include <cmath>
#include "unit-tests-common.h"
#include <librealsense2/hpp/rs_types.hpp>
#include <librealsense2/hpp/rs_frame.hpp>
#include <iostream>
#include <chrono>
#include <ctime>
#include <algorithm>
#include <librealsense2/rsutil.h>
#include <sys/wait.h>
#include <semaphore.h>
#includ... |
<commit_before>#include "tileWorker.h"
#include "platform.h"
#include "data/dataSource.h"
#include "tile/tile.h"
#include "view/view.h"
#include "scene/scene.h"
#include "tile/tileID.h"
#include "tile/tileTask.h"
#include "tile/tileBuilder.h"
#include "tangram.h"
#include <algorithm>
#define WORKER_NICENESS 10
name... |
<commit_before>// Copyright 2011-12 Bifrost Entertainment. All rights reserved.
#include "Common/Data.h"
#include "Common/RainbowAssert.h"
#ifdef RAINBOW_IOS
void Data::free(const void *const) { /* This is not needed */ }
const char* Data::get_path(const char *const file)
{
if (!file)
return [[[NSBundle mainBund... |
<commit_before>#include <Bindings/Bindings.hpp>
#include <Scene/Scene.hpp>
#include <Script/GameObject.hpp>
#include <Script/GlobalState.hpp>
#include <Script/ViliLuaBridge.hpp>
#include <System/Loaders.hpp>
#include <Transform/Units.hpp>
#include <Transform/UnitVector.hpp>
#include <Triggers/Trigger.hpp>
#include <Tri... |
<commit_before>#include "config.h"
#ifdef CONFIG_TASKBAR
#include "ylib.h"
#include "aworkspaces.h"
#include "wmtaskbar.h"
#include "prefs.h"
#include "wmmgr.h"
#include "wmapp.h"
#include "wmframe.h"
#include "yrect.h"
#include "yicon.h"
#include "intl.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
... |
<commit_before>#ifndef STREAMS_HH
#define STREAMS_HH
#include <stddef.h>
#include <stdlib.h>
#include "Queue.hh"
class FormatBase
{
public:
enum class Base: uint8_t
{
// bcd = 0,
bin = 2,
oct = 8,
dec = 10,
hex = 16
};
FormatBase(): _width(6), _precision(4), _base(Base::dec) {}
inline void width(int... |
<commit_before>/** \file control_number_filter.cc
* \brief A tool for filtering MARC-21 data sets based on patterns for control numbers.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2015-2017, Library of the University of Tübingen
This program is free software: you can redistribute it and... |
<commit_before>#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <glut.h>
int stage=1;//시작화면, 게임화면, 종료화면으로 나눔
int board[3][3]; // board for gameplay
int turn; // current move
int result; // Result of the game
bool over; // Is the game Over?
/*
Sets the boa... |
<commit_before>//+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// TObject to hold V0 configuration + results histogram
//+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#include "TList.h"
#include "TH3F.h"
#include "AliV0Result.h"
#include <iostream>
#include <TROOT.h>
using n... |
<commit_before>/******************************************************************************
* Birthstone is a programming language and interpreter written by *
* Robb Tolliver for his Senior Project at BYU-Idaho (Fall 2010). *
* ... |
<commit_before>#include <chrono>
#include <iostream>
#include "image.h"
using namespace AhoViewer::Booru;
#include "browser.h"
Image::Image(const std::string &path, const std::string &url,
const std::string &thumbPath, const std::string &thumbUrl,
const std::string &postUrl,
st... |
<commit_before>#include "bufferAgent.h"
#include "helpers/storageHelperFactory.h"
#include "glog/logging.h"
using boost::shared_ptr;
using boost::thread;
using boost::bind;
using std::string;
namespace veil {
namespace helpers {
BufferAgent::BufferAgent(write_fun w, read_fun r)
: m_agentActive(false),
doWrite... |
<commit_before>/*
Part of Scallop Transcript Assembler
(c) 2017 by Mingfu Shao, Carl Kingsford, and Carnegie Mellon University.
See LICENSE for licensing.
*/
#include <cassert>
#include <cstdio>
#include <cmath>
#include "bundle_base.h"
bundle_base::bundle_base()
{
tid = -1;
chrm = "";
lpos = INT32_MAX;
rpos = ... |
<commit_before>
/***************************************************************************
jabberaccountwidget.h - Account widget for Jabber
-------------------
begin : Mon Dec 9 2002
copyright : (C) 2002-2003 by Till Gerken <till@tan... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: request.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:53:51 $
*
* The Contents of this file are made a... |
<commit_before>/*
* Run a CGI script.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "cgi_launch.hxx"
#include "cgi_address.hxx"
#include "istream.h"
#include "fork.h"
#include "strutil.h"
#include "strmap.h"
#include "sigutil.h"
#include "product.h"
#include "exec.hxx"
#include <daemon/log.h>
#include <... |
<commit_before>// Copyright 2010-2011 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
<commit_before>// Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, Universi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.