text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef ALEPH_COMPLEXES_FLANN_HH__
#define ALEPH_COMPLEXES_FLANN_HH__
#include "complexes/NearestNeighbours.hh"
#include <flann/flann.hpp>
#include <algorithm>
#include <vector>
#include "distances/Traits.hh"
namespace aleph
{
namespace complexes
{
template <class Container, class DistanceFunctor>... |
<commit_before>// Filename: physicsCollisionHandler.cxx
// Created by: drose (16Mar02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda... |
<commit_before>/*
* utils.cpp
*
* Created on: 22 maj 2015
* Author: parhansson
*/
#include <stdio.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/syscall.h> /* For SYS_xxx definitions */
#include <unistd.h> // getpagesize
#include "utils.h"
#include ... |
<commit_before>#ifndef HMLIB_RANDOM_RANDOMENGINE_INC
#define HMLIB_RANDOM_RANDOMENGINE_INC 100
#
/*
===random_engine===
C++11の乱数ライブラリをラッピングして提供
random_engine v1_00/130328 hmIto
randomから分離
*/
#include<algorithm>
#include<functional>
#include<vector>
#include<random>
#include<numeric>
#
namespace hmLib{
namespace ra... |
<commit_before>/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 1999-2019 Vaclav Slavik
*
* 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 restrictio... |
<commit_before>#include "Cloth.h"
/*ClothPoint*/
ClothPoint::ClothPoint()
{
this->position = new vector3d(0.f, 0.f, 0.f, vector3d::rect);
this->mass = 0.0f;
this->velocity = new vector3d(0.f, 0.f, 0.f, vector3d::rect);
this->forces_sum = new vector3d(0.f, 0.f, 0.f, vector3d::rect);
this->normal = new v... |
<commit_before>#include "scientistservice.h"
using namespace std;
//operator overloading for scientistSort.
bool sortByNameAsc (const Scientist &a, const Scientist &b) { return a.getName() < b.getName(); }
bool sortByNameDesc(const Scientist &a, const Scientist &b) { return a.getName() > b.getName(); }
bo... |
<commit_before>/*
Dwarf Therapist
Copyright (c) 2010 Justin Ehlert
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,... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>#define DEBUG 1
/**
* File : C.cpp
* Author : Kazune Takahashi
* Created : 11/9/2019, 9:10:42 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack... |
<commit_before>#define DEBUG 1
/**
* File : C.cpp
* Author : Kazune Takahashi
* Created : 11/9/2019, 9:10:42 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack... |
<commit_before>/*--------------------------------------------------------------------------
File : timer_hf_nrf5x.cpp
Author : Hoang Nguyen Hoan Sep. 7, 2017
Desc : timer class implementation on Nordic nRF5x series
using high frequency timer (TIMERx)
Copyright (c) 2017, I-SYST inc., all rights res... |
<commit_before>// mat.hxx -- a material in the scene graph.
// TODO: this class needs to be renamed.
//
// Written by Curtis Olson, started May 1998.
// Overhauled by David Megginson, December 2001
//
// Copyright (C) 1998 - 2000 Curtis L. Olson - curt@flightgear.org
//
// This program is free software; you can redis... |
<commit_before>MatrixXcd X = MatrixXcd::Random(4,4);
MatrixXcd A = X + X.adjoint();
cout << "Here is a random self-adjoint 4x4 matrix:" << endl << A << endl << endl;
Tridiagonalization<MatrixXcd> triOfA(A);
MatrixXcd T = triOfA.matrixT();
cout << "The tridiagonal matrix T is:" << endl << triOfA.matrixT() << endl << en... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010-2015 Belledonne Communications SARL, All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
publishe... |
<commit_before>// Given a non-empty binary search tree and a target value, find the value in
// the BST that is closest to the target.
// Note:
// Given target value is a floating point.
// You are guaranteed to have only one unique value in the BST that is
// closest to the target.
/**
* Definition f... |
<commit_before>// $Id: NMRSpectrum_test.C,v 1.1 2000/09/22 00:33:47 amoll Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/NMR/NMRSpectrum.h>
#include <BALL/FORMAT/HINFile.h>
#include <BALL/FORMAT/PDBFile.h>
///////////////////////////
START_TEST(NMRSpectrum, "$Id: NMRSpectrum_te... |
<commit_before>#include <jni.h>
#include <mpv/client.h>
#include "globals.h"
#include "jni_utils.h"
#include "log.h"
static void sendPropertyUpdateToJava(JNIEnv *env, mpv_event_property *prop) {
jstring jprop = env->NewStringUTF(prop->name);
jstring jvalue = NULL;
switch (prop->format) {
case MPV_FOR... |
<commit_before>#include "btree/slice_dispatching_to_masterstore.hpp"
#include "replication/masterstore.hpp"
using replication::masterstore_t;
/* store_t interface. */
store_t::get_result_t btree_slice_dispatching_to_masterstore_t::get(store_key_t *key) {
on_thread_t th(slice_->home_thread);
return slice_->ge... |
<commit_before>// Copyright (c) 2012-2019 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 <coins.h>
#include <consensus/consensus.h>
#include <logging.h>
#include <random.h>
#include <versio... |
<commit_before>/** @file
*****************************************************************************
Implementation of a Merkle tree based set commitment scheme.
*****************************************************************************
* @author This file is part of libsnark, developed by SCIPR Lab
* ... |
<commit_before>#include "../search/search.hpp"
#include "../utils/pool.hpp"
template <class D> struct Speediest : public SearchAlgorithm<D> {
typedef typename D::State State;
typedef typename D::PackedState PackedState;
typedef typename D::Cost Cost;
typedef typename D::Oper Oper;
struct Node : SearchNode<D> {
... |
<commit_before>// Licensed under the Apache License, Version 2.0.
// Author: Jin Qing (http://blog.csdn.net/jq0123)
#include "server_method_call_cqtag.h"
#include <grpc_cb/service.h> // for Service
#include <grpc_cb/impl/call.h> // for Call
#include <grpc_cb/impl/cqueue_for_next.h> // for c_cq()
namespace grpc_cb... |
<commit_before>/*
* Copyright (c) 2014-2016, imec
* All rights reserved.
*/
#include "error.h"
#include "bpmf.h"
#include <random>
#include <memory>
#include <cstdio>
#include <iostream>
#include <climits>
#include <stdexcept>
typedef Eigen::PermutationMatrix<Eigen::Dynamic, Eigen::Dynamic> PermMatrix;
void Sys:... |
<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>/*
* Copyright (c) 2014-2016, imec
* All rights reserved.
*/
#include "error.h"
#include "bpmf.h"
#include <random>
#include <memory>
#include <cstdio>
#include <iostream>
#include <climits>
#include <stdexcept>
#include "io.h"
static const bool measure_perf = false;
std::ostream *Sys::os;
int Sy... |
<commit_before>#pragma once
#include <string>
#include <vector>
#include <algorithm>
#include <optional>
#include <functional>
#include "acmacs-base/sfinae.hh"
#include "acmacs-base/read-file.hh"
#include "acmacs-base/rjson.hh"
// ----------------------------------------------------------------------
namespace acma... |
<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 "Lice... |
<commit_before>/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Jeff Thompson <jefft0@remap.ucla.edu>
* See COPYING for copyright and distribution information.
*/
#include <stdexcept>
#include "../security-exception.hpp"
#... |
<commit_before>/**
* @file joint_limits.cpp
* @brief This defines a joint limit filter.
*
* @author Jorge Nicho
* @date April 1, 2016
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2016, Southwest Research Institute
*
* @par License
* Software License Agreement (Apache License)
* @par
*... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewcontactofpageobj.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: hr $ $Date: 2007-06-26 12:06:06 $
*
* The Contents of this f... |
<commit_before>/**
This software was developed by the University of Tennessee as part of the
Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
project funded by the US National Science Foundation.
If you use DANSE applications to do scientific research that leads to
publication, we ask tha... |
<commit_before>#include "OrbitCamera.h"
void OrbitCamera::updatePosition() {
Position.x = Distance * glm::sin(HorizontalAngle) * glm::cos(VerticalAngle);
Position.z = Distance * glm::cos(HorizontalAngle) * glm::cos(VerticalAngle);
Position.y = Distance * glm::sin(-VerticalAngle);
}
OrbitCamera::OrbitCamera(glm::ve... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "math/vector2.h"
#include "PhysicalObject.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace
{
oxygine::UpdateState oneSecondUpdate()
{
oxygine::UpdateState update;
update.dt = 1000;
return update;... |
<commit_before>// Copyright 2019 Dell EMC
//
// 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 ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
Copyright (c) 2004 Till Adam <adam@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the ... |
<commit_before>// Copyright 2014 the V8 project 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 "src/base/platform/time.h"
#if V8_OS_MACOSX
#include <mach/mach_time.h>
#endif
#if V8_OS_POSIX
#include <sys/time.h>
#endif
#i... |
<commit_before>/*
//////////////////////////////////
// This File has been generated //
// by Expressik light generator //
// Powered by : Eve CSTB //
//////////////////////////////////
* *************************************************************************
* ... |
<commit_before>// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Rosetta/Cards/Cards.hpp>
#include <Rosetta/En... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) Kitware 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
... |
<commit_before>// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 2003
//
// Test STL colorHistogram function
//
#undef USE_VECTOR
#define USE_MAP
#include <Magick++.h>
#include <string>
#include <iostream>
#include <iomanip>
#if defined(USE_VECTOR)
# include <vector>
# incl... |
<commit_before>/** Display model class
*
* Glcd.cpp
* Created 10-01-17 By: Smitty
*
* A longer description.
*/
#include "Glcd.hpp"
/**
* @brief Glcd constructor
*/
Glcd::Glcd(void)
{
//display = new ST7565(MB_SID, MB_SCLK, MB_A0, MB_RST, MB_CS);
// U8G2_ST7565_LM6059_F_4W_SW_SPI u8g2(U8G2_R0, MB_S... |
<commit_before>/*******************************************************************************
*
* Filename : HiggsCombineSubmitter.cc
* Description : Helper class for submitting higgs combine data cards
* Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
*************************************... |
<commit_before>#ifndef AIKIDO_CONSTRAINT_IKSAMPLEABLE_H
#define AIKIDO_CONSTRAINT_IKSAMPLEABLE_H
#include "Sampleable.hpp"
#include <dart/dynamics/dynamics.h>
namespace aikido {
namespace constraint {
// Transforms Isometry3d region to IK region
class IKSampleableConstraint : public SampleableConstraint<Eigen::Vecto... |
<commit_before>#pragma once
#include <agency/cuda/execution/executor/grid_executor.hpp>
#include <agency/detail/tuple.hpp>
#include <agency/detail/invoke.hpp>
#include <agency/detail/type_traits.hpp>
namespace agency
{
namespace cuda
{
namespace detail
{
template<class Function>
struct block_executor_helper_functor... |
<commit_before>/*
* Copyright (c) 2017 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>/*=========================================================================
Program: KWSys - Kitware System Library
Module: testDynamicLoader.cxx
Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>// NegotiateProxy.cpp: .
//
#include "stdafx.h"
int main()
{
return 0;
}
<commit_msg>Add code<commit_after>// NegotiateProxy.cpp
#include "stdafx.h"
#define SECURITY_WIN32
#include <winsock2.h>
#include <stdio.h>
#include <Sspi.h>
#include <wincred.h>
#include <stdlib.h>
#include <Ws2tcpi... |
<commit_before>#include "engine/dukintegration.h"
#include <map>
#include <functional>
#include "core/ecs-systems.h"
#include "core/random.h"
#include "core/log.h"
#include "core/sol.h"
#include "engine/components.h"
#include "engine/input.h"
#include "engine/dukregistry.h"
#include "engine/objectemplate.h"
#include... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/version_info_updater.h"
#include <string>
#include <vector>
#include "base/bind.h"
#include "... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/importer/firefox_importer_utils.h"
#include <shlobj.h>
#include "base/file_util.h"
#include "base/registry.h... |
<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>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2022 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>/******************************************************************************
* Copyright 2017 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>
// Cef3View.cpp : implementation of the CCef3View class
//
#include "stdafx.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "Cef3.h"
#endif
#incl... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the config.tests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General P... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
**... |
<commit_before>
/**
* projectM -- Milkdrop-esque visualisation SDK
* Copyright (C)2003-2004 projectM Team
*
* This library 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.1 of the Lic... |
<commit_before>/* Copyright 2015-2018 Egor Yusov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* THE SOFTWARE IS PRO... |
<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: viewcontactofe3dscene.cxx,v $
* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fmtwrapinfluenceonobjpos.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: vg $ $Date: 2007-10-22 15:10:25 $
*
* The Contents of thi... |
<commit_before>/*
* File: CudaRtHandler.cpp
* Author: cjg
*
* Created on October 10, 2009, 10:51 PM
*/
#include <host_defines.h>
#include <builtin_types.h>
#include <driver_types.h>
#include <GL/gl.h>
#include <cuda_runtime_api.h>
#include <cstring>
#include "CudaUtil.h"
#include "CudaRtHandler.h"
using name... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE HitFinderToolsTests
#include <boost/test/unit_test.hpp>
#include "HitFinderTools.h"
BOOST_AUTO_TEST_SUITE (HitFinderToolsSuite)
BOOST_AUTO_TEST_CASE (HitFinder)
{
// All times are in picoseconds
JPetBarrelSlot BS(7, true, "string", 1.0,... |
<commit_before>#include "getusername.h"
#include <errno.h>
#include <langinfo.h>
#include <locale.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <scxcorelib/scxstrencodingconv.h>
using std::string;
using std::vector;
using SCXCoreLib::Utf8ToUtf16le;
const string utf8 = "UTF-8";
// https://msdn.... |
<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>#include "renderers.h"
#include <QWidget>
#include <QPainter>
#include <QBitmap>
void drawInterlaced(const QPixmap &imgL, const QPixmap &imgR, int panX, int panY, QPainter &painter, QBitmap &mask, qreal zoom, QWidget *parent){
if(zoom <= 0.0){
zoom = qMin(qreal(painter.window().width()) / qr... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/renderer_host/web_input_event_aura.h"
#include "content/browser/renderer_host/input/web_input_event_util.h"
... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/renderer_accessibility_focus_only.h"
#include "content/common/accessibility_node_data.h"
#include "content/... |
<commit_before>/*
FMD DA for online calibration of conditions
Contact: canute@nbi.dk
Link: fmd.nbi.dk/fmd/offline
Run Type: GAIN
DA Type: LDC
Number of events needed: usually 102400
Input Files: raw data
Output Files: ... |
<commit_before>// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../../../include/fpdfapi/fpdf_parser.h"
#include "../... |
<commit_before>/**
* @file
* @author 2012 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de)
* @copyright Simplified BSD
*
* @cond
* This program is free software: you can redistribute it and/or modify
* it under the terms of the FreeBSD license as published by the FreeBSD
* project.
*
* This p... |
<commit_before>// Copyright 2011-2013 Johann Duscher (a.k.a. Jonny Dee). 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... |
<commit_before>// Copyright 2019 The TCMalloc 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... |
<commit_before>///
/// \file AliFemtoDummyPairCut.cxx
///
#include "AliFemtoDummyPairCut.h"
#include <string>
#include <cstdio>
#ifdef __ROOT__
/// \cond CLASSIMP
ClassImp(AliFemtoDummyPairCut);
/// \endcond
#endif
//__________________
AliFemtoDummyPairCut::AliFemtoDummyPairCut() :
fNPairsPassed(0),
fNPair... |
<commit_before>/**
* @file AddTaskTriggerCorrection.C
* @author Valentina Zaccolo
* @date Mon Feb 3 13:56:26 2014
*
* @brief Script to add a task to create trigger bias correction
*
*
*/
AliAnalysisTask*
AddTaskTriggerCorrection(const char* trig="INEL",
Double_t vzMin=-4,
Double_t vzMax=4)
{
/... |
<commit_before>/***************************************************************************
adash@cern.ch - last modified on 05/09/2016
// *** Configuration script for KStar-Meson analysis with 2016 PbPb runs ***
//
// A configuration script for RSN package needs to define the followings:
//
// (1) deca... |
<commit_before>#include <iostream>
#include <lcm/lcm-cpp.hpp>
#include "drake/Path.h"
#include "drake/core/Vector.h"
#include "drake/systems/plants/IKoptions.h"
#include "drake/systems/plants/RigidBodyIK.h"
#include "drake/systems/plants/RigidBodyTree.h"
#include "drake/systems/plants/constraint/RigidBodyConstraint.h... |
<commit_before>///
/// @file ParallelPrimeSieve.cpp
/// @brief Multi-threaded prime sieve.
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/config.hpp>
#include <prime... |
<commit_before>#include "stdafx.h"
#include "common.h"
#include "dispatcher.h"
#include "condition.h"
#include "temple_functions.h"
#include "obj.h"
ConditionSystem conds;
class ConditionFunctionReplacement : public TempleFix {
public:
const char* name() override {
return "Condition Function Replacement";
}
voi... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2015 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>#include <Rcpp.h>
/*
* Functionalities to speed up working with dependency parsing results
*/
std::vector<int> pluck_int(const Rcpp::List& x, const unsigned int& i) {
if(i >= x.size()){
Rcpp::Rcout << "Trying to extract list element " << i << "/" << x.size() << std::endl;
Rcpp::stop("This ... |
<commit_before>/********************************************************************************
File name: monster.cpp
Written by: Daniel Nguyen
Written on 08/27/2016
Purpose: This is a c++ file containing classes for all monsters
Class: CPSC 362
***********************************************************************... |
<commit_before><commit_msg>fix namespace<commit_after><|endoftext|> |
<commit_before>///
/// @file C1.cpp
/// @brief Simple demonstration implementation of the C(x, y) formula
/// in Xavier Gourdon's prime counting algorithm. This
/// implementation uses O(x^(1/2)) memory instead of O(x^(1/3))
/// in order to simplify the implementation.
///
/// Currently thi... |
<commit_before>#include "EntityFactory.h"
namespace ros2_components
{
QHash<QString, const QMetaObject*> EntityFactory::metaObjs;
EntityFactory::EntityFactory(QObject *parent) : QObject(parent)
{
}
void EntityFactory::AddQObject(QObject *obj)
{
EntityFactory::metaObjs.insert(obj->metaObject()->className(), obj-... |
<commit_before>//
// File: csg_update.cc
// Author: ruehle
//
// Created on June 11, 2008, 10:31 AM
//
/// this is the most dirtyest program, clean it up, don't copy anything from here!!!
#define kB 8.3109*0.01
#include <math.h>
#include <iostream>
#include <fstream>
#include <string>
#include <boost/program_op... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libone 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 at ht... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio 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 at ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libwpd
* Copyright (C) 2012 Fridrich Strba (fridrich.strba@bluewin.ch)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as publish... |
<commit_before>#include "DynamicVertexBufferDemo.hpp"
#include <ciri/util/Log.hpp>
DynamicVertexBufferDemo::DynamicVertexBufferDemo()
: IDemo(), _graphicsDevice(nullptr), _window(nullptr) {
}
DynamicVertexBufferDemo::~DynamicVertexBufferDemo() {
}
DemoConfig DynamicVertexBufferDemo::getConfig() {
DemoConfig cfg;
... |
<commit_before>/*
* Diffie-Hellman
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/pk_utils.h>
#include <botan/dh.h>
#include <botan/workfactor.h>
#include <botan/pow_mod.h>
#include <botan/blinding.h>
namespace Botan {
/*
* DH_PublicKey... |
<commit_before>/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
<commit_before>/* /////////////////////////////////////////////////////////////////////////
* File: entry.cpp
*
* Purpose: Entry-point implementation file for the mtgrep project.
*
* Created: 28th September 2015
* Updated: 28th September 2015
*
* www: http://www.synesis.com.au/
*
* ... |
<commit_before>
#include <gloperate-qtquick/Application.h>
#include <QUrl>
#include <QQmlContext>
#include <QSurfaceFormat>
#include <cppassist/cmdline/ArgumentParser.h>
#include <qmltoolbox/Application.h>
#include <gloperate/gloperate.h>
#include <gloperate/base/TimerManager.h>
#include <gloperate-qt/base/GLConte... |
<commit_before>#include <iostream>
#include <fstream>
#include <chrono>
#include <random>
#include "os/task_t.h"
#include "os/task_system_t.h"
#include "os/parse.h"
#include "os/generator.h"
#include "os/scheduler.h"
#include "lib/io.h"
#include "lib/num.h"
int main(){
std::cout << "Hello world!" << std::endl;
{
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: arrdecl.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2006-06-19 21:57:15 $
*
* The Contents of this file are made a... |
<commit_before>/*
* Copyright (c) 2013-2016 John Connor
* Copyright (c) 2016-2017 The Vcash developers
*
* This file is part of vcash.
*
* vcash is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one publishe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.