text stringlengths 54 60.6k |
|---|
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
* Copyright (c) 2016-2017 metaverse core developers (see MVS-AUTHORS)
*
* This file is part of metaverse-explorer.
*
* metaverse-explorer is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero... |
<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 mhome.
**
** If you have questions regarding the use o... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2017 Axel Waggershauser
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 of the License, o... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
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 of the License, or (... |
<commit_before>/// \file
/// \ingroup tutorial_tdataframe
/// \notebook -nodraw
/// This tutorial shows how to create a dataset from scratch with TDataFrame
/// \macro_code
///
/// \date June 2017
/// \author Danilo Piparo
void tdf008_createDataSetFromScratch()
{
// We create an empty data frame of 100 entries
R... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#include "particle_system.h"
#include "core/blob.h"
#include "core/crc32.h"
#include "core/math_utils.h"
#include "core/resource_manager.h"
#include "core/resource_manager_base.h"
#include "renderer/material.h"
#include "universe/universe.h"
namespace Lumix
{
static ParticleEmitter::ModuleBase* creat... |
<commit_before>// Edge.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "Edge.h"
#include "Face.h"
#include "Vertex.h"
#include "Solid.h"
#include "../interface/Tool.h"
#include "HeeksConfig.h"
#include "Gripper.h"
#in... |
<commit_before>///
/// @file l1d_cache_size.cpp
/// @brief Get the L1 cache size in kilobytes on Windows
/// and most Unix-like operating systems.
///
/// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License.
///
#include <cstdlib>
#if defined(_WIN3... |
<commit_before><commit_msg>[routing] Updated comments in route.cpp<commit_after><|endoftext|> |
<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>#include "acmacs-base/stream.hh"
#include "acmacs-base/enumerate.hh"
#include "aa-at-pos-draw.hh"
#include "tree.hh"
#include "tree-iterate.hh"
// ----------------------------------------------------------------------
void AAAtPosDraw::prepare()
{
if (mSettings.width > 0) {
if (!mSettings.p... |
<commit_before>#include <csapex/msg/io.h>
#include <csapex/model/node.h>
#include <csapex/model/node_modifier.h>
#include <csapex/model/variadic_io.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex/msg/generic_vector_message.hpp>
#include <csapex_ml/featur... |
<commit_before>// $Id: RegularData3D_test.C,v 1.1 2000/12/05 12:20:58 amoll Exp $
#include <BALL/CONCEPT/classTest.h>
#include <BALL/DATATYPE/regularData3D.h>
START_TEST(RegularData3D, "$Id: RegularData3D_test.C,v 1.1 2000/12/05 12:20:58 amoll Exp $")
/////////////////////////////////////////////////////////////
///... |
<commit_before>#include <boost/python.hpp>
#include "ModelInterface.h"
#include "pyToCppModelInterfaceCache.h"
#include <boost/python/stl_iterator.hpp>
#include <iostream>
#include <stdexcept>
#include <boost/python/numeric.hpp>
#include <boost/python/tuple.hpp>
#include <boost/python/module.hpp>
#include <boost/pytho... |
<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 <vector>
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/stringprintf.h"
#include "chrome/browser/exte... |
<commit_before>// Copyright 2014 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/extensions/proxy_overridden_bubble_controller.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/ext... |
<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/profiles/off_the_record_profile_impl.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pre... |
<commit_before>/***********************************************************************
filename: RendererBase.cpp
created: Tue Apr 30 2013
authors: Paul D Turner <paul@cegui.org.uk>
Lukas E Meindl
*************************************************************************/
/**********... |
<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 <oleacc.h>
#include "app/l10n_util.h"
#include "base/scoped_comptr_win.h"
#include "chrome/browser/browser.h"
#include "chrom... |
<commit_before>#ifndef ALEPH_SIMPLEX_HH__
#define ALEPH_SIMPLEX_HH__
#include <algorithm>
#include <initializer_list>
#include <iosfwd>
#include <stdexcept>
#include <vector>
#include <boost/functional/hash.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/filter_iterator.hpp>
namespace a... |
<commit_before>/*
* Copyright 2012 BrewPi/Elco Jacobs.
*
* This file is part of BrewPi.
*
* BrewPi 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 3 of the License, or
* (at your option... |
<commit_before>//csvmap.hpp
//Copyright (c) 2019 mmYYmmdd
//WINDOWS ONLY
#pragma once
#include <sstream>
#include <stringapiset.h>
//CSV}bv
//[U[g mymd::map_csv
namespace mymd {
inline
void code_convert_append(std::wstring& target, char const* begin, char const* end, UINT codepage)
{
if (begin < end)
{
... |
<commit_before>#include "Grid.h"
#include <algorithm>
Grid::Grid(int size, float cellSize, glm::vec3 origin)
: m_data(std::vector<std::vector<Metaball*>>(size * size * size))
, m_size(size)
, m_cellSize(cellSize)
, m_frontBottomLeft(origin)
{
for (auto& it : m_data)
{
it = std::vector<Metaball*>();
}
}
Grid::~... |
<commit_before>#include "WifiHandler.h"
// initialize static members
WifiState WifiHandler::_targetState = DISCONNECTED;
WifiState WifiHandler::_currentState = DISCONNECTED;
WiFiServer WifiHandler::_server;
IPAddress WifiHandler::_ip;
IPAddress WifiHandler::_gateway;
IPAddress WifiHandler::_subnet;
uint16_t WifiHa... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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, either version 3 of the License, or
// (at your ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ScatterChartType.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 13:20:31 $
*
* The Contents of this file ... |
<commit_before>#include "RiggedDrawable.h"
#include <glbinding/gl/enum.h>
#include <globjects/Buffer.h>
#include <globjects/VertexArray.h>
#include <globjects/VertexAttributeBinding.h>
#include <gloperate/primitives/PolygonalGeometry.h>
using namespace gl;
RiggedDrawable::RiggedDrawable(const gloperate::PolygonalG... |
<commit_before>/*
* SerialTopLvlProtocoll.cpp
*
* Created on: 18.05.2017
* Author: aca619
*/
#include <cstring>
#include "SerialProtocoll.h"
#include "ITopLvlProtocoll.h"
#include "../../Tests/Serial/SerialTestStub.h"
#include <string.h>
#include <Logger.h>
#include <Logscope.h>
#include "PuckSignal.h"
us... |
<commit_before>/**
* @file block_mapped.hxx
* @author Muhammad Osama (mosama@ucdavis.edu)
* @brief
* @version 0.1
* @date 2020-10-20
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <gunrock/util/math.hxx>
#include <gunrock/cuda/cuda.hxx>
#include <gunrock/framework/operators/configs.hxx>
#incl... |
<commit_before><commit_msg>fix potential deadlocks in Node<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */
/* vim:set et ai sw=4 ts=4 sts=4: tw=80 cino="(0,W2s,i2s,t0,l1,:0" */
#include "batterywidget.h"
#include "batteryimage.h"
#include "batterybusinesslogic.h"
#include "dcpbattery.h"
#include "slidercontainer.h"
#include "timeconta... |
<commit_before>/**
* @file block_mapped.hxx
* @author Muhammad Osama (mosama@ucdavis.edu)
* @brief
* @version 0.1
* @date 2020-10-20
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <gunrock/util/math.hxx>
#include <gunrock/cuda/cuda.hxx>
#include <gunrock/framework/operators/configs.hxx>
#incl... |
<commit_before>
#include <iostream>
#include <glbinding/gl/gl.h>
#include <globjects/logging.h>
#include <common/Window.h>
#include <common/ContextFormat.h>
#include <common/Context.h>
#include <common/WindowEventHandler.h>
#include <common/events.h>
using namespace gl;
using namespace globjects;
... |
<commit_before>// Copyright (c) 2011 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/touch_login_view.h"
#include "chrome/browser/chromeos/status/status_area_view.h"
#include "chr... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 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>#include <string>
#include "Main.h"
using namespace std;
int main(string userAccountIn, string availableTicketIn, string dailyTransaction, string userAccountOut, string availableTicketOut)
{
return 0;
}
<commit_msg>TODO: We need to think how "int main()" is going to parse command line argu... |
<commit_before>/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>// Copyright 2018 Open Source Robotics Foundation, 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 re... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as publi... |
<commit_before>#include "WMSGridDataLayer.h"
#include <boost/move/make_unique.hpp>
#include <grid-files/common/GeneralFunctions.h>
#include <grid-files/identification/GridDef.h>
#include <macgyver/Exception.h>
namespace SmartMet
{
namespace Plugin
{
namespace WMS
{
std::vector<boost::posix_time::ptime> get_ptime_vecto... |
<commit_before>/* writerperfect:
*
* Copyright (C) 2002 Jon K Hellan (hellan@acm.org)
* Copyright (C) 2002-2004 William Lachance (wrlach@gmail.com)
* Copyright (C) 2003-2004 Net Integration Technologies (http://www.net-itech.com)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
*
* This progr... |
<commit_before>/**
* @file posixHelperProxy.cc
* @author Bartek Kryza
* @copyright (C) 2017 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "posixHelper.h"
#include <boost/make_shared.hpp>
#include <boost/python.hpp>
#include <boost/python/extra... |
<commit_before><commit_msg>Make it so that clicking the "Get Themes" link in the options dialog box activates the browser window that the themes gallery is opened in.<commit_after><|endoftext|> |
<commit_before>
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include "qltgplogger.h"
QltGpLogger::QltGpLogger(Mode mode):
mode_(mode),
lenColumn_(0)
{
}
bool QltGpLogger::addColumn(QStringList column, QString label)
{
if (column.size() == 0)
{
errorString_ = "Error! #1";
... |
<commit_before><commit_msg>Use current dir as working directory if %TEMP% directory doesnt work.<commit_after><|endoftext|> |
<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/service/net/service_url_request_context.h"
#include "chrome/service/service_process.h"
#include "net/base/cookie_mons... |
<commit_before>/* Copyright 2017 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>/*
* SeeedRFID.cpp
* A library for RFID moudle.
*
* Copyright (c) 2008-2014 seeed technology inc.
* Author : Ye Xiaobo(yexiaobo@seeedstudio.com)
* Create Time: 2014/2/20
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* o... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NetChartTypeTemplate.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 13:19:40 $
*
* The Contents of this f... |
<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/chrome_browser_main_extra_parts_ash.h"
#include "ash/accelerators/accelerator_controller.h"
#include "ash/ash... |
<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/importer/in_process_importer_bridge.h"
#include "base/bind.h"
#include "base/utf_string_conversions.h"
#inclu... |
<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.
//
// To know more about the algorithm used and the original code which this is
// based of, see
// https://wiki.corp.google.com/twiki/b... |
<commit_before>// Copyright (c) 2011 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/sync/engine/process_updates_command.h"
#include <vector>
#include "base/basictypes.h"
#include "base/locatio... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fudraw.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 21:28:12 $
*
* The Contents of this file are made av... |
<commit_before>// Copyright 2014 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/render_view_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#includ... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// SneezyMUD - All rights reserved, SneezyMUD Coding Team
//
// $Log: task_smythe.cc,v $
// Revision 5.8 2002/03/14 15:43:13 jesus
// *** empty log message ***
//
// Revision 5.7 2002/03/14 15:30:38 jesus
// *** empty log m... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
* Copyright (C) 2005 Refractions Research Inc.
*
* This is free software; you can redistribute and/... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "atomic_entry_ref.h"
#include "buffer_type.hpp"
#include <cassert>
#include <cmath>
namespace vespalib::datastore {
namespace {
constexpr float DEFAULT_ALLOC_GROW_FACTOR = 0.2;
}
void
B... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with th... |
<commit_before>#include "BatteryProfile.hpp"
#include <algorithm>
using namespace std;
// 2008,2011 battery: http://www.thunderpowerrc.com/Products/1350ProlitePlusPower/TP1350-4SP25_2
// 2015 battery: http://www.hobbyking.com/%E2%80%A6/__9942__ZIPPY_Flightmax_2200mAh_3S1P_40C.html
//
// based on the li-po dischar... |
<commit_before>// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h>
#endif
// Include GLFW
#ifndef __GLFW3_H_INCLUDED
#define __GLFW3_H_INCLUDED
#include <glfw3.h>
#endif
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
#define __GLM_GLM_HPP_INCLUDED
#include <glm/glm.hpp>
#endi... |
<commit_before>#include "ctc.h"
#include "logger.h"
PrefixTree::Node::Node() :
inTok (0),
parent (NULL),
nStates (0),
outLen (0)
{ }
PrefixTree::Node::Node (const PrefixTree& tree, const Node* parent, InputToken inTok) :
inTok (inTok),
parent (parent),
nStates (tree.nStates),
outLen (tree.outLen)
{ }
... |
<commit_before>#include "xchainer/context.h"
#include <cstdlib>
#include <future>
#include <gtest/gtest.h>
#include <nonstd/optional.hpp>
#include "xchainer/backend.h"
#include "xchainer/device.h"
namespace xchainer {
namespace {
TEST(ContextTest, Ctor) { EXPECT_NO_THROW(Context()); }
TEST(Context, GetBackend) {
... |
<commit_before>#include "xchainer/indexer.h"
#include <gtest/gtest.h>
namespace xchainer {
namespace {
TEST(IndexerTest, Ctor) {
Indexer<0> indexer({});
EXPECT_EQ(0, indexer.ndim());
EXPECT_EQ(1, indexer.total_size());
EXPECT_NO_THROW(indexer.Set(0));
}
TEST(IndexerTest, Rank1) {
Indexer<1> inde... |
<commit_before>#include <common/buffer.h>
#include <common/endian.h>
#if defined(XCODEC_PIPES)
#include <io/pipe.h>
#endif
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_cache.h>
#include <xcodec/xcodec_encoder.h>
#if defined(XCODEC_PIPES)
#include <xcodec/xcodec_encoder_pipe.h>
#endif
#include <xcodec/xcodec_has... |
<commit_before>#include "material.hpp"
Material::Material() :
name_{"defaultmaterial"},
ka_{Color()},
kd_{Color()},
ks_{Color()},
reflection_{0} {}
Material::Material(std::string const& n, Color const& a, Color const& d, Color const& s, float const& m) :
name_{n},
ka_{a},
kd_{d},
k... |
<commit_before>#include <triangle.hpp>
#include <math.h>
Triangle::Triangle() :
Shape(),
p1_{ glm::vec3{0.0,0.0,0.0} },
p2_{ glm::vec3{0.0,0.0,0.0} },
p3_{ glm::vec3{0.0,0.0,0.0} }{}
Triangle::Triangle(glm::vec3 p1, glm::vec3 p2, glm::vec3 p3) :
Shape(),
p1_{p1},
p2_{p2},
p3_{p3}{}
Triangle::Triangle(Materi... |
<commit_before>/* logger_metrics_interface.cc
François-Michel L'Heureux, 21 May 2013
Copyright (c) 2013 Datacratic. All rights reserved.
*/
#include "soa/jsoncpp/reader.h"
#include "jml/utils/exc_assert.h"
#include "soa/logger/logger_metrics_interface.h"
#include "soa/logger/logger_metrics_mongo.h"
#include "so... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "structuredfieldvalue.hpp"
#include "fieldvalues.h"
#include <vespa/log/log.h>
LOG_SETUP(".document.fieldvalue.structured");
namespace document {
IMPLEMENT_IDENTIFIABLE_ABSTRACT(... |
<commit_before>#ifndef AX_VECTOR_H
#define AX_VECTOR_H
#include <array>
#include <iostream>
#include "VectorExp.hpp"
namespace ax
{
template<std::size_t N>
class RealVector
{
public:
using value_trait = Vector;
constexpr static std::size_t size = N;
public:
... |
<commit_before>#include <windows.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#include "Common.h"
#include "PrjHndl.h"
#include "WinAPI.h"
namespace WinAPI
{
HWND hWnd;
HMENU hMenu;
HMENU hSubMenu_File;
HMENU hSubMenu_View;
COLORREF custom_colours[16];
void SaveHWND(SDL_Window* const window)
{
SDL_SysWMinf... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include <iostream>
#include <fstream>
using namespace std;
template <class T>
struct Node
{
T element;
Node<T> *left, *right, *pparent;
};
template <class T>
class BST {
private:
Node<T> *root;
int count;
public:
BST();
~BST();
void deleteTree(Node<T> *Tree);
void show(ostream&cout, const N... |
<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; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2012 Heiko Strathmann
* Copyrig... |
<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>// Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Utility/Assert.hpp"
#include <type_traits>
#include <cstdint>
#include <limits>
namespace Pomdog {
namespace Detail {
namespace Skeletal2D {
template <typename T, T Denominator>
class CompressedFloat... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestHierarchicalBoxPipeline.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for de... |
<commit_before><commit_msg>Tests for `Variable::set_shallow`.<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>#include "invoke_response_message.h"
namespace dsa {
InvokeResponseMessage::InvokeResponseMessage(const SharedBuffer& buffer)
: ResponseMessage(buffer) {
parse_dynamic_headers(buffer.data + StaticHeaders::TotalSize,
static_headers.header_size - StaticHeaders::TotalSize);
}
v... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: liImageRegistrationConsoleBase.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: datasourceui.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: ihi $ $Date: 2007-11-28 12:42:44 $
*
* The Contents of this file are ... |
<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/gpu/compositor_output_surface.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop_pr... |
<commit_before>/*------------------------------------------------------------------------------
Copyright (c) 2004 Media Development Loan Fund
This file is part of the LiveSupport project.
http://livesupport.campware.org/
To report bugs, send an e-mail to bugs@campware.org
LiveSupport is free s... |
<commit_before>#ifndef RETHREAD_CANCELLATION_TOKEN_H
#define RETHREAD_CANCELLATION_TOKEN_H
#include <rethread/detail/utility.hpp>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <thread>
namespace rethread
{
class cancellation_handler
{
protected:
virtual ~cancellati... |
<commit_before>#ifndef RETHREAD_CANCELLATION_TOKEN_H
#define RETHREAD_CANCELLATION_TOKEN_H
#include <rethread/detail/utility.hpp>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <exception>
#include <mutex>
#include <thread>
namespace rethread
{
class cancellation_handler
{
protected:
... |
<commit_before>#include <stan/math/rev/core.hpp>
#include <stan/math/rev/mat/functor/algebra_solver.hpp>
#include <test/unit/math/rev/mat/fun/util.hpp>
#include <test/unit/math/rev/mat/functor/util_algebra_solver.hpp>
#include <test/unit/util.hpp>
#include <gtest/gtest.h>
#include <iostream>
#include <fstream>
// Ever... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com>
**
** This file is part of duicontrolpanel.
**
**
** This program... |
<commit_before>#include <exodus/program.h>
programinit()
var file1;
var file2;
var targetfilename;
var targetdb;
var targetname;
var sql;
dim sqltext;
var nlines;
var ln;
var sourcefilename;
var recn;
var dictonly;
function main() {
if (not COMMAND.a(2) or not COMMAND.a(3)) {
var syntax =
"Syntax i... |
<commit_before>//===----------------------------------------------------------------------===//
//
// 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>/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */
#include "SettingRegistry.h"
#include <sstream>
#include <iostream> // debug IO
#include <libgen.h> // dirname
#include <string>
#include <cstring> // strtok (split string using delimiters) strcpy
#include <fstream> // ifst... |
<commit_before>#include "command.hh"
#include "common-args.hh"
#include "shared.hh"
#include "eval.hh"
#include "flake/flake.hh"
#include "store-api.hh"
#include "fetchers.hh"
#include "registry.hh"
using namespace nix;
using namespace nix::flake;
struct CmdRegistryList : StoreCommand
{
std::string description() ... |
<commit_before>#include "OSMC_driver.hpp"
#include <algorithm>
const int OSMC_driver::_max_speed_ = 130;
const int OSMC_driver::MINREQSPEED = 30;
OSMC_driver::OSMC_driver()
{
lvgoal = 0;
rvgoal = 0;
m_connected = false;
encoder = NULL;
#ifndef MOTOR_SIMULATE
ai.initLink(OSMC_IF_BOARD);
encoder = new quadCoder... |
<commit_before>#include "CollisionSkeleton.h"
#include "CollisionShapes.h"
#include "kinematics/Shape.h"
#include <cmath>
#include "utils/LoadOpengl.h"
#include "utils/UtilsMath.h"
using namespace std;
using namespace Eigen;
using namespace utils;
namespace collision_checking{
CollisionSkeletonNode::Collisio... |
<commit_before>#include <core/mat4.h>
#include "core/draw.h"
#include "core/random.h"
#include "core/shufflebag.h"
#include "core/filesystem.h"
#include "core/mat4.h"
#include "core/axisangle.h"
#include "core/aabb.h"
#include "core/texturetypes.h"
#include "core/filesystemimagegenerator.h"
#include "core/path.h"
#incl... |
<commit_before>#include "splineinverter.h"
#include "spline.h"
#include <algorithm>
#define PI 3.14159265359
template <typename T> int sign(T val) {
return (T(0) < val) - (val < T(0));
}
SplineInverter::SplineInverter(const std::shared_ptr<Spline> &spline, int samplesPerT)
:spline(spline), sample... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#ifndef ANY_HPP
#define ANY_HPP
#include <memory>
namespace shadow
{
// abstract base class providing interface to held value
// holds no type information, intended as building block for a more complex type
// that holds type information through a reflection mechanism
class holder_base
{
public:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.