text stringlengths 54 60.6k |
|---|
<commit_before>//==============================================================================
// Single cell simulation view graph panel plot widget
//==============================================================================
#include "singlecellsimulationviewgraphpanelplotwidget.h"
//==========================... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date July, 2012
*
* @section LIC... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <list>
#include <string>
#include <utility>
#... |
<commit_before>// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/iterator.h"
#include "eos/decap_group.h"
#include "eos/mpls_route.h"
namespace eos {
template <typename T, typename Impl>
inline iter_base<T, Impl>::iter_base(Impl * c... |
<commit_before>#include "System.h"
#include "Display.h"
Console c(USART2, 115200);
#include "Interface.h"
#include "Signals.h"
const int SHORT_DELAY = 1000;
extern Display tft;
Screen mainScreen = Screen(&tft);
Screen settingsScreen = Screen(&tft);
extern "C" void TIM3_IRQHandler(void) {
if (TIM_GetITStatus (TIM3... |
<commit_before>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2011, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>/// @file
/// @author Ivan Vucica
/// @version 2.0
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
#if HAVE_COREAUDIO
#include <AudioUnit/AudioUnit.h>
#... |
<commit_before>/******************************************************************************
* Fake Frog *
* An Arduino-based project to build a frog-shaped temperature logger. *
* Author: David Lougheed. Copyright 2017. ... |
<commit_before>#include <iostream> // std::cout, std::cerr
#include <cstdlib> // EXIT_SUCCESS
#include <vector> // std::vector<>
#include <algorithm> // std::min()
#include <cmath> // std::pow(), std::sqrt(), std::sin()
#include <exception> // std::exception
#include <string> // std::string
#include <opencv2/imgproc/i... |
<commit_before>#include <iostream>
#include "main.hpp"
#include "system/printer.hpp"
#ifndef OBJ_PATH
#define OBJ_PATH "share/cube.obj"
#endif
#ifndef VERT_PATH
#define VERT_PATH "share/fallback.vert"
#endif
#ifndef FRAG_PATH
#define FRAG_PATH "share/shade.frag"
#endif
int main(int argc, const char **argv) {
using n... |
<commit_before>/*
* Copyright 2013 Matthew Harvey
*
* 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 applicabl... |
<commit_before>#include <string.h>
#include <stdio.h>
#include <netinet/in.h>
#include <linux/netfilter.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
#include <algorithm>
#include <thread>
#include <mutex>
#include <condition_variable>
struct packet
{
u_int32_t id;
nfq_q_handle *qh;
u_int32_t data_... |
<commit_before>#include <iostream>
#include <vlc/libvlc.h>
#include <vlc/libvlc_media.h>
void vlcMetaPrint(const char* prefix, libvlc_media_t* media, libvlc_meta_t meta) {
libvlc_media_parse(media);
char *str = libvlc_media_get_meta(media, meta);
if (str) {
std::cout << prefix << ": " << str << st... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <string.h>
#include "Kmp.h"
#include "BoyerMoore.h"
#include "support/StopWatch.h"
using namespace StringMatch;
#ifndef _DEBUG
const size_t Iterations = 5000000;
#else
const size... |
<commit_before>/*-
* Copyright (C) 2008-2009 by Maxim Ignatenko
* gelraen.ua@gmail.com
*
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or withou... |
<commit_before>#include <memory>
#include <iostream>
#include <string>
#include <sstream>
#include <functional>
#include <utility>
#include <unordered_map>
#include <vector>
#include <nan.h>
#include <v8.h>
#include <uv.h>
#include "log.h"
#include "queue.h"
#include "status.h"
#include "result.h"
#include "worker/wor... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include <float.h>
#include "parameters.h"
#include "interval.h"
#include "distt.h"
#include "structure.h"
#include "read.h"
#include "partiti... |
<commit_before>// chrlauncher
// Copyright (c) 2015-2018 Henry++
#ifndef __MAIN_H__
#define __MAIN_H__
#include <windows.h>
#include <commctrl.h>
#include "resource.hpp"
#include "app.hpp"
// config
#define WM_TRAYICON WM_APP + 1
#define UID 2008
// libs
#pragma comment(lib, "version.lib")
struct STATIC_DATA
{
HA... |
<commit_before>/*
* Blink
* Turns on an LED on for one second,
* then off for one second, repeatedly.
*/
#include "Arduino.h"
// Set LED_BUILTIN if it is not defined by Arduino framework
// #define LED_BUILTIN 13
void setup()
{
// initialize LED digital pin as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
void... |
<commit_before>
// This file is part of node-lmdb, the Node.js binding for lmdb
// Copyright (c) 2013 Timur Kristóf
// Licensed to you under the terms of the MIT license
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... |
<commit_before>/*
* Copyright 2013 Matthew Harvey
*
* 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 applicabl... |
<commit_before>#include <iostream>
#include <string>
#include <string.h>
#include <typeinfo>
#include <boost/tokenizer.hpp>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
using namespace std;
using namespace boost;
int Test(char** args, bool &p... |
<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>#include "config.h"
#include "dbmanager.h"
#include "iconmanager.h"
#include "mainwindow.h"
#include "plugins/pluginmanager.h"
#include "sqlhighlighter.h"
#include "tabwidget/abstracttabwidget.h"
#include "tools/logger.h"
#include "widgets/querytextedit.h"
#include <QtWidgets/QApplication>
#include <QtW... |
<commit_before>/*
* Copyright (C) 2010 O01eg <o01eg@yandex.ru>
*
* This file is part of Genetic Function Programming.
*
* Genetic Function Programming 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... |
<commit_before>/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <signal.h>
#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
#include <execinfo.h>
#include <sys/resource.h>
#endi... |
<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>#ifndef _NODE_H
#define _NODE_H
class Node{
private:
union Content{
double idX; //var
double value; //const
int function; //func1 ou func2
};
//não sei se enum e union deveriam ser globais ou declaradas ... |
<commit_before>#include "Variant.h"
#include "split.h"
#include "cdflib.hpp"
#include "pdflib.hpp"
#include <string>
#include <iostream>
#include <math.h>
#include <cmath>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <getopt.h>
using namespace std;
using namespace vcf;
struct pop{
double na... |
<commit_before>//
// PUSHY - standalone push server
// godexsoft 2014
//
#include <boost/program_options.hpp>
#include <boost/asio.hpp>
#include <push_service.hpp>
#include <vector>
#include "logging.hpp"
#include "api_service.hpp"
#include "pushy_service.hpp"
#include "database.hpp"
namespace po = boost::program_o... |
<commit_before>#include <QApplication>
#include <QDir>
#include <QCommandLineParser>
#include <QMessageBox>
#include "version.hpp"
#include "dvwindow.hpp"
void registerFileTypes();
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
app.setOrganizationName("chipgw");
app.setApplicationName("... |
<commit_before>#include "mario.h"
#include "producer.h"
#include "consumer.h"
#include "version.h"
#include "mutexlock.h"
#include "port.h"
#include "filename.h"
#include "signal.h"
#include <iostream>
#include <string>
#include <stdint.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
namespace mario {
struct M... |
<commit_before>/* main.cpp - CS 472 Project #2: Genetic Programming
* Copyright 2014 Andrew Schwartzmeyer
*/
#include <algorithm>
#include <cassert>
#include <chrono>
#include <ctime>
#include <future>
#include <iostream>
#include <thread>
#include "algorithm/algorithm.hpp"
#include "individual/individual.hpp"
#inc... |
<commit_before>/*
Copyright (c) 2020 ANON authors, see AUTHORS file.
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>#include <iostream>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
using namespace std;
/*
// Deprecated function call.
int sizefunc(char* commandstream, const char* delim){
int i;
char* p = strtok(commandstream, delim);
for (i = 0; p!= NULL... |
<commit_before>#include <iostream>
#include <armadillo>
using namespace arma;
constexpr int training_size = 4000;
constexpr int input_layer_size = 784;
constexpr int hidden_layer_size = 25;
constexpr int num_labels = 10;
constexpr double lambda = 0.1;
constexpr int max_iterations = 100;
int main () {
std::cout... |
<commit_before>/*
Copyright (c) 2013, Taiga Nomi
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this ... |
<commit_before>/**
* Copyright : falcon build system (c) 2014.
* LICENSE : see accompanying LICENSE file for details.
*/
#include <iostream>
#include <cstdlib>
#include "daemon_instance.h"
#include "exceptions.h"
#include "graph.h"
#include "graph_consistency_checker.h"
#include "graph_dependency_scan.h"
#include ... |
<commit_before>/*
* Copyright 2014, 2017 Matthew Harvey
*
* 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 appl... |
<commit_before>#include "main.h"
int main(int argc, char* argv[])
{
//Init Logger
FLAGS_logtostderr = 1;
google::InitGoogleLogging("OpenKAI");
printEnvironment();
//Load config
LOG(INFO)<<"Kiss file:"<<argv[1];
string kissFile(argv[1]);
if(!g_file.open(&kissFile))
{
LOG(ERROR)<<"Kiss file n... |
<commit_before>#include <cstdlib>
#include <cstdio>
#include "SDL.h"
#include "SDL_opengles.h"
#include "canvas/CanvasContext.h"
#include "script/Script.h"
#include "AmityContext.h"
#include "log.h"
#include "assets.h"
#define FPS_INTERVAL (5000)
static SDL_Window* window;
static AmityContext amityCtx;
Uint32 del... |
<commit_before>#include "common.hpp"
#include "graph.hpp"
#include "aco_parameters.hpp"
#include "aco_parallel_strategy.hpp"
#include "aco_sequential_strategy.hpp"
#include "metaheuristic.hpp"
#include "aco.hpp"
#include "INI.hpp"
Metaheuristic *metaheuristic = NULL;
int debug = 0;
void terminte_work(int sig) {
if ... |
<commit_before>#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <unistd.h>
#include <dirent.h>
#include <fstream>
#include <queue>
#include "omp.h"
struct Settings {
Settings(): extract(),
compress(),
verbose() {}
bool extract;
bool compress;
bool verbose;
};
void... |
<commit_before>#include <unistd.h>
#include "glload/gl_3_2.h"
#include "glload/gll.hpp"
#include <GL/glfw.h>
#include <cassert>
#include "render/shaderpipeline.hpp"
#include "heightmap/heightmapgenerator.hpp"
int main(int argc, char** argv) {
glfwInit();
glfwOpenWindowHint(GLFW_FSAA_SAMPLES, 8);
glfwOpenWindow... |
<commit_before>/*
Michael Chen
mchen046
SID: 861108671
CS100 Spring 2015: hw0-rshell
https://www.github.com/mchen046/rshell/src/main.cpp
*/
/*
Worklist:
bug when running: ls -a; echo hello; mkdir test;
the command exits when mkdir test finishes.
problem when running ls -a multiple times
ls -a breaks on the second exe... |
<commit_before>#include "precompiled.h"
#include "engine/math/random.h"
#include "engine/actor/AISystem.h"
#include "engine/EngineSystem.h"
#include "engine/render/RenderSystem.h"
#include "engine/UI/UISystem.h"
#include "engine/UI/Window.h"
#include "engine/UI/containers/TextContainer.h"
#include "engine/UI/container... |
<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 "../include/drivers/drivers.h"
#include "../include/tools/my_debu... |
<commit_before>#include "read.h"
#include <sstream>
Read::Read(string name, string seq, string strand, string quality){
mName = name;
mSeq = Sequence(seq);
mStrand = strand;
mQuality = quality;
mHasQuality = true;
}
Read::Read(string name, string seq, string strand){
mName = name;
mSeq = Sequence(seq);
mStran... |
<commit_before>#include "node.hpp"
#include "helpers.hpp"
#include "core/Log.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Node::Node() : _vao(0u), _vertices_nb(0u), _indices_nb(0u), _drawing_mode(GL_TRIANGLES), _has_indices(true), _program(nullptr), _textures(), _scaling(1.0f), _rotatio... |
<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>#pragma once
#include <cmath>
// windows MinGW fix
#ifdef __MINGW32__
#ifndef M_PI
const double M_PI = 3.14159265358979323846264338327950288;
const double M_2PI = M_PI * 2.0;
#endif
#endif
inline float _fmod( float x, float y ) { return fmod( fmod( x, y ) + y, y ); }
<commit_msg>[fix] M_2PI... |
<commit_before>/* This is free and unencumbered software released into the public domain. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "cpr/vector.h"
#include <cerrno> /* for errno */
#include <cstdlib> /* for std::calloc(), std::free() */
#include <new> /* for std::bad_alloc */
#i... |
<commit_before>#include <room.hpp>
#include <glm/gtc/noise.hpp>
#include <mos/util.hpp>
mos::Assets Room::assets_;
Room::Room(const glm::mat4 &transform) {
room_.transform = transform;
size_.x = int(glm::abs(glm::simplex(room_.position()) * 5.0f)) + 2.0f;
size_.y = int(glm::abs(glm::simplex(room_.position()) * ... |
<commit_before>/*
Copyright (C) 2016 Volker Krause <vkrause@kde.org>
This program 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 version 2 of the License, or (at your
option) a... |
<commit_before>#include "cvm.h"
#include "../cshared/disasm.h"
void DabVM_debug::print_registers()
{
fprintf(stderr, "IP = %p (%d)\n", (void *)vm.ip(), (int)vm.ip());
}
void DabVM_debug::print_ssa_registers()
{
auto err_stream = $VM->options.output;
fprintf(err_stream, "Registers:\n");
size_t index = ... |
<commit_before>/*
* Memory pool.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef BENG_PROXY_POOL_HXX
#define BENG_PROXY_POOL_HXX
#include "trace.h"
#include <inline/compiler.h>
#include <utility>
#include <new>
#ifndef NDEBUG
#include <assert.h>
#endif
#include <stddef.h>
#include <stdbool.h>
struct po... |
<commit_before>#include <Windows.h>
#include "dbg_thunk.h"
namespace vscode {
void* thunk_create_hook(intptr_t dbg, intptr_t hook)
{
// int __cedel thunk_hook(lua_State* L, lua_Debug* ar)
// {
// `hook`(`dbg`, L, ar);
// return `undefinition`;
// }
static unsigned char sc[] = {
#if defined(_M_X6... |
<commit_before>/*
* Copyright (c) 2004-2005 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 c... |
<commit_before>#include <re2/re2.h>
#include <iostream>
#include <fstream>
#include <errno.h>
#include <getopt.h>
int extract(const re2::StringPiece &text,
const re2::RE2& pattern,
const re2::StringPiece &rewrite,
std::string *out,
bool global) {
return global ? RE2::G... |
<commit_before>#include <re2/re2.h>
#include <iostream>
#include <fstream>
#include <errno.h>
int extract(const re2::StringPiece &text,
const re2::RE2& pattern,
const re2::StringPiece &rewrite,
std::string *out,
bool global) {
return global?RE2::GlobalExtract(text, pat... |
<commit_before>#include "node.h"
#include <iostream>
#include <thread>
#include <sstream>
#include <mutex>
#include <tuple>
#include <cstring>
#include <cerrno>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
using namespace DVSim;
Node::Node(const NodeConfig& config) :
node_name_(config.node_name)... |
<commit_before>/* discovery.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 26 Dec 2013
FreeBSD-style copyright and disclaimer apply
Implementation of the node discovery database.
*/
#include "discovery.h"
#include "pack.h"
#include "lockless/bits.h"
#include <set>
#inclu... |
<commit_before>#include "std.h"
#include "path.h"
#include "system.h"
#include "sync.h"
#include "hash.h"
#ifdef WINDOWS
#include <direct.h>
#include <Shlwapi.h>
#include <Shlobj.h>
#pragma comment(lib, "shlwapi.lib")
#pragma comment(lib, "shell32.lib")
static bool partEq(const String &a, const String &b) {
return... |
<commit_before>#include <stdlib.h>
#include <iostream>
#include <vector>
#include <unistd.h>
#include <dirent.h>
#include "omp.h"
void helpCheck(char *argv[]) {
if (argv[1] == std::string("-h") || argv[1] == std::string("--help")) {
std::cout << "\nptxv - Parallel Tar XZ by Ryan Chui (2017)\n" << std::endl;
exit(... |
<commit_before>#include <stdlib.h>
#include <iostream>
#include <vector>
#include <unistd.h>
#include <dirent.h>
#include "omp.h"
void helpCheck(char *argv[]) {
if (argv[1] == std::string("-h") || argv[1] == std::string("--help")) {
std::cout << "\nptxv - Parallel Tar XZ by Ryan Chui (2017)\n" << std::endl;
exit(... |
<commit_before>/*
* The contnts of this file may be overwritten at any time!
*/
#include <iostream>
#include <cstdlib> // rand
/*
#include "utils/intpoint.h"
#include "utils/polygon.h"
// Test whether polygon.inside(point) returns correct results.
void test_poly_inside_and_centerOfMass()
{
{
Polygon p... |
<commit_before>#include "Date.h"
#include "Admin.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
// Tests the Date class
Date* d = new Date(5, 5, 1994);
cout << "My birthday is " << d->print(1) << endl;
// Tests the Role class
string c = "Rin-chan";... |
<commit_before>/*
Copyright (c) 2009, 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>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before>#include "catch.hpp"
#include <ginseng/ginseng.hpp>
#include <array>
#include <memory>
using DB = ginseng::database;
using ginseng::deny;
using ginseng::optional;
using ent_id = DB::ent_id;
using com_id = DB::com_id;
TEST_CASE("Entities can be added and removed from a database", "[ginseng]")
{
DB... |
<commit_before>#include <istream>
#include <sstream>
#include <utility>
#include "token.hh"
#include "util.hh"
using namespace std;
inline
Token::Token(const std::string& s, Type t)
: type_(t), str_(s){}
inline
Token::Token(std::string&& s, Type t)
: type_(t), str_(move(s)){}
inline
Token::Token(const Number& ... |
<commit_before>#include <random>
#include <utility>
#include <algorithm>
#include <tuple>
#include <cmath>
#include <experimental/filesystem>
#include <opencv2/opencv.hpp>
#include "train.hh"
#include "window.hh"
#include "mblbp.hh"
#include "params.hh"
namespace fs = std::experimental::filesystem;
namespace chrono ... |
<commit_before>/* Copyright (C) 2011 Xavier Pujol.
This file is part of fplll. fplll 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.1 of the License, or (at your option) any l... |
<commit_before>#include <json/util.hpp>
#include <json/value.hpp>
#include <sstream>
namespace JSON
{
void stringtojsonstream(const std::string &s, std::ostream &o)
{
o << "\"";
for (std::string::const_iterator I = s.begin(); I != s.end(); I++) {
switch(*I) {
case '\"':
o << "\\\"";
break;
case '\\':
... |
<commit_before>// Copyright (c) 2011-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 <sync.h>
#include <logging.h>
#include <utilstrencodings.h>
#include <stdio.h>
#include <map>
#inc... |
<commit_before>// Test.cpp
// Sean Jones
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
#include <chrono>
#include <glm/glm.hpp>
#include <glm/gtx/constants.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
using namespace std::chrono;
GLFWwindow* window;
bool running = true;
// Value ... |
<commit_before>/*********************************
** Tsunagari Tile Engine **
** tile.cpp **
** Copyright 2011-2012 OmegaSDG **
*********************************/
#include <boost/foreach.hpp>
#include "area.h"
#include "python.h"
#include "python_optional.h"
#include "tile.h"
#include "wind... |
<commit_before>#include <iostream>
#include <string>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <sys/utsname.h>
static const char* const ANSI_COLOR_RESET_FG = "\x1b[39m";
static const char* const ANSI_COLOR_TITLE_FG = ANSI_COLOR... |
<commit_before>/*
* Copyright (C) 2009 Toni Gundogdu.
*
* This file is part of cclive.
*
* cclive 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) an... |
<commit_before>#include "utils.h"
gchar* getStr(Handle<Object> opts, const gchar* name) {
NanUtf8String* str = NULL;
if (opts->Has(H(name))) {
Handle<Value> opt = opts->Get(H(name));
if (opt->IsString()) {
str = new NanUtf8String(opt);
}
}
if (str != NULL && str->Size() > 1) {
return **str;
} else {
... |
<commit_before>/**
* v8cgi - (fast)cgi binary
*/
#include <v8.h>
#include <v8-debug.h>
#include <stdlib.h>
#include <string.h>
#include "app.h"
#include "path.h"
#ifdef FASTCGI
# include <fcgi_stdio.h>
# include <signal.h>
#endif
/**
* Format for command line arguments
*
* as you can see if you wish to pass a... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2017 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*
* Copyright (c) 2012 Christoph Schulz
*
* 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, mo... |
<commit_before>/*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include "Text.h"
Text::Text() : Blittable(), font(nullptr), text("")
{
color.r = color.g = color.b = 255;
bg_color.r = bg_color.g = bg_color.b = 0;
}
Text::~Text()
{
}
void Text::set_font(Font* const font)
{
this->font = font;
return;
}
void Text::set_text(const std::string& text, SD... |
<commit_before>#pragma once
#include <eosio/chain/block.hpp>
#include <eosio/chain/block_timestamp.hpp>
#include <stdint.h>
#include <string_view>
namespace eosio {
namespace blockvault {
using watermark_t = std::pair<uint32_t, eosio::chain::block_timestamp_type>;
class sync_callback {
public:
virtual void on_sna... |
<commit_before>/*
* Copyright (c) 2015, Nagoya University
* 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>/******************************************************************************
* Controls.cpp
*
* Contains the yaw_controller() and depth_controller functions
******************************************************************************/
#include "Mapper.h"
/*******************************************... |
<commit_before>// This file is part of the GLERI project
//
// Copyright (c) 2012 by Mike Sharov <msharov@users.sourceforge.net>
// This file is free software, distributed under the MIT License.
#include "cmd.h"
//----------------------------------------------------------------------
const char* CCmdBuf::nextname (c... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/searchcore/proton/documentmetastore/i_store.h>
#include <vespa/searchcore/proton/documentmetastore/lidreusedelayer.h>
#include <vespa/searc... |
<commit_before>#include <boost/filesystem.hpp>
#include "rect.h"
#include "annotation_widget.h"
#include "video_annotation.h"
#include "test_video_annotation.h"
#ifdef _WIN32
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
#endif
namespace fa = fish_annotator;
namespace va = fish_annotator::video_annotator;
void TestVid... |
<commit_before>///////////////////////////////////////////////
// Simple event display for channel spectra
// Input file should be raw DATE root tree file
///////////////////////////////////////////////
// for the readout
const int NFEC = 36; // Max 36 FrontEndCard per SM
const int NCHIP =... |
<commit_before>// $Id $
//
// Tests that each form of 4-vector has all the properties that stem from
// owning and forwarding to a 4D coordinates instance
//
// 6/28/05 m fischler
// from contents of test_coordinates.h by L. Moneta.
//
// =================================================================
#incl... |
<commit_before>#include "platform/tizen/TizenApplication.h"
using namespace Tizen::Graphics::Opengl;
namespace lime {
int gFixedOrientation = -1;
//double mAccelX;
//double mAccelY;
//double mAccelZ;
int mSingleTouchID;
FrameCreationCallback sgCallback;
unsigned int sgFlags;
int sgHeight;
const char *s... |
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/blink/video_frame_compositor.h"
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/time/def... |
<commit_before>#include "localserver.h"
namespace rclog {
LocalServer::LocalServer(boost::asio::io_service &io_service, std::string socket_path)
:socket_(io_service, datagram_protocol::endpoint(socket_path)) {
do_receive();
}
void LocalServer::do_receive() {
socket_.async_receive_from(boost::asio::buffe... |
<commit_before>#include "asocket.h"
// C++
#include <cassert>
#include <cstring>
#include <cstdint>
// STL
#include <iostream>
// PDTK
#include <cxxutils/error_helpers.h>
#include <cxxutils/streamcolors.h>
#ifndef CMSG_LEN
#define CMSG_ALIGN(len) (((len) + sizeof(size_t) - 1) & (size_t) ~ (sizeof(size_t) - 1))
#def... |
<commit_before>// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include <string>
#include "flatbuffers/flexbuffers.h"
extern "C" int LLVMFuzzerTestOneInput(const... |
<commit_before>/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... |
<commit_before>#ifndef utils_hh_INCLUDED
#define utils_hh_INCLUDED
#include "exception.hh"
#include "assert.hh"
#include <memory>
#include <algorithm>
namespace Kakoune
{
// *** Singleton ***
//
// Singleton helper class, every singleton type T should inherit
// from Singleton<T> to provide a consistent interface.
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.