text stringlengths 54 60.6k |
|---|
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>#include <cstdint>
#include <iostream>
#include <utility>
#include <algorithm.hpp>
#include <case.hpp>
#include <cube.hpp>
#include <finder/brute-force.hpp>
#include "utils.hpp"
using namespace std;
using namespace InsertionFinder;
using namespace Details;
namespace {
bool not_searched(
con... |
<commit_before>#include "generator/LLBkg_Generator.h"
// from ROOT
#include "TRandom.h"
// from project - generator
#include "generator/CompGeneratorFactory.h"
#include "generator/generator.h"
#include "generator/Observables.h"
// from project - configuration
#include "configuration/CompConfig.h"
namespace cptoymc ... |
<commit_before>/***********************************************************************************************************************
* Copyright (C) 2016 Andrew Zonenberg and contributors *
* ... |
<commit_before>/*****************************************************************************
* *
* Copyright (c) 2013-2016 Boris Pek <tehnick-8@mail.ru> *
* ... |
<commit_before>#include "image/registration/linear.h"
namespace MR
{
namespace Image
{
namespace Registration
{
using namespace App;
const char* initialisation_choices[] = { "mass", "geometric", "none", NULL };
const OptionGroup rigid_options =
OptionGroup ("Rigid registration ... |
<commit_before>/*
The MIT License (MIT)
Copyright (c):
2014 Graeme Hill (http://graemehill.ca)
2016 deipi.com LLC and contributors
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 restri... |
<commit_before>// hdf5_back.cc
#include "hdf5_back.h"
#include <cmath>
#include <string.h>
#include "blob.h"
#define STR_SIZE 16
namespace cyclus {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hdf5Back::Hdf5Back(std::string path) : path_(path) {
file_ = H5Fcreate(path_.c_str(), H5F_AC... |
<commit_before>#include "ctvm.h"
BoostDoubleMatrix tval3_reconstruction(BoostDoubleMatrix Sinogram,
BoostDoubleVector TiltAngles){
/*
Function: tval3_reconstruction
------------------------------
Perform two-dimensional TVAL3 tomographic reconstruction given a
se... |
<commit_before>/******************************************************************************
This source file is part of the OpenQube project.
Copyright 2008-2010 Marcus D. Hanwell
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in wr... |
<commit_before>#include "stdafx.h"
#include "bbudf.h"
#include "curl.h"
#include "logger.h"
namespace curl {
//TODO http://www.openssl.org/docs/crypto/threads.html#DESCRIPTION
__thread CURL* ch=NULL;
__thread long curl_response_code=0;
int curl_global_init_called=0;
size_t readfunction_blob( char *ptr, size_t siz... |
<commit_before>
#include "data.h"
Data::Data(){
_initial_cellnumber=100;
_max_prolif_types=10;
_max_immune_types=10;
}
Data::Data(const Data& other){
_initial_cellnumber=other.return_initial_cellnumber();
_max_prolif_types=other.return_max_prolif_types();
_max_immune_types=other.return_max_imm... |
<commit_before>/*
* deck.cpp
*
* Created on: Mar 13, 2016
* Author: Tumblr
*/
#include <iostream>
#include <sstream>
#include <algorithm>
#include "deck.h"
#include "stdlib.h"
using namespace std;
Deck::Deck()
:deckName{ "Test" },
count{ new size_t(0) } {
// TODO Auto-generated constructor stuff
well... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software 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 "platform/local_country_file_utils.hpp"
#include "platform/platform.hpp"
#include "coding/file_name_utils.hpp"
#include "coding/file_writer.hpp"
#include "base/string_utils.hpp"
#include "base/logging.hpp"
#include "std/algorithm.hpp"
#include "std/cctype.hpp"
namespace platform
{
namespace
{
... |
<commit_before>/*
* Copyright 2008-2010 Arsen Chaloyan
*
* 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 appli... |
<commit_before>#include <errno.h> // errno
#include <pthread.h>
#include <stdio.h> // TODO - Remove
#include <string.h> // strerror
#include <sys/epoll.h>
#include <unistd.h>
#include <map>
#include <list>
#include <uv.h>
#include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
#include <nan.h>
#include "epol... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstring>
using namespace std;
int main(int argc, char* argv[]){
bool isOn = true; //Keeps track of whether rshell is still running
string us... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <unistd.h>
#include <cstring>
#include <stdio.h>
#include <cstdlib>
using namespace std;
//this function splits string into separate words and places into an array
char* splitter(char* input)
{
char * result;//resulting storage array
... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/* © 2010 David Given.
* LBW is licensed under the MIT open source license. See the COPYING
* file in this distribution for the full text.
*/
#include "globals.h"
#include "exec/ElfLoader.h"
#include "filesystem/FD.h"
#include "filesystem/VFS.h"
#include "filesystem/InterixVFSNode.h"
enum... |
<commit_before>#include "features.h"
#include <fstream>
// Variables for features computation
#define HIST_SIZE 100
size_t reconstructHashcode(const float *array)
{
float castValue; // Avoid warning errors (cast a const)
castValue = array[0];
unsigned int leastSignificantBits = reinterpret_cast<unsigned ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>//////////////////////////////////////////////////////////////////////////////////////////////
// header_normalize::
//
// ATS plugin to convert headers into camel-case. It may be useful to solve
// interworking issues with legacy origins not supporting lower case headers
// required by protocols such as... |
<commit_before>/*
Copyright (c) 2003, Magnus Jonsson & 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, t... |
<commit_before>/*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>extern "C" {
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <errno.h>
}
#include <cstring>
#include <ios>
#include <auss.hpp>
#include "i3ipc++/ipc-util.hpp"
namespace i3ipc {
static std::string format_errno... |
<commit_before>/* Source file for the R3 surfel object property class */
////////////////////////////////////////////////////////////////////////
// INCLUDE FILES
////////////////////////////////////////////////////////////////////////
#include "R3Surfels.h"
//////////////////////////////////////////////////////... |
<commit_before>#include <fstream>
#include <iostream>
#include <limits>
#include <string>
#include <sstream>
#include <vector>
#include "janus_io.h"
using namespace std;
// These functions have no external dependencies
vector<string> split(const string &str, char delim)
{
vector<string> elems;
stringstream ... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "Call.hpp"
#include <map>
using std::multimap;
using std::pair;
bool Call::completesBefore(const Call & call) const {
return pid == call.pid && index < call.index
&& envelope.completesBefore(call.envelope);
}
bool Call::hasAncestor... |
<commit_before>/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full r... |
<commit_before>#include "geocoder.h"
#include <sstream>
#include <deque>
#include <set>
#include <iostream>
#include <algorithm>
using namespace GeoNLP;
Geocoder::Geocoder()
{
}
std::string Geocoder::name_primary(const std::string &dname)
{
return dname + "/geonlp-primary.sqlite";
}
std::string Geocoder::name_no... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt ... |
<commit_before>#include <iostream>
#include <vector>
#include <thread>
#include <string>
#include <sstream>
#include <utility>
#include <type_traits>
#include <boost/variant.hpp>
#include <boost/timer/timer.hpp>
#include "variant.hpp"
namespace test {
template <typename T>
struct string_to_number {};
template <>
str... |
<commit_before>#include "game.h"
#include "git_versioning.h"
#include <iostream>
using std::cout;
using std::endl;
// in binding.cpp
void register_all_classes( lua_State* L );
// in colortext.cpp
void test_colored_text( ALLEGRO_FONT* font );
void Game::initialiseAllegro()
{
al_init();
al_install_mouse();
... |
<commit_before>#include <ncurses.h>
#include <string>
#include <random>
#include "game.h"
#include "menu.h"
#include "classes/Player.h"
#include "classes/Enemy.h"
#include "classes/InfoPanel.h"
using namespace std;
InfoPanel *infoPanel_game = new InfoPanel();
Player player;
Enemy enemy;
rect game_area;
void sta... |
<commit_before>/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker 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, ... |
<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 "psqlwrapper.h"
#include <QDebug>
#include <QSqlError>
#include <QSqlQuery>
#include <QVariant>
PsqlWrapper::PsqlWrapper(QSqlDatabase *db)
: QObject(NULL) {
m_db = db;
}
SqlWrapper::WrapperFeatures PsqlWrapper::features() {
return Schemas;
}
SqlWrapper* PsqlWrapper::newInstance(QSqlDat... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#include "flint/tr.h"
#include "cli.pb.h"
#include "system.h"
#define BOOST_TEST_MODULE test_translate
#include "test.h"
struct F : public test::TemporaryWorkingDirectory {
std::unique_ptr<cli... |
<commit_before>{
//
// To see the output of this macro, click begin_html <a href="gif/shapes.gif" >here</a> end_html
//
gROOT->Reset();
c1 = new TCanvas("c1","Geometry Shapes",200,10,700,500);
// Define some volumes
brik = new TBRIK("BRIK","BRIK","void",200,150,150);
trd1 = new TTRD1("TRD1","T... |
<commit_before>/*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity ... |
<commit_before>#include "sys/rand.hpp"
// #include "client/ui/menu.hpp"
#include "game/ld22/screen.hpp"
#include "client/opengl.hpp"
#include "client/ui/event.hpp"
#include "client/ui/window.hpp"
#include "client/keyboard/keycode.h"
#include "client/keyboard/keytable.h"
#include "sys/path_posix.hpp"
#include <gtk/gtk.h... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
int main(int argc, char **argv) {
string imgadr;
string guiWindowName = "Select Target Region";
if (argc > 1) {
imgadr = argv[1];
} ... |
<commit_before>#include <QApplication>
#include <QFontDatabase>
#include <QtGlobal>
#include <QFile>
#include "neovimconnector.h"
#include "mainwindow.h"
/**
* A log handler for Qt messages, all messages are dumped into the file
* passed via the NEOVIM_QT_LOG variable. Some information is only available
* in debug ... |
<commit_before><commit_msg>fixed autocomplete crash - fixes #1133<commit_after><|endoftext|> |
<commit_before>/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 3.1.2
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 201... |
<commit_before>/*
* Copyright 2016 Christian Lockley
*
* 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 applic... |
<commit_before>/*
* Copyright (c) 2009, Piotr Korzuszek
* 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>#include "oddlib/compressiontype3ae.hpp"
#include "oddlib/stream.hpp"
#include "logger.hpp"
#include <vector>
#include <cassert>
static Uint16 ReadUint16(Oddlib::IStream& stream)
{
Uint16 ret = 0;
stream.ReadUInt16(ret);
return ret;
}
static Uint32 ReadUint32(Oddlib::IStream& stream)
{
... |
<commit_before>// These file is designed to have no dependencies outside the C++ Standard Library
#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <string>
#include <sstream>
#include <vector>
#include "janus_io.h"
using namespace std;
#define ENUM_CASE(X) case JANUS_##X: return #X;
#... |
<commit_before>#include <fstream>
#include <iostream>
#include <limits>
#include <string>
#include <sstream>
#include <vector>
#include "janus_io.h"
using namespace std;
// These functions have no external dependencies
vector<string> split(const string &str, char delim)
{
vector<string> elems;
stringstream ... |
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved.
#include <libj/js_array.h>
#include <libj/detail/js_array.h>
namespace libj {
JsArray::Ptr JsArray::create() {
return Ptr(new detail::JsArray<JsArray>());
}
JsArray::Ptr JsArray::create(ArrayList::CPtr list) {
if (!list) return null();
... |
<commit_before>#pragma once
#include <karl/karl.hpp>
#include <karl/config.hpp>
#include <karl/api/api_server.hpp>
#include <supermarx/api/session_operations.hpp>
#include <boost/program_options.hpp>
namespace supermarx
{
class cli
{
private:
struct cli_options
{
std::string config;
bool no_perms;
std::str... |
<commit_before>/*
* Copyright 2009 Free Software Foundation, Inc.
* Copyright 2010 Kestrel Signal Processing, Inc.
*
* SPDX-License-Identifier: AGPL-3.0+
*
* This software is distributed under the terms of the GNU Affero Public License.
* See the COPYING file in the main directory for details.
*
* This use of this soft... |
<commit_before>#include "launcher.hpp"
#include <dirent.h>
#include <errno.h>
#include <libgen.h>
#include <stdlib.h>
#include <pwd.h>
#include <iostream>
#include <sstream>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <boost/lexical_cast.hpp>
#include "foreach.hpp"
using std::cerr;... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// hash_join_test.cpp
//
// Identification: tests/executor/hash_join_test.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===---------------------------... |
<commit_before>#include "basewindow.hpp"
#include "singletons/settingsmanager.hpp"
#include "util/nativeeventhelper.hpp"
#include "widgets/tooltipwidget.hpp"
#include <QApplication>
#include <QDebug>
#include <QIcon>
#ifdef USEWINSDK
#include <dwmapi.h>
#include <gdiplus.h>
#include <objidl.h>
#include... |
<commit_before>#include "win_window_capture.h"
WinWindowCapture::WinWindowCapture(const string& windowName)
:name(windowName)
{
}
HWND WinWindowCapture::FindHWND() {
return FindWindowA(NULL, "Hearthstone");
}
RECT WinWindowCapture::GetRect() {
RECT rect = { 0 };
if(HWND hwnd = FindHWND()) {
GetClientRect... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>#include "../stdafx.h"
#include "signer.h"
void Signer::setCertificate(Handle<Certificate> cert){
LOGGER_FN();
LOGGER_OPENSSL("CMS_SignerInfo_cert_cmp");
if (CMS_SignerInfo_cert_cmp(this->internal(), cert->internal()) != 0){
THROW_EXCEPTION(0, Signer, NULL, "Certificate has differents with Signer... |
<commit_before>/* Copyright 2013 Roman Kurbatov
*
* 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 la... |
<commit_before>/*
Copyright (C) 2012 Alexander Overvoorde
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, modi... |
<commit_before>#include "FilterDockWidget.h"
#include "Settings.h"
#include <QCheckBox>
#include <QFileInfo>
#include <QFileDialog>
#include <QInputDialog>
FilterDockWidget::FilterDockWidget(QWidget *parent)
: QDockWidget(parent)
, ui_()
{
ui_.setupUi(this);
connect(ui_.maf, SIGNAL(valueChanged(double)), this, SI... |
<commit_before>/**
* Copyright (C) 2011 Trever Fischer <tdfischer@fedoraproject.org>
*
* This program 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 2
* of the License, or (at your... |
<commit_before>#pragma once
/**
@file
@brief generic function for each N
@author MITSUNARI Shigeo(@herumi)
@license modified new BSD license
http://opensource.org/licenses/BSD-3-Clause
*/
#include <mcl/op.hpp>
#include <mcl/util.hpp>
#include <cybozu/bit_operation.hpp>
#ifdef _MSC_VER
#pragma warning(push)
#pra... |
<commit_before>/****************************************************************************
*
* This file is part of the QtMediaHub project on http://www.gitorious.org.
*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).*
* All rights reserved.
*
* Contact: Nokia Corporation (qt-info@nokia.co... |
<commit_before>/*
Copyright (C) 2008-2016 The Communi Project
You may use this file under the terms of BSD license as follows:
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 mus... |
<commit_before>/*
*/
#include "opcn2-library.h"
#define CS A2
OPCN2 alpha(CS);
void setup(){
Serial.begin(9600);
Serial.print("Testing OPC-N2 v");
Serial.println(alpha.firmware_version);
delay(1000);
alpha.on();
}
void loop(){
delay(3000);
histogram_data = alpha.histogram();
Seri... |
<commit_before><commit_msg>BSPFilter now correctly sets a margin based on partition width.<commit_after><|endoftext|> |
<commit_before>#include "ast.hpp"
#include "syntax.hpp"
namespace slip {
namespace ast {
struct repr_visitor {
template<class T>
sexpr operator()(const literal<T>& self) const {
return self.value;
}
sexpr operator()(const literal<string>& self) const {
return m... |
<commit_before>#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "disasm.h"
#include "dis_tables.h"
/* ******************** */
// INSTRUCTION PREFIXES //
/* ******************** */
static const unsigned char instruction_has_modrm[512] = {
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* ... |
<commit_before>#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb/stb_image_write.h"
#include <array>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
typed... |
<commit_before>#include <map>
#include <phosphor-logging/elog-errors.hpp>
#include "xyz/openbmc_project/Common/error.hpp"
#include "read_fru_data.hpp"
#include "fruread.hpp"
#include "host-ipmid/ipmid-api.h"
#include "utils.hpp"
extern const FruMap frus;
namespace ipmi
{
namespace fru
{
using namespace phosphor::loggi... |
<commit_before>/**
* @file mainpage.hpp
* @brief File containing only documentation (for the Doxygen mainpage)
* @author Freek Stulp
*/
/** Namespace used for all classes in the project.
*/
namespace DmpBBO {
}
/** \mainpage
\section sec_cui_bono What the doxygen documentation is for
This is the doxygen docu... |
<commit_before>/*
*
* Copyright 2015-2016, 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... |
<commit_before>#include "base.h"
///////////////////////////////////////////////////////////////////////////////
// Google Test
#include "gtest/gtest.h"
TEST(TStr, Constructors) {
TStr Default;
TStr CStr("abc");
TStr OneChar('a');
TStr CopyCStr(CStr);
TStr Move(TStr("abc"));
TStr ChA(TChA("abc"));
TStr SStr(T... |
<commit_before>/*
* Copyright (c) 2006 The Regents of The University of Michigan
* 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 copyri... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: evntpost.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2006-09-17 12:14:02 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: atkbridge.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2006-05-05 10:53:26 $
*
* The Contents of this file are made... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2020 urShadow
*
* 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 r... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file param.cpp
\author Урусов Андрей (rdo@rk9.bmstu.ru)
\date 09.01.2011
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
#include "simulator/compiler/parser/pch.h"
// ------------... |
<commit_before>#include "Compiler.h"
#include <fstream>
#include <cstring>
using namespace std;
using namespace compiler;
void print_help(char *program_name)
{
cout << "Usage: " << program_name << " [options] <inputs>" << endl;
cout << "Options:" << endl;
cout << " --help -h Show available ... |
<commit_before>/*
Copyright (c) 2016 Jakob Sinclair
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, modify, merge, publis... |
<commit_before>/*
*
* Copyright 2019 gRPC 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 applicab... |
<commit_before>/************************************
* file enc : ASCII
* author : wuyanyi09@gmail.com
************************************/
#ifndef CPPJIEBA_TRIE_H
#define CPPJIEBA_TRIE_H
#include <iostream>
#include <fstream>
#include <map>
#include <cstring>
#include <stdint.h>
#include <cmath>
#include <limit... |
<commit_before>#include "rsa-crypt-lib.hh"
#include <gmpxx.h>
#include <vector>
#include <iostream>
#include <tuple> // std::tuple
#include <algorithm> // std::min
#include <dgcrypto/dgcrypto.hh>
// to use 'random' is there more specific header?
// I meant #include <random> for std::random_device
// #include... |
<commit_before>#include <QCoreApplication>
#include <QFileInfo>
#include "TumorOnlyReportWorker.h"
#include "QCCollection.h"
#include "Exceptions.h"
#include "Statistics.h"
#include "LoginManager.h"
#include "RtfDocument.h"
TumorOnlyReportWorker::TumorOnlyReportWorker(const VariantList& variants, const TumorOnlyReport... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm 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://ww... |
<commit_before>#include "Util.h"
#include "Introspection.h"
#include "Debug.h"
#include "Error.h"
#include <sstream>
#include <map>
namespace Halide {
namespace Internal {
using std::string;
using std::vector;
using std::ostringstream;
using std::map;
string unique_name(char prefix) {
// arrays with static stora... |
<commit_before>#include <iostream>
#include <thread>
#include "plugins/lirch_plugin.h"
#include "plugins/edict_messages.h"
using namespace std;
void send_input(plugin_pipe p)
{
string line;
while (getline(cin, line))
{
//I can't use the regular constructor since that assumes the
//locale is ASCII
QString q=... |
<commit_before>// OpenLieroX
// Main entry point
// Created 28/6/02
// Jason Boettcher
#include "defs.h"
#include "LieroX.h"
#include "Menu.h"
#include "console.h"
#ifdef WIN32
#include "crashrpt.h"
#pragma comment(lib, "./libs/crashrpt")
#endif
CClient *cClient = NULL;
CServer *cServer =... |
<commit_before>#include "common.h"
#include "Simulation.h"
#include "FullscreenQuad.h"
/** \file main.cpp
* Main source file.
* The source file that contains the main entry point and performs initialization and cleanup.
*/
/** GLFW window.
* The GLFW window.
*/
GLFWwindow *window = NULL;
/** Simulation class.
*... |
<commit_before>#include "object.h"
#include "engine.h"
#include "napi.h"
#ifdef NAPI_DEBUG
#include <iostream>
#endif
Napi::Object CreateObject(const Napi::CallbackInfo &info) {
const Napi::Env env = info.Env();
const Napi::Object config = info[0].As<Napi::Object>();
#ifdef NAPI_DEBUG
// show system size... |
<commit_before>#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <iostream>
#include <string>
using namespace std;
void terminal() {
char host[32];//add to readme: 32 cuz max is 64 and i dont want long printing
int pid;
string arg;
pid = gethostname(host, 32);
if(pid == -1) {
perror("gethost... |
<commit_before>
/*
Author(s):
Vincent Heins
Description:
This is the main file!?
I mean, i know this file is a BIT shitty but who cares...
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <string.h>
#include <stdio.h>
#include <curl/curl.h>
#include <mutex>
#include <thr... |
<commit_before>#include <cstdio>
#include "argcv/ir/index/analyzer/lexicon.hh"
#include "argcv/ir/index/analyzer/basic_tokenlizer.hh"
#include "argcv/ir/index/analyzer/basic_cn_analyzer.hh"
using namespace argcv::ir::index::analyzer;
void lexicon_sample() {
lexicon lex("data.ldb");
size_t sz = lex.load("../d... |
<commit_before>#include "Solver.hpp"
#include "ScreenCapture.hpp"
#include "Execute.hpp"
#include "SimulatedMouse.hpp"
#include <iostream>
#include <chrono>
#include <thread>
#include <fstream>
#include <windows.h>
unsigned int GetNumber(std::pair<int, int> position) {
// Capture relevant part of screen.
Scree... |
<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <getopt.h>
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include <inttypes.h>
#include <openssl/md5.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <map>
#include <str... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.