text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights
* embodied in the content of this file are licensed under the BSD
* (revised) open source license.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
<commit_before>#include <jni.h>
// To get free disk space
#include <sys/vfs.h>
#include "../../../../../defines.hpp"
#include "../../../../../platform/http_request.hpp"
#include "../../../../../base/logging.hpp"
#include "../../../../../base/string_utils.hpp"
#include "../../../../../coding/zip_reader.hpp"
#include... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#ifndef _Stroika_Foundation_Configuration_Enumeration_inl_
#define _Stroika_Foundation_Configuration_Enumeration_inl_ 1
/*
********************************************************************************
*******************... |
<commit_before>#pragma once
#include <functional>
#include <stdexcept>
#include "blackhole/config.hpp"
#include "blackhole/utils/meta.hpp"
namespace blackhole {
namespace log {
typedef std::function<void()> exception_handler_t;
class default_exception_handler_t {
public:
void operator()() const {
#ifdef BLACK... |
<commit_before>/*
Copyright 2015-2020 Igor Petrovic
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 i... |
<commit_before>/*
* Remote control for the Fadecandy firmware, using the ARM debug interface.
*
* Copyright (c) 2013 Micah Elizabeth Scott
*
* 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 So... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2012 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/*******************************************************
* Copyright (c) 2014, 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>#include <dbus/dbus-glib.h>
#include <webkit2/webkit-web-extension.h>
#include <JavaScriptCore/JSContextRef.h>
#include <JavaScriptCore/JSStringRef.h>
#include <string.h>
#include "dbus.h"
#include "utils.h"
static GDBusConnection* connection;
static gboolean web_page_send_request(WebKitWebPage* web_pa... |
<commit_before>AliJetReader *CreateJetReader(Char_t *jr); // Common config
AliJetFinder *CreateJetFinder(Char_t *jf,Float_t radius = -1);
AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf,Float_t radius = -1); // for the new AF
AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf, Float_t radius)
{
... |
<commit_before>/**
* \file wpbnf_search.cc
*
*
*
* \author Ethan Burns
* \date 2008-10-29
*/
#include <assert.h>
#include <math.h>
#include <limits>
#include <vector>
#include <algorithm>
#include "wpbnf_search.h"
#include "search.h"
#include "state.h"
#include "util/timer.h"
#include "util/cumulative_ave.h"
... |
<commit_before>//===-- PowerPCTargetMachine.cpp - Define TargetMachine for PowerPC -------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>//===-- PowerPCTargetMachine.cpp - Define TargetMachine for PowerPC -------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>/**
* @file Internal.cpp
* @author Mislav Novakovic <mislav.novakovic@sartura.hr>
* @brief Implementation of header internal helper classes.
*
* Copyright (c) 2017 Deutsche Telekom AG.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except ... |
<commit_before><commit_msg>fix templates for forwarding do not work with inline mails Thanks to vondom for providing the patch, and thanks to everyone who tested.<commit_after><|endoftext|> |
<commit_before><commit_msg>added tooltips, which do not work yet, due to missing feature in KAction<commit_after><|endoftext|> |
<commit_before>
#include "arguments.h"
#include "common.h"
#include <iostream>
#include <string>
int Arguments::ParseArguments(Arguments::Parameters *params, const char **args, int argsCnt) {
std::string tmp;
std::string tmpArg;
for (int i = 0; i < argsCnt; i++)
{
std::string value(args[i]);
... |
<commit_before>/* Copyright (c) 2014 Quanta Research Cambridge, 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 us... |
<commit_before>#include "TH1F.h"
#include "TH2F.h"
#include "TGraphAsymmErrors.h"
#include "TFile.h"
#include "TStyle.h"
#include "TLegend.h"
#include "TLatex.h"
#include "TProfile.h"
#include "TPaveText.h"
#include "THStack.h"
#include "TCanvas.h"
#include <string>
#include <iostream>
#include <sstream>
#include "TCol... |
<commit_before>#include <brickred/base_logger.h>
#include <cstdio>
namespace brickred {
BRICKRED_PRECREATED_SINGLETON_IMPL(BaseLogger)
static void defaultLogFunc(int level, const char *format, va_list args) {
if (level < BaseLogger::LogLevel::MIN ||
level >= BaseLogger::LogLevel::MAX) {
return;
... |
<commit_before>//===--- Tools.cpp - Tools Implementations --------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include "Halide.h"
using namespace Halide;
Var x("x"), y("y"), c("c");
int main(int argc, char **argv) {
// First define the function that gives the initial state.
{
Param<float> cx, cy;
Func initial("initial");
// The initial state is a quantity of three chemicals pr... |
<commit_before>/* cclive
* Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
*
* This file is part of cclive <http://cclive.sourceforge.net/>.
*
* 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... |
<commit_before>/*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef CERT_DATABASE_HXX
#define CERT_DATABASE_HXX
#include "pg/Connection.hxx"
#include <string>
#include <vector>
struct CertDatabaseConfig;
class CertDatabase {
PgConnection conn;
const std::string schema;
public:
explicit CertDataba... |
<commit_before>/******************************************************************************
* Copyright 2017 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 ... |
<commit_before>// Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2014 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Hei... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//---------------------------- dof_constraints_03.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2004 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to t... |
<commit_before>#pragma once
// `krbn::local_datagram::client` can be used safely in a multi-threaded environment.
#include "boost_defs.hpp"
BEGIN_BOOST_INCLUDE
#include <boost/asio.hpp>
#include <boost/signals2.hpp>
END_BOOST_INCLUDE
#include "dispatcher.hpp"
#include "logger.hpp"
#include "thread_utility.hpp"
nam... |
<commit_before>// Copyright (c) 2008 The Native Client Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// NaCl-NPAPI Interface
// This directory is shared because it contains browser plugin side and
// untrusted NaCl module side comp... |
<commit_before>/*
Copyright (c) 2016 Bastien Durix
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, publish... |
<commit_before>#include <boost/program_options.hpp>
#include "opencl_fft/clFFT.h"
#include <CL/cl.h>
int main(int argc, char **argv)
{
// Get platform and device information
cl_platform_id platform_id = NULL;
cl_device_id device_id = NULL;
cl_uint ret_num_devices;
cl_uint ret_num_platforms;
... |
<commit_before>// Copyright (c) 2017 ASMlover. 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 o... |
<commit_before>#pragma once
#include <QStandardItemModel>
#include <QTimer>
#include <boost/noncopyable.hpp>
#include <pajlada/signals/signal.hpp>
#include <vector>
#include "debug/AssertInGuiThread.hpp"
namespace chatterino {
template <typename TVectorItem>
struct SignalVectorItemArgs {
const TVe... |
<commit_before>// Copyright (c) 2018-2019 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <random.h>
#include <bls/bls_worker.h>
#include <utiltime.h>
#include <iostrea... |
<commit_before>//-----------------------------------------------------------------------------
// HIMG, by Marcus Geelnard, 2015
//
// This is free and unencumbered software released into the public domain.
//
// See LICENSE for details.
//-----------------------------------------------------------------------------
#... |
<commit_before>/*
* Copyright (c) 2014-2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@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 obtain a copy of the Li... |
<commit_before>#ifndef _SDD_UTIL_HASH_HH_
#define _SDD_UTIL_HASH_HH_
#include <algorithm> // for_each
#include <iterator>
namespace sdd { namespace util {
/*------------------------------------------------------------------------------------------------*/
/// @brief Combine the hash value of x with seed.
///
/// Ta... |
<commit_before>/**
@file median_of_3_solution1.cpp
@author Altantur Bayarsaikhan (altantur)
@purpose Find median number 3 integers
@version 1.0 25/10/17
*/
#include <iostream>
#include <fstream>
using namespace std;
int main(){
ifstream test_file;
int a = 0, b = 0, c = 0, median = 0;
i... |
<commit_before>/**
* Copyright 2008 Matthew Graham
* 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 l... |
<commit_before>#include <iostream>
#include <algorithm>
#include <iomanip>
#include <utility>
#include "components/command_line.hpp"
/* Create the instance */
cliparser::make_type
cliparser::make(string &&progname, const options &&opts)
{
return std::make_unique<cliparser>(
"Usage: " + progname + " OPTION... |
<commit_before>// test cases for rule CWE-611 (createLSParser)
#include "tests.h"
// ---
class DOMConfiguration {
public:
void setParameter(const XMLCh *parameter, bool value);
};
class DOMLSParser {
public:
DOMConfiguration *getDomConfig();
void parse(const InputSource &data);
};
class DOMImplementationLS {
p... |
<commit_before>// Copyright (c) 2012 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 "ash/desktop_background/desktop_background_controller.h"
#include <cmath>
#include <cstdlib>
#include "ash/ash_switches.h"
#... |
<commit_before>// Copyright 2016 AUV-IITK
#include <ros.h>
#include <Arduino.h>
#include <std_msgs/Int32.h>
#include <std_msgs/Float64.h>
#include <math.h>
#define pwmPinWest 4
#define pwmPinEast 5
#define directionPinWest1 26
#define directionPinWest2 27
#define directionPinEast1 35
#define directionPinEast2 29
#def... |
<commit_before><commit_msg>Improve string_view interface<commit_after><|endoftext|> |
<commit_before>#include <TF3.h>
#include <TTree.h>
#include <TStyle.h>
#include <TStopwatch.h>
#include "X.h"
#include "Units.h"
using namespace GeFiCa;
X::X(int nx, const char *name, const char *title) : TNamed(name,title), V0(0),
V1(2e3*volt), MaxIterations(5000), Nsor(0), Csor(1.95),
Precision(1e-7*volt), fN... |
<commit_before>// Copyright (c) 2019 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <uint256.h>
#include <arith_uint256.h>
#include <ethereum/ethereum.h>
#include <ethereum/sha3.h>
#include ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ComponentDefinition.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-07-17 13:08:59 $
*
* The Contents of this fi... |
<commit_before>/** \brief Utility for updating SQL schemata etc.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms o... |
<commit_before>#include "inspectable_web_contents_view_linux.h"
#include "browser/browser_client.h"
#include "browser/inspectable_web_contents_impl.h"
#include "content/public/browser/web_contents_view.h"
namespace brightray {
InspectableWebContentsView* CreateInspectableContentsView(InspectableWebContentsImpl* ins... |
<commit_before>// Copyright 2006-2008 the V8 project authors. 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
// n... |
<commit_before>#include "SkMatrix.h"
#ifdef SK_SCALAR_IS_FIXED
typedef int64_t SkDScalar;
static SkScalar SkDScalar_toScalar(SkDScalar value) {
SkDScalar result = (value + (1 << 15)) >> 16;
int top = result >> 31;
SkASSERT(top == 0 || top == -1);
return (SkScalar)result;
}
... |
<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
// "Lic... |
<commit_before>/**
* bitcoind.js
* Copyright (c) 2014, BitPay (MIT License)
*
* bitcoindjs.cc:
* A bitcoind node.js binding.
*/
#include "nan.h"
/**
* Bitcoin headers
*/
#include "core.h"
#include "addrman.h"
#include "checkpoints.h"
#include "crypter.h"
#include "main.h"
// #include "random.h"
// #include... |
<commit_before>// Copyright (c) 2019-2020 by Robert Bosch GmbH. 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
/... |
<commit_before>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>/**
* File : D.cpp
* Author : Kazune Takahashi
* Created : 2018-10-14 21:35:05
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> /... |
<commit_before>#include <algorithm>
#include <iostream>
#include <limits>
#include <map>
#include <regex>
#include <string>
#include <vector>
#include <cmath>
// TODO: Replace this as soon as possible with a more modern option
// parser interface.
#include <getopt.h>
#include "distances/Wasserstein.hh"
#include "pe... |
<commit_before>/*
* Copyright (C) 2014 Inn0va and Tracker1
*
* 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 a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: stbitem.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2006-05-02 16:04:23 $
*
* The Contents of this file are made a... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>/*
(c) Matthew Slocum 2015
secComponent.cpp
secComponent is responsible for the encryption/decryption of messages.
This file contains code from the public domain found at https://web.archive.org/web/20050110121238/http://www.xs4all.nl/~cg/ciphersaber/comp/c++.txt
// ciphersabre-1 by graydon ... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 ap... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>#include "TerminalServer.hpp"
using namespace et;
namespace google {}
namespace gflags {}
using namespace google;
using namespace gflags;
int main(int argc, char **argv) {
// Setup easylogging configurations
el::Configurations defaultConf = LogHandler::setupLogHandler(&argc, &argv);
// Parse com... |
<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>#include "std_incl.h"
#include "ResultManager.h"
#include "utils.h"
ResultManager::ResultManager(const char *outfile, const char* frameInfoFile, ResultManagerConfig *cfg)
{
config = *cfg;
outputFile = outfile;
this->frameInfoFile = frameInfoFile;
startFrame = 0;
lastSaveFrame = 0;
processedFrames... |
<commit_before>// Filename: collisionHandlerFluidPusher.cxx
// Created by: drose (16Mar02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the rev... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002-2003 The Apache Software Foundation. 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. Red... |
<commit_before>// Copyright (c) 2011 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/extensions/extension_event_router_forwarder.h"
#include "chrome/browser/browser_process.h"
#include "chrome/b... |
<commit_before>/*
Copyright (c) 2014-2021 AscEmu Team <http://www.ascemu.org>
This file is released under the MIT license. See README-MIT for more information.
*/
#pragma once
#include <cstdint>
#include <string>
#include "GossipDefines.hpp"
#include "Management/Quest.h"
#include "Units/Players/Player.h"
class SERVE... |
<commit_before>// Copyright (c) 2010 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/extensions/browser_action_test_util.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "... |
<commit_before>// Copyright (c) 2010 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/in_process_webkit/browser_webkitclient_impl.h"
#include "base/file_util.h"
#include "base/logging.h"
#include... |
<commit_before>// Copyright (c) 2012 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/ui/views/status_icons/status_tray_win.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <string>
#include <sstream>
#include <iterator>
#include <regex>
#include <chrono>
#include <unistd.h>
#include <sched.h>
#include "interference.h"
#include "interference_mpi.h"
#include "counter.hpp"
s... |
<commit_before>#include <xpcc/architecture/platform.hpp>
#include <xpcc/architecture.hpp>
#include "../stm32f4_discovery.hpp"
#include <xpcc/driver/display/max7219matrix.hpp>
/**
* Example to demonstrate a XPCC graphics display made
* of three 8x8 LED matrices driven by MAX7219 chips.
*
* The modules are daisy-ch... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tp_SeriesToAxis.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2007-07-25 08:38:24 $
*
* The Contents of this file ar... |
<commit_before>// Copyright (c) 2012 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/sync/glue/chrome_report_unrecoverable_error.h"
#include "build/build_config.h"
#if defined(OS_WIN)
#include ... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2017 Taras Kushnir <kushnirTV@gmail.com>
*
* 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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: salvd.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2004-05-10 16:00:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <cassert>
#include <sstream>
#include <algorithm>
#include <fstream>
#include <boost/program_options.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
... |
<commit_before>/*
* This file is part of signon
*
* Copyright (C) 2010 Nokia Corporation.
*
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published ... |
<commit_before>void AddTaskVZEROQA(Int_t runNumber)
{
// Creates a QA task exploiting simple symmetries phi, eta +/-, charge ...
// Get the pointer to the existing analysis manager via the static access method.
//==============================================================================
AliAnalysis... |
<commit_before><commit_msg>Fix PrerenderInterceptor leaks.<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
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>// @(#)root/reflex:$Id$
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear ... |
<commit_before>/**
* @file metric_test.cpp
*
* Unit tests for the 'LMetric' class.
*/
#include <mlpack/core.hpp>
#include <mlpack/core/metrics/lmetric.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
using namespace std;
using namespace mlpack::metric;
BOOST_AUTO_TEST_SUITE(LMetr... |
<commit_before>/*************************************************************************
*
* $RCSfile: loadlisteneradapter.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-03-25 16:03:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>// INCOMPLETE SAMPLE - USE AT YOUR OWN PERIL
#include <sstream>
#include <string>
#include "clang/AST/AST.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/T... |
<commit_before><commit_msg>Fix flakey test by making sure WebUI dialog is shut down before test completion.<commit_after><|endoftext|> |
<commit_before>#include "output_collector.h"
#include <cassert>
#include "common/file_stream.h"
#include "common/logging.h"
namespace marian {
OutputCollector::OutputCollector()
: nextId_(0), outStrm_(new OutputFileStream(std::cout)) {}
void OutputCollector::Write(long sourceId,
const... |
<commit_before>/*
urlpicpreviewplugin.cpp
Copyright (c) 2005 by Heiko Schaefer <heiko@rangun.de>
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/**
* Copyright (c) 2017, Chris Fogelklou
* All rights reserved.
*/
#include "snake_c_api.h"
#include "snake_c_utils.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 /* Windows XP. */
#endif
#include <winsock2.h>
#include <Ws2tcpip.h>
#else
/* Assume that ... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2008-02-25 17:27:17 +0100 (Mo, 25 Feb 2008) $
Version: $Revision: 7837 $
Copyright (c) German Cancer Research Center, Division of Medical and
B... |
<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>// hydraulic.C
//
// Copyright 1996-2001 Per Abrahamsen and Sren Hansen
// Copyright 2000-2001 KVL.
//
// This file is part of Daisy.
//
// Daisy is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free Software Foundatio... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/** @file
@brief Implementation
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, 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 ... |
<commit_before>/*
* Copyright 2014 CyberVision, 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 applic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.