text stringlengths 54 60.6k |
|---|
<commit_before>#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <blackhole/handler.hpp>
#include <blackhole/logger.hpp>
#include <blackhole/record.hpp>
#include <blackhole/root.hpp>
namespace blackhole {
namespace testing {
using ::testing::Invoke;
using ::testing::_;
namespace mock {
namespace {
class h... |
<commit_before>
#pragma once
#include <vector>
#include <unordered_map>
#include <iostream>
#include <limits>
#include <functional>
template <class E>
class PriorityQueue
{
private:
struct Node
{
E elem;
double key;
};
const double MAX = std::numeric_limit... |
<commit_before>#pragma once
#include "../lubee/random.hpp"
#include "../lubee/check_serialization.hpp"
#include <gtest/gtest.h>
#include <cereal/archives/json.hpp>
#include <cereal/archives/binary.hpp>
namespace spi {
namespace test {
class Random : public ::testing::Test {
private:
lubee::RandomMT _mt;
p... |
<commit_before>#include <PresentaBALLSettings.h>
#include <PresentaBALLView.h>
#include <BALL/SYSTEM/path.h>
#include <BALL/SYSTEM/directory.h>
#include <QLineEdit>
#include <QFileDialog>
namespace BALL
{
namespace VIEW
{
PresentaBALLSettings::PresentaBALLSettings(QWidget* parent, const char* name, Qt::WindowFla... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fwkhelper.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2007-06-27 22:57:54 $
*
* The Contents of this file are made... |
<commit_before><commit_msg>tdf#90994 Sidebar tab bar buttons should should have accessible names<commit_after><|endoftext|> |
<commit_before>#include <string.h>
#include <fstream>
#include <iostream>
#include <string>
#include <complex>
#include <math.h>
#include <set>
#include <vector>
#include <map>
#include <queue>
#include <stdio.h>
#include <stack>
#include <algorithm>
#include <list>
#include <ctime>
#include <memory.h>
#include <ctim... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
#include "Model.hpp"
typedef int (Implementation::Model::*IntOneArgMethod) (
const Abstract::Point& ... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
#include "Model.hpp"
typedef int (Implementation::Model::*IntOneArgMethod) (
const Abstract::Point& ... |
<commit_before>/*******************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) Associated Universities Inc., 2002 *
* (c) European Southern Observatory, 2002
* Copyright by ESO (in the framework of the ALMA collaboration)
* and Cosylab 2002, ... |
<commit_before>/*
Copyright 2011 Google 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 applicable l... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2020 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 Foundation; eit... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2009-05-12 19:56:03 +0200 (Di, 12 Mai 2009) $
Version: $Revision: 17179 $
Copyright (c) German Cancer Research Center, Division of Medical and
... |
<commit_before>#include <cstdlib>
#include <Eigen/Geometry>
#include <moveit/kinematic_constraints/utils.h>
#include <moveit_msgs/DisplayTrajectory.h>
#include <moveit/robot_state/conversions.h>
#include "cros.hpp"
#include "c_container.h"
#include "moveit_container.hpp"
static void
robot_state_zero( robot_state::Rob... |
<commit_before>#include <iostream>
#include "ctvm.h"
#include "ctvm_util.h"
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <Magick++.h>
int main(int argc, char **argv)
{
/* Test CTVM.dylib Link */
std::cout << std::endl;
std::cout <... |
<commit_before>// This file is for a basic string library so I do not have to use <cstring>
int getStringLength(char *str)
{
int result= 0;
for(int index = 0; str[index]; index++)
{
++result;
}
return result;
}
// Utliity function
void clearTempStringsToNull(char *str)
{
for(int index... |
<commit_before>#include <ir/index_manager/index/Indexer.h>
#include <ir/index_manager/index/FieldIndexer.h>
#include <ir/index_manager/index/TermReader.h>
#include <ir/index_manager/index/TermPositions.h>
#include <boost/filesystem.hpp>
#include <boost/filesystem/path.hpp>
using namespace std;
namespace bf... |
<commit_before>#include "Swampert.h"
#include "j1App.h"
#include "j1Pathfinding.h"
#include "j1Audio.h"
Swampert::Swampert()
{
}
Swampert::~Swampert()
{
}
bool Swampert::Awake(pugi::xml_node &conf)
{
std::string temp = conf.attribute("dir").as_string("");
if (temp == "up")
direction = UP;
else if (temp == "down... |
<commit_before>// [WriteFile Name=StatisticalQuery, Category=Analysis]
// [Legal]
// Copyright 2017 Esri.
// 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/L... |
<commit_before><commit_msg>Fix memory leak<commit_after><|endoftext|> |
<commit_before>/*!
\file barrier.cpp
\brief Barrier synchronization primitive implementation
\author Ivan Shynkarenka
\date 16.03.2016
\copyright MIT License
*/
#include "threads/barrier.h"
#include "errors/exceptions.h"
#include <cassert>
#if defined(unix) || defined(__unix) || defined(__unix__... |
<commit_before>#include "OverloadRunValidationAlgorithm.h"
#include <Engine/SceneManager/Run.h>
#include <Engine/SceneManager/WorkStop.h>
#include <Engine/SceneManager/Vehicle.h>
#include <Engine/SceneManager/Operation.h>
bool Scheduler::OverloadRunValidationAlgorithm::isValid(const Run * run) const
{
if (run->getVe... |
<commit_before>#include "vvvsourcegraph.hpp"
#include <memory>
using namespace clang;
using namespace std;
shared_ptr<SemanticVertex>
getSemanticVertexFromStmt(const Stmt* stmt, Graph& graph, const clang::ASTContext& context)
{
SemanticVertex* ret = 0;
if(stmt) switch(stmt->getStmtClass()){
... |
<commit_before>#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <libmesh/libmesh.h>
int main( int argc, char **argv)
{
// Initialize the library. This is necessary because the library
// may depend on a number of other libraries (i.e. MPI and Petsc)
// that ... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief SEEDA03 (RX64M) メイン @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 ([email protected])
*/
//=====================================================================//
#include "comm... |
<commit_before>#include <algorithm>
#include <fstream>
#include <iostream>
#include <map>
#include <thread>
#include <utility>
#include <vector>
#include <CLI11/CLI11.hpp>
#define PROFILE_CSV_LINE_LENGTH 9
struct profile_data{
double time_total;
double forward_time;
double reverse_time;
size_t chain_stack_to... |
<commit_before>#include <binary_search_tree.hpp>
#include <catch.hpp>
SCENARIO("default constructor")
{
BinarySearchTree<int> bst;
REQUIRE(bst.root() == nullptr);
}
SCENARIO("insertElement")
{
BinarySearchTree<int> bst;
bst.insert(7);
REQUIRE(bst.value_() == 7);
REQUIRE(bst.leftNode_() == nullptr);
REQUIRE(bs... |
<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) 2011-2015 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin-explorer.
*
* libbitcoin-explorer is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License with
* additional permissions to the one pub... |
<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>/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complian... |
<commit_before>#include <QGraphicsView>
#include "fish_annotator/common/annotation_scene.h"
namespace fish_annotator {
AnnotationScene::AnnotationScene(QObject *parent)
: QGraphicsScene(parent)
, mode_(kDoNothing)
, type_(kBox)
, start_pos_()
, rect_item_(nullptr)
, line_item_(nullptr)
, dot_item_(null... |
<commit_before>#include "log.h"
#include "InstructionQueue.h"
#include "SegmentAccessor.h"
#include "JobReport.h"
#include "Assembler.h"
#define DEFAULT_INST_TIMEOUT_MS (100000)
using namespace liber;
using namespace liber::rsync;
//-----------------------------------------------------------------------------
A... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<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>#ifndef MOS_RENDER_TARGET_HPP
#define MOS_RENDER_TARGET_HPP
#include <memory>
#include <atomic>
#include <optional.hpp>
#include <glm/glm.hpp>
#include <mos/render/texture_2d.hpp>
#include <mos/render/texture_cube.hpp>
namespace mos {
class RenderTarget;
using OptTarget = std::experimental::optiona... |
<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: dpsdbtab.hxx,v $
* $Revision: 1.... |
<commit_before>#pragma once
namespace rc {
template<typename T>
class Arbitrary : public gen::Generator<T>
{
public:
static_assert(std::is_integral<T>::value,
"No specialization of Arbitrary for type");
T generate() const override
{
using namespace detail;
int size = st... |
<commit_before>#include <Engine/Renderer/Texture/TextureManager.hpp>
#include <cstdio>
#include <FreeImage.h>
#include <Engine/Renderer/Texture/Texture.hpp>
namespace Ra
{
namespace Engine
{
TextureManager::TextureManager()
: m_verbose( false )
{
}
... |
<commit_before>/**
* @file llpanelpeoplemenus.h
* @brief Menus used by the side tray "People" panel
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it un... |
<commit_before>#include "RolesProvider.h"
<commit_msg>removed unnecessary file<commit_after><|endoftext|> |
<commit_before>//
// AnimatedMultiSinus.cpp
// LaserAnimTool
//
// Created by pach on 07/08/14.
// Copyright (c) 2014 __MyCompanyName__. All rights reserved.
//
#include "AnimatedMultiSinus.h"
AnimatedMultiSinus::AnimatedMultiSinus(){
}
AnimatedMultiSinus::~AnimatedMultiSinus(){
AnimatedStuff::~Animate... |
<commit_before>
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Sk2DPathEffect.h"
#include "SkBlitter.h"
#include "SkPath.h"
#include "SkScan.h"
class Sk2DPathEffectBlitter : public SkBlitter... |
<commit_before>#pragma once
#include "../utilmacro.hpp"
#include <iosfwd>
#include <string>
#include <vector>
namespace nip::error {
enum _Error_Type : uint8_t { NOTE, WARNING, ERROR, FATAL_ERROR };
struct _Error {
_Error(_Error_Type type_i, const char* msg_i, size_t ll = 0, size_t lc = 0, bool hl = false)
... |
<commit_before>#ifndef PLATE2D_HPP
#define PLATE2D_HPP
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/datetime.h>
#include <vector>
#include <functional>
#include "Plater.hpp"
#include "ColorScheme.hpp"
#include "Settings.hpp"
#include "Plater/PlaterObject.hpp"
#include "misc_ui.h... |
<commit_before>/*
This file is part of KContactManager.
Copyright (c) 2007 Tobias Koenig <[email protected]>
This program 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 version 2 of the L... |
<commit_before>#include "Input/InputHandler.hpp"
#include <SFML/Graphics.hpp>
#include <cmath>
#include <iostream>
InputHandler::InputHandler(sf::RenderWindow *window)
: m_window{window}
, m_lastMousePos{ 0, 0 }
, m_rightMouseClickState{ 0 }
{
}
void InputHandler::handleInput(QueueHelper<Input> &inputQueue)
{
ha... |
<commit_before>// GradMinimizer: test RooGradMinimizer class
//
// call from command line like, for instance:
// root -l 'GradMinimizer.cpp()'
// R__LOAD_LIBRARY(libRooFit)
#include <iostream>
// #include <exception>
using namespace RooFit;
void GradMinimizer() {
// produce the same random stuff every time
gRan... |
<commit_before>/*
The MIT License
Copyright (c) 2010 Department Image Processing,
Fraunhofer ITWM.
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, includin... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Bastian Holst <[email protected]>
//
// Self
#include "Abstr... |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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
// 3 of the Lic... |
<commit_before>/*
* AsyncServer.hpp
*
* Copyright (C) 2009-12 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,
* MERCHANTABILIT... |
<commit_before>#include <ros/ros.h>
#include <tf2_ros/transform_broadcaster.h>
#include <geometry_msgs/TransformStamped.h>
#include <geometry_msgs/Point.h>
void pointCallback(const geometry_msgs::Point::ConstPtr& msg) {
static tf2_ros::TransformBroadcaster br;
geometry_msgs::TransformStamped transformStamped;
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtSparql module (not yet part of the Qt Toolkit... |
<commit_before><commit_msg>add Dynamic Array class functions definitions<commit_after>#include <iostream>
#include <algorithm>
#include "DynamicArray.h"
DynamicArray::DynamicArray() {
}
DynamicArray::~DynamicArray() {
}
DynamicArray::DynamicArray(DynamicArray const & other) {
}
DynamicArray& DynamicArray::ope... |
<commit_before>/**************************************************************************
*
* Copyright 2009-2011 VMware, Inc.
* 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... |
<commit_before>// Copyright (C) 2014 The Regents of the University of California (Regents).
// 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 r... |
<commit_before>
#include "PropertyGeneration.h"
#include "base_types.h"
#include "utils.h"
#include "logging.h"
#include "standard_properties.h"
#include <linux/videodev2.h>
#include <cstring>
#include <algorithm>
using namespace tcam;
std::vector<std::shared_ptr<Property>> tcam::generate_simulated_properties (std... |
<commit_before>/* Copyright 2015 Google Inc. 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 applicable law o... |
<commit_before>#include "ScaledImageFactory.h"
#include <memory>
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include <stb/stb_image_resize.h>
using namespace std;
// blends a foreground RGB triplet (fg) onto a background RGB triplet (bg)
// using the given alpha value; returns the blended result
// http:/... |
<commit_before>// RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify %s
class A {
public:
template <class U>
A(U p) {
}
template <>
A(int p) { // expected-warning{{explicit specialization of 'A' within class scope in a Microsoft extension}}
}
template <class U>
void f(U p) {
}
template <>
... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/**
* Copyright (c) 2016-2018 mvs developers
*
* This file is part of metaverse-explorer.
*
* metaverse-explorer is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Soft... |
<commit_before>#include "SymbianDTMFPrivate.h"
#include "SymbianCallInitiator.h"
SymbianDTMFPrivate::SymbianDTMFPrivate(SymbianCallInitiator *p)
: CActive(EPriorityNormal)
, iTelephony (NULL)
, parent (p)
{
iTelephony = CTelephony::NewL();
}//SymbianDTMFPrivate::SymbianDTMFPrivate
SymbianDTMFPrivate::~SymbianDTMF... |
<commit_before>#include "Endpoint.h"
#include "System/Buffers/Buffer.h"
#include "System/Threading/Mutex.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#ifdef _WIN32
#include <winsock2.h>
#define s_addr S_un.S_addr
#define in_addr_t unsigned long
#undef SetPort
#else
#include <sys/type... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include <unistd.h>
#include <iostream>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include "config/config.h"
#include "helpers.h"
#include "utilities/aktualizr_version.h"
namespace bpo = boost::program_options;
static void log_info_target(const std::string &prefix, const C... |
<commit_before>#include "Graphics.h"
using namespace std;
GraphicsInternals::GraphicsInternals(Bin* const bin, ThreadManager* const manager)
: bin(bin), manager(manager) {}
GraphicsInternals::~GraphicsInternals() {}
void GraphicsInternals::openWindow(const string& name)
{
window.create(sf::VideoMode(bi... |
<commit_before>#include "Graphics.h"
using namespace std;
GraphicsInternals::GraphicsInternals(Bin* const bin, ThreadManager* const manager)
: bin(bin), manager(manager) {}
GraphicsInternals::~GraphicsInternals() {}
void GraphicsInternals::openWindow(const string& name)
{
window.create(sf::VideoMode(bi... |
<commit_before>/*
* Copyright (c) 2010 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementati... |
<commit_before>/*
* Copyright (c) 2007-2016 Immo Software
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions a... |
<commit_before>#ifndef ARGPARSE_FORMATTER_HPP
#define ARGPARSE_FORMATTER_HPP
#include <string>
namespace argparse {
class ArgumentParser;
class Formatter {
public:
virtual ~Formatter() {};
virtual void set_parser(ArgumentParser* parser) = 0;
virtual std::string for... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If... |
<commit_before>#include "pch.h"
#include "axl_io_PCap.h"
#include "axl_err_Error.h"
namespace axl {
namespace io {
//.............................................................................
bool
CPCap::Open (
const char* pDevice,
size_t SnapshotSize,
bool IsPromiscious,
uint_t ReadTimeout
)
{
Close ();
... |
<commit_before>/**
* This file is part of Slideshow.
* Copyright (C) 2008-2010 David Sveningsson <[email protected]>
* Pernilla Sveningsson <[email protected]>
*
* Slideshow is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License ... |
<commit_before>
#include "AConfig.h"
#if(HAS_STD_PILOT)
#include "Device.h"
#include "Pin.h"
#include "Pilot.h"
#include "Timer.h"
Timer pilotTimer;
bool _headingHoldEnabled = false;
int _headingHoldTarget = 0;
int hdg = 0;
int hdg_Error;
int raw_Left, raw_Right;
int left, right; // motor outputs in microseconds, +/... |
<commit_before>
#include "common.h"
// interface header
#include "LuaServer.h"
// system headers
#include <stdio.h>
#include <ctype.h>
#include <string>
#include <vector>
using std::string;
using std::vector;
// common headers
#include "bzfsAPI.h"
#include "TextUtils.h"
#include "bzfio.h"
// bzfs headers
#include "... |
<commit_before>/**
* @file save_restore_model_test.cpp
* @author Neil Slagle
*
* Here we have tests for the SaveRestoreModel class.
*/
#include <mlpack/core/util/save_restore_utility.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
#define ARGSTR(a) a,#a
using namespace mlpack;
... |
<commit_before>/* $Id$ */
// Helper macros can be found in this file
// A set of them can be used to connect to proof and execute selectors.
TVirtualProof* connectProof(const char* proofServer)
{
TVirtualProof* proof = TProof::Open(proofServer);
if (!proof)
{
printf("ERROR: PROOF connection not established... |
<commit_before>// PolyHook.cpp : Defines the entry point for the console application.
//
#include <tchar.h>
#include "PolyHook.h"
#define PLH_SHOW_DEBUG_MESSAGES 1 //To print messages even in release
typedef int(__stdcall* tMessageBoxA)(HWND hWnd,LPCTSTR lpText,LPCTSTR lpCaption,UINT uType);
tMessageBoxA oMessageBoxA;... |
<commit_before>/*****************************************************************************
* MarkerDetector.cpp
* Example_MarkerBasedAR
******************************************************************************
* by Khvedchenia Ievgen, 5th Dec 2012
* http://computer-vision-talks.com
*********************... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>/** Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Roland Olbricht et al.
*
* This file is part of Overpass_API.
*
* Overpass_API 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 F... |
<commit_before>/*
This file is part of Ingen.
Copyright 2007-2012 David Robillard <http://drobilla.net/>
Ingen 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, either version 3 of the License, or ... |
<commit_before>/*
*
* Copyright (c) 2021 Project CHIP 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
*
* ... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>#include "qmljspreviewrunner.h"
#include <projectexplorer/environment.h>
#include <utils/synchronousprocess.h>
#include <QtGui/QMessageBox>
#include <QtGui/QApplication>
#include <QDebug>
namespace QmlJSEditor {
namespace Internal {
QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) :
QObje... |
<commit_before>/*
Copyright (c) 2012-2015 The SSDB Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include "../util/log.h"
#include "../util/strings.h"
#include ... |
<commit_before>#ifndef NANOCV_THREAD_LOOP_H
#define NANOCV_THREAD_LOOP_H
#include "thread_pool.h"
namespace ncv
{
///
/// \brief split a loop computation of the given size using a thread pool
///
template
<
typename tsize,
class toperator
... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <vector>
#include <Support/CmdLine.h>
#include <Support/CmdLineUtil.h>
#include "input/keyboard.h"
#include "input/mouse.h"
#include "manip/camera_manipulator.h"
#include "viewer_base.h"
using namespace s... |
<commit_before>#include "components/builder.hpp"
#include "utils/math.hpp"
#include "utils/string.hpp"
POLYBAR_NS
void builder::set_lazy(bool mode) {
m_lazy = mode;
}
string builder::flush() {
if (m_lazy) {
while (m_counters[syntaxtag::A] > 0) cmd_close(true);
while (m_counters[syntaxtag::B] > 0) backgro... |
<commit_before>////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2015 Laurent Gomila ([email protected])
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable fo... |
<commit_before>/**
* @file
*
* @brief Contains the @ref cuda::rtc::program_t class and related code.
*/
#pragma once
#ifndef CUDA_API_WRAPPERS_NVRTC_PROGRAM_HPP_
#define CUDA_API_WRAPPERS_NVRTC_PROGRAM_HPP_
#include <cuda/nvrtc/compilation_options.hpp>
#include <cuda/nvrtc/compilation_output.hpp>
#include <cuda/nv... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/plat/mem/prdfMemTdCtlr_ipl.C $ ... |
<commit_before>/*
* Copyright 2003,2004 The Apache Software 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
*
* Unl... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2018] [BTC.COM]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>//
// MoContentDownloader.cpp
// Chilli Source
// Created by Scott Downie on 23/01/2012.
//
// The MIT License (MIT)
//
// Copyright (c) 2012 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files ... |
<commit_before>#include <boost/python.hpp>
namespace bp = boost::python;
#include "rcs.hh" // NML classes, nmlErrorFormat()
#include "emc.hh" // EMC NML
#include "emc_nml.hh"
extern EMC_STAT *emcStatus;
BOOST_PYTHON_MODULE(emctask) {
using namespace boost::python;
using namespace boost;
scope().attr(... |
<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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.