text stringlengths 54 60.6k |
|---|
<commit_before>c850fcf4-2e4e-11e5-9284-b827eb9e62be<commit_msg>c855f5ba-2e4e-11e5-9284-b827eb9e62be<commit_after>c855f5ba-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>f180e270-2e4d-11e5-9284-b827eb9e62be<commit_msg>f185f288-2e4d-11e5-9284-b827eb9e62be<commit_after>f185f288-2e4d-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>a654b6e0-2e4e-11e5-9284-b827eb9e62be<commit_msg>a659c806-2e4e-11e5-9284-b827eb9e62be<commit_after>a659c806-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>3c6558d0-2e4d-11e5-9284-b827eb9e62be<commit_msg>3c6a53f8-2e4d-11e5-9284-b827eb9e62be<commit_after>3c6a53f8-2e4d-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>#include <Magick++.h>
#include "Fractal/Accumulator.h"
#include "Fractal/Geometry.h"
#include "Fractal/GravityIterator.h"
#include "Fractal/Utilities.h"
#include "Fractal/VectorSampler.h"
namespace
{
const int width = 1024;
const int height = 1024;
const int supersample = 2;
const int a... |
<commit_before>/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include "log.h"
#include <string>
#include <ctime>
#include <cstring>
#include <uv.h>
#include "thread_local.h"
namespace redc
{
Scoped_Log_Init::Scoped_Log_Init() noexcept
{
init_log();
}
Scoped_Log_Init::~Scoped_Log_Init... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "csv/export.h"
using namespace flint;
namespace {
void usag... |
<commit_before>// PUBLIC DOMAIN LICENSE: https://github.com/KjellKod/Concurrent/blob/master/LICENSE
//
// Repository: https://github.com/KjellKod/Concurrent
//
// Concurrent Wrapper
// ===============================
// Wrap "any" object to get concurrent access with asynchronous execution in FIFO order.
// Publishe... |
<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 "base/at_exit.h"
#include "base/basictypes.h"
#include "base/command_line.h"
#include "base/event_recorder.h"
#include "b... |
<commit_before>// @(#)root/roostats:$Id: LikelihoodIntervalPlot.h 26427 2009-05-20 15:45:36Z pellicci $
/*************************************************************************
* Project: RooStats *
* Package: RooFit/RooStats ... |
<commit_before>#include <Python.h>
#include <string>
#include <iostream>
#include <TTree.h>
#include <TFile.h>
#include <TChain.h>
#include <TLeaf.h>
#include <map>
#include <numpy/arrayobject.h>
#include <cassert>
#include <set>
struct TypeInfo{
PyObject* nptype;
int size;//in bytes
TypeInfo(const TypeInfo... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 t... |
<commit_before>/**
* Copyright (c) 2015, Timothy Stack
*
* 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>#include "catch.hpp"
#include <shadow.hpp>
class tct1_class
{
public:
tct1_class() = default;
tct1_class(int i) : i_(i)
{
}
int
get_i() const
{
return i_;
}
void
set_i(int i)
{
i_ = i;
}
private:
int i_;
};
int
extract_i(const t... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
<commit_before>/**
* Copyright 2008 Matthew Graham
* 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 "json_ui.hh"
#include "display_buffer.hh"
#include "event_manager.hh"
#include "exception.hh"
#include "file.hh"
#include "keys.hh"
#include "ranges.hh"
#include "string_utils.hh"
#include "unit_tests.hh"
#include "value.hh"
#include <utility>
#include <unistd.h>
namespace Kakoune
{
templat... |
<commit_before>#include "testmessagehandler.h"
#include "peer.h"
#define INSTALL_CUSTOM_MESSAGE_FACTORY(messageType, messageFactory) \
static MessageFactory s_##messageType##Factory \
= Message::installMessageFactory((Message::Type)messageType, messageFactory);
static const quint8 GenericType = Message::... |
<commit_before>/*
===============================================================================
FILE: laszip.cpp
CONTENTS:
see corresponding header file
PROGRAMMERS:
martin.isenburg@gmail.com
COPYRIGHT:
(c) 2011, Martin Isenburg, LASSO - tools to catch reality
This is fr... |
<commit_before>#define MS_CLASS "RTC::Codecs::H264"
// #define MS_LOG_DEV
#include "RTC/Codecs/H264.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
namespace RTC
{
namespace Codecs
{
/* Class methods. */
H264::PayloadDescriptor* H264::Parse(
const uint8_t* data, size_t len, RTC::RtpPacket::FrameMarking* fr... |
<commit_before>#define MS_CLASS "RTC::RtpReceiver"
// #define MS_LOG_DEV
#include "RTC/RtpReceiver.h"
#include "RTC/Transport.h"
#include "Utils.h"
#include "MediaSoupError.h"
#include "Logger.h"
namespace RTC
{
/* Instance methods. */
RtpReceiver::RtpReceiver(Listener* listener, Channel::Notifier* notifier, uint3... |
<commit_before>#include <gtest/gtest.h>
#include <test/agrad/distributions/expect_eq_diffs.hpp>
#include <stan/agrad/agrad.hpp>
#include <stan/agrad/special_functions.hpp>
#include <stan/meta/traits.hpp>
#include <stan/prob/distributions/univariate/discrete/neg_binomial.hpp>
template <typename T_shape, typename T_inv... |
<commit_before>#include <algorithm>
#include <numeric>
#include <stdexcept>
#include <assert.h>
#include "definitions.hpp"
using namespace std;
namespace craam {
/** \mainpage
Introduction
------------
Craam is a C++ library for solving *plain*, *robust*, or *optimistic* Markov decision processes. The library als... |
<commit_before>#pragma once
// pow.hpp: pow functions for posits
//
// Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
namespace sw {
namespace unum {
// the current shims are NON-COMPLIANT with t... |
<commit_before>/*
* Copyright deipi.com LLC and contributors. 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 Software without restriction, including without limitation the... |
<commit_before>#include "../include/matrix.h"
#include <string>
template <class T>
matrix<T>::matrix(unsigned int x, unsigned int y){
resize(x,y);
}
template <class T>
matrix<T>::matrix(matrix& matrix){
*this = matrix;
}
template <class T>
void matrix<T>::resize(unsigned int x, unsigned int y){
m.resize(x, vector... |
<commit_before>#include "midiio.h"
#include "lpd8_sysex.h"
#include "midiportsmodel.h"
#include <QGuiApplication>
#include <QSocketNotifier>
#include <QtDebug>
#include <QStandardItemModel>
#include <QThread>
#include <exception>
MidiIO::MidiIO(QObject *parent) : QObject(parent),
m_seq_handle(Q_NULLPTR),
m_... |
<commit_before>/******************************************************************************
* Copyright 2014 Micah C Chambers (micahc.vt@gmail.com)
*
* 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 th... |
<commit_before>/**
* @file options.cc
* @author Konrad Zemek
* @copyright (C) 2014 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "options.h"
#include "version.h"
#include "logging.h"
#include "oneException.h"
#include <boost/algorithm/string.... |
<commit_before>#include "output.hpp"
#include "config.hpp"
#include <utility>
#include <fstream>
#include <climits>
#include <boost/filesystem.hpp>
using namespace synth;
static std::string relativeUrl(fs::path const& from, fs::path const& to)
{
if (to == from)
return std::string();
fs::path r = to.le... |
<commit_before>#ifndef VG_PACKER_HPP_INCLUDED
#define VG_PACKER_HPP_INCLUDED
#include <iostream>
#include <map>
#include <chrono>
#include <ctime>
#include "omp.h"
#include "xg.hpp"
#include "alignment.hpp"
#include "path.hpp"
#include "position.hpp"
#include "json2pb.h"
#include "graph.hpp"
#include "gcsa/internal.h"... |
<commit_before>Parcer::Parcer(std::string filename){
Tokens = LexicalAnaltysis(filename);
};
/* 構文解析実行
@return 成功:true 失敗:false
*/
bool Parser::doParse(){
if(!Tokens){
fprintf(stderr, "error at lexer\n");
return false;
}
else{
return VisitTranslationUnit();
}
};
TranslationUnitAST &Parser::... |
<commit_before>#include "planet.h"
#include <qmath.h>
Planet::Planet(QVector3D p, QVector3D v, float m) : position(p), velocity(v) {
setMass(m);
}
void Planet::updatePath(){
if(path.isEmpty() || (path.back() - this->position).lengthSquared() > pathRecordDistance){
path.append(this->position);
}
... |
<commit_before>#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h> // for MAXPATHLEN
#include <fcntl.h>
#include <thread>
#include <stdexcept>
#include <zip.h>
#include <jansson.h>
#if defined(ARCH_WIN)
#include <windows.... |
<commit_before>#include "razors.hpp"
#include "compiler.hpp"
#include "estd.hpp"
#include "glresource_types.hpp"
#include "gldebug.hpp"
#include "glframebuffers.hpp"
#include "glinlines.hpp"
#include "glshaders.hpp"
#include "gltexturing.hpp"
BEGIN_NOWARN_BLOCK
#include "stb_perlin.h"
END_NOWARN_BLOCK
#include <GL... |
<commit_before>#include "gmml/internal/residue.h"
#include <stdexcept>
#include "gmml/internal/atom.h"
#include "gmml/internal/graph.h"
#include "gmml/internal/structure.h"
#include "gmml/internal/stubs/utils.h"
using std::string;
using std::vector;
namespace gmml {
Residue::Residue() : name_(""), bonds_(new Graph... |
<commit_before>#include <iostream>
#include <string>
#include <boost/tokenizer.hpp> //Boost tokenizer
#include <unistd.h> // Fork()
#include <sys/types.h> // Wait()
#include <sys/wait.h> // Wait()
#include <vector>
#include <stdio.h> //Perror()
#include <errno.h> // Perror()
#include <algorithm>
using namespace std;
u... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 ap... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 ap... |
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved.
#include <string>
#include "libj/string.h"
namespace libj {
const Size NO_POS = -1;
const Char NO_CHAR = -1;
class StringImpl : public String {
public:
Size length() const {
return str8_ ? str8_->length() :
str32_ ? str32... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>//===------------------------- thread.cpp----------------------------------===//
//
// 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 2002-2010, OpenNebula Project Leads (OpenNebula.org) */
/* */
/* Licensed under the Apache License, Version 2.0 (the "Licens... |
<commit_before>#include <ecto/ecto.hpp>
#include <iostream>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
#include <pcl/io/kinect_grabber.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <boost/shared_ptr.hpp>
#include <pcl/visualization/cloud_viewer.h>
#include <iostream>
#include <bo... |
<commit_before>/*
Copyright (c) 2006, MassaRoddel, 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 ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xipage.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 19:33:27 $
*
* The Contents of this file are made av... |
<commit_before>/*************************************************************************
*
* $RCSfile: dapidata.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:44:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: imoptdlg.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: kz $ $Date: 2006-07-21 13:24:43 $
*
* The Contents of this file are made... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>// Copyright (c) 2016 Kasper Kronborg Isager and Radosław Niemczyk.
#include <hemingway/vector.hpp>
namespace lsh {
/**
* Create a new vector from existing component chunks.
*
* @param components The existing component chunks.
* @param size The number of components.
*/
vector::vector(... |
<commit_before>// Copyright 2013 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 "visual.h"
#include <array>
#include <ctime>
#include <iostream>
#include <list>
#include <random>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <AntTweakBar.h>
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#includ... |
<commit_before>#include <vector>
#include <string>
#include <sstream>
#include "error_handling.h"
#include "game.h"
#include "coordinate.h"
#include "fight.h"
#include "io.h"
#include "item.h"
#include "level.h"
#include "misc.h"
#include "monster.h"
#include "options.h"
#include "os.h"
#include "pack.h"
#include "pla... |
<commit_before><commit_msg>Perception: Remove unused variables<commit_after><|endoftext|> |
<commit_before>/*
* (C) Copyright 2016 Mirantis 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 applica... |
<commit_before>/*++
Module Name:
snap.cpp
Abstract:
Main entry point for the snap binary. Calls into the indexer, single-end aligner or
paired-end aligner functions defined in other source files in this directory.
Authors:
Matei Zaharia & Bill Bolosky, February, 2012
Environment:
User mode s... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>#pragma once
namespace Principia {
namespace Quantities {
template<int LengthExponent, int MassExponent, int TimeExponent,
int CurrentExponent, int TemperatureExponent, int AmountExponent,
int LuminousIntensityExponent, int WindingExponent,
int AngleExponent, int SolidAngleEx... |
<commit_before>// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/extensions/tab_helper.h"
#include <map>
#include <utility>
#include "atom/browser/extensions/atom_extension_api_frame_id_map_helper.h"
#include "... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/renderer/atom_renderer_client.h"
#include <string>
#include <vector>
#include "atom/common/api/api_messages.h"
#include "atom/common/api/atom_bindings.h... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: servres.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:20:01 $
*
* The Contents of this file are made a... |
<commit_before>// Author: Wim Lavrijsen, Jan 2005
// Bindings
#include "PyROOT.h"
#include "TemplateProxy.h"
#include "Utility.h"
namespace PyROOT {
namespace {
//= PyROOT template proxy construction/destruction ===========================
TemplateProxy* tpp_new( PyTypeObject*, PyObject*, PyObject* )
{
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before>#include "GraphicBuffer.h"
#include <string>
#include <cstdlib>
#include <iostream>
using std::string;
const int GRAPHICBUFFER_SIZE = 1024;
template<typename Func>
void setFuncPtr (Func*& funcPtr, const DynamicLibrary& lib, const string& symname)
{
funcPtr = reinterpret_cast<Func*>(lib.getFunctio... |
<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 "views/controls/native_control_win.h"
#include <windowsx.h>
#include "app/l10n_util_win.h"
#include "base/logging.h"
#includ... |
<commit_before>/// HEADER
#include "blob_detector.h"
/// COMPONENT
#include <vision_plugins/cvblob.h>
/// PROJECT
#include <csapex_core_plugins/vector_message.h>
#include <csapex_vision/cv_mat_message.h>
#include <csapex_vision/roi_message.h>
#include <csapex_vision_features/keypoint_message.h>
/// PROJECT
#include ... |
<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>// Example: exercise2-advanced
//
// Goal: implement a simple adaptive strategy based on exact solution
//
// Reference: see https://fusionforge.zih.tu-dresden.de/plugins/mediawiki/wiki/amdis/index.php/AMDiS::Expressions
// for a detailed description of possible expression terms.
//
// Compile... |
<commit_before>/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <ox/std/error.hpp>
#incl... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2013 James Hughes.
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 Softwa... |
<commit_before>#include <glib.h>
#include <qpid/messaging/Message.h>
#include <qpid/messaging/Receiver.h>
#include <qpid/messaging/Sender.h>
#include <qpid/messaging/Session.h>
#include <gqpidreceiver.h>
#include <gqpidmessage.h>
using namespace qpid::messaging;
struct _GQpidReceiver
{
Receiver rcv;
_GQpidRe... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKC... |
<commit_before>/* This source file is part of the Tomviz project, https://tomviz.org/.
It is released under the 3-Clause BSD License, see "LICENSE". */
#include "GenericHDF5Format.h"
#include <DataExchangeFormat.h>
#include <h5cpp/h5readwrite.h>
#include <h5cpp/h5vtktypemaps.h>
#include <QComboBox>
#include <QDi... |
<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>/*
* Copyright (c) 2008-2016 the MRtrix3 contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/
*
* MRtrix is distributed in the hope that... |
<commit_before>//system stuff
#include <string>
#include <stdint.h>
//ros stuff
#include "ros/ros.h"
#include "sensor_msgs/Joy.h"
#include "geometry_msgs/Twist.h"
#include "capybarauno/capybara_ticks.h"
using namespace std;
ros::Publisher ticks_publisher;
struct configuration{
string cmdvel_topic;
string ti... |
<commit_before>//=============================================================================
//
// Copyright (C)1999 by Eric Sunshine <sunshine@sunshineco.com>
//
// The contents of this file are copyrighted by Eric Sunshine. This work is
// distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
/... |
<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>#include "anki/gl/GlState.h"
#include "anki/gl/ShaderProgram.h"
#include "anki/gl/Fbo.h"
#include "anki/gl/Vao.h"
#include "anki/util/Assert.h"
#include <limits>
namespace anki {
//==============================================================================
GLenum GlState::flagEnums[] = {
GL_DEPTH_... |
<commit_before>namespace tz::gl
{
template<template<typename> class PixelType, typename ComponentType>
void Texture::set_data(const tz::gl::Image<PixelType<ComponentType>>& image)
{
constexpr GLint internal_format = tz::gl::pixel::parse_internal_format<PixelType, ComponentType>();
constexpr GLenum format = tz::g... |
<commit_before>/*
* Copyright (C) 2007, 2008, 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.
*/
... |
<commit_before>#pragma once
#include "search/search_common.hpp"
#include "search/search_query.hpp"
#include "search/search_query_params.hpp"
#include "indexer/search_trie.hpp"
#include "base/mutex.hpp"
#include "base/scope_guard.hpp"
#include "base/stl_add.hpp"
#include "base/string_utils.hpp"
#include "std/algorith... |
<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>/*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include <Empathy/Empathy/Empathy.h>
#include <Empathy/empathy-linear/linear_empathy.h>
#include <irrKlang.h>
#include <GLFW/glfw3.h>
#include <muParser.h>
#include <Empathy/Brain/CustomLogic/Calming_1.h>
#define FULL_SCREEN false
#if FULL_SCREEN
#define RENDER_SIZE 768
#define SC_SIZE_X 1366
#defi... |
<commit_before>/*
* Copyright 2015 - 2021 gary@drinkingtea.net
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#ifdef OX_USE_STDLIB
#include <a... |
<commit_before>#include "itkCommandLineArgumentParser.h"
#include "CommandLineArgumentHelper.h"
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <vector>
#include "math.h"
#include <algorithm>
/** Declare PrintHelp. */
void PrintHelp(void);
//-------------------... |
<commit_before>/**\file
* \brief "Hello World" HTTP Server
*
* This is an example HTTP server that serves a simple "Hello World!" on /, and
* a 404 on all other resources.
*
* Call it like this:
* \code
* $ ./http-hello localhost 8080
* \endcode
*
* With localhost and 8080 being a host name and port of your ... |
<commit_before>//============================================================================//
// File: qcan_frame.hpp //
// Description: QCAN classes - CAN frame //
// ... |
<commit_before>/*
Copyright 2016 Mitchell Young
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 o... |
<commit_before>#include "pass_bits/helper/seed.hpp"
namespace pass
{
decltype(seed::seed_) seed::seed_ = 12345;
decltype(seed::generator_) seed::generator_;
std::mt19937_64 &seed::get_generator()
{
return generator_;
}
void seed::set_seed(
const arma::arma_rng::seed_type seed)
{
seed_ = seed;
// Seeding C... |
<commit_before>#include <babylon/probes/reflection_probe.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/cameras/camera.h>
#include <babylon/core/json_util.h>
#include <babylon/engines/constants.h>
#include <babylon/engines/engine.h>
#include <babylon/engines/scene.h>
#include <babylon/materials/ima... |
<commit_before>//Copyright (c) 2020 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "BeadingStrategyFactory.h"
#include "InwardDistributedBeadingStrategy.h"
#include "LimitedBeadingStrategy.h"
#include "CenterDeviationBeadingStrategy.h"
#include "WideningBeadingStrategy.h"
#i... |
<commit_before>#include <gnuplot-iostream/gnuplot-iostream.h>
#include <boost/tuple/tuple.hpp>
#include <iostream>
#include <iomanip>
#include <ctime>
#include "Tools.hpp"
#include "Magnet.hpp"
using namespace std;
const int lattice = inputInt(100,"lattice size");
const double defaultJ = 1;
const double firstTemp = in... |
<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
// "Lic... |
<commit_before>/*
This file is part of Ingen.
Copyright 2007-2017 David Robillard <http://drobilla.net/>
Ingen is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or ... |
<commit_before>#include "iotsa.h"
#include "iotsaConfigFile.h"
#ifdef ESP32
#include <SPIFFS.h>
#include <esp_log.h>
#include <rom/rtc.h>
#endif
#include <FS.h>
//
// Global variable initialization
//
IotsaConfig iotsaConfig;
#ifdef IOTSA_WITH_HTTPS
#include "iotsaConfigDefaultCert512.h"
#endif
void IotsaConfig::l... |
<commit_before>/*
* istream implementation which reads a file from a NFS server.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "istream_nfs.hxx"
#include "istream/istream_internal.hxx"
#include "istream/istream_buffer.hxx"
#include "nfs_client.hxx"
#include "pool.hxx"
#include "util/Cast.hxx"
#include "ut... |
<commit_before>/* Copyright 2013-present Barefoot Networks, 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 b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.