text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
#include "../../src/signal_handlers.h"
#include "../../src/utils/dstring.h"
#include "../../src/utils/dstring_factory.h"
#include <pwd.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/resource.h>
... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#ifndef CTHREADRINGBUF
#define CTHREADRINGBUF
#include<atomic>
#include<memory> //allocator
#include<vector>
#include<utility> //forward, move
#include"CSemaphore.hpp"
#include"../algorithm/algorithm.hpp" //for_each_val
#include"../tool/CScopeGuard.hpp"
namespace nThread
{
//a fixed-sized and cannot ov... |
<commit_before>/** \file jsonv/forward.hpp
*
* Copyright (c) 2012-2014 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or ... |
<commit_before>/*! \file kernel/userver.hh
*******************************************************************************
File: userver.h\n
Definition of the USystem class.
This file is part of
%URBI Kernel, version __kernelversion__\n
(c) Jean-Christophe Baillie, 2004-2005.
Permission to use, copy, modify, ... |
<commit_before>/// \file libport/ufloat.hh
/// \brief Definition of the ufloat classes.
#ifndef LIBPORT_UFLOAT_HH
# define LIBPORT_UFLOAT_HH
# include <libport/config.h>
# include <float.h>
# include <exception>
/*-----------------.
| Ufloat support. |
`-----------------*/
# ifdef LIBPORT_URBI_UFLOAT_FLOAT
namesp... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: matlab/include/mexplus_eos_types.hpp
*
* Copyright 2016 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* Copyright (c) 2015 Kohei Yoshida
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and asso... |
<commit_before>/**
* \file
*/
#include <rleahylib/rleahylib.hpp>
#include <client.hpp>
#include <packet.hpp>
#include <functional>
namespace MCPP {
/**
* Encapsulates information about a packet
* being received from a client.
*/
class ReceiveEvent {
public:
/**
* The client from whi... |
<commit_before>#include "testing/testing.hpp"
#include "routing_common/car_model_coefs.hpp"
#include "routing_common/maxspeed_conversion.hpp"
#include "routing_common/vehicle_model.hpp"
#include "indexer/classificator.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/feature.hpp"
#include "platform/... |
<commit_before>/*
* 2013+ Copyright (c) Andrey Kashin <kashin.andrej@gmail.com>
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, o... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/**
* @file llnamelistctrl.cpp
* @brief A list of names, automatically refreshed from name cache.
*
* $LicenseInfo:firstyear=2003&license=viewergpl$
*
* Copyright (c) 2003-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided... |
<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 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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attribute_writer_factory.h"
#include "emptysearchview.h"
#include "fast_access_doc_subdb.h"
#include "fast_access_document_retriever.h"
#include "document_subdb_initializer.h"
#include "rec... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2012. All rights reserved
*/
#ifndef _Stroika_Foundation_Containers_Tally_Array_inl_
#define _Stroika_Foundation_Containers_Tally_Array_inl_ 1
/*
********************************************************************************
*************************... |
<commit_before>// Copyright Microsoft Corporation
// Copyright Oberon microsystems, Inc
// Copyright GHI Electronics, 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://... |
<commit_before>/*
Copyright (C) 2009-2011 qiuu
Copyright (C) 2016 Clownacy
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at you... |
<commit_before>#ifndef _SENSOR_NODE_
#define _SENSOR_NODE_
#include <Homie.h>
#include "BME280_Impl.hpp"
#include "DHTxx_Impl.hpp"
#include "SHT30_Impl.hpp"
class Sensor {
public:
Sensor();
virtual ~Sensor();
void setup();
bool publish();
private:
// taken from adafruit DHT library
float... |
<commit_before>
#include "include/Shapes.h"
double sumOfArea(const std::vector<Shape *> & shapes) {
double total =0;
for (Shape *shapePoint: shapes)
total += shapePoint->area();
return total;
}
double sumOfPerimeter(const std::vector<Shape *> & shapes){
double total = 0;
for (Shape *... |
<commit_before>/*
* Copyright 2015-present Facebook, 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 appl... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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>// trance escape_sequence.hpp - Generic Escape Sequence Manipulator
//
// Copyright (c) 2011 - 2011 Kohei Takahashi (Flast)
//
// 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 Softwar... |
<commit_before>#include <ROOT/RField.hxx>
#include "gtest/gtest.h"
#include "CustomStruct.hxx"
using RFieldBase = ROOT::Experimental::Detail::RFieldBase;
TEST(RNTuple, TypeName)
{
EXPECT_STREQ("float", ROOT::Experimental::RField<float>::TypeName().c_str());
EXPECT_STREQ("std::vector<std::string>", ROOT::Exper... |
<commit_before>
// Code partially copyright Edd Dawson 2007
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to u... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013 winlin
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>//===- llvm/unittest/ADT/DeltaAlgorithmTest.cpp ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- unittest/Support/YAMLParserTest ------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>
#include <benchmark/benchmark.h>
#include <glkernel/Kernel.h>
#include <glkernel/sample.h>
static void BM_possion_quad(benchmark::State& state) {
auto dkernel = glkernel::dkernel2{state.range(0), state.range(0)};
for (auto _ : state)
glkernel::sample::poisson_square(dkernel);
sta... |
<commit_before>#include "ncv.h"
#include "core/clamp.h"
#include "core/timer.h"
#include "core/logger.h"
#include "model/conv_network.h"
#include <boost/program_options.hpp>
int main(int argc, char *argv[])
{
ncv::init();
using namespace ncv;
// parse the command line
boost::program_o... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person obta... |
<commit_before>/** @file mixed_logit.test.cc
*
* A "stress" test driver for mixed logit.
*
* @author Dongryeol Lee (dongryel@cc.gatech.edu)
*/
// for BOOST testing
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <numeric>
#include <time.h>
#include "core/table/table.h"
#include "core/tree/... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/latch_... |
<commit_before>#include "Wren++.h"
#include <cstdlib> // for malloc
#include <cstring> // for strcmp, memcpy
#include <cassert>
#include <iostream>
namespace
{
struct BoundState
{
std::unordered_map< std::size_t, WrenForeignMethodFn > methods{};
std::unordered_map< std::size_t, WrenForeignClassMethods > cla... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPointSet.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
<commit_before>/****************************************************************************
*
* Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima).
* Copyright (c) 2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/isteps/istep08/call_proc_check_secondary_sbe_seeprom_c... |
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/browser/application_tizen.h"
#include <set>
#include <string>
#include <vector>
#include "content/public/bro... |
<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>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>#include "Piezas.h"
#include <vector>
/** CLASS Piezas
* Class for representing a Piezas vertical board, which is roughly based
* on the game "Connect Four" where pieces are placed in a column and
* fall to the bottom of the column, or on top of other pieces already in
* that column. For an illustra... |
<commit_before> #include <gtest/gtest.h>
#include <exception>
#include <algorithm>
#include <vector>
using std::vector ;
#include <fstream>
using std::ofstream ;
#include <string>
using std::string ;
#include <sofa/helper/system/FileMonitor.h>
using sofa::helper::system::FileEventListener ;
using sofa::helper::syst... |
<commit_before>// Copyright 2016-2019 Chris Conway (Koderz). All Rights Reserved.
#include "RuntimeMeshStaticMeshConverter.h"
#include "EngineGlobals.h"
#include "Engine/StaticMesh.h"
#include "PhysicsEngine/BodySetup.h"
int32 URuntimeMeshStaticMeshConverter::CopyVertexOrGetIndex(const FStaticMeshLODResources& LO... |
<commit_before>/*
** Copyright 2014 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed i... |
<commit_before><commit_msg>Update sample for latest changes.<commit_after><|endoftext|> |
<commit_before><commit_msg>MS:<commit_after><|endoftext|> |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: SimpleOptimizationExample.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modelin... |
<commit_before>/**
* @file Result.hpp
* @author Nicolas Di Prima <nicolas@di-prima.fr>
* @date 2016/05/22
* @copyright 2016, Nicolas Di Prima. 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) 2005, Thorvald Natvig <thorvald@natvig.com>
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 copyrig... |
<commit_before>/*************************************************************************
*
* $RCSfile: MDatabaseMetaDataHelper.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-03-17 10:42:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the... |
<commit_before>// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------... |
<commit_before><commit_msg>Parse delegate options in a separate function<commit_after><|endoftext|> |
<commit_before>/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation w... |
<commit_before>/*
*
* Copyright 2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#include <thread>
#include <memory>
#include "Daemon.h"
#include "Config.h"
#include "Log.h"
#include "Base.h"
#include "version.h"
#include "Transports.h"
#include "NTCPSession.h"
#include "RouterInfo.h"
#include "RouterContext.h"
#include "Tunnel.h"
#include "NetDb.h"
#include "Garlic.h"
#include "ut... |
<commit_before>// Copyright (c) 2021 by Robert Bosch GmbH. 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
//
// ... |
<commit_before>#include <stdio.h>
#include <iostream>
#include "MatrixStore.hpp"
int main(){
class MatrixStore<double> MatA(3, 3); MatA.Zeros();
class MatrixStore<double> MatB(3, 3); MatB.Zeros();
for(unsigned int q=0; q<MatA.ColNum; q++){
for(unsigned int p=0; p<MatA.RowNum; p++){
MatA(p, q) = (... |
<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-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to a... |
<commit_before>/*
Source File : PDFParserTokenizer.cpp
Copyright 2011 Gal Kahana PDFWriter
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/LIC... |
<commit_before>/**
* @file
*
* @ingroup pwg2_forward_scripts
*/
/**
* Run first pass of the analysis - that is read in ESD and produce AOD
*
* @param esddir ESD input directory. Any file matching the pattern
* *AliESDs*.root are added to the chain
* @param nEvents Number of events ... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "updateoperation.h"
#include <vespa/document/base/exceptions.h>
#include <vespa/document/update/documentupdate.h>
#include <cassert>
#include <vespa/log/log.h>
LOG_SETUP(".prot... |
<commit_before>/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include "testing/gunit.h"
#include <base/logging.h>
#include <io/event_manager.h>
#include <io/test/event_manager_test.h>
#include <tbb/task.h>
#include <base/task.h>
#include <cmn/agent_cmn.h>
#include "cf... |
<commit_before>#include "ngraph.h"
#include <cstdlib>
#include <stdint.h>
#include <iostream>
#include <PCU.h>
namespace agi {
Ngraph::Ngraph() {
isHyperGraph=false;
num_global_verts=0;
num_local_verts=0;
num_ghost_verts=0;
num_types=0;
local_weights=NULL;
local_coords=NULL;
for (int i=0;i<MAX_TYPES... |
<commit_before>/// \file ROOT/THistDrawingOpts.h
/// \ingroup HistDraw ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-09-04
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/*******************************************... |
<commit_before>#include "singletons/ircmanager.hpp"
#include "asyncexec.hpp"
#include "channel.hpp"
#include "debug/log.hpp"
#include "messages/messageparseargs.hpp"
#include "singletons/accountmanager.hpp"
#include "singletons/channelmanager.hpp"
#include "singletons/emotemanager.hpp"
#include "singletons/helper/ircme... |
<commit_before>#include <limits>
#include <boost/foreach.hpp>
#include "BasicOffense122.hpp"
using namespace std;
using namespace Geometry2d;
REGISTER_PLAY_CATEGORY(Gameplay::Plays::BasicOffense122, "Playing")
namespace Gameplay
{
namespace Plays
{
REGISTER_CONFIGURABLE(BasicOffense122)
}
}
ConfigDouble *Gamep... |
<commit_before>/**
* @file
* @author Jason Lingle
* @date 2012.02.04
* @brief Implementation of NetworkConnection class
*/
#include <iostream>
#include <cstdlib>
#include <cassert>
#include <algorithm>
#include <SDL.h>
#include "network_connection.hxx"
#include "network_assembly.hxx"
#include "network_geraet.hx... |
<commit_before>//
// Copyright (c) 2012 Kim Walisch, <kim.walisch@gmail.com>.
// All rights reserved.
//
// This file is part of primesieve.
// Homepage: http://primesieve.googlecode.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
<commit_before>#include "earth_shape.h"
#include "himan_common.h"
using namespace himan;
earth_shape::earth_shape() : itsA(MissingDouble()), itsB(MissingDouble())
{
}
earth_shape::earth_shape(double r) : itsA(r), itsB(r)
{
}
earth_shape::earth_shape(double theA, double theB) : itsA(theA), itsB(theB)
{
}
bool earth... |
<commit_before>// @(#)root/build:$Name: $:$Id: mainroot.cxx,v 1.2 2006/03/21 00:21:00 rdm Exp $
// Author: Axel Naumann 21/03/06
/*************************************************************************
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include <cstdio>
#include <cstring>
#include <mosquittopp.h>
void print_error(const char *topic, char **topics, int topic_count)
{
int i;
printf("TOPIC: %s\n", topic);
printf("TOKENS: ", topic);
for(i=0; i<topic_count; i++){
printf("%s", topics[i]);
if(i+1<topic_count){
printf("/");
}
}
... |
<commit_before>// Author: Enrico Guiraud, Danilo Piparo CERN 12/2016
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/** \file call_main.cpp
*
* Defines the "vg call" subcommand, which calls variation from an augmented graph
*/
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <list>
#include <fstream>
#include "subcommand.hpp"
#include "../path.hpp"
#include "../graph_caller.hpp"
#include "../xg.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: previewadapter.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 23:47:32 $
*
* The Contents of this file are... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>#include "Component.h"
#include "Simulation.h"
#include "MooseApp.h"
unsigned int Component::subdomain_ids = 0;
unsigned int Component::bc_ids = 0;
template<>
InputParameters validParams<Component>()
{
InputParameters params = validParams<R7Object>();
params.addPrivateParam<Simulation *>("_sim");
... |
<commit_before>#include <itkMesh.h>
#include <itkTransformMeshFilter.h>
#include <itkLBFGSOptimizer.h>
#include "itkGMMPointSetToPointSetRegistrationMethod.h"
#include "itkPointSetPropertiesCalculator.h"
#include "itkInitializeTransform.h"
#include "itkInitializeMetric.h"
#include "itkPointSetToPointSetMetrics.h"
#i... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; version 3 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; ... |
<commit_before>#include "fplll.h"
FPLLL_BEGIN_NAMESPACE
//#define DEBUG_PRUNER_OPTIMIZE
#define NUM_OPTIMIZATION_TOURS 3
template <class FT> void Pruner<FT>::optimize_coefficients_cost_vary_prob(/*io*/ vector<double> &pr)
{
FT old_c0, old_c1, new_c, min_c;
vec b(n), best_b(n);
// step 1 use half coefficients... |
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to 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)
#include <boost/python.hpp>
#include <libtorrent/session.hpp>
using namespace boost::p... |
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to 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)
#include <boost/python.hpp>
#include <libtorrent/session.hpp>
using namespace boost::p... |
<commit_before><commit_msg>Add session_settings::peer_tos to bindings<commit_after><|endoftext|> |
<commit_before>#include <rw.h>
#include <skeleton.h>
#include "subrast.h"
rw::Camera *Camera;
rw::Camera *SubCameras[4];
void
CameraSetViewWindow(rw::Camera *camera, float width, float height, float vw)
{
rw::V2d viewWindow;
// TODO: aspect ratio when fullscreen
if(width > height){
viewWindow.x = vw;
viewWin... |
<commit_before>#include "osg/Uniform"
#include "osgDB/Registry"
#include "osgDB/Input"
#include "osgDB/Output"
using namespace osg;
using namespace osgDB;
using namespace std;
// forward declare functions to use later.
bool Uniform_readLocalData(Object& obj, Input& fr);
bool Uniform_writeLocalData(const Object& obj,... |
<commit_before>/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2013 Adam Roben <adam@roben.org>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser/inspectable_web_contents_impl.h"
#i... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013, Image Engine Design 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:... |
<commit_before>/**
* \ file InSndFilter.cpp
*/
#include <ATK/IO/libsndfile/InSndFileFilter.h>
#include <ATK/IO/InWavFilter.h>
#include <ATK/config.h>
#include <ATK/Tools/VolumeFilter.h>
#include <ATK/Tools/SumFilter.h>
#include <ATK/Mock/TriangleCheckerFilter.h>
#define BOOST_TEST_NO_MAIN
#include <boost/test/un... |
<commit_before>///////////////////////////////////////////////////////////////////////
// File: lstmtraining.cpp
// Description: Training program for LSTM-based networks.
// Author: Ray Smith
// Created: Fri May 03 11:05:06 PST 2013
//
// (C) Copyright 2013, Google Inc.
// Licensed under the Apache Lice... |
<commit_before>/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include <iostream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <queue>
#include <qi/log.hpp>
#include <cerrno>
#include <boost/asio.hpp>
#include <boost/lexical_cast.hpp>
#include "transportserver.hpp... |
<commit_before>/*
Copyright (C) 2013 Martin Klapetek <mklapetek@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your opt... |
<commit_before>#include "query_result_widget.hh"
using namespace GSQLiteui;
QueryResultsWidget::QueryResultsWidget(statement_t&& s)
: Glib::ObjectBase("gsqliteui_QueryResultsWidget")
, Gtk::TreeView()
, statement(std::move(s))
{
auto cols = this->statement->columns();
for(int i = 0; i < cols; i +=... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>#include "random_graph.hpp"
namespace vg {
namespace unittest {
VG randomGraph(int64_t seqSize, int64_t variantLen,
int64_t variantCount){
//Create a random graph for a sequence of length seqSize
//variantLen is the mean length of a larger variation and variationCount
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.