text stringlengths 54 60.6k |
|---|
<commit_before>//
// Player.cpp
// CheckersProject
//
// Created by Benjamin Emdon on 2016-02-13.
// Copyright © 2016 Ben Emdon.
//
#include "../include/Player.h"
#include "../include/CheckersBoard.h"
#include "../include/Button.h"
#include "../include/GameState.h"
Player::Player(bool topSide, CheckersBoard *boar... |
<commit_before>// Toolbar.hh for Fluxbox
// Copyright (c) 2002 Henrik Kinnunen (fluxgen at users.sourceforge.net)
//
// Toolbar.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of thi... |
<commit_before>/*
* Copyright 2015 - 2016 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma
#define offsetof(st, m) ((size_t)(&((st ... |
<commit_before>#include "binlog.h"
#include "util/log.h"
#include "util/strings.h"
#include <map>
/* Binlog */
Binlog::Binlog(uint64_t seq, char cmd, char type, const leveldb::Slice &key){
buf.append((char *)(&seq), sizeof(uint64_t));
buf.push_back(cmd);
buf.push_back(type);
buf.append(key.data(), key.size());
}
... |
<commit_before><commit_msg>New scom addresses const headers for chip 9031<commit_after><|endoftext|> |
<commit_before><commit_msg>Solved problem3 for smaller numbers, still not done<commit_after>#include <iostream>
using namespace std;
int nextPrime(int prev);
int main() {
long number = 100054040;
int max = 0;
int prime = 1;
cout << prime << endl;
// for (int i = 0; i < 20; i++) {
// prim... |
<commit_before>#include <sysexits.h>
#include <unistd.h>
#include <iostream>
#include <sys/types.h>
#include <signal.h>
#include <libpstack/dwarf.h>
#include <libpstack/dump.h>
#include <libpstack/elf.h>
#include <libpstack/proc.h>
#include <libpstack/ps_callback.h>
struct ThreadLister {
std::list<ThreadStack> ... |
<commit_before>/* net6 - Library providing IPv4/IPv6 network access
* Copyright (C) 2005 Armin Burgmeier / 0x539 dev group
*
* 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; either
*... |
<commit_before>#pragma once
#include <iostream>
#include <sstream>
#include <distributions/random_fwd.hpp>
#include <distributions/vector.hpp>
#ifdef __GNUG__
# define LOOM_LIKELY(x) __builtin_expect(bool(x), true)
# define LOOM_UNLIKELY(x) __builtin_expect(bool(x), false)
#else // __GNUG__
# warning "ignoring LO... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>/*****************************************************************************
* podcast_configuration.cpp: Podcast configuration dialog
****************************************************************************
* Copyright (C) 2007 the VideoLAN team
* $Id$
*
* Authors: Antoine Cellerier <dionoea... |
<commit_before>#include "StartingScreen.hpp"
#include "SDL/SDL_ttf.h"
void ShowStartingScreen(SDL_Surface *surf, SDL_Surface *screen,
_bools &bools)
{
bool daflag = true;
TTF_Font *ttf_msg(TTF_OpenFont("resources/fonts/Alias.ttf", 32));
SDL_Rect pmessage;
SDL_Surface *msg;
SDL_Color col;
col.r = 0xff; c... |
<commit_before>// Copyright 2016 AUV-IITK
#include <ros/ros.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Int32.h>
#include <actionlib/server/simple_action_server.h>
#include <motion_commons/UpwardAction.h>
#include <dynamic_reconfigure/server.h>
#include <motion_upward/pidConfig.h>
... |
<commit_before>#pragma once
/*
* Copyright (c) 2012, 2013 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#ifndef _QI_OS_HPP_
#define _QI_OS_HPP_
# include <cstdio>
# include <string>
# include <map>
# include <vecto... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#include <cppcoro/detail/lightweight_manual_reset_event... |
<commit_before>/*
The MIT License
Copyright (c) 2008 Dennis Mllegaard Pedersen <dennis@moellegaard.dk>
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 limit... |
<commit_before>#include <iostream>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/format.hpp>
#include <boost/regex.hpp>
#include "include/sqlite3.h"
#include "include/sqlite_types.hpp"
void setup_mbtiles(std::string filename)
{
char* zE... |
<commit_before>
<commit_msg>Delete 1.cpp<commit_after><|endoftext|> |
<commit_before>/*
* daemon.cpp
*
* Created on: Apr 7, 2013
* Author: nikita.karnauhov@gmail.com
*/
#include <string>
#include <stdexcept>
#include <memory>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <fstream>
#include <list>
#include <set>
#include <thread>
#include <mutex>
#include ... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include "device.h"
#include "sync.h"
#include <array>
using namespace rsimpl;
rs_device::rs_device(std::shared_ptr<rsimpl::uvc::device> device, const rsimpl::static_device_info & ... |
<commit_before>#include "dhcurve.h"
Local<Value> bnToBuf(const BIGNUM *bn) {
int bytes = BN_num_bytes(bn);
Local<Object> buffer = NanNewBufferHandle(bytes);
if(BN_bn2bin(bn, (unsigned char *) Buffer::Data(buffer)) < 0) {
NanThrowError("Failed to create Buffer from BIGNUM");
return NanUndefined();
}
... |
<commit_before>/*
* This file is part of Poedit (http://poedit.net)
*
* Copyright (C) 2000-2014 Vaclav Slavik
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction... |
<commit_before>/*
* Copyright (C) 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
*... |
<commit_before>/*
* Copyright (C) 2012-2014 Yule Fox. All rights reserved.
* http://www.yulefox.com/
*/
#include <elf/db.h>
#include <elf/log.h>
#include <elf/memory.h>
#include <elf/pc.h>
#include <elf/thread.h>
#include <elf/time.h>
#include <deque>
#include <map>
#include <string>
using namespace google::protob... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// File: $Source: /usr/sci/projects/Nektar/cvs/Nektar++/library/SpatialDomains/MeshGraph1D.cpp,v $
//
// For more information, please see: http://www.nektar.info/
//
// The MIT License
//
// Copyright (c) 2006 Divisi... |
<commit_before>#include "engine.h"
#include "random.h"
#include "Updatable.h"
#include "collisionable.h"
#include "audio/source.h"
#include "io/keybinding.h"
#include "soundManager.h"
#include "windowManager.h"
#include "scriptInterface.h"
#include "multiplayer_server.h"
#include <thread>
#include <SDL.h>
#ifdef STEA... |
<commit_before>#include "filter.hpp"
using namespace std;
namespace vg{
Filter::Filter(){
}
Filter::~Filter(){
}
void Filter::set_min_depth(int depth){
min_depth = depth;
}
void Filter::set_min_qual(int qual){
min_qual = qual;
}
void Filter::set_min_percent_identity(double pct_id){
... |
<commit_before>#include "rts/gc.h"
namespace rts {
using std::uint64_t;
using std::unordered_set;
using std::mutex;
thread_local hec * hec::current;
unordered_set<hec*> hecs;
mutex gc_mutex;
boost::lockfree::queue<gc_ptr> global_mark_queue[8];
void gc_ptr::lvb_slow_path(uint64_t * address, int trigger) {
uint64_t... |
<commit_before>// @(#)root/graf:$Id$
// Author: Olivier Couet
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include "MainWindow.hpp"
#include "ui_mainwindow.h"
#include <QScrollBar>
#include <iostream>
#include "../framework/ModuleManager.hpp"
using namespace std;
using namespace uipf;
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){
ui->setupUi(this);
// Crea... |
<commit_before>#include <windows.h>
#include <assert.h>
#include <stdio.h>
#include "game.h"
#include "game_memory.h"
#include "game_basictypes.h"
#include "win32_debug.h"
LRESULT CALLBACK GameWindowCallback(HWND, UINT, WPARAM, LPARAM);
gamestate_t GameState = {0};
uint
MapFile(const char *Filename, gamememory_t *Me... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pngread.hxx,v $
* $Revision: 1.3... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Pu... |
<commit_before>#include "KVTranslator.h"
#include <QMutex>
#include <QUrl>
#include <QStandardPaths>
#include <QDir>
#include <QByteArray>
#include <QEventLoop>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValue>
#include <QDateTime>
#include <QNetworkRequest>
#include <QNetworkR... |
<commit_before>// C++ source file - (C) 2003 Robert Osfield, released under the OSGPL.
//
// Simple example of use of Producer::RenderSurface + KeyboardMouseCallback + SceneView
// example that provides the user with control over view position with basic picking.
#include <Producer/RenderSurface>
#include <Producer/Ke... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "mylistmodel.h"
#include <QList>
#include <algorithm>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
classes.append(Class());
Class &c = classes.last();
c.nam... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QImage>
#include <QtDebug>
#include <QDir>
#include <QMessageBox>
#include <qmath.h>
#include <math.h>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QString versionS... |
<commit_before>//===-- CommandObjectReproducer.cpp -----------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2015 University of Central Florida's Computer Software Engineering
Scalable & Secure Systems (CSE - S3) Lab
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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: SdShapeTypes.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: af $ $Date: 2002-03-19 17:21:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ScriptingContext.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:31:29 $
*
* The Contents of this file a... |
<commit_before>#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_CC3000.h"
#include <Adafruit_Watchdog.h>
static void printBuffer(uint8_t *buffer, uint8_t len) {
for (uint8_t i=0; i<len; i++) {
if (isprint(buffer[i]))
Serial.write(buffer[i]);
else
Serial.print(" ");
Serial.print(F(" [0x"))... |
<commit_before>/*
* opencog/atoms/execution/ExecutionOutputLink.cc
*
* Copyright (C) 2009, 2013, 2015 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software ... |
<commit_before>/*************************************************************************
*
* $RCSfile: browserlistbox.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2004-03-19 12:00:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/*************************************************************************
*
* $RCSfile: linedescriptor.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-03-25 16:03:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*
* blinkyBlocksSimulator.cpp
*
* Created on: 23 mars 2013
* Author: dom
*/
#include <iostream>
#include "blinkyBlocksSimulator.h"
#include <string.h>
#include "trace.h"
using namespace std;
namespace BlinkyBlocks {
BlinkyBlocksBlockCode*(* BlinkyBlocksSimulator::buildNewBlockCode)(BlinkyBlock... |
<commit_before>//
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Author: Dan Petrie <dpet... |
<commit_before>#include <ctime>
#include <iostream>
#include <vector>
#include "boost/variant.hpp"
#include "type_switchN-patterns-xtl.hpp"
#include "adapt_boost_variant.hpp"
#include "patterns/all.hpp"
struct P { int i; };
struct Q { int i; };
struct R { int i; };
struct M { int i; };
struct N { int i; };
typedef ... |
<commit_before>#include <ftl/ProcessFactory.hpp>
#include <ftl/Dir.hpp>
#include <ftl/Path.hpp>
#include <ftl/Format.hpp>
#include <ftl/PrintDebug.hpp> // debug
#include "Supervisor.hpp"
#include "HaxeMessageSyntax.hpp"
#include "InterpositionServer.hpp"
#include "HaxeCodetips.hpp"
namespace codetips
{
CODETIPS_REGIS... |
<commit_before>#ifndef SpMVAcceleratorDriver_H
#define SpMVAcceleratorDriver_H
#include <assert.h>
class SpMVAcceleratorBufferAllDriver {
public:
static unsigned int expSignature() {return 0xccd68766;};
SpMVAcceleratorDriver(volatile unsigned int * baseAddr) {
m_baseAddr = baseAddr; assert(signature() == expSignatu... |
<commit_before>#include "accent/selectionaccentpainter.h"
#include <QPainter>
#include <QPen>
#include <QDebug>
SelectionAccentPainter::SelectionAccentPainter(const QColor& rectColor, const QColor& shadeColor)
: _cinemaScopePainter(shadeColor, 100)
, _rectangleSelectedPainter(QPen(rectColor, 1, Qt::SolidLine)... |
<commit_before>//
// Created by Vadim N. on 04/04/2015.
//
//#include <omp.h>
//#include <stdio.h>
//
//int main() {
//#pragma omp parallel
// printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
//}
#include <ostream>
#include "Model"
using namespace ymir;
/**
* \brief ... |
<commit_before>#include "mswin.h"
#include "kdtree.h"
#include "partition.h"
#include "memory.h"
#include "aligned-arrays.h"
#include "config.h"
#include "model.h"
#include "vector.h"
#include "compiler.h"
#include <cstdint>
#include <limits>
namespace
{
inline unsigned nodes_required (unsigned point_count)
{
... |
<commit_before>#include "aquila/global.h"
#include "aquila/source/SignalSource.h"
#include "aquila/transform/FftFactory.h"
#include "aquila/source/WaveFile.h"
#include <algorithm>
#include <functional>
#include <memory>
#include <iostream>
#include <cstdlib>
#include "FFTreader.hpp"
using namespace std;
#define abs_amp... |
<commit_before>#include "client/libceph.h"
#include <string.h>
#include <fcntl.h>
#include <iostream>
#include "common/ceph_argparse.h"
#include "common/Mutex.h"
#include "messages/MMonMap.h"
#include "common/common_init.h"
#include "msg/SimpleMessenger.h"
#include "client/Client.h"
#include "ceph_ver.h"
/* *******... |
<commit_before>#include "loader.h"
Loader::Loader(Disk &diskName)
{
std::string textFromFile = loadTextFile("..\\res\\Program-File.txt");
//this can be made more efficient by modifying parseString_v method in loader.cpp, having a switch statement inside the while loop to load two
//PCB(control cards) and instruct... |
<commit_before>#include <fstream>
#include <string>
#include <iostream>
#include <sstream>
#include "sysfs_w1.h"
bool operator== (const TSysfsOnewireDevice & first, const TSysfsOnewireDevice & second)
{
return first.DeviceName == second.DeviceName;
}
TSysfsOnewireDevice::TSysfsOnewireDevice(const string& device_... |
<commit_before>#include <iostream>
#include <execinfo.h>
#include <sdsl/vectors.hpp>
#include <sdsl/lcp.hpp>
#include <sdsl/suffix_arrays.hpp>
#include <sdsl/wavelet_trees.hpp>
#include <sdsl/config.hpp>
#include "OrderedAlphabet.hpp"
#include "DataTypes.h"
#include "WTRank.h"
#include "Algorithm1A.h"
#include "A... |
<commit_before>#include "Logger.hpp"
#include "Environment.hpp"
#include "Filesystem.hpp"
#include "Renderer.hpp"
#include "Taskbar.hpp"
#include "Pane.hpp"
#include "Util.hpp"
#include <ctime>
Environment::Environment(sf::VideoMode dimensions, std::string title, int envID)
{
if (!environment::util::fs_ready())
en... |
<commit_before>#include <algorithm> // random_shuffle, transform
#include <cassert>
#include <chrono>
#include <fstream>
#include <iostream>
#include <random>
#include <set>
#include <utility> // pair
#include <sdd/sdd.hh>
#include <sdd/dd/lua.hh>
#include "mc/bound_error.hh"
#include "mc/bounded_post.hh"
#include "... |
<commit_before>/*
* Copyright (c) 2002-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>//===------------------------ memory.cpp ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/*
* Mickey Scheme
*
* Copyright (C) 2011-2012 Christian Stigen Larsen <csl@sublevel3.org>
* http://csl.sublevel3.org _
* \
* Distributed under the LGPL 2.1; see LICENSE /\
* Please post bugfixes and sug... |
<commit_before>#include "box.hpp"
#include <utility>
#include <stdexcept>
#include <iostream>
#include <cassert>
#include <array>
#include <glm/gtx/io.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/component_wise.hpp>
namespace mo {
Box::Box(){
}
Box::Box(const glm::vec3 & min... |
<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>/*
* 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>#include "parquet/parquet.h"
#include "encodings.h"
#include <string>
#include <string.h>
#include <thrift/protocol/TDebugProtocol.h>
const int DATA_PAGE_SIZE = 64 * 1024;
using namespace boost;
using namespace parquet;
using namespace std;
namespace parquet_cpp {
InMemoryInputStream::InMemoryInput... |
<commit_before>#include "parser.hpp"
namespace {
bool isdigit(char c)
{
// TODO Should we instanciate the locate every times ?
static std::locale loc;
return std::isdigit(c, loc);
}
}
namespace lyza { namespace json {
void parser::error(lj::producer& p, std::string const& msg)
{
std::string until_eof;
... |
<commit_before>/**
* \file prastar.cc
*
*
*
* \author Seth Lemons
* \date 2008-11-19
*/
#include <assert.h>
#include <math.h>
#include <errno.h>
#include <vector>
#include <limits>
extern "C" {
#include "lockfree/include/atomic.h"
}
#include "util/timer.h"
#include "util/mutex.h"
#include "util/msg_buffer.h"... |
<commit_before>#ifndef ALEPH_TOPOLOGY_IO_GML_HH__
#define ALEPH_TOPOLOGY_IO_GML_HH__
#include <fstream>
#include <map>
#include <set>
#include <regex>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#include <aleph/utilities/String.hh>
namespace aleph
{
namespace top... |
<commit_before>#pragma once
#include <stdlib.h> // aligned_alloc & free
#include <stdint.h> // uintptr_t
#include <cstring> // std::memset
#include <stdexcept> // std::runtime_error
#include "anyode/anyode_blas_lapack.hpp"
namespace AnyODE {
template<typename T> constexpr std::size_t n_padded(std::size_t n, int... |
<commit_before>/**
* \file
* \brief ContiguousRange template class header.
*
* \author Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was no... |
<commit_before>#pragma once
#include <memory>
#include <type_traits>
#include "function_traits.hpp"
namespace kgr {
namespace detail {
using type_id_t = void(*)();
template <typename T> void type_id() {}
enum class enabler {};
constexpr enabler null = {};
template <bool b, typename T>
using enable_if_t = typenam... |
<commit_before>/*
Copyright (c) 2006-2013, 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 ... |
<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>// Copyright Joshua Boyce 2010-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com>
#pra... |
<commit_before>#pragma once
#ifndef OPENGM_ICM_HXX
#define OPENGM_ICM_HXX
#include <vector>
#include <string>
#include <iostream>
#include "opengm/opengm.hxx"
//#include "opengm/inference/visitors/visitor.hxx"
#include "opengm/inference/inference.hxx"
#include "opengm/inference/movemaker.hxx"
#include "opengm/datastr... |
<commit_before>/*
* Copyright (c) 2011-2013 libwallet developers (see AUTHORS)
*
* This file is part of libwallet.
*
* libwallet 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 o... |
<commit_before>/**
* @file llnamelistctrl.cpp
* @brief A list of names, automatically refreshed from name cache.
*
* $LicenseInfo:firstyear=2003&license=viewergpl$
*
* Copyright (c) 2003-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided... |
<commit_before>/*
* Fadecandy device interface
*
* Copyright (c) 2013 Micah Elizabeth Scott
*
* 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 l... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Components project.
**
** $QT_BEGIN_LICENSE:BSD... |
<commit_before>// Filename: thread.cxx
// Created by: drose (08Aug02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Sof... |
<commit_before>/*
* Result set
*/
#include "result.h"
/*
Col: 0, name: boolean_val, type: boolean
Col: 1, name: char_val, type: char
Col: 2, name: character_val, type: char
Col: 3, name: date_val, type: date
Col: 4, name: datetime_val, type: datetime
Col: 5, name: dec_val, type: decimal
Col: 6, name: decimal_val, t... |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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
// 3 of the Lic... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <boost/tokenizer.hpp>
using namespace boost;
using namespace std;
void displayPrompt(){
char *user = getlogin(); //I assign th... |
<commit_before>#include "gen-cpp/trade_report_types.h"
#include "gen-cpp/TradeHistory.h"
#include <thrift/TProcessor.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/protocol/TCompactProtocol.h>
#include <thrift/server/TNonblockingServer.h>
#include <thrift/concurrency/ThreadManager.h>
#include <thri... |
<commit_before>#include <iostream>
#include <stdlib.h>
#include <unistd.h> // Sys calls
#include <stdio.h>
#include <sys/wait.h> // Wait
#include <errno.h> // perror()
#include <string.h> // strtok
#include <cstring> // strcpy()
#include <vector>
#include <array>
void user_prompt(std::string& user)
{
... |
<commit_before>#include <iostream>
#include <string>
#include <queue>
#include <vector>
#include <algorithm>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
const string cmd_delimiter = ";|&#";
void sp... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <string.h>
#include <cstdlib>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
using namespace std;
int main(int argc, char** argv)
{
if(argc == 0) {
cout << "No argument." << endl;
exit(1);
}
int pid = fork();... |
<commit_before>/*
* String hash map.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "strmap.hxx"
#include "pool.hxx"
#include <string.h>
bool
StringMap::Item::Compare::Less(const char *a, const char *b) const
{
return strcmp(a, b) < 0;
}
StringMap::Item *
StringMap::Item::Cloner::operator()(const It... |
<commit_before>#include "system.hpp"
#include <thread>
#include <dirent.h>
#include <sys/stat.h>
#if defined ARCH_LIN
#include <pthread.h>
#include <sched.h>
#endif
#if defined ARCH_WIN
#include <windows.h>
#include <shellapi.h>
#include <processthreadsapi.h>
#endif
namespace rack {
namespace system {
std::l... |
<commit_before>#define BOOST_TEST_MODULE testHdf
#include "boost/test/included/unit_test.hpp"
#include "H5Array.hh"
#include "arrayCommon.hh"
#include <algorithm>
#include <iostream>
struct HdfFixture {
HdfFixture() {}
~HdfFixture() {}
};
char fName[] = "sxrcom10-r0232.h5";
char path[] = "/Configure:0000/Run:0... |
<commit_before>#include <cpr/cpr.h>
#include <json/json.h>
#include <iomanip>
#include <sstream>
#include "lynxbot.h"
#include "timers.h"
#define MAX_URL 128
static const char *UPTIME_API = "https://api.twitch.tv/kraken/streams/";
static time_t bot_time;
static time_t chan_time;
/* init_timers: initialize bot and c... |
<commit_before>// Copyright 2008 Paul Hodge
#include "common_headers.h"
#include "circa.h"
#include "values.h"
namespace circa {
void alloc_value(Term* term)
{
term->value = alloc_from_type(term->type);
update_owner(term);
}
void dealloc_value(Term* term)
{
if (term->value == NULL)
return;
... |
<commit_before>#pragma once
#include <cmath>
#include <iostream>
namespace sim
{
struct Vector
{
double x, y, z;
double norm_sq() { return x*x + y*y + z*z; }
double norm() { return std::sqrt( norm_sq() ); }
Vector
operator+( const Vector& rhs )
{
return Vector {
.x = x + rhs.x,
.y... |
<commit_before>#include "wgf.h"
#include <math.h>
#include <sys/time.h>
#include <memory>
double time_stamp()
{
struct timeval t;
if(gettimeofday(&t, 0) != 0)
exit(-1);
return t.tv_sec + t.tv_usec/1e6;
}
WorkGroupFunc::WorkGroupFunc(int N)
{
runtime = clRuntime::getInstance();
fil... |
<commit_before>/*
* Copyright (c) 2013, Hernan Saez
* 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>#include <iostream>
#include <string>
#include "help.h"
#include <libproc.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#define KwmDaemonPort 3020
int KwmcSockFD;
void Fatal(const std::string &err)
{
std::cout << err << std::endl... |
<commit_before>// Copyright 2016 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gtest/gtest.h>
#include "packager/media/filters/ec3_audio_util.h"
names... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.