text stringlengths 54 60.6k |
|---|
<commit_before>/*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
*
* 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
* versio... |
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2008/11/01
// Author: Mike Ovsiannikov
//
// Copyright 2008-2010 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (the "License"... |
<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>///////////////////////////////////////
/// file: conversion.cpp
/// 数制转换
///////////////////////////////////////
#include <iostream>
#include "sqstack.h"
using namespace std;
///
/// 对于任意输入的一个非负十进制数,打印输出
/// 与其等值的八进制数
///
void conversion()
{
// 输入十进制数
int n;
cout << "n = ";
cin >> n;
... |
<commit_before>#include <pqxx/compiler-internal.hxx>
#include <iostream>
#include <pqxx/connection>
#include <pqxx/transaction>
#include <pqxx/result>
// Don't try this at home: peeking inside libpqxx to see if we can test the
// column_table() functionality
#include <pqxx/config-internal-libpq.h>
using namespace P... |
<commit_before>#include "gtest/gtest.h"
int main(int argc, char argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}<commit_msg>Initial gtest main file<commit_after>#include "gtest/gtest.h"
int main(int argc, char* argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL... |
<commit_before>#include <hayai.hpp>
#include <boost/format.hpp>
#include <humblelogging/api.h>
#include <db.h>
#include <annotationsearch.h>
#include <operators/precedence.h>
#include <operators/inclusion.h>
HUMBLE_LOGGER(logger, "default");
using namespace annis;
class Tiger
: public ::hayai::Fixture
{
public... |
<commit_before>/******************************************************************************/
/* Copyright (c) 2013 VectorChief (at github, bitbucket, sourceforge) */
/* Distributed under the MIT software license, see the accompanying */
/* file COPYING or http://www.opensource.org/licenses/mit-l... |
<commit_before>// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "expedited.h"
#include "tweak.h"
#include "main.h"
#include "rpc/server.h"
#include "thinblock.h... |
<commit_before>/* SbHalfPong, sort of like Pong but for one
author: Ulrike Hager
*/
#include <iostream>
#include <string>
#include <sstream>
#include <stdexcept>
#include <climits>
#include <cmath>
#include <random>
#include <algorithm>
#include <functional>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <S... |
<commit_before>/*
PStreams - POSIX Process I/O for C++
Copyright (C) 2002 Jonathan Wakely
This file is part of PStreams.
PStreams is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the ... |
<commit_before>
#pragma once
#include "geometry/named_quantities.hpp"
#include "quantities/si.hpp"
// |geometry::Instant| represents instants of Terrestrial Time (TT). The
// utilities in this file provide its standard epoch and two ways of specifying
// TT dates.
namespace principia {
using geometry::Instant;
us... |
<commit_before>#include <iostream>
#include "gtest/gtest.h"
#include "sigs.h"
TEST(General, instantiate)
{
sigs::Signal<void()> s;
sigs::Signal<void(int)> s2;
sigs::Signal<int()> s3;
}
inline void addOne(int &i)
{
i++;
}
TEST(General, function)
{
sigs::Signal<void(int &)> s;
s.connect(addOne);
int i... |
<commit_before><commit_msg>Testing rounded rectangle.<commit_after><|endoftext|> |
<commit_before>#include "MdTest.h"
#include "MemStream.h"
void CMdTest::Compile(Jitter::CJitter& jitter)
{
Framework::CMemStream codeStream;
jitter.SetStream(&codeStream);
jitter.Begin();
{
jitter.MD_PushRel(offsetof(CONTEXT, src1));
jitter.MD_PullRel(offsetof(CONTEXT, dstMov));
//Shifts
ji... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GLBench.h"
#if SK_SUPPORT_GPU
#include "GrTest.h"
#include <stdio.h>
const GrGLContext* GLBench::getGLContext(SkCanvas* canvas) {
// This bench ... |
<commit_before>#include <fstream>
#include <iostream>
#include <math.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
using namespace std;
const int limit = 200;
const int is_line = 100;
typedef struct xyz {
int x;
int y;
... |
<commit_before>#include <iostream>
#include <string>
#include "YetAnotherRegularExpressionEngine.h"
#ifdef _DEBUG
#include <conio.h>
#endif
#if defined(_MSC_VER) && (_M_IX86 >= 500 || defined(_M_AMD64))
#include <intrin.h>
#pragma intrinsic(__rdtsc)
#define rdtsc __rdtsc
typedef unsigned __int64 rdtsc_t;
#else
#includ... |
<commit_before>#include "shader.h"
#include <cstring>
#include "utils.h"
#include <chrono>
#include <iostream>
Shader::Shader():m_program(0),m_fragmentShader(0),m_vertexShader(0), m_backbuffer(0), m_time(false), m_delta(false), m_date(false), m_mouse(false), m_imouse(false), m_view2d(false) {
}
Shader::~Shader() {
... |
<commit_before>// Copyright (c) 2011 Timur Iskhodzhanov and MIPT students. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gtest/gtest.h"
#include "base/common.h"
TEST(CheckTest, CheckTrueSucceedsTest) {
CHECK(1);
CHECK(42);
}... |
<commit_before>/*
* Copyright (C) 2010 Telmo Menezes.
* telmo@telmomenezes.com
*/
#include <stdlib.h>
#include <stdio.h>
#include <sstream>
#include "gpnode.h"
using namespace std;
namespace syn {
GPNode::GPNode(gpnode_type nodetype,
gpnode_fun fun,
gpval val,
u... |
<commit_before>
#include "input.h"
#include <QDebug>
namespace NeovimQt {
InputConv Input;
InputConv::InputConv() {
// see :h key-notation
// special keys i.e. no textual representation
specialKeys.insert(Qt::Key_Up, "Up");
specialKeys.insert(Qt::Key_Down, "Down");
specialKeys.insert(Qt::Key_Left, "Left");
sp... |
<commit_before>// Maintains all the hands rooted at a given street and a given board.
// For small games you can maintain all possible hands by rooting at the
// preflop. For large games, you might create the HandTree for all hands
// rooted at a particular flop board.
#include <stdio.h>
#include <stdlib.h>
#include... |
<commit_before>/*
* Utilities for reading a HTTP body, either request or response.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef BENG_PROXY_HTTP_BODY_HXX
#define BENG_PROXY_HTTP_BODY_HXX
#include "istream/istream_dechunk.hxx"
#include "istream/istream_oo.hxx"
#include "istream/istream.hxx"
#include <inli... |
<commit_before>/*
* int_matrix.h
* Copyright 2014-2015 John Lawson
*
* 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 requ... |
<commit_before>/*
This file is part of the E_Rendering library.
Copyright (C) 2009-2012 Benjamin Eikel <benjamin@eikel.org>
Copyright (C) 2009-2012 Claudius Jähn <claudius@uni-paderborn.de>
Copyright (C) 2009-2012 Ralf Petring <ralf@petring.net>
This library is subject to the terms of the Mozilla Public License,... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* 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 Lic... |
<commit_before>#include <LightGBM/config.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <vector>
#include <string>
#include <unordered_map>
#include <algorithm>
namespace LightGBM {
void OverallConfig::Set(const std::unordered_map<std::string, std::string>& params) {
// load main c... |
<commit_before>/**\file
*
* \copyright
* Copyright (c) 2015, ef.gy Project Members
* \copyright
* 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) 2007, P.F.Peterson <petersonpf@ornl.gov>
* Spallation Neutron Source at Oak Ridge National Laboratory
*
* 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>/*
* This test creates one raw (untyped) subgroup consisting of all the nodes.
* The number of nodes is given as a parameter. After joning, each node sends
* a fixed number of messages of fixed size, where the content of the messages
* is generated at random.
*/
#include <iostream>
#include <map>
#i... |
<commit_before>#include "Database.h"
#include "Defines.h"
#include <QDebug>
#include <QSqlError>
/** Database constructor
* Constructs the local database.
* Currently no interface to handle remote databases, just creates one in the
* current working directory.
*/
Database::Database(QObject* parent)
{
this->pa... |
<commit_before>/*
* gtgtrace
*
* Performs the core loop of the program: propagating satellite position
* forward for the specified number of steps from the specified start time.
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "SGP4.h"
#include "Julian.h"
#include "Timespan.h"
#include "Tle.h... |
<commit_before>/*
* qimp2rage.cpp
*
* Created by Tobias Wood on 2015/08/24.
* Copyright (c) 2015 Tobias Wood.
*
* 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... |
<commit_before>#pragma once
#include <boost/hana/ext/boost/mpl/vector.hpp>
#include <boost/hana/for_each.hpp>
#include <boost/hana/integral_constant.hpp>
#include <boost/hana/map.hpp>
#include <boost/hana/not_equal.hpp>
#include <boost/hana/pair.hpp>
#include <boost/hana/second.hpp>
#include <boost/hana/size.hpp>
#inc... |
<commit_before>/****************************************************************************
This file is part of the QtMediaHub project on http://www.qtmediahub.com
Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
All rights reserved.
Contact: Girish Ramakrishnan girish@forwardbias.in
Contact: N... |
<commit_before>#include "mainframe.hpp"
#include "constants.hpp"
#include "menubar.hpp"
#include "notebook.hpp"
#include "preferences/preferencespagepaths.hpp"
MainFrame::MainFrame(Settings *settings)
: wxFrame(NULL, wxID_ANY, PROGRAM_NAME, wxDefaultPosition, wxSize(WINDOW_WIDTH, WINDOW_HEIGHT))
{
m_preference... |
<commit_before>#include <stdint.h>
namespace moonsniff {
uint8_t test_ctr = 0;
static uint8_t getCtr(){
return test_ctr;
}
static void incrementCtr(){
++test_ctr;
}
}
extern "C" {
uint8_t ms_getCtr(){
return moonsniff::getCtr();
}
void ms_incrementCtr(){
moonsniff::incrementCtr();
}
}
<commit_msg>... |
<commit_before>#include "mpd_client.h"
#include <iostream>
#include <absl/strings/str_format.h>
#include <mpd/capabilities.h>
#include <mpd/connection.h>
#include <mpd/database.h>
#include <mpd/error.h>
#include <mpd/idle.h>
#include <mpd/pair.h>
#include <mpd/password.h>
#include <mpd/player.h>
#include <mpd/protoco... |
<commit_before>#include "command.hh"
#include "globals.hh"
#include "eval.hh"
#include "eval-inline.hh"
#include "names.hh"
#include "get-drvs.hh"
#include "common-args.hh"
#include "json.hh"
#include "json-to-value.hh"
#include "shared.hh"
#include <regex>
#include <fstream>
using namespace nix;
std::string wrap(st... |
<commit_before>#include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
#include <queue>
#include <uv.h>
#include "lib/RtMidi/RtMidi.h"
#include "lib/RtMidi/RtMidi.cpp"
using namespace node;
class NodeMidiOutput : ObjectWrap
{
private:
RtMidiOut* out;
public:
static v8::Persistent<v8::FunctionTemplate... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before>/*
Copyright (c) 2007, Un Shyam
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, Un Shyam & 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
notic... |
<commit_before>/**
* Copyright (c) 2007-2012, Timothy Stack
*
* 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>/*
* Copyright (c) 2003-2009, 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>#include "../NULLC/nullc.h"
#if defined(_MSC_VER)
#pragma warning(disable: 4996)
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
const char* translationDependencies[128];
unsigned translationDependencyCount = 0;
void AddDependency(const char *fileName)
{
if(translati... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc.
*
* 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 ... |
<commit_before>// Copyright (c) 2022 The Orbit 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 <gmock/gmock.h>
#include <gtest/gtest.h>
#include <QCoreApplication>
#include <QEventLoop>
#include <QObject>
#include <QTimer>
... |
<commit_before>/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>#include "TileCollideableGroup.hpp"
#include "Tilemap.hpp"
#include "comp/TileCollisionComponent.hpp"
#include "Logfile.hpp"
#include <unordered_set>
#include <array>
#include <algorithm>
#include <functional>
#include <compsys/Entity.hpp>
TileCollideableInfo::TileCollideableInfo(jd::Tilemap& tilemap):
... |
<commit_before>#include "resources.h"
#include <SFML/System.hpp>
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <dirent.h>
#endif
#include <cstdio>
#include <filesystem>
PVector<ResourceProvider> resourceProviders;
ResourceProvider::ResourceProvider()
{
resourceProviders.push_bac... |
<commit_before>// Copyright (c) 2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "scheduler.h"
#include <assert.h>
#include <boost/bind.hpp>
#include <utility>
CScheduler::CScheduler() ... |
<commit_before>#include <gtest/gtest.h>
#include "../../../src/http/server/request.h"
#include "../../../src/http/server/response.h"
#include "../../mocks/mock_connector/mock_connector.h"
#include "../src/http2/session.h"
#include "../src/http2/stream.h"
#include <memory>
#include <utility>
// TODO this is a duplicat... |
<commit_before>#include "siteeditor.h"
#include <gdk/gdkkeysyms-compat.h>
#include <glibmm/i18n.h>
using namespace AhoViewer;
using namespace AhoViewer::Booru;
#include "booru/site.h"
#include "settings.h"
#include "util.h"
SiteEditor::SiteEditor(BaseObjectType* cobj, const Glib::RefPtr<Gtk::Builder>& bldr)
: Gt... |
<commit_before>/*
Copyright (c) 2012-2014 The SSDB 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 "t_kv.h"
int SSDBImpl::multi_set(const std::vector<Bytes> &kvs, int offset, char log_type){
Transaction trans(binlogs);
std::... |
<commit_before>#include "config.h"
#include <sys/resource.h>
#include <sys/time.h>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <thread>
#include "regexbench.h"
using namespace regexbench;
static std::map<std::string,... |
<commit_before>// Copyright (C) 2015 team-diana MIT license
#define BOOST_TEST_MODULE PdoConfiguration_test
#include <iostream>
#include <bitset>
#include "hlcanopen/sdo_client.hpp"
#include "hlcanopen/can_msg.hpp"
#include "hlcanopen/types.hpp"
#include "hlcanopen/sdo_data_converter.hpp"
#include "hlcanopen/pdo_conf... |
<commit_before>#include <node_buffer.h>
#include <nan.h>
extern "C" {
#include <string.h>
}
#include "structures.h"
#include "common.h"
using namespace v8;
using namespace node;
static void addHeaderOptions(
Local<Object> jsObject,
uint8_t optionCount,
OCHeaderOption *options ) {
uint32_t optionIndex, option... |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree... |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree... |
<commit_before>// Copyright 2018 The gVisor Authors.
//
// 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>#line 2 "togo/hash.hpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file hash.hpp
@brief Hashing utilities.
@ingroup hash
*/
#pragma once
#include <togo/config.hpp>
#include <togo/debug_constraints.hpp>
#include <togo/types.hpp>
#include <togo/string.hpp>
#include <a... |
<commit_before>/* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 witho... |
<commit_before>#include "test_helpers.hxx"
using namespace PGSTD;
using namespace pqxx;
namespace
{
binarystring make_binarystring(transaction_base &T, string content)
{
return binarystring(T.exec("SELECT " + T.quote_raw(content))[0][0]);
}
void test_binarystring(transaction_base &T)
{
binarystring b = make_bi... |
<commit_before>///===----------------------------------------------------------------------===//
//
// PelotonDB
//
// cache.h
//
// Identification: src/backend/common/cache.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===------------------------------------------... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2013 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
//
#include <QtTe... |
<commit_before>#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include "scr_proto/DiffCommand.h"
// Physical Parameters... What do to with these?
float wheel_radius, axle_length
// Global values for velocity storage
float cmd_vx=0, cmd_vy=0, cmd_vz=0, cmd_wx=0, cmd_wy=0, cmd_wz=0;
// Callback to attach to com... |
<commit_before>/*
* ForageManagerImplementation.cpp
*
* Created on: Feb 20, 2011
* Author: Anakis
*/
#include "ForageManager.h"
#include "server/zone/managers/loot/LootManager.h"
#include "server/zone/managers/resource/ResourceManager.h"
#include "server/zone/managers/minigames/events/ForagingEvent.h"
#incl... |
<commit_before>// ========================================================================================
// ApproxMVBB
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy o... |
<commit_before>#pragma once
#include <cstddef>
#include <memory>
#include <uv.h>
#include "util.hpp"
namespace uvw {
// base structures
struct BaseEvent {
virtual ~BaseEvent() noexcept = 0;
static std::size_t next() noexcept {
static std::size_t cnt = 0;
return cnt++;
}
};
BaseEvent... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez.
// All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it under... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
<commit_before>/*
* Copyright (c) 2011, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Sumit Jain <sumit@cc.gatech.edu>
* Date: 07/21/2011
*
* Geoorgia Tech Graphics Lab and Humanoid Robotics Lab
*
* Directed by Prof. C. Karen Liu and Prof. Mike Stilman
* <karenliu@cc.gatech.edu> <mst... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner
* Copyright (C) 2009, 2010 Peter Schüller
*
* This file is part of dlvhex.
*
* dlvhex is free software; you can redistr... |
<commit_before>/**
* Touhou Community Reliant Automatic Patcher
* Tasogare Frontier support plugin
*
* ----
*
* On-the-fly th175 pl patcher
*/
#include <thcrap.h>
#include "thcrap_tasofro.h"
static void copy_line(const char*& file_in, const char *file_in_end, char*& file_out)
{
const char *search_end =... |
<commit_before>/* libs/graphics/sgl/SkScan_Hairline.cpp
**
** Copyright 2006, 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.apach... |
<commit_before>#include "resourcemanager.hpp"
#include <iostream>
using namespace core;
ResourceManagerTexture::ResourceManagerTexture()
{
defaultrenderer = nullptr;
}
ResourceManagerTexture::~ResourceManagerTexture()
{
}
std::shared_ptr<sdl::Texture> ResourceManagerTexture::get(
std::string texturepath, sd... |
<commit_before>/*
* Author: Csaszar, Peter <csjpeter@gmail.com>
* Copyright (C) 2011 Csaszar, Peter
*/
#include <cxxabi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#ifdef DESKTOP
#include <execinfo.h>
#endif
#include "csjp_exception.h"
... |
<commit_before>#include <blackhole/blackhole.hpp>
//! This example demonstrates the a bit extended blackhole logging library usage and its features.
/*! - detailed formatters and sinks configuration;
* - logger usage without macro.
*/
using namespace blackhole;
// As always specify severity enumeration.
enum cla... |
<commit_before>#include "quadrigacx.h"
#include "parameters.h"
#include "utils/restapi.h"
#include "utils/base64.h"
#include "unique_json.hpp"
#include "hex_str.hpp"
#include "openssl/sha.h"
#include "openssl/hmac.h"
#include <vector>
#include <iomanip>
#include <array>
#include <chrono>
namespace QuadrigaCX {
//for... |
<commit_before>#include "oglrenderer.hpp"
#include "utils/logger.hpp"
#include "graphics/graphics-definitions.hpp"
#include "graphics/shaderprogram.hpp"
#include <iostream>
#include <vector>
#include <boost/format.hpp>
using std::vector;
/**
* Load our default shader on creation.
*/
OGLRenderer::OGLRenderer(shared... |
<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
to use, c... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No ... |
<commit_before>#include "bindings.h"
#include "FindFile.h"
#ifndef DEDICATED_ONLY
#include "../gui/lua/bindings-gui.h"
#endif
#include "bindings-math.h"
#include "bindings-network.h"
#include "bindings-objects.h"
#include "bindings-resources.h"
#include "bindings-gfx.h"
#include "bindings-game.h"
#include "../luaapi/... |
<commit_before>/*
* Plans.cpp
*
* Created on: 08.03.2016
* Author: hartung
*/
#include "initialization/Plans.hpp"
namespace Synchronization
{
} /* namespace Synchronization */
<commit_msg>Remove empty source file from repository<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libmwaw
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007-2008 Inge Walli... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2012 Preferred Networks and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License v... |
<commit_before>/***************************************************************************
* Copyright (c) 2008 Nikolaj Hald Nielsen <nhnFreespirit@gmail.com> *
* Copyright (c) 2009 Roman Jarosz <kedgedev@gmail.com> *
* ... |
<commit_before><commit_msg>lightfields::MRF - commented out an unused variable to fix build errors on Travis<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <cmath>
#include <string>
#include "base/macros.hpp"
namespace principia {
namespace quantities {
template<int64_t LengthExponent, int64_t MassExponent, int64_t TimeExponent,
int64_t CurrentExponent, int64_t TemperatureExponent,
int64_t AmountExponent, int64_t ... |
<commit_before>/* Copyright (c) 2012 Marcello Maggioni
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, merge,... |
<commit_before>/*
* (C) 2015-2016 Augustin Cavalier
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Tester.h"
#include <iostream>
#ifdef _WIN32
# define COLOR_RED ""
# define COLOR_GREEN ""
# define COLOR_RESET ""
#else
# define COLOR_RED "\e[97m\e[101m"
# define COLOR_GREE... |
<commit_before>/*
* Copyright (C) 2007 Tommi Maekitalo
*
* 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
* version 2.1 of the License, or (at your option) any later version.... |
<commit_before>//
// draw.cpp
// solver
//
// Created by Nicolas Levy on 08/04/2016.
// Copyright © 2016 NicolasPierreLevy. All rights reserved.
//
#include "solver.hpp"
#include "detail/solver.hpp"
#include <list>
#include <fstream>
#include <sstream>
#include <string>
#include <iostream>
#include <boost/algorith... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007, Image Engine Design 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:... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.