text stringlengths 54 60.6k |
|---|
<commit_before>/// \file
/// \ingroup tutorial_fit
/// \notebook
/// Fitting of a TGraph2D with a 3D straight line
///
/// run this macro by doing:
///
/// ~~~{.cpp}
/// root>.x line3Dfit.C+
/// ~~~
///
/// \macro_image
/// \macro_output
/// \macro_code
///
/// \author Lorenzo Moneta
#include <TMath.h>
#include <TGrap... |
<commit_before>#include <isl/set.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/schedule.h>
#include <isl/schedule_node.h>
#include <tiramisu/debug.h>
#include <tiramisu/core.h>
#include <string.h>
#include <Halide.h>
#include "halide_image_io.h"
/* Halide code.
Fun... |
<commit_before>#include "GameEngine.h"
#include "Direction.h"
#include "EndGameEvent.h"
#include "Stage.h"
static const PhysicalObject::SpeedVector kZeroSpeedVector { Speed(0), Speed(0) };
static const PhysicalObject::AccelerationVector kZeroAccelerationVector { Acceleration(0), Acceleration(0) };
GameEngine::GameEn... |
<commit_before>#include <isl/set.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/schedule.h>
#include <isl/schedule_node.h>
#include <tiramisu/debug.h>
#include <tiramisu/core.h>
#include <string.h>
#include <Halide.h>
#include "halide_image_io.h"
/* CSR SpMV.
for (i... |
<commit_before>// Copyright Joshua Boyce 2010-2012.
// 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)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com>
#pra... |
<commit_before>#pragma once
#include <memory_resource>
#include "nova_renderer/memory/bytes.hpp"
#include "nova_renderer/memory/host_memory_resource.hpp"
#include "block_allocation_strategy.hpp"
namespace nova::mem {
template <typename AllocatedType = std::byte>
class AllocatorHandle : public std::pmr::polym... |
<commit_before>#include "gtest.h"
#include "proposer.h"
class ProposerTest : public testing::Test {
protected:
int id;
int instances;
struct proposer* p;
virtual void SetUp() {
id = 2;
instances = 100;
p = proposer_new(id, instances);
}
virtual void TearDown() { }
};
TEST_F(ProposerTest, Prepare) {
i... |
<commit_before>#include "OStreamServerLog.h"
#include <iostream>
using namespace HTTP::ServerLog;
const char *GetMethodName(HTTP::METHOD Method)
{
switch (Method)
{
case HTTP::METHOD_GET: return "GET ";
case HTTP::METHOD_POST: return "POST";
case HTTP::METHOD_HEAD: return "HEAD";
default: return "-";
}
}
voi... |
<commit_before>/*
* Copyright (C) 2005-2017 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 2022 The StableHLO 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 applicable law or agreed t... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>#ifndef STAN_MATH_REV_FUN_TO_VECTOR_HPP
#define STAN_MATH_REV_FUN_TO_VECTOR_HPP
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
namespace stan {
namespace math {
/**
* Cast a `var_value<Matrix>` to a `var_value<ColumnVector>`.
* @tparam Eig... |
<commit_before>
#include "dirs.h"
#include <iostream>
#include <sstream>
#ifdef __WIN32__
#include <windows.h>
#include <shlwapi.h>
#include <shlobj.h>
#elif defined(__APPLE__)
#include <libproc.h>
#include <unistd.h>
#include <pwd.h>
#else
#include <pwd.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: roottree.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:54:35 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* $RCSfile: valueref.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2003-03-19 16:19:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/* todo-conduit.cc Todo-Conduit for syncing KPilot and KOrganizer
**
** Copyright (C) 2002-2003 Reinhold Kainhofer
** Copyright (C) 1998-2001 Dan Pilone
** Copyright (C) 1998-2000 Preston Brown
** Copyright (C) 1998 Herwin-Jan Steehouwer
** Copyright (C) 2001 Cornelius Schumacher
**
** This file is part... |
<commit_before>#ifndef _SDD_ORDER_ORDER_HH_
#define _SDD_ORDER_ORDER_HH_
#include <algorithm> // find
#include <initializer_list>
#include <iostream>
#include <memory> // shared_ptr
#include <utility> // pair
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "sdd/order/order_builder.hh... |
<commit_before>#define AliAnalysisTaskPt_cxx
#include "TROOT.h"
#include "TChain.h"
#include "TH1.h"
#include "TCanvas.h"
#include "TSystem.h"
#include "Riostream.h"
#include "AliAnalysisTask.h"
#include "AliESD.h"
#include "AliAnalysisTaskPt.h"
ClassImp(AliAnalysisTaskPt)
//_______________________________________... |
<commit_before>{
//load libraries
gROOT->Macro("initGlauberMC.C");
//run the example code:
//AliGlauberMC::runAndSaveNucleons(10000,"Pb","Pb",72);
AliGlauberMC::runAndSaveNtuple(10000,"Pb","Pb",72);
}
<commit_msg>document a few settings<commit_after>{
//load libraries
gROOT->Macro("initGlauberMC.C");
... |
<commit_before>
AliAnalysisTask *AddTaskTPCTOFpA(Int_t identifier = 0, Bool_t isMC = kFALSE, Bool_t isTPConly = kFALSE, Bool_t writeOwnFile = kFALSE, Bool_t saveMotherPDG = kFALSE, Bool_t useEvenDcaBinning = kFALSE, Bool_t smallTHnSparse = kFALSE, Double_t nSigmaTPCLow= -3., Double_t nSigmaTPCHigh = 3., Double_t rap... |
<commit_before>// QmitkFctMediator.cpp: implementation of the QmitkFctMediator class.
//
//////////////////////////////////////////////////////////////////////
#include "QmitkFctMediator.h"
#include <qwidgetstack.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qtoolbar.h>
#include <qaction.h>
#include... |
<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>// Copyright (c) 2013 Hyperceptive, LLC
// Use of this source code is governed by The MIT License
// that can be found in the LICENSE file.
#include "DisplayUpdater.h"
#include "RgbMatrix.h"
#include "RgbMatrixContainer.h"
#include "Thread.h"
#include <cstdlib>
#include <stdio.h>
#include <unistd.h>
... |
<commit_before>// handle.cpp
#include "handle.h"
#include <GL/glew.h>
namespace gl = virvo::gl;
void gl::Buffer::destroy()
{
glDeleteBuffers(1, &name);
}
void gl::Framebuffer::destroy()
{
glDeleteFramebuffers(1, &name);
}
void gl::Renderbuffer::destroy()
{
glDeleteRenderbuffers(1, &name);
}
voi... |
<commit_before>#include "Organism.h"
//Constructor
Organism::Organism()
{
//Keep track of id numbers
static unsigned long int next_id = 0;
id = next_id;
++next_id;
//First and Last name lengths
int fNameLen = GetDistribution(std::uniform_int_distribution<int>(3, 8));
int lNameLen = GetDistribution(std::unifor... |
<commit_before>//
// parser_tables.cpp
// Parse
//
// Created by Andrew Hunter on 07/05/2011.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#include <algorithm>
#include "parser_tables.h"
using namespace std;
using namespace contextfree;
using namespace lr;
/// \brief Ranks actions in the order t... |
<commit_before>#ifndef MTL_REMOTE_POINTER
#define MTL_REMOTE_POINTER
#include <string>
namespace mtl
{
namespace remote
{
//this is adequate only for testing AND/OR internal tools, with this client can easily crash server
template<typename T>
struct raw_pointer_unsafe
{
raw_pointer_unsafe() {}
raw_p... |
<commit_before>// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include "db... |
<commit_before>/*
* createcomp.cpp
*
* Created on: 2015. 9. 6.
* Author: hwang-linux
*/
#include "createcomp.hpp"
#include "../../include/logger.hpp"
#include <popt.h>
#include <boost/filesystem.hpp>
#include <string>
#include "../../include/base/configreader.hpp"
using namespace std;
using namespace boos... |
<commit_before>#include "memory_manager.h"
const long SHRINK_NPAGES = 1024;
const long INCREASE_SIZE = 1024 * 1024 * 128;
memory_manager::memory_manager(
long max_size): slab_allocator(PAGE_SIZE,
INCREASE_SIZE <= max_size ? INCREASE_SIZE : max_size , max_size) {
pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE)... |
<commit_before>#include <iostream> //cout
#include <cstdlib> //rand, sran
#include <string>
#include "complex_matrices.h"
#include <gmc.h> //LaGenMatComplex
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
using namespace std;
/* Total [13/20] */
/* Printing [6/9] */
void p... |
<commit_before>#include <iostream> //cout
#include <cstdlib> //rand, sran
#include <string>
#include "complex_matrices.h"
#include <gmc.h> //LaGenMatComplex
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
using namespace std;
/* Total [13/20] */
/* Printing [6/9] */
void p... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: saltimer.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2006-09-17 12:44:24 $
*
* The Contents of this file are mad... |
<commit_before>#ifndef VIENNADATA_CONTAINER_ACCESS_HPP
#define VIENNADATA_CONTAINER_ACCESS_HPP
/* =======================================================================
Copyright (c) 2011-2013, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>#ifndef VIENNAGRID_TOPOLOGY_SIMPLEX_HPP
#define VIENNAGRID_TOPOLOGY_SIMPLEX_HPP
/* =======================================================================
Copyright (c) 2011-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>#ifndef VPP_OPENCV_UTILS_HH_
# define VPP_OPENCV_UTILS_HH_
# include <iostream>
# include <regex>
# include <opencv2/highgui/highgui.hpp>
# include <vpp/core/boxNd.hh>
# include <vpp/core/image2d.hh>
inline bool open_videocapture(const char* str, cv::VideoCapture& cap)
{
if (std::regex_match(str, std... |
<commit_before>
#include <iostream>
#include <stdlib.h>
#include <vector>
#include <queue>
#include "google/protobuf/descriptor.h"
#include "boost/asio.hpp"
#include "boost/chrono.hpp"
#include "boost/thread.hpp"
#include "boost/thread/shared_mutex.hpp"
#include "boost/thread/condition_variable.hpp"
#include "vtr... |
<commit_before>#include <nanyc/library.h>
#include <nanyc/program.h>
#include <yuni/yuni.h>
#include <yuni/core/getopt.h>
#include <yuni/core/string.h>
#include <yuni/io/filename-manipulation.h>
#include <yuni/datetime/timestamp.h>
#include <yuni/core/system/console/console.h>
#include <iostream>
#include <vector>
#inc... |
<commit_before>/*
* 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 following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* ... |
<commit_before>// Copyright (c) 2020 The Orbit 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 <gtest/gtest.h>
#include <cstring>
#include "PickingManager.h"
class PickableMock : public Pickable {
public:
void OnPick(in... |
<commit_before>// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** Connection.h
**
** Copyright (C) August 2016 Hotride
... |
<commit_before>//===--- SILCombine -------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: miscopt.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 19:28:24 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: eertfpar.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: mt $ $Date: 2002-11-06 12:25:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>//
// steps.cpp
// yamcmc++
//
// Created by Brandon Kelly on 3/2/13.
// Copyright (c) 2013 Brandon Kelly. All rights reserved.
//
#include <boost/timer.hpp>
// Local includes
#include "include/steps.hpp"
// Global random number generator object, instantiated in random.cpp
extern boost::random::mt1... |
<commit_before>#ifndef OMALG_TRANSFORM_TO_OMEGA_SEMIGROUP
#define OMALG_TRANSFORM_TO_OMEGA_SEMIGROUP
#include <list>
#include <unordered_map>
#include <iostream>
#include "OmegaSemigroup.h"
#include "Morphism.h"
#include "Node.h"
#include "TransitionProfiles/TransitionProfile.h"
namespace omalg {
/**
* Transform... |
<commit_before>// @(#)root/minuit2:$Name: $:$Id: TFitterFumili.cxx,v 1.3 2005/11/29 14:43:31 moneta Exp $
// Author: L. Moneta 10/2005
/**********************************************************************
* *
* Copyright (c) 2005 ROOT Foundat... |
<commit_before>/************************************************
* permutation.hpp
* DICT
*
* Copyright (c) 2015-2017, Chi-En Wu
* Distributed under The BSD 3-Clause License
************************************************/
#ifndef DICT_INTERNAL_PERMUTATION_HPP_
#define DICT_INTERNAL_PERMUTATION_HPP_
#inclu... |
<commit_before>/*************************************************************************
*
* $RCSfile: extinput.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: jp $ $Date: 2001-03-13 16:40:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: include/eos/render/FragmentShader.hpp
*
* Copyright 2017 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: edredln.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 03:28:59 $
*
* The Contents of this file are made a... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*************************************************************************
*
* $RCSfile: swblocks.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2004-08-12 12:28:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>/*
Copyright 2011 StormMQ 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 applicable law ... |
<commit_before>/*
* model.cpp
*
* Created on: Jan 23, 2012
* Author: mpetkova
*/
#include <model.h>
#include <source_models.h>
Model::Model(LensHndl my_lens, SourceHndl my_source, CosmoHndl my_cosmo){
lens = my_lens;
source = my_source;
cosmo = my_cosmo;
setInternal();
}
Model::~Model(){
delete lens... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: selglos.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2006-09-16 22:51:49 $
*
* The Contents of this file are made ... |
<commit_before>#include "job_tracker.hpp"
#include <sys/stat.h>
#include <thread>
#include <chrono>
#include <fstream>
#include <stdlib.h>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <sstream>
void log(std::ostream& os, const std::string& message)
{
auto now = std::chrono::system_clock::now();
... |
<commit_before>//Author: Adam Browne; as well as The Chromium Authors, whom
// were responsible for the module and instance structure,
// I (Adam Browne) wrote all subsequent code which includes;
// Mitie ML usage, message handling logic, and any further code
#include <vector>
#include <string>
#include <algorithm>
#in... |
<commit_before>/*
This file is part of CanFestival, a library implementing CanOpen Stack.
Copyright (C): Edouard TISSERANT and Francis DUPIN
Copyright (C) Win32 Port Leonid Tochinski
See COPYING file for copyrights details.
This library is free software; you can redistribute it and/or
modify it under the terms of th... |
<commit_before>
#include "FlareCreditsMenu.h"
#include "../../Flare.h"
#include "../Components/FlareButton.h"
#include "../../Game/FlareGame.h"
#include "../../Game/FlareSaveGame.h"
#include "../../Player/FlareMenuPawn.h"
#include "../../Player/FlareMenuManager.h"
#include "../../Player/FlarePlayerController.h"
#defi... |
<commit_before>#ifndef GCL_TMP_H_
# define GCL_TMP_H_
#include <array>
namespace gcl::mp
{ // C++17
template <typename ... ts>
struct super : ts...
{};
template <template <typename...> class trait_type, typename ... ts>
struct partial_template
{
template <typename ... us>
using type = trait_type<ts..., us.... |
<commit_before>//
// Copyright (c) 2008-2017 the Urho3D project.
//
// 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, ... |
<commit_before>// Time: ctor: O(n),
// update: O(logn),
// query: O(logn)
// Space: O(n)
// Segment Tree solution.
class NumArray {
public:
NumArray(vector<int> &nums) : nums_(nums) {
root_ = buildHelper(nums, 0, nums.size() - 1);
}
void update(int i, int val) {
if (n... |
<commit_before>// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - OpenGL Renderer"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/OpenGLRenderer/Wrapper/EGL/EGLLoader.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/OpenGLRenderer/Wr... |
<commit_before>/*
* Copyright (C) 2010 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, this l... |
<commit_before>// This file is part of the dune-pymor project:
// https://github.com/pymor/dune-pymor
// Copyright holders: Stephan Rave, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_PYMOR_FUNCTIONS_HH
#define DUNE_PYMOR_FUNCTIONS_HH
#include <string>
#... |
<commit_before>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#include "bse/processor.hh"
#include "bse/bseieee754.hh"
#include "bse/internal.hh"
#include "revmodel.hpp"
#include "revmodel.cpp"
#include "allpass.cpp"
#include "comb.cpp"
namespace {
using namespace Bse;
using namespace Audi... |
<commit_before>//------------------------------------------------------------------------------
//
// Copyright (C) Streamlet. All rights reserved.
//
// File Name: ZLibWrapLib.cpp
// Author: Streamlet
// Create Time: 2010-09-16
// Description:
//
// Version history:
//
//
//
//--... |
<commit_before>/*
Copyright (C) 2001-2015 by Serge Lamikhov-Center
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify... |
<commit_before>#include "msfem_solver.hh"
#include <unordered_set>
#include <dune/multiscale/common/righthandside_assembler.hh>
#include <dune/multiscale/msfem/localproblems/subgrid-list.hh>
#include <dune/multiscale/msfem/elliptic_msfem_matrix_assembler.hh>
#include <dune/multiscale/tools/misc/linear-lagrange-interp... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of... |
<commit_before>/*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/****************************************************************************************************/
#include ... |
<commit_before>// Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, Universi... |
<commit_before>/**
******************************************************************************
* @file application.cpp
* @authors Sam Decrock
*
* Detect sound over a sliding window
******************************************************************************
*/
/* Includes ------------------------------... |
<commit_before>/**
* \file EQ.cpp
*/
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <ATK/EQ/ChamberlinFilter.h>
#include <ATK/EQ/CustomIIRFilter.h>
#include <ATK/EQ/PedalToneStackFilter.h>
#include <ATK/EQ/RIAAFilter.h>
#include <ATK/EQ/FourthOrderFilter.h>
#include <ATK/EQ/LinkwitzRileyFilter.h... |
<commit_before>// @(#)root/core/meta:$Id$
// Author: Vassil Vassilev 7/10/2012
/*************************************************************************
* Copyright (C) 1995-2012, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<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) 2014-2017 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge... |
<commit_before>/*
* SSBOStreamer.cpp
*
* Copyright (C) 2018 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/utility/SSBOStreamer.h"
#include <algorithm>
#include "vislib/assert.h"
#include <iostream>
#include <sstream>
using namespace megamol::core::utility;
SSBOS... |
<commit_before>#include "umundo/core.h"
#include <iostream>
using namespace umundo;
bool testRecursiveMutex() {
Mutex mutex;
UMUNDO_LOCK(mutex);
if(!mutex.tryLock()) {
LOG_ERR("tryLock should be possible from within the same thread");
assert(false);
}
UMUNDO_LOCK(mutex);
// can we unlock it as well?
UMUNDO... |
<commit_before>#include "umundo/core.h"
#include <iostream>
using namespace umundo;
bool testRecursiveMutex() {
Mutex mutex;
UMUNDO_LOCK(mutex);
if(!mutex.tryLock()) {
LOG_ERR("tryLock should be possible from within the same thread");
assert(false);
}
UMUNDO_LOCK(mutex);
// can we unlock it as well?
UMUNDO... |
<commit_before>/*
Q Light Controller Plus
audiorenderer_qt.cpp
Copyright (c) Massimo Callegari
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/LICE... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2012 Belledonne Communications SARL.
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... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
commands/detailscommand.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2007 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Licens... |
<commit_before>/*
This file is part of the kolab resource - the implementation of the
Kolab storage format. See www.kolab.org for documentation on this.
Copyright (c) 2004 Bo Thorsen <bo@klaralvdalens-datakonsult.se>
This library is free software; you can redistribute it and/or
modify it under the... |
<commit_before>//===- CallGraphSCCPass.cpp - Pass that operates BU on call graph ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>
// This program was created by the Equelle compiler from SINTEF.
#include <opm/core/utility/parameters/ParameterGroup.hpp>
#include <opm/core/linalg/LinearSolverFactory.hpp>
#include <opm/core/utility/ErrorMacros.hpp>
#include <opm/autodiff/AutoDiffBlock.hpp>
#include <opm/autodiff/AutoDiffHelpers.hpp>... |
<commit_before>// Copyright 2020 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: util.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: obo $ $Date: 2006-09-16 14:48:23 $
*
* The Contents of this file are made av... |
<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>#pragma once
#include "libkrbn/libkrbn.h"
#include "monitor/connected_devices_monitor.hpp"
namespace {
class libkrbn_connected_devices_class final {
public:
libkrbn_connected_devices_class(const krbn::connected_devices::connected_devices& connected_devices) : connected_devices_(connected_devices) {
... |
<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 2009 Eckhart Wörner <ewoerner@kde.org>
// Copyright 2011 Bernha... |
<commit_before>#pragma once
#define WRD_NULL 0x00
#define WRD_IDX_ERROR -1
#ifdef UNICODE
#define tchar wchar_t
#define tmain wmain
#define tcslen wcslen
#define tcscat wcscat
#define tcscpy wcscpy
#define tcsncpy wcsncpy
#define tcscmp wcscmp
#define tcsncmp wcsncmp
#defi... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*******************************************************************************
* Code contributed to the webinos project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
<commit_before>/*
* NotebookQueue.cpp
*
* Copyright (C) 2009-16 by RStudio, Inc.
*
* 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 terms of version 3 of the
* GNU Affero General... |
<commit_before>//
// Copyright (c) 2016 CNRS
// Author: Florent Lamiraux
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the Li... |
<commit_before>#include "SmashcastClient.h"
#include "Curl.h"
#include "JSON.h"
namespace rustla2 {
namespace smashcast {
rapidjson::Document ChannelResult::GetSchema() {
rapidjson::Document schema;
schema.Parse(R"json(
{
"type": "object",
"properties": {
"livestream": {
... |
<commit_before>/**************************************************************************
*
* Copyright 2012 Jose Fonseca
* All Rights Reserved.
*
* 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 t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.