text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Add bubblesort implementation<commit_after><|endoftext|> |
<commit_before><commit_msg>am 760f0994: am c0f18b9d: am c4c77d63: Merge "Add property for background GC type"<commit_after><|endoftext|> |
<commit_before>/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* trans/auto_impls.cpp
* - Automatic trait/method impls
*
* Handles implementing Clone (when in 1.29 mode)
*/
#include "main_bindings.hpp"
#include "trans_list.hpp"
#include <hir/hir.hpp>
#include <mir/mir.hpp>
#include <hir_... |
<commit_before><commit_msg>[SQUASH] Make windows happy?<commit_after><|endoftext|> |
<commit_before>#ifndef HMLIB_MEMORY_INC
#define HMLIB_MEMORY_INC 100
#
namespace hmLib{
template<typename T,typename D = default_deleter<const T>>
class clone_ptr{
private:
typedef T* pointer;
typedef D deleter;
typedef clone_ptr<T, D> my_type;
typedef rvalue_reference<my_type> rvalue_reference;
private:
... |
<commit_before><commit_msg>important fix in conversion function<commit_after><|endoftext|> |
<commit_before>#include <iostream>
int main() {
int sum, n1, n2;
std::cout << "Enter n1: ";
std::cin >> n1;
std::cout << "Enter n2: ";
std::cin >> n2;
sum = n1+n2;
std::cout << std::endl;
std::cout << "The sum is: " << sum << std::endl;
return 0;
}
<commit_msg>redundant<commit_after><|endofte... |
<commit_before>#include "gtest/gtest.h"
#include "MockupNetworkManager.hpp"
#include "MockupNetworkEventListener.hpp"
using namespace rd;
//-- Class for the setup of each test
//--------------------------------------------------------------------------------------
class MockupNetworkManagerTest : public testing::Test... |
<commit_before>// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
int Global;
void *Thread1(void *x) {
sleep(1);
Global++;
return NULL;
}
void *Thread2(void *x) {
pthread_mutex_t mtx;
pthread_mutex_init(&mtx, 0);
pthread_mutex_lock(&mt... |
<commit_before>/*************************************************
* Library Internal/Global State Source File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#include <botan/libstate.h>
#include <botan/config.h>
#include <botan/modules.h>
#include <botan/eng... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil -*- */
#include <cassert>
#include <iomanip>
#include <iostream>
#include <vector>
#include <schwa/macros.h>
#include <schwa/config.h>
#include <schwa/pool.h>
#include <schwa/port.h>
#include <schwa/dr.h>
#include <schwa/io/array_reader.h>
#include <schwa/msgpack.... |
<commit_before>#include "stdafx.h"
#include "TestLib.h"
#include "AffineGapVectorized.h"
#include "LandauVishkin.h"
// Test fixture for all the affine gap tests
struct AffineGapVectorizedTest {
AffineGapVectorized<> ag;
AffineGapVectorizedTest() : ag(1, 4, 6, 1) {
initializeLVProbabilitiesToPhredPlus33... |
<commit_before>#include <Nazara/Math/EulerAngles.hpp>
#include <Catch/catch.hpp>
SCENARIO("EulerAngles", "[MATH][EULERANGLES]")
{
GIVEN("Two zero euler angles")
{
Nz::EulerAnglesf firstZero(0.f, 0.f, 0.f);
Nz::EulerAnglesf secondZero(Nz::EulerAngles<int>::Zero());
THEN("They should be equal")
{
REQUIRE(f... |
<commit_before>/* Sirikata
* Context.cpp
*
* Copyright (c) 2010, Ewen Cheslack-Postava
* 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 re... |
<commit_before>#include <iostream>
#include "format.hpp"
int main(int argc, char* argv[]);
int main(int argc, char* argv[])
{
using namespace utils;
{
int a = 1000;
format("%d\n") % a;
}
{
static const char* t = { "Asdfg" };
format("'%s'\n") % t;
}
{
char tmp[100];
strcpy(t... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>// Copyright (c) 2018 Michael C. Heiber
// This source file is part of the Excimontec project, which is subject to the MIT License.
// For more information, see the LICENSE file that accompanies this software.
// The Excimontec project can be found on Github at https://github.com/MikeHeiber/Excimontec
#... |
<commit_before>/*
kopetexsl.cpp - Kopete XSL Routines
Copyright (c) 2003 by Jason Keirstead <[email protected]>
*************************************************************************
* *
* This program is free software; you... |
<commit_before>#include "catch.hpp"
#include "base/rect.h"
TEST_CASE("rect-test", "[rect]")
{
// rect at x,y w,h
/*
(1,6) (4,6)
-----------
| |
| | h=4
| w=3 |
-----------
(1,2) (4, 2)
*/
auto r = recti{1, 2, 3, 4};
... |
<commit_before>//
// Created by Rui Wang on 16-4-30.
//
#include "gtest/gtest.h"
#include "harness.h"
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <chrono>
#include <iostream>
#include <ctime>
#include <cassert>
#include <backend/planner/hybrid_scan_plan.h>
#include <backend... |
<commit_before>/*
* Copyright (C) 2015 midnightBITS
*
* 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 (C) 2013 Max Kellermann <[email protected]>
*
* 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 ... |
<commit_before>#include "GLMaterial.h"
#include "GLTexture.h"
#include "GLShaderManager.h"
#include "Package.h"
namespace {
static const std::string constantVsh = R"GLSL(
attribute vec3 aVertexPosition;
attribute vec2 aVertexUV;
uniform mat4 uProjMatrix;
uniform mat4 uMVMatrix;
... |
<commit_before>/*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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, i... |
<commit_before>// Standard includes
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include <cmath>
#include <string.h>
#include <inttypes.h>
#include <fstream>
// Serial includes
#include <stdio.h> /* Standard input/output definitions */
#include <string.h> /* String function definitions */
#include <u... |
<commit_before>/***********************************************************************
* 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/. *
************... |
<commit_before>/*
* Harp, an efficient IO library for chemistry file formats
* Copyright (C) 2014 Guillaume Fraux
*
* 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/
*/
/*... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#ifdef _MSC_VER
#pragma warning(disable:4244)
#pragma warning(disable:4267)
#pragma warning(di... |
<commit_before>#include <node_version.h>
#if NODE_VERSION_AT_LEAST(0, 11, 1) && !defined(_MSC_VER)
#include <sys/types.h>
#endif
#include <v8.h>
#include <node.h>
#include <errno.h>
#include "nan.h"
#if defined(_MSC_VER)
#include <time.h>
#include <windows.h>
// The closest thing to gettimeofday in... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2017 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/* This file is part of Zanshin
Copyright 2014 Kevin Ottens <[email protected]>
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; either version 2 of
the License or (at your ... |
<commit_before>#include "momentum.h"
#include <boost/unordered_map.hpp>
#include <iostream>
namespace bts
{
#define MAX_MOMENTUM_NONCE (1<<26)
#define SEARCH_SPACE_BITS 50
#define BIRTHDAYS_PER_HASH 8
// I'm a terrible person.
#define UPDATE_HASH(varname) ... |
<commit_before>//------------------------------------------------------------------------------
// Log.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include <cstdio>
#include "Core/Log.h"
#include "Core/Assert.h"
#include "Core/Logger.h"
#include "Core/Th... |
<commit_before>/*
Copyright (C) 2003-2013 by Kristina Simpson <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this softw... |
<commit_before>#include "optimize.hpp"
#include <vector>
#include <cmath>
#include <cstdlib>
#include <cassert>
#include <stdexcept>
#include <limits>
#include <algorithm>
#include "pll_util.hpp"
#include "constants.hpp"
#include "Log.hpp"
using namespace std;
static void traverse_update_partials(pll_utree_t * tree... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCollection.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by... |
<commit_before>// Copyright (c) 2013, Matthew Harvey. All rights reserved.
#include "exception.hpp"
#include "array_utilities.hpp"
#include "assert.hpp"
#include "log.hpp"
#include <boost/static_assert.hpp>
#include <cstring>
#include <iostream>
#include <string>
using jewel::num_elements;
using std::endl;
using std:... |
<commit_before>#include "XmlHelper.h"
#include "Exceptions.h"
#include "Helper.h"
#include <QXmlSchemaValidator>
#include <QXmlSchema>
#include <QUrl>
#include <QTemporaryFile>
#include <QXmlSimpleReader>
#include <QXmlInputSource>
QString XmlHelper::isValidXml(QString xml_file)
{
QXmlSimpleReader xmlReader;
XmlVal... |
<commit_before>//
// HTTPServer.cpp
// Development
//
// Created by Dmitry Soldatenkov on 12.08.14.
//
//
#include "HTTPServer.h"
#include "net/HttpServer.h"
#include "common/RhodesApp.h"
#include "common/RhoFilePath.h"
#include "common/RhoConf.h"
#include "net/URI.h"
#include "ruby/ext/rho/rhoruby.h"
#include "co... |
<commit_before>#include <iostream>
#include <cstring>
#include <csignal>
#include <list>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h>
#include "service.h"
#include "ev++.h"
#include "control.h"
/* TODO: prevent services from respawning... |
<commit_before>#include "Engine.h"
#include "Game.h"
#include "ObjectDummy.h"
#include "BodyRigid.h"
#include "BodyDummy.h"
#include "Physics.h"
#include "ShapeCapsule.h"
#include "ActorBase.h"
#include "Visualizer.h"
#include "sys/SysControl.h"
#ifdef MEMORY_INFO
#define new new(__FILE__, __LINE__)
#endif // MEMORY... |
<commit_before>/*
* AdjMatrix.cpp
*
* Created on: 17/apr/2010
* Author: ciccio
*/
#include "AdjMatrix.h"
#include <stdio.h>
#include <vector>
#include "globals.h"
using namespace std;
AdjMatrix::AdjMatrix() {
// TODO Auto-generated constructor stub
}
AdjMatrix::~AdjMatrix() {
for(int i=0;i<_n;i++)
... |
<commit_before>/*
* Copyright 2015 CEA LIST
*
* This file is part of LIMA.
*
* LIMA 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>#pragma once
#include "dllist.cpp"
template <typename T>
class DoubleLinkedChain : public DoubleLinkedList<T>
{
protected:
void copy(const DoubleLinkedChain<T>& other)
{
if (!other.front || !other.back)
return;
DoubleListElement<T> *pFront = other.front, *pn = pFront... |
<commit_before>/**
* \file
*/
#pragma once
#include "future.hpp"
#include <boost/asio.hpp>
#include <curl/curl.h>
#include <cstddef>
#include <exception>
#include <memory>
#include <mutex>
#include <unordered_map>
namespace asiocurl {
/**
* Services curl easy handles using Boost.ASIO.
*/
class io_servic... |
<commit_before>#pragma once
#include <vector>
#include <map>
#include <string>
#include <functional>
#include "function_traits.hpp"
#include "string_utils.hpp"
//#include "tuple_utils.hpp"
#include "token_parser.hpp"
#include "request.hpp"
#include "response.hpp"
namespace cinatra
{
class HTTPRouter
{... |
<commit_before><commit_msg>For iOS we already hardocde the inifile as rc in the .app directory<commit_after><|endoftext|> |
<commit_before><commit_msg>LOK: Corner case with working dir as '/'.<commit_after><|endoftext|> |
<commit_before>#include "bloomierFilter.h"
BloomierFilter::BloomierFilter(size_t pM, size_t pK, size_t pQ){
mM = pM;;
mK = pK;
mQ = pQ;
mBitVectorSize = ceil(pQ / static_cast<float>(CHAR_BIT));
mBloomierHash = new BloomierHash(pM, pK, mBitVectorSize);
mOrderAndMatchFinder = new OrderAndMatchFinder(pM, pK, mBloom... |
<commit_before>/**
* thrift - a lightweight cross-language rpc/serialization tool
*
* This file contains the main compiler engine for Thrift, which invokes the
* scanner/parser to build the thrift object tree. The interface generation
* code for each language lives in a file by the language name.
*
* @author Mar... |
<commit_before>/**
* \file
* \brief FifoQueue class header
*
* \author Copyright (C) 2014 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 not
* distributed with... |
<commit_before>/*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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... |
<commit_before>/** \file json-voorhees/value.hpp
*
* Copyright (c) 2012 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or... |
<commit_before>/**
* \file TestIssues.cpp
* \brief Issues submitted
* \author Frank Bergmann
*
* <!--------------------------------------------------------------------------
*
* This file is part of libSEDML. Please visit http://sed-ml.org for more
* information about SED-ML. The latest version of libS... |
<commit_before>/**
* @file
* TestRunner.cpp
*
* @brief The main method in this file runs all CppUnit tests.
*
* @date: Oct 16, 2009
* @author: sblume
*/
#include <cppunit/CompilerOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
int main(int argc, char*... |
<commit_before>/*
Copyright (c) 2008, 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>/*
Automaton.cpp - Library for creating and running Finite State Machines.
Published under the MIT License (MIT), Copyright (c) 2015, J.P. van der Landen
*/
#include "Automaton.h"
void atm_timer_millis::set( uint32_t v ) {
value = v;
}
void atm_timer_micros::set( uint32_t v ) {
... |
<commit_before>///
/// @file iterator.hpp
/// @brief The iterator class allows to easily iterate (forward and
/// backward) over prime numbers.
///
/// Copyright (C) 2014 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level dir... |
<commit_before>//
// Copyright (C) 2013-2017 University of Amsterdam
//
// 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 (at your option) any late... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE ScopeReader
#define BOOST_TEST_LOG_LEVEL message
#include <cstddef>
#include <functional>
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "../JPetManager/JPetManager.h"
#include "JPetScopeReaderFixtures.h"
#include "../JP... |
<commit_before>//===- ReadConst.cpp - Code to constants and constant pools ---------------===//
//
// This file implements functionality to deserialize constants and entire
// constant pools.
//
// Note that this library should be as fast as possible, reentrant, and
// threadsafe!!
//
//===--------------------------... |
<commit_before>#include "jakmuse_common.h"
#include <cstdint>
#include <vector>
#include <cstdio>
static void wav_write_header(FILE* f, unsigned samplPerSec, unsigned numSamples)
{
struct wav_header_s {
uint32_t ckId;
uint32_t cksize;
uint32_t WAVEID;
uint32_t fmt_ckId;
uint... |
<commit_before>/** @file
*
* @ingroup modularLibrary
*
* @brief A Preset Object
*
* @details
*
* @authors Théo de la Hogue
*
* @copyright © 2010, Théo de la Hogue @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommons.org/licenses/BSD/
*/
#include "TTPreset.h"
#d... |
<commit_before>//===- ReaderWrappers.cpp - Parse bytecode from file or buffer -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: udlnitem.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2007-05-10 14:33:13 $
*
* The Contents of this file are made ... |
<commit_before>// Battery Arduino library
//
// Copyright (c) 2013,2014 Dave Sieh
// See LICENSE.txt for details.
#include <Arduino.h>
#include "Battery.h"
#include "LEDBlinker.h"
#include "Move.h"
#include "pspc_support.h"
Battery::Battery(int monitorPin, int chargerPin, LEDBlinker *ledBlinker) {
pin = monitorPin;... |
<commit_before><commit_msg>✨ Wasteful (but needed) .is() implementation<commit_after><|endoftext|> |
<commit_before>#include "position.h"
#include <cstring>
#include <cstdlib>
#include <stdexcept>
namespace {
Piece translate_fen_piece(char c) {
Color color = std::isupper(c) ? WHITE : BLACK;
c = std::tolower(c);
PieceKind piece;
switch (c) {
case 'p': piece = PAWN; break;
case 'n': pie... |
<commit_before>// Each task is represented by a front-end given back to the user, which can be
// used to access the result of the computation. This file defines this front
// end.
//
// The only thing the user has access is to the type of result provided by the
// computing unit used to create the task, as it identifi... |
<commit_before>// Copyright (C) 2016 xaizek <[email protected]>
//
// This file is part of uncov.
//
// uncov 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>#include <fstream>
#include <iostream>
using namespace std;
template <class T>
class Tree
{
private:
struct Node
{
T value_;
Node *left;
Node *right;
Node() {};
Node(const T value) : value_(value) { };
~Node() {};
void show(ostream &out, int level) const;
};
Node *root;
void null_... |
<commit_before>#include <fstream>
#include <iostream>
using namespace std;
template <class T>
class Tree
{
private:
struct Node
{
T value_;
Node *left;
Node *right;
Node() {};
Node(const T value) : value_(value) { };
~Node() {};
void show(ostream &out, int level) const;
};
Node *root;
void null_... |
<commit_before>/*
* Copyright (c) 2003-2007, 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>//===--- Multilib.cpp - Multilib Implementation ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright (c) 2011-2014 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 "intro.h"
#include "ui_intro.h"
#include "guiutil.h"
#include "util.h"
#include <boost/filesystem.h... |
<commit_before>#ifndef __CHIP_8__
#define __CHIP_8__
#include <string>
#include <stack>
#include <istream>
#include <atomic>
#include <array>
#include <stdexcept>
#include <iomanip>
#include <tuple>
#include <chrono>
#include "Memory.hpp"
#include "Timer.hpp"
#include "Display.hpp"
#include "Backend.hpp"
namespace C... |
<commit_before>/* Siconos-sample version 3.0.0, Copyright INRIA 2005-2008.
* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
* Siconos is a free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... |
<commit_before>/*******************************************************************************
* Name : OOI CHOON HO
* Student ID : 4805604
* Coursework Title : CSCI336 Assignment 1
* Objecttive : Develop a simple 2D Paint program
*******************************************************************************/
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//===--- Options.cpp - Option info table --------------------------------*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* VR Juggler is (C) Copyright 1998, 1999, 2000 by Iowa State University
*
* Original Authors:
* Allen Bierbaum, Christopher Just,
* Patrick Hartling, Kevin Meinert,
* Carolina Cruz-Neira, Albert Baker
*
* Thi... |
<commit_before><commit_msg>qt: Add test for version info<commit_after><|endoftext|> |
<commit_before>//
// download_manager.cpp
// Cooloi_Assets_Downloader
//
// Created by ESoragoto on 11/17/15.
//
//
#include "download_manager.hpp"
#include "assets_downloader.hpp"
#include "SimpleAudioEngine.h"
#include <iostream>
#include <string>
#include <fstream>
#include <regex>
#include <stdio.h>
#include... |
<commit_before>#include <iostream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <sstream>
#include <map>
#include <vector>
#include <utility>
using namespace std;
typedef pair<string,double> P;
struct node
{
std::vector<struct node *> parents; //for 0 or N-parents; if the vector is empty, the e... |
<commit_before><commit_msg>restore missing frame borders<commit_after><|endoftext|> |
<commit_before>// Always goes first
#define _CUSTOM_UINT64
#include "stdint.h"
// ROS
#include <ros/ros.h>
// bCAP (Always last)
#include "bcap_client.h"
#define PERIOD (100) /* Period Cycle */
#define AMPLITUDE (10) /* Amplitude */
#define E_BUF_FULL (0x83201483)
int main(void)
{
int i, fd;
long *plData;
uint3... |
<commit_before>//===-- ElimAvailExtern.cpp - DCE unreachable internal functions ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mnemonic.cxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: hr $ $Date: 2007-06-27 20:32:25 $
*
* The Contents of this file are made... |
<commit_before>
#include <imgui.cpp>
<commit_msg>Include all imgui files<commit_after>
#include <imgui.cpp>
#include <imgui_draw.cpp>
#include <imgui_demo.cpp>
<|endoftext|> |
<commit_before><commit_msg>init members in correct order<commit_after><|endoftext|> |
<commit_before>#include <pistache/stream.h>
#include "gtest/gtest.h"
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <string>
using namespace Pistache;
TEST(stream, test_buffer) {
char str[] = "test_string";
size_t len = strlen(str);
R... |
<commit_before><commit_msg>fix unit tests<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011-2015 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pdfexport.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: ihi $ $Date: 2007-11-20 17:03:20 $
*
* The Contents of this file are ma... |
<commit_before>/*
* Copyright (C) 2013 Pascal Giorgi
*
* Written by Pascal Giorgi <[email protected]>
*
* ========LICENCE========
* This file is part of the library LinBox.
*
* LinBox is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public
* License... |
<commit_before>/*
*
* Copyright 2017, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#include <ruby.h>
#include <set>
#include <algorithm>
#include <boost/tuple/tuple.hpp>
using namespace boost;
using namespace std;
static VALUE cValueSet;
static ID id_new;
typedef std::set<VALUE> ValueSet;
static ValueSet& get_wrapped_set(VALUE self)
{
ValueSet* object = 0;
Data_Get_Struct(s... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008 Ash Berlin
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 limitatio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.