text stringlengths 54 60.6k |
|---|
<commit_before>void runTTreeFilter() {
// author: Redmer Alexander Bertens, Utrecht University
// [email protected] , [email protected] , [email protected]
//
// example which converts input data (in this case local aod's put into a chain)
// to a tree which holds
// - AliFlowTTreeEvent : event ... |
<commit_before><commit_msg>updates<commit_after><|endoftext|> |
<commit_before>//******************************************************************************************************
// RoutingTables.cpp - Gbtc
//
// Copyright 2019, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreeme... |
<commit_before>#pragma once
#include "string_view.hh"
class ArgvParser {
uint argc_;
char** argv_;
public:
ArgvParser(int argc, char** argv)
: argc_(std::max(argc - 1, 0)), argv_(argv + 1) {}
ArgvParser(const ArgvParser&) = default;
ArgvParser(ArgvParser&&) noexcept = default;
ArgvParser& operator=(const ... |
<commit_before>/** @file
@brief App that looks at each step of the patterns to find simultaneously
bright beacons, records them all pairwise, and outputs them sorted by
straight-line distance.
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, Inc.
//
/... |
<commit_before>//-----------------------------------------------------------------------------
//
// ImageLib Sources
// Copyright (C) 2000-2008 by Denton Woods
// Last modified: 08/29/2008
//
// Filename: src-IL/src/il_exr.cpp
//
// Description: Reads from an OpenEXR (.exr) file.
//
//---------------------------------... |
<commit_before>//#include <mavros/RCIn.h>
#include <mavros/mavros_plugin.h>
#include <pluginlib/class_list_macros.h>
#include "mavros/OverrideRCIn.h"
#include <guidance_node_amsl/Directive.h>
#include <guidance_node_amsl/Position.h>
#include <mms/Ack_arm.h>
#include <mms/Arm.h>
#include <mms/Sys_status.h>
... |
<commit_before>/*
* NDC.hh
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_NDC_HH
#define _LOG4CPP_NDC_HH
#include <string>
#include <ve... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
using namespace MathLib;
CGameProcess::CGameProcess(void)
{
}
CGameProcess::~CGameProcess(void)
{
}
int CGameProcess::Init()
{... |
<commit_before>#define STR_EXPAND(tok) #tok
#define STR(tok) STR_EXPAND(tok)
#include "ros_visitor.hpp"
#include <QStandardPaths>
#include <algorithm>
#include <filesystem>
#include <memory>
#include <nlohmann/json_fwd.hpp>
#include <regex>
#include <string>
#include "label.hpp"
#include "inja/inja.hpp"
#include "no... |
<commit_before>// Each task has an entry in the ObjectArchive, which is described in this file.
//
// The entry is composed of a set of keys required to compute the task and get
// its value. Additionally, flags "should_save" and "run_locally", the same in
// ComputingUnit, are provided for faster and easier management... |
<commit_before>#ifndef INCLUDED_U5E_FILTER
#define INCLUDED_U5E_FILTER
namespace u5e {
/**
* \brief Walks an input iterator through a filter
*
* This will go from the begin to the end of the input iterator and
* will execute the filter function once for every input element.
*
* Unlike std::transfo... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>/* dtkPluginManager.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Tue Aug 4 12:20:59 2009 (+0200)
* Version: $Id$
* Last-Updated: Sun Jul 18 14:57:08 2010 (+0200)
* By: Julien Wintz
* Update #: 126
*/
/* Commentary:
*
*/
/* Change ... |
<commit_before>/*
* Copyright (c) 2019, 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>// main.cpp - Copyright 2013-2016 Will Cassella, All Rights Reserved
#include <Core/Application.h>
#include <Core/IO/Console.h>
#include "../include/AssetConverter/AssetConversion.h"
int main(int32 argCount, char** args)
{
using namespace Willow;
Application::Initialize();
// If files were passed i... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JPetReaderTest
#include <cstddef>
#include <iostream>
#include <vector>
#include <boost/test/unit_test.hpp>
#include <TError.h> /// gErrorIgnoreLevel
#include <TObjString.h>
#include "../JPetReader/JPetReader.h"
#include "../JPetWriter/JPetWriter.h"
... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JPetWriterTest
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp> // for filesystem::remove
#include <TNamed.h>
#include "../JPetSigCh/JPetSigCh.h"
#include "../JPetTimeWindow/JPetTimeWindow.h"
#include "../JPetBaseSignal/JPetBaseSig... |
<commit_before>/*
* Copyright © 2010 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>/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB L.L.C.
*
* VoltDB 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) an... |
<commit_before>#include "SkBlurDrawLooper.h"
#include "SkBlurMaskFilter.h"
#include "SkCanvas.h"
#include "SkPaint.h"
#include "SkMaskFilter.h"
SkBlurDrawLooper::SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy,
SkColor color)
: fDx(dx), fDy(dy), fBlurColor(color)
{
... |
<commit_before>/*
* Copyright (C) 2008-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <se... |
<commit_before>// Copyright 2014 Alessio Sclocco <[email protected]>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
<commit_before>#ifndef AST_HPP
#define AST_HPP
#include <string>
#include <vector>
#include <memory>
#include <typeinfo>
#include "utils/util.hpp"
#include "utils/error.hpp"
#include "utils/typeInfo.hpp"
#include "token.hpp"
namespace llvm {
class BasicBlock;
}
class ASTVisitor;
using ASTVisitorLink = PtrUtil<AST... |
<commit_before>#include "TensorFlowEngine.hpp"
//#define TF_CPP_MIN_LOG_LEVEL 5
//#define TF_CPP_MIN_VLOG_LEVEL 5
// Windows hack for removing need for protobuf
#ifdef WIN32
#include <google/protobuf/stubs/logging.h>
#undef GOOGLE_LOG_IF
#define GOOGLE_LOG_IF(LEVEL, CONDITION) \
!(CONDITION) ? std::clog : std::cerr
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/procedures/hwp/nest/p10_chiplet_fabric_sc... |
<commit_before>/*
* Copyright 2012 BrewPi/Elco Jacobs.
*
* This file is part of BrewPi.
*
* BrewPi 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... |
<commit_before>// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.h"
#include <mutex>
#... |
<commit_before>
#ifndef OMP_OMP_HPP
#define OMP_OMP_HPP
#include <cstdint>
#include <functional>
#include <thread>
#include <vector>
#include <mutex>
#include <condition_variable>
#include <cassert>
#include <iterator>
#include <algorithm>
namespace omp
{
struct iteration_context
{
std::size_t thread_index;... |
<commit_before>/***************************************************************************
* Copyright (C) 2005-2006 by the FIFE Team *
* [email protected] *
* This file is part of FIFE. ... |
<commit_before>#ifndef ENTT_ENTITY_RUNTIME_VIEW_HPP
#define ENTT_ENTITY_RUNTIME_VIEW_HPP
#include <algorithm>
#include <iterator>
#include <type_traits>
#include <utility>
#include <vector>
#include "entity.hpp"
#include "fwd.hpp"
#include "sparse_set.hpp"
namespace entt {
/**
* @cond TURN_OFF_DOXYGEN
* Internal d... |
<commit_before>/**
* A class which represents the properties and actions of a technology.
*
* @date Jul 3, 2014
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licensed under the Apache License, Version 2.0 (the "License");
*... |
<commit_before>#include "maExtrude.h"
#include "maCrawler.h"
#include <apfMDS.h>
#include <cassert>
#include <sstream>
//DEBUG
#include <iostream>
namespace ma {
namespace {
typedef std::set<Model*> ModelSet;
typedef std::vector<Crawler::Layer> Layers;
typedef std::vector<double> LayerFieldData;
typedef std::vec... |
<commit_before>#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <iostream>
#include <fstream>
#include <type_traits>
#define BOOST_FILESYSTEM_NO_DEPRECATED
#define BOOST_NO_CXX11_SCOPED_ENUMS
#include <boost/filesystem.hpp>
using namespace boost::filesystem;
#include "../src/job/job.h"
#include "../src/job/... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2014.
// 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>#pragma once
#include "spinlock.h"
#include "log2.hh"
#include <cstddef>
#include <type_traits>
namespace locked_snzi
{
class referenced
{
enum {
LEVELS = ceil_log2_const(NCPU) + 1,
FIRST_LEAF = (1 << (LEVELS - 1)) - 1
};
// A binary SNZI tree, indexed starting at the root... |
<commit_before>/** \file
*
* Copyright (c) 2012 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any la... |
<commit_before>#include "Data.h"
#include <CCfits/CCfits>
using namespace CCfits;
Data Data::instance;
Data::Data()
{
}
// A function for reading in Kepler light curve data from a FITS file.
// This uses the C++ CFITSIO interface CCfits.
// See http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/html/readta... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2011 Francois Beaune
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... |
<commit_before>/*******************************************************************************
The MIT License (MIT)
Copyright (c) 2013, 2014 JCube001
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 Soft... |
<commit_before>#include "webcam.hpp"
#include <chrono>
using namespace cv;
using namespace std;
Mat ellipticKernel(int width, int height = -1) {
if (height==-1) {
return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2));
} else {
return getStructuringElement(MORPH_ELLIPSE,Size(widt... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <[email protected]>
// Copyright 2007 Inge Walli... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the QtSystems module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser Gener... |
<commit_before>#include "Chunk.h"
#include "DataBuffer.h"
#include <algorithm>
namespace Minecraft {
Chunk::Chunk()
{
for (s32 y = 0; y < 16; ++y) {
for (s32 z = 0; z < 16; ++z) {
for (s32 x = 0; x < 16; ++x) {
std::size_t index = y * 16 * 16 + z * 16 + x;
m_Bl... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2005 Matthias Kretz <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This l... |
<commit_before>#ifndef MGF_SCANNER_HPP
#define MGF_SCANNER_HPP
#if ! defined(yyFlexLexerOnce)
#include <mgf/FlexLexer.hpp>
#endif
// Override the interface for yylex since we namespaced it
#undef YY_DECL
#define YY_DECL int mgf::Scanner::yylex()
// Include Bison for types / tokens
#include <mgf/Parser.tab.hh>
names... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
using namespace MathLib;
CGameProcess::CGameProcess(void)
{
}
CGameProcess::~CGameProcess... |
<commit_before>/* This file is part of Zanshin Todo.
Copyright 2008-2009 Kevin Ottens <[email protected]>
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 o... |
<commit_before>/*
* Copyright (c) 2004 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 copyri... |
<commit_before>/* Copyright 2009 SPARTA, Inc., dba Cobham Analytic Solutions
*
* This file is part of WATCHER.
*
* WATCHER 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 vers... |
<commit_before>// Copyright 2017 The Minimal Configuration Manager Authors
//
// 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
//
// Unles... |
<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>/**
* 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>/**************************************************************************
** This file is part of LiteIDE
**
** Copyright (c) 2011-2013 LiteIDE Team. All rights reserved.
**
** 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) 2021, Trinity 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:
// ... |
<commit_before>// Copyright 2018 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
<commit_before>/*
* Note: LoRaWAN per sub-band duty-cycle limitation is enforced (1% in g1,
* 0.1% in g2).
*
* Change DEVADDR to a unique address!
* See http://thethingsnetwork.org/wiki/AddressSpace
*
* Do not forget to define the radio type correctly in config.h.
*/
#include <SPI.h>
#include "Lora.h"
#include... |
<commit_before>#include <exception>
#include <iostream>
#include <stdexcept>
#include <unordered_map>
#include <unordered_set>
#include <tclap/CmdLine.h>
#include "printer/cprinter.hpp"
#include "printer/cudaprinter.hpp"
#include "printer/infoprinter.hpp"
#include "printer/printeropt.hpp"
#include "printer/simd.hpp"
... |
<commit_before>/*
Copyright (C) 2005-2012 Steven L. Scott
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>/*
* Copyright (C) 2008 Apple 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, thi... |
<commit_before>#line 2 "togo/memory.hpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file memory.hpp
@brief Memory interface.
@ingroup memory
*/
#pragma once
#include <togo/config.hpp>
#include <togo/types.hpp>
#include <togo/memory_types.hpp>
#include <type_traits>
#include <new>
... |
<commit_before>#include <taichi/lang.h>
#include <taichi/testing.h>
#include <numeric>
TLANG_NAMESPACE_BEGIN
TC_TEST("gpu_gc_basics") {
for (auto arch : {Arch::gpu}) {
int n = 32;
Program prog(arch);
Global(x, i32);
layout([&]() {
auto i = Index(0);
auto j = Index(1);
root.dense(i... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCProperty.cpp
// @Author : LvSheng.Huang
// @Date : 2012-03-01
// @Module : NFCProperty
//
// -----------------------------------------------... |
<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>/**
* \file timeout.cc
*
*
*
* \author Ethan Burns
* \date 2008-12-16
*/
#include <iostream>
#include <string.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include "../search.h"
using namespace std;
static volatile bool timeout_stopped = false;
extern "C" void alarm_action(... |
<commit_before>#ifndef _UTILS_ALIGN_HPP_
#define _UTILS_ALIGN_HPP_
template<typename T>
static inline T align_downto(T n, T align) { return n - (n % align); }
template<typename T>
static inline T align_upto(T n, T align) { return n % align ? align_downto(n, align) + align : n; }
#endif
<commit_msg>Remove utils/align... |
<commit_before>#include <iostream>
#include <math.h>
#include <string.h>
#include <vector>
#include "mex.h"
#include <nix.hpp>
#include "handle.h"
#include "arguments.h"
#include "struct.h"
#include "datatypes.h"
void check_arg_type(const mxArray *arr, nix::DataType dtype) {
if (dtype_mex2nix(arr) != dtype) {
... |
<commit_before>/*
* Stock of connections to a memcached server.
*
* author: Max Kellermann <[email protected]>
*/
#include "memcached_stock.hxx"
#include "memcached_client.hxx"
#include "stock/GetHandler.hxx"
#include "stock/Item.hxx"
#include "tcp_stock.hxx"
#include "tcp_balancer.hxx"
#include "address_list.hxx"
#in... |
<commit_before>#pragma once
#include <string>
#include <vector>
#include "config.hpp"
#include "span.hpp"
namespace utki{
/**
* @brief Format string.
* @param format - printf-like string format.
* @return formatted string.
*/
#if M_COMPILER != M_COMPILER_MSVC
__attribute__((format(printf, 1, 2)))
#endif
std::st... |
<commit_before>/*
* madgwick.cpp
* Copyright (c) 2018, Robot Mitya.
* 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>//
// IsingTest.cpp
// jdemon
//
// Created by Mark Larus on 3/4/13.
// Copyright (c) 2013 Kenyon College. All rights reserved.
//
#include <boost/test/unit_test.hpp>
#include <set>
#include <algorithm>
#include <stack>
#include "Ising.h"
#include "Utilities.h"
#include "TestFixtures.h"
#include "... |
<commit_before>#include "mssqlclrgeo.hpp"
#include <cstring>
namespace mssqlclr
{
const std::vector<Figure> Geometry::getFiguresFromShape(int shapeIdx) const {
std::vector<Figure> figures_list;
if (Figures.empty()) {
return figures_list;
}
int32_t offset = Shapes[shapeIdx].FigureOffset;
if (Shapes.siz... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2008 Benoit Jacob <[email protected]>
//
// 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... |
<commit_before>/*
* This file is part of TelepathyQt4
*
* Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2010 Nokia Corporation
*
* 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 b... |
<commit_before>/* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2017, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions apply:
*
* This program is free software: you can redistribute it and/or m... |
<commit_before>
#include "CGUIManager.h"
#include <glad/glad.h>
namespace ion
{
// This is the main rendering function that you have to implement and provide to ImGui (via setting up 'RenderDrawListsFn' in the ImGuiIO structure)
// If text or lines are blurry when integrating ImGui in your engine:
// - in... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 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 <chainparams.h>
#include <init.h>
#include <net.h>
#inclu... |
<commit_before>//
// SceneOSG.cpp
//
// Implementation of vtScene for the OSG library
//
// Copyright (c) 2001-2004 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "ProjectedShadows.h"
#include <osg/LightSource>
#include <osg/PolygonMode>
#include <osg/S... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision: 13308 $
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
S... |
<commit_before>#include <webkit2/webkit-web-extension.h>
#include <JavaScriptCore/JavaScript.h>
#include <string.h>
#include <soup.h>
#include "utils.h"
static WebKitWebExtension* extension;
static guint idLogHandler = 0;
static guint idSendRequestHandler = 0;
static guint idPageCreatedHandler = 0;
static gboolean DE... |
<commit_before>//
// CodeGeneratorCPP.cpp
// Protocol
//
// Created by Wahid Tanner on 10/17/14.
//
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/fstream.hpp>
#include "CodeGeneratorCPP.h"
using namespace std;... |
<commit_before>/*
* HashingOverlapper.cpp
*
* Created on: 31.01.2013
* Author: Christian Staudt ([email protected])
*/
#include "HashingOverlapper.h"
namespace NetworKit {
HashingOverlapper::HashingOverlapper() {
// TODO Auto-generated constructor stub
}
HashingOverlapper::~HashingOverlapper() {... |
<commit_before>/* Copyright (c) 2013-2022 Jeffrey Pfau
*
* 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 "ForwarderView.h"
#include <QMessageBox>
#includ... |
<commit_before>/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>/*
The MIT License (MIT)
Copyright(C) 2014 Naoya Murakami <[email protected]>
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 l... |
<commit_before>#include "strings.h"
BOOST_AUTO_TEST_CASE(std_string_literals)
{
using namespace std::string_literals;
auto s1{"Hello, world!"s};
auto s2{L"Hello, world!"s};
auto s3{u"Hello, world!"s};
auto s4{U"Hello, world!"s};
BOOST_REQUIRE((std::is_same_v<decltype(s1), XXX>));
BOOST_REQU... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/*
* Copyright 2018 Google, Inc.
*
* 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 conditions and the following ... |
<commit_before>#line 2 "togo/gfx/renderer/private.ipp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#pragma once
#include <togo/config.hpp>
#include <togo/gfx/types.hpp>
#include <togo/gfx/renderer/types.hpp>
#include <togo/gfx/renderer/private.hpp>
namespace togo {
namespace gfx {... |
<commit_before>/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complian... |
<commit_before>#include "training/graph_group_sync.h"
namespace marian {
SyncGraphGroup::SyncGraphGroup(Ptr<Config> config)
: GraphGroup(config),
ExponentialSmoothing{options_->get<float>("exponential-smoothing")},
delay_{options_->get<size_t>("optimizer-delay")} { // @TODO: rename to something else; ... |
<commit_before>/*---------------------------------------------------------------
* Copyright (c) 1999,2000,2001,2002,2003
* The Board of Trustees of the University of Illinois
* All Rights Reserved.
*------------------------------... |
<commit_before>#include "unittest/gtest.hpp"
#include "arch/runtime/context_switching.hpp"
namespace unittest {
static void noop(void) {
}
TEST(ContextSwitchingTest, ContextRefSemantics) {
context_ref_t nil_ref;
EXPECT_TRUE(nil_ref.is_nil());
}
TEST(ContextSwitchingTest, CreateArtificialStack) {
artifi... |
<commit_before>#include "SentenceStateBuilder.h"
#include <vector>
#include "Sysout.h"
#include "../language/Grammar.h"
#include "../language/Dictionary.h"
gmr::SentenceState* SentenceStateBuilder::processStatement(std::vector<std::string>* statement)
{
// Make a new builder
SentenceStateBuilder* ssbuilder ... |
<commit_before>#include "glyphcellrenderer.h"
#include <wx/dcclient.h>
#include <wx/graphics.h>
#include <memory>
GlyphCellRenderer::GlyphCellRenderer(const std::map<wxString, SvgGlyph> &glyphs, int fontSize): glyphs(glyphs), fontSize(fontSize)
{
}
wxGridCellRenderer *GlyphCellRenderer::Clone() const
{
return nul... |
<commit_before>#include "archivestabwidget.h"
WARNINGS_DISABLE
#include <QAction>
#include <QComboBox>
#include <QCoreApplication>
#include <QCursor>
#include <QEvent>
#include <QEventLoop>
#include <QKeyEvent>
#include <QKeySequence>
#include <QMenu>
#include <QWidget>
#include <Qt>
#include "ui_archivestabwidget.h"... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <iostream>
#include <string>
#include <cstdlib>
#include <boost/program_options.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.... |
<commit_before>/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2013-12-17 Tobias Stollenwerk <[email protected]>
*
* 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 Licens... |
<commit_before>//=============================================================================================================
/**
* @file informationwindow.h
* @author Lorenz Esch <[email protected]>
* Christoph Dinh <[email protected]>;
* Matti Hamalainen <[email protected]... |
<commit_before>#pragma once
#include "support/uref.hpp"
#include <boost/python/to_python_converter.hpp>
#include <boost/python/tuple.hpp>
#include <boost/python/cast.hpp>
#define NPY_NO_DEPRECATED_API NPY_1_8_API_VERSION
#include <numpy/ndarrayobject.h>
#include <cstdint>
namespace bp = boost::python;
/// type ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.