text stringlengths 54 60.6k |
|---|
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkIPLFileNameList.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCop... |
<commit_before>// Copyright 2013 Sean McKenna
//
// 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 ... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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><commit_msg>574 - Sum It Up<commit_after><|endoftext|> |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2008 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>#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <string>
const double PI = 3.1415926536;
const int angle2step = 120;
typedef struct angles {
float a;
float b;
float r;
} angles;
t... |
<commit_before>#include "Database.h"
Database::Database() : QObject() {
QProcess p;
#ifdef Q_WS_WIN
p.start(QString("cmd.exe /c %1").arg("sqlite3 db.sqlite < sql.sql && sqlite3 db.sqlite"));
#else
p.start(QString("sh -c \"%1\"").arg("sqlite3 db.sqlite < sql.sql; sqlite3 db.sqlite"));
#endif
... |
<commit_before>#include "../../include/MazeCard.h"
#include <iostream>
#include <stdio.h>
using namespace std;
MazeCard::MazeCard()
{
this->_type = "-";
}
/**
* Deserialization constructor
*
* @param props Properties expected vector of size 3
* type|treasure|path
*/
MazeCard::MazeCard(vector<st... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>#include "Halide.h"
using namespace Halide;
Expr lerp(Expr a, Expr b, Expr alpha) {
return (1.0f - alpha)*a + alpha*b;
}
int main(int argc, char **argv) {
if (argc < 2) {
printf("Spatial sigma is a compile-time parameter, please provide it as an argument.\n"
"(llvm's ptx... |
<commit_before>/* -*- C++ -*- */
/**
* @file dlvhex.cpp
* @author Roman Schindlauer
* @date Thu Apr 28 15:00:10 2005
*
* @brief main().
*
*
*/
#include <iostream>
#include <sstream>
#include <vector>
#include "dlvhex/Atom.h"
#include "dlvhex/Interpretation.h"
#include "dlvhex/GraphProcessor.h"
#inclu... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_HDD_LINEARELLIPTIC_PROBLEMS_DEFAULT_HH
#define DUNE_HDD_LINEARELLIPTIC_PROBL... |
<commit_before>//
// Example to connect multiple vehicles and make them take off and land in parallel.
//./multiple_drones udp://:14540 udp://:14541
//
// Author: Julian Oes <julian@oes.ch>
// Author: Shayaan Haider (via Slack)
#include <dronecode_sdk/dronecode_sdk.h>
#include <dronecode_sdk/plugins/action/action.h>
#... |
<commit_before>#include <QByteArray>
#include <QFile>
#include <QDateTime>
#include <QSslKey>
#include <QSslCertificate>
#include "keybuilder.h"
#include "certificaterequestbuilder.h"
#include "certificaterequest.h"
#include "certificatebuilder.h"
#include "certificate.h"
QT_USE_NAMESPACE_CERTIFICATE
int main(int ar... |
<commit_before>#include <avalon/GameCenter.h>
namespace avalon {
void GameCenter::login()
{
}
bool GameCenter::showAchievements()
{
return false;
}
void GameCenter::postAchievement(const char* idName, int percentComplete)
{
}
void GameCenter::clearAllAchievements()
{
}
bool GameCenter::showScores()
{
retu... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2015 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 2013-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 a... |
<commit_before>/*
*
* Bacula UA authentication. Provides authentication with
* the Director.
*
* Kern Sibbald, June MMI
*
* Version $Id$
*
* This routine runs as a thread and must be thread reentrant.
*
* Basic tasks done here:
*
*/
/*
Bacula® - The Network Backup Solution
Copyrigh... |
<commit_before>#include <allegro.h>
#ifdef ALLEGRO_WINDOWS
#include <winalleg.h>
#endif
#ifndef ALLEGRO_WINDOWS
#include <signal.h>
#include <string.h>
#endif
#warning you are ugly
#include "globals.h"
#include "init.h"
#include <pthread.h>
#include "network/network.h"
#include <ostream>
#include "dumb/include/dumb... |
<commit_before>/*
MIT License
Copyright (c) 2017 Eren Okka
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... |
<commit_before>/*
Copyright (c) 2015, 2016, Andreas Fett
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>#include <aikido/planner/ompl/CRRT.hpp>
#include <aikido/planner/ompl/GeometricStateSpace.hpp>
#include <ompl/base/goals/GoalSampleableRegion.h>
#include <ompl/tools/config/SelfConfig.h>
#include <limits>
namespace aikido {
namespace planner {
namespace ompl {
//=========================================... |
<commit_before>/***************************************************************************
* Copyright (C) 2004 by Stanislav Karchebny *
* Stanislav.Karchebny@kdemail.net *
* ... |
<commit_before>/*
* Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <algorithm>
#include "hal.h"
using namespace std;
using namespace hal;
/** This is a tool that counts the number o... |
<commit_before>/* * * * * * * * * * * * *\
|* ╔═╗ v0.3 *|
|* ╔═╦═╦═══╦═══╣ ╚═╦═╦═╗ *|
|* ║ ╔═╣ '╔╬═╗╚╣ ║ ║ '║ *|
|* ╚═╝ ╚═══╩═══╩═╩═╣ ╔═╝ *|
|* * * * * * * * * ╚═╝ * *|
|* Manipulation tool for *|
|* ESRI Shapefiles *|
|* * * * * * * * * * * * *|
|* http://www.npolar.no/ *|
\* * * * * * * * * * * * ... |
<commit_before>#ifndef __LUA_RAPIDJSION_LUACOMPAT_H__
#define __LUA_RAPIDJSION_LUACOMPAT_H__
#include <cmath>
#include <lua.hpp>
namespace luax {
inline void setfuncs(lua_State* L, const luaL_Reg* funcs) {
#if LUA_VERSION_NUM >= 502 // LUA 5.2 or above
luaL_setfuncs(L, funcs, 0);
#else
luaL_register(L, NULL, fun... |
<commit_before>#include <iostream>
#include <SDL.h>
#include <SDL_net.h>
#include <SDL_image.h>
#include <string>
#include <vector>
#include <MsgStruct.h>
#include "Player.h"
#include "GameObject.h"
#include "Enemy.h"
#include "Cursor.h"
#include "Tower.h"
#include "Cannon.h"
#include "Rocket.h"
#include "Path.h"
#incl... |
<commit_before>#include "math/vec.hpp"
#include "math/mat.hpp"
#include "math/MatrixTransform.hpp"
#include "math/Sphere.hpp"
#include "math/misc.hpp"
#include "math/Ray.hpp"
#include "math/TransformPair.hpp"
#include "noncopyable.hpp"
#include "output.hpp"
#include "Optional.hpp"
#include <vector>
#include <memory>
#i... |
<commit_before>
#include "fetch.h"
#include "decode.h"
#include "execute.h"
#include "stdarg.h"
#include "breg.h"
#include "memoria.h"
int sc_main(int argc, char* argv[]){
fetch Fetch("Fetch");
decode Decode("Decode");
execute Execute("Execute");
mem Memoria("Memoria");
breg Breg("Breg");
sc_fifo < contexto* ... |
<commit_before>/**
* libcec-daemon
* A simple daemon to connect libcec to uinput.
* by Andrew Brampton
*
* TODO
*
*/
#include "uinput.h"
#include "libcec.h"
#include <cstdio>
#include <iostream>
#include <stdint.h>
#include <cstddef>
#include <csignal>
#include <vector>
using namespace CEC;
using std::cerr;
u... |
<commit_before>
#include <string>
#include <fstream>
#include <iostream>
#include "thermalPrinter.h"
static inline bool loadFromPath(const std::string& path, std::string* into) {
std::ifstream file;
std::string buffer;
file.open(path.c_str());
if(!file.is_open()) return false;
while(!file.eof()) ... |
<commit_before>/*
SNEeSe, an Open Source Super NES emulator.
Copyright (c) 1998-2004 Charles Bilyue'.
Portions Copyright (c) 2003-2004 Daniel Horchner.
This is free software. See 'LICENSE' for details.
You must read and accept the license prior to use.
*/
//#define NO_GUI
#include "wrapaleg.h"
#include <iostre... |
<commit_before>#include "main.h"
/* if you add a module please register it
* here by adding it to the mapping
*/
void register_modules(map<string,Module*> &m)
{
// registering a dummy module, do not copy this
// m.insert(make_pair("module", new Module()));
// registration, copy this for new modules
... |
<commit_before>// Standard includes
#include <stdlib.h>
// OpenGL includes
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "fluidDynamics.h"
void simulate() {
// We ping-pong back and forth between two buffers on the GPU
// u = advect(u);
// u = diffuse(u);
// u = addForces(u);
//
// p... |
<commit_before>//Using SDL, SDL_image, standard IO, and strings
#include <SDL2/SDL.h>
#include <stdio.h>
#include <string>
//Screen dimension constants
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
//The window we'll be rendering to
static SDL_Window* gWindow = NULL;
//The window renderer
static SDL_R... |
<commit_before>/*
* main.cpp - Demo in C++ of a simple shell
*
* Copyright 2010-2011 Jesús Torres <jmtorres@ull.es>
*
* 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://w... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>/*
* File: main.cpp
* Author: vlad
*
* Created on December 12, 2013, 10:38 PM
*/
#include <iostream>
#include "qpp.h"
//#include "matlab.h" // support for MATLAB
// TODO: expandout function
// TODO: dyad function
// TODO: proj (dya) function
// TODO: ip (inner product function) function, make ... |
<commit_before>#include "coloshell.hpp"
#include "platform.h"
#include "program.hpp"
#include "beadisassembler.hpp"
#include "toolbox.hpp"
#include "argtable2.h"
#include <iostream>
#include <exception>
#include <cstdlib>
#define NUM_V "0.1"
#ifdef ARCH_X64
#define VERSION_TMP NUM_V " x64 built the " __DATE__ " " __... |
<commit_before>#include "stdinc.h"
#include "parser.hpp"
#include "error.hpp"
#include "symtable.hpp"
#include "commands.hpp"
#include "compiler.hpp"
#include "disassembler.hpp"
#include "decompiler.hpp"
#include "codegen.hpp"
#include "program.hpp"
#include "system.hpp"
#include "cpp/argv.hpp"
int compile(fs::path in... |
<commit_before>//
// Turbo Linecount
// Copyright 2015, Christien Rioux
//
// MIT Licensed, see file 'LICENSE' for details
//
///////////////////////////////////////////////
#include"turbo_linecount.h"
#include<cstring>
#include<cstdio>
#ifdef _WIN32
#include<tchar.h>
#elif defined(TLC_COMPATIBLE_... |
<commit_before>#include <errno.h>
#include <iostream>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <vector>
#include <pwd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <boost/foreach.hpp>
#include <boost/tokenizer.hpp>
using namespace std;
using n... |
<commit_before>//
// Projectname: amos-ss16-proj5
//
// Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
//
// This file is part of the AMOS Project 2016 @ FAU
// (Friedrich-Alexander University Erlangen-Nürnberg)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the G... |
<commit_before>#include <iostream>
#include <vector>
#include <list>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <netdb.h>
#include <pwd.h>
#include <sys/socket.h>
#include <boost/algorithm/string.hpp>
using namespace std;
using n... |
<commit_before>
#include <iostream>
#include <memory>
#include "Game.h"
using namespace Yoba;
int main(int argc, char* args[])
{
auto game = Game::Instance();
if (!game->init(100, 100, 640, 480)) {
std::cerr << "game init failure - " << SDL_GetError() << std::endl;
return EXIT_FAILURE;
... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <chrono>
#include "latexImprover.h"
int main(int argc, char* argv[]){
// argv[0] is not interesting, since it's just your program's path.
for (int i = 1; i < argc; ++i){
std::string filePath = argv[i];
std::ifstre... |
<commit_before>/* volat_minimal.cpp
* This file is a part of tasks library
* Copyright (c) tasks authors (see file `COPYRIGHT` for the license)
*/
#include <iostream>
#include <boost/array.hpp>
#include <boost/thread.hpp>
#include <boost/thread/barrier.hpp>
#include <boost/bind.hpp>
static const int NUM_IT=1024 * ... |
<commit_before>/*
Copyright (c) 2015, Mike Tzou
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 conditions a... |
<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 mcompositor.
**
** If you have questions regarding the... |
<commit_before>//
// main.cpp
// expressionline2
//
// Created by Adam Roberts on 3/23/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#define PACKAGE_VERSION "INTERNAL"
#include <boost/filesystem.hpp>
#include <getopt.h>
#include <boost/thread.hpp>
#include <cassert>
#include <iostream>
#include... |
<commit_before>/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <vector>
#include <thread>
#include "common/log.h"
#include "gfx/gl/driver.h"
#include "gfx/camera.h"
#include "gfx/object.h"
#include "gfx/scene_node.h"
#include "gfx... |
<commit_before>
#include <Urho3D/Engine/Application.h>
#include <Urho3D/Graphics/Camera.h>
#include <Urho3D/Engine/Console.h>
#include <Urho3D/UI/Cursor.h>
#include <Urho3D/Engine/DebugHud.h>
#include <Urho3D/Engine/Engine.h>
#include <Urho3D/IO/FileSystem.h>
#include <Urho3D/Graphics/Graphics.h>
#include <Urho3D/Graph... |
<commit_before>/*
* Copyright (C) 2015-2016 Nagisa Sekiguchi
*
* 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 app... |
<commit_before>#include <stdexcept>
#include <limits>
#include <algorithm>
#include <array>
#include <memory>
#include <iomanip>
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <vector>
#include <sys/stat.h>
#include <cerrno>
#include <cstring>
#include <system_error>
#include <open... |
<commit_before>/**
* This file is part of Slideshow.
* Copyright (C) 2008 David Sveningsson <ext@sidvind.com>
*
* Slideshow 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 "ardrone/ardrone.h"
// --------------------------------------------------------------------------
// main(Number of arguments, Argument values)
// Description : This is the entry point of the program.
// Return value : SUCCESS:0 ERROR:-1
// ----------------------------------------------... |
<commit_before>/*
* boostMPI template, boost+boostMPI, include boost include/lib MS-MPI include, and MS-MPI library, which is msmpi.lib
* Author: Shirong Bai
* Email: bunnysirah@hotmail.com or shirong.bai@colorado.edu
* Date: 10/08/2015
*/
#include <cstdlib>
#include "../include/drivers/drivers.h"
#include "../in... |
<commit_before>/*
* LynxBot: a Twitch.tv IRC bot for Old School Runescape
* Copyright (C) 2016 Alexei Frolov
*/
#include <cpr/cpr.h>
#include <iostream>
#include <string>
#include <string.h>
#include <utils.h>
#include "config.h"
#include "lynxbot.h"
#include "option.h"
#include "TwitchBot.h"
#ifdef __linux__
# in... |
<commit_before>#include <iostream>
#include <irrlicht.h>
#include "driverChoice.h"
#include "eventReceiver.h"
using namespace irr;
enum {
ID_IsNotPickable = 0,
IDFlag_IsPickable = 1 << 0,
IDFlag_IsHighlightable = 1 << 1
};
int main() {
// Choose driver
video::E_DRIVER_TYPE driverType = driverChoiceConsole();
i... |
<commit_before>#include "serialutil.h"
#include "usbutil.h"
#include "listener.h"
#include "signals.h"
#include "log.h"
#define VERSION_CONTROL_COMMAND 0x80
#define RESET_CONTROL_COMMAND 0x81
// USB
#define DATA_ENDPOINT 1
extern void reset();
void setup();
void loop();
const char* VERSION = "2.0-pre";
#ifdef __CH... |
<commit_before>/**
* Name: Rebecca Hom
* This is the main file that will be used to run the rshell.
* Tests the system calls
*
* */
#include "rshell.h"
#include <iostream>
#include <string>
using namespace std;
int main(int arc, char* argv[])
{
Rshell rshell = Rshell();
// Initial variables for taking i... |
<commit_before>#include "Image.h"
#include "Ray.h"
#include "Sphere.h"
#include "HitableList.h"
#include "Camera.h"
#include "Lambertian.h"
#include <chrono>
#include <iostream>
const auto seed = std::chrono::high_resolution_clock::now().time_since_epoch().count();
auto realRand = std::bind(std::uniform_real_distribu... |
<commit_before>#include <Core/openGL.hpp>
#include <iostream>
int main(int argc, char **args)
{
if(argc != 2) {
std::cout << "Arguments are invalid, use:\n\t" << args[0] << " [scene_name]" << std::endl;
exit(-1);
}
std::string scene = args[1];
const char* title = "OpenGL Project";
... |
<commit_before>#include <time.h>
#include "../include/PSATsolver.hpp"
#include "../include/TestGenerator.hpp"
using namespace std;
using namespace arma;
void test(int N, int k, int n, double step, int begin, int end, string prefix);
int main(int argc, char** argv)
{
bool v;
if(argc < 20)
v = true;
... |
<commit_before>#include <errno.h>
#include <iostream>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <vector>
#include <pwd.h>
#include <algorithm>
#include <functional>
#include <dirent.h>
#include <sys/types.h>
#include <sys/wait.h>
#includ... |
<commit_before>/***************************************************************************
* Copyright (C) 2003-2004 by *
* Unai Garro (ugarro@users.sourceforge.net) *
* Jason Kivlighn (mizunoami44@users.sourceforge.net) ... |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree.h"
#include "misc.h"
#include ... |
<commit_before>/*
* Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
#include "config.h"
#if CROWN_BUILD_UNIT_TESTS
#include "array.h"
#include "dynamic_string.h"
#include "json.h"
#include "math_utils.h"
#include "memory.h... |
<commit_before>#include <iostream>
#include "../../hpp/tom/tom.hpp"
#include "../../hpp/ax/impl/ax.hpp"
#include "../../hpp/ax/impl/system.hpp"
#include "../../hpp/ax/impl/basic_obj_model.hpp"
namespace ax
{
// A trivial type to demonstrate the castable type.
class castable_a : public ax::castable
{
... |
<commit_before>#include "cmdline.hpp"
#include <boost/lexical_cast.hpp>
#include <boost/filesystem/operations.hpp>
#include "State.hpp"
#include "svc/LuaVm.hpp"
#include "svc/FileSystem.hpp"
#include "svc/ServiceLocator.hpp"
#include "svc/Mainloop.hpp"
#include "svc/DrawService.hpp"
#include "svc/EventDispatcher.hpp"
#... |
<commit_before>/*
* Copyright (c) 2014 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>#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <cstdio>
const int SCREEN_WIDTH = 311;
const int SCREEN_HEIGHT = 308;
const int BUTTON_WIDTH = 94;
const int BUTTON_HEIGHT = 94;
const int BAR_SIZE = 4;
const int COMP = 4;
#define GRID_SIZ... |
<commit_before>
#include "includes.h"
#include "global.h"
#include "fonctions.h"
using namespace std;
using namespace cv;
using namespace raspicam;
/**
* \fn void initStruct(void)
* \brief Initialisation des structures de l'application (tâches, mutex,
* semaphore, etc.)
*/
void initStruct(void);
/**
* \fn void... |
<commit_before>#include <iostream>
#include <fstream>
#include <cstdint>
#include <algorithm>
#include <memory>
#include <thread>
#include <stdio.h>
#include <unistd.h>
#include <chrono>
#include "dcpu.hpp"
#include "disassembler.hpp"
#include "gclock.hpp"
#include "fake_lem1802.hpp"
#include "lem1802.hpp"
#include ... |
<commit_before>#include <iostream>
#include <map>
#include <string>
#include <string.h>
#include <vector>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <cstdio>
#include <stdio.h>
#include <vector>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <sys/st... |
<commit_before>// Copyright (c) 2016 Kasper Kronborg Isager and Radoslaw Niemczyk.
#pragma once
#include <vector>
#include <random>
#include "vector.hpp"
namespace lsh {
/**
* The mask class acts as sort of a bit mask that can reduce the dimensionality of
* vectors by a projection.
*/
class mask {
pu... |
<commit_before>#include "mesh.h"
#include "utils/logoutput.h"
namespace cura
{
const int vertex_meld_distance = MM2INT(0.03);
/*!
* returns a hash for the location, but first divides by the vertex_meld_distance,
* so that any point within a box of vertex_meld_distance by vertex_meld_distance would get mapped to the... |
<commit_before>#include "nano.h"
#include "losses/square.h"
#include "losses/cauchy.h"
#include "losses/logistic.h"
#include "losses/classnll.h"
#include "losses/exponential.h"
#include "tasks/task_mnist.h"
#include "tasks/task_cifar10.h"
#include "tasks/task_cifar100.h"
#include "tasks/task_stl10.h"
#include "tasks/... |
<commit_before>#include "oowe/oowe.h"
#include <iostream>
#include <iomanip>
namespace oowe {
void init(long flags)
{
OOWE_CHECK_ERROR_THROW(curl_global_init(flags));
}
void init(long flags, curl_malloc_callback m, curl_free_callback f, curl_realloc_callback r, curl_strdup_callback s, curl_calloc_callback c)
{
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2007 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>#include "graphics/shader.h"
#include "core/fs/file_system.h"
#include "core/fs/ifile.h"
#include "core/json_serializer.h"
#include "core/log.h"
#include "core/matrix.h"
#include "core/profiler.h"
#include "core/resource_manager.h"
#include "core/resource_manager_base.h"
#include "core/vec3.h"
#include "... |
<commit_before>#include "DataSetModel.hh"
#include "DataSetItem.hh"
#include "MetaTypes.hh"
#include <QDebug>
#include <QIcon>
namespace aleph
{
namespace gui
{
DataSetModel::DataSetModel( QObject* parent )
: QAbstractItemModel( parent )
, _root( new DataSetItem( QString(), QVariant() ) )
{
QList<DataSetItem... |
<commit_before>#include "hext/match-tree.h"
#include "hext/rule.h"
namespace hext {
match_tree::match_tree()
: children(),
matches(),
r(nullptr)
{
}
match_tree * match_tree::append_child_and_own(std::unique_ptr<match_tree> m)
{
this->children.push_back(std::move(m));
return this->children.back().get();
}
... |
<commit_before>#include "HttpServer.h"
#include "../string_utils.h"
#include <iostream>
Http::HttpServer::HttpServer(size_t threadCount) : threadCount(threadCount), server("0.0.0.0", "80")
{
threadpool.reserve(threadCount);
}
void Http::HttpServer::stop()
{
stopped = false;
}
bool Http::HttpServer::isStopped() co... |
<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 "prim.h"
bool siren_prim_install(mrb_state* mrb, struct RClass* rclass)
{
// Class method
mrb_define_class_method(mrb, rclass, "box", siren_prim_box, MRB_ARGS_REQ(1) | MRB_ARGS_OPT(1));
mrb_define_class_method(mrb, rclass, "box2p", siren_prim_box2p, MRB_ARGS_REQ(2));
... |
<commit_before>#include "ten/task/qutex.hh"
#include "proc.hh"
namespace ten {
void qutex::lock() {
task *t = this_proc()->ctask;
DCHECK(t) << "BUG: qutex::lock called outside of task";
{
std::unique_lock<std::timed_mutex> lk(_m);
if (_owner == nullptr || _owner == t) {
_owner ... |
<commit_before>#include "t_kv.h"
#include "leveldb/write_batch.h"
int SSDB::multi_set(const std::vector<Bytes> &kvs, int offset, char log_type){
Transaction trans(binlogs);
std::vector<Bytes>::const_iterator it;
it = kvs.begin() + offset;
for(; it != kvs.end(); it += 2){
const Bytes &key = *it;
const Bytes &v... |
<commit_before>
/*
* client.cpp
*
* Handles the client env.
*
* Created by Ryan Faulkner on 2014-06-08
* Copyright (c) 2014. All rights reserved.
*/
#include <iostream>
#include <string>
#include <vector>
#include <regex>
#include <assert.h>
#include "column_types.h"
#include "redis.h"
#include "md5.h"
#in... |
<commit_before>// Copyright (c) 2014-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/networkstyle.h>
#include <qt/guiconstants.h>
#include <QApplication>
static const struct {
... |
<commit_before>//
// QtOneLineTextWidget.cpp
// MusicPlayer
//
// Created by Albert Zeyer on 23.01.14.
// Copyright (c) 2014 Albert Zeyer. All rights reserved.
//
#include "QtOneLineTextWidget.hpp"
#include "QtApp.hpp"
#include "Builders.hpp"
#include "PythonHelpers.h"
#include "PyUtils.h"
#include <string>
#inclu... |
<commit_before>#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h"
#include <QAbstractItemDeleg... |
<commit_before>#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "main.h"
#include "b... |
<commit_before>/**
* @file ErrPair.hpp
* @brief ErrPair class prototype.
* @author zer0
* @date 2019-09-11
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_ERRPAIR_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_ERRPAIR_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma ... |
<commit_before>#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#include <QApplication>
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QSplashScreen(pixmap, f)
{
// set reference point, paddings
//int paddingRight = 50;
//int... |
<commit_before>#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this when the #define loop is gone from util.h */
#include <QApplication>
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QSplashScreen(pixmap, f)
{
// se... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#include "rdb_protocol/val.hpp"
#include "rdb_protocol/env.hpp"
#include "rdb_protocol/meta_utils.hpp"
#include "rdb_protocol/pb_utils.hpp"
#include "rdb_protocol/term.hpp"
namespace ql {
// Most of this logic is copy-pasted from the old query lan... |
<commit_before>// Copyright (c) 2011-2012 Ryan Prichard
//
// 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, mod... |
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to 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)
#include <libtorrent/torrent_handle.hpp>
#include <boost/python.hpp>
#include <boost/py... |
<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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.