text stringlengths 54 60.6k |
|---|
<commit_before>// STL
#include <iostream>
#include <string>
// CppUnit
#include <extracppunit/CppUnitCore.hpp>
// StdAir
#include <stdair/STDAIR_Types.hpp>
#include <stdair/bom/BomRootKey.hpp>
#include <stdair/bom/InventoryKey.hpp>
#include <stdair/bom/FlightDateKey.hpp>
#include <stdair/bom/SegmentDateKey.hpp>
#includ... |
<commit_before>#include <stdio.h>
#include "ds3.h"
#include "test.h"
#include <boost/test/unit_test.hpp>
#include <glib.h>
BOOST_AUTO_TEST_CASE( bulk_put ) {
ds3_request* request;
ds3_error* error;
ds3_get_bucket_response* response;
ds3_client* client = get_client();
const char* bucket_name = "unit... |
<commit_before>/* OpenSceneGraph example, osgtexture3D.
*
* 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, modi... |
<commit_before>//
// file : fnv1a.hpp
// in : file:///home/tim/projects/ntools/hash/fnv1a.hpp
//
// created by : Timothée Feuillet
// date: Mon May 22 2017 16:30:57 GMT-0400 (EDT)
//
//
// Copyright (c) 2017 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this ... |
<commit_before>/** @file editorviewmviface.cpp
* @brief Класс, реализующий интерфейс представления в схеме Model/View
* */
#include <QtGui>
#include "editorviewmviface.h"
#include "editorview.h"
#include "editorviewscene.h"
#include "../kernel/definitions.h"
#include "../umllib/uml_element.h"
#include "editormanage... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@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 distributed
// with th... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>// $Id: gnuplot_io.C,v 1.4 2005-06-08 16:38:17 spetersen Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Licens... |
<commit_before>
#include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <boost/program_options.hpp>
// TODO: remove this include (node.h) from this file as it's an implementation detail
#include "avro/node/node.h"
#include "filter/filter.h"
#include "filter/compiler.h"
#include "fileemito... |
<commit_before>#include "HedgeLib/String.h"
#include "INString.h"
#include <algorithm>
#ifdef _WIN32
#include <Windows.h>
#endif
const char* const hl_EmptyString = "";
#ifdef _WIN32
const hl_NativeStr const hl_EmptyStringNative = L"";
#endif
template<typename str1_t, typename str2_t>
bool hl_INStringsEqualInvASCII(... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2020 Winlin
*
* 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 ri... |
<commit_before>//Create, Draw and fit a TGraph2DErrors
//Author: Olivier Couet
#include <TMath.h>
#include <TGraph2DErrors.h>
#include <TRandom.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TF2.h>
void graph2derrorsfit()
{
TCanvas *c1 = new TCanvas("c1");
Double_t rnd, x, y, z, ex, ey, ez;
Double... |
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdio.h>
#include "db/dbformat.h"
#include "port/port.h"
#include "util/coding... |
<commit_before>//---------------------------------------------------------
// Copyright 2015 Ontario Institute for Cancer Research
// Written by Jared Simpson (jared.simpson@oicr.on.ca)
//---------------------------------------------------------
//
// nanopolish.cpp -- main driver program
//
#include <string>
#include ... |
<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 "Lice... |
<commit_before>// Filename: config_event.cxx
// Created by: drose (14Dec99)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// lic... |
<commit_before>/**
Copyright 2017 Daniel Garcia Vaglio <degv364@gmail.com> Esteban Zamora Alvarado <>
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 limitat... |
<commit_before>#include "lab1_widget.hxx"
#include <QFileDialog>
#include <QString>
#include <QFile>
#include <QDebug>
#include <QTextStream>
#include <QProcess>
#include <QMessageBox>
#include <cassert>
Lab1_Widget::Lab1_Widget(QWidget *parent) :
QWidget(parent),
main_layout( new QVBoxLayout(this)),
b... |
<commit_before>#include <iostream>
using namespace std;
int main() {
cout << "Hello World" << endl; //Print out Hello World
cout << "Aaron Skomra" << endl; //Edit Hello World to print out your name
//Printing "David Snyder" to the command line
cout << "David Snyder" << endl;
cout << "Ben Huddle" << endl... |
<commit_before>/***************************************************************************
jabberprotocol.cpp - Jabber Plugin
-------------------
begin : Fri Apr 12 2002
copyright : (C) 2002 by Daniel Stone
email ... |
<commit_before>/*
* master.cpp - master program for Team PI
*
* Wire(0) -> capTouch -> pixies -> SRF08s -> slave2 -> slave3
* Wire1 -> slave1
* by Brian Chen
* (C) Team PI 2015
*/
#include <WProgram.h>
#include <i2c_t3.h>
#include <SPI.h>
#include <slaves.h>
#include <piCommon.h>
#include <PixyI2C.h> // modi... |
<commit_before>#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/Joy.h>
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/PoseStamped.h>
#include <std_msgs/String.h>
#include <vector>
#include <fstream>
#include <string>
class WaypointsSaver{
public:
WaypointsSaver() : ... |
<commit_before>#if 0
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 by Daniel Eichhorn
* Copyright (c) 2016 by Fabrice Weinberg
*
* 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 w... |
<commit_before>#include <iostream>
#include <stdexcept>
#include "Token.hpp"
#include "TokenStream.hpp"
#include "Calculator.hpp"
void calculate(ITokenStream& tokenStream)
{
double value = 0;
Calculator parser{tokenStream};
while (std::cin)
{
Token token = tokenStream.get();
while (tok... |
<commit_before>/*
* moduleTest.cpp
*
* Created on: 2015年12月15日
* Author: nemo
*/
#include "LiveMsgTool/LiveMsgTool.h"
#include "MiTACCSC/MiTACCSC.h"
#include <iostream>
using namespace std;
int main()
{
MiTACCSC *entryReader = new MiTACCSC();
MiTACCSC *exitReader = new MiTACCSC();
LiveMsgTool *liveMs... |
<commit_before><commit_msg>scoreboard working<commit_after><|endoftext|> |
<commit_before>#include <cassert>
#include <chrono>
#include <deque>
#include <iostream>
#include <set>
#include <utility> // pair
#include <boost/dynamic_bitset.hpp>
#include "mc/places/nopost_live.hh"
#include "mc/places/post.hh"
#include "mc/places/post_live.hh"
#include "mc/places/pre.hh"
#include "mc/places/sdd.... |
<commit_before>#include "Timers.hxx"
#include "Block_Info.hxx"
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
void write_timing(const boost::filesystem::path &out_file,
const boost::filesystem::path &block_timings_filename,
const Block_Info &block_info, con... |
<commit_before><commit_msg>Remove some obsolete ifdefs that excluded certain tests on linux + mac.<commit_after><|endoftext|> |
<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/browser.h"
#include "base/utf_string_conversions.h"
#include "base/win/metro.h"
#include "chrome/browser/b... |
<commit_before>
<commit_msg>Delete 1.cpp<commit_after><|endoftext|> |
<commit_before>#include "qt/create_feature_dialog.hpp"
#include "qt/draw_widget.hpp"
#include "qt/editor_dialog.hpp"
#include "qt/place_page_dialog.hpp"
#include "qt/qt_common/helpers.hpp"
#include "qt/qt_common/scale_slider.hpp"
#include "map/framework.hpp"
#include "drape_frontend/visual_params.hpp"
#include "sear... |
<commit_before><commit_msg>Fix Windows build. I forgot to update the class name for Windows for in process plugins. This didn't get caught because the Windows never linked on this patch for unrelated problems.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "build/build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#include <objbase.h>
#endif
#include <algorithm>
#inclu... |
<commit_before><commit_msg>Translate comments<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <time.h> // incluye "time"
#include <unistd.h> // incluye "usleep"
#include <stdlib.h> // incluye "rand" y "srand"
#include <mpi.h>
using namespace std;
void Filosofo( int id, int nprocesos);
void Tenedor ( int id, int nprocesos);
// ----------------------------... |
<commit_before>/*
* Copyright 2002-2005 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
*
* Unless ... |
<commit_before>// Copyright (c) 2020 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
// `krbn::hid_grabber` can be used safely in a multi-threaded environment.
#include "boost_utility.hpp"
#include "dispatcher.hpp"
#include "human_interface_device.hpp"
#include "logger.hpp"
#include "thread_utility.hpp"
namespace krbn {
class hid_grabber final : public pqrs::dispatcher::d... |
<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 "sequence.h"
#include "details/ir/isa/printer.inc.hpp"
#include "details/atom/atom.h"
#include <cstdlib>
using namespace Yuni;
namespace ny
{
namespace ir
{
Sequence::~Sequence()
{
free(m_body);
}
void Sequence::moveCursorFromBlueprintToEnd(const Instruction*& cursor) const
{
as... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/fastlib/text/unicodeutil.h>
#include "unicodeutil-charprops.cpp"
#include "unicodeutil-lowercase.cpp"
unsigned char Fast_UnicodeUtil::_utf8... |
<commit_before>#include "stdafx.h"
#include <stdlib.h>
#include <wchar.h>
#include <math.h>
#include <ctime>
#include "XEngine.h"
#include "Renderer\Renderer.h"
#include "GameObjects\GameObject.h"
#include "GameObjects\Rect.h"
#include "Scenes\EngineScene.h"
XEngine* pDemoApp;
void XEngine::RunMessageLoop()
{
MSG ... |
<commit_before>#ifndef Ancona_System_Android_Log_H_
#define Ancona_System_Android_Log_H_
#include <string>
namespace ild
{
/**
* @brief Log functions a platform must implement.
*
* @author Tucker Lein
*/
class LogControls
{
public:
/**
* @brief Used to implement the log macro, should not be ... |
<commit_before>/*-----------------------------------------------------------------------------
This source file is a part of Hopsan
Copyright (c) 2009 to present year, Hopsan Group
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... |
<commit_before>/***************************************************************************
* Copyright © 2005 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
... |
<commit_before>
#include "StringUtil.hpp"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
namespace VersionControl
{
bool StringUtil::endsWith(const std::string &from, const std::string &what)
{
if (from.length() < what.length())
return false;
std::string::const_reverse_iterator... |
<commit_before>#include "Utility.h"
#include "TraceLog.h"
#include "RegKeyPrivilege.h"
#include <VersionHelpers.h>
#include <ShlObj.h>
#include <tchar.h>
#include <xl/Meta/xlScopeExit.h>
#include <xl/Win32/Registry/xlRegistry.h>
// Win8
#define REG_MSPY_ROOT_80 _T("SOFTWARE\\Microsoft\\CTF\\TIP\\{81d... |
<commit_before>//Tested on:
// Solaris 11.2 (g++)
#include "netstat.hpp"
#include <cstdlib>
#include <stdexcept>
#include <iomanip>
#include <iostream>
#include <string>
#include <stdint.h>
#include <sstream>
#include <vector>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#incl... |
<commit_before>#ifndef BUCKET_BUCKET_HPP
#define BUCKET_BUCKET_HPP
#include <map>
#include <vector>
namespace bucket {
/**
* @brief A (magical) bucket to store stuff inside
* @details Stores an object together with a key.
*
* @tparam T What to put in the bucket
*/
template <typename T>
class Bucket {
private:
... |
<commit_before>#ifndef GCL_TMP_H_
# define GCL_TMP_H_
#include <array>
#include <bitset>
namespace gcl
{
struct mp
{ // C++17
template <typename ... ts>
struct type_pack
{ // constexpr type that has variadic parameter
// use this instead of std::tuple for viariadic-as-std-tuple-parameter,
// if your opt... |
<commit_before>#include <utility>
#include <iostream>
#include <map>
template<
typename Key_t,
typename Value_t,
typename Predicate_t = std::less<Key_t> >
class non_copyable_map : public std::map<Key_t,Value_t,Predicate_t>
{
typedef std::map<Key_t,Value_t,Predicate_t> BaseType;
public:
non_copyable_map() { }... |
<commit_before>{
gSystem->Load("libHFE.so");
// Set the include paths
gROOT->ProcessLine(".include HFE");
}<commit_msg>update<commit_after>{
gSystem->Load("libPWG3hfe.so");
// Set the include paths
gROOT->ProcessLine(".include PWG3hfe");
}
<|endoftext|> |
<commit_before>// ---------------------------------------------------------------------------
//
// This file is part of the <kortex> library suite
//
// Copyright (C) 2013 Engin Tola
//
// See LICENSE file for license information.
//
// author: Engin Tola
// e-mail: engintola@gmail.com
// web : http://www.engintola.... |
<commit_before>#ifndef regex_hh_INCLUDED
#define regex_hh_INCLUDED
#include "string.hh"
#include "exception.hh"
#include "utf8_iterator.hh"
#include <boost/regex.hpp>
namespace Kakoune
{
struct regex_error : runtime_error
{
regex_error(StringView desc)
: runtime_error{format("regex error: '{}'", desc)}
... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2009-2012, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
* Copyright (c) 2014, RadiantBlue Technologies, Inc.
*
* All rights reserved.
*
* Redistribution an... |
<commit_before>/*
* qiaffine.cpp
*
* Copyright (c) 2015 Tobias Wood.
*
* 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 at http://mozilla.org/MPL/2.0/.
*
*/
#include <iostream>
#include ... |
<commit_before>#include <QDebug>
#include "helpwindow.h"
#include "ui_helpwindow.h"
HelpWindow* HelpWindow::self = 0;
HelpWindow::HelpWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::HelpWindow)
{
ui->setupUi(this);
m_helpEngine = new QHelpEngineCore("SavvyCAN.qhc", this);
if (!m_helpEngine-... |
<commit_before>
// (c) COPYRIGHT URI/MIT 1996
// Please read the full copyright statement in the file COPYRIGH.
//
// Authors:
// jhrg,jimg James Gallagher (jgallagher@gso.uri.edu)
// This is the source to `geturl'; a simple tool to exercise the Connect
// class. It can be used to get naked URLs as well as the DODS ... |
<commit_before>#include <feed.h>
int main(){
auto x = feed("http://www.forbes.com/feeds/popstories.xml");
x.fetch();
std::cout<<x.json;
x.parse();
x.fetch_data();
}
<commit_msg>Compiles now. Able to link archive<commit_after>#include <Feedparser/feed.h>
int main(){
auto x = feed("http://www.forbes.c... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* helloSstWriter.cpp
*
* Created on: Aug 17, 2017
* Author: Greg Eisenhauer
*/
#include <iostream>
#include <vector>
#include <adios2.h>
#if ADIOS2_USE_MPI
#include ... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vclstatusindicator.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2006-06-19 11:20:36 $
*
* The Contents of this file... |
<commit_before><commit_msg>Replace char[] by OUStringBuffer/OUString<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>#ifndef VIENNAGRID_STORAGE_ID_GENERATOR_HPP
#define VIENNAGRID_STORAGE_ID_GENERATOR_HPP
#include "viennagrid/meta/typelist.hpp"
namespace viennagrid
{
namespace storage
{
template<typename typelist, typename id_type>
class continuous_id_generator_layer_... |
<commit_before><commit_msg>update<commit_after><|endoftext|> |
<commit_before>#include <cmath>
#include <gmpxx.h>
#include <iostream>
#include <vector>
#include <sstream>
#define SUCCESS 0
#define FAILURE 1
#define MAX_ARR_SIZE 16777216
#define MAX_PRECISION 65536
#define LOG_INFO
using namespace std;
mpf_class meanVal(const mpf_class* arr, size_t size, size_t acc) {
... |
<commit_before>#include <random>
#include <array>
#include <vector>
#include <list>
#include <iostream>
#include <algorithm>
#include <chrono>
//Chrono typedefs
typedef std::chrono::high_resolution_clock Clock;
typedef std::chrono::milliseconds milliseconds;
static const std::size_t REPEAT = 1;
/* Fill back */
temp... |
<commit_before>#ifndef VIENNAMATERIALS_KERNELS_PUGIXML_HPP
#define VIENNAMATERIALS_KERNELS_PUGIXML_HPP
/* =============================================================================
Copyright (c) 2013, Institute for Microelectronics, TU Wien
http://www.iue.tuwien.ac.at
-----------... |
<commit_before>/*************************************************************************
*
* $RCSfile: services.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2004-08-02 15:16:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>
#include "stdafx.h"
#include "node.h"
#include "editmanager.h"
#include "../external/NodeEditor/imgui_node_editor_internal.h"
using namespace framework;
using namespace vprog;
cNode::cNode(int id, const StrId &name
, ImColor color //= ImColor(255, 255, 255)
)
: m_id(id)
, m_name(name)
, m_desc(na... |
<commit_before>/*************************************************************************
*
* $RCSfile: TableWindow.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: oj $ $Date: 2002-11-08 09:27:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*!
\copyright (c) RDO-Team, 2013
\file app/rdo_studio/plugins/game5/src/graph_widget.cpp
\author Чернов Алексей (ChernovAlexeyOlegovich@gmail.com)
\date 22.09.2013
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
/... |
<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 dist... |
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: FastMarchingLevelSet.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITK... |
<commit_before>/* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */
/* vim:set et sw=4 ts=4 sts=4: */
/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Karoliina ... |
<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 "base/basictypes.h"
#include "base/command_line.h"
#if defined(OS_MACOSX)
#include "base/mac/mac_util.h"
#endif
#include "base/str... |
<commit_before>#include <iostream>
#include <boost/lexical_cast.hpp>
#include <boost/fusion/adapted.hpp>
#include "restc-cpp/restc-cpp.h"
#include "restc-cpp/RequestBuilder.h"
using namespace std;
using namespace restc_cpp;
// C++ structure that match the Json entries received
// from http://jsonplaceholder.typicod... |
<commit_before>/*-
* Copyright (c) 2008 Michael Marner <michael@20papercups.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above ... |
<commit_before>#include "ghost/config.h"
#include "ghost/svqb.h"
#include "ghost/util.h"
#include "ghost/tsmttsm.h"
#include "ghost/tsmm.h"
#include <complex>
#ifdef GHOST_HAVE_LAPACK
#ifdef GHOST_HAVE_MKL
#include <mkl_lapacke.h>
#else
#include <lapacke.h>
#endif
template<typename T, typename T_b>
static lapack_int... |
<commit_before>#include <node.h>
#include "pi_2_dht_read.h"
namespace dht {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
using v8::Number;
void Method(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.Get... |
<commit_before>// Copyright (C) 2010-2012 Joshua Boyce.
// See the file COPYING for copying permission.
#include "hadesmem/pelib/tls_dir.hpp"
#include <sstream>
#include <utility>
#define BOOST_TEST_MODULE tls_dir
#include "hadesmem/detail/warning_disable_prefix.hpp"
#include <boost/thread.hpp>
#include <... |
<commit_before>/*******************************************************************************
* tests/api/io_test.cpp
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com>
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
*
* This file has no license. Only Chuck Norris can c... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>//-----------------------------------
// Copyright Pierric Gimmig 2013-2017
//-----------------------------------
#include "Core.h"
#include "TcpServer.h"
#include "Tcp.h"
#include "VariableTracing.h"
#include "Log.h"
#include "Context.h"
#include "Capture.h"
#include "OrbitAsio.h"
#include "Callstack.h... |
<commit_before>#include "roomsreader.h"
RRNode::RRNode(TiXmlElement *root)
{
this->root = root;
gotoRoot();
}
RRNode::~RRNode()
{
}
RRNode *RRNode::gotoElement(string name)
{
cursor = findElement(root, name);
}
RRNode *RRNode::gotoRoot()
{
cursor = root;
return this;
}
RRNode *RRNode::gotoChil... |
<commit_before>/***********************************************************************
created: Fri, 4th July 2014
author: Henri I Hyyryläinen
*************************************************************************/
/***************************************************************************
* Copy... |
<commit_before>#include "main.hpp"
#include <anarch/x64/multiboot-region-list>
#include <anarch/x64/init>
#include <anarch/api/global-map>
#include <anarch/api/panic>
#include <anarch/stream>
#include <ansa/macros>
#include <ansa/cstring>
extern "C" {
void AluxMainX64(void * mbootPtr) {
anarch::x64::InitializeSingl... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Main
#include "test_common.h"
#include <boost/test/unit_test.hpp>
#include <engine.h>
#include <timeutil.h>
#include <utils/fs.h>
#include <utils/logger.h>
class BenchCallback : public dariadb::storage::ReaderClb {
public:
BenchCallback() { count ... |
<commit_before>/*
Append QA TPC metadata decribing tree structure, and annotating branche variables
Instead of the manual entering all metadatas, arrays of regular expressions defining classes of variables
-- kineVariablesClass
-- qaVariableClass
-- statClassClass
-- categoryClass
varName.class... |
<commit_before> /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <utility>
#include "iree/compiler/Dialect/HAL/IR/HALOps.h"
#include "ire... |
<commit_before>// ScreenCaptureBlockerForRDP.cpp : アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include <shellapi.h>
#include "ScreenCaptureBlockerForRDP.h"
#include "HookDLL/HookDLL.h"
#define MAX_LOADSTRING 100
// グローバル定数:
WCHAR const SZWINDOWCLASS[] = L"SCREENCAPTUREBLOCKERFORRDP"; // メイン ウィンドウ クラス名
UINT co... |
<commit_before>/*
* VocabMatch.cpp
*
* Created on: Oct 11, 2013
* Author: andresf
*/
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <sys/stat.h>
#include <boost/regex.hpp>
#include <boost/algorithm/string.hpp>
#include <opencv2/core/core.hpp>
#inclu... |
<commit_before><commit_msg>'firstPartyForCookies' walks the ancestor tree.<commit_after><|endoftext|> |
<commit_before>#include <cstddef>
#include "gtest/gtest.h"
#include "resize.h"
namespace cs375 {
TEST(NextTableSize, Zero) {
EXPECT_EQ(2u, next_table_size(0u));
}
TEST(NextTableSize, One) {
EXPECT_EQ(2u, next_table_size(1u));
}
TEST(NextTableSize, Two) {
EXPECT_EQ(5u, next_table_size(2u));
}
TEST(Nex... |
<commit_before>/*************************************************************************
*
* $RCSfile: VLineProperties.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: iha $ $Date: 2003-11-13 09:50:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.