text stringlengths 54 60.6k |
|---|
<commit_before>
#include <cstdint>
#include <limits>
//
// http://www.csee.umbc.edu/~tsimo1/CMSC455/IEEE-754-2008.pdf
// https://en.wikipedia.org/wiki/IEEE_754-1985
//
namespace ieee754
{
enum class Float
{
PositiveZero,
NegativeZero,
DenormalizedNumber,
PositiveInfinity,
NegativeInfinity,
NotANumber,
... |
<commit_before>// This file may be redistributed and modified only under the terms of
// the GNU Lesser General Public License (See COPYING for details).
// Copyright (C) 2000 Stefanus Du Toit
#include "../Stream/Codec.h"
#include "Utility.h"
#include <stack>
using namespace std;
using namespace Atlas::Stream;
/*
... |
<commit_before>#include "stdafx.h"
#include "AutowiringBenchmarkTest.h"
#include "TestFixtures/SimpleObject.h"
#include <boost/chrono/system_clocks.hpp>
TEST_F(AutowiringBenchmarkTest, VerifySimplePerformance) {
const size_t n = 10000;
// Insert the object:
AutoRequired<SimpleObject>();
// Time n hash map hi... |
<commit_before>#include "is_valid_char.hxx"
#include "../../Positive_Matrix_With_Prefactor_State.hxx"
#include <algorithm>
#include <iterator>
#include <string>
using namespace std::literals;
inline void check_iterator(const char character,
const std::vector<char>::const_iterator &begin,
... |
<commit_before>//
// function.cpp
// integral
//
// Copyright (C) 2017 André Pereira Henriques
// aphenriques (at) outlook (dot) com
//
// This file is part of integral.
//
// integral is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by... |
<commit_before>// attribute unused on struct parameter
// originally found in package 'rbldnsd_0.994b'
// Assertion failed: e != NULL && "388cba6d-895c-4acb-ac25-c28fc1c4c2cb", file cc.gr line 1234
// ERR-MATCH: Assertion failed: 388cba6d-895c-4acb-ac25-c28fc1c4c2cb
struct S1 {};
int foo(struct S1 __attribute__((un... |
<commit_before>#include <unistd.h>
#include <ncurses.h>
#include <cstdint>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <vector>
#include "game.h"
WINDOW* main_wnd;
WINDOW* game_wnd;
rect game_area;
rect screen_area;
vec2ui cur_size;
std::vector<enemy> enemies;
std::vector<star> stars;
stru... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2018 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
*... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2015-2016.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================================... |
<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>/*
Copyright (c) 2013, Richard Martin
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 condit... |
<commit_before>/*
KSync - Client-Server synchronization system using rsync.
Copyright (C) 2014 Matthew Scott Krafczyk
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License,... |
<commit_before>/*
* Copyright (C) 2017 Nagisa Sekiguchi
*
* 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 applicab... |
<commit_before>/*
* Copyright (C) 2017 Nagisa Sekiguchi
*
* 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 applicab... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#include <Document.h>
#include <Selection.h>
#include <Node.h>
void test_parser() {
std::string page("<h1><a>wrong link</a><a class=\"special\"\\>some link</a></h1>");
CDocument doc;
doc.parse(page.c_str());
CSelection c = doc.find("h1 a.special");
CNode node = c.nodeAt(0);
printf("Node: %s\n", n... |
<commit_before>/*
* Copyright © 2011 Intel Corporation
*
* 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MetaExportComponent.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: obo $ $Date: 2008-02-26 13:37:31 $
*
* The Contents of this f... |
<commit_before>/*************************************************************************
*
* $RCSfile: xsec_nss.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: mt $ $Date: 2004-07-12 13:15:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#pragma once
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <vector>
#include "hash.hpp"
#include "slice.hpp"
namespace {
auto readVI (Slice& data) {
const auto i = data.read<uint8_t>();
if (i < 253) return static_cast<uint64_t>(i);
if (i < 254) return sta... |
<commit_before>#include "SlitherlinkField.h"
#include "SlitherlinkProblem.h"
namespace Penciloid
{
SlitherlinkField::SlitherlinkField()
{
height = 0;
width = 0;
hints = nullptr;
}
SlitherlinkField::~SlitherlinkField()
{
if (hints) delete[] hints;
}
void SlitherlinkField::Init(int height_t, int... |
<commit_before>/**
* @file cossb.hpp
* @brief COSSB Header
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 9
* @details
*/
#ifndef _COSSB_HEADER_HPP_
#define _COSSB_HEADER_HPP_
#if defined(__unix__) || defined(__gnu_linux__) || defined(linux) || defined(__linux__)
#include "version.hpp"
#... |
<commit_before>#ifndef STAN_CALLBACKS_STREAM_LOGGER_HPP
#define STAN_CALLBACKS_STREAM_LOGGER_HPP
#include <stan/callbacks/logger.hpp>
#include <ostream>
#include <string>
#include <sstream>
namespace stan {
namespace callbacks {
/**
* <code>stream_logger</code> is an implementation of
* <code>logger<... |
<commit_before>#ifndef STAN__COMMON__INITIALIZE_STATE_HPP
#define STAN__COMMON__INITIALIZE_STATE_HPP
#include <string>
#include <iostream>
#include <math.h>
#include <stan/math/matrix/Eigen.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/random/additive_combine.hpp> // L'Ecuyer RNG
#include <boost/random/unif... |
<commit_before><commit_msg>Adding some helpful comments<commit_after><|endoftext|> |
<commit_before>///
/// @file imath.hpp
/// @brief Integer math functions
///
/// Copyright (C) 2018 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef IMATH_HPP
#define IMATH_HPP
#include <isqrt.hpp>
#include ... |
<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>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*!
\file timestamp.cpp
\brief Timestamp implementation
\author Ivan Shynkarenka
\date 26.01.2016
\copyright MIT License
*/
#include "time/timestamp.h"
#include "math/math.h"
#if defined(__APPLE__)
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <sys/time.h>
#include <m... |
<commit_before>#include "sensing/object_detection.hpp"
DetectObjectAction::DetectObjectAction(ros::NodeHandle nh, std::string name) :
nh_(nh),
as_(nh_, name, false),
action_name_(name),
object_sub_(nh_.subscribe(
"/recognized_object_array",
1,
&DetectObjectActio... |
<commit_before>// Copyright (c) 2019 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 <test/fuzz/fuzz.h>
#include <base58.h>
#include <util/string.h>
#include <util/strencodings.h>
#include ... |
<commit_before>#include "extensions/filters/network/rbac/rbac_filter.h"
#include "envoy/buffer/buffer.h"
#include "envoy/network/connection.h"
#include "extensions/filters/network/well_known_names.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace RBACFilter {
RoleBasedAccessControlFil... |
<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/.
//
// Copyright 2016 [bk]door.maus
#include <algorithm>
#include "glurg/trace/structureSignature.hpp"
... |
<commit_before>/*
** Author(s):
** - Herve Cuche <hcuche@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <iostream>
#include <vector>
#include <map>
#include <qi/os.hpp>
#include <qimessaging/service_directory.hpp>
#include <boost/program_options.hpp>
namespace po = boost::program_o... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** GNU Lesser General Public License Usage
**
** This file may ... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2017 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>class PO2_ON {
title = " Enemy - OCB Patrol Ops 2";
values[]= {1, 0};
texts[]= {"On","Off"};
default = 1;
};
class MISSIONTYPE_PO { // MISSION TYPE
title= " Mission Type Patrol Ops";
values[]={0,1,2,3,4,5,6,7,8};
default=7;
texts[]={"Off","Domination","Reconstruction","Sear... |
<commit_before>#include <cstdio>
#include <string>
#include <random>
#include <iostream>
#include "rocksdb/db.h"
#include "rocksdb/statistics.h"
#include "rocksdb/perf_context.h"
#include "rocksdb/utilities/spatial_db.h"
#include "rocksdb/env.h"
using namespace rocksdb;
using namespace spatial;
using std::pair;
usi... |
<commit_before>#include "ClientWrapper.hpp"
#include <bts/net/upnp.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::path& filename, const fc::http... |
<commit_before>/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#pragma once
#include <uavcan/time.hpp>
#include <uavcan/protocol/debug/LogMessage.hpp>
#include <uavcan/marshal/char_array_formatter.hpp>
#include <uavcan/node/publisher.hpp>
#if !defined(UAVCAN_CPP_VERSION) || !defined(UAVCAN_CPP... |
<commit_before>/* linbox/algorithms/gauss-solve.inl
* Copyright (C) LinBox 2008
*
* Written by Jean-Guillaume Dumas <Jean-Guillaume.Dumas@imag.fr>
* Time-stamp: <16 Jun 10 14:21:31 Jean-Guillaume.Dumas@imag.fr>
*
* See COPYING for license information.
*/
#ifndef __GAUSS_NULLSPACE_INL
#define __GAUSS_NULLSPACE... |
<commit_before>#ifndef stack_cpp
#define stack_cpp
#pragma once
#include <iostream>
#include <memory>
#include <thread>
#include <mutex>
class bitset
{
public:
explicit bitset(size_t size) /*strong*/;
bitset(bitset const & other) = delete;
auto operator =(bitset const & other)->bitset & = delete;
... |
<commit_before>#include <iostream>
#include <algorithm>
#include <stdexcept>
template <typename T>
class stack
{
public:
stack() noexcept;
~stack() noexcept;
stack(stack<T> const&)/*no safety*/;
stack& operator=(stack<T> const&)/*no safety*/;
size_t count()const noexcept;
void push(T const&)/*no safety*/;
void ... |
<commit_before>#include <iostream>
using namespace std;
template <typename T>
class stack
{
public:
stack();/*noexept*/
stack(const stack<T> &);/*strong*/
size_t count() const; /*noexcept*/
void print()const;/*noexcept*/
void push(T const &); /*strong*/
void swap(stack<T>&); /*noexcept*/
void pop(); /*strong*/... |
<commit_before>#include <iostream>
#include <algorithm>
#include <stdexcept>
#include <new>
template <typename T>
class stack
{
public:
stack() noexcept;
~stack() noexcept;
stack(stack<T> const&)/*strong*/;
stack& operator=(stack<T> const&)/*strong*/;
size_t count()const noexcept;
void push(T const&)/*strong*/;
... |
<commit_before>/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*
* param.cpp
*
*/
#include "param.h"
using namespace himan;
using namespace std;
param::~param() {}
param::param()
: itsId(kHPMissingInt),
itsName("XX-X"),
itsScale(1),
itsBase(0),
itsUnivId(kHPMissingInt),
itsGribParameter(kHPMissingInt),
itsGribCategory(k... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NavigatorChildWindow.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2006-12-12 16:57:10 $
*
* The Contents of this fi... |
<commit_before>// source_facility.cc
// Implements the SourceFacility class
#include "source_facility.h"
#include <sstream>
#include <limits>
#include <boost/lexical_cast.hpp>
#include "cyc_limits.h"
#include "context.h"
#include "error.h"
#include "generic_resource.h"
#include "logger.h"
#include "market_model.h"
#... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: SpatialObjectTransforms.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>#include <sequanto/qtautomationeventfilter.h>
#include <cassert>
using namespace sequanto::automation;
const int QtAutomationMoveEvent::ID = QEvent::registerEventType();
QtAutomationMoveEvent::QtAutomationMoveEvent ( int _x, int _y )
: QEvent( (QEvent::Type) ID),
m_position(_x, _y)
{... |
<commit_before>// residual.cpp: example program to show exact residual calucation using the quire
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <ostream>
#include <limits>
#include <num... |
<commit_before>#ifndef _LIB_NODETEXT_HPP__
#define _LIB_NODETEXT_HPP__
#include <SFML/Graphics/Export.hpp>
#include <SFML/Graphics/Drawable.hpp>
#include <SFML/Graphics/Transformable.hpp>
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/VertexArray.hpp>
#include <string>
#inc... |
<commit_before>#include "memcache_client_pool.h"
#include "vbucket_config.h"
#include "evpp/event_loop_thread_pool.h"
#include "likely.h"
namespace evmc {
#define GET_FILTER_KEY_POS(name, key) \
name = key.find(key_filter_); \
if (name == std::string::npos) { \
name = key.size() - 1; \
}
MemcacheClientPool::~... |
<commit_before>//
// Copyright 2013 Francisco Jerez
//
// 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 <stan/agrad/rev/functions/value_of.hpp>
#include <test/unit/agrad/util.hpp>
#include <gtest/gtest.h>
#include <stan/math/functions/value_of.hpp>
TEST(AgradFwd,value_of) {
using stan::agrad::fvar;
using stan::math::value_of;
using stan::agrad::value_of;
fvar<double> a = 5.0;
EXPECT_FL... |
<commit_before>#include "libnanocv/minimize.h"
#include "libnanocv/tabulator.h"
#include "libnanocv/math/abs.hpp"
#include "libnanocv/util/timer.h"
#include "libnanocv/math/math.hpp"
#include "libnanocv/util/logger.h"
#include "libnanocv/util/stats.hpp"
#include "libnanocv/math/clamp.hpp"
#include "libnanocv/util/rando... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: kdebecdef.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2006-08-01 10:25:46 $
*
* The Contents of this file are mad... |
<commit_before>#include "importconfigurationcommand.hpp"
using namespace kdb;
ImportConfigurationCommand::ImportConfigurationCommand(TreeViewModel* model, const QString keyName, const QString format, const QString file, const QString mergeStrategy, QUndoCommand* parent)
: QUndoCommand(parent)
, m_model(model)
, m_... |
<commit_before>/*
* Copyright 2010 The Native Client 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 <assert.h>
#include <sstream>
#include <string>
#include <vector>
#include "native_client/src/include/nacl_macros.h"
... |
<commit_before>#include "pvalue.h"
#include "gtest/gtest.h"
// compare with Table 1 from paper
TEST(pvalue_test, paper)
{
constexpr double alpha = 0.001;
EXPECT_NEAR(runs_pvalue(15.5, 5), alpha, 0.00002);
EXPECT_NEAR(runs_pvalue(23.8, 50), alpha, 0.00002);
// from MC have larger error
EXPECT_NEAR(r... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl>
* Copyright (c) 2011 Giulio Camuffo <giuliocamuffo@gmail.com>
*
* This library is free software; you can redi... |
<commit_before>#include <unistd.h>
#include <fcntl.h>
#include <cstdlib>
#include "base/all.h"
#include "rpc/marshal.h"
using namespace rpc;
TEST(marshal, content_size) {
Marshal m;
rpc::i32 a = 4;
EXPECT_EQ(m.content_size(), 0u);
m << a;
EXPECT_EQ(m.content_size(), 4u);
rpc::i32 b = 9;
m... |
<commit_before>#include <stan/mcmc/mcmc_output.hpp>
#include <gtest/gtest.h>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <boost/math/distributions/students_t.hpp>
#include <stdio.h>
class binormal : public ::testing::Test {
protected:
virtual void SetUp() {
FILE *in;
if(!(in = popen("make ... |
<commit_before>#include <gtest/gtest.h>
#include <stdexcept>
class Models_BugsExamples_Vol2_Dogs : public ::testing::Test {
protected:
virtual void SetUp() {
FILE *in;
if(!(in = popen("make path_separator --no-print-directory", "r")))
throw std::runtime_error("\"make path_separator\" has failed.");
... |
<commit_before>
#include <cassert>
#include <algorithm>
#include <reflectionzeug/new/PropertyGroup.h>
#include <reflectionzeug/new/AbstractProperty.h>
#include <reflectionzeug/new/AbstractVisitor.h>
#include <reflectionzeug/util.h>
namespace reflectionzeug
{
PropertyGroup2::PropertyGroup2(const std::string & name)... |
<commit_before>#include <osg/CameraNode>
#include <osg/io_utils>
#include <osg/Notify>
#include <osgDB/Registry>
#include <osgDB/Input>
#include <osgDB/Output>
#include "Matrix.h"
using namespace osg;
using namespace osgDB;
// forward declare functions to use later.
bool CameraNode_readLocalData(Object& obj, Input&... |
<commit_before>/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ... |
<commit_before><commit_msg>Delete glibc_compat.cpp<commit_after><|endoftext|> |
<commit_before>#include "unit_tests.h"
#include "crc_t.h"
//------------- tests for CRC_t methods -------------
int test_crc_t_name(struct test_info_t *test_info)
{
TEST_INIT;
CRC_t crc;
if( crc.name != "CRC-32" )
return TEST_BROKEN;
return TEST_PASSED;
}
int test_crc_t_name_2... |
<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 2015-2020 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_XCODE_PROJECT_HPP
#define OUZEL_XCODE_PROJECT_HPP
#include <fstream>
#include "OuzelProject.hpp"
#include "PBXBuildFile.hpp"
#include "PBXContainerItemProxy.hpp"
#include "PBXFileReference.hpp"
#include "PBXFrameworksBuildPhase... |
<commit_before>#ifdef _MSC_VER
#include <filesystem>
#endif
#include <map>
#include <babylon/core/string.h>
#include <babylon/core/filesystem.h>
#include <babylon/core/system.h>
#include <imgui_utils/icons_font_awesome_5.h>
#include <imgui_utils/imgui_utils.h>
#include <babylon/inspector/samples_browser.h>
#include <ba... |
<commit_before>#include "EnvimetReader.h"
#include <vtkObjectFactory.h>
#include <vtkStreamingDemandDrivenPipeline.h>
#include <vtkInformationVector.h>
#include <vtkInformation.h>
#include <vtkSmartPointer.h>
#include <vtkPointData.h>
#include <vtkDataArray.h>
#include <vtkFloatArray.h>
#include <iostream>
#include <... |
<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 "GrCaps.h"
#include "GrContextFactory.h"
#include "SkCanvas.h"
#include "SkCommandLineFlags.h"
#include "SkJSONCanvas.h"
#include "SkPicture.h"
#includ... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>/*
Copyright (C) 2003-2008 Grame
Grame Research Laboratory, 9 rue du Garet, 69001 Lyon - France
research@grame.fr
This file is provided as an example of the MusicXML Library use.
*/
#ifdef VC6
# pragma warning (disable : 4786)
#endif
#include <stdlib.h>
#include <string.h>
#include <getopt.h... |
<commit_before><commit_msg>Make sure rhs is ready for assembly<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>// vi: set ts=2:
//
// $Id: mainframe.C,v 1.62.8.6 2007/06/12 05:42:24 oliver Exp $
//
#include "mainframe.h"
#include "icons.h"
#include "demoTutorialDialog.h"
#include <BALL/CONCEPT/moleculeObjectCreator.h>
#ifdef BALL_HAS_ASIO
#include <BALL/VIEW/KERNEL/serverWidget.h>
#endif
#include <BALL/VIEW/REN... |
<commit_before>/* MolPredictor.C
*
* Copyright (C) 2009 Marcel Schumann
*
* This file is part of QuEasy -- A Toolbox for Automated QSAR Model
* Construction and Validation.
* QuEasy is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
<commit_before>/**
* Copyright 2016, Quickstep Research Group, Computer Sciences Department,
* University of Wisconsin—Madison.
*
* 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 ... |
<commit_before>/* Copyright 2015 Yurii Litvinov and CyberTech Labs 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 r... |
<commit_before>// Copyright (c) 2011 - 2017, GS Group, https://github.com/GSGroup
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permission notice appear in all copies.
// THE SOFTWARE IS PRO... |
<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 <windows.h>
#include "base/basictypes.h"
#include "base/logging.h"
#include "media/audio/audio_output.h"
#include "media... |
<commit_before>// MFEM Example 1
//
// Compile with: make ex1
//
// Sample runs: ex1 -m ../data/square-disc.mesh
// ex1 -m ../data/star.mesh
// ex1 -m ../data/escher.mesh
// ex1 -m ../data/fichera.mesh
// ex1 -m ../data/square-disc-... |
<commit_before><commit_msg>dba33b: solaris compiler didn't like a ;<commit_after><|endoftext|> |
<commit_before>
/**************************************************************************
* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/**
* @file Dtw.cpp
*
* An implementation of the Dynamic Time Warping algorithm.
*
* This file is part of the Aquila DSP library.
* Aquila is free software, licensed under the MIT/X11 License. A copy of
* the license is provided with the library in the LICENSE file.
*
* @package Aquila
* @versi... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 - 2013 Jolla Ltd.
** Contact: http://jolla.com/
**
** This file is part of Qt Creator.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Le... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2009-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
<commit_before><commit_msg>INTEGRATION: CWS mbafixesfor22 (1.113.108); FILE MERGED 2007/01/16 11:31:02 mba 1.113.108.1: #i64552#: pass bIsAPI to every print call<commit_after><|endoftext|> |
<commit_before>#include <algorithm>
#include "Graphics.h"
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480 //minimum size to allow for 64x64 maps
Graphics::Graphics(uint16_t xSize, uint16_t tileOffset, uint16_t tileAmount) {
this->selXMin = std::min(8*64, 8*xSize) + 1;
this->xDisplaySize = std::min(64, 0+x... |
<commit_before>#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <iostream>
#include <vector>
using namespace std;
using namespace cv;
int main(int /*argc*/, const char** /* argv */ )
{
Mat framebuffer( 160 * 2, 160 * 5, CV_8UC3, cv::Scalar::all(255) );
Mat ... |
<commit_before>/*
* Copyright (c) [2014-2015] Novell, Inc.
* Copyright (c) [2016-2017] SUSE LLC
*
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as published
* by the Free Software Foundation.
*... |
<commit_before>/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free software: you can redistribute it ... |
<commit_before>#include "Client.hpp"
#include <functional>
#include <utility>
#include <exception>
#include <string>
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <iostream>
#include "events/IncomingMessage.hpp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.