text stringlengths 54 60.6k |
|---|
<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>#include "per_vertex_normals.h"
#include "per_face_normals.h"
#include "normalize_row_lengths.h"
template <typename DerivedV, typename DerivedF>
IGL_INLINE void igl::per_vertex_normals(
const Eigen::PlainObjectBase<DerivedV>& V,
const Eigen::PlainObjectBase<DerivedF>& F,
Eigen::PlainObjectBase<De... |
<commit_before>/*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* 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 r... |
<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>/*****************************************************************************
*
* 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>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>#pragma once
// blas_l1.hpp: BLAS Level 1 functions
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <cmath>
#include <universal/number/posit/posit>
#include <universal/blas... |
<commit_before>/*
* Copyright (C) 2009, 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef CXX... |
<commit_before>/// \file RPageSourceFriends.cxx
/// \ingroup NTuple ROOT7
/// \author Jakob Blomer <jblomer@cern.ch>
/// \date 2019-08-10
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/*******************************************... |
<commit_before>#include "ntuple_test.hxx"
TEST(RNTuple, Descriptor)
{
RNTupleDescriptorBuilder descBuilder;
descBuilder.SetNTuple("MyTuple", "Description", "Me", RNTupleVersion(1, 2, 3), ROOT::Experimental::RNTupleUuid());
descBuilder.AddField(0, RNTupleVersion(), RNTupleVersion(), "", "", 0, ENTupleStructure... |
<commit_before>
#include "dobby.h"
#include "logging/logging.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <map>
std::map<void *, const char *> *func_map;
void common_handler(RegisterContext *ctx, const HookEntryInfo *info) {
auto iter = func_map-... |
<commit_before>#include <gtest/gtest.h>
#include <cppcrate/record.h>
TEST(RecordTests, Contructors) {
using CppCrate::Record;
using CppCrate::CrateDataType;
using CppCrate::Value;
Record r;
EXPECT_EQ(r.size(), 0);
EXPECT_TRUE(r.value(0).isInvalid());
EXPECT_TRUE(r.value("a").isInvalid());
Record r2(... |
<commit_before>#include "posit.h"
#include <cstdio>
#include <cmath>
#define POW2(n) \
(1 << n)
POSIT_UTYPE Posit::buildMask(unsigned size)
{
return POSIT_MASK << (POSIT_SIZE - size);
}
Posit::Posit(POSIT_UTYPE bits, unsigned nbits, unsigned es, bool nan) :
mBits(bits),
mNbits(nbits),
mEs(es),
... |
<commit_before>#include <iostream>
#include <fstream>
#include <iterator>
#include <string>
#include <cstdlib>
void doCopy(const std::string infilename, const std::string outfilename={})
{
using namespace std;
using CharInputStreamBufIter = istreambuf_iterator<char>;
using CharOutputStreamBufIter = ostream... |
<commit_before>/** \file EmailSender.cc
* \brief Utility functions etc. related to the sending of email messages.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can r... |
<commit_before>// Copyright (C) 2011, 2012 Strahinja Val Markovic <val@markovic.io>
//
// This file is part of YouCompleteMe.
//
// YouCompleteMe 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 vers... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lice... |
<commit_before>#include "samples.hpp"
#include <powerset.hpp>
#include <range.hpp>
#include <vector>
#include <iostream>
using iter::powerset;
int main() {
std::vector<int> vec {1,2,3,4,5,6,7,8,9};
for (auto v : powerset(vec)) {
for (auto i : v) std::cout << i << " ";
std::cout << std::endl;
... |
<commit_before>
#include <gtest/gtest.h>
#include <ValueElement.h>
namespace tests {
namespace valueElementSuite {
template<typename T, bool U>
bool exactlyEqual(const ValueElement<T, U>& a, const ValueElement<T, U>& b) {
return a.value() == b.value() && a.uncertainty() == b.uncertainty();
}
#define testComp(a, b... |
<commit_before>// Copyright 2016 Benjamin Glatzel
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
<commit_before>#include "Application.hpp"
#include <cmath>
#include <random>
#include "ContactPoint.hpp"
#include "TextureLoader.hpp"
std::unique_ptr<std::string> message_profiling, message_collision;
noob::actor_handle ah;
std::string test_message;
noob::vec3f random_vec3(float x, float y, float z)
{
return noob::... |
<commit_before>// @(#)root/io:$Id$
// Author: Philippe Canal, May 2011
/*************************************************************************
* Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include "robotont_driver/robotont_hardware.h"
namespace robotont
{
RobotontHW::RobotontHW()
{
ROS_DEBUG("Robotont driver is starting...");
// Get parameters from ROS parameter server
std::string robotont_port;
int robotont_baudrate;
std::string odom_frame;
std::string odom_child_frame;
... |
<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 "ui/gfx/surface/accelerated_surface_win.h"
#include <windows.h>
#include <list>
#include "base/bind.h"
#include "base/callb... |
<commit_before>/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... |
<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>/*************************************************************************
*
* $RCSfile: drwlayer.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2003-11-24 17:23:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#pragma once
#include <utility>
#include <supermarx/id_t.hpp>
#include <supermarx/data/product.hpp>
#include <supermarx/data/productdetails.hpp>
#include <boost/optional.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
namespace supermarx
{
namespace data
{
struct productclass;
}
namespace mess... |
<commit_before>/*************************************************************************
*
* $RCSfile: shellids.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-08-12 09:27:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
* Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved.
*/
#include "Operation.h"
using namespace db::modest;
using namespace db::rt;
Operation::Operation(Runnable* r, OperationEnvironment* e, StateMutator* m)
{
mRunnable = r;
mEnvironment = e;
mStateMutator = m;
... |
<commit_before><commit_msg>legion: fix a disjoint ready race that could cause realm hangs<commit_after><|endoftext|> |
<commit_before><commit_msg>legion: fix copy-paste error<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS presentationengine01 (1.5.12); FILE MERGED 2004/09/06 11:22:43 cl 1.5.12.2: added preview support 2004/08/25 16:42:58 cl 1.5.12.1: replaced old FuSlideShow with new SlideShow<commit_after><|endoftext|> |
<commit_before>/*
* Copyright © 2008, 2009 Intel Corporation
*
* 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, cop... |
<commit_before>#include "operation.h"
#include <lambda_p_script/times/operation.h>
#include <lambda_p/errors/error_list.h>
#include <lambda_p_script/integer/subtract.h>
#include <lambda_p_script/integer/node.h>
#include <lambda_p_script_io/builder.h>
#include <lambda_p_io/source.h>
#include <lambda_p_script/ro... |
<commit_before>/*
* Copyright (C) 2013 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <deque>
#include <cassert>
#include <map>
#include <sstream>
#include "hal.h"
#include "halChain.h"
#include "halBlockViz.h"
using namespace std;
using namespace hal;
// We... |
<commit_before><commit_msg>add option to set block_idx in write_array<commit_after><|endoftext|> |
<commit_before>#include "pixmap.h"
#include "lodepng/lodepng.h"
#include "logger.h"
#include "helper.inl"
Pixmap::Pixmap(const std::string &a)
{
auto error = lodepng::decode(data, width, height, a);
if(error) LOG(info) << "png error " << error << ": " << lodepng_error_text(error) << " for " << a;
}
Pixmap::Pi... |
<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <err.h>
#include <errno.h>
#include <linux/limits.h>
#include <pwd.h>
#include <fcntl.h>
#include <unistd.h>
#include <sched.h>
#include <signal.h>
#include <sys/mount.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/typ... |
<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <err.h>
#include <errno.h>
#include <linux/limits.h>
#include <pwd.h>
#include <fcntl.h>
#include <unistd.h>
#include <sched.h>
#include <signal.h>
#include <sys/mount.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/typ... |
<commit_before>// Copyright 2014 Toggl Desktop developers.
#include "./aboutdialog.h"
#include "./ui_aboutdialog.h"
#include <QDebug> // NOLINT
#include <QDesktopServices> // NOLINT
#include <QApplication> // NOLINT
#include "./toggl.h"
AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent),
ui(new Ui::Abou... |
<commit_before>// Base header file. Must be first.
#include <Include/PlatformDefinitions.hpp>
#include <cassert>
#if defined(XALAN_CLASSIC_IOSTREAMS)
#include <iostream.h>
#else
#include <iostream>
#endif
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/framework/LocalFileInputSource.hpp>
#includ... |
<commit_before>#ifndef __ARUCO_UNITY_DICTIONARY_HPP__
#define __ARUCO_UNITY_DICTIONARY_HPP__
#include <opencv2/aruco.hpp>
#include "aruco_unity/exports.hpp"
//! @defgroup dictionary Dictionary
//! \brief Set of markers.
//!
//! See the OpenCV documentation for more information: http://docs.opencv.org/3.1.0/d5/d0b/cl... |
<commit_before>#pragma once
#include <cstdint>
#include <string>
#include <type_traits>
#include <vector>
#include <zmq.h>
#include "helpers.hpp"
namespace boost {
namespace asio {
namespace zmq {
namespace socket_option {
std::size_t const max_buff_size = 255;
template <int option, typename T> struct socket_option... |
<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/defaults.h"
namespace browser_defaults {
#if defined(OS_CHROMEOS)
const double kAutocompleteEditFontPixelSi... |
<commit_before>#ifndef FITNESS_GUARD_HPP_
#define FITNESS_GUARD_HPP_
#include "clotho/fitness/fitness_bitset.hpp"
#endif // FITNESS_GUARD_HPP_
<commit_msg>Initial definition of fitness; Using boost libraries like bimap as an example of how to organize such functionality<commit_after>#ifndef FITNESS_GUARD_HPP_
#defin... |
<commit_before>#pragma once
/*
* Covariant Script Version Info
*
* Licensed under the Covariant Innovation General Public License,
* Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://covariant.cn/licenses/LICENSE-1.0
*
*... |
<commit_before>/**
* \file
* \brief RawCircularBuffer class header
*
* \author Copyright (C) 2016-2019 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
* dis... |
<commit_before>/* /% C %/ */
/***********************************************************************
* cint (C/C++ interpreter)
************************************************************************
* Source file bc_debug.cxx
************************************************************************
* Description... |
<commit_before>/*
Copyright (c) 2012, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#include <argtable3/argtable3.h>
#include <sstream>
#include <babylon/babylon_version.h>
#include <babylon/core/delegates/delegate.h>
#include <babylon/core/logging.h>
#include <babylon/core/string.h>
#include <babylon/samples/sample_launcher.h>
#include <babylon/samples/samples_index.h>
#if _MSC_VER
... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
<commit_before>#include "CppSimulation.hpp"
#include "CppSystem.hpp"
#include "StoreHandler.hpp"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <sstream>
#include <boost/algorithm/string/replace.hpp>
#include <iostream>
#include <windows.h>
namespace pt = boost::pro... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2009 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: testbasi.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2006-09-17 09:58:16 $
*
* The Contents of this file are made... |
<commit_before>#include "stdafx.h"
#include "ipclistener.h"
#include <afxwin.h>
namespace myodd {
namespace os {
static HWND _pParentWnd = nullptr;
class IpcListenerWnd : public CWnd
{
protected:
enum class IpcMessageType : unsigned int
{
None = 0,
SendMessage = 1,
PostMessage = 2,
};
struct IpcM... |
<commit_before>// code goes here!<commit_msg>created psudeo code for Trapezium series.<commit_after>draw(){
for (int row = 0; row < [[numWide]]; row++){
for (int column = 0; column < [[numWide]]; column++){
drawTrapezium(row, column);
}
}
}
drawTrapezium(int row, int column){
point startCenter = gridCenter(r... |
<commit_before>#include <pthread.h>
#include <climits>
#include <cassert>
#include "thread.hh"
namespace mimosa
{
static void* startWrapper(std::function<void ()> * fct)
{
(*fct)();
delete fct;
return 0;
}
Thread::Thread(std::function<void ()> && fct)
: thread_(),
fct_(new std::function... |
<commit_before>#include <assert.h>
#include <cstdio>
#ifndef HAVE_LLVM
#error "This code needs LLVM enabled"
#endif
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/SourceMgr.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/IRReader/IRReader.h>
#include <iostream>
#include <... |
<commit_before><commit_msg>iprevent violation of exception spec<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: graphicshapecontext.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2008-01-17 08:05:51 $
*
* The Contents of this fil... |
<commit_before>#include "pixelboost/audio/soundManager.h"
#include "pixelboost/debug/debugVariableManager.h"
#include "pixelboost/graphics/device/device.h"
#include "pixelboost/graphics/render/common/renderer.h"
#include "pixelboost/graphics/render/custom/customRenderer.h"
#include "pixelboost/graphics/render/font/font... |
<commit_before>//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "ArmnnDriverImpl.hpp"
#include "../ArmnnPreparedModel_1_2.hpp"
#include "../ModelToINetworkConverter.hpp"
#include "../SystemPropertiesUtils.hpp"
#include <log/log.h>
namespace
{
const char *g_RelaxedFloa... |
<commit_before>#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <fj_tool/fapp.h>
#include <fjcoll.h>
#include "pearson-3d.h"
int T_MAX;
int T_MONITOR;
int mpi_my_rank;
const double PI=3.14159265358979323846;
float frand() {
return rand() / ... |
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
// vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
/* Copyright (c) FFLAS-FFPACK
* Written by Clément Pernet <clement.pernet@imag.fr> and Philippe Ledent
* ========LICENCE========
* This file is part of the libra... |
<commit_before>/**
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2018 Google LLC.
* Copyright (c) 2016-2017 Nest Labs, 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 ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Copyright (C) 2015 Ruslan Baratov
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Multimedia module.
**
** $QT_BEGIN_LICENSE:LGPL21$
** C... |
<commit_before>#include "toolbar.h"
#include <regex>
#include <fstream>
#include <streambuf>
#include <sstream>
#include <boost/filesystem.hpp>
#include <QToolBar>
#include <QToolButton>
#include <possumwood_sdk/app.h>
#include <actions/actions.h>
#include "main_window.h"
Toolbar::Toolbar() {
const boost::filesy... |
<commit_before>/*
* Copyright (c) 2003-2004 The Regents of The University of Michigan
* 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 c... |
<commit_before> inline
kth_cv::kth_cv(const std::string in_path,
const std::string in_actionNames,
const field<std::string> in_all_people,
const int in_scale_factor,
const int in_shift,
const int in_scene, //only for kth
const int in_segment_length,
const int in_dim
):path(in_path), actionNames(in_a... |
<commit_before>#include <vector>
#include "caffe/layers/conv_layer.hpp"
namespace caffe {
template <typename Dtype>
void ConvolutionLayer<Dtype>::compute_output_shape() {
const int* kernel_shape_data = this->kernel_shape_.cpu_data();
const int* stride_data = this->stride_.cpu_data();
const int* pad_data = this... |
<commit_before>// Copyright 2013 Yangqing Jia
#include <stdint.h>
#include <leveldb/db.h>
#include <pthread.h>
#include <string>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
using std::string;
namespace caffe {
template <typename Dtype>
void* DataLay... |
<commit_before>/*
* CameraController.cpp
*
* Created on: Sep 4, 2016
* Author: sebastian
*/
#include "CameraController.h"
#include "CameraSimulator.h"
CameraController::CameraController(bool simulator) {
cout << "CameraController() constructor" << endl;
if (simulator) {
m_camera.reset(new CameraSimula... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 27/06/08.
This file is part of MRtrix.
MRtrix 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 Sof... |
<commit_before>/*
Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open
Source Software License
Copyright (c) 2008 Ames Laboratory Iowa State University
All rights reserved.
Redistribution and use of HOOMD, in source and binary forms, with or
without modification, are permitted, provided that the following
... |
<commit_before>/*===========================================================================*\
|
| FILE: Plugin.cpp
| Skeleton project and code for a Texture Map
| 3D Studio MAX R3.0
|
| AUTH: Harry Denholm
| Developer Consulting Group
| Copyright(c) Discreet 1999
|
| HIST: Started 11-3-99
|
... |
<commit_before>// [WriteFile Name=ServiceArea, Category=Routing]
// [Legal]
// Copyright 2017 Esri.
// 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... |
<commit_before>/*
Copyright (C) 2014 P.L. Lucas <selairi@gmail.com>
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 2 of the License, or
(at your option) any later... |
<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>#ifndef ALEPH_TOPOLOGY_IO_VTK_HH__
#define ALEPH_TOPOLOGY_IO_VTK_HH__
#include <cstddef>
#include <algorithm>
#include <fstream>
#include <regex>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include "utilities/String.hh"
namespace aleph
{
namespace topology
{
namespa... |
<commit_before>#include "atom-map.h"
#include "details/reporting/report.h"
#include "details/errors/errors.h"
using namespace Yuni;
namespace ny {
namespace {
auto createDummyAtom() {
auto atom = yuni::make_ref<Atom>("", Atom::Type::classdef);
atom->builtinMapping = nyt_void;
return atom;
}
auto findCoreObje... |
<commit_before>#include "vector.h"
#include "MinIMU9.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <system_error>
#include <boost/program_options.hpp>
namespace opts = boost::program_options;
// TODO: see if we can switch from Eigen to boost for the mat... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#include "../../StroikaPreComp.h"
#include "../../Execution/ErrNoException.h"
#include "InternetAddress.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Memory;
using namespa... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "stx/SHA1... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFGameServerPlugin.cpp
// @Author : LvSheng.Huang
// @Date : 2012-07-14 08:51
// @Module : NFGameServerPlugin
//
// ------------------------------... |
<commit_before>// Copyright (c) 2006, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this ... |
<commit_before>#ifndef STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#define STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/row.hpp>
#include <stan/math/prim/fun/col.hpp>
#include <stan/math/prim/fun/transpose.hpp>
#include <stan/math... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Julian Ganz
*
* 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 rig... |
<commit_before>#ifndef STAN_MATH_PRIM_SCAL_FUN_GRAD_INC_BETA_HPP
#define STAN_MATH_PRIM_SCAL_FUN_GRAD_INC_BETA_HPP
#include <stan/math/prim/scal/fun/lbeta.hpp>
#include <stan/math/prim/scal/fun/log1m.hpp>
#include <stan/math/prim/scal/fun/inc_beta.hpp>
#include <stan/math/prim/scal/fun/grad_2F1.hpp>
#include <cmath>
... |
<commit_before>/*
* CUDArrays is a library for easy multi-GPU program development.
*
* The MIT License (MIT)
*
* Copyright (c) 2013-2015 Barcelona Supercomputing Center and
* University of Illinois
*
* Developed by: Javier Cabezas <javier.cabezas@gmail.com>
*
* Permission is hereby gr... |
<commit_before>#ifndef STAN_MATH_REV_MAT_FUN_GP_EXP_QUAD_COV_HPP
#define STAN_MATH_REV_MAT_FUN_GP_EXP_QUAD_COV_HPP
#include <boost/math/tools/promotion.hpp>
#include <boost/type_traits.hpp>
#include <boost/utility/enable_if.hpp>
#include <cmath>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/scal... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cstddef>
#include <visionaray/array.h>
#include <visionaray/material.h>
namespace visionaray
{
//-------------------------------------------------------------------------------------------------
// Publi... |
<commit_before>#ifndef VSMC_UNIFORM_REAL_DISTRIBUTION_HPP
#define VSMC_UNIFORM_REAL_DISTRIBUTION_HPP
#include <vsmc/internal/common.hpp>
#include <vsmc/rng/u01.h>
#define VSMC_STATIC_ASSERT_RNG_UNIFORM_REAL_DISTRIBUTION_ENG_MIN(engmin) \
VSMC_STATIC_ASSERT((engmin == 0), \
... |
<commit_before>/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd 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/licens... |
<commit_before><commit_msg>warp blend updates<commit_after><|endoftext|> |
<commit_before>// This file is part of the "x0" project, http://xzero.io/
// (c) 2009-2014 Christian Parpart <trapni@gmail.com>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://opensource.org/li... |
<commit_before>#include "locked_hash.h"
using namespace std;
LockedHash::LockedHash(UInt64 size)
:
_size(size),
_bins(new Bucket[size]),
_locks(new Lock[size])
{
}
LockedHash::~LockedHash()
{
delete [] _bins;
delete [] _locks;
}
pair<bool, UInt64> LockedHash::find(UInt64 key)
{
UInt... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: objectcontact.hxx,v $
* $Revisio... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkData.h"
#include "include/core/SkStream.h"
#include "src/core/SkFontDescriptor.h"
enum {
kInvalid = 0x00,
// these mus... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Zack Rusin
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.