text stringlengths 54 60.6k |
|---|
<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 "media/filters/audio_renderer_algorithm_base.h"
#include "base/logging.h"
#include "media/base/buffers.h"
namespace media {
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageMedian3D.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#include "kernel.h"
#include "coverage.h"
#include "numericrange.h"
#include "numericdomain.h"
#include "columndefinition.h"
#include "table.h"
#include "attributerecord.h"
#include "feature.h"
#include "factory.h"
#include "abstractfactory.h"
#include "featurefactory.h"
#include "featurecoverage.h"
#inc... |
<commit_before>#pragma once
#ifdef CICMS_CTREE
#include <iostream>
#include <vector>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp> // for is_any_of
#include "ctree/signal.hpp"
#include "Node.h"
#include "../Configurator.h"
#include "../Builder.h"
// #define ADD_TY... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>
#include <vector>
#include <unistd.h>
#include "s91k2048_outils_terminal.h"
#include "termites.h"
using namespace std;
void WTF(string str) {
cout << "\x1B[41m \x1B[1mWTF : \x1B[2m" << str << " \x1B[0m";
};
bo... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>#include "AliFemtoXiTrackCut.h"
#include "AliESDtrack.h"
#include <cstdio>
#ifdef __ROOT__
/// \cond CLASSIMP
ClassImp(AliFemtoXiTrackCut);
/// \endcond
#endif
//------------------------------
AliFemtoXiTrackCut::AliFemtoXiTrackCut():
AliFemtoV0TrackCut()
, fMaxEtaXi(100)
, fMinPtXi(0)
,... |
<commit_before>#include <cmath>
#include <gmpxx.h>
#include <iostream>
#include <vector>
#include <sstream>
#define SUCCESS 0
#define FAILURE 1
#define LOG_INFO 1
using namespace std;
mpf_class meanVal(const mpf_class* arr, long size, long acc) {
mpf_class sum(0, acc);
mpf_class length(size, acc);
fo... |
<commit_before>// Mike Zrimsek
// Computer Graphics
// Homework 2
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <GL/glut.h>
static int WINDOW_WIDTH = 500;
static int WINDOW_HEIGHT = 500;
static double DEGREE_TO_RADIAN = 3.14159/180;
int mainMenuId;
int mainMenuSelection = 0;
static int SQUARE_ME... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>#include <messmer/fspp/fstest/FsTest.h>
#include <messmer/cpp-utils/tempfile/TempDir.h>
#include "../src/CopyDevice.h"
using std::unique_ptr;
using std::make_unique;
using fspp::Device;
using namespace copyfs;
class CopyFsTestFixture: public FileSystemTestFixture {
public:
unique_ptr<Device> creat... |
<commit_before>#include "sdfloader.hpp"
Scene SDFloader::sdfLoad(std::string const& inputFile)
{
Scene scene;
std::fstream inputfile;
inputfile.open(inputFile);
if(inputfile.is_open())
{
std::string line;
std::string word;
std::map<std::string, std::shared_ptr<Shape>> tempshapesmap;
std::map<std::str... |
<commit_before>
AliAnalysisTask *AddTaskDeuteronpA(){
//get the current analysis manager
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTask_janielsk_DeuteronpA", "No analysis manager found.");
return 0;
}
//============= Set Task Name ===================
... |
<commit_before>/*******************************************************************************
* Copyright 2015 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
<commit_before>//
// Created by skgchxngsxyz-carbon on 17/01/22.
//
#include <gtest/gtest.h>
#include <fuzzyrat.h>
#include "misc/size.hpp"
#include "misc/resource.hpp"
#include "../test_common.hpp"
using namespace ydsh;
int FuzzyRat_execImpl(const FuzzyRatCode *code, FuzzyRatResult *result, fuzzyrat::RandFactory ... |
<commit_before>#include <ros/ros.h>
#include <std_msgs/String.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Twist.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <scitos_apps_msgs/RampClimbingAction.h>
#include <actionlib/server/simple_action_server.h>
typedef actionlib::SimpleActionServer<move_... |
<commit_before>/*
* Copyright (c) 2002 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the L... |
<commit_before>#include "customopenglwidget.h"
#include <QtOpenGL>
#include <iostream>
#include <math.h>
#include "mainwindow.h"
#include <rocklevel/camera.h>
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
CustomOpenGLWidget::CustomOpenGLWidget(QWidget *parent) : QOpenGLWidget(parent)
{
QSurfaceFormat forma... |
<commit_before>//---------------------------- grid_refinement.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license info... |
<commit_before>extern "C" {
#include "hsmkey/hsmkey_gen_task.h"
#include "shared/file.h"
#include "shared/duration.h"
#include "libhsm.h"
}
#include <google/protobuf/descriptor.h>
#include <google/protobuf/message.h>
#include "hsmkey/hsmkey.pb.h"
#include "policy/kasp.pb.h"
#include "xmlext-pb/xmlext.h"
#include <f... |
<commit_before>
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/listctrl.h"
#include <string>
#include <fstream>
#include <mmsystem.h>
using std::string;
#pragma comment (lib, "winmm.lib")
class MyFrame;
class MyApp : public wxApp
{
public:
virtual bool OnInit() wxOVERRIDE;
virtua... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: seriesmodel.hxx,v $
* $Revision:... |
<commit_before><commit_msg>Reduce to static_cast any reinterpret_cast from void pointers<commit_after><|endoftext|> |
<commit_before>// Gridding algoithm, adopted from bilateral_grid demo app.
// There's nothing left from bilateral_grid except ideas and typical Halide idioms.
#include <math.h>
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
template<typename T>
void gridding_func_simple(std::string typeName) {
in... |
<commit_before>/*
* Copyright (c) 2001-2005 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>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2014 Conrado Miranda
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, cop... |
<commit_before>//======================================================================
//-----------------------------------------------------------------------
/**
* @file printers_tests.cpp
* @brief iutest_printers.hpp テスト
*
* @author t.shirayanagi
* @par copyright
* Copyright (C) 20... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impbmp.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-09-17 12:02:51 $
*
* The Contents of this file are made a... |
<commit_before>
#pragma once
#include <iostream>
#include <stdio.h>
#include <unistd.h>
#define TRACE_SPAM 0
#define TRACE_DEBUG 1
#define TRACE_INFO 2
#define TRACE_WARN 3
#define TRACE_ERROR 4
#define TRACE_CRIT 5
#define TRACE_GENERAL 1
#define TRACE_VM 2
#define TRACE_GC 4
#define TRACE_ALLOC 8
... |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list... |
<commit_before>/*************************************************************************
*
* $RCSfile: wmadaptor.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: pl $ $Date: 2001-09-10 17:54:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "libtorrent/session.hpp"
#include "libtorrent/hasher.hpp"
#include <fstream>
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/convenience.hpp>
#include "test.hpp"
using boost::filesystem::remove_all;
using boost:... |
<commit_before>/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
*... |
<commit_before>/*
* SEGS - Super Entity Game Server
* http://www.segs.io/
* Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
* This software is licensed! (See License.txt for details)
*/
/*!
* @addtogroup MapServer Projects/CoX/Servers/MapServer
* @{
*/
#include "MapSceneGraph.h"
#include "GameData/CoHMa... |
<commit_before>#include "libRocketBackendSystem.h"
#include "GraphicsBackendSystem.h"
#include "InputBackendSystem.h"
#include "LibRocketRenderInterface.h"
#include "LibRocketSystemInterface.h"
#include <AntTweakBarWrapper.h>
#include <Control.h>
#include <Cursor.h>
#include <Globals.h>
#include <GraphicsWrapper.h>
#i... |
<commit_before>#ifndef ALEPH_MATH_STEP_FUNCTION_HH__
#define ALEPH_MATH_STEP_FUNCTION_HH__
#include <iterator>
#include <limits>
#include <ostream>
#include <set>
#include <stdexcept>
#include <vector>
#include <cmath>
#include <cstdlib>
namespace aleph
{
namespace math
{
namespace detail
{
template <class T> T n... |
<commit_before>#include "statecheck.h"
#include "readdata.h"
#include "globals.h"
void stateCheck() {
for (int id = 0; id < AoS; id++){
if ((timerArray[id][1] + timerArray[id][0]) <= getTime()){
timerArray[id][1] = getTime();
globalid = id;
dataLoop(id);
usleep(50);
}
}
return;
}
<commit... |
<commit_before>#include <iostream>
#include <random>
#include <string>
#include <vector>
#include "tuner_api.h"
int main(int argc, char** argv)
{
// Initialize platform index, device index and paths to kernels
size_t platformIndex = 0;
size_t deviceIndex = 0;
std::string kernelFile = "../examples/coulo... |
<commit_before>// This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include <exception>
#include <iostream>
#include <string>
#include <boost/thread.hpp>
#include <boost/python.hpp>
#include "anh/logger.h"
#include "anh/utilities.h"
#include... |
<commit_before>/*****************************************************************************
complementBed.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 licen... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <boost/test/unit_test.hpp>
#include "Model.hpp"
typedef void (Implementation::Model::*OneArgMethod) (
const Abstract::Point& coordinates
);
typedef void (I... |
<commit_before>// (C) Copyright Gennadiy Rozental 2001-2004.
// (C) Copyright Ullrich Koethe 2001.
// 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)
// See http://www.boost.org/libs/test for the library hom... |
<commit_before>#include "common.h"
#include "timer.h"
#include "graph.hpp"
#include <Delegate.hpp>
#include <ParallelLoop.hpp>
#include <Array.hpp>
#include <GlobalVector.hpp>
#include <utility>
using namespace Grappa;
GlobalAddress<Graph> g;
GlobalAddress<long> bfs_tree;
GRAPPA_DECLARE_STAT(SimpleStatistic<uint64_t... |
<commit_before>// Copyright 2016 Peter Georg
//
// 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... |
<commit_before>/*
* User.cpp
*
* Copyright (C) 2020 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant to the terms of a commercial license agreement
* with RStudio, then this program is licensed to you under the following terms:
*
* Permission is hereby granted, free of c... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#if qHasFeature_libcurl
#include <curl/curl.h>
#endif
#include "../../../Characters/Format.h"
#include "../../../Characters/String_Constant.h"
#include "../../../Debug/... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#if qHasFeature_libcurl
#include <curl/curl.h>
#endif
#include "../../../Characters/Format.h"
#include "../../../Characters/String_Constant.h"
#include "../../../Debug/... |
<commit_before>/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>// Copyright (c) 2017 Kai Luo <gluokai@gmail.com>. All rights reserved.
#include "buffer.h"
#include "testkit.h"
TEST(kl::Buffer, Constructor, 1024) { ASSERT(Cap() == 1024); }
TEST(kl::Buffer, ExtendTo) {
int cap = Cap();
ExtendTo(2 * cap);
ASSERT(Cap() == 2 * cap);
}
int main() {
kl::test::R... |
<commit_before>#pragma once
#include <Eigen/Dense>
#include <Eigen/StdVector>
template <int ROWS>
using VecNd = Eigen::Matrix<double, ROWS, 1>;
template <int ROWS, int COLS>
using MatNd = Eigen::Matrix<double, ROWS, COLS>;
using VecXd = Eigen::VectorXd;
using MatXd = Eigen::MatrixXd;
template <int ROWS>
using Squa... |
<commit_before>#include <UnitTest++/UnitTest++.h>
#include "neural/neuron.hpp"
using namespace neural;
SUITE(Neuron)
{
TEST(BasicNeuronTestCase)
{
Neuron input1 = Neuron::input_neuron();
Neuron input2 = Neuron::input_neuron();
Neuron out = Neuron(&neural::af::linear);
out.li... |
<commit_before>#ifndef TESTS_RANDOM_VECTOR_HPP
#define TESTS_RANDOM_VECTOR_HPP
#include <random>
#include <vector>
#include <vexcl/types.hpp>
template <typename T, class Enable = void>
struct generator {};
template<typename T>
struct generator<T, typename std::enable_if<std::is_floating_point<T>::value>::type>
{
... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2012-2017 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
<commit_before>#include "acsetup.hpp"
#include <sstream>
#include <boost/test/unit_test.hpp>
#include "xml_settings.hpp"
namespace xiva { namespace tests {
/*
BOOST_AUTO_TEST_SUITE(settings_test)
BOOST_AUTO_TEST_CASE(test_value) {
daemon::xml_settings set("test.conf");
BOOST_CHECK_EQUAL(10, set.as<int>("/" XIVA... |
<commit_before>/*
* Copyright (c) 1998-1999 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of ... |
<commit_before>/* Copyright (C) 2016 INRA
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, pu... |
<commit_before>#include "maths.hpp"
#include <lux/lux.hpp>
using namespace maths;
extern "C" int luaopen_maths(lua_State *state)
{
luaL_Reg regs[] =
{
// common factors
{"gcd", lux_cast(gcd<lua_Integer>)},
{"lcm", lux_cast(lcm<lua_Integer>)},
// combinatorial
{"fact", lux_cast(fact<lua_Integer>)},
{"prim", lux... |
<commit_before>#include <stdio.h>
#include "libcmm.h"
#include "libcmm_test.h"
#include "tbb/atomic.h"
#include "tbb/concurrent_queue.h"
using tbb::atomic;
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <... |
<commit_before>/*-------------------------------------------------------------------------
*
* FILE
* cursor.cxx
*
* DESCRIPTION
* implementation of the pqxx::Cursor class.
* pqxx::Cursor represents a database cursor.
*
* Copyright (c) 2001-2003, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
*------------... |
<commit_before>#include <QPainter>
#include <QPaintEvent>
#include <QDebug>
#include "shellwidget.h"
#include "helpers.h"
ShellWidget::ShellWidget(QWidget *parent)
:QWidget(parent), m_contents(0,0), m_bgColor(Qt::white),
m_fgColor(Qt::black), m_spColor(QColor()), m_lineSpace(0)
{
setAttribute(Qt::WA_OpaquePaintEvent... |
<commit_before>/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2022, The Regents of the University of California
// All rights reserved.
//
// BSD 3-Clause License
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pr... |
<commit_before>/*****************************************************************************
intersectMain.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 licen... |
<commit_before>#include <iostream>
#include <complex>
#include <cmath>
#include <thread>
#include <vector>
#include <gtest/gtest.h>
#include "../sequence.h"
#include "../parallel.h"
#include "../run.h"
class SequenceTest : testing::Test { };
TEST(SequenceTest, DISABLED_Test1)
{
struct control_flow
{
bool code;
... |
<commit_before>#include <takewhile.hpp>
#include <range.hpp>
#include <vector>
#include <iostream>
using iter::takewhile;
using iter::range;
int main() {
std::vector<int> ivec{1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1};
for (auto i : takewhile([] (int i) {return i < 5;}, ivec)) {
std::cout << i << '\n';
... |
<commit_before>/*
* Copyright (c) 2015 Cossack Labs 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
*
* Unless required by appl... |
<commit_before>/* Copyright 2015 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>/* Copyright 2018 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>// RUN: %clang %s -S -emit-llvm -o - | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE"
// RUN: %clang %s -S -emit-llvm -o - -DPROTOTYPE | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE"
// RUN: %clang -cc1 %s -DREDEFINE -verify
// RUN: %clang -cc1 %s -DPROTOTYPE -DRE... |
<commit_before>/*
*
* Copyright 2017 gRPC 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
*
* Unless required by applicab... |
<commit_before>// Copyright 2015 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 "mandoline/tab/frame.h"
#include <algorithm>
#include "base/stl_util.h"
#include "components/view_manager/public/cpp/view.h"
#in... |
<commit_before>#include <stan/math/prim.hpp>
#include <gtest/gtest.h>
#include <limits>
TEST(MathFunctionsLog, std_normal_log_qf) {
using stan::math::std_normal_log_qf;
using stan::math::Phi;
EXPECT_FLOAT_EQ(0.0, std_normal_log_qf(log(0.5)));
double log_p = log(0.123456789);
EXPECT_FLOAT_EQ(0.123456789, Phi(... |
<commit_before>// Copyright (C) 1999-2017
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#include <tk.h>
#include "composite.h"
#include "fitsimage.h"
Composite::Composite(const Composite& a) : Marker(a)
{
members = a.mem... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>//
// Copyright (c) 2017 The Khronos Group 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 b... |
<commit_before><commit_msg>INTEGRATION: CWS ooo20031216 (1.13.132); FILE MERGED 2003/12/13 12:52:38 waratah 1.13.132.1: #i1858# replace some NULL constants with 0 (zero), used with non-pointers<commit_after><|endoftext|> |
<commit_before>#include <boost/python.hpp>
#include <osmium/io/any_input.hpp>
#include "osm.cc"
BOOST_PYTHON_MODULE(io)
{
using namespace boost::python;
docstring_options doc_options(true, true, false);
class_<osmium::io::Header>("Header",
"File header with global information about the file.")
... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2013-2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
<commit_before>//Copyright (c) 2019 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <gtest/gtest.h>
#include "../src/Application.h" //To provide settings for the layer plan.
#include "../src/LayerPlan.h" //The code under test.
#include "../src/RetractionConfig.h" //To provide... |
<commit_before>#include <QDebug>
#include <QSettings>
#include "Settings.h"
namespace
{
const QSettings::Format SETTINGS_FILE_FORMAT = QSettings::IniFormat;
const QString IP_ADDRESS = "SourceAddress/ipAddress";
const QString DEFAULT_IP = "127.0.0.1";
const QString PORT = "SourceAddress/port";
cons... |
<commit_before>/*
* ECDSA and ECDH via OpenSSL
* (C) 2015,2016 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/openssl.h>
#if defined(BOTAN_HAS_ECC_PUBLIC_KEY_CRYPTO)
#include <botan/der_enc.h>
#include <botan/pkcs8.h>
#include <botan/oids.h>
#in... |
<commit_before>// -*- Mode:C++ -*-
/**************************************************************************************************/
/* */
/* Copyright (C) 2016 University of Hull ... |
<commit_before>// @(#)root/hist:$Id$
// Author: Rene Brun 30/08/99
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>// @(#)root/meta:$Name: $:$Id: TMethod.cxx,v 1.4 2003/06/13 16:21:21 rdm Exp $
// Author: Rene Brun 09/02/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>// This project underlies the optiMEAS Source Code License which is
// to be found at www.optimeas.de/source_code_license.
#pragma once
#include <array>
#include <tuple>
#include <utility>
namespace cu
{
/// Returns the size of a tuple as compile-time constant.
template <typename ...Ts>
constexpr std... |
<commit_before>#include "tileManager.h"
#include "scene/scene.h"
#include "tile/mapTile.h"
#include "view/view.h"
#include <chrono>
#include <algorithm>
TileManager::TileManager() {
// Instantiate workers
for (size_t i = 0; i < MAX_WORKERS; i++) {
m_workers.push_back(std::unique_ptr<TileWorker>(new Ti... |
<commit_before>// Copyright (c) 2019 ASMlover. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list o... |
<commit_before>#include <iostream>
#include "game/car_tracker.h"
#include "gtest/gtest.h"
using jsoncons::json;
namespace game {
class CarTrackerTest : public testing::Test {
protected:
void SetUp() {
json game_init_json = json::parse_file("data/gameInit.json");
const auto& race_json = game_init_json["da... |
<commit_before>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bibcont.cxx,v $
* $Revision: 1.1... |
<commit_before>#include <vector>
#include "Halide.h"
using namespace Halide;
namespace {
// Generator class for BLAS gemm operations.
template<class T>
class GEMMGenerator :
public Generator<GEMMGenerator<T>> {
public:
typedef Generator<GEMMGenerator<T>> Base;
using Base::target;
using Base::ge... |
<commit_before>#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <random>
#include <string>
#include <cblas.h>
#include <halide_blas.h>
#include "Halide.h"
#define RUN_TEST(method) \
std::cout << std::setw(30) << ("Testing " #method ":... |
<commit_before><commit_msg>minor fix<commit_after><|endoftext|> |
<commit_before>/**
* Copyright 2014-2016 CyberVision, 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 requir... |
<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 "webkit/glue/form_field.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
using WebKit::WebInputElem... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>/*
* web_wit_policy_delegate.cpp
*
* Created on: Feb 16, 2009
* Author: jorge
*/
#include "webkit_policy_delegate.h"
#include <string>
namespace ti {
Win32WebKitPolicyDelegate::Win32WebKitPolicyDelegate(Win32UserWindow *window_)
: window(window_), m_refCount(1), m_permissive... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.