text stringlengths 54 60.6k |
|---|
<commit_before>/** \brief Utility for finding referenced PPN's that we should have, but that are missing.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2020 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wakeupthread.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:28:08 $
*
* The Contents of this file are m... |
<commit_before>#include <cmath>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <string>
#include <vector>
using namespace std;
constexpr bool debug = true;
using UChar = unsigned char;
using ULInt = unsigned long int;
template <typename Container>
void pr... |
<commit_before>#ifndef STACKTRANSFORMS_HPP_
#define STACKTRANSFORMS_HPP_
#include "boost/filesystem.hpp"
#include "itkTranslationTransform.h"
#include "itkCenteredRigid2DTransform.h"
#include "itkCenteredAffineTransform.h"
#include "itkSingleValuedNonLinearOptimizer.h"
#include "itkBSplineDeformableTransform.h"
#inc... |
<commit_before>/***********************************************************************
filename: CEGUIOpenGLGeometryBuffer.cpp
created: Wed, 8th Feb 2012
author: Lukas E Meindl (based on code by Paul D Turner)
*************************************************************************/
/************... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/status/language_menu_button.h"
#include <string>
#include "app/l10n_util.h"
#include "app/resource_... |
<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 "chrome/browser/browser.h"
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/extension_... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Storage) {
ASSERT_TRUE(RunExtensio... |
<commit_before>// Copyright (c) 2011-2020 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 <bench/bench.h>
#include <consensus/validation.h>
#include <crypto/sha256.h>
#include <test/util/mini... |
<commit_before>#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/System.h"
#if CINDER_VERSION >= 807
#include "cinder/app/RendererGl.h"
#include "cinder/Log.h"
#endif
#include "cidart/VM.h"
#include "cidart/Script.h"
#include "cidart/Types.h"
#include "cidart/Debug.h"
#include "Resources... |
<commit_before><commit_msg>Append kernel signature to the log area in the SAL_INFO dump of its source<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* The Contents of this file are made available subject to
* the terms of GNU... |
<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 "base/file_path.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browse... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/panels/panel_browser_titlebar_gtk.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/extensions/extension_dialog.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrom... |
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/browser/devtools/remote_debugging_server.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/comm... |
<commit_before>#ifndef WF_SAFE_LIST_HPP
#define WF_SAFE_LIST_HPP
#include <list>
#include <memory>
#include <algorithm>
#include <functional>
#include <wayland-server.h>
#include "reverse.hpp"
/* This is a trimmed-down wrapper of std::list<T>.
*
* It supports safe iteration over all elements in the collection, wh... |
<commit_before>/*
* Copyright (c) 2015, Ford Motor Company
* 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
*... |
<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/gpu/GrCaps.h"
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrContextThreadSafeProxyPriv.h"
#include "sr... |
<commit_before>// ========================================================================== //
// This file is part of DO-CV, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2021-present David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* inc... |
<commit_before>/// HEADER
#include "optimization_dummy.h"
/// PROJECT
#include <csapex/msg/io.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/model/node_modifier.h>
#include <csapex/msg/generic_value_message.hpp>
CSAPEX_REGISTER_CLASS(csapex::Optimizati... |
<commit_before>#include <sys/socket.h>
#include "utils.h"
#include "client_base.h"
const int WRITE_QUEUE_SIZE = -1;
int BaseClient::total_clients = 0;
BaseClient::BaseClient(ev::loop_ref &loop, int sock_, DatabasePool *database_pool_, double active_timeout_, double idle_timeout_)
: io(loop),
async(loop),
... |
<commit_before>#include "playerwidget.h"
#include "ui_playerwidget.h"
#include "musicselector.h"
static QString _ms2mmss(qint64 ms)
{
int ss = ms / 1000;
int mm = ss / 60;
ss = ss % 60;
QString str;
str.sprintf("%02d:%02d", mm, ss);
return str;
}
LRCX_BEGIN_NS
PlayerWidget::PlayerWidget(QWidget *parent)
: QD... |
<commit_before>#ifndef DEDICATED_ONLY
#include "CViewport.h"
#include "gusgame.h"
#include "sound/sfx.h"
#include "gfx.h"
#include "gusanos/allegro.h"
#include "CWorm.h"
#include "game/WormInputHandler.h"
#include "CWormHuman.h"
#include "glua.h"
#include "lua/bindings-gfx.h"
#include "blitters/blitters.h"
#include "... |
<commit_before>/* ************************************************************************************
*
* ftVelocityMask
*
* Created by Matthias Oostrik on 03/16.14.
* Copyright 2014 http://www.MatthiasOostrik.com All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TitledControl.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: obo $ $Date: 2006-09-16 19:16:21 $
*
* The Contents of this file ar... |
<commit_before>#pragma once
#include "xson/object.hpp"
#include "xson/trace.hpp"
#include "xson/fast/decoder.hpp"
namespace xson {
namespace fson {
class decoder : public fast::decoder
{
public:
decoder(std::istream& is) : fast::decoder(is)
{}
using fast::decoder::decode;
void decode(double& d)
... |
<commit_before>#include "entity/entity_network_remote_peer.h"
#include "entity/entity_network_session.h"
#include "halley/entity/entity_factory.h"
#include "halley/entity/world.h"
#include "halley/support/logger.h"
#include "halley/utils/algorithm.h"
class NetworkComponent;
using namespace Halley;
EntityNetworkRemot... |
<commit_before>#include <ros/ros.h>
// PCL specific includes
#include <sensor_msgs/PointCloud2.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
ros::Publisher pub;
// How to avoid hard-coding a topic name?
void cloud_cb(const sensor_msgs::PointCloud2ConstPtr& i... |
<commit_before>#ifndef __sitksimpletransformix_cxx_
#define __sitksimpletransformix_cxx_
#include "sitkSimpleTransformix.h"
#include "sitkSimpleTransformix.hxx"
namespace itk {
namespace simple {
SimpleTransformix
::SimpleTransformix( void )
{
// Register this class with SimpleITK
this->m_MemberFactory.reset... |
<commit_before>// Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gl/GrGLInterface.h"
#include "gl/GrGLAssembleInterf... |
<commit_before>#include "iteration/outer/outer_power_iteration.hpp"
#include <memory>
#include "instrumentation/tests/instrument_mock.h"
#include "iteration/group/tests/group_solve_iteration_mock.h"
#include "iteration/subroutine/tests/subroutine_mock.hpp"
#include "eigenvalue/k_effective/tests/k_effective_updater_mo... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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 LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#include "itemapi.h"
#include "entitycomponents.h"
using namespace RoseCommon;
ItemAPI::ItemAPI(sol::environment&& env) : LuaAPI(std::move(env)) {
// build the C++/lua connectors here
env_.set_function("getAttr", [this](void* entity, std::string attr) {
throw_assert(entity, "The ent... |
<commit_before>// Copyright 2011 Google Inc. 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... |
<commit_before>#include "mitpi.h"
#define GPIO_BASE 0x20200000 //base address of the GPIO control registers.
#define PAGE_SIZE 4096 //mmap maps pages of memory, so we must give it multiples of this size
#define GPFSEL0 0x00000000 //gpio function select. There are 6 of these (32 bit registers)
//bits 2-0 of GPFSEL0: ... |
<commit_before>
#include "mpris.h"
#include "dbus.h"
#include <map>
#include <vector>
#include <functional>
#include <core/sdk/IEnvironment.h>
extern "C" {
#include <unistd.h>
}
std::string thumbnailPath;
thread_local char localBuffer[4096];
static MPRISRemote remote;
static const std::map<MPRISProperty, const s... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#i... |
<commit_before>#include "memc/Compiler.hpp"
namespace memc {
Compiler::Compiler (opt::Options* opts)
{
mem::log::Formatter* formatter = NULL;
// TODO: Should use a factory or something here
if (opts->getStr("--log-formatter") == "test-friendly")
{
formatter = new mem::log::TestFriendlyFormatter()... |
<commit_before>// Copyright (c) 2011, Cornell University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// ... |
<commit_before>/**
Copyright (c) 2017 Ryan Porter
You may use, distribute, or modify this code under the terms of the MIT license.
*/
#include <stdio.h>
#include <vector>
#include "parseArgs.h"
#include "polyDeformerWeights.h"
#include "polySymmetryNode.h"
#include "sceneCache.h"
#include "selection.h"
#... |
<commit_before>#include "quicksand.h"
#include "marian.h"
#if MKL_FOUND
#include "mkl.h"
#endif
#include "data/shortlist.h"
#include "translator/beam_search.h"
#include "translator/scorers.h"
#include "data/alignment.h"
#include "data/vocab_base.h"
#include "tensors/cpu/expression_graph_packable.h"
#include "layers/l... |
<commit_before>#include "messagedialog.h"
#include "qommunicate.h"
#include "messenger.h"
#include "constants.h"
#include "filehandler.h"
MessageDialog::MessageDialog(Member* receiver, QWidget *parent) : QDialog(parent)
{
receivers << receiver;
ui.setupUi(this);
messageTimer = NULL;
setWindowTitl... |
<commit_before>/**
* @file metal_scanner.cpp
* @author Alex Thorne
* @version 1.0
*/
#include "metal_scanner.h"
MetalScanner::MetalScanner(void) : ArmController()
{
//initialize
reference_inductance = 0;
origin_x = (X_MAX_BOUNDARY + X_MIN_BOUNDARY) / 2;
origin_y = (Y_MAX_BOUNDARY + Y_MIN_BOUNDARY) / ... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <string>
#include <set>
using namespace std;
string func_pattern;
string void_func_pattern;
set<string> filter;
void init_filter()
{
filter.clear();
#define add(x) filter.insert(#x)
add(const);
add(void);
add(int);
add(unsig... |
<commit_before>#include "histogram.h"
#include <QPainter>
#include <QDebug>
Histogram::Histogram(QWidget* p) :QWidget(p) {
}
void
Histogram::setData(const QList<QPair<QString,quint32> >& d) {
data = d;
update();
}
typedef QPair<QString, quint32> StringUIntPair;
void
Histogram::paintEvent(QPaintEvent *) {
i... |
<commit_before>#include "parser.hh"
#include "file.hh" // SPECIAL_EOF
#include "bookmark.hh"
#include "bookmark_container.hh"
#include <iostream>
#include <map>
#include <string>
#include <cstring> // strncmp
using std::map;
using std::string;
struct Parser::Key
{
Key(Language l, State s, char e): language(l), o... |
<commit_before>#include <gmock/gmock.h>
#include "oddlib/lvlarchive.hpp"
int main(int argc, char** argv)
{
::testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}
TEST(LvlArchive, FileNotFound)
{
ASSERT_THROW(Oddlib::LvlArchive("not_found.lvl"), Oddlib::Exception);
}
TEST(LvlArchive, /*DISABLED... |
<commit_before>#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <silicium/error_or.hpp>
#include <boost/optional/optional_io.hpp>
#include <boost/filesystem/operations.hpp>
namespace buildserver
{
Si::error_or<bool> file_exists(boost::filesystem::path const &candidate)
{
boost::system::error_co... |
<commit_before>#include "msg_pack.h"
#include "mpi_util.h"
//#include <exception>
//#include "log.h" // temporary include
namespace multiverso
{
//-- area of static member definition ------------------------------------/
int MPIUtil::mpi_size_ = 0;
int MPIUtil::mpi_rank_ = 0;
std::queue<s... |
<commit_before>/*
* waterspout
*
* - simd abstraction library for audio/image manipulation -
*
* Copyright (c) 2013 Lucio Asnaghi
*
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>/** \copyright
* Copyright (c) 2015, Balazs Racz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice... |
<commit_before>/*=============================================================================
Copyright (c) 2016-2017 Joel de Guzman
Distributed under the MIT License (https://opensource.org/licenses/MIT)
=============================================================================*/
#include <boost/detail/ligh... |
<commit_before>/*
*
* Copyright 2015, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#include <miopen.h>
#include "test.hpp"
#include <vector>
#include <array>
#include <iterator>
#include <memory>
#include <miopen/tensor_extra.hpp>
struct handle_fixture
{
miopenHandle_t handle;
#if MIOPEN_BACKEND_OPENCL
cl_command_queue q;
#endif
handle_fixture()
{
miopenCreate... |
<commit_before>/*************************************************************************
*
* Copyright 2016 Realm 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.... |
<commit_before>#include "node/solid/triangle.h"
namespace Svit
{
Triangle::Triangle (Point3 _p1, Point3 _p2, Point3 _p3)
: p1(_p1), p2(_p2), p3(_p3)
{
p1.w = 0.0f;
p2.w = 0.0f;
p3.w = 0.0f;
e1 = p2 - p1;
e2 = p3 - p1;
normal = ~(~e1 & ~e2);
}
boost::optional<Intersection>
Triangle::intersect (Ray... |
<commit_before>#include "gtest/gtest.h"
#include "core/math.h"
using namespace narukami;
TEST(math,rcp){
EXPECT_FLOAT_EQ(rcp(2.0f),0.5f);
EXPECT_FLOAT_EQ(rcp(3.0f),1.0f/3.0f);
EXPECT_FLOAT_EQ(rcp(5.0f),1.0f/5.0f);
EXPECT_FLOAT_EQ(rcp(7.0f),1.0f/7.0f);
}
TEST(math,isnan){
float x=0.0f/0.0f;
EXPE... |
<commit_before>#include <iostream>
#include <string>
#include "Completer.hpp"
int main()
{
tc::Completer complete;
complete.add("hello");
complete.add("helli");
complete.add("helloworld");
complete.add("hi");
complete.add("hellb");
complete.add("helz");
complete.add("greg");
auto ret = complete.complete("h... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief NES Emulator クラス @n
操作説明: @n
「1」: SELECT @n
「2」: START @n
「Z」: A-BUTTON @n
「X」: B-BUTTON @n
「↑」: UP-DIR @n
「↓」: DOWN-DIR @n
「→」: RIGHT-DIR @n
「←」: LEFT-DIR @n
「F1」: File... |
<commit_before>// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In... |
<commit_before>#include <iostream>
#include <memory>
#include <../bindings/python/JointPython.h>
#include <Tests_adapters.hpp>
#include <test/core/Tests.hpp>
using namespace test;
test::TestEngine g_engine;
class Tests
{
private:
joint::Module _module;
public:
Tests(joint::Module module)
: _module(std::mo... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright 2012-2016 Masanori Morise. All Rights Reserved.
// Author: mmorise [at] yamanashi.ac.jp (Masanori Morise)
//
// Test program for WORLD 0.1.2 (2012/08/19)
// Test program for WORLD 0.1.3 (2013/07/26)
// Test progr... |
<commit_before>#include <stdint.h>
#ifndef __clockid_t_defined
#define __clockid_t_defined 1
typedef int32_t clockid_t;
#define CLOCK_REALTIME 0
#define CLOCK_MONOTONIC 1
#define CLOCK_PROCESS_CPUTIME_ID 2
#define CLOCK_THREAD_CPUTIME_ID 3
#define CLOCK_MONOTONIC_RAW 4
#d... |
<commit_before>#include "osg/Node"
#include "osgDB/Registry"
#include "osgDB/Input"
#include "osgDB/Output"
using namespace osg;
using namespace osgDB;
// forward declare functions to use later.
bool Node_readLocalData(Object& obj, Input& fr);
bool Node_writeLocalData(const Object& obj, Output& fw);
// register the... |
<commit_before>/**
* Copyright (C) 2018 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* T... |
<commit_before>#include "lib/output.h"
#include "lib/image.h"
#include "lib/lambertian.h"
#include "lib/range.h"
#include "lib/runtime.h"
#include "lib/triangle.h"
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> ... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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>/*****************************************************************************
* Copyright (C) 2012
*
* This program 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.... |
<commit_before>/*
* Copyright (c) 2019, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
<commit_before>#include "server.hh"
#include "serializable.hh"
#include "networkEvents.hh"
#include "../logger.hh"
#include <atomic>
#include <memory>
#include <sstream>
using namespace std;
static atomic<unsigned int> clientIdCounter( 0 ); // Should be good enough.
Client::Client( tcp::socket socket ) : m_socket... |
<commit_before>#include <qapplication.h>
#include <qlayout.h>
#include <qwt_plot.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_curve.h>
#include <qwt_legend.h>
#include <qwt_point_data.h>
#include <qwt_plot_canvas.h>
#include <qwt_plot_panner.h>
#include <qwt_plot_magnifier.h>
#include <qwt_text.h>
#include <qwt_m... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// drop_plan.cpp
//
// Identification: src/planner/drop_plan.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===---------------------------------------... |
<commit_before>#ifndef REFLECTION_BINDING_HPP
#define REFLECTION_BINDING_HPP
#include <string>
#include <type_traits>
#include <utility>
#include "any.hpp"
#include <function_deduction.hpp>
#include <member_variable_deduction.hpp>
#include <type_list.hpp>
#include <void_t.hpp>
namespace shadow
{
// free function s... |
<commit_before>#ifndef VIGRA_VISIT_BORDER_HXX_
#define VIGRA_VISIT_BORDER_HXX_
#include <vigra/multi_array.hxx>
namespace vigra
{
namespace visit_border_detail
{
template <unsigned int K>
struct visit_border_impl
{
template <unsigned int N, class Data, class S1,
class Label, class ... |
<commit_before>/*
* Copyright 2016 - 2021 gary@drinkingtea.net
*
* 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/.
*/
#include <fstream>
#include <ox/clargs/clargs... |
<commit_before>/*************************************************************************
*
* $RCSfile: FilteredContainer.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2004-08-02 14:59:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice 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 ... |
<commit_before>#ifndef BULL_RENDER_CONTEXT_GLX_GLXCONTEXTNOERROR_HPP
#define BULL_RENDER_CONTEXT_GLX_GLXCONTEXTNOERROR_HPP
#include <Bull/Core/Support/Xlib/Xlib.hpp>
#include <Bull/Render/Context/ExtensionsLoader.hpp>
#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
#endif // BULL_RENDER_CONTEXT_GLX_GLXCONTEXTNOERROR... |
<commit_before>/**
* \file
* \brief RawFifoQueue class header
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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 w... |
<commit_before>//
// Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010, 2011 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 Founda... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_SHARED_UTILS_HPP
#define RJ_SHARED_UTILS_HPP
#include <SFML/Graphics.hpp>
#include <mlk/graphics/color.h>
#include <cmath>
namespace rj
{
template<typename T>
T round_to(T value, T to)
{return (std:... |
<commit_before>#include "sn_sweeper.hpp"
#include <algorithm>
#include <string>
#include "pugixml.hpp"
#include "files.hpp"
#include "string_utils.hpp"
namespace {
using namespace mocc;
BC_Size_t boundary_helper( const Mesh &mesh ) {
BC_Size_t bc_size = { (int)mesh.ny()*(int)mesh.nz(),
... |
<commit_before>/*
* Copyright (c) 2003-2007 The Regents of The University of Michigan
* 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 c... |
<commit_before>/* TTElement.hpp
*
* Kubo Ryosuke
*/
#ifndef SUNFISH_TT_TTSLOT_HPP__
#define SUNFISH_TT_TTSLOT_HPP__
#include "search/eval/Score.hpp"
#include "core/move/Move.hpp"
#include "core/position/Zobrist.hpp"
#include <cstdint>
#include <cassert>
// 1st quad word
#define TT_MATE_MASK 0x0000000000000001LL... |
<commit_before>#include "update_status_effects.h"
#include "../SCBW/api.h"
#include "../SCBW/enumerations.h"
#include "../SCBW/scbwdata.h"
#include "irradiate.h"
#include <algorithm>
namespace {
//Helper functions that should be used only in this file
u8 getAcidSporeOverlayAdjustment(const CUnit* const unit);... |
<commit_before>#include "widget.h"
void MainWindow::CreateTrayIcon()
{
QMenu* pTrayIconMenu = new QMenu(this);
pTrayIconMenu->addAction(m_pOpenAction);
pTrayIconMenu->addSeparator();
pTrayIconMenu->addAction(m_pPostponeAction);
pTrayIconMenu->addSeparator();
pTrayIconMenu->addAction(m_pQuitActi... |
<commit_before>#include "stdafx.h"
#include "UIControlSystem.h"
#include "UIControl.h"
#include "Core.h"
#include "Applications/ApplicationBase.h"
#include "Render/RenderWorld.h"
#include "PropertyReaders.h"
#include "Input/InputSystem.h"
#include "Input/InputSubscriber.h"
namespace SDK
{
namespace UI
{
UICont... |
<commit_before>#include <random>
#include "epidemic.hpp"
#include "WattsStrogatzModel.hpp"
#include "MLCG.h"
#include "NegExp.h"
#include "tclap/ValueArg.h"
#define NEG_EXP_OFFSET 50
WARPED_REGISTER_POLYMORPHIC_SERIALIZABLE_CLASS(EpidemicEvent)
std::vector<std::shared_ptr<warped::Event> > Location::createInitialEve... |
<commit_before>/*
* Copyright (C) 2011 by Jakub Lekstan <kuebzky@gmail.com>
*
* 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... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: libxmlutil.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:36:19 $
*
* The Contents of this file are mad... |
<commit_before>/*
* Copyright (c) 2010 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementati... |
<commit_before>#include<string>
#include<vector>
#include "vmf/metadatastream.hpp"
#include "../com_intel_vmf_MetadataDesc.h"
using namespace vmf;
static void throwJavaException(JNIEnv *env, const std::exception *e, const char *method)
{
std::string what = "unknown exception";
jclass je = 0;
if (e)
{... |
<commit_before>#include <tiramisu/tiramisu.h>
#include "configure.h"
using namespace tiramisu;
int main(int argc, char **argv)
{
tiramisu::init("relu_tiramisu");
var i("i", 0, 4);
input parameters("parameters", {i}, p_float32);
constant C_N("C_N", cast(p_int32, parameters(0)));
constant C_FIn("C... |
<commit_before>// Copyright (c) 2018 The Open-Transactions developers
// 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/.
#include "Client.hpp"
#define OT_METHOD "opent... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>/*
This file is part of KAddressbook.
Copyright (c) 2000 Cornelius Schumacher <schumacher@kde.org>
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 ... |
<commit_before>/*
* plan_and_run_node.cpp
*
* Created on: Apr 10, 2015
* Author: Jorge Nicho
*/
#include <plan_and_run/demo_application.h>
int main(int argc,char** argv)
{
ros::init(argc,argv,"plan_and_run");
ros::AsyncSpinner spinner(2);
spinner.start();
// creating application
plan_and_run::De... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.