text stringlengths 54 60.6k |
|---|
<commit_before>/*
Copyright (c) 2014
Author: Jeff Weisberg <jaw @ solvemedia.com>
Created: 2014-Mar-21 16:04 (EDT)
Function: the running task pipeline
*/
#define CURRENT_SUBSYSTEM 't'
#include "defs.h"
#include "diag.h"
#include "config.h"
#include "misc.h"
#include "network.h"
#include "pipeline.h"
#inclu... |
<commit_before>/**
* @file arm.cpp
* @brief Purpose: Contains methods to arm class' management.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include <assert.h>
#include "../include/arm.hpp"
#include "../include/platform.hpp"
#include "... |
<commit_before>///////////////////////////////////////////////////////////////////////
// File: lstmtraining.cpp
// Description: Training program for LSTM-based networks.
// Author: Ray Smith
// Created: Fri May 03 11:05:06 PST 2013
//
// (C) Copyright 2013, Google Inc.
// Licensed under the Apache Lice... |
<commit_before><commit_msg>Fix LTR/RTL handling in Language::FromLanguageTag<commit_after><|endoftext|> |
<commit_before>#include "launcher.hpp"
#include <dirent.h>
#include <errno.h>
#include <libgen.h>
#include <stdlib.h>
#include <pwd.h>
#include <iostream>
#include <sstream>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <boost/lexical_cast.hpp>
#include "foreach.hpp"
using std::cerr;... |
<commit_before>#include <build-bot/bot.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <chrono>
#include <thread>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
nam... |
<commit_before>#include <iostream>
#include <sstream>
#include <fstream>
#include <chrono>
#include <thread>
#include <haywire.h>
#include "lmdb.h"
#include "common.h"
#include "storage/store.h"
#include "storage/lmdb_store.h"
#include "indexing/index_dictionary.h"
#include "indexing/index_writer.h"
#include "haywire.h... |
<commit_before>/*
* Copyright (c) 2003-2016, John Wiegley. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* - Redistributions of source code must retain the above copyright
* notice,... |
<commit_before>/******************************************************************************
* This file is part of the libqgit2 library
* Copyright (c) 2011 Laszlo Papp <djszapi@archlinux.us>
* Copyright (C) 2013 Leonardo Giordani
*
* This library is free software; you can redistribute it and/or
* modify it un... |
<commit_before>// This file is part of BlueSky
//
// BlueSky 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 License, or (at your option) any later version.
//
// BlueSky ... |
<commit_before>// ---------------------------------------------------------------------------
//
// This file is part of the <kortex> library suite
//
// Copyright (C) 2013 Engin Tola
//
// See licence.txt file for licence information.
//
// author: Engin Tola
// e-mail: engintola@gmail.com
//
// ----------------------... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "init.h" // for pwalletMain
#include "rpcserver.h"
#include "ui_in... |
<commit_before>/**
* Copyright (c) 2005 Till Adam <adam@kde.org>
*
* This program 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; version 2 of the License
*
* This program is distributed in the hop... |
<commit_before>/** \brief Utility for displaying various bits of info about a collection of MARC records.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute ... |
<commit_before>#include <v8.h>
#include <node.h>
#include <uv.h>
#include <string>
#include <dbus/dbus.h>
#include "dbus.h"
namespace NodeDBus {
using namespace node;
using namespace v8;
using namespace std;
Handle<Value> GetBus(const Arguments& args)
{
HandleScope scope;
DBusConnection *connection = NULL... |
<commit_before>
#include <utility>
#include <set>
#ifndef TAPAS_DEBUG
#define TAPAS_DEBUG 1 // always use TAPAS_DEBUG
#endif
#include <tapas/common.h>
#include <tapas/test.h>
#include <tapas/geometry.h>
SETUP_TEST;
using V1 = tapas::Vec<1, double>;
using V2 = tapas::Vec<2, double>;
using Reg1 = tapas::Region<1, dou... |
<commit_before>#ifndef diff_hh_INCLUDED
#define diff_hh_INCLUDED
// Implementation of the linear space variant of the algorithm described in
// "An O(ND) Difference Algorithm and Its Variations"
// (http://xmailserver.org/diff2.pdf)
#include "array_view.hh"
#include "vector.hh"
#include <functional>
#include <iterat... |
<commit_before>#include "drsa.h"
Persistent<FunctionTemplate> DRSA::constructor;
void DRSA::Initialize(Handle<Object> target) {
HandleScope scope;
constructor = Persistent<FunctionTemplate>::New(FunctionTemplate::New(DRSA::New));
constructor->InstanceTemplate()->SetInternalFieldCount(1);
constructor->SetClas... |
<commit_before>/**************************************************************************
*
* Copyright 2013 VMware, Inc.
* All Rights Reserved.
*
* 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 t... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
#include "irc.h"
#include "net.h"
#include... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "ba... |
<commit_before>/***********************************************************************
filename: CEGUIPCRERegexMatcher.cpp
created: Mon Jul 27 2009
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/********************************... |
<commit_before>// 7.exercise.11.ch04.04.cpp
//
// Revisit two programs you wrote for the exercises in Chapter 4 or 5. Clean
// up that code according to the rules outlined in this chapter. See if you
// find any bugs in the process.
//
// ORIGINAL STATEMENT
//
// 4.exercise.04.cpp
//
// Write a program to play a... |
<commit_before>#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
#include <map>
#include <string.h>
#include <vector>
#include <time.h>
#include <grp.h>
#include <pwd.h>
#include <iomanip>... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <signal.h>
#include <errno.h>
#include "utils.hpp"
#include "worker_pool.hpp"
#include "async_io.hpp"
#include "tty.hpp"
#inc... |
<commit_before><commit_msg>Make --app switch URL restrictions match normal command line restrictions.<commit_after><|endoftext|> |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
using namespace std;
enum Token {
tok_eof = -1,
tok_identifier = -2, tok_number = -3
};
static string IdentifierStr; // Filled in if tok_identifier
static double NumVal; // Filled in if tok_number
static int gett... |
<commit_before>#include "assert.hh"
#include "buffer.hh"
#include "buffer_manager.hh"
#include "client_manager.hh"
#include "color_registry.hh"
#include "command_manager.hh"
#include "commands.hh"
#include "context.hh"
#include "debug.hh"
#include "event_manager.hh"
#include "file.hh"
#include "filters.hh"
#include "hi... |
<commit_before><commit_msg>Un-mark UILayoutTests as flaky<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2011 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 "base/file_util.h"
#include "base/path_service.h"
#include "base/test/test_timeouts.h"
#include "build/build_config.h"
#includ... |
<commit_before>/**
* @file veilFuse.cc
* @author Rafal Slota
* @copyright (C) 2013 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in 'LICENSE.txt'
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef linux
/* For pread()/pwrite()/utimensat() */
#define _XOPEN_SOURCE 700
... |
<commit_before>#include <stdio.h> // printf
#include <math.h> // sin
#include <time.h> // time
#include <stdlib.h> // srand
#include <string.h> // memcpy
#include <vector>
#include <vorbis/vorbisenc.h>
struct tEncoderState
{
ogg_stream_state os;
vorbis_info vi;
vorbis_comment vc;
vorbis_dsp_state vd;... |
<commit_before>// @(#)root/mathcore:$Id$
// Author: L. Moneta Wed Aug 30 11:10:03 2006
/**********************************************************************
* *
* Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
* ... |
<commit_before>#ifndef mmm_hpp
#define mmm_hpp
#include <cstddef>
#include <cstdlib>
#include <type_traits>
#include <utility>
#include <cmath>
#include <iostream>
/*
TODO:
be consistent about using upper case for template vars
change all mentions of size_t n to size_t N
also Elems, and L,
-------... |
<commit_before>//
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2010-2011 Alessandro Tasora
// Copyright (c) 2013 Project Chrono
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// a... |
<commit_before>#include <fstream>
#include "Set.hpp"
void BFS_corners(std::ofstream *file, int end);
void BFS_edges1(std::ofstream *file);
void BFS_edges2(std::ofstream *file);
int main(int argc, char const *argv[]) {
std::ofstream file;
int end = -1;
if (argc > 1) {
end = 1 + atoi(argv[1]);
... |
<commit_before>#include "codecvt/codecvt"
#include "unit_codecvt_base.h"
//
// Seperate impl of this calculation here for the sake of testing
//
static int utf8_chars_needed(unsigned long char_value)
{
int ret = -1;
if (char_value < 0x80)
ret = 1;
else if (char_value < 0x800)
ret = 2;
else if (char_value < 0x1... |
<commit_before>#include <nekit/utils/boost_tcp_socket.h>
namespace nekit {
namespace utils {
BoostTcpSocket::BoostTcpSocket(boost::asio::io_service &service)
: BoostTcpSocket(service, nullptr) {}
BoostTcpSocket::BoostTcpSocket(boost::asio::io_service &service,
DelegatePointer deleg... |
<commit_before>#include "vast/util/command_line.h"
namespace vast {
namespace util {
bool command_line::add_mode(std::string name, std::string desc,
std::string prompt)
{
if (modes_.count(name))
return false;
auto m = std::make_shared<mode>(
std::move(name), std::move(desc), ... |
<commit_before>/* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2014 Steven Lovegrove
*
* 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 t... |
<commit_before>#include "TCPSocket.h"
#ifndef WIN32 /* UNIX */
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
/**
* Default Constructor, this constructor should only be used by
* clients wanting to use a TCPServer. H... |
<commit_before>#include "ms_layer.hpp"
#include "ms_common.hpp"
#include "ms_map.hpp"
Persistent<FunctionTemplate> MSLayer::constructor;
void MSLayer::Initialize(Handle<Object> target) {
HandleScope scope;
constructor = Persistent<FunctionTemplate>::New(FunctionTemplate::New(MSLayer::New));
constructor->Inst... |
<commit_before>#include "vest.h"
#include "gif_lib.h"
#include "gifs.h"
GifByteType nyan_cat_bytes[] =
{
0x47,0x49,0x46,0x38,0x39,0x61,0x18,0x00,0x10,0x00,0xf3,0x00,0x00,0x1a,0x1a,0x1a,
0xff,0x00,0x00,0x66,0x33,0xff,0xff,0x33,0x99,0x00,0x99,0xff,0x99,0x99,0x99,0xff,
0x99,0x00,0xff,0x99,0x99,0xff,0x99,0xff,0x33,0xf... |
<commit_before>/*
editinteractor.cpp - Interface for edit interactors
Copyright (C) 2007 Klarälvdalens Datakonsult AB
This file is part of GPGME++.
GPGME++ 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... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>/*
SWARM
Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (... |
<commit_before>/* Copyright (c) 2009, Sebastien Mirolo
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 l... |
<commit_before>// Copyright 2013, Alex Horn. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "smt.h"
namespace smt
{
Expr::SolverPtrs Expr::s_solver_ptrs;
unsigned Expr::s_counter = 0;
constexpr const char* const Logics::acronyms[... |
<commit_before>/****************************************************************************
* Copyright (C) 2014-2015 by Savoir-Faire Linux *
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
* ... |
<commit_before>
#include "var.hpp"
genotype::~genotype(){}
zvar::~zvar(){}
void zvar::setPopName(string popName){
name = popName;
}
pooled::~pooled(){}
double pooled::bound(double v){
if(v <= 0.00001){
return 0.00001;
}
if(v >= 0.99999){
return 0.99999;
}
return v;
}
gl::~gl(){}
gl::gl(void... |
<commit_before>/*
* File: cobject.cpp
* Author: Oleg Zharkov
*
*/
#include "waf.h"
#include <boost/algorithm/string.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/tokenizer.hpp>
#include <boost/regex.hpp>
void ModsecRecord::GetAuditHeader(const string str) {
int pointer = str.find("[f... |
<commit_before>#include "command.h"
#include "memory.h"
#include "progressbar.h"
#include "algo/threaded_loop.h"
#include "image.h"
#include "dwi/gradient.h"
#include "dwi/shells.h"
#include "dwi/sdeconv/constrained.h"
using namespace MR;
using namespace App;
void usage ()
{
DESCRIPTION
+ "perform non-negativi... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 27/06/08.
This file is part of MRtrix.
MRtrix 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 Sof... |
<commit_before><commit_msg>we will need automatic calculation of flags buffer also for oriented linear curve once we support it<commit_after><|endoftext|> |
<commit_before>#ifndef CNN_HEADER
#define CNN_HEADER
#include "util.hpp"
#include "convolution.hpp"
#include "maxpool.hpp"
#include "fullconnect.hpp"
#define BUFSIZE (64 * 1024 * 1024)
namespace cnn {
class CNN {
public:
CNN(const std::string &xmlFileName, const std::string &xclbinFile = "NONE") {
... |
<commit_before>#ifndef CNN_HEADER
#define CNN_HEADER
#include "util.hpp"
#include "convolution.hpp"
#include "maxpool.hpp"
#include "fullconnect.hpp"
#include "rbf.hpp"
#include "eventpool.hpp"
#define BUFSIZE (64 * 1024 * 1024)
namespace cnn {
class CNN {
public:
CNN(const std::string &xmlFileName,... |
<commit_before>#ifndef _sql_string_hpp__
#define _sql_string_hpp__
// Copyright (c) 2009-2012, Andre Caron (andre.l.caron@gmail.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*
This file is part of libkdepim.
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
... |
<commit_before>#include "student.hpp"
using namespace std;
void Student::init(string n, int s, int g, string m) {
name = n;
startingYear = s;
graduationYear = g;
addMajors(m);
}
Student::Student() {
init("", 2000, 2004, "");
}
Student::Student(string n, string s, string e, string m) {
int startYear = stringToIn... |
<commit_before>#include "../src/kseq.h"
#include "../src/fastseq.h"
#include "../src/gason.h"
#include "../src/jsonutil.h"
#include "../src/knhx.h"
#include "../src/logger.h"
#include "../src/logsumexp.h"
#include "../src/vguard.h"
#include "../src/optparser.h"
#include "../src/recon.h"
// GNU --version
#define HISTOR... |
<commit_before>/*
* Copyright 2016-2017 deepstreamHub GmbH
*
* 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>#include <CQRealSpin.h>
#include <QLineEdit>
//#include <iostream>
//#include <cassert>
CQRealSpin::
CQRealSpin(QWidget *parent, double value) :
QDoubleSpinBox(parent)
{
init(value);
}
CQRealSpin::
CQRealSpin(double value) :
QDoubleSpinBox(0)
{
init(value);
}
void
CQRealSpin::
init(double value)... |
<commit_before>/****************************************************************************
** libebml : parse EBML files, see http://embl.sourceforge.net/
**
** <file/class description>
**
** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved.
**
** This file is part of libebml.
**
** This library is free sof... |
<commit_before>#include "EventTypes.h"
BOOST_CLASS_EXPORT(MyoSim::onPairEvent);
BOOST_CLASS_EXPORT(MyoSim::onUnpairEvent);
BOOST_CLASS_EXPORT(MyoSim::onConnectEvent);
BOOST_CLASS_EXPORT(MyoSim::onDisconnectEvent);
BOOST_CLASS_EXPORT(MyoSim::onArmSyncEvent);
BOOST_CLASS_EXPORT(MyoSim::onArmUnsyncEvent);
BOOST_CLASS_EXP... |
<commit_before>// Button.cc for FbTk - fluxbox toolkit
// Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
//
// 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 with... |
<commit_before>#include <cstdlib>
#include <time.h>
#include "Move.h"
#include "MoveManager.h"
#include "json/json.h"
#include "schema.h"
#include "../Validator/ObjectRequirement.h"
#include "../Validator/ArrayRequirement.h"
#include "../Simulation/SimException.h"
#include "../Worlds/WorldManager.h"
#include "FlipSpinM... |
<commit_before>#include <iostream>
#include <math.h>
#include "../include/PSATsolver.hpp"
#include "../include/CVC4solver.hpp"
#include "../include/Parser.hpp"
using namespace std;
using namespace arma;
void PSATsolver::solve(char* inputPath, bool v)
{
Parser problem(inputPath);
solve(problem.getN(), problem... |
<commit_before>/*
Copyright (C) 2010 Collabora Multimedia.
@author Mauricio Piacentini <mauricio.piacentini@collabora.co.uk>
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 Foundati... |
<commit_before>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <libclientserver.h>
ServerUnix::ServerUnix(const std::string &path)
{
Init();
m_path = path;
}
ServerUnix::ServerUnix(const std::string &path, mode_t perms)
{
Init();
m_path = path;
m_perms = perms;
}
ServerUnix::~Serve... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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
t... |
<commit_before>/*
* Copyright (c) 2013 Matt Fichman
*
* 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... |
<commit_before>//--------------------------------------------------------------- SudokuGrid.cpp
#include <boost/lexical_cast.hpp>
#include <numeric>
#include <string>
#include <stdexcept>
#include "SetOperations.h"
#include "SudokuGrid.h"
using namespace std;
const SudokuGrid::set_t SudokuGrid::EMPTY;
... |
<commit_before>#include "Tensor.hpp"
#include <errors.hpp>
#include <initializer_list>
#include <array>
extern "C"
mlopenStatus_t mlopenCreateTensorDescriptor(
mlopenTensorDescriptor_t *tensorDesc) {
return mlopen::try_([&] {
mlopen::deref(tensorDesc) = new mlopenTensorDescriptor();
});
}
extern "C"
mlopenStat... |
<commit_before>/***************************************************************************
* This file is part of libmygpo-qt *
* Copyright (c) 2010 - 2011 Stefan Derkits <stefan@derkits.at> *
* Copyright (c) 2010 - 2011 Christian Wagner <christian.wagner86@gmx.at> ... |
<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>/*
* 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>/*
* Copyright (c) 2010, Nicholas Campbell <nicholas.j.campbell@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must r... |
<commit_before>///
/// @file calculator.hpp
/// @brief calculator::eval(const std::string&) evaluates an integer
/// arithmetic expression and returns the result. If an error
/// occurs a calculator::error exception is thrown.
/// <https://github.com/kimwalisch/calculator>
/// ... |
<commit_before>/*
* Copyright deipi.com LLC and contributors. All rights reserved.
*
* 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... |
<commit_before>#include "jewel.h"
#include <SDL2/SDL_image.h>
#include "graphics/Renderer.h"
#include "util/Log.h"
#include "util/Point.h"
namespace bejeweled {
namespace {
int dx[7] = {3,0,1,2,0,1,2};
int dy[7] = {3,0,0,0,1,1,1};
}
Jewel::Jewel() : type_(JewelType::kNull), position_(util::Point(0,0)), texture_(... |
<commit_before>/*
* QML Material - An application framework implementing Material Design.
*
* Copyright (C) 2016 Michael Spencer <sonrisesoftware@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 ca... |
<commit_before>#include "Token/Token.h"
#include "Generator/Generator.h"
#include <cstring>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <getopt.h>
#include <cstdio>
const int MAX_LIBS = 100;
const int MAX_INPUT_FILES = 100;
using namespace dale;
int appears_to_be_lib(char *str)
{
... |
<commit_before><commit_msg>bug fix. initialize all<commit_after><|endoftext|> |
<commit_before><commit_msg>No need for a sub-stream; we reset m_SkipFlag.<commit_after><|endoftext|> |
<commit_before><commit_msg>[PECOFF] Make ReaderCOFF more robust against planned identity_magic() changes.<commit_after><|endoftext|> |
<commit_before><commit_msg>AMDGPU: Fix typo<commit_after><|endoftext|> |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2010-2011 Matthias Kretz <kretz@kde.org>
Vc 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
th... |
<commit_before>#ifndef MJOLNIR_READ_OBSERVER
#define MJOLNIR_READ_OBSERVER
#include <extlib/toml/toml.hpp>
#include <mjolnir/core/Observer.hpp>
#include <mjolnir/util/get_toml_value.hpp>
#include <mjolnir/util/logger.hpp>
namespace mjolnir
{
template<typename traitsT>
Observer<traitsT>
read_observer(const toml::Table... |
<commit_before>/*
Crystal Space Event Queue
Copyright (C) 1998-2004 by Jorrit Tyberghein
Written by Andrew Zabolotny <bit@eltech.ru>, Eric Sunshine, Jonathan Tarbox,
Frank Richter
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
L... |
<commit_before>/*
Copyright (C) 1998-2003 by Jorrit Tyberghein
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any lat... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved
*/
#ifndef _Stroika_Foundation_Streams_InternallySyncrhonizedInputOutputStream_inl_
#define _Stroika_Foundation_Streams_InternallySyncrhonizedInputOutputStream_inl_ 1
/*
*********************************************************... |
<commit_before>// Copyright (c) 2017, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-pinocchio.
// hpp-pinocchio 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 ... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity ... |
<commit_before>#include <cpu/CPUDenseGraphBFSolver.h>
#include <cpu/CPUDenseGraphAnnealer.h>
#include <cpu/CPUBipartiteGraphBFSolver.h>
#include <iostream>
#include <chrono>
#include <cuda_runtime.h>
namespace sq = sqaod;
#ifdef SQAOD_CUDA_ENABLED
# include <cuda/CUDADenseGraphBFSolver.h>
# include <cuda/CUDADenseG... |
<commit_before>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <moe/moe.hpp>
TEST_CASE( "Genetic Algorithm tests", "[genetic]" )
{
auto dataset = moe::util::getAlphabet<char>();
dataset.push_back(' ');
GeneticAlgorithm<char> ga( 200, dataset, 100 );
SECTION( "Getters tests" )
{
S... |
<commit_before>// mlsstr.cc see license.txt for copyright and terms of use
// code for mlsstr.h
// based on ccsstr.cc
#include "mlsstr.h" // this module
#include "xassert.h" // xassert
#include "exc.h" // xformat
#include "strutil.h" // string, replace
#include <iostream.h> // cout
... |
<commit_before>// Copyright Toru Niina 2017.
// Distributed under the MIT License.
#ifndef TOML11_REGION_HPP
#define TOML11_REGION_HPP
#include "exception.hpp"
#include <memory>
#include <vector>
#include <algorithm>
#include <initializer_list>
#include <iterator>
#include <iomanip>
namespace toml
{
namespace deta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.