text stringlengths 54 60.6k |
|---|
<commit_before>/*
Copyright (c) 2003, 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>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#ident "$Id$"
#include <toku_portability.h>
#include <errno.h>
#include <string.h>
#include "toku_assert.h"
#include "f... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskd - Task Server
//
// Copyright 2010 - 2012, Göteborg Bit Factory.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... |
<commit_before>#include <ctime>
#include <iostream>
#include <cstdlib>
#include <iterator>
#include <dariadb.h>
#include <ctime>
#include <limits>
#include <cmath>
#include <chrono>
#include <thread>
#include <random>
#include <cstdlib>
#include <atomic>
class BenchCallback :public dariadb::storage::ReaderClb {
publi... |
<commit_before>/*
* opencog/embodiment/Control/PredicateUpdaters/SpatialPredicateUpdater.cc
*
* Copyright (C) 2002-2009 Novamente LLC
* All Rights Reserved
* Author(s): Ari Heljakka, Welter Luigi, Samir Araujo
*
* Updated: by Zhenhua Cai, on 2011-10-24
*
* This program is free software; you can redistribute it... |
<commit_before>/*
* Copyright (c) 2016 Fastly, 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 in the Software without restriction, including without limitation the
* rights to use, copy, modify... |
<commit_before>#pragma once
#include "Runtime/Collision/CJointCollisionDescription.hpp"
#include "Runtime/MP1/World/CShockWave.hpp"
#include "Runtime/World/CPathFindSearch.hpp"
#include "Runtime/World/CPatterned.hpp"
namespace urde {
class CCollisionActorManager;
namespace MP1 {
class CMetroidPrimeEssence : public CP... |
<commit_before>// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include "opentelemetry/exporters/otlp/otlp_recordable_utils.h"
#include "opentelemetry/exporters/otlp/protobuf_include_prefix.h"
#include "opentelemetry/proto/logs/v1/logs.pb.h"
#include "opentelemetry/proto/trace/v1/trace.... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#include "vigra/hdf5impex.hxx"
using namespace vigra;
HDF5ImportInfo::HDF5ImportInfo(const std::string &filename, const std::string &datasetname)
{
try {
/*
* Turn off the auto-printing when failure occurs so that we can
* handle the errors appropriately
*/
... |
<commit_before>/*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2015 Intel Corporation.
*
* 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
* wi... |
<commit_before>/***********************************************************************
filename: Sample_FirstWindow.cpp
created: 10/3/2005
author: Paul D Turner
*************************************************************************/
/*************************************************************... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/isteps/istep20/call_host_load_payload.C $ ... |
<commit_before>//
// View.cpp
// Cinder-ControlRoom
//
// Created by Jean-Pierre Mouilleseaux on 02 Jul 2014.
// Copyright 2014 Chorded Constructions. All rights reserved.
//
#include "View.h"
namespace Cinder { namespace ControlRoom {
using namespace ci;
using namespace ci::app;
ViewRef View::create(const ci:... |
<commit_before>// Copyright (c) 2009 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 "config.h"
#include <wtf/MainThread.h>
#include <wtf/Threading.h>
#undef LOG
#include "build/build_config.h"
#include "webki... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_SERIALIZABLE_ENVIRONMENT_HPP_
#define RDB_PROTOCOL_SERIALIZABLE_ENVIRONMENT_HPP_
#include "rdb_protocol/scope.hpp"
namespace query_language {
enum term_type_t {
TERM_TYPE_JSON,
TERM_TYPE_STREAM,
TERM_TYPE_VIEW,
... |
<commit_before>#ifndef CCHRONO_TIMER
#define CCHRONO_TIMER
#include<chrono>
#include<utility> //forward
namespace nTool
{
class CChrono_timer
{
std::chrono::high_resolution_clock::time_point begin_;
std::chrono::high_resolution_clock::time_point end_;
public:
inline std::chrono::hours::rep duration_hours() co... |
<commit_before>/*
* TTMatrixMixer Object
* Copyright © 2009, Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "TTMatrixMixer.h"
#ifdef TT_PLATFORM_WIN
#include <algorithm>
#endif
#define thisTTClass TTMatrixMixer... |
<commit_before>/*
* TTMatrixMixer Object
* Copyright © 2009, Timothy Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "TTMatrixMixer.h"
#define thisTTClass TTMatrixMixer
#define thisTTClassName "matrixmixer"
#define thisTTClassTag... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>#ifndef STAN__MATH__ERROR_HANDLING_CHECK_FINITE_HPP
#define STAN__MATH__ERROR_HANDLING_CHECK_FINITE_HPP
#include <stan/math/error_handling/dom_err.hpp>
#include <stan/math/error_handling/dom_err_vec.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <stan/meta/traits.hpp>
namespace st... |
<commit_before>/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
// Pre-comp... |
<commit_before>/*
File lockunlock.cpp
*/
/***************************************************************************
FET
-------------------
copyright : (C) by Lalescu Liviu
email : Please see http://lalescu.ro/liviu/ for detai... |
<commit_before>// ======================================================================== //
// Copyright 2009-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010 Belledonne Communications SARL.
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 Founda... |
<commit_before><commit_msg>Add default MSan options.<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: controltype.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:08:13 $
*
* The Contents of this file are ma... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "script/standard.h"
#include "pubkey.h"
#include "script... |
<commit_before>/*
* grib.cpp
*
* Created on: Nov 20, 2012
* Author: partio
*/
#include "grib.h"
#include "logger_factory.h"
using namespace std;
using namespace himan::plugin;
grib::grib()
{
itsLogger = std::unique_ptr<logger> (logger_factory::Instance()->GetLog("grib"));
itsGrib = shared_ptr<NF... |
<commit_before>//
// inpal_algorithm.cpp
// Inverse Palindrome Library
//
// Created by Bryan Triana
// Copyright © 2016 Inverse Palindrome. All rights reserved.
//
#include "inpal_algorithm.hpp"
std::size_t inpal::algorithm::gcd(std::size_t a, std::size_t b)
{
while(b != 0)
{
std::size_t r = a % b;
... |
<commit_before>//=============================================================================
// ■ VMGS/Scene/EditorMainScene.cpp
//-----------------------------------------------------------------------------
// 编辑器场景。
//=============================================================================
#include "../VMG... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "script/standard.h"
#include "pubkey.h"
#include "script... |
<commit_before>#include <qtest.h>
#include <QtDeclarative/qmlengine.h>
#include <QtDeclarative/qmlcomponent.h>
#include <QtDeclarative/qmldom.h>
#include <QtCore/QDebug>
class tst_qmldom : public QObject
{
Q_OBJECT
public:
tst_qmldom() {}
private slots:
void loadSimple();
void loadProperties();
v... |
<commit_before>/********************************************
* Program to demonstrate the Gamma Function *
* *
* C++ version by J-P Moreau *
* (www.jpmoreau.fr) *
* ----------------------------------------- *
* Reference: ... |
<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>#include <cmath>
#include <cstdarg>
#include <assert.h>
#include "opencv2/opencv.hpp"
using namespace cv;
#include "structures.hpp"
#include "util.hpp"
void showImage(const char* title, const Mat& img)
{
std::cout << "\nShowing image: \"" << title << "\"." << std::endl;
namedWindow(title, CV_WINDOW_... |
<commit_before>// File: btBoostDynamics.hpp
#ifndef _btBoostDynamics_hpp
#define _btBoostDynamics_hpp
#include <boost/python.hpp>
#include "btBoostLinearMathScalar.hpp"
#include "btBoostLinearMathVector3.hpp"
#include "btBoostLinearMathQuadWord.hpp"
#include "btBoostLinearMathQuaternion.hpp"
#include "btBoostLinearMat... |
<commit_before>/*************************************************************************
*
* $RCSfile: dispatchprovider.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: mba $ $Date: 2001-11-28 11:03:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>/*************************************************************************
*
* $RCSfile: localizedtreeactions.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: jb $ $Date: 2001-07-11 14:06:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief V8 Traverser
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version ... |
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see http... |
<commit_before>/*
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
*
* 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. R... |
<commit_before>#include "SecureSocket.hpp"
#include <stdio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <sstream>
#include <iostream>
#include "Scope.hpp"
#include "Timer.hpp"
using namespace Kite;
//#define debugprintf(...) fprintf(stderr, __VA_ARGS__)
#define debugprintf(...)
//TODO: not thread s... |
<commit_before>#include "stdafx.h"
#include "datastore.h"
#include "transaction.h"
#include "internal/internal_transaction.h"
#include "internal/operations/post_operation.h"
#include "internal/operations/put_operation.h"
#include "internal/operations/erase_operation.h"
#include "dummy_values.h"
using Assert = Microsof... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "datastore.h"
#include "transaction.h"
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
namespace You {
namespace DataStore {
namespace UnitTests {
TEST_CLASS(DataStoreApiTest) {
public:
//TEST_METHOD(TestMethod1) {
// // TOD... |
<commit_before>//
// main.cpp
// parsetool
//
// Created by Andrew Hunter on 24/09/2011.
//
// Copyright (c) 2011-2012 Andrew Hunter
//
// 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 th... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/secureboot/trusted/trustedbootUtils.C $ ... |
<commit_before>#include "World.h"
World::World() :
m_textures(TextureLoader("Build/Ressources/sprites/")),
m_building(Building(&m_textures, 1, 1))
{
m_building.loadToTileSet("Build/Levels/0.lvl");
}
World::~World()
{}
void World::draw(sf::RenderWindow *window) const
{
m_building.draw(window);
}
<commit_msg>warn... |
<commit_before>#include "workerCL.hpp"
#define __CL_DEFINE_EXCEPTIONS
#include <CL/cl.hpp>
#include <vector>
#include <string>
#include <iostream>
#include "log.hpp"
#include "reads.hpp"
using namespace std;
WorkerCL::WorkerCL(size_t platform_id, size_t device_id){
/* GPU environment preparation */
//Get plat... |
<commit_before>#ifndef GNR_URI_HPP
# define GNR_URI_HPP
# pragma once
#include <regex>
#include <string>
#include <utility>
namespace gnr
{
class uri
{
std::string uri_;
std::pair<std::string::size_type, std::string::size_type> scheme_;
std::pair<std::string::size_type, std::string::size_type> authority_;
... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "CTRByPos... |
<commit_before>/*
Copyright (c) 2010, The Mineserver Project
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, th... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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 ap... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formattedcontrol.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2006-07-19 15:55:36 $
*
* The Contents of this file a... |
<commit_before>// Original Author: Brian Bockelman
/*************************************************************************
* Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include "llvm/Pass.h"
#include "llvm/Function.h"
#include "llvm/BasicBlock.h"
#include "llvm/Module.h"
#include "llvm/Constants.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Instructions.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/CommandLine.h"
#i... |
<commit_before>/***************************************************************************
copyright : (C) 2002 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/****************************************************... |
<commit_before>/*
* v8cgi main file. Loosely based on V8's "shell" sample app.
*/
#include <v8.h>
#include "js_system.h"
#include "js_io.h"
#include "js_mysql.h"
#include "js_gd.h"
#include "js_common.h"
#include <sstream>
#define _STRING(x) #x
#define STRING(x) _STRING(x)
// chdir()
#ifndef HAVE_CHDIR
# include ... |
<commit_before>/*
* v8cgi main file. Loosely based on V8's "shell" sample app.
*/
#define _STRING(x) #x
#define STRING(x) _STRING(x)
#include <sstream>
#include <stdlib.h>
#include <v8.h>
#include <map>
#ifdef FASTCGI
# include <fcgi_stdio.h>
#endif
#include "js_system.h"
#include "js_io.h"
#include "js_socket.h... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: StatisticsHelper.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 00:46:42 $
*
* The Contents of this file a... |
<commit_before>// Copyright (c) 2009 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 "chrome/browser/app_modal_dialog.h"
#include <gtk/gtk.h>
#include "app/l10n_util.h"
#include "app/message_box_flags.h"
#incl... |
<commit_before>/* *************************************************************************************************************
*
* Title: Tric Trac Troe (a Tic Tac Toe game)
* Author: shubham Gupta
* Description: A tic tac toe game based machine learning System
* contact: shubham0075+mlp@gma... |
<commit_before>#include "makefilewritter.h"
#include "data.h"
#include "error.h"
#include "stringtools.h"
#include <QString>
#include <QTextStream>
#include <QObject>
#include <QRegExp>
#include <QVariantList>
#include <QVariant>
QString generateMakeFile()
{
QString str;
QTextStream ts(&str,QIODevice::WriteO... |
<commit_before>/*************************************************************************
*
* $RCSfile: astobserves.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jsc $ $Date: 2001-03-15 12:23:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>// @(#)root/utils:$Id$
// Author: Philippe Canal 27/08/2003
/*************************************************************************
* Copyright (C) 1995-2003, Rene Brun, Fons Rademakers, and al. *
* All rights reserved. *
* ... |
<commit_before>#include <iostream>
#include <string>
// #define CPPHTTPLIB_OPENSSL_SUPPORT
#include "httplib.h"
using namespace std;
void helloword(const httplib::Request& req, httplib::Response& rsp)
{
printf("httplib server recv a req: %s %s\n ", req.path.c_str(), req.remote_addr.c_str());
// std::str... |
<commit_before>/**
* @file Cosa/RTC.cpp
* @version 1.0
*
* @section License
* Copyright (C) 2012-2015, Mikael Patel
*
* 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
* ve... |
<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>/*
* Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved.
*/
#include "db/data/xml/XmlBindingInputStream.h"
using namespace std;
using namespace db::data;
using namespace db::data::xml;
using namespace db::io;
using namespace db::rt;
XmlBindingInputStream::XmlBindingInputStream(DataBinding* ... |
<commit_before>/*
* File: wafr.cpp
* Author: Isaac Yochelson
*
* Created on March 24, 2014, 3:22 PM
*/
#include <moveit/move_group_interface/move_group.h>
#include <moveit_msgs/RobotTrajectory.h>
#include <trajectory_msgs/JointTrajectory.h>
#include <trajectory_msgs/MultiDOFJointTrajectory.h>
#include <geometry... |
<commit_before>/**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/core/util/fileChecker.h"
#include "saiga/core/util/directory.h"
#include "internal/noGraphicsAPI.h"
#include <fstream>
namespace Saiga
{
FileChecker::FileChecker... |
<commit_before>#ifndef SDCINFO_HPP
#define SDCINFO_HPP
#include <qglobal.h>
#include <QString>
struct SDcInfo {
SDcInfo(const QString &newIpAddress = QString(), const quint32 &newPort = 0) :
id(0),
ipAddress(newIpAddress),
port(newPort) { }
SDcInfo(const SDcInfo &anotherInfo) :
... |
<commit_before>/* Copyright 2020 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>// $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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 Foun... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]){
int lado = atoi(argv[1]);
for(int fila=0; fila<lado; fila++){
for (int cuadrado=0; cuadrado<lado; cuadrado++)
for(int col=0; col<lado; col++)
if (cuadrado % 2 == 0)
printf("*");
else
... |
<commit_before>// @(#)root/eve7:$Id$
// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007, 2018
/*************************************************************************
* Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include <iostream>
#include <boost/format.hpp>
#include <boost/thread.hpp>
#include <boost/asio.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/asio/basic_serial_port.hpp>
#include <boost/asio/mockup_serial_port_service.hpp>
#include <pre/chrono/chrono_suffixes.hpp>
int main(int argc, c... |
<commit_before>// Copyright (c) 2017 offa
//
// 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, pu... |
<commit_before>#include <fstream>
#include <iomanip>
#include <string>
#include <stdexcept>
#ifndef LOG_HPP
#define LOG_HPP
#define LOG( log, message ) \
(log).logMessage( \
static_cast< std::ostringstream& >( \
std::ostrin... |
<commit_before>/**
* \file Tools.hpp
* \brief Main header for tools module.
*
* This header provides forward declarations for all memebers of this module.
*/
#ifndef ATLAS_INCLDUE_ATLAS_TOOLS_TOOLS_HPP
#define ATLAS_INCLUDE_ATLAS_TOOLS_TOOLS_HPP
#pragma once
namespace atlas
{
namespace tools
{
... |
<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>/*
Copyright (c) 2007-2008, Python File Format Interface
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>#pragma once
#include <vector>
#include <memory>
#include <functional>
namespace audio_io {
/**Note: all strings are encoded as UTF8.
This library will decode as necessary.*/
/**Call initialize first; call shutdown last.
These are primarily for setting up logging. The main interface of the library i... |
<commit_before>#include "wlcjs.h"
namespace wlcjs {
wlc_event_source* timer = NULL;
uv_timer_t async_run_timer;
SimplePersistent<Function> persistent_log_handler;
int run_uv_loop(void *args) {
uv_run(uv_default_loop(), UV_RUN_NOWAIT);
wlc_event_source_timer_update(timer, 1);
return 1;
}
void log_handler(enum ... |
<commit_before>/*
* SnapFind (Release 0.9)
* An interactive image search application
*
* Copyright (c) 2002-2005, Intel Corporation
* All Rights Reserved
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be found in the file named LICENSE.
... |
<commit_before>#ifndef __CALCULATE_WRAPPER_HPP__
#define __CALCULATE_WRAPPER_HPP__
#include <memory>
#include <type_traits>
#include <tuple>
#include <vector>
#include <utility>
#include "exception.hpp"
namespace calculate {
namespace detail {
template<typename Function, typename... Args>
struct NoExcept {
st... |
<commit_before>/**
* @file keyed_vector.hpp
*
* A keyed vector is a random-access sequential container, whose
* elements can be referred to by a key (*e.g.* name).
*/
#ifndef CLUE_KEYED_VECTOR__
#define CLUE_KEYED_VECTOR__
#include <clue/container_common.hpp>
#include <vector>
#include <unordered_map>
namespace... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under 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)
//======================================... |
<commit_before>#pragma once
#ifndef SIPL_MATRIX_MATRIXBASE_H
#define SIPL_MATRIX_MATRIXBASE_H
#include <array>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <cassert>
#include "Constants.hpp"
#include "matrix/Common.hpp"
namespace sipl
{
// Statically-sized matrices
template <typename Dtype, int32... |
<commit_before>#include <gtest/gtest.h> // gtest must be included first...!
#include <string>
#include <qi/serialization/serializable.hpp>
#include <qi/serialization/serializer.hpp>
using namespace qi::serialization;
struct Inner : Serializable {
Inner() : text("hello"), number(42) {}
std::string text;
int n... |
<commit_before>/* This file is part of the Tufão project
Copyright (C) 2011 Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundati... |
<commit_before>// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 limita... |
<commit_before>/*
* libtins is a net packet wrapper library for crafting and
* interpreting sniffed packets.
*
* Copyright (C) 2011 Nasel
*
* 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 Fou... |
<commit_before>#include "../Block_Info.hxx"
#include "../../compute_block_grid_mapping.hxx"
Block_Info::Block_Info(const boost::filesystem::path &sdp_directory,
const size_t &procs_per_node)
{
boost::filesystem::ifstream block_stream(sdp_directory / "blocks");
if(!block_stream.good())
{... |
<commit_before>#include "../Block_Info.hxx"
#include "../../compute_block_grid_mapping.hxx"
Block_Info::Block_Info(const boost::filesystem::path &sdp_directory,
const size_t &procs_per_node)
{
boost::filesystem::ifstream block_stream(sdp_directory / "blocks");
if(!block_stream.good())
{... |
<commit_before>/*=========================================================================
Program: mbilog - logging for mitk / openCherry
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.ht... |
<commit_before>/**
* @file llblocklist.cpp
* @brief List of the blocked avatars and objects.
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2012, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the t... |
<commit_before><commit_msg>STYLE<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.