text stringlengths 54 60.6k |
|---|
<commit_before>// Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2021 Antti Nuortimo.
//
// 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
... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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.or... |
<commit_before>#include "ground_level.hpp"
#include "species.hpp"
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
#define __GLM_GLM_HPP_INCLUDED
#include <glm/glm.hpp> // glm
#endif
// Include standard headers
#include <cmath> // NAN, std::isnan, std::pow
#include <math.h> // fmax
#include <vector> // std::vector
nam... |
<commit_before>///
/// @file pod_vector.cpp
/// @brief Plain old data vector, like std::vector but does not
/// default initialize memory.
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directo... |
<commit_before>#include "ClientWrapper.hpp"
#include <bts/net/upnp.hpp>
#include <bts/net/config.hpp>
#include <bts/db/exception.hpp>
#include <QApplication>
#include <QResource>
#include <QSettings>
#include <QJsonDocument>
#include <QUrl>
#include <QMessageBox>
#include <iostream>
void get_htdocs_file( const fc::... |
<commit_before>/*
* Creates a single sampler and does a run. No-frills.
*/
#include <iostream>
#include <ctime>
#include "RNG.h"
#include "Sampler.h"
#include "Models/SimpleExample.h"
using namespace std;
int main()
{
// Make an RNG
RNG rng;
rng.set_seed(time(0));
// Create a sampler
Sampler<SimpleExample> sam... |
<commit_before>#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/openni_grabber.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/compression/octree_pointcloud_compression.h>
#include <stdio.h>
#include <sstream>
#include <stdlib.h>
#ifdef WIN32
# define sleep(x) Sleep((x)*1000)
#... |
<commit_before>/*******************************************************************************
* libproxy - A library for proxy configuration
* Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GN... |
<commit_before>//
#include "ktable.hh"
#include "intertable.hh"
#include "parsers.hh"
#define CALLBACK_PERIOD 10000
using namespace std;
using namespace khmer;
bool IntersectTable::check_read(const std::string &read)
{
unsigned int i;
bool is_valid = true;
if (read.length() < _ksize) {
is_valid = fal... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestRInterface.cxx
-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000... |
<commit_before><commit_msg>Fix issue with joysticks axes at full throttle<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<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>#include <handy/conn.h>
#include <handy/logging.h>
#include "test_harness.h"
using namespace std;
using namespace handy;
TcpConnPtr connectto(EventBase* base, const char* host, short port) {
TcpConnPtr con1 = TcpConn::createConnection(base, host, port);
if (!con1) {
return NULL;
}
... |
<commit_before>/// \file
/// \ingroup tutorial_roofit
/// \notebook -js
/// Organization and simultaneous fits: easy interactive access to workspace contents - CINT to CLING code nmigration
///
/// \macro_image
/// \macro_output
/// \macro_code
/// \author 04/2009 - Wouter Verkerke
using namespace RooFit;
void fillWo... |
<commit_before>/*
FLTKKeyboard.cpp:
Copyright (C) 2006 Steven Yi
This file is part of Csound.
The Csound 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... |
<commit_before>#include <QDebug>
#include <QHBoxLayout>
#include <QLabel>
#include <QPixmap>
#include <QPushButton>
#include <QLineEdit>
#include <QRandomGenerator>
#include <QtConcurrent>
#include "common/params.h"
#include "networking.hpp"
#include "util.h"
void clearLayout(QLayout* layout) {
while (QLayoutItem* ... |
<commit_before>#include "utils.hpp"
#include "../project_info.hpp"
namespace msrv {
namespace player_foobar2000 {
Fb2kLogger::Fb2kLogger()
: prefix_(MSRV_PROJECT_ID ": ")
{
}
Fb2kLogger::~Fb2kLogger() = default;
void Fb2kLogger::log(LogLevel, const char* fmt, va_list va)
{
console::printfv((prefix_ + fmt).c... |
<commit_before>/**
@file Cmd/Unit.hpp
@brief Command unit.
@author Timothy Howard
@copyright 2013-2014 Timothy Howard under the MIT license;
see @ref index or the accompanying LICENSE file for full text.
*/
#ifndef HORD_CMD_UNIT_HPP_
#define HORD_CMD_UNIT_HPP_
#include <Hord/config.hpp>
#include <Hord/traits.hpp>
#i... |
<commit_before>#include <numa.h>
#include <sys/mman.h>
#include "slab_allocator.h"
int slab_allocator::alloc(char **objs, int nobjs) {
#ifdef MEMCHECK
for (int i = 0; i < nobjs; i++)
objs[i] = (char *) allocator.alloc(obj_size);
return nobjs;
#else
int num = 0;
while (true) {
pthread_spin_lock(&lock);
link... |
<commit_before>#include "page.h"
#include "bloom_filter.h"
#include <fstream>
#include <cassert>
#include <algorithm>
#include <cstring>
using namespace dariadb::storage;
class PageCursor : public dariadb::storage::Cursor {
public:
PageCursor(Page*page, const dariadb::IdArray&ids, dariadb::Time from, dariadb::Time ... |
<commit_before>#include "page.h"
#include "bloom_filter.h"
#include <fstream>
#include <cassert>
#include <algorithm>
#include <cstring>
using namespace dariadb::storage;
class PageCursor : public dariadb::storage::Cursor {
public:
PageCursor(Page*page, const dariadb::IdArray&ids, dariadb::Time from, dariadb::Time ... |
<commit_before>#include <QDebug>
#include <cdio/cdio.h>
#include "CdromManager.h"
#include "MetadataManager.h"
#include "Player.h"
#ifdef EMS_CDROM_RIPPER
#include "CdromRipper.h"
#endif
#define INTERFACE "com.EnnaMediaServer.Cdrom"
#define SIGNAL_NAME_INSERT "inserted"
#define SIGNAL_NAME_REMOVE "removed"
/* ------... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*=========================================================================
*
* Copyright RTK Consortium
*
* 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>#include <debug.hpp>
#include <itemsForm.hpp>
#include <algorithm>
#include <string>
#include <QJsonArray>
#include <QJsonDocument>
#include <QString>
#include <QFile>
ItemForm::ItemForm(void) {
// TODO: Load this list from some default settings or leave empty
Item* item1 = new Item("Item #1", ... |
<commit_before>/*
* Copyright (C) 2017 Smirnov Vladimir mapron1@gmail.com
* Source code 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 or in file C... |
<commit_before>/**
* Created by Jian Chen
* @since 2016.05.24
* @author Jian Chen <admin@chensoft.com>
* @link http://chensoft.com
*/
#pragma once
#include <algorithm>
#include <vector>
namespace chen
{
class map
{
public:
/**
* Test if the key is in a map
*/
temp... |
<commit_before>// Copyright (c) 2014-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <string>
#include <iostream>
#include <tao/pegtl.hh>
#include "double.hh"
namespace sum
{
struct padded_double
: pegtl::pad< double_::grammar, p... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <exception>
#include <fstream>
#include <iostream>
#include <memory>
#include <ostream>
#include <string>
#include <GL/glew.h>
#include <Support/CmdLine.h>
#include <Support/CmdLineUtil.h>
#include <visio... |
<commit_before>#include <zip.hpp>
#include "helpers.hpp"
#include <iterator>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "catch.hpp"
using iter::zip;
using itertest::BasicIterable;
using itertest::SolidInt;
TEST_CASE("zip: Simple case, same length", "[zip]") ... |
<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 <string>
#include "base/logging.h"
#include "base/mime_util.h"
#include "net/base/platform_mime_util.h"
namespace net {... |
<commit_before>#include "GRenderContext.h"
#include <fstream>
#include <cmath>
#include "GFrameBufferObject.h"
#include "GLUtil.h"
#include "Util.h"
namespace NodeBinding
{
GRenderContext::GRenderContext(int width, int height)
: mWidth(width), mHeight(height), mRatio(2.0) {
GCanvasConfig config = {true, true};... |
<commit_before>/*
Author: Ethan Coon
Painter's permafrost model.
*/
#ifndef AMANZI_FLOWRELATIONS_WRM_IMPLICIT_PERMAFROST_MODEL_
#define AMANZI_FLOWRELATIONS_WRM_IMPLICIT_PERMAFROST_MODEL_
#include <boost/math/tools/roots.hpp>
#include <boost/cstdint.hpp>
#include "wrm_permafrost_model.hh"
#include "wrm_permafrost... |
<commit_before>/*
kopeteaccount.cpp - Kopete Account
Copyright (c) 2003 by Olivier Goffart <ogoffart@tiscalinet.be>
Kopete (c) 2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/*
kopeteaccount.cpp - Kopete Account
Copyright (c) 2003 by Olivier Goffart <ogoffart@tiscalinet.be>
Kopete (c) 2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/*
kopetemessage.cpp - Base class for Kopete messages
Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<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 "views/controls/single_split_view.h"
#if defined(OS_LINUX)
#include <gdk/gdk.h>
#endif
#include "app/gfx/canvas.h"
#inc... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: styledlg.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2006-05-02 16:39:09 $
*
* The Contents of this file are made ... |
<commit_before>
extern "C" {
#include "string.h"
}
#include "Arduino.h"
#include "ESP8266Client.h"
#define AT "AT+\n"
#define AT_DISCONNECT "AT+CLOSE\n"
#define AT_RESET "AT+RST\n"
#define AT_WIFI_MODE "AT+CWMODE"
#define AT_JOIN_AP "AT+CWJAP"
#define AT_LIST_AP "AT+CWLAP"
#define AT_STATUS "AT+CIPSTATUS"
#define AT... |
<commit_before>
extern "C" {
#include "string.h"
}
#include "Arduino.h"
#include "ESP8266Client.h"
#define AT "AT+\n"
#define AT_DISCONNECT "AT+CLOSE\n"
#define AT_RESET "AT+RST\n"
#define AT_WIFI_MODE "AT+CWMODE"
#define AT_JOIN_AP "AT+CWJAP"
#define AT_LIST_AP "AT+CWLAP"
#define AT_STATUS "AT+CIPSTATUS"
#define AT... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014 Francois Beaune, The appleseedhq Organi... |
<commit_before>#include "EntityManager.hpp"
#ifndef KENGINE_MAX_SAVE_PATH_LENGTH
# define KENGINE_MAX_SAVE_PATH_LENGTH 64
#endif
#ifndef KENGINE_MAX_COMPONENT_NAME_LENGTH
# define KENGINE_MAX_COMPONENT_NAME_LENGTH 64
#endif
namespace kengine {
Entity EntityManager::getEntity(Entity::ID id) {
detail::ReadLock l(_e... |
<commit_before>/*
Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights
embodied in the content of this file are licensed under the BSD
(revised) open source license
*/
#include<math.h>
#include<iostream>
#include<stdlib.h>
using namespace std;
#include "loss_functions.h"
#include "global_data.h"
clas... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2016 Intel Corporation. All Rights Reserved.
#include "rs_sdk.h"
#include "samples_time_sync_zr300.h"
#include "samples_time_sync_ds5.h"
#include "rs_sdk_version.h"
namespace rs {
namespace utils {
samples_time_sync... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2016 Intel Corporation. All Rights Reserved.
#include "rs_sdk.h"
#include "samples_time_sync_zr300.h"
#include "samples_time_sync_ds5.h"
#include "rs_sdk_version.h"
#include "samples_time_sync_external_camera.h"
namespace rs {
... |
<commit_before>/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. *
* All rights reserved. Email: russ@q12.org Web: www.q12.org *
* ... |
<commit_before>/*
Title: Validate addresses in objects.
Copyright (c) 2006
David C.J. Matthews
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
vers... |
<commit_before>AliGenerator* CreateGenerator();
void fastGen(Int_t nev = 1, char* filename = "galice.root")
{
//
// Construction
//
// Output file
TFile* file = new TFile(filename, "recreate");
// Create stack
AliStack* stack = new AliStack(10000);
stack->MakeTree(0,... |
<commit_before>/** $Id: $
* \file
* \author $Author: $
* \version $Revision: $
* \package ISM-LabPowerSupply
*
*
*
* (C) 2015 by André Heßling
*/
/*----------------------------------------------------------------------------*\
** Include files ... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2008 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLI... |
<commit_before>#include "mbc1.h"
namespace gameboy {
namespace mbc {
MBC1::MBC1(uint8_t **romBanks, uint8_t num) :
romBanks(romBanks),
numOfROMBanks(num),
currentROMBank(1) {
ram = new uint8_t[8192];
}
MBC1::~MBC1() {
delete[] ram;
}
uint8_t* MBC1::getExternalRAM() {
return ram;
}
uint8_... |
<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 "include/gpu/GrContext.h"
#include "src/core/SkLRUCache.h"
#include "src/gpu/GrCaps.h"
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrContextTh... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2006 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>#include <ap_int.h>
#include "spbits.h"
#define num_levels 4
#include "sort.h"
using namespace std;
ap_uint<bwr> min_elem(ap_uint<bwr> a,
ap_uint<bwr> b,
ap_uint<bwr> c,
ap_uint<bwr> d,
ap_uint<bpow+1> *index);
void sorter::sort1(
ap_uint<bwr> ret_win[cnr],
ap_uint<bwr> *winner0,
ap_uin... |
<commit_before>#include "stdafx.h"
#include "RFProtocolNooLite.h"
static range_type g_timing_pause[7] =
{
{ 1800, 2300 },
{ 380, 750 },
{ 851, 1400 },
{ 2500, 2700 },
{ 0,0 }
}; // TODO FIXIT 500us, 1000us
static range_type g_timing_pulse[8] =
{
{ 1800, 2300 },
{ 200, 650 },
{ 700, 1100 },
... |
<commit_before>#include "client_http.hpp"
#include "server_http.hpp"
#include <cassert>
using namespace std;
#ifndef USE_STANDALONE_ASIO
namespace asio = boost::asio;
#endif
using HttpServer = SimpleWeb::Server<SimpleWeb::HTTP>;
using HttpClient = SimpleWeb::Client<SimpleWeb::HTTP>;
int main() {
// Test ScopeRun... |
<commit_before>/*
* Copyright (C) 2013 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>#if defined(PLATFORM_DESKTOP)
#include "Vajra/Framework/Core/Framework.h"
#include "Vajra/Framework/DeviceUtils/FileSystemUtils/FileSystemUtils.h"
#include "Vajra/Framework/Settings/SettingsHelper.h"
#include <string>
void GetSettingsFileHandleForReading(std::ifstream& file) {
std::string filePath = ... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <ncurses.h>
#define N 80
struct TFlake{
double x;
double y;
double v;
};
int main(int argc, char *argv[]){
struct TFlake flake[N];
const char image[] = {'.', 'o', 'O'};
initscr();
if (!h... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / ... |
<commit_before> /*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NColumns.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2006-02-28 10:33:06 $
*
* The Contents of this file are made... |
<commit_before>#ifndef LIBPORT_EXPORT_HH
# define LIBPORT_EXPORT_HH
# include <libport/detect-win32.h>
# ifdef BUILDING_LIBPORT
# ifdef WIN32
# define LIBPORT_API __declspec(dllexport)
# else
# define LIBPORT_API __attribute__((visibility("default")))
# endif
# endif
# ifndef LIBPORT_API
# ifdef WIN32
# d... |
<commit_before>/*************************************************************************
*
* $RCSfile: dbcharset.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: fs $ $Date: 2001-04-09 06:09:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: parsenode_s.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2006-12-13 16:26:45 $
*
* The Contents of this file are ma... |
<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>#ifndef SLICPLUSPLUS_ENGINE_HPP_
#define SLICPLUSPLUS_ENGINE_HPP_
#include "Actions.hpp"
#include "FramedStream.hpp"
#include "LLStream.hpp"
#include "NetConnection.hpp"
#include "Run.hpp"
#include "TcpSocket.hpp"
#include "UdpSocket.hpp"
SLIC_BEGIN_NAMESPACE
class Engine {
const MaxFile& mf;
std::u... |
<commit_before>/**
* @file llhints.cpp
* @brief Hint popups for displaying context sensitive help in a UI overlay
*
* $LicenseInfo:firstyear=2000&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
*... |
<commit_before>#include "InterpreterTest.h"
#include "benchmark/benchmark.h"
BENCHMARK_CAPTURE(TestTutorial, Test_nopch_minuit2, "tutorials/", "fit/minuit2FitBench.C")->Unit(benchmark::kMicrosecond);
BENCHMARK_CAPTURE(TestTutorial, Test_nopch_minuit2Gaus, "tutorials/", "fit/minuit2GausFit.C")->Unit(benchmark::kMicros... |
<commit_before>// This file is part of libAthena.
//
// libAthena 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 3 of the License, or
// (at your option) any later version.
//
// libAthena is... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopcloc... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (testabilitydriver@nokia.com)
**
** This file is part of Testability Driver Qt Agent
**
** If y... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved
*/
#ifndef _Stroika_Foundation_IO_Network_ConnectionOrientedStreamSocket_inl_
#define _Stroika_Foundation_IO_Network_ConnectionOrientedStreamSocket_inl_ 1
/*
*********************************************************************... |
<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 Insight Software Consortium
*
* 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>#include <mk_test.h>
#include "../src/Xml/XmlParser.hpp"
#include "../src/Xsl/Xsl.hpp"
#define xml_code(code) \
((const char *) #code)
int
main()
{
return 0;
}
<commit_msg>Added test structure<commit_after>#include <mk_test.h>
#include "../src/Xml/XmlParser.hpp"
#include "../src/Xsl/Xsl.hpp"
... |
<commit_before>#include <iostream>
#include <fstream>
#include <string.h>
#include "../src/regexmacros.h"
using namespace std;
int main (int argc, char **argv) {
const string rs (RE_DOT_STAR RE_NONWHITE_CHAR_CLASS RE_DOT_STAR);
cerr << "Testing regex " << rs << endl;
const regex nonwhite_re (rs, regex_consta... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>#include "wrapper_common.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include "mkl_service.h"
#include "mkl_dfti.h"
template<typename Data, typename Precision, typename FFT>
inline MKL_LONG fft_1d_inplace(const MKL_LONG n, Data x[], const Precision forward_scale, cons... |
<commit_before>/*-
* Copyright (c) 2015 Masayoshi Mizutani <mizutani@sfc.wide.ad.jp>
* 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 ab... |
<commit_before>// Copyright (c) 2010 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 "ppapi/tests/test_var.h"
#include "ppapi/c/ppb_var.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include ... |
<commit_before>#include <PCU.h>
#include <MeshSim.h>
#include <SimPartitionedMesh.h>
#include <SimUtil.h>
#include <apfSIM.h>
#include <apfMDS.h>
#include <gmi.h>
#include <gmi_sim.h>
#include <apf.h>
#include <apfConvert.h>
#include <apfMesh2.h>
#include <ma.h>
#include <cassert>
#include <cstdlib>
#include <iostream>... |
<commit_before>#include <silicium/future.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/asio/io_service.hpp>
#if SILICIUM_HAS_FUTURE
#include <boost/asio/spawn.hpp>
BOOST_AUTO_TEST_CASE(future_default_constructor)
{
Si::future<int> f;
}
BOOST_AUTO_TEST_CASE(ready_future)
{
Si::future<int> f = Si::make_re... |
<commit_before>/////////////////////////////////////////////////////////////////////////
//
// 'ORGANIZATION AND SIMULTANEOUS FITS' RooFit tutorial macro #513
//
// Illustration use of RooCustomizer and RooSimWSTool interface
// in factory workspace tool in a complex standalone B physics example
//
// 04/2009 - Wout... |
<commit_before>#include <thin3d/thin3d.h>
#include "base/logging.h"
#include "image/zim_load.h"
#include "image/png_load.h"
#include "file/vfs.h"
static const char * const glsl_fsTexCol =
"varying vec4 oColor0;\n"
"varying vec2 oTexCoord0;\n"
"uniform sampler2D Sampler0;\n"
"void main() { gl_FragColor = oColor0 * tex... |
<commit_before>#include <cassert>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <random>
#include <sstream>
#include <vector>
#include "miopen/db_record.hpp"
#include "test.hpp"
namespace miopen {
namespace tests {
struct TestData
{
int x;
int y;
TestData()
... |
<commit_before>#include "test.h"
int main() {
const u32 MAX = 50;
rangetree<u16, u16> tree;
u16 x, y;
for (x = 0; x < MAX; x++) {
for (y = 0; y < MAX; y++) {
tree.add(x, y, 0);
}
}
tree.finalize();
// With points in every coordinate, we can easily calculate the counts
for (x = 10; x < MAX; x += 1... |
<commit_before>#include "../debug/anglib.hpp"
using anglib::Const::pi; // Угол в 180 градусов
using anglib::Deg; // Тип для хранения градусного представления
using anglib::Hour; // Тип для хранения часового предствления
//-------Для параметризации рекомендуется использовать
//---знаковые целые типы, например:
typede... |
<commit_before>/***********************************************************************
test/string.cpp - Tests the behavior of mysqlpp::String, particularly
its data conversion methods.
Copyright (c) 2007-2008 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the... |
<commit_before>#include <functional>
#include <iostream>
#include <map>
#include "test_helpers.hxx"
using namespace pqxx;
// Example program for libpqxx. Modify the database, retaining transactional
// integrity using the transactor framework.
namespace
{
// Convert year to 4-digit format.
int To4Digits(int Y)
{
... |
<commit_before>#include <GL/freeglut.h>
#include <stdio.h>
#include "math.h"
#include "iostream"
#include <GL/gl.h>
#define PI 3.1415926535898
int w_width=600,w_height=600;
int p,r;
void init(void)
{
glClearColor(1.0,1.0,1.0,0.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(1,w_width,1,w_height,-1,1);
}
... |
<commit_before>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include "log.hpp"
#include "comm.hpp"
#include "commands.hpp"
#include "linenoise/linenoise.h"
#include <thread>
#include <chrono>
#include <vector>
#include <string>
namespace fcwt... |
<commit_before>#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Getopt.hpp"
#include "snarkfront.hpp"
using namespace snarkfront;
using namespace std;
void printUsage(const char* exeName) {
const string
PAIR = " -p BN128|Edwards",
... |
<commit_before>// Copyright 2016 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>/* MicroFlo - Flow-Based Programming for microcontrollers
* Copyright (c) 2016 Jon Nordby <jononor@gmail.com>
* MicroFlo may be freely distributed under the MIT license
*/
// MQTT and MsgFlo.org support, at least for embedded Linux
#include "mosquitto.h"
#include <string>
#include <vector>
#includ... |
<commit_before>int main()
{
return 0;
}
<commit_msg>Actually implement jwttool.<commit_after>#include "toolversion.h"
#include <iostream>
#include <string>
#include <functional>
#include <jwtxx/jwt.h>
#include <jwtxx/version.h>
#include <cstring>
#include <cerrno>
#include <unistd.h>
#include <sys/types.h>
#inc... |
<commit_before>//===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>#include "MapController.h"
#include "fakeit.hpp"
class MapControllerStub: public tsg::map::MapController {
virtual void loadMapFromFile(const std::string &) {}
// virtual void initTouchEvents() {}
public:
MapControllerStub() : MapController(nullptr) {}
};
using namespace fakeit;
TEST_CASE("Tha... |
<commit_before>#include "VideodrommVisualizerApp.h"
void VideodrommVisualizerApp::prepare(Settings *settings)
{
settings->setWindowSize(1024, 768);
settings->setBorderless();
settings->setWindowPos(0, 0);
}
void VideodrommVisualizerApp::setup()
{
// maximize fps
disableFrameRate();
gl::enableVerticalSync(false);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.