text stringlengths 54 60.6k |
|---|
<commit_before>/*===================================================================
APM_PLANNER Open Source Ground Control Station
(c) 2013 APM_PLANNER PROJECT <http://www.diydrones.com>
This file is part of the APM_PLANNER project
APM_PLANNER is free software: you can redistribute it and/or modify
it under... |
<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 TigerTestFixture
: public ::hayai::Fixtu... |
<commit_before>#include "test_sample.hpp"
#include <SRDelegate/SRDelegate.hpp>
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(SRDelegate_Cpp11)
BOOST_AUTO_TEST_CASE(custom)
{
auto inlineFreeFuncA_3 = generic::delegate<void(void)>(&rawInlineFreeFuncNoParamA);
auto inlineFreeFuncA_4 = generic::delegate<voi... |
<commit_before>//=============================================================================
// File: dw_mime.cpp
// Contents: Various functions
// Maintainer: Doug Sauder <dwsauder@fwb.gulf.net>
// WWW: http://www.fwb.gulf.net/~dwsauder/mimepp.html
// $Revision$
// $Date$
//
// Copyright (c) 1996, 199... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/**
* @file
* @author Jason Lingle
* @brief Implementation of src/control/ai/mod_attack/aim_select_weapon.hxx
*/
/*
* aim_select_weapon.cxx
*
* Created on: 19.02.2011
* Author: jason
*/
#include <libconfig.h++>
#include <cmath>
#include <iostream>
#include <cstdlib>
#include "aim_select... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_... |
<commit_before>// Copyright 2013 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 "extensions/browser/api/capture_web_contents_function.h"
#include "base/base64.h"
#include "base/strings/stringprintf.h"
#include... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Time.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: obo $ $Date: 2007-03-09 13:32:11 $
*
* The Contents of this file are made av... |
<commit_before>/*
* Copyright 2012-present Facebook, 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 appl... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cstring>
#include <iostream>
#include <ostream>
#include <vector>
#include <visionaray/gl/compositing.h>
#include <visionaray/gl/handle.h>
#include <visionaray/gl/program.h>
#include <visionaray/gl/shader.... |
<commit_before>// read the standard input a line at a time.
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;
using std::getline;
int main()
{
string input;
while (getline(cin, input))
cout << input << endl;
return 0;
}
<commit_msg>Update ex3_2a.cpp<... |
<commit_before>#include <iostream>
#include <stdexcept>
using std::cin;
using std::cout;
using std::endl;
using std::runtime_error;
int main(void)
{
int a, b;
cout << "Input two integers: ";
while (cin >> a >> b) {
try {
if (b == 0) throw runtime_error("divisor is 0");
cout ... |
<commit_before>//! @Alan
//!
//! Exercise 6.44: Rewrite the isShorter function from § 6.2.2 (p. 211) to be inline.
//!
#include <iostream>
#include <string>
#include <vector>
#include <iterator>
using namespace std;
inline bool isShorter(const string &s1, const string &s2)
{
return s1.size() < s2.size();
}
in... |
<commit_before>//
// ex9_20.cpp
// Exercise 9.20
//
// Created by pezy on 12/3/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// @Brief Write a program to copy elements from a list<int> into two deques.
// The even-valued elements should go into one deque and the odd ones
// into the ot... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* 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 t... |
<commit_before>#include "Communicator.hpp"
#include "Addressing.hpp"
#include "GlobalAllocator.hpp"
#include "LocaleSharedMemory.hpp"
#include "ParallelLoop.hpp"
#include <utility>
#include <queue>
DECLARE_bool(flat_combining);
namespace Grappa {
/// Mixin for adding common global data structure functionality, such ... |
<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>/*
* Copyright 2010 Utkin Dmitry
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCSceneProcessModule.cpp
// @Author : LvSheng.Huang
// @Date : 2013-04-14
// @Module : NFCSceneProcessModule
//
// ------------------------------... |
<commit_before>/**************************************************************************
* The MIT License *
* Copyright (c) 2013 Antony Arciuolo. *
* arciuolo@gmail.com ... |
<commit_before>AliAnalysisTask *AddTask_cbaumann_LMEEpp(){
//get the current analysis manager
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTask_cbaumann", "No analysis manager found.");
return 0;
}
Bool_t RunEMCtrigger = 0;
Bool_t RunHighMulttrigger =... |
<commit_before>AliAnalysisTask *AddTaskEMCALPi0V2hardCodeEP(Double_t EvtMthod=1)
{
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTaskEMCALPi0V2hardCodeEP", "No analysis manager found.");
return NULL;
}
if (!mgr->GetInputEventHandler()) {
::Error("AddTaskE... |
<commit_before>/*
HardwareSerial.cpp - Hardware serial library for Wiring
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
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; e... |
<commit_before>#include "SummaryDrawer.C"
/**
* Class to draw a summary of the AOD production
*
* @par Input:
* - The merged <tt>forward.root</tt> file.
* If the file isn't merged, it should still work.
*
* @par Output:
* - A PDF file named after the input, but with <tt>.root</tt>
* replaced with <tt>pd... |
<commit_before>
#include "OptFossilCollManagerFactory.h"
#include "ChebyFossilCollManager.h"
#include "SimulationConfiguration.h"
#include "TimeWarpConfigurationManager.h"
#include "ThreadedTimeWarpSimulationManager.h"
#include "ThreadedChebyFossilCollManager.h"
#include <WarpedDebug.h>
OptFossilCollManagerFa... |
<commit_before>#ifndef __STDAIR_BOM_BOMITERATOR_T_HPP
#define __STDAIR_BOM_BOMITERATOR_T_HPP
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
#include <vector>
#include <map>
/... |
<commit_before>// Copyright (c) 2021 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>
/* Copyright (c) 2011, Peter Barrett
**
** Permission to use, copy, modify, and/or distribute this software for
** any purpose with or without fee is hereby granted, provided that the
** above copyright notice and this permission notice appear in all copies.
**
** THE SOFTWARE IS PROVIDED "A... |
<commit_before>/*
* shared_ptr-impl.hpp - Copyright (C) 2007 by Nathan Reed
* Implementation of shared_ptr class template.
*/
// Declaration of container for the refcounts
#ifdef _MSC_VER
typedef stdext::hash_map<void *, int> refcounts_t;
#else
struct ptr_hash
{
size_t operator () (void *v) const
... |
<commit_before>#include <stdexcept>
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
using namespace cv;
#include "feature.hpp"
#include "FeatMat.hpp"
#include "../saliency/saliency.hpp"
#include "../util/opencv.hpp"
Mat getFeatureVector(const Mat& img)
{
// Calculate saliency map
Mat saliency = getSalie... |
<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 "webkit/fileapi/file_system_dir_url_request_job.h"
#include <algorithm>
#include "base/compiler_specific.h"
#include "base/f... |
<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 "base/logging.h"
#include "webkit/fileapi/media/filtering_file_enumerator.h"
namespace fileapi {
FilteringFileEnumerator::Fi... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char** argv)
{
char s1[]= "Hello, Mel. Today is sunday. Let's go party!";
fprintf (stdout,"%s -> %d\n",s1,strlen(s1) );
return 0;
}
=========================================... |
<commit_before>/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2017 Victor DENIS (victordenis01@... |
<commit_before>/** \brief A MARC-21 filter uliity that replace URNs in 856u-fields with URLs
* \author Oliver Obenland (oliver.obenland@uni-tuebingen.de)
* \author Dr. Johannes Ruscheinski
*
* \copyright 2016-2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you c... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NeonUri.cxx,v $
* $Revision: 1.2... |
<commit_before>#pragma once
#include <cstddef>
#include <cstring>
#include <limits>
#include <vector>
#include "queue.hpp"
template<typename T>
class DinicFlow {
public:
class Edge {
public:
Edge(const size_t from, const size_t to, const T capacity, const T flow) : from(from), to(to), cap(capacity), ... |
<commit_before>/** @file
*
* @ingroup dspLibrary
*
* @brief Container object that holds some audio in a chunk of memory.
*
* @see TTMatrix, TTAudioSignal
*
* @authors Timothy Place & Nathan Wolek
*
* @copyright Copyright © 2003-2012, Timothy Place & Nathan Wolek @n
* This code is licensed under the terms ... |
<commit_before>#include "interative_base.hpp"
TEST_F(InteractiveTest, ctrlc1) {
this->invoke("--quiet", "--norc");
ASSERT_NO_FATAL_FAILURE(this->expect(PROMPT));
std::string str = "throw 34";
str += CTRL_C;
this->send(str.c_str());
ASSERT_NO_FATAL_FAILURE(this->expect(PROMPT + "throw 34\n" + PROMPT));
... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// This source file is part of Hect.
//
// Copyright (c) 2016 Colin Hill
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2018 Roman Lebedev
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 of the License, or (at... |
<commit_before>#include "game/ui/base/researchselect.h"
#include "forms/form.h"
#include "forms/graphic.h"
#include "forms/graphicbutton.h"
#include "forms/label.h"
#include "forms/listbox.h"
#include "forms/ui.h"
#include "framework/data.h"
#include "framework/event.h"
#include "framework/framework.h"
#include "framew... |
<commit_before>#include "utils/GLFWApp.h"
#include <string>
#include "utils/Shader.h"
class UniformOrder: public GLFWApp {
public:
void Init(GLFWwindow*) override {
const std::string vs =
R"(in vec4 a_position;
void main(){
gl_Position = a_p... |
<commit_before>// Copyright 2014 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 "bindings/core/v8/ScriptPromiseProperty.h"
#include "bindings/core/v8/DOMWrapperWorld.h"
#include "bindings/c... |
<commit_before>#include "MarkovRunManager.h"
MarkovRunManager* MarkovRunManager::_instance = nullptr;
MarkovRunManager* MarkovRunManager::getInstance( )
{
if (_instance == nullptr)
_instance = new MarkovRunManager();
return _instance;
}
MarkovRunManager::MarkovRunManager():
_input_word(""... |
<commit_before>
#include "tasksystem.hpp"
#include "filters.hpp"
#include <iostream>
#include <cstring>
void tag(int argc, char *argv[], sptm::TaskSystem* ts)
{
if(argc != 4) {
std::cerr << "Invalid use of tag command." << std::endl;
return;
}
ts->clearFilters();
sptm::TagFilter filter... |
<commit_before>// This is a collection of useful code for solving problems that
// involve modular linear equations. Note that all of the
// algorithms described here work on nonnegative integers.
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef vector<int> VI;
typedef pair<in... |
<commit_before>#include "decomm_inst.h"
using decomm::DecommInst;
enum buildtype_t { BUILD = 1, DECOMM = 2};
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DecommInst::DecommInst(cyclus::Context* ctx)
: cyclus::Institution(ctx),
target_commod(""),
target_fac(""),
num... |
<commit_before>// Copyright (c) 2016-2020 The ZCash developers
// Copyright (c) 2020 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/test/wallet_test_fixture.h"
#include "wallet/wallet.h"
#i... |
<commit_before>/*
* DepthSense SDK for Python and SimpleCV
* -----------------------------------------------------------------------------
* file: depthsense.cxx
* author: Abdi Dahir
* modified: May 9 2014
* vim: set fenc=utf-8:ts=4:sw=4:expandtab:
*
* Python hooks happen... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* 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 t... |
<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>#include <babylon/engines/abstract_scene.h>
#include <babylon/audio/audio_engine.h>
#include <babylon/audio/sound.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/core/json_util.h>
#include <babylon/engines/asset_container.h>
#include <babylon/engines/engine.h>
#include <babylon/engines/scene_... |
<commit_before>#include "rubymotion.h"
#include <SimpleAudioEngine.h>
/// @class Audio < Object
VALUE rb_cAudio = Qnil;
static VALUE mc_audio_instance = Qnil;
/// @group Constructors
/// @method .shared
/// @return [Audio] the shared Audio instance.
static VALUE
audio_instance(VALUE rcv, SEL sel)
{
if (mc_audi... |
<commit_before>#include "density.h"
namespace sirius
{
/** type = 0: full-potential radial integrals \n
* type = 1: pseudopotential valence density integrals \n
* type = 2: pseudopotential code density integrals
*/
mdarray<double, 2> Density::generate_rho_radial_integrals(int type__)
{
Timer t("sirius::Densi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TableWindowAccess.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 15:38:21 $
*
* The Contents of this file ... |
<commit_before><commit_msg>Training key bindings for quick use with Mobile Mouse, fixed out of bounds of array bug.<commit_after><|endoftext|> |
<commit_before>#include "LevyRand.h"
LevyRand::LevyRand(double location, double scale)
{
setLocation(location);
setScale(scale);
}
std::string LevyRand::name()
{
return "Levy(" + toStringWithPrecision(getLocation()) + ", " + toStringWithPrecision(getScale()) + ")";
}
void LevyRand::setLocati... |
<commit_before><commit_msg>tdf#84881: Move some variables one block level out<commit_after><|endoftext|> |
<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>/*
* SchemeShell.c
*
* Simple scheme shell
* Copyright (c) 2008 Linas Vepstas <linas@linas.org>
*/
#ifdef HAVE_GUILE
#include "SchemeShell.h"
#include <libguile.h>
#include <libguile/backtrace.h>
#include <libguile/lang.h>
#include "platform.h"
#include "SchemeSmob.h"
using namespace opencog;
... |
<commit_before>#include <cstdlib>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <syslog.h>
#include <stdio.h>
#include <string.h>
#include <libgen.h>
#include <limits.h>
#include <string>
#include <iostream>
#include <fstream>
int install(const char* serviceFile, const std::string& options);... |
<commit_before>//
// ImageQueue.cpp
// FluxOF
//
// Created by Jonas Jongejan on 14/06/14.
//
//
#include "ImageQueue.h"
void ImageQueue::setupUI(){
incommingSizeLabel = gui->addLabel("");;
oldSizeLabel = gui->addLabel("");;
lastImageUI = gui->addImage("Last image", nil, 100, 100, true);
cur... |
<commit_before>#include <string>
#include <utility>
#include <ros/ros.h>
#include <controller_manager/controller_manager.h>
#include <hardware_interface/joint_command_interface.h>
#include <hardware_interface/joint_state_interface.h>
#include <hardware_interface/robot_hw.h>
class Arcsys2HW : public hardware_interface... |
<commit_before>/*-------------------------------------------------------------------------
*
* expr_transformer.cpp
* file description
*
* Copyright(c) 2015, CMU
*
*-------------------------------------------------------------------------
*/
#include <unordered_map>
#include "nodes/pprint.h"
#include "utils/r... |
<commit_before>#include <ruby.h>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include "classad/classad_distribution.h"
#include "classad/fnCall.h"
using namespace std;
#ifdef WANT_CLASSAD_NAMESPACE
using namespace classad;
#endif
void print_value(FILE *fp, Value val, const char *name)
{
/* AFAICT ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chrlohdl.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:37:31 $
*
* The Contents of this file are made ... |
<commit_before>/*
**
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2013 Aldebaran Robotics
*/
#include "pysession.hpp"
#include <qimessaging/session.hpp>
#include <boost/python.hpp>
#include <boost/python/stl_iterator.hpp>
#include <qitype/dynamicobjectbuilder.hpp>
#include "pyfu... |
<commit_before>#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <sauce/sauce.h>
#include "allocate_with.h"
using ::testing::Sequence;
using ::testing::Return;
namespace sauce {
namespace test {
class Chasis {
public:
Chasis() {}
virtual ~Chasis() {}
};
class CoupChasis:
public Chasis {
public:
s... |
<commit_before>#include <cybozu/test.hpp>
#include <cybozu/zlib.hpp>
#include <cybozu/file.hpp>
#include <cybozu/stream.hpp>
#include <cybozu/serializer.hpp>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
CYBOZU_TEST_AUTO(test1_deflate)
{
typedef cybozu::ZlibCompressorT<std::... |
<commit_before>//
// broadcast_test.cpp
// orwell
//
// Created by Massimo Gengarelli on 15/02/14.
//
//
#include "RawMessage.hpp"
#include <zmq.hpp>
#include "controller.pb.h"
#include "server-game.pb.h"
#include "Sender.hpp"
#include "Receiver.hpp"
#include "Server.hpp"
#include "Common.hpp"
#include <log4cx... |
<commit_before>#include <algorithm>
#include <cstring>
#include <ctime>
#include "frame/test_macros.h"
#include "time/time_utility.h"
#include <time/jiffies_timer.h>
CASE_TEST(time_test, global_offset) {
util::time::time_utility::update();
time_t now = util::time::time_utility::get_now();
ut... |
<commit_before>// Convert DMD CodeView/DWARF debug information to PDB files
// Copyright (c) 2009-2012 by Rainer Schuetze, All Rights Reserved
//
// License for redistribution is given by the Artistic License 2.0
// see file LICENSE for further details
//
#include "PEImage.h"
#include "mspdb.h"
#include "dwar... |
<commit_before>/*************************************************************************
*
* $RCSfile: calendar_hijri.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: khong $ $Date: 2002-08-06 18:32:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>#include <vector>
#include <string.h>
#include "gtest/gtest.h"
#include "radix_sorter.h"
#include "codesearch.h"
#include "content.h"
class radix_sorter_test : public ::testing::Test {
protected:
radix_sorter_test() :
data_("line 1\n"
"line 2\n"
"another line\n"... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RL78/G13 グループ SAU/UART 制御 @n
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "G13/s... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCell.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1996 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by Ken M... |
<commit_before><commit_msg>convert this debugging thing over too<commit_after><|endoftext|> |
<commit_before> /*************************************************************************
*
* $RCSfile: accpage.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: vg $ $Date: 2003-04-24 16:12:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before><commit_msg>sal_uInt16 to (const) short<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix -fsanitize=signed-integer-overflow (when long int is 32-bit)<commit_after><|endoftext|> |
<commit_before><commit_msg>sal_uInt16 to more proper types<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <vector>
#include <thread>
#include <cmath>
#include <iostream>
#include <cstdlib>
#include <Discreture/TimeHelpers.hpp>
namespace dscr
{
template <class RAIter>
std::vector<RAIter> divide_work(RAIter first, RAIter last, size_t num_processors)
{
auto n = std::distance(first, la... |
<commit_before>// Copyright 2014 BVLC and contributors.
#ifndef CAFFE_NEURON_LAYERS_HPP_
#define CAFFE_NEURON_LAYERS_HPP_
#include <string>
#include <utility>
#include <vector>
#include "leveldb/db.h"
#include "pthread.h"
#include "boost/scoped_ptr.hpp"
#include "hdf5.h"
#include "caffe/blob.hpp"
#include "caffe/co... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextHeaderFooterContext.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2006-09-17 11:13:27 $
*
* The Contents of... |
<commit_before>#include <stdio.h>
#include "xbyak/xbyak_util.h"
#define NUM_OF_ARRAY(x) (sizeof(x) / sizeof(x[0]))
struct PopCountTest : public Xbyak::CodeGenerator {
PopCountTest(int n)
: Xbyak::CodeGenerator(4096, Xbyak::DontSetProtectRWE)
{
mov(eax, n);
popcnt(eax, eax);
ret();
}
};
void putCPUinfo()
{... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextHeaderFooterContext.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2008-03-12 11:02:39 $
*
* The Contents of ... |
<commit_before>/**
* \file
* \brief FifoQueue class header
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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... |
<commit_before>/*************************************************************************
*
* $RCSfile: AttrTransformerAction.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-07-13 08:43:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the fo... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: certificatechooser.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2005-10-05 14:56:55 $
*
* The Contents of this file... |
<commit_before>#pragma once
#include <vector>
#include <rex/asyncresourceview.hpp>
namespace rex
{
template <typename ResourceType>
class ProgressTracker
{
public:
class Status
{
public:
Status(int32_t waiting, int32_t done, int32_t failed... |
<commit_before>/*
* Use and distribution licensed under the Apache license version 2.
*
* See the COPYING file in the root project directory for full text.
*/
#include <iostream>
#include <cctype>
#include <sstream>
#include "parser/statements/create_table.h"
#include "parser/error.h"
#include "parser/token.h"
#i... |
<commit_before>#ifndef VSMC_HELPER_ADAPTER_HPP
#define VSMC_HELPER_ADAPTER_HPP
namespace vsmc {
template <typename T, template <typename, typename> class InitializeImpl>
class InitializeAdapter :
public InitializeImpl<T, InitializeAdapter<T, InitializeImpl> >
{
public :
typedef InitializeImpl<T, Initiali... |
<commit_before>#include <cli/Session.h>
#include <cli/CommandLine.h>
#include <cli/PosixStreams.h>
#include <cli/Tokenizer.h>
#include <mtp/make_function.h>
#include <stdio.h>
namespace cli
{
Session::Session(const mtp::DevicePtr &device):
_device(device),
_session(_device->OpenSession(1)),
_gdi(_session->Ge... |
<commit_before>#pragma once
#include <type_traits>
namespace gcl::mp::type_traits
{
template <class T>
struct is_template : std::false_type {};
template <class... T_args, template <class...> class T>
struct is_template<T<T_args...>> : std::true_type {};
template <auto... values, template <auto...> ... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmltexte.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2003-03-27 15:42:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before><commit_msg>Resolves: #i125050# correct text range for comment/annotation...<commit_after><|endoftext|> |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014, 2015
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as publishe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.