text stringlengths 54 60.6k |
|---|
<commit_before>// $Id$
// Author: Sergey Linev 21/12/2013
#include "TCivetweb.h"
#include "../civetweb/civetweb.h"
#include <stdlib.h>
#include <string.h>
#include "THttpServer.h"
#include "TUrl.h"
TCivetweb* TCivetweb::fTemp = 0;
static int log_message_handler(const struct mg_connection *conn, const char *mess... |
<commit_before>// Copyright (c) 2014 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/extension/application_widget_storage.h"
#include <string>
#include "base/file_util.h"
#include "base/strings... |
<commit_before>// ThreadedAudioDevice.cpp
//
// Base class for all classes which spawn thread to run loop.
//
#include "ThreadedAudioDevice.h"
#include <sys/time.h>
#include <sys/resource.h> // setpriority()
#include <sys/select.h>
#include <string.h> // memset()
#include <stdio.h>
#include <assert.h>
#include <errn... |
<commit_before>/*
* File: main_voctreeLocalizer.cpp
* Author: sgaspari
*
* Created on September 12, 2015, 3:16 PM
*/
#include <openMVG/localization/VoctreeLocalizer.hpp>
#include <openMVG/localization/CCTagLocalizer.hpp>
#include <openMVG/localization/optimization.hpp>
#include <openMVG/sfm/pipelines/localizati... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Cards/Cards.hpp>
#include <Ro... |
<commit_before>/*
Copyright 2014 Sarah Wong
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 t... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2010, 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
// ... |
<commit_before>/*
* Qumulus UML editor
* Author: Frank Erens
* Author: Randy Thiemann
*
*/
#include "Operation.h"
#include <Uml/Kernel/Class.h>
#include "Parameter.h"
#include "Class.h"
QUML_BEGIN_NAMESPACE_UK
Operation::Operation(QString name, Class* c) :
mClass(c),
mQuery(false) {
set... |
<commit_before>// Copyright (c) 2006-2008 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 <Windowsx.h>
#include "base/registry.h"
#include "Resource.h"
// This enum needs to be in sync with the strings below.... |
<commit_before><commit_msg>Removed unused headers<commit_after><|endoftext|> |
<commit_before>#include <stan/math/prim/mat/fun/value_of.hpp>
#include <test/unit/math/rev/mat/fun/util.hpp>
#include <gtest/gtest.h>
TEST(MathMatrix,value_of) {
using stan::math::value_of;
using std::vector;
vector<double> a_vals;
for (size_t i = 0; i < 10; ++i)
a_vals.push_back(i + 1);
vector<double... |
<commit_before>// Copyright (c) 2011, Christian Rorvik
// Distributed under the Simplified BSD License (See accompanying file LICENSE.txt)
#include "crunch/concurrency/detail/system_mutex.hpp"
#include <windows.h>
namespace Crunch { namespace Concurrency { namespace Detail {
SystemMutex::SystemMutex()
{
static_... |
<commit_before>#include "Sofa/Components/StaticSolver.h"
#include "Sofa/Core/MechanicalGroup.h"
#include "Sofa/Core/MultiVector.h"
#include "XML/SolverNode.h"
#include <math.h>
#include <iostream>
using std::cout;
using std::cerr;
using std::endl;
namespace Sofa
{
namespace Components
{
using namespace Common;
usin... |
<commit_before>/*
This file is part of MMOServer. For more information, visit http://swganh.com
Copyright (c) 2006 - 2010 The SWG:ANH Team
MMOServer 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 v... |
<commit_before>#include <nan.h>
#include "env-rocks.h"
using namespace v8;
using namespace rocksdb;
namespace kv { namespace rocks {
void env::setup_export(v8::Handle<v8::Object>& exports) {
// Prepare constructor template
Local<FunctionTemplate> envTpl = NanNew<FunctionTemplate>(env::ctor);
envTpl->SetClassName... |
<commit_before>/* Compile with:
* g++ -Wall -Wextra -Werror -std=gnu++11 -o tlist tlist.cpp
*/
#include <iostream>
#include <cassert>
#include <string>
template<int T, class U>
struct tlist
{
typedef int head;
typedef U tail;
};
struct null_type
{};
template<class tlist> struct length;
template<> struct length... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2012, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "WMProcess.h"
#include "LSession.h"
WMProcess::WMProcess... |
<commit_before>#pragma once
#include <string>
#include <sstream>
#include "But/assert.hpp"
#include "detail/parse.hpp"
#include "detail/argumentsCount.hpp"
#include "detail/allArgumentsUsed.hpp"
#include "But/Log/Backend/toValue.hpp"
#include "But/Log/Backend/toType.hpp"
#include "Invalid.hpp"
#include "detail/StreamVi... |
<commit_before><commit_msg>Addressed review comments (MLDB-1738)<commit_after><|endoftext|> |
<commit_before>#include "Client.h"
#include "../Service/Exception/Exception.h"
using namespace qReal;
using namespace client;
Client::Client()
{
loadFromDisk();
}
Client::~Client()
{
saveToDisk();
}
IdTypeList Client::children( IdType id )
{
if (mObjects.contains(id)) {
return mObjects[id]... |
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <libtorrent/session.hpp>
#include <boost/python.hpp>
using namespace boost::p... |
<commit_before>#pragma once
#include <string>
#include <sstream>
#include "But/assert.hpp"
#include "detail/parse.hpp"
#include "detail/argumentsCount.hpp"
#include "detail/allArgumentsUsed.hpp"
#include "Invalid.hpp"
#include "detail/StreamVisitor.hpp"
namespace But
{
namespace Format
{
/** @brief represents a parse... |
<commit_before>#include <osgProducer/Viewer>
#include <osg/Projection>
#include <osg/Geometry>
#include <osg/Texture>
#include <osg/TexGen>
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/PolygonOffset>
#include <osg/CullFace>
#include <osg/TextureCubeMap>
#include <osg/TexMat>
#include <osg/MatrixTran... |
<commit_before>/******************************************************************************\
* File: test.cpp
* Purpose: Implementation for wxextension cpp unit testing
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
* Created: za 17 jan 2009 11:51:20 CET
*
* Copyright (c) 2009 Anton ... |
<commit_before><commit_msg>change toml::value::cast to toml::get<commit_after><|endoftext|> |
<commit_before>/**
* Copyright (c) 2015 Damien Tardy-Panis
*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
**/
#include "TubeyToons.h"
#include <QDebug>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
TubeyToons::Tubey... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2014, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "LPlugins.h"
#include <LuminaUtils.h>
LPlugins::LPlugin... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include "GArgs.h"
#include "gff.h"
#include "GIntervalTree.h"
using std::cout;
#define VERSION "0.10.6"
bool simpleOvl=false;
bool strictMatching=false;
struct GSTree {
GIntervalTree it[3]; //0=unstranded, 1: + strand, 2 : - strand
};
int... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/storage/bucketdb/storbucketdb.h>
#include <vespa/storage/common/bucketmessages.h>
#include <vespa/storage/bucketmover/bucketmover.h>
#include <vespa/document/test/make_b... |
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
/* rev'd for v2.3, JGG, 20-Feb-00 */
/* rev'd for v3.7 (converted to C++ source), DS, April-04 */
#in... |
<commit_before>#include <yuni/yuni.h>
#include <yuni/core/getopt.h>
#include <nany/nany.h>
#include <yuni/datetime/timestamp.h>
#include <yuni/core/system/cpu.h>
#include <yuni/core/system/console/console.h>
#include <yuni/io/file.h>
#include <set>
#include <iostream>
#include <cassert>
using namespace Yuni;
static u... |
<commit_before>// Copyright (c) 2012 Steinwurf ApS
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#include "random_buffer.hpp"
#include <ctime>
#include <cassert>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_int_distribution.hpp... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DescriptionGenerator.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:21:26 $
*
* The Contents of this fi... |
<commit_before>#ifndef __CPP_EVENTS__CONFIG__HPP
#define __CPP_EVENTS__CONFIG__HPP
//Platform detection
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
# define PLATFORM_DIR WinApi
#elif defined(__GNUC__)
# define PLATFORM_DIR POSIX
#else
# error "Unsupported target platfor... |
<commit_before>//===--- Stmt.cpp - Swift Language Statement ASTs -------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include "CanGateway.h"
//Output to a serial CAN adapter instead of directly to a CAN bus
#define SERIALTEST 0
#define DEBUG 0
/******************************************************************
* CanGateway()
* Constructor
*
* Initializes the queues and ports necessary for communication
* with ROS. ... |
<commit_before>#include "DepthSensor.h"
#ifdef KinectAzure_Enabled
#include "cinder/ImageIo.h"
#include "cinder/Log.h"
#include "cinder/app/App.h"
#include "k4a/k4a.h"
#pragma comment(lib, "k4a")
using namespace ci;
using namespace ci::app;
using namespace std;
namespace ds
{
struct DeviceKi... |
<commit_before>// Copyright (c) 2018 BiliBili, 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 at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include "Mitos.h"
std::vector<perf_event_sample> samples;
char* cmd;
void dump()
{
// Header
std::cout << "variable,xidx,yidx,ip,time,latency,dataSource,hit,address,cpu" << std::endl;
// Tuples
for(size_t i=0; i<samples.size()... |
<commit_before>#include "HexagonAlignLoads.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Scope.h"
#include "Bounds.h"
#include "ModulusRemainder.h"
#include "Simplify.h"
namespace Halide {
namespace Internal {
using std::vector;
class HexagonAlignLoads : public IRMutator {
public:
HexagonAlignLoads(T... |
<commit_before>#include <stdexcept>
#include <sstream>
#include <cmath>
#include <boost/lexical_cast.hpp>
#include <boost/timer/timer.hpp>
#include "gtest/gtest.h"
#include "HorizontalDiffusionSA.h"
#include "HoriDiffReference.h"
#include "Definitions.h"
#include "UnittestEnvironment.h"
#include "HaloUpdateManager.h"
#... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/common/include/p9_mc_scom_addresses_fld_fi... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_st... |
<commit_before>#include "feedcontainer.h"
#include <algorithm> // stable_sort
#include <numeric> // accumulate
#include <unordered_set>
#include "rssfeed.h"
#include "utils.h"
namespace newsboat {
void FeedContainer::sort_feeds(const FeedSortStrategy& sort_strategy)
{
std::lock_guard<std::mutex> feedslock(feeds_... |
<commit_before> /*************************************************************************
*
* $RCSfile: filinpstr.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-11-17 09:55:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/* -*- mode:linux -*- */
/**
* \file closed_list.cc
*
*
*
* \author Ethan Burns
* \date 2008-10-09
*/
#include <map>
#include "state.h"
#include "closed_list.h"
void ClosedList::add(const State *s)
{
m[s->hash()] = s;
}
const State *ClosedList::lookup(const State *c) const
{
// this is stupi... |
<commit_before>/* medViewContainerMulti.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Wed Mar 17 11:01:46 2010 (+0100)
* Version: $Id$
* Last-Updated: Mon Dec 20 11:26:25 2010 (+0100)
* By: Julien Wintz
* Update #: 56
*/
/* Commentary:
*
*/
/* Cha... |
<commit_before>// $Id: mesh_refinement_smoothing.C,v 1.13 2006-04-18 03:44:23 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General P... |
<commit_before>/* Copyright 2009, 2010 SPARTA, Inc., dba Cobham Analytic Solutions
*
* This file is part of WATCHER.
*
* WATCHER 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, eithe... |
<commit_before>/* Copyright 2018 The TensorFlow 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 License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>#include "fmi/ValueInfo.hpp"
namespace FMI
{
ValueInfo::ValueInfo()
: ValueSwitch(),
_valueReferenceToNamesMapping(4, std::map<size_type, vector<string_type> >()),
_valueInputReferenceToNamesMapping(4, std::map<size_type, string_type>()),
_value... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkRandom.h"
#include "SkTArray.h"
class SkOnce : SkNoncopyable {
public:
SkOnce() { fDidOnce = false; }
bool needToDo() cons... |
<commit_before>#include "AlertDialog.h"
#include "../cocos-wheels/CWCommon.h"
USING_NS_CC;
static const Color3B C3B_BLUE_THEME = Color3B(51, 204, 255);
AlertDialog *AlertDialog::Builder::create() const {
return AlertDialog::createWithBuilder(*this);
}
AlertDialog *AlertDialog::createWithBuilder(const Builder &... |
<commit_before>// @(#)root/graf:$Name: $:$Id: TCutG.cxx,v 1.12 2002/03/26 07:05:57 brun Exp $
// Author: Rene Brun 16/05/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkTransformIOBase.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See I... |
<commit_before>/*
*
* Copyright 2015 gRPC 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>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// bootstrap.cpp
//
// Identification: src/backend/bridge/ddl/bootstrap.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===-----------------------------... |
<commit_before>/*-------------------------------------------------------------------------
*
* ddl_table.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /peloton/src/backend/bridge/ddl_table.cpp
*
*-------------------------------------------------------------------------
*/
#include <cassert>
#include ... |
<commit_before>/*******************************************************
* Copyright (c) 2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>// Copyright (c) 2011 The Chromium Embedded Framework 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 "include/cef.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(URLTest, CreateURL)
{
// Create the ... |
<commit_before>/*
TODO:
- load file in a separate thread ("prefetch")
- can be smarter about the memcpy call instead of doing it row-by-row
:: use util functions caffe_copy, and Blob->offset()
:: don't forget to update hdf5_daa_layer.cu accordingly
- add ability to shuffle filenames if flag is set
*/
#include <fstr... |
<commit_before>#include <utility>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename Dtype>
class ArgMaxLayerTest : public CPUD... |
<commit_before>/*MIT License
Copyright (c) 2017 TU Ilmenau, Systems and Software Engineering Group
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... |
<commit_before>#include<stdio.h>
#include<string.h>
#include<errno.h>
#include<assert.h>
#include"Logger.h"
#include"../SimpleFS/CSimpleFS.h"
#include"../SimpleFS/CDirectory.h"
#include"fuseoper.h"
//http://fuse.sourceforge.net/doxygen/fusexmp__fh_8c.html
//https://www.cs.hmc.edu/~geoff/classes/hmc.cs135.201001/home... |
<commit_before>//
// Copyright 2017 Shivansh Rai
// 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 retain the above copyright
// notice, this list... |
<commit_before>/*
* Copyright (C) 2012 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>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/*
This WRM evaluator evaluates saturation of gas, liquid, and ice from
capillary pressures for the ice-liquid and liquid-gas pairs.
Authors: Ethan Coon (ecoon@lanl.gov)
*/
#include "wrm_permafrost_evaluator.hh"
#include ... |
<commit_before>
#include <stdlib.h> /* srand, rand */
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include "bpmf.h"
using namespace std;
using namespace Eigen;
typedef SparseMatrix<double> SparseMatrixD;
const int num_feat = 32;
unsigned num_p = 0;
unsigned n... |
<commit_before>#include "tcp_server.h"
#include "utility.h"
#include <thread>
#include <atomic>
#include <unistd.h>
#include <boost/function.hpp>
#include <boost/exception/diagnostic_information.hpp>
namespace Akumuli {
// //
// Tcp Session //
// //
std::string make_un... |
<commit_before>#include "cast.h"
#include "assert.h"
int main() {
uint8_t num15[] = {0x00, 0x0a};
assert(0x0a == qingpei::toolkit::cast::bytes_to_uint16(num15));
return 0;
}<commit_msg>one more test case for cast<commit_after>#include "cast.h"
#include "assert.h"
int main() {
uint8_t bytes[] = {0x00, 0x0a, 0x... |
<commit_before>// common.cpp
// nativeGraphics
#include "common.h"
#include <string>
#ifdef ANDROID_NDK
#include "importgl.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <jni.h>
#elif __APPLE__
#include <stdlib.h>
#include <OpenGLES/ES2/gl.h>
#else // linux
#include <GL/gl... |
<commit_before>#ifndef tut_polymorphism_hpp
#define tut_polymorphism_hpp
#include <cstddef>
#include <functional>
#include "../xtd/castable.hpp"
namespace tut
{
// This tutorial gives an introduction to the data abstraction-style in C++ (DAS).
//
// DAS is a simple, powerful, composable, and efficient st... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2022, LH_Mouse. All wrongs reserved.
#include "../precompiled.ipp"
#include "udp_socket.hpp"
#include "../static/async_logger.hpp"
#include "../utils.hpp"
namespace poseidon {
UDP_Socket::
UDP_Socket(int family)
: Abstract_Socket(family, SOCK_DGRAM, IPPR... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX グループ MTU 制御 @n
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#if defined(SIG_RX24T)
#i... |
<commit_before>#include <vector>
#include <cstring>
#include <stdint.h> // uint32_t etc.
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h>
#endif
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
#define __GLM_GLM_HPP_INCLUDED
#include <glm/glm.hpp>
#endif
#include <glm/gtc/m... |
<commit_before>/*!
\mainpage The QtSparql library
\brief <center>unstable</center>
\section Introduction
<b>Description</b>
QtSparql is a client-side library for accessing RDF stores.
The query language for RDF stores is <a
href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a>.
... |
<commit_before>
/**************************************************
* Source Code for the Original Compiler for the
* Programming Language Wake
*
* EarlyBailoutMethodInvecation.cpp
*
* Licensed under the MIT license
* See LICENSE.TXT for details
*
* Author: Michael Fairhurst
* Revised By:
*
****************... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No ... |
<commit_before>#include "hibike_message.h"
uint8_t checksum(uint8_t data[], int length) {
uint8_t chk = data[0];
for (int i=1; i<length; i++) {
chk ^= data[i];
}
return chk;
}
int send_message(message_t *msg) {
uint8_t data[msg->payload_length+ MESSAGEID_BYTES+PAYLOAD_SIZE_BYTES+CHECKSUM_BYTES];
mess... |
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/common/manifest_handlers/csp_handler.h"
#include "xwalk/application/common/application_manifest_constants.h"
... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSparseFrequencyContainer.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved... |
<commit_before>#include "direction.hpp"
<commit_msg>Unused file<commit_after><|endoftext|> |
<commit_before>#include "CommonData.hpp"
#include "EventOutputQueue.hpp"
#include "KeyboardRepeat.hpp"
#include "ToEvent.hpp"
#include "VirtualKey.hpp"
namespace org_pqrs_KeyRemap4MacBook {
bool
ToEvent::isEventLikeModifier(void) const
{
switch (type_) {
case Type::NONE: return false;
... |
<commit_before>/*
* TexLogParser.cpp
*
* Copyright (C) 2009-11 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILI... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2018, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>/*********************************************************************
*
* Copyright 2012 the original author or authors.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");... |
<commit_before>#include "CommonData.hpp"
#include "EventOutputQueue.hpp"
#include "KeyToKey.hpp"
#include "KeyboardRepeat.hpp"
#include "VirtualKey.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace RemapFunc {
KeyToKey::KeyToKey(void) : index_(0), keyboardRepeatID_(-1), isRepeatEnabled_(true)
{
toKe... |
<commit_before>/*
*
* Copyright 2019 gRPC 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>#include "benchmarks/symplectic_partitioned_runge_kutta_integrator.hpp"
// .\Release\benchmarks_tests.exe --benchmark_repetitions=5 --benchmark_min_time=300 // NOLINT(whitespace/line_length)
// Benchmarking on 1 X 3310 MHz CPU
// 2014/05/30-20:51:41
// Bench... |
<commit_before>
#include "DateAndTimeHandler.h"
#include "instantsearch/DateTime.h"
#include <iostream>
#include <boost/regex.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <cstdlib>
#include <util/Assert.h>
namespace srch2 {
namespace instantsearch {
/*
* Example:
* timeStr... |
<commit_before>/*
* FastMETISParser.cpp
*
* Created on: 04.10.2013
* Author: cls
*/
#include "FastMETISParserDouble.h"
#include <fstream>
namespace NetworKit {
FastMETISParserDouble::FastMETISParserDouble() {
// TODO Auto-generated constructor stub
}
FastMETISParserDouble::~FastMETISParserDouble() {
... |
<commit_before>/*************************************************************************
* Copyright (c) 2014 eProsima. All rights reserved.
*
* This copy of eProsima RTPS is licensed to you under the terms described in the
* EPROSIMARTPS_LIBRARY_LICENSE file included in this distribution.
*
********************... |
<commit_before>/// HEADER
#include <csapex/model/node_runner.h>
/// PROJECT
#include <csapex/model/node_handle.h>
#include <csapex/model/node_worker.h>
#include <csapex/model/tickable_node.h>
#include <csapex/scheduling/scheduler.h>
#include <csapex/scheduling/task.h>
#include <csapex/utility/assert.h>
#include <csape... |
<commit_before>#include "factory.h"
#include <chrono>
#include <thread>
void synopsis()
{
std::cout << "save_frames"
<< " [ "
<< std::endl << " "
<< " help "
<< std::endl << " "
<< " epiphan xvid | h265 sdi | ... |
<commit_before>/**
* @file
*/
#include "libbirch/Counted.hpp"
bi::Counted::Counted() :
sharedCount(0),
weakCount(1),
memoCount(0),
size(0),
frozen(false) {
//
}
bi::Counted::Counted(const Counted& o) :
sharedCount(0),
weakCount(1),
memoCount(0),
size(o.size),
frozen(false) ... |
<commit_before>/*
* libcpu: interface.cpp
*
* This is the interface to the client.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <memory>
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/LinkAllPasses.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/V... |
<commit_before>#include <ctime>
#include <functional>
#include <boost/assert.hpp>
#include <boost/range.hpp>
#include "global.hpp"
struct context_t {
std::ostringstream& stream;
std::tm tm;
};
namespace aux {
inline uint digits(int value) {
if (value == 0) {
return 1;
}
uint digits = 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.