text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef SILICIUM_SILICIUM_CONFIG_HPP
#define SILICIUM_SILICIUM_CONFIG_HPP
#include <memory>
#include <boost/config.hpp>
#ifdef NDEBUG
# ifdef _MSC_VER
# define SILICIUM_UNREACHABLE() __assume(false)
# else
# define SILICIUM_UNREACHABLE() __builtin_unreachable()
# endif
#else
# define SILICIUM_UNREACH... |
<commit_before>#include <complex>
#include "functions/trig.hh"
#include "functions/full_function_defs.hh"
#include "pointwise_equal.hh"
#include "functions/all_simplifications.hh"
#include <boost/test/unit_test.hpp>
#include "functions/operators.hh"
#include <limits>
BOOST_AUTO_TEST_CASE(trig_tests) {
using namespac... |
<commit_before>/* This is a fuzz test of the permessage-deflate module */
#define WIN32_EXPORT
#include <cstdio>
#include <string>
/* We test the permessage deflate module */
#include "../src/PerMessageDeflate.h"
#include "helpers.h"
struct StaticData {
uWS::ZlibContext zlibContext;
uWS::In... |
<commit_before>#include "sexpr.hpp"
#include "parse.hpp"
#include <algorithm>
template<char ... c>
static int matches(int x) {
static const char data[] = {c..., 0};
for(const char* i = data; *i; ++i) {
if(*i == x) return true;
}
return false;
}
const char selection_prefix = '.';
const char injecti... |
<commit_before>#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <FreeImagePlus.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <fstream>
#include <vector>
using std::cout;
using std::vector;
using std::string;
using std::ifstream;
us... |
<commit_before>
#include "Path.hpp"
#include<iostream>
namespace Ethereum{namespace Connector{
const std::string& Path::toString() const
{
return _path;
}
const char *Path::toCString() const
{
return _path.c_str();
}
std::string DefaultGethPath::RootDirectory()
{
std::string path;
#if defined(__APPL... |
<commit_before>#include "tests.h"
using namespace swoole;
static void coro1(void *arg)
{
long cid = coroutine_get_current_cid();
Coroutine *co = coroutine_get_by_id(cid);
co->yield();
}
TEST(coroutine, create)
{
long cid = Coroutine::create(coro1, NULL);
ASSERT_GT(cid, 0);
coroutine_get_by_id... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
# define DUNE_STUFF_TEST_MAIN_CATCH... |
<commit_before>/*
* TTBlue 4rth order Butterworth Lowpass Filter Object
* Copyright © 2008, Trond Lossius
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "TTLowpassButterworth4.h"
TTLowpassButterworth4::TTLowpassButterworth4(TTUInt16 newM... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before><commit_msg>DevTools: fix potential crash. BUG=15373<commit_after><|endoftext|> |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief 菊水電源インターフェース・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LI... |
<commit_before>#include <sstream>
#include "slice.hpp"
namespace Vole {
using std::stringstream;
template <typename T>
Slice<T>::Slice(size_t l, size_t c)
: mem(new T[c]),
beg(mem),
len(l),
cap(c)
{ }
template <typename T>
Slice<T>::Slice(T* m, T* b, size_t l, size_t c)
: mem(m),
beg... |
<commit_before>#include <string>
class Object
{
public:
virtual std::string toString() = 0;
};
#include <any.h>
#include <nullable.h>
#include <sequence.h>
#include <reflect.h>
#include <org/w3c/dom/NameList.h>
#include <org/w3c/dom/html/Window.h>
#include <org/w3c/dom/css/CSSStyleDeclaration.h>
#include <org... |
<commit_before><commit_msg>fix -Wabsolute-value<commit_after><|endoftext|> |
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open publ... |
<commit_before>/*************************************************************************
*
* $RCSfile: textundo.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:58:58 $
*
* 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: xtextedt.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: hr $ $Date: 2006-06-19 21:03:39 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rngitem.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 15:01:09 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbtoolsclient.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: vg $ $Date: 2006-03-31 12:10:50 $
*
* The Contents of this file are... |
<commit_before>/*************************************************************************
*
* $RCSfile: outleeng.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:01:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before><commit_msg>´Color´ : ambiguous symbol<commit_after><|endoftext|> |
<commit_before>#include "logwindow.h"
LogWindow::LogWindow(QWidget *parent, Qt::WindowFlags f) :
QDialog(parent, f)
{
QSize windowSizes(400, 400);
resize(windowSizes);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
m_textWidget = new QTextEdit(this);
QGridLayout *layout = new QGridLayout(thi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fedesc.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-16 21:13:57 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ww8glsy.cxx,v $
*
* $Revision: 1.28 $
*
* last change: $Author: rt $ $Date: 2007-07-26 08:22:12 $
*
* The Contents of this file are made ... |
<commit_before>// STL
#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
// Boost (Extended STL)
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/tokenizer.hpp>
#include <boost/program_op... |
<commit_before>/*************************************************************************
*
* $RCSfile: labelcfg.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: os $ $Date: 2001-09-21 14:20:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "worldNode.hh"
#include "../logger.hh"
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
#include <sstream>
#include <atomic>
using namespace std;
// Static counter for the id, matters only on server
static std::atomic<unsigned int> nodeIdCounter;
... |
<commit_before>/*
* Stats.cpp
*
*/
#include <sstream>
#include "Stats.h"
#include "WebRtcConnection.h"
namespace erizo {
DEFINE_LOGGER(Stats, "Stats");
Stats::Stats(){
ELOG_DEBUG("Constructor Stats");
theListener_ = NULL;
rtpBytesReceived_ = 0;
gettimeofday(&bitRateCalculationStart_, NULL... |
<commit_before>#define CDM_CONFIGURE_NAMESPACE a0038876
#include "../../cdm/application/using_boost/cdm.hpp"
#include "log.hpp"
#include "boost_root.hpp"
#include <boost/test/unit_test.hpp>
#include <silicium/sink/ostream_sink.hpp>
#include <silicium/file_operations.hpp>
#include <cdm/locate_cache.hpp>
namespace
{
Si... |
<commit_before>#include "fileinfo.hpp"
#include "fileinfo_service.hpp"
namespace x0 {
fileinfo::fileinfo(fileinfo_service& service, const std::string& filename) :
service_(service),
watcher_(service.loop_),
filename_(filename),
exists_(),
etag_(service_.make_etag(*this)),
mtime_(),
mimetype_(service_.get_mimet... |
<commit_before>// Copyright 2010 Gregory Szorc
//
// 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 applicab... |
<commit_before>#include "SUIT_ViewManager.h"
#include "SUIT_Desktop.h"
#include "SUIT_ViewModel.h"
#include "SUIT_Study.h"
#include <qcursor.h>
#include <qmessagebox.h>
#ifdef WNT
#include <windows.h>
#endif
//***************************************************************
SUIT_ViewManager::SUIT_ViewManager( SUIT_S... |
<commit_before>/*
* Super simple Spatialization object for Jamoma DSP
* Copyright © 2011 by Trond Lossius, Nils Peters, and Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "SpatLib.h"
#include "SpatThru.h"
TTEr... |
<commit_before>/*
* TangentRotationReader.cpp
*
* Created on: Feb 21, 2013
* Author: link
*/
#include "TangentRotationReader.hpp"
#include "ImageEdgeFilter.hpp"
#include "DrawingFunctions.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
TangentRotationReader::TangentRotationReader(
... |
<commit_before>#include "include/bp.h"
#include <cmath>
namespace ginf {
// Sum up messages sent to a node by its neighbours
template <typename T>
void bpCollect(Grid<T> *grid, Matrix<T> *msgs, Matrix<T> *from, int x, int y) {
// For each label
for (int i = 0; i < grid->getNumLabels(); i++) {
from->get(x, y... |
<commit_before>/*
* Copyright (c) 2012 by KO Myung-Hun <komh@chollian.net>
* 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 ab... |
<commit_before>// 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 applicable law or agreed to in writing, software
// ... |
<commit_before>/*
SWARM
Copyright (C) 2012-2017 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) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <sstream>
#include <deque>
#include <iostream>
#include "halValidate.h"
#include "hal.h"
using namespace std;
using namespace hal;
// current implementation is poor and hack... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2016-2017 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>#include <iostream>
#include <unordered_map>
#include <chrono>
#include <cstdlib>
#include <vector>
typedef size_t join_single_key_t;
typedef size_t pos_t;
typedef std::unordered_multimap<join_single_key_t, pos_t> hmap_t;
int main() {
// Initialize mmup
hmap_t mmup;
std::vector<size_t> randVals... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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 applic... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace search::lp;
using namespace search;
namespace UnitTests
{
TEST_CLASS(test_lifelong_planning)
{
public:
TEST_METHOD(cost_function)
{
Assert... |
<commit_before>/*************************************************************************/
/* freedesktop_screensaver.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
<commit_before>#include "bench_util.h"
struct NotPacked {
char c = 'c';
long l = 42;
char a = 'a';
char b = 'b';
int i = 42;
double d = 3.22;
};
struct Packed {
char c = 'c';
long l = 42;
char a = 'a';
char b = 'b';
int i = 42;
double d = 3.22;
} __attribute((packed));
const int qty = 1000000000;
int mai... |
<commit_before>/*
* KDots
* Copyright (c) 2011, 2012, 2014, 2015 Minh Ngo <minh@fedoraproject.org>
*
* 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 retain the above c... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2018 Scott Moreau
*
* 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>/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this fil... |
<commit_before>#include "xz.hh"
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wdocumentation"
#pragma GCC diagnostic ignored "-Wdocumentation-unknown-command"
#endif
#define lzma_nothrow
#include <lzma.h>
#pragma GCC diagnostic pop
// ---------------------------------------------------... |
<commit_before>/* logs.cc
Eric Robert, 9 October 2013
Copyright (c) 2013 Datacratic. All rights reserved.
Basic logs
*/
#include "soa/service/logs.h"
#include "jml/utils/exc_check.h"
#include <iostream>
#include <mutex>
#include <unordered_map>
#include <vector>
namespace Datacratic {
void Logging::Conso... |
<commit_before>/*
Deutsch-Jozsa Problem
=====================
Given a list of number(0 / 1) of length n which
have one of the following condtions
- all number are equal to each other
- number of 0s is equal to number of 1s
The task is to determine which condition the list has.
By using conventional compution in ... |
<commit_before>/**
* SCC0250 - Computação Gráfica
* Trabalho 1 - Catavento
* Alunos:
* Felipe Scrochio Custódio - 9442688
* Henrique Loschiavo -
* Lucas Antognoni -
* Gustavo Santiago -
**/
#include <GL/glut.h>
void draw(void)
{
// Background color
glClearColor(1, 1, 1, 1)... |
<commit_before>//
// yas_processing_routing_module.cpp
//
#include "yas_processing_routing_modules.h"
#include "yas_processing_module.h"
#include "yas_processing_signal_event.h"
#include "yas_processing_receive_signal_processor.h"
#include "yas_processing_send_signal_processor.h"
#include "yas_processing_remove_signa... |
<commit_before>// sol2
// The MIT License (MIT)
// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors
// 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, includin... |
<commit_before>#include "Halide.h"
#include <stdio.h>
using namespace Halide;
template<typename A>
const char *string_of_type();
#define DECL_SOT(name) \
template<> \
const char *string_of_type<name>() {return #name;}
... |
<commit_before>/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 ... |
<commit_before>#include <os>
#include <iostream>
using namespace std;
struct TestAddr
{
// constructors
TestAddr()
: i64{0, 0} {}
TestAddr(uint32_t a, uint32_t b, uint32_t c, uint32_t d)
: i32{a, b, c, d} {}
TestAddr(uint64_t top, uint64_t bot)
: i64{top, bot} {}
// copy-constructor
TestAdd... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 (a... |
<commit_before>#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
<commit_msg>Added Fusion style to application.<commit_after>#include "mainwindow.h"
#include <QApplication>
#include <QStyleFactory>... |
<commit_before>6ff6c89a-5216-11e5-915d-6c40088e03e4<commit_msg>6ffd6a1a-5216-11e5-8b23-6c40088e03e4<commit_after>6ffd6a1a-5216-11e5-8b23-6c40088e03e4<|endoftext|> |
<commit_before>cbb6fd97-327f-11e5-863e-9cf387a8033e<commit_msg>cbc46de6-327f-11e5-b01d-9cf387a8033e<commit_after>cbc46de6-327f-11e5-b01d-9cf387a8033e<|endoftext|> |
<commit_before>#include <specs/specs.h>
go_bandit([](){
describe("dots_reporter:", [&](){
unique_ptr<std::stringstream> stm;
unique_ptr<bandit::dots_reporter> reporter;
before_each([&](){
stm = unique_ptr<std::stringstream>(new std::stringstream());
reporter = unique_ptr<bandit::dots_repo... |
<commit_before>a2289e42-ad59-11e7-be2c-ac87a332f658<commit_msg>Initial commit.2<commit_after>a3af24de-ad59-11e7-8b12-ac87a332f658<|endoftext|> |
<commit_before>a92e9a9c-35ca-11e5-9051-6c40088e03e4<commit_msg>a93656b0-35ca-11e5-965d-6c40088e03e4<commit_after>a93656b0-35ca-11e5-965d-6c40088e03e4<|endoftext|> |
<commit_before>8e93eef8-2e4f-11e5-873a-28cfe91dbc4b<commit_msg>8e9c8535-2e4f-11e5-90d9-28cfe91dbc4b<commit_after>8e9c8535-2e4f-11e5-90d9-28cfe91dbc4b<|endoftext|> |
<commit_before>#include <iostream>
#include <vector>
#include <string>
#include "Coordinate.h"
#include "Maze.h"
using std::vector;
using std::string;
const Coordinate dirs[] = {
Coordinate( -1, 0 ),
Coordinate( 0, 1 ),
Coordinate( 0, -1 ),
Coordinate( 1, 0 )
};
const char left[] = { 'a', 'h' };
const ... |
<commit_before>c3641afd-327f-11e5-9535-9cf387a8033e<commit_msg>c36a88eb-327f-11e5-9fbd-9cf387a8033e<commit_after>c36a88eb-327f-11e5-9fbd-9cf387a8033e<|endoftext|> |
<commit_before>070602f0-2f67-11e5-b189-6c40088e03e4<commit_msg>070cb0fa-2f67-11e5-af7d-6c40088e03e4<commit_after>070cb0fa-2f67-11e5-af7d-6c40088e03e4<|endoftext|> |
<commit_before>5bf67435-2d16-11e5-af21-0401358ea401<commit_msg>5bf67436-2d16-11e5-af21-0401358ea401<commit_after>5bf67436-2d16-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>/*
* Copyright (c) 2003-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>6edcb0a2-5216-11e5-b716-6c40088e03e4<commit_msg>6ee355ca-5216-11e5-b6a7-6c40088e03e4<commit_after>6ee355ca-5216-11e5-b6a7-6c40088e03e4<|endoftext|> |
<commit_before>#include <cstdio>
#include "Observer.hpp"
namespace
{
void formatAngle(char *str, int const length, double const angleDeg)
{
long const angleMilliDeg = std::lround(degrees(angleDeg) * 1000);
long const degrees = angleMilliDeg / 1000 % 360;
long const milliDegrees = angleM... |
<commit_before>7f6cf647-2d15-11e5-af21-0401358ea401<commit_msg>7f6cf648-2d15-11e5-af21-0401358ea401<commit_after>7f6cf648-2d15-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>7813d488-2d53-11e5-baeb-247703a38240<commit_msg>7814544e-2d53-11e5-baeb-247703a38240<commit_after>7814544e-2d53-11e5-baeb-247703a38240<|endoftext|> |
<commit_before>221a730c-ad5b-11e7-9d7d-ac87a332f658<commit_msg>Did ANOTHER thing<commit_after>22ddb97d-ad5b-11e7-8325-ac87a332f658<|endoftext|> |
<commit_before>973c4852-35ca-11e5-888f-6c40088e03e4<commit_msg>97479b1c-35ca-11e5-84f1-6c40088e03e4<commit_after>97479b1c-35ca-11e5-84f1-6c40088e03e4<|endoftext|> |
<commit_before>b13b8a4a-327f-11e5-97d6-9cf387a8033e<commit_msg>b141578f-327f-11e5-87cf-9cf387a8033e<commit_after>b141578f-327f-11e5-87cf-9cf387a8033e<|endoftext|> |
<commit_before>5ec04fb0-5216-11e5-b651-6c40088e03e4<commit_msg>5ec70788-5216-11e5-9d95-6c40088e03e4<commit_after>5ec70788-5216-11e5-9d95-6c40088e03e4<|endoftext|> |
<commit_before>e3241982-327f-11e5-93e1-9cf387a8033e<commit_msg>e329f0bd-327f-11e5-97a4-9cf387a8033e<commit_after>e329f0bd-327f-11e5-97a4-9cf387a8033e<|endoftext|> |
<commit_before>6b3e69f6-2fa5-11e5-9ea8-00012e3d3f12<commit_msg>6b40b3e4-2fa5-11e5-9221-00012e3d3f12<commit_after>6b40b3e4-2fa5-11e5-9221-00012e3d3f12<|endoftext|> |
<commit_before>/*
Please see LICENSE_flynda
*/
#include "inotify-cxx.h"
#include<string>
#include<iostream>
#include <stdio.h>
#include<thread>
void watch(std::string& folder);
std::string exec(char* cmd);
int main(){
using namespace std;
/*
watching a directory
*/
string dir = "/tmp";
string dir2 = "/proc... |
<commit_before>// Written by : Chirantan Mitra
#include <igloo/igloo_alt.h>
#include <matrix.h>
using namespace igloo;
using namespace CMatrix;
class testFunctionoidWithOneParameter
{
public:
double operator() (double x)
{
return x + 1.0;
}
};
class testFunctionoidWithTwo... |
<commit_before>83000d88-2d15-11e5-af21-0401358ea401<commit_msg>83000d89-2d15-11e5-af21-0401358ea401<commit_after>83000d89-2d15-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>120b3c5e-2748-11e6-abc9-e0f84713e7b8<commit_msg>We apologise for the previous fix. Those responsible have been sacked<commit_after>1217369e-2748-11e6-bd8b-e0f84713e7b8<|endoftext|> |
<commit_before>92323b58-2d14-11e5-af21-0401358ea401<commit_msg>92323b59-2d14-11e5-af21-0401358ea401<commit_after>92323b59-2d14-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cassert>
#include <napkin/exception.h>
#include "db.h"
#include "config.h"
namespace napkin {
extern const char *sql_bootstrap;
db_t::db_t() {
const char *h = getenv("HOME");
if(h) {
datadir = h;
datadir +=... |
<commit_before>b0183bb0-2e4f-11e5-968e-28cfe91dbc4b<commit_msg>b01ed7ae-2e4f-11e5-8230-28cfe91dbc4b<commit_after>b01ed7ae-2e4f-11e5-8230-28cfe91dbc4b<|endoftext|> |
<commit_before>92323b53-2d14-11e5-af21-0401358ea401<commit_msg>92323b54-2d14-11e5-af21-0401358ea401<commit_after>92323b54-2d14-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>f461dc5c-327f-11e5-8fca-9cf387a8033e<commit_msg>Final commit :sunglasses:<commit_after>#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}
<|endoftext|> |
<commit_before>8d6dfcb2-2d14-11e5-af21-0401358ea401<commit_msg>8d6dfcb3-2d14-11e5-af21-0401358ea401<commit_after>8d6dfcb3-2d14-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>66381c6e-2e3a-11e5-b445-c03896053bdd<commit_msg>6647888c-2e3a-11e5-9f70-c03896053bdd<commit_after>6647888c-2e3a-11e5-9f70-c03896053bdd<|endoftext|> |
<commit_before>#include <QApplication>
#include <QtQml>
#include <QtQuick/QQuickView>
#include <QtCore/QString>
#include <QDebug>
#include "aztterplugin/aztterplugin.h"
#include "aztterplugin/azttertweetlistmodel.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QQmlApplicationEngine engine(QUrl("q... |
<commit_before>#include <shaderboiler.h>
#include <iostream>
void main()
{
using namespace sb;
using namespace sb::gl440;
{
context ctx;
vec4 AmbientColor = ctx.uniform<vec4>("AmbientColor");
vec3 normal = ctx.in<vec3>("normal");
vec3 vertex_to_light_vector = ctx.in<vec3>("vertex_... |
<commit_before>a29a5511-ad58-11e7-9044-ac87a332f658<commit_msg>new flies<commit_after>a30d6954-ad58-11e7-be60-ac87a332f658<|endoftext|> |
<commit_before>796b8c54-2d53-11e5-baeb-247703a38240<commit_msg>796c1372-2d53-11e5-baeb-247703a38240<commit_after>796c1372-2d53-11e5-baeb-247703a38240<|endoftext|> |
<commit_before>fff7fad4-2e4e-11e5-acd0-28cfe91dbc4b<commit_msg>fffe753a-2e4e-11e5-9dca-28cfe91dbc4b<commit_after>fffe753a-2e4e-11e5-9dca-28cfe91dbc4b<|endoftext|> |
<commit_before>1a432952-585b-11e5-a9c0-6c40088e03e4<commit_msg>1a4cc6a6-585b-11e5-b119-6c40088e03e4<commit_after>1a4cc6a6-585b-11e5-b119-6c40088e03e4<|endoftext|> |
<commit_before>5de73052-5216-11e5-8823-6c40088e03e4<commit_msg>5dee000a-5216-11e5-b586-6c40088e03e4<commit_after>5dee000a-5216-11e5-b586-6c40088e03e4<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.