text stringlengths 54 60.6k |
|---|
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2004-2006 Trolltech ASA. All rights reserved.
**
** This file is part of the example classes of the Qt Toolkit.
**
** Licensees holding a valid Qt License Agreement may use this file in
** accordance with th... |
<commit_before>/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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>/***********************************************************************
* filename: Element.cpp
* created: 28/10/2011
* author: Martin Preisler
*************************************************************************/
/**************************************************************... |
<commit_before>/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include <iostream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <queue>
#include <qi/log.hpp>
#include <cerrno>
#include <boost/asio.hpp>
#include <boost/lexical_cast.hpp>
#include <qimessaging/transpo... |
<commit_before><commit_msg>Fix linux views build.<commit_after><|endoftext|> |
<commit_before>// Copyright 2012 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before><commit_msg>Fix build.<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix the compile for TOOLKIT_VIEWS.<commit_after><|endoftext|> |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 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>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageMathematics.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>/*
Copyright (c) 2015-2019 Max Krasnyansky <max.krasnyansky@gmail.com>
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 ... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#ifndef ROSETTASTONE_GAME_HPP
#define ROSETTAST... |
<commit_before><commit_msg>AutoFill: Use FormManager::WebFormControlElementToFormField directly instead of finding the form field in FindFormWithFormControlElement.<commit_after><|endoftext|> |
<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 "base/file_util.h"
#include "base/path_service.h"
#include "base/test/test_timeouts.h"
#include "build/build_config.h"
#includ... |
<commit_before><commit_msg>Shard WorkerFastLayoutTests to avoid Flakiness.<commit_after><|endoftext|> |
<commit_before><commit_msg>Mark WorkerTest.LimitPerPage as flaky on Windows<commit_after><|endoftext|> |
<commit_before><commit_msg>Disable worker-cloneport.html. This is to avoid needlessly accumulating flakiness reports. We know it's flaky and are looking for the race condition. Landing for prasadt, original CR: http://codereview.chromium.org/1566006 BUG=35965 TEST=none<commit_after><|endoftext|> |
<commit_before>#include <cpr/cpr.h>
#include "command.h"
#include "../CommandHandler.h"
#include "../OptionParser.h"
/* full name of the command */
CMDNAME("cml");
/* description of the command */
CMDDESCR("interact with crystalmathlabs trackers");
/* command usage synopsis */
CMDUSAGE("$cml [-s] [-nu] [RSN]");
stati... |
<commit_before>// Copyright 2014, Max Planck Institute for Intelligent Systems.
// Distributed under the BSD 3-Clause license.
// (See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/BSD-3-Clause)
//!@file
//! Mex wrapper file for robust PCA
#include "mex.h"
#include <boost/num... |
<commit_before>/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
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 app... |
<commit_before><commit_msg>[FIXED] fetch symbol exception<commit_after><|endoftext|> |
<commit_before>// Filename: odeContactGeom.cxx
// Created by: joswilso (27Dec06)
//
////////////////////////////////////////////////////////////////////
//
// 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
/... |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrVkCopyManager.h"
#include "GrSamplerParams.h"
#include "GrShaderCaps.h"
#include "GrSurface.h"
#include "GrTexturePriv.h"
#include "GrVkCommandBuffe... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "FunctionNameMangler.h"
#include <boost/algorithm/string.hpp>
#include <llvm/IR/IRBuilder.h>
namespace Helen
{
string FunctionNameMangler::mangleName(string name, vector<Type*> args, string style, string className)
{
if(style == "C")
return name;
if(style == "Helen") {
s... |
<commit_before>#include "userselect.h"
#include "newuser.h"
#include <vector>
#include <QVBoxLayout>
#include <QtWidgets>
#include "newuser.h"
UserSelect::UserSelect(QStackedWidget *pages_in, std::vector<User*> users_in, LogIn* parent_in)
{
QFrame();
pages = pages_in;
users = users_in;
parent = parent_... |
<commit_before>// Copyright (c) 2014, Salesforce.com, 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 source code must retain the above copyright
// notice, ... |
<commit_before>/**
* Copyright (C) 2015 3D Repo Ltd
*
* 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 (at your option) any later version.
*
* T... |
<commit_before>/*
Copyright (c) 2015, Andreas Fett. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
*/
#include <cassert>
#include <cstring>
#include "parser-impl.h"
#include "error.h"
#include "token-stream.h"
#include "utf8stream.h"
n... |
<commit_before>/* This file is part of the KDE libraries
Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
Copyright (C) 2002 John Firebaugh <jfirebaugh@kde.org>
Copyright (C) 2001 by Victor Röder <Victor_Roeder@GMX.de>
This library is free software; you can redistribute it and/or
modify it under the... |
<commit_before>/* This file is part of the KDE libraries
* Copyright (C) 2008 Erlend Hamberg <ehamberg@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version... |
<commit_before>#include "internal.hpp"
#include "external.hpp"
#include "macros.hpp"
#include "message.hpp"
namespace CaDiCaL {
/*------------------------------------------------------------------------*/
// Compactifying removes holes generated by inactive variables (fixed,
// eliminated or substituted) by mapping ... |
<commit_before>///
/// @file pi_deleglise_rivat_parallel2.cpp
/// @brief Parallel implementation of the Deleglise-Rivat prime
/// counting algorithm. Compared to
/// pi_deleglise_rivat_parallel1.cpp this version uses
/// compression (FactorTable & PiTable) to reduce the memory
/// usage.
//... |
<commit_before>#ifndef SLIC3R_FIELD_HPP
#define SLIC3R_FIELD_HPP
#include <functional>
#include <string>
#include <limits>
#include <boost/any.hpp>
#include "ConfigBase.hpp"
#include "Log.hpp"
#include "wx/spinctrl.h"
#include "wx/checkbox.h"
#include "wx/textctrl.h"
namespace Slic3r { namespace GUI {
using namespa... |
<commit_before>/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Disa Mhembere (disa@jhu.edu)
*
* This file is part of FlashMatrix.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... |
<commit_before>/*
Persons Model Item
Represents one person in the model
Copyright (C) 2012 Martin Klapetek <martin.klapetek@gmail.com>
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 Softw... |
<commit_before>
/*
* benchmark.cpp - Contains benchmark code for measuring performance related
* numbers in this project
*
* This module should be compiled with all possible optimization flags, and
* also with libc debugging flag turned off
*/
#include "../src/AtomicStack.h"
#include "../src/Loca... |
<commit_before>
#include "ksp_plugin/interface.hpp"
#include "base/not_null.hpp"
#include "geometry/rotation.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "ksp_plugin/frames.hpp"
#include "ksp_plugin/identification.hpp"
#include "ksp_plugin_test/mock_plugin.hpp"
#include "ksp_plugin_test/mock_rendere... |
<commit_before>#include <vector>
#include <iostream>
#include <cstddef>
#include <cstdlib>
#include <cassert>
#include <cstring>
#include <cmath>
#include <stdexcept>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <memory>
#include <cassert>
#include <functional>
#include <locale>
#i... |
<commit_before>// A so-called "active mesh" is one whose primary representation is a half-edge structure. It converts to a basic_mesh whenever one is needed, This allows fast application of algorithms as there is no need to convert an indexed list into a half-edge structure every time we use any algorithms. Also, as a ... |
<commit_before>//
// GLFeature.cpp
// G3MiOSSDK
//
// Created by Jose Miguel SN on 18/03/13.
//
//
#include "GLFeature.hpp"
BillboardGLFeature::BillboardGLFeature(int textureWidth, int textureHeight, int viewportWidth, int viewportHeight):
GLFeature(NO_GROUP){
_texExtent = new GPUUniformValueVec2Float(textureWi... |
<commit_before>#include "InjectOpenGLIntrinsics.h"
#include "IRMutator.h"
#include "IROperator.h"
namespace Halide {
namespace Internal {
using std::string;
using std::vector;
class InjectOpenGLIntrinsics : public IRMutator {
public:
InjectOpenGLIntrinsics()
: inside_kernel_loop(false) {
}
Scope<... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sdiocmpt.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 03:13:28 $
*
* The Contents of this file are made ... |
<commit_before>#include "ffbperiodiceffect.h"
#include <QDebug>
FFBPeriodicEffect::FFBPeriodicEffect() :
FFBEffect(FFBEffectTypes::PERIODIC)
{}
struct ff_effect* FFBPeriodicEffect::createFFStruct()
{
struct ff_effect* eff = FFBEffect::createFFStruct(m_params);
if (eff == nullptr)
return nullptr;
eff->typ... |
<commit_before>#include "../services.hpp"
#include "xbt.h"
#include "simgrid/s4u.hpp"
#include <iostream>
using namespace ::apache::thrift::server;
using namespace ::RsgService;
using namespace ::simgrid;
std::unordered_map<int, simgrid::s4u::MutexPtr> rsg::RsgMutexHandler::pMutexes;
unsigned long long rsg::RsgMu... |
<commit_before>/*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2014 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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>#include <iostream>
#include <array>
#include <chrono>
#include <vector>
#include <memory>
#include <random>
#include "linalg/util.h"
#include "samplers/ld_sampler.h"
#include "samplers/adaptive_sampler.h"
AdaptiveSampler::AdaptiveSampler(int x_start, int x_end, int y_start, int y_end, int min_sp, int m... |
<commit_before>#include "FileToH.h"
/*
Library FileToH - Write a bin file to a H header
Copyright (C) 2013 Eduardo Moura Sales Martins
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
ve... |
<commit_before>#include "Jitter_CodeGen_Arm.h"
using namespace Jitter;
void CCodeGen_Arm::LoadMemoryFpSingleInRegister(CTempRegisterContext& tempRegContext, CArmAssembler::SINGLE_REGISTER reg, CSymbol* symbol)
{
switch(symbol->m_type)
{
case SYM_FP_REL_SINGLE:
LoadRelativeFpSingleInRegister(tempRegConte... |
<commit_before>/// @brief computes scales for CORDIC-rotations in case of circular coordiantes
namespace core { namespace cordic {
template<size_t n, typename fp>
double lut<n, fp>::circular_scale(size_t n)
{
double scale(1.0);
BOOST_FOREACH(size_t i, boost::irange<size_t>(0, n, 1)... |
<commit_before>#ifndef ALEPH_GEOMETRY_TANGENT_SPACE_HH__
#define ALEPH_GEOMETRY_TANGENT_SPACE_HH__
#include <aleph/config/Eigen.hh>
#include <aleph/geometry/BruteForce.hh>
#include <aleph/geometry/FLANN.hh>
#include <aleph/geometry/distances/Euclidean.hh>
#include <aleph/math/AlgebraicSphere.hh>
#include <aleph/mat... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 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 any of... |
<commit_before>/* 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/. */
#ifndef HEADER_GUARD_CLASS_CONTENTS_H
#define HEADER_GUARD_CLASS_CONTENTS_H
#include <memory>
#inc... |
<commit_before>#include <iostream>
#include <random>
#include <chrono>
#include <ctime>
#include <map>
#include <string>
#include <json/json.hpp>
class Civilization {
friend std::ostream& operator<<(std::ostream&, const Civilization&);
typedef std::normal_distribution<double> normal;
typedef std::gamma_distribu... |
<commit_before>/* database-write.cpp
*
* Copyright (C) 2012-2014 Matthias Klumpp <matthias@tenstral.net>
*
* Licensed under the GNU Lesser General Public License Version 3
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as pub... |
<commit_before>#include "ToolBase.h"
#include "NGSD.h"
#include "Exceptions.h"
#include "Helper.h"
class ConcreteTool
: public ToolBase
{
Q_OBJECT
public:
ConcreteTool(int& argc, char *argv[])
: ToolBase(argc, argv)
{
}
virtual void setup()
{
setDescription("Imports Ensembl/CCDS transcript information in... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://open... |
<commit_before>// Copyright (C) 2014 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/Sprite.hpp>
#include <Nazara/Graphics/AbstractViewer.hpp>
#include <memory>
#include <Nazara/Graphic... |
<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 "app/gtk_dnd_util.h"
#include "base/logging.h"
#include "base/pickle.h"
#include "base/utf_string_conversions.h"
#include "go... |
<commit_before>///
/// @file primecount.cpp
/// @brief primecount C++ API
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primecount.hpp>
#include <primecount-internal.hpp>
#inc... |
<commit_before>#pragma once
#include <cstddef>
#include <utility>
#include <memory>
#include <uv.h>
#include "resource.hpp"
#include "util.hpp"
namespace uvw {
/**
* @brief CloseEvent event.
*
* It will be emitted by the handles according with their functionalities.
*/
struct CloseEvent {};
/**
* @brief Ha... |
<commit_before>#include "prioritydb.h"
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <sqlite3.h>
typedef std::map<std::string, std::string> Record;
static int callback(void* response_ptr, int num_values, char** values, cha... |
<commit_before>/**
* Package: eVias Core unitary tests
*
* Copyright (c) 2010 - 2011 Grégory Saive
*
* For more informations about the licensing of this product, please refer
* to the LICENCE file in the root application directory.
*
*/
#include "../core/string_utils.hpp"
#include "../application/console.hpp"
... |
<commit_before>/**
* @file dmesg.cc
* @brief Dmesg Class file
*/
#include "dmesg.h"
#include <android/log.h>
namespace com {
namespace eolwral {
namespace osmonitor {
namespace core {
dmesg::dmesg()
{
this->_bootTime = 0;
}
dmesg::~dmesg()
{
// clean up _curDemsgList
this->clearDataSet((st... |
<commit_before>#include "zc_connection.h"
#include <zerocopy/read_until.h>
#include <boost/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include "../common/rfc822.h"
const std::string ZcConnection::endOfData = "\r\n.\r\n";
void ZcConnection::start() {
writeGreeting();
}
ZcConnection::~Zc... |
<commit_before>//
// Created by Miguel Rentes on 11/01/2017.
//
#include "introduction.h"
int main(void) {
unsigned int n, q;
cin >> n >> q;
string line;
unsigned int* array[n]; // array with n pointers to the other arrays
vector<string> array_indexes;
vector<string> queries; // vector to hol... |
<commit_before>/*
(C) 2016 Marc Stevens.
This file is part of fplll. fplll 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 option) any later ve... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include "session_context.h"
#include <algorithm>
#include "curl/curl.h"
#include "cvmfs_config.h"
#include "gateway_util.h"
#include "json_document.h"
#include "swissknife_lease_curl.h"
#include "util/string.h"
namespace upload {
size_t SendCB... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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>/*
* Copyright (c) 2012 Holger Schletz <holger.schletz@web.de>
* 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 copyrig... |
<commit_before>#define _CRT_SECURE_NO_WARNINGS 1
#include "stdafx.h"
#include "unzip.h"
#include "MachineInstaller.h"
#include "resource.h"
bool findPackageFromEmbeddedZip(wchar_t* buf, DWORD cbSize)
{
bool ret = false;
CResource zipResource;
if (!zipResource.Load(L"DATA", IDR_UPDATE_ZIP)) {
return false;
}
... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include "session_context.h"
#include <algorithm>
#include "curl/curl.h"
#include "cvmfs_config.h"
#include "gateway_util.h"
#include "json_document.h"
#include "swissknife_lease_curl.h"
#include "util/string.h"
namespace upload {
size_t SendCB... |
<commit_before>/*
* Copyright (c) 2015 Nathan Osman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify... |
<commit_before>#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::e... |
<commit_before>/*
Copyright 2002-2013 CEA LIST
This file is part of LIMA.
LIMA 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
(at your option) ... |
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#include "../core/Setup.h"
#include <algorithm>
#include <fstream>
#if defined(_WIN32)
# pragma push_macro("WIN32_LEAN_AND_MEAN")
# pragma push_macro("NOMINMAX")
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# ifn... |
<commit_before>// -*- C++ -*-
// ex1_histogram.cc
// an exercise for the sandia 2014 clinic team.
// here we do a histogram calculation over unsigned ints
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <array>
#include <string>
#include <chrono>
#include <algorithm>
// header file fo... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#include <librealsense2/rs.hpp> // Include RealSense Cross Platform API
#include "example.hpp" // Include short list of convenience functions for rendering
// Capture Exampl... |
<commit_before><commit_msg>drt: bump ACCESS_PATTERN_END_ITERATION_NUM to 10 for difficult AOI gate<commit_after><|endoftext|> |
<commit_before><commit_msg>basic server mock<commit_after>#include <rest/server.h>
int main() {
std::unique_ptr<REST::Server> server (new REST::Server("0.0.0.0", 8080));
server->run();
}
<|endoftext|> |
<commit_before>/*************************************************************************/
/* array.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include <eos/agent.h>
#include <eos/ip.h>
#include <eos/ip_route.h>
#include <eos/mpls.h>
#include <eos/nexthop_group.h>
#include <eos/sdk.h>
#include <stdio.h>
class my_agent : pu... |
<commit_before>// Orbbec (c) 2015
#include <SenseKit.h>
#include <cstdio>
#include <iostream>
#ifdef _WIN32
#include <windows.h>
#else //_WIN32 -> OS X, LINUX
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#endif //_WIN32
bool shouldContinue = true;
void signal_stop_processing(){
printf("quittin... |
<commit_before>#include "inc/cxx/json.hpp"
#include "test/catch.hpp"
#include <type_traits>
using namespace std::string_literals;
TEST_CASE("can default construct cxx::json")
{
static_assert(std::is_nothrow_default_constructible_v<cxx::json>);
cxx::json const json;
REQUIRE(cxx::holds_alternative<cxx::document>(... |
<commit_before>#include <cmath>
#include <Eigen/Dense>
#include <gtest/gtest.h>
TEST( AdaptiveFilter, LMS )
{
const unsigned kInputCount = 10;
const unsigned kSampleCount = 100;
const float kMaxAmplitude = 1.0f;
const float kMaxFrequency = 10.0f;
const float kStep = 0.1f * 1.0f / kMaxFrequency;
... |
<commit_before>// Bell inequalities (CHSH) violation
// Source: ./examples/bell_inequalities.cpp
#include <qpp.h>
using namespace qpp;
using std::cout;
using std::endl;
//TODO: finish the example, incomplete now
int main()
{
ket psi = kron(st.z0, st.z0); // Measure the singlet Bell state (|01>-|10>)
// /sqrt... |
<commit_before>// Copyright 2016-2019 Jean-Francois Poilpret
//
// 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 2010-2012 Esrille 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 applica... |
<commit_before>/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/sksl/SkSLCPPUniformCTypes.h"
#include "include/private/SkMutex.h"
#include "src/sksl/SkSLStringStream.h"
#include "src/sksl/codegen/SkSLHCodeGene... |
<commit_before>/*
* Copyright (C) 2015-2018 Dubalu LLC. 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 the Software without restriction, including without limitation the right... |
<commit_before>#include "reposition.h"
#include "print.h"
// The reposition_window function repositions the specified window as if it had been created with CW_USEDEFAULT position.
// Step 1. "Create a temporary invisible window with CW_USEDEFAULT as its position and the same height and width as your dialog box."
// S... |
<commit_before>/*
Copyright (c) DataStax, 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 law or agreed to... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLProperty.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>//----------------------------------*-C++-*----------------------------------//
/**
* @file MGSolverGMRES.i.hh
* @author robertsj
* @date Jun 19, 2012
* @brief MGSolverGMRES inline member definitions.
*/
//---------------------------------------------------------------------------//
#ifnde... |
<commit_before>/***********************************************************************************************************************
* *
* SPLASH build system v0.2 ... |
<commit_before>#include <iostream>
#include <vector>
#include <HFO.hpp>
#include <cstdlib>
using namespace std;
using namespace hfo;
// Before running this program, first Start HFO server:
// $> ./bin/HFO --offense-agents 1
// Server Connection Options. See printouts from bin/HFO.
feature_set_t features = LOW_LEVEL_... |
<commit_before>//
// gclass.cpp
// etc
//
// Created by Oleksii Tiurenkov on 9/30/15.
// Copyright (c) 2015 Oleksii Tiurenkov. All rights reserved.
//
#include "gclass.h"
#include <fstream>
#include <iostream>
#include <algorithm>
#include "GLOBAL_CONST.h"
using namespace std;
std::string random_string( size_t l... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.