text stringlengths 54 60.6k |
|---|
<commit_before>68abafd4-2e4d-11e5-9284-b827eb9e62be<commit_msg>68b0b9d4-2e4d-11e5-9284-b827eb9e62be<commit_after>68b0b9d4-2e4d-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>f0407906-2e4e-11e5-9284-b827eb9e62be<commit_msg>f0456c40-2e4e-11e5-9284-b827eb9e62be<commit_after>f0456c40-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>/****************** <SNX heading BEGIN do not edit this line> *****************
*
* sonix
*
* Original Authors:
* Kevin Meinert, Carolina Cruz-Neira
*
****************** <SNX heading END do not edit this line> ******************/
/*************** <auto-copyright.pl BEGIN do not edit this line> ... |
<commit_before>#ifndef NEK_UTILITY_HAS_XXX_HPP
#define NEK_UTILITY_HAS_XXX_HPP
#include <nek/type_traits/integral_constant.hpp>
#define NEK_HAS_XXX_TYPE_DEF(type)\
namespace type##_detail\
{\
template <class T, class = typename T::##type>\
nek::true_type has_##type(int);\
\
template <class>\
nek::false_type has_... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
// Copyright (c) 2016 Albert D Yang
// -------------------------------------------------------------------------
// Module: luabind_plus_test
// File name: inline_test.cpp
// Create... |
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.h"
#include "../src/assets/neuron_interface.h"
#include "../src/assets/input_neuron.h"
#include "../src/assets/synapse.h"
#include "../src/assets/neuron.h"
#include "../src/assets/soma.h"
#in... |
<commit_before>constexpr inline nlohmann::json::size_type operator"" _S(unsigned long long v) {
return static_cast<nlohmann::json::size_type>(v);
}
inline std::string operator"" _S(const char *v, std::size_t) { return std::string(v); }
static inline nlohmann::json find(nlohmann::json &array, const char *path, const... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the te... |
<commit_before>/* godot-cpp integration testing project.
*
* This is free and unencumbered software released into the public domain.
*/
#include "example.h"
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/classes/label.hpp>
#include <godot_cpp/variant/u... |
<commit_before>#include <filter.hpp>
#include "helpers.hpp"
#include <vector>
#include <string>
#include <iterator>
#include "catch.hpp"
using iter::filter;
using Vec = const std::vector<int>;
namespace {
bool less_than_five(int i) {
return i < 5;
}
class LessThanValue {
private:
int compare_val... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: localfilehelper.cxx,v $
*
* $Revision: 1.16 $
*
* last change: $Author: hr $ $Date: 2006-06-19 14:09:39 $
*
* The Contents of this file a... |
<commit_before>/*
* Source MUD
* Copyright (C) 2000-2005 Sean Middleditch
* See the file COPYING for license details
* http://www.sourcemud.org
*/
#include <assert.h>
#include "mud/efactory.h"
#include "common/log.h"
#include "mud/entity.h"
SEntityFactoryManager EntityFactoryManager;
SEntityFactoryManager::Fac... |
<commit_before>/* Copyright 2015-2018 Egor Yusov
*
* 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
*
* THE SOFTWARE IS PROVIDED "AS IS... |
<commit_before>#include "dialect.hpp"
#include <boost/assert.hpp>
#include <bitcoin/net/messages.hpp>
#include <bitcoin/util/assert.hpp>
#include <bitcoin/util/logger.hpp>
namespace libbitcoin {
namespace net {
serializer::stream construct_header_from(serializer::stream payload,
std::string command)
{
... |
<commit_before>#include <iostream>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#include <sys/user.h>
#define PF_LIST_INET 1
#ifdef INET6
#define PF_LIST_INET6 2
#endif
int main()
{
int mib[4];
size_t len=4;
kinfo_proc kp;
std::cout<<sysctlnametomib("kern.proc.pid"... |
<commit_before>#include <iostream>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <net/route.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/in_pcb.h>
#in... |
<commit_before>
#include "FlareCompanyMenu.h"
#include "../../Flare.h"
#include "../Components/FlarePartInfo.h"
#include "../Components/FlareCompanyInfo.h"
#include "../../Data/FlareSpacecraftComponentsCatalog.h"
#include "../../Data/FlareCustomizationCatalog.h"
#include "../../Game/FlareGame.h"
#include "../../Game... |
<commit_before>#include <node/v8.h>
#include <node/node.h>
#include <cstring> //strlen
#include <cstdlib>
#include "uno/game/game_wrapper.h"
using namespace v8;
using namespace node;
/** @todo remove this */
static Handle<Value> Hello( const Arguments &args ) {
HandleScope scope;
const char *str = "Hello from ho... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 no... |
<commit_before>/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_
#define LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_
#include <LightGBM/metric.h>
#include <... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>#include "planning/jet/jet_model.hh"
#include "geometry/visualization/put_collada.hh"
#include "viewer/primitives/simple_geometry.hh"
// TODO
#include <set>
namespace planning {
namespace jet {
void JetModel::insert(viewer::SceneTree& tree) const {
const SE3 world_from_jet = SE3();
const auto du... |
<commit_before>// 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 in writing, software
// ... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2011 Shantanu Tushar <jhahoneyk@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Le... |
<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>/*
* AbstractNormProbe.cpp
*
* Created on: Aug 11, 2015
* Author: pschultz
*/
#include "AbstractNormProbe.hpp"
#include "columns/HyPerCol.hpp"
#include "layers/HyPerLayer.hpp"
#include <limits>
namespace PV {
AbstractNormProbe::AbstractNormProbe() : LayerProbe() { initialize_base(); }
Abst... |
<commit_before>#include <pybind11/pybind11.h>
#include <iostream>
namespace py = pybind11;
PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>);
namespace nifty{
namespace graph{
namespace opt{
} // namespace nifty::graph::opt
}
}
PYBIND11_MODULE(_opt, module) {
module.doc() = "_opt", "opt submodule of nifty... |
<commit_before>#include "inscriptiontablemodel.h"
#include "guiutil.h"
#include "bitcoinrpc.h"
#include "base58.h"
#include "walletmodel.h"
#include "util.h"
#include "ui_interface.h"
#include <QFont>
#include <QColor>
#include <QDateTime>
/*
#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_wr... |
<commit_before>#ifndef _HIDA_STAR_HPP_
#define _HIDA_STAR_HPP_
#include <cassert>
#include <vector>
#include <boost/array.hpp>
#include <boost/optional.hpp>
#include <boost/pool/pool_alloc.hpp>
#include <boost/unordered_map.hpp>
#include <boost/utility.hpp>
#include "search/Constants.hpp"
#include "util/PointerOps.... |
<commit_before>/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */
#include "SettingRegistry.h"
#include <sstream>
#include <iostream> // debug IO
#include <libgen.h> // dirname
#include <string>
#include <cstring> // strtok (split string using delimiters) strcpy
#include <fstream> // ifst... |
<commit_before>namespace shader {
const char* buff_frag_shader = R"(
uniform sampler2D sampler;
uniform vec4 brightness_contrast[2];
uniform vec2 buffer_dimension;
uniform int enable_borders;
// Ouput data
varying vec2 uv;
vec2 roundVec2(vec2 f) {
return vec2(float(int(f.x+0.5)),
float(int(f.y+0... |
<commit_before>/*
* 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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2011 Heiko Strathmann
* Copyrig... |
<commit_before>#include "neuralnetwork.h"
#include "../util/mathutils.h"
#include <iostream>
NeuralNetwork::NeuralNetwork(uint32 input, uint32 hidden, uint32 output) :
m_inputCount(input),
m_hiddenCount(hidden),
m_outputCount(output)
{
m_inputs = new real32[m_inputCount];
m_inputWeights = createM... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libetonyek project.
*
* 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 a... |
<commit_before>/**
* This test tries out different command line options for a
* generated model.
*/
#include <gtest/gtest.h>
#include <stdexcept>
class ModelCommand : public ::testing::TestWithParam<int> {
public:
static std::vector<std::string> arguments;
static std::string model_path;
static char get_pat... |
<commit_before>// Copyright (C) 2016 The Regents of the University of California (Regents).
// 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 r... |
<commit_before>/******************************************************************************
* @file hgpu_prng_test.cpp
* @author Vadim Demchik <vadimdi@yahoo.com>
* @version 1.0
*
* @brief [PRNGCL library]
* Pseudo-random number generators for HGPU package
* tests submodule
*
*... |
<commit_before>
class MinStack {
public:
stack<int> stk, minstk;
MinStack() {
// do initialization if necessary
}
void push(int number) {
stk.push(number);
if (minstk.empty() or number <= minstk.top()) {
minstk.push(number);
}
}
int pop() {
... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010, 2011 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 regar... |
<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>
// Methods for the class DAS - a class used to parse the dataset attribute
// structure.
//
// jhrg 7/25/94
// $Log: DAS.cc,v $
// Revision 1.7 1994/10/13 15:46:57 jimg
// Added compile-time switched instrumentation.
// Removed the three definitions of DAS::print().
// Added DAS::print(ostream &os = ... |
<commit_before>#include <cmath>
#include <Eigen/Eigenvalues>
#include <float.h>
#include "Ellipse.h"
static std::ranlux24 G_engine(271828);
std::ostream& operator<<(std::ostream& os, const EllipseGeometry& eg)
{
os << "{ C:" << eg.center.transpose() << "; R:" << eg.radius.transpose() << "; A:" << eg.angle << " }";
... |
<commit_before>/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooFitTools
* File: $Id: RooKeysPdf.cc,v 1.7 2002/04/04 00:18:00 verkerke Exp $
* Authors:
* GR, Gerhard Raven, UC, San Diego , Gerhard.Raven@slac.sta... |
<commit_before><commit_msg>-Werror,-Wunused-variable<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: dbtoolsclient.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2004-08-02 16:46:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*************************************************************************
*
* $RCSfile: dbtoolsclient.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: pjunck $ $Date: 2004-10-22 11:54:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>/*************************************************************************
*
* $RCSfile: tbxdrctl.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-01-31 09:14:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* $RCSfile: txtcache.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2003-04-17 14:29:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: labelcfg.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-09-09 07:28:13 $
*
* The Contents of this file are made... |
<commit_before>#include <cstdio>
#include <algorithm>
using namespace std;
const int NMAX = 100000,
PASI_INFINITI = NMAX*2;
int v[NMAX],
nVector, sizeOfCheat;
int back(int pozitieCurenta, int cheatsAvailable) {
if (pozitieCurenta > nVector)
return PASI_INFINITI;
if (pozitieCurenta ==... |
<commit_before>// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-experimental-checks -verify %s
struct X0 { };
bool operator==(const X0&, const X0&);
// PR7287
struct test { int a[2]; };
void t2() {
test p = {{1,2}};
test q;
q = p;
}
bool PR7287(X0 a, X0 b) ... |
<commit_before>/*
* Copyright 2016 Nu-book Inc.
* Copyright 2017 Axel Waggershauser
*
* 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
*
* Unl... |
<commit_before>#include <cagey/math/Constants.hh>
#include <gtest/gtest.h>
#include <cstdint>
using namespace cagey::math;
template <typename T>
class ConstantTestFixture : public ::testing::Test {
};
TYPED_TEST_CASE_P(ConstantTestFixture);
TYPED_TEST_P(ConstantTestFixture, ChecksPiValue) {
EXPECT_EQ(TypeParam(3.... |
<commit_before>#include <stdio.h>
#include <Halide.h>
using namespace Halide;
int main(int argc, char **argv) {
//int W = 64*3, H = 64*3;
const int W = 16, H = 16;
Image<uint16_t> in(W, H);
for (int y = 0; y < H; y++) {
for (int x = 0; x < W; x++) {
in(x, y) = rand() & 0xff;
... |
<commit_before>#ifndef THUMQ_IO_HPP
#define THUMQ_IO_HPP
#include <utility>
#include <zmq.hpp>
namespace thumq {
class IO
{
IO(const IO &) = delete;
IO &operator=(const IO &) = delete;
public:
/**
* @param socket for use in a single receive-send cycle.
*/
explicit IO(zmq::socket_t &socket) throw ():
han... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
// Copyright (C) 2010 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the ... |
<commit_before>#include <iostream>
#include <platform/posix/sockets-datapump.h>
using namespace moducom::coap;
int main()
{
std::cout << "CoRE test" << std::endl;
SocketsDatapumpHelper sdh;
for(;;)
{
sdh.loop(sockets_datapump);
auto& datapump = sockets_datapump;
/*
... |
<commit_before>#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include <netinet/in.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <vector>
#include <algorithm>
#include <list>
#include <map>
#include <netdb.h>
#include <cstdlib>
#inc... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKC... |
<commit_before>// Copyright (C) 2011, 2012 Strahinja Val Markovic <val@markovic.io>
//
// This file is part of YouCompleteMe.
//
// YouCompleteMe 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 vers... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>/****************************************************************************
**
** 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 <QString>
#include <QFileInfo>
#include <QUrl>
#include "kernel.h"
#include "connectorinterface.h"
#include "resource.h"
#include "ilwisdata.h"
#include "angle.h"
#include "geometries.h"
#include "ellipsoid.h"
#include "projection.h"
#include "proj4parameters.h"
#include "ilwisobject.h"
#include... |
<commit_before>#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <boost/regex.hpp>
#include <sqlite3ext.h>
SQLITE_EXTENSION_INIT1
/**
Get a string argument from SQLite. It assumes you already know it's there.
You can check that with argc() or trust SQLite to do that. */
const c... |
<commit_before>#ifndef NCRON_RLIMIT_H_
#define NCRON_RLIMIT_H_
/* rlimit.c - sets rlimits for ncron jobs
*
* (c) 2003-2014 Nicholas J. Kain <njkain at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... |
<commit_before>#ifndef Bull_Matrix4_hpp
#define Bull_Matrix4_hpp
#include <array>
#include <Bull/Math/Polygon/Rectangle.hpp>
#include <Bull/Math/Vector/Vector4.hpp>
namespace Bull
{
template<typename T>
class BULL_API Matrix4
{
public:
/*! \brief Create an identity matrix
*
... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, Image Engine Design 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:... |
<commit_before>// Copyright (C) 2015 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
#pragma once
#ifndef NAZARA_MATERIAL_HPP
#define NAZARA_MATERIAL_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Co... |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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
// 3 of the Lic... |
<commit_before>// Copyright (C) 2010-2013 Joshua Boyce.
// See the file COPYING for copying permission.
#pragma once
#include <array>
#include <string>
#include <vector>
#include <utility>
#include <utility>
#include <iterator>
#include <algorithm>
#include <hadesmem/detail/warning_disable_prefix.hpp>
... |
<commit_before>/*
* Copyright (C) 2017 Tmplt <tmplt@dragons.rocks>
*
* 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 3 of the License, or
* (at your option) any later versio... |
<commit_before>
#include <glbinding/callbacks.h>
#include <sstream>
#include <iomanip>
#include <type_traits>
#include <glbinding/AbstractValue.h>
#include <glbinding/Binding.h>
namespace
{
glbinding::SimpleFunctionCallback g_unresolvedCallback;
glbinding::FunctionCallback g_beforeCallback;
glbinding::Fu... |
<commit_before>/*
* Copyright (C) 2011 Google 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this... |
<commit_before>#include "roomsreader.h"
RRNode::RRNode(TiXmlElement *root)
{
this->root = root;
parent = 0;
gotoRoot();
}
RRNode::~RRNode()
{
}
RRNode *RRNode::gotoElement(string name)
{
cursor = findElement(root, name);
if (!isNull())
parent = cursor->Parent()->ToElement();
else
... |
<commit_before>/*!
\file stack_trace_manager.cpp
\brief Stack trace manager implementation
\author Ivan Shynkarenka
\date 10.02.2016
\copyright MIT License
*/
#include "system/stack_trace_manager.h"
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#if defined(DBGHELP_SUPPORT)
#include <... |
<commit_before>/**
* This file is part of the CernVM file system
*/
#include "sync_item.h"
#if !defined(__APPLE__)
#include <sys/sysmacros.h>
#endif // __APPLE__
#include <cerrno>
#include <vector>
#include "duplex_libarchive.h"
#include "ingestion/ingestion_source.h"
#include "sync_mediator.h"
#include "sync_u... |
<commit_before>#include <iostream>
using namespace std;
class Box {
private:
double length; // Length of a box
double breadth; // Breadth of a box
double height; // Height of a box
public :
void setLength(double v_length) {
length = v_length;
}
void setBreadth(d... |
<commit_before>#include "state.h"
#include <stdlib.h>
using namespace std;
State::State(){
}
/* For instantiation based on a parent search node */
State::State(State &parent, Direction dir) {
// TODO: create new state node based on parent
// 1. assign parent pointer
// 2. compute g, h, f cost based on parent node... |
<commit_before>/*
* Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2007 Holger Hans Peter Freyther <zecke@selfish.org>
* Copyright (C) 2008, 2009 Dirk Schulze <krit@webkit.org>
* Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
*
* Redistribution and use in sourc... |
<commit_before>#ifndef RPC_CLIENT_HH
#define RPC_CLIENT_HH
#include "rpc/protocol.hh"
using namespace msgpack::rpc;
namespace ten {
#if 0
// more general interface that supports calls over udp/tcp/pipe
// TODO: allow server to call to the client
// session should be shared interface both sides use
// calls can crea... |
<commit_before>#ifndef _SDD_DD_SUM_HH_
#define _SDD_DD_SUM_HH_
#include <initializer_list>
#include <type_traits> // enable_if, is_same
#include <unordered_map>
#include <vector>
#include <boost/container/flat_set.hpp>
#include "sdd/internal_manager_fwd.hh"
#include "sdd/dd/context_fwd.hh"
#include "sdd/dd/definitio... |
<commit_before>/*
CPP-Proxy-Ptr is licensed under MIT licence
Author: StarBrilliant https://github.com/m13253
Copyright (c) 2015
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 restrict... |
<commit_before>#pragma once
#include <rai/node/node.hpp>
#include <boost/thread.hpp>
#include <set>
#include <QtGui>
#include <QtWidgets>
namespace rai_qt {
class wallet;
class eventloop_processor : public QObject
{
public:
bool event (QEvent *) override;
};
class eventloop_event : public QEvent
{
pub... |
<commit_before>/*
* Copyright 2015 Facebook, 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 l... |
<commit_before>/*************************************************************************
*
* $RCSfile: propertysetcontainer.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: cd $ $Date: 2001-12-04 07:45:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*
* Copyright (C) 2010 Tommi Maekitalo
*
* 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 option) any later version.... |
<commit_before>/*
* This file is part of KDevelop
*
* Copyright 2006-2010 Alexander Dymo <adymo@kdevelop.org>
*
* This program 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 2 of the
* ... |
<commit_before>/*
CsoundPerformanceSettings.cpp:
Copyright (C) 2006 Istvan Varga
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 (... |
<commit_before>/**
* @file llcontrol_tut.cpp
* @date February 2008
* @brief control group unit tests
*
* $LicenseInfo:firstyear=2008&license=viewergpl$
*
* Copyright (c) 2008-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linde... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*
This file is part of the MinSG library extension BlueSurfels.
Copyright (C) 2014 Claudius Jähn <claudius@uni-paderborn.de>
Copyright (C) 2016-2017 Sascha Brandt <myeti@mail.uni-paderborn.de>
This library is subject to the terms of the Mozilla Public License, v. 2.0.
You should have received a c... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* librevenge
* Version: MPL 2.0 / LGPLv2.1+
*
* 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:... |
<commit_before>// Display how the compiler resolved lookup and overload of specific function
//
// Usage:
// show-call <cmake-output-dir> <file1> <file2> ...
//
// Where <cmake-output-dir> is a CMake build directory in which a file named
// compile_commands.json exists (enable -DCMAKE_EXPORT_COMPILE_COMMANDS in
// ... |
<commit_before>
#include <iostream>
#include "gps.hpp"
#include "OSMC_4wd_driver.hpp"
#include "lidarProc.hpp"
#include "NAV200.hpp"
static const double waypointLat[] = {33};
static const double waypointLon[] = {8};
static const size_t numPts = 1;
int main()
{
NAV200 lidar;
OSMC_4wd_driver motors;
gps gpsA;
g... |
<commit_before>#include "rasterizer.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
// Fine raster works on blocks of 2x2 pixels, since NEON can fine rasterize a block in parallel using SIMD-4.
// Coarse raster works on 2x2 blocks of fine blocks, since 4 fine blocks are processed in parallel. Therefore... |
<commit_before>// Copyright 2013 Sean McKenna
//
// 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 ... |
<commit_before>#include "otbVectorImage.h"
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "otbImageFileWriter.h"
#include "otbSOMMap.h"
#include "otbSOM.h"
#include "otbSOMImageClassificationFilter.h"
#include "otbCommandLineArgumentParser.h"
#include "itkEuclide... |
<commit_before>/*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 Andreas Schuh
*
* 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 a... |
<commit_before>// -------------------- debugs --------------------
//#define DEBUG
//#define COMPARE
// -------------------- paths --------------------
#define HITALERT_BASE_PATH "../../../hitalert/"
#define HITALERT_RUNTIME_PATH "" //HITALERT_BASE_PATH
#define SOUND_C_HI HITALERT_RUNTIME_PATH "res/MidHigh.wav"
#de... |
<commit_before><commit_msg>removed empty file<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.