text stringlengths 54 60.6k |
|---|
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2012 Razor team
* Authors:
* Alexander Sokoloff <[email protected]>
*
* This program or library is free software; you can redistribute it
* and/or modify ... |
<commit_before>#include "vtkConditionVariable.h"
#include "vtkMultiThreader.h"
#include <stdlib.h>
// For vtkSleep
#include "vtkWindows.h"
#include <ctype.h>
#include <time.h>
// Cross platform sleep (horked from vtkGeoTerrain.cxx)
inline void vtkSleep( double duration )
{
duration = duration; // avoid warnings
... |
<commit_before>/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<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>#include <iostream>
int main(int argc, char* argv[])
{
}
<commit_msg>Random numbers example compiles and runs<commit_after>#include <iostream>
#include <random>
#include <functional>
int main(int argc, char* argv[])
{
std::uniform_int_distribution<int> distribution(0,99);
std::mt19937 engine;
auto ... |
<commit_before>// bslmf_assert.t.cpp -*-C++-*-
#include <bslmf_assert.h>
#include <bsls_bsltestutil.h>
#include <bsls_compilerfeatures.h>
#include <bsls_platform.h>
#include <stdio.h> // printf
#include <stdlib.h> // atoi
//==========================================... |
<commit_before>// Copyright (c) 2013, Matthew Harvey. All rights reserved.
#ifndef GUARD_report_panel_hpp_8629163596140763
#define GUARD_report_panel_hpp_8629163596140763
#include "entry.hpp"
#include <boost/noncopyable.hpp>
#include <wx/combobox.h>
#include <wx/button.h>
#include <wx/event.h>
#include <wx/gbsizer.h>... |
<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-2006 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
This... |
<commit_before>#include "DDR.h"
#include "VirtualMemory.h"
#include "sim/config.h"
#include "sim/log2.h"
#include <sstream>
#include <limits>
#include <cstdio>
namespace Simulator
{
template <typename T>
static T GET_BITS(const T& value, unsigned int offset, unsigned int size)
{
return (value >> offset) & ((T(1) ... |
<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 <limits>
#include "chrome/browser/jankometer.h"
#include "base/basictypes.h"
#include "base/command_line.h"
#include "base/m... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>
#include <QDebug>
#include <QProcess>
#include <comboboxconfig.h>
PacmanPlugin::PacmanPlugin(QObject *parent) :
PackageManagerPlugin(parent)
{
}
void PacmanPlugin::initialize()
{
_settings = createSyncedSettings(this);
}
QList<PacmanPlugin::FilterInfo> PacmanPlugin::extraFilters()
{
QList<Pacma... |
<commit_before>#include <exotica/Exotica.h>
#undef NDEBUG
#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <exotica_core_task_maps/CoM.h>
#include <exotica_core_task_maps/collision_distance.h>
#include <exotica_core_task_maps/continuous_collision.h>
#include <exotica_core_t... |
<commit_before>/**
* @file precipitation.cpp
*
* @date Jan 28, 2012
* @author partio
*/
#include "precipitation.h"
#include <iostream>
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#define HIMAN_AUXILIARY_INCLUDE
#include "fetcher.h"
#include "writer.h"
#include "neon... |
<commit_before>#pragma once
#include "blackhole/logger.hpp"
namespace blackhole {
template<class Logger, class Mutex = std::mutex>
class synchronized {
public:
typedef Logger logger_type;
typedef Mutex mutex_type;
private:
logger_type logger;
mutable mutex_type mutex;
public:
synchronized() {}
... |
<commit_before>#ifndef LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_
#define LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/meta.h>
#include <LightGBM/dataset.h>
#include <LightGBM/tree.h>
#include <LightGBM/tree_learner.h>
#include <cstring>
namespace LightGBM {
/*!
* \br... |
<commit_before>#include <wayfire/plugin.hpp>
#include <wayfire/debug.hpp>
#include <wayfire/output.hpp>
#include <wayfire/core.hpp>
#include <wayfire/view.hpp>
#include <wayfire/workspace-manager.hpp>
#include <wayfire/render-manager.hpp>
#include <algorithm>
#include <cmath>
#include <linux/input-event-codes.h>
#inclu... |
<commit_before>/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <[email protected]>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
... |
<commit_before>/* Copyright 2016 Streampunk Media 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 required by applicable law or ag... |
<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/test/test_timeouts.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/string_number_conversio... |
<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 <string>
#include "base/file_path.h"
#include "base/waitable_event.h"
#include "chrome_frame/cfproxy_private.h"
#include "chro... |
<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_frame/module_utils.h"
#include <aclapi.h>
#include <atlbase.h>
#include <atlsecurity.h>
#include <sddl.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 "ui/webui/web_ui_util.h"
#include <vector>
#include "base/base64.h"
#include "base/debug/trace_event.h"
#include "base/i18n/... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDataSetTriangleFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detai... |
<commit_before>/*
* Author(s):
* - Cedric Gestes <[email protected]>
* - Chris Kilner <[email protected]>
*
* Copyright (C) 2010 Aldebaran Robotics
*/
#include <qi/log.hpp>
#include "src/messaging/master_client.hpp"
#include <qimessaging/serialization.hpp>
#include "src/messaging/network/... |
<commit_before>#include "EnvironmentNetworking.h"
#include <time.h>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <strsafe.h>
#else
#include <sys/socket.h>
#include <arpa/inet.h>
#include <time.h... |
<commit_before>// ------------------------------------------------------------------
// pion-platform: a C++ framework for building lightweight HTTP interfaces
// ------------------------------------------------------------------
// Copyright (C) 2007 Atomic Labs, Inc. (http://www.atomiclabs.com)
//
// Distributed und... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// File: NekManager.hpp
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, I... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, Hamburg University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
<commit_before>#include "P3dSymLoader.h"
#include "FilepathHelper.h"
#include "JsonSerializer.h"
#include "Exception.h"
#include "SymbolFactory.h"
#include <sm_const.h>
#include <ps_3d.h>
#include <sprite2/Particle3dSymbol.h>
#include <fstream>
namespace gum
{
void P3dSymLoader::Store(s2::Particle3dSymbol* sym) con... |
<commit_before>/**
* @file device_properties.hxx
*
* @brief
*
*
*/
#pragma once
#include <gunrock/util/meta.hxx>
namespace gunrock {
namespace util {
/**
* @namespace properties
* CUDA device properties namespace.
*/
namespace properties {}
}
}<commit_msg>:wastebasket: Trashing my ideas for device_propert... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_EVALUATION_INTERFACE_HH
#define DUNE_GDT_EVALUATION_INTERFACE_HH
#incl... |
<commit_before>#include <config.h>
#include <config.h>
#include <dune/stuff/test/test_common.hh>
#include <gtest.h>
#include <string>
#include <array>
#include <initializer_list>
#include <vector>
#include <dune/stuff/common/fixed_map.hh>
#include <dune/stuff/common/string.hh>
#include <dune/stuff/common/ranges.hh>
... |
<commit_before>#ifndef DUNE_STUFF_GRID_PROVIDER_INTERFACE_HH
#define DUNE_STUFF_GRID_PROVIDER_INTERFACE_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#if HAVE_DUNE_GRID
#include <dune/common/fvector.hh>
#include <dune/common/shared_ptr.hh>
#inc... |
<commit_before>#include "json_ui.hh"
#include "containers.hh"
#include "display_buffer.hh"
#include "keys.hh"
#include "file.hh"
#include "event_manager.hh"
#include "value.hh"
#include "unit_tests.hh"
#include <utility>
#include <unistd.h>
namespace Kakoune
{
template<typename T>
String to_json(ArrayView<const T>... |
<commit_before>#include "aerial_autonomy/controller_hardware_connectors/visual_servoing_controller_drone_connector.h"
PositionYaw VisualServoingControllerDroneConnector::extractSensorData() {
parsernode::common::quaddata quad_data;
drone_hardware_.getquaddata(quad_data);
tf::Vector3 tracking_position = getTracki... |
<commit_before>// Copyright 2021 The Cross-Media Measurement 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 req... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, 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 a... |
<commit_before>#include "Gearbox.h"
#define CHECK_EMPTY if(m_hValue.IsEmpty())from(undefined)
namespace Gearbox {
//void ValueList::push(Value that) {
// push(that.operator v8::Handle<v8::Value>());
//}
Value::~Value() {
if(!m_hValue.IsEmpty())
m_hValue.MakeWeak(0, wea... |
<commit_before>// Scintilla source code edit control
/** @file KeyMap.cxx
** Defines a mapping between keystrokes and commands.
**/
// Copyright 1998-2003 by Neil Hodgson <[email protected]>
// The License.txt file describes the conditions under which this software may be distributed.
#include "Platform.h"
#inclu... |
<commit_before>// Scintilla source code edit control
/** @file LexCPP.cxx
** Lexer for C++, C, Java, and Javascript.
**/
// Copyright 1998-2002 by Neil Hodgson <[email protected]>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
... |
<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/chromeos/login/wizard_accessibility_helper.h"
#include "base/logging.h"
#include "base/stl_util-inl.h"
#inclu... |
<commit_before>// Scintilla source code edit control
/** @file LexCSS.cxx
** Lexer for Cascade Style Sheets
** Written by Jakub Vrna
**/
// Copyright 1998-2002 by Neil Hodgson <[email protected]>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#in... |
<commit_before>#include "libtiff.hh"
using namespace node;
using namespace v8;
Persistent<FunctionTemplate> TIFFFile::constructor_template;
namespace node {
void TIFFFile::Initialize(Handle<Object> target) {
HandleScope scope;
Local<FunctionTemplate> t = FunctionTemplate::New(TIFFFile::New);
construc... |
<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/password_manager/password_form_data.h"
#include "chrome/browser/sync/sessions/session_state.h"
#include "chrom... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCORO_DETAIL_WIN32_OVERLAPPED_OPERATION_HPP_IN... |
<commit_before>/**
* @file src/Module.cpp
* @date dec. 2015
* @author PhRG - opticalp.fr
*/
/*
Copyright (c) 2015 Ph. Renaud-Goud / Opticalp
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>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/filters/audio_renderer_algorithm_base.h"
#include "base/logging.h"
#include "media/base/buffers.h"
namespace media {
... |
<commit_before>/**
* @file windows_volume_catcher.cpp
* @brief A Windows implementation of volume level control of all audio channels opened by a process.
*
* @cond
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library ... |
<commit_before>#ifndef NETWORKING_H
#define NETWORKING_H
#include <iostream>
#include <set>
#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <strsafe.h>
#else
#include <signal.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/select.h>
... |
<commit_before>/*
* Option.cpp
*
* Created on: 04/05/2011
* User: diego
* Author: Diego Lago <[email protected]>
*/
#include "../include/cli++/Option.hpp"
#include "../include/cli++/OptionDefinition.hpp"
#include "../include/cli++/Exceptions.hpp"
#include "../include/cli++/Utils.hpp"
na... |
<commit_before>/*
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
<commit_before>#pragma once
#include <boost/shared_ptr.hpp>
#include <darc/inbound_data.hpp>
#include <darc/serializer/boost.hpp>
#include <darc/message_packet.hpp>
#include <darc/subscribe_packet.hpp>
#include <darc/peer.hpp>
namespace darc
{
class RemoteDispatcher
{
protected:
// Datastructure stuff, refactor o... |
<commit_before>/**
* \file
* \brief StaticThread class header
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* distribu... |
<commit_before>/**
* \file
* \brief Architecture specific symbols
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* d... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2013 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#ifndef IMPL_CONTAINER_H
#de... |
<commit_before>#ifndef PLANET_BASIC_OPERATION_HPP
#define PLANET_BASIC_OPERATION_HPP
#include <planet/common.hpp>
namespace planet {
class file_entry;
//
// planet core handler
//
class planet_operation {
protected:
static std::vector<char>& data_vector(file_entry& file);
public:
virtual ~planet_operation(... |
<commit_before>//===- include/seec/Trace/TraceFormat.hpp --------------------------- C++ -===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
//... |
<commit_before>#include "Player.h"
#include "Logger.h"
#include "Configuration.h"
Player::Player(double x_, double y_, Sprite* sprite_) :
Entity(x_, y_, sprite_),
vx(0),
vy(0),
speed(15),
maxSpeed(500),
cameraX(0),
cameraY(0),
levelW(0),
levelH(0)
{
this->state = STATE_JUMPING;
... |
<commit_before>/// @file
/// @author Boris Mikic
/// @version 2.5
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
#include <hltypes/hltypesUtil.h>
#include "Buffer.h"
... |
<commit_before>// cpsm - fuzzy path matcher
// Copyright (C) 2015 Jamie Liu
//
// 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
//
// Unle... |
<commit_before>// Copyright (c) 2016 ZZBGames
//
// 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, merg... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/Source.hpp>
#... |
<commit_before>// Copyright 2011 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 require... |
<commit_before>#include "MDPattern.hh"
#include "Elektron.hh"
#include "MDMessages.hh"
#include "helpers.h"
#include "MDParams.hh"
#include "GUI.h"
bool MDPattern::fromSysex(uint8_t *data, uint16_t len) {
if (len != 0xACA - 6) {
// wrong length
return false;
}
uint16_t cksum = 0;
for (int i = 9 - 6... |
<commit_before>/*
* Copyright 2011-2017 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include <bx/uint32_t.h>
#include "imgui/imgui.h"
#include <bgfx/embedded_shader.h>
// embedded shaders
#include "vs_dra... |
<commit_before>// [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
#include <Rmath.h>
#include <vector>
#include <cassert>
#include "vmat.h"
#include "gmat.h"
#include "DataPairs.h"
#include "quadrule.h"
#include "pn.h"
#include "functions.h"
using namespace Rcpp;
using namespace arma;
using namespace std... |
<commit_before>/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
extern "C" {
#include <ovsdb_wrapper.h>
};
#include <cmn/agent.h>
#include <oper/vn.h>
#include <oper/vxlan.h>
#include <oper/physical_device_vn.h>
#include <ovs_tor_agent/tor_agent_init.h>
#include <ovsdb_client.h>
#include <ovsdb... |
<commit_before>/*
Copyright (c) 2013-2018 Ubidots.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,... |
<commit_before>/**
* @file visibility
*/
#include "visibility.h"
#include "forecast_time.h"
#include "level.h"
#include "logger.h"
#include "plugin_factory.h"
#include "util.h"
#include <boost/lexical_cast.hpp>
#include <cmath>
#include "fetcher.h"
#include "hitool.h"
#include "neons.h"
using namespace std;
using ... |
<commit_before><commit_msg>Hrm, it's hard explaining, and indeed thinking about what's going on in here :-) Think this is a better representation.<commit_after><|endoftext|> |
<commit_before>// $Id$
#include <base/logstream.h>
#include <lac/solver_control.h>
/*----------------------- SolverControl ---------------------------------*/
SolverControl::SolverControl (const unsigned int maxiter,
const double tolerance,
const bool log_history,
const bool log_result)
... |
<commit_before>/*
* This file is part of PlantLight application.
*
* 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 <stdio.h>
#include <math.h>
#include "mylib/mymath.hpp"
int main(int argc, char** argv)
{
unsigned long int n;
if (argc!=2 || sscanf(argv[1],"%lu",&n)!=1) {
fprintf(stderr,"Usage:\n%s integration_steps\n\n\n",argv[0]);
}
// Integration limits.
const double global_a=1E-5;
const... |
<commit_before>#include <stdio.h>
#include <math.h>
#include "mylib/mymath.hpp"
int main(int argc, char** argv)
{
unsigned long int n;
if (argc!=2 || sscanf(argv[1],"%lu",&n)!=1) return 1;
// Integration limits.
const double global_a=1E-5;
const double global_b=1;
const double y=integral(integrand, n, ... |
<commit_before>/*
*
* MIT License
*
* Copyright (c) 2016-2018 The Cats 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 ... |
<commit_before>/*******************************************************************************
* Copyright (c) 2015, Jean-David Gadina - www.xs-labs.com
* Distributed under the Boost Software License, Version 1.0.
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, fr... |
<commit_before>#include <set>
#include "Module/Subsequence/Subsequence.hpp"
#include "Tools/Sequence/Sequence.hpp"
namespace aff3ct
{
namespace tools
{
size_t Sequence
::get_n_threads() const
{
return this->n_threads;
}
const std::vector<std::vector<module::Task*>>& Sequence
::get_firsts_tasks() const
{
return thi... |
<commit_before>#include "erlang_v8_drv.h"
Persistent<ObjectTemplate> GlobalFactory::Generate(Vm *vm,
ErlNifEnv *env) {
TRACE("GlobalFactory::Generate\n");
Locker locker(vm->isolate);
TRACE("GlobalFactory::Generate - 1\n");
Isolate::Scope iscope(vm->isolate);
TRACE("GlobalFactory::Generate - 2\n");
Hand... |
<commit_before>#pragma once
#include <array>
#include <cassert>
#include <map>
#include <string>
namespace brynet { namespace net { namespace http {
class HttpQueryParameter final
{
public:
void add(const std::string& k, const std::string& v)
{
if (!mParameter.empty())
{
mParamete... |
<commit_before>#ifndef ITERATOR_BASED_CRC32_H
#define ITERATOR_BASED_CRC32_H
#if defined(__x86_64__) && !defined(__MINGW64__)
#include <cpuid.h>
#endif
#include <boost/crc.hpp> // for boost::crc_32_type
#include <iterator>
namespace osrm
{
namespace contractor
{
class IteratorbasedCRC32
{
public:
bool using_... |
<commit_before>#include "Logger.hpp"
#include <iostream>
#include "stream.hpp"
namespace wrd {
WRD_DEF_THIS(Logger)
typedef std::string string;
typedef wrd::BuildFeature::Config Config;
const wchar* This::getName() const { return "Logger"; }
const Stream& This::operator[](widx n) const { return g... |
<commit_before>/*************************************************************************
*
* $RCSfile: MNameMapper.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: oj $ $Date: 2001-11-26 13:52:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>//(c) 2016 by Authors
//This file is a part of ABruijn program.
//Released under the BSD license (see LICENSE file)
#include "general_polisher.h"
#include "alignment.h"
void GeneralPolisher::polishBubble(Bubble& bubble) const
{
auto optimize = [this] (const std::string& candidate,
const std::ve... |
<commit_before>#include "SpotsScene.h"
// ----------------------------------------------------
void SpotsScene::setup() {
name = "spots scene";
string safeName = name;
ofStringReplace(safeName, " ", "_");
gui.setup(name, safeName+".xml", 20, 20);
gui.add(maxShapesOnScreen.setup("max shapes", 2... |
<commit_before>// Copyright 2016 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 required... |
<commit_before>// Copyright (c) 2006-2008 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 "build/build_config.h"
#include "chrome/browser/browser_list.h"
#include "base/logging.h"
#include "base/message_loop.h... |
<commit_before>/* Copyright 2022 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 "pattern.h"
#include "visitor.h"
#include "choice.h"
#include "seq.h"
#include "repeat.h"
#include "character_set.h"
#include <set>
namespace tree_sitter {
namespace rules {
using std::string;
using std::hash;
using std::make_shared;
using std::set;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bootstrap.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: kz $ $Date: 2006-01-03 12:42:13 $
*
* The Contents of this file are mad... |
<commit_before>// Copyright (c) 2009 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/worker/worker_thread.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/thread_local.h"... |
<commit_before>// Copyright (c) 2009 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 "base/string_util.h"
#include "chrome/browser/worker_host/worker_service.h"
#include "chrome/test/automation/browser_proxy.h"
... |
<commit_before>// This pass performs some transformations to enable parallel code
// generation.
#include "astutil.h"
#include "expr.h"
#include "passes.h"
#include "stmt.h"
#include "symbol.h"
#include "stringutil.h"
#include "driver.h"
#include "files.h"
// Move begin blocks into their own functions so that it can... |
<commit_before>#include "peel_outer_hull_layers.h"
#include "outer_hull.h"
#include "writePLY.h"
#include <vector>
#include <iostream>
#define IGL_PEEL_OUTER_HULL_LAYERS_DEBUG
#ifdef IGL_PEEL_OUTER_HULL_LAYERS_DEBUG
#include "STR.h"
#endif
template <
typename DerivedV,
typename DerivedF,
typename Derivedodd,
t... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 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>/*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
*/
#ifndef __SOTVECTORTOMATRIX_HH
#define __SOTVECTORTOMATRIX_HH
#include <dynamic-graph/all-signals.h>
#include <dynamic-graph/entity.h>
#include <sot/core/matrix-geometry.hh>
/* Matrix */
#include <dynamic-graph/linear... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.