text stringlengths 54 60.6k |
|---|
<commit_before>/*
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
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/lic... |
<commit_before>//===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V ... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* 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... |
<commit_before>//********************************************************************
// Example of the reconstruction that generates the ESD
// Input files:
// a) file containing the ITS clusters
// (the AliITSFindClustersV2.C macro can be used to generate it)
// b) file containing the TPC clusters
// ... |
<commit_before>#ifndef XGBOOST_IO_PAGE_ROW_ITER_INL_HPP_
#define XGBOOST_IO_PAGE_ROW_ITER_INL_HPP_
/*!
* \file page_row_iter-inl.hpp
* row iterator based on sparse page
* \author Tianqi Chen
*/
#include "../data.h"
#include "../utils/iterator.h"
#include "../utils/thread_buffer.h"
#include "./simple_fmatrix-inl.hpp... |
<commit_before>/*
* Concatenate several istreams.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "istream_cat.hxx"
#include "istream_oo.hxx"
#include "util/Cast.hxx"
#include <assert.h>
#include <stdarg.h>
struct CatIstream;
struct CatInput {
CatIstream *cat;
struct istream *istream;
/* han... |
<commit_before>/*
* This istream filter reads a 32 bit header size from the stream,
* reads it into a buffer and invokes a callback with the tail of the
* stream.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "sink_header.hxx"
#include "pool.hxx"
#include "istream_internal.hxx"
#include "async.hxx"
#inc... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLTexture.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>/**
* @file tpot.cpp
*
* @brief Plugin to calculate potential temperature
*
* Created on: Nov 20, 2012
* @author partio
*/
#include "tpot.h"
#include <iostream>
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#define HIMAN_AUXILIARY_INCLUDE
#include "fe... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil -*- */
#include <schwa/io/logging.h>
#include <cassert>
#include <cstring>
#include <ctime>
#include <iostream>
#include <sstream>
#include <thread>
#include <sys/time.h>
namespace schwa {
namespace io {
const char *
loglevel_name(const LogLevel level) {
swi... |
<commit_before>/*
* Copyright 2009-2012 The VOTCA Development Team
* (http://www.votca.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 obtain a copy of the License at
*
*... |
<commit_before>#ifdef __APPLE__
#include "WProgram.h"
#include <midi-common.hh>
#include <MidiUartParent.hh>
#include "MidiUartOSX.h"
void getMidiName(MIDIEndpointRef ep, char *buf, uint16_t len) {
CFStringRef pname, pmanuf, pmodel;
char name[64], manuf[64], model[64];
MIDIObjectGetStringProperty(ep, kMID... |
<commit_before>#include "myHeader.h"
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;
void printStringArr(const string a[], int n, ostream &os) {
for (int i = 0; i < n; i++)
os << "\n" << a[i];
}
int getIntInRange(int start, int end) {
int x = getInt();
while (x <... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: http://www.qt-project.org/
**
**
** GNU Lesser General Public License Usage
**
** This file may be used ... |
<commit_before>// Copyright (C) 2015, 2016 Pierre-Luc Perrier <pluc-dev@the-pluc.net>
//
// 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>#include "infer.hpp"
#include "ast.hpp"
#include "package.hpp"
#include <sstream>
namespace type {
// try to open type `self` from signatures in `s`
static mono open(const ref<state>& s, const mono& self);
// foldr over row types
template<class Init, class Func>
static Init foldr_rows(con... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld
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) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#pragma once
#include <initializer_list>
#include <map>
#include <memory>
#include <utility>
#include <mos/gfx/mesh.hpp>
namespace mos {
namespace gfx {
/**
* @brief Keyframe animation, interpolation between meshes.
*/
class Animation {
public:
Animation();
/**
* @brief Animation default cont... |
<commit_before>/****************************************************************************
Copyright (c) 2014 Naomasa Matsubayashi
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 restric... |
<commit_before>#ifndef _TOOLBOX_CURL_EASY_HPP_
#define _TOOLBOX_CURL_EASY_HPP_
#include <curl/curl.h>
namespace toolbox
{
namespace curl
{
namespace options
{
template<int E, typename T>
struct option_def
{
using type_t = T;
static constexpr auto option = static_cast<CURLoption>(E);
const T &value;
option_def(... |
<commit_before>#ifndef _INCLUDED_INPUT_HPP
#define _INCLUDED_INPUT_HPP
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <tudocomp/util.h>
#include <tudocomp/io/IOUtil.hpp>
#include <tudocomp/io/ViewStream.hpp>
namespace tudo... |
<commit_before>//============================================================================
// vSMC/include/vsmc/core/monitor.hpp
//----------------------------------------------------------------------------
// vSMC: Scalable Monte Carlo
//-----------------------------------------------------... |
<commit_before>
#include <iostream>
#include <fstream>
#include <utility>
#include <ctime>
// TCLAP
#include "tclap/CmdLine.h"
#include "cereal/archives/json.hpp"
#include "rb-filesystem.hpp"
#include <sdsl/bit_vectors.hpp>
#include <cstdio>
#include <cstdlib>
#include <libgen.h>
#include <sparsepp/spp.h>
#includ... |
<commit_before>#include "ovpCBoxAlgorithmRunCommand.h"
#include <cstdlib>
using namespace OpenViBE;
using namespace OpenViBE::Kernel;
using namespace OpenViBE::Plugins;
using namespace OpenViBEPlugins;
using namespace OpenViBEPlugins::Stimulation;
boolean CBoxAlgorithmRunCommand::initialize(void)
{
IBox& l_rStaticB... |
<commit_before>#include "include/eos/wallet_plugin/wallet.hpp"
#include <eos/utilities/key_conversion.hpp>
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <list>
#include <fc/container/deque.hpp>
#include <fc/crypto/ellipt... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dynamicresultset.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: ihi $ $Date: 2007-06-05 18:05:21 $
*
* The Contents of this file ... |
<commit_before>/*************************************************************************
*
* $RCSfile: NeonPropFindRequest.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kso $ $Date: 2001-05-30 13:57:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/* snesasm
nicklausw's attempt at a portable
snes assembler
licensed under the isc license. you
should have gotten a copy with snesasm,
if not then visit http://nicklausw.github.io/isc.txt
enjoy. */
#include <iostream> // basics
#include <fstream> // io
#include <string> // string
#include <sstrea... |
<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 "ui/ozone/platform/caca/ozone_platform_caca.h"
#include "ui/ozone/common/native_display_delegate_ozone.h"
#include "ui/ozone/plat... |
<commit_before>//in this file, we will go over pointers and references and recursion
#include <iostream>
//don't look at this until you are told to
int passByPointer(int* value){
//get DATA at value (which is an address) and do stuff with it
*value = (*value) * 3;
//return the data
return *value;
}
//don't... |
<commit_before>#include <sstream>
#include <string>
#include <tuple>
#include <optional>
#include <functional>
#include <unordered_map>
#include "iterate_tuple.h"
#include "dataconsts.h"
#include "entity_system.h"
#include "chat/whisper_chat.h"
namespace {
template <typename... Args>
class Parser {
public:
... |
<commit_before>// Copyright 2016-2017 Francesco Biscani (bluescarni@gmail.com)
//
// This file is part of the mp++ library.
//
// 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/MP... |
<commit_before>#include <cctype>
#include <iostream>
#include <Lexer.hpp>
namespace miniMAT {
namespace lexer {
Lexer& Lexer::operator=(const Lexer& lexer) {
this->input_line = lexer.input_line;
this->current_char = lexer.current_char;
this->stream.str(input_line);
... |
<commit_before>#include "modinclude.h"
#include "bot_admin.h"
class DieCommand : public AdminHook {
public:
DieCommand(std::tr1::unordered_map<std::string, std::string> modConf, Base* modFace, std::string modName, std::string dir, unsigned short debug);
int botAPIversion();
bool onLoadComplete();
void onRehas... |
<commit_before>// Font.cc
// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
//
// 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 limitatio... |
<commit_before>/*
===========================================================================
Daemon GPL Source Code
Copyright (C) 2012 Unvanquished Developers
This file is part of the Daemon GPL Source Code (Daemon Source Code).
Daemon Source Code is free software: you can redistribute it and/or modify
it under the... |
<commit_before>/*
* GraphEventPublisher.hpp
*
* Created on: Sep 16, 2015
* Author: aboeckmann
*/
#pragma once
#include <vector>
#include "GraphEvent.hpp"
namespace envire { namespace core
{
class GraphEvent;
class GraphEventSubscriber;
/**
* Base class for frame-event publishers.
* H... |
<commit_before>/** \copyright
* Copyright (c) 2012, Stuart W Baker
* 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 not... |
<commit_before>
#include "loop.h"
#include "config.h"
#include "output.h"
#include "mode.h"
#include "configmonitor.h"
#include "edid.h"
#include <QX11Info>
#include <QtCore/QDebug>
#include <QtCore/QDateTime>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
using namespace KScreen;
Loop... |
<commit_before>/*
* Copyright (c) 2011. Philipp Wagner <bytefish[at]gmx[dot]de>.
* Released to public domain under terms of the BSD Simplified license.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistr... |
<commit_before>/*
Copyright (C) 2013 Martin Klapetek <mklapetek@kde.org>
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.1 of the License, or (at your opt... |
<commit_before>/*
* Host based encapsulated base sweeper.
*/
#ifndef _PFASST_ENCAPSULATED_HPP_
#define _PFASST_ENCAPSULATED_HPP_
#include <vector>
#include "pfasst-interfaces.hpp"
#include "pfasst-quadrature.hpp"
using namespace std;
namespace pfasst {
namespace encap {
typedef enum EncapType { solution, ... |
<commit_before>#include "RhoZ.h"
#include "Units.h"
#include "PointContact.h"
using namespace GeFiCa;
void RhoZ::GetBoundaryConditionFrom(Detector &detector)
{
Grid::GetBoundaryConditionFrom(detector); // check number of calls
TString type(detector.ClassName());
if (type.Contains("PointContact")) {
if ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket_... |
<commit_before>#include "Sky.hpp"
#include "Game.hpp"
static std::array<SkyManager::Flare, 11> g_lensFlares {
{{
18.f,
0.9f,
{},
1.f
},
{
46.f,
0.45f,
{},
1.f
}, {
100.f,
0.6f,
{},
1.f
},
{
200.f,
0.4f,
{},
1.f
},
{
300.f,
1.2f,
{},
1.f
... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// insert_plan.cpp
//
// Identification: src/planner/insert_plan.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===---------------------------------... |
<commit_before>/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontMgr.h"
#include "SkFontStyle.h"
#include "SkFontConfigInterface.h"
#include "SkFontConfigTypeface.h"
#include "SkMath.h"
#include "SkString.h"
#... |
<commit_before>#include "idt.hpp"
#include <kernel/events.hpp>
#include <kernel/syscalls.hpp>
#include <kprint>
#include <info>
#define RING0_CODE_SEG 0x8
extern "C" {
extern void unused_interrupt_handler();
extern void modern_interrupt_handler();
extern void spurious_intr();
extern void cpu_enable_panicking... |
<commit_before>#include "Via.h"
#include "BitOps.h"
#include "MemoryMap.h"
namespace {
enum class ShiftRegisterMode {
// There are actually many more modes, but I think Vectrex only uses one
ShiftOutUnder02
};
namespace PortB {
const uint8_t MuxDisabled = BITS(0);
const uin... |
<commit_before>/* This is free and unencumbered software released into the public domain. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "error.h"
#include "sysv_segment.h"
#include <cassert> /* for assert() */
#include <cerrno> /* for errno */
#include <sys/types.h> /* for key_t */
#include... |
<commit_before>#include "meshoptimizer.hpp"
#include <cassert>
#include <cmath>
#include <vector>
namespace
{
const size_t max_cache_size = 32;
const float valence_boost_scale = 2.0f;
const float last_triangle_score = 0.75f;
// The table is for max_cache_size = 32, cache_decay_power = 1.5,
// ... |
<commit_before>///
/// @file nthPrime.cpp
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/config.hpp>
#include <primesieve/PrimeSieve.hpp>
#include <primesieve/pmath.hp... |
<commit_before>///
/// @file PrimeSieve-nthPrime.cpp
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/config.hpp>
#include <primesieve/cancel_callback.hpp>
#include <pri... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>#include "bar.hpp"
#include "registry.hpp"
#include "services/builder.hpp"
#include "utils/config.hpp"
#include "modules/backlight.hpp"
#include "modules/battery.hpp"
#include "modules/bspwm.hpp"
#include "modules/counter.hpp"
#include "modules/cpu.hpp"
#include "modules/date.hpp"
#include "modules/memo... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt ... |
<commit_before>/*
* ECKCDSA (ISO/IEC 14888-3:2006/Cor.2:2009)
* (C) 2016 René Korthaus, Sirrix AG
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/eckcdsa.h>
#include <botan/internal/pk_ops_impl.h>
#include <botan/keypair.h>
#include <botan/reducer.h>
#include <botan/emsa.h>
... |
<commit_before>/**\file
* \brief Generator of test data for fir.h regression.
*
* Will generate data set for regression test in MATLAB.
*
* \author Rick Lan
* \copyright See LICENSE for license.
*/
#include "fir.h"
#include "fir_regression.h"
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <... |
<commit_before>#include "Name.h"
bool Name::init(String name) {
size = name.length() + 1;
data = (uint8_t *) malloc(size);
if (data != NULL) {
uint8_t lastDot = size;
for (uint8_t i = size - 1; i > 0; i--) {
uint8_t c = name.charAt(i - 1);
... |
<commit_before>#include "ctc.h"
#include "logger.h"
PrefixTree::Node::Node() :
inTok (0),
parent (NULL),
nStates (0),
outLen (0)
{ }
PrefixTree::Node::Node (const PrefixTree& tree, const Node* parent, InputToken inTok) :
inTok (inTok),
parent (parent),
nStates (tree.nStates),
outLen (tree.outLen)
{ }
... |
<commit_before>#include <mlpack/core.hpp>
#include <mlpack/methods/hmm/hmm.hpp>
#include <mlpack/methods/gmm/gmm.hpp>
using GMM = mlpack::gmm::GMM;
template<typename Distribution>
using HMM = mlpack::hmm::HMM<Distribution>;
using GaussianDistribution = mlpack::distribution::GaussianDistribution;
int main(){
//N... |
<commit_before>/* -*- C++ -*-
This file implements the Job class.
$ Author: Mirko Boehm $
$ Copyright: (C) 2004-2013 Mirko Boehm $
$ Contact: mirko@kde.org
http://www.kde.org
http://creative-destruction.me $
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Libr... |
<commit_before>#include "keys.hh"
#include <unordered_map>
namespace Kakoune
{
static std::unordered_map<std::string, Key> keynamemap = {
{ "ret", { Key::Modifiers::None, '\n' } }
};
KeyList parse_keys(const std::string& str)
{
KeyList result;
for (size_t pos = 0; pos < str.length(); ++pos)
{
... |
<commit_before>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2011, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>/*
Copyright (c) 2017 Tuukka Norri
This code is licensed under MIT license (see LICENSE for details).
*/
#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <vcf2multialign/generate_haplotypes.hh>
#ifdef __linux__
#include <pthread_workqueue.h>
#endif
#include "cmdline.h"
namespac... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <locale>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream> // NOLINT
#include "config.h"
#include "cmdline.h"
#include "ast.h"
#include "ast-serializer.h"
#include "codegen.h"
#include "parser.h"
int main(int argc, char **argv) {
... |
<commit_before>/*
* Worldvisions Weaver Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
*
* WvDial configuration utility. Generates a basic wvdial.conf file.
*/
#include "wvmodemscan.h"
#include "wvfile.h"
#include "wvconf.h"
#include <ctype.h>
void check_ppp_options()
{
WvFile file... |
<commit_before>/**
* studentCollection_class.cpp
*
* Author: Patrick Rummage <patrickbrummage@gmail.com>
*
* Objective:
*
*/
#include <iostream>
using std::cin;
using std::cout;
struct studentRecord {
int studentID;
int grade;
char[] Name;
};
class studentCollection {
private:
struct st... |
<commit_before>#include "chainerx/routines/linalg.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <tuple>
#include <utility>
#include <vector>
#include <absl/types/optional.h>
#include "chainerx/array.h"
#include "chainerx/axes.h"
#include "chainerx/backend.h"
#include "chainerx/backprop_mode.... |
<commit_before>// Copyright 2017 The Ray 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
//
// Unless required by applicable law... |
<commit_before>#include <stan/prob/distributions/univariate/continuous/student_t.hpp>
#include <gtest/gtest.h>
#include <boost/random/mersenne_twister.hpp>
#include<boost/math/distributions.hpp>
TEST(ProbDistributionsStudentT, random) {
boost::random::mt19937 rng;
EXPECT_NO_THROW(stan::prob::student_t_rng(3.0, 2.0... |
<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 <set>
#include <string>
#include "chrome/browser/download/download_util.h"
#include "base/logging.h"
#include "base/str... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "temp_scaffolding_stubs.h"
#include "build/build_config.h"
#include <vector>
#include "base/logging.h"
#include "chrome/bro... |
<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/common/nacl_fork_delegate_linux.h"
#include <signal.h>
#include <stdlib.h>
#include <sys/socket.h>
#include "base/ba... |
<commit_before>/**
* @file stereoRectify.cpp
* @brief mex interface for stereoRectify
* @author Kota Yamaguchi
* @date 2011
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/// Field names for struct
const char* _fieldnames[] = {"R1", "R2", "P1", "P2", "Q", "roi1", "roi2"};
/// Create a struct... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>#include <ncurses.h>
#include "newmove.hh"
#include "move.hh"
#include "file_contents.hh"
#include "show_message.hh"
#include "int_to_str.hh"
static void show() {
int vy,vx;
getyx(stdscr,vy,vx);
show_message((std::string("x,y,vx,vy: ")
+ int_to_str(get_contents().get_x()) +... |
<commit_before>#include <cstdio>
#include <memory>
class A {
private:
int id;
public:
A(int id): id(id) {
printf("constructed %d\n", this->id);
}
~A() {
printf("destructed %d\n", this->id);
}
};
int main(void) {
std::unique_ptr<A> a = std::unique_ptr<A>(new A(0));
std::unique_ptr<A> b = null... |
<commit_before>#include <fstream>
#include "Set.hpp"
void BFS_corners(FILE *file, int end);
void BFS_edges1(FILE *file, int end);
void BFS_edges2(FILE *file, int end);
int main(int argc, char const *argv[]) {
FILE *file;
int end = -1;
if (argc > 1) {
end = 1 + atoi(argv[1]);
}
// file ... |
<commit_before>/*
* Copyright 2014 The Imaging Source Europe GmbH
*
* 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 b... |
<commit_before>#include "sbridge.h"
sbridge::sbridge(std::string publishedName) {
ros::NodeHandle sNH;
driveControlSubscriber = sNH.subscribe((publishedName + "/driveControl"), 10, &sbridge::cmdHandler, this);
heartbeatPublisher = sNH.advertise<std_msgs::String>((publishedName + "/sbridge/heartbeat"), ... |
<commit_before>#include "Write_Solution.hxx"
#include <boost/algorithm/string.hpp>
#include <stdexcept>
Write_Solution::Write_Solution(const std::string &input)
: input_string(input)
{
std::vector<std::string> solutions;
using namespace std::string_literals;
boost::split(solutions, input_string, boost::is_... |
<commit_before>#include <sstream>
#include <string>
#include <iostream>
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include "ProxyHandler.h"
void ProxyHandler::Configure(const NginxConfig& child_config_block) {
}
std::string ProxyHandler::HandleRequest(const HTTPRequest& req) {
... |
<commit_before>
/*
* MaskLayer.cpp
*
* Created on: Mar 21, 2014
* Author: slundquist
*/
#include "MaskLayer.hpp"
namespace PV {
MaskLayer::MaskLayer(const char * name, HyPerCol * hc){
initialize_base();
initialize(name, hc);
}
MaskLayer::MaskLayer() {
initialize_base();
// initialize() gets ... |
<commit_before>#pragma once
#include <iostream>
#include <stdexcept>
#include <vector>
#include <map>
#include <stack>
#include "rapidjson/reader.h"
#include "rapidjson/error/en.h"
#include "rapidjson/stringbuffer.h"
#include "acmacs-base/read-file.hh"
// ------------------------------------------------------------... |
<commit_before>// Copyright (c) 2014-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
#include <util/system.h>
#include <test/test_bitcoin.h>
#include <vector>
#include <boost... |
<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>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <vistk/pipeline/config.h>
#include <vistk/pipeline/modules.h>
#includ... |
<commit_before>#include "userInteractionTask.h"
#include "rapidjson/rapidjson.h"
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
userInteractionTask::userInteractionTask(washingCycleTask* WCT):
RTOS::task(10,"user interaction"),
machineStatePool ("machineStatePool"... |
<commit_before>#include <QIntValidator>
#include <QDesktopServices>
#include "assettingsview.h"
#include "pathsetting.h"
#include "optionalsetting.h"
#include "ui_assettingsview.h"
AsSettingsView::AsSettingsView(QWidget *parent) :
QWidget(parent),
ui(new Ui::AsSettingsView)
{
ui->setupUi(this);
hide();... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
/* **
****
******
*/
int main(int argc, char *argv[]){
int altura = atoi(argv[1]);
for (int fila=0; fila<altura; fila++){
/* Una fila entera del 1er cuad. */
for (int col=0; col<altura; col++)
if ( (fila + col >= altura -1) &&
(fila -... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2014 Ulrich von Zadow
//
// 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 Li... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#i... |
<commit_before>/** MIT License
*
* Copyright(c) 2017 DevDuino
*
* 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, mod... |
<commit_before>/*
SWARM
Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (... |
<commit_before>// -*- mode: c++; coding: utf-8 -*-
#pragma once
#ifndef WTL_CONCURRENT_HPP_
#define WTL_CONCURRENT_HPP_
#include <thread>
#include <mutex>
#include <condition_variable>
#include <future>
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////
namespace wtl {
/////////1/////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.