text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>/* -*-c++-*- citygml2vrml - Copyright (c) 2010 Joachim Pouderoux, BRGM
*
* This file is part of libcitygml library
* http://code.google.com/p/libcitygml
*
* libcitygml is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published ... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief SEEDA03 client クラス @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "GR/co... |
<commit_before>/*************************************************************************
*
* $RCSfile: label.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: os $ $Date: 2002-09-09 08:42:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>
#include "DuktapeObjectWrapper.h"
#include <cppassist/logging/logging.h>
#include <cppexpose/reflection/Object.h>
#include "DuktapeScriptBackend.h"
using namespace cppassist;
namespace cppexpose
{
extern const char * s_duktapeFunctionPointerKey;
extern const char * s_duktapeObjectPointerKey;
ex... |
<commit_before>/*!
\copyright (c) RDO-Team, 2012
\file simulator/compiler/parser/rdo_logic.inl
\authors
\authors (rdo@rk9.bmstu.ru)
\authors (impus@hotbox.ru)
\date 31.01.2012
\brief
\indent 4T
*/
// -------------------------------------------------------------... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/util/slaveproc.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/searchcommon/common/schema.h>
#include <vesp... |
<commit_before>// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.... |
<commit_before>#ifndef OPERATOR_HPP
#define OPERATOR_HPP
#include <string>
#include <vector>
#include <functional>
#include "utils/error.hpp"
enum Associativity: int {
ASSOCIATE_FROM_LEFT,
ASSOCIATE_FROM_RIGHT
};
enum Arity: int {
NULLARY = 0,
UNARY = 1,
BINARY = 2,
TERNARY = 3
};
enum Fixity: int {
... |
<commit_before>#include <memory.h>
#include "vtrc-hash-iface.h"
#include "hash/sha2-traits.h"
namespace vtrc { namespace common { namespace hash {
namespace {
template <typename HashTraits>
struct hasher_sha: public hash_iface {
size_t hash_size( ) const
{
... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, 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... |
<commit_before>#include "CubemapExtractionPlugin.h"
#include "CubemapFaceD3D11.h"
#if SUPPORT_D3D11
CubemapFaceD3D11::CubemapFaceD3D11(
boost::uint32_t width,
boost::uint32_t height,
ID3D11Texture2D* gpuTexturePtr,
ID3D11Texture2D* cpuTexturePtr,
D3D11_MAPPED_SUBRESOURCE resource
) :
CubemapFace(width, height)... |
<commit_before><commit_msg>cast_benchmarks: Fix broken behavior<commit_after><|endoftext|> |
<commit_before>#include "erlkaf_config.h"
#include "nif_utils.h"
#include "erlkaf_nif.h"
#include "rdkafka.h"
#include <functional>
#include <signal.h>
namespace {
template <typename T> struct set_config_fun
{
std::function<rd_kafka_conf_res_t (T *conf, const char *name, const char *value, char *errstr, size_t e... |
<commit_before>#include "common.hpp"
#include <boost/filesystem/fstream.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/set.hpp>
#include <boost/serialization/map.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/... |
<commit_before>/*
* the/utils.cpp
*
* Copyright (c) 2012, TheLib Team (http://www.thelib.org/license)
* 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 ... |
<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>#include <franka_gripper/franka_gripper.h>
#include <cmath>
#include <functional>
#include <thread>
#include <ros/node_handle.h>
#include <franka/exception.h>
#include <franka/gripper_state.h>
#include <franka_gripper/GraspAction.h>
#include <franka_gripper/HomingAction.h>
#include <franka_gripper/Mov... |
<commit_before>#include "ninja.h"
#include <getopt.h>
#include <limits.h>
#include <stdio.h>
#include "build.h"
#include "build_log.h"
#include "parsers.h"
#include "graphviz.h"
option options[] = {
{ "help", no_argument, NULL, 'h' },
{ }
};
void usage() {
fprintf(stderr,
"usage: ninja [options] target\n"
"\... |
<commit_before>// $Id$
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "noui.h"
#include "ui_interface.h"
#include "util.h"
#includ... |
<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/sync/notifier/chrome_invalidation_client.h"
#include <string>
#include <vector>
#include "base/compiler_spec... |
<commit_before>#include "gtest/gtest.h"
namespace {
TEST(ProjectTest, ShouldSucceed) {
EXPECT_EQ(1, 1);
}
}
<commit_msg>Removed dummy project_test.cc<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
* common.hpp: Basic shared types & helpers
*****************************************************************************
* Copyright © 2015 libvlcpp authors & VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
... |
<commit_before>#include "buffer.hh"
#include "buffer_manager.hh"
#include "window.hh"
#include "assert.hh"
#include "utils.hh"
#include "context.hh"
#include <algorithm>
namespace Kakoune
{
template<typename T>
T clamp(T min, T max, T val)
{
if (val < min)
return min;
if (val > max)
return m... |
<commit_before>#ifndef _MEMORY_HH_
#define _MEMORY_HH_
#include <cstdio>
#include <memory>
#include <type_traits>
namespace std {
template <typename T>
constexpr auto is_aligned(T x, size_t a) noexcept
-> typename std::enable_if<std::is_integral<T>::value, bool>::type {
return (x & (a-1)) == 0;
}
template... |
<commit_before>#include <omp.h>
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <iostream>
#include <armadillo>
#include <iomanip>
#include <vector>
#include <hdf5.h>
#include "omp.h"
using namespace std;
using namespace arma;
// #include "aux-functions-def.hpp"
// #include "aux-functi... |
<commit_before>#include "SuffixMatchManager.hpp"
#include <document-manager/DocumentManager.h>
#include <boost/filesystem.hpp>
#include <glog/logging.h>
namespace sf1r
{
SuffixMatchManager::SuffixMatchManager(
const std::string& homePath,
const std::string& property,
boost::shared_ptr<Documen... |
<commit_before>#include "arc_factored.h"
#include <iostream>
#include "config.h"
using namespace std;
#if HAVE_EIGEN
#include <Eigen/Dense>
typedef Eigen::Matrix<prob_t, Eigen::Dynamic, Eigen::Dynamic> ArcMatrix;
typedef Eigen::Matrix<prob_t, Eigen::Dynamic, 1> RootVector;
void ArcFactoredForest::EdgeMarginals(pr... |
<commit_before>#include "ServerSocket.h"
#include "SocketUtils.h"
#include "WdtOptions.h"
#include <glog/logging.h>
#include <sys/socket.h>
#include <poll.h>
#include <folly/Conv.h>
#include <fcntl.h>
#include <chrono>
#include <algorithm>
namespace facebook {
namespace wdt {
using std::swap;
typedef std::chrono::high_... |
<commit_before>// Copyright 2008, 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 list... |
<commit_before>#include <iostream>
#include <algorithm>
#include <stdexcept>
template <typename T>
class stack
{
public:
stack();
~stack()noexcept;
stack(stack<T> const&)noexcept;
stack& operator=(stack<T> const&)noexcept;
size_t count()const noexcept;
size_t array_size()const noexcept;
void push(T const&)noexc... |
<commit_before>// Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2021 Antti Nuortimo.
//
// This program 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
... |
<commit_before>//=======================================================================
// Copyright (c) 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>/*
Reproducing xfstest generic/106
1. Create file foo, create a link foo_link and sync
2. Unlink foo_link, drop caches and fsync foo
After a crash, after the file foo is removed, the directory should be removeable.
https://github.com/kdave/xfstests/blob/master/tests/generic/106
*/
#include <fcntl.h>... |
<commit_before>/*******************************************************
* Copyright (c) 2014, 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>/*
Copyright (c) 2003 - 2005, Arvid Norberg, Daniel Wallin
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
... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:enc=utf-8:
/*
The MIT License
Copyright (c) 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
... |
<commit_before>#include <Engine/Scrollable.hpp>
#include <Engine/Factory.hpp>
#include <Engine/ParticleSystem.hpp>
#include <Engine/Text.hpp>
#include <Engine/Button.hpp>
#include <Engine/ObjectPlacer.hpp>
#include <Engine/ParallaxBackground.hpp>
namespace engine {
std::map<std::string, std::function<Node*(Json::Valu... |
<commit_before>#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <unistd.h>
#include <dirent.h>
#include "omp.h"
void helpCheck(char *argv[]) {
if (argv[1] == std::string("-h") || argv[1] == std::string("--help")) {
std::cout << "\nptxv - Parallel Tar XZ by Ryan Chui (2017)\n" ... |
<commit_before>/***************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) European Southern Observatory, 2002
* Copyright by ESO (in the framework of the ALMA collaboration)
* and Cosylab 2002, All rights reserved
*
* This library is free so... |
<commit_before>//
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "sys_io_ser_native.h"
///////////////////////////////////////////////////////////////////////////... |
<commit_before>#include "GraphML.h"
#include "DirectedGraph.h"
#include "UndirectedGraph.h"
#include <tinyxml2.h>
#include <Table.h>
#include <cassert>
#include <map>
#include <iostream>
using namespace std;
using namespace tinyxml2;
GraphML::GraphML() : FileTypeHandler("GraphML", true) {
addExtension("graphml")... |
<commit_before>//
// data.cpp
// EpiGenMCMC
//
// Created by Lucy Li on 13/04/2016.
// Copyright (c) 2016 Lucy Li, Imperial College London. All rights reserved.
//
#include "data.h"
//
// TimeSeriesData
//
TimeSeriesData::TimeSeriesData(){};
TimeSeriesData::TimeSeriesData(std::string filename) {
std::ifstr... |
<commit_before>#include <vector>
#include <list>
#include <map>
#include <string>
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <stdint.h>
#include <cstdlib>
#include <cassert>
#include "rinalite/rinalite-common.h"
#include "rinalite/rinalite-utils.h"
#include "rinalite/rina-conf-msg.h"
#include ... |
<commit_before>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2019 David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Licen... |
<commit_before>#include <unistd.h>
#include <stdio.h>
#include <stdint.h>
#include <iohub_client.h>
#include <mug.h>
#include <res_manager.h>
#ifndef USE_IOHUB
#include <io.h>
#endif
struct __attribute__((packed)) led_line_data {
uint8_t row;
uint8_t reserved[2];
uint8_t content[MAX_COLS/2];
};
error_t mug_dis... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: LinExtrd.cc
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reprod... |
<commit_before>#include "gdrawer.hpp"
#include <QThreadPool>
#include <QRunnable>
#include <QDebug>
namespace
{
class Task : public QRunnable
{
private:
QImage *img;
QRectF rect;
QRect viewport;
Instrs *vm;
QAtomicPointer<Exception>* e;
public:
Task(QImage* _img, const QRectF& _rect, const QRec... |
<commit_before>/* Copyright (c) 2010-present 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"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>#include <string.h>
#include <node.h>
#include <node_buffer.h>
#include <openssl/bn.h>
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
#include <openssl/ecdh.h>
#include "eckey.h"
using namespace v8;
using namespace node;
static Handle<Value> V8Exception(const char* msg) {
HandleSc... |
<commit_before>/****************************************************************************
* Copyright (c) 2012-2017 by the DataTransferKit authors *
* All rights reserved. *
* ... |
<commit_before>//
// itkBioFormatsImageIO.cxx
//
/*
OME Bio-Formats package for reading and converting biological file formats.
Copyright (C) 2005-@year@ UW-Madison LOCI and Glencoe Software, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
<commit_before>/**
* Copyright (c) 2010 Daniel Wiberg
*
* 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, mod... |
<commit_before>// Maintainer: Jan Kristian Sto. Domingo [jstod001@ucr.edu]
// exec.cpp for rshell
#include <iostream>
#include <string>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
using namespace std;
//Notes on function formats:
//execvp... |
<commit_before>/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code (for the most part). */
/* See fileChksum.h for a description of this API call.*/
#include "fileChksum.hpp"
#in... |
<commit_before>#include <tinyxml2.h>
#include <chrono>
#include <sstream>
#include <ctime>
#include "feed.h"
#include "storage.h"
namespace C3 {
namespace Feed {
std::string feed_str = "";
uint16_t feed_length;
std::string title;
std::string url;
std::string generate_rfc3999(uint64_t ms_since_... |
<commit_before>// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/InputConversion/MHLO/Passes.h"
#include "iree/compiler/Di... |
<commit_before>// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Network module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_ENETPACKET_HPP
#define NAZARA_ENETPACKET_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara... |
<commit_before>#include <assert.h>
#include <vector>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <functional>
#include "helpers.hpp"
//==============================================================================
int main(int /*argc*/, char** /*argv*/)
{
try
{
int length = 10;
s... |
<commit_before>
/*
/~` _ _ _|_. _ _ |_ | _
\_,(_)| | | || ||_|(_||_)|(/_
https://github.com/Naios/continuable
v3.0.0
Copyright(c) 2015 - 2018 Denis Blank <denis.blank at outlook dot com>
Permission is her... |
<commit_before>// (c) Mathias Panzenböck
// http://github.com/panzi/mathfun/blob/master/examples/portable_endian.h
//
#pragma once
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
# define __WINDOWS__
#endif
#if defined(__linux__) || defined(__CYGWIN__)
# inc... |
<commit_before>#include "game.hpp"
#include "exception.hpp"
namespace Quoridor {
// order in which pawns are adding
// pawns rotates according to their indexes: 0 -> 1 -> 2 -> 3 -> 0 -> ...
static const std::vector<int> pawn_idx_list = {0, 2, 1, 3};
Game::Game(int board_size) : board_size_(board_size), pawn_data_lis... |
<commit_before>/*
// Copyright (c) 2018 Intel Corporation
//
// 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>#include "Surface.h"
#include "OpenGLTexture.h"
#include "Color.h"
#include "Image.h"
#include <cstring>
#include <vector>
#include <cmath>
#include <cassert>
#include <iostream>
using namespace std;
using namespace canvas;
static vector<int> make_kernel(float radius) {
int r = (int)ceil(radius);
... |
<commit_before>/* ************************************************************************* */
/* This file is part of Shard. */
/* */
/* Shard is free software: you can redistribute it and/or modify ... |
<commit_before>/**
* Copyright 2014 Krzysztof Magosa
*
* 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... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/eff_config/timin... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_revert_sbe_mcs_setu... |
<commit_before>/************************************************************************/
/* */
/* Copyright 1998-2000 by Ullrich Koethe */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<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 "cc/surfaces/display.h"
#include "base/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "cc/debug/... |
<commit_before>#include "Variant.h"
#include "split.h"
#include "cdflib.hpp"
#include "pdflib.hpp"
#include "var.hpp"
#include <string>
#include <iostream>
#include <math.h>
#include <cmath>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <getopt.h>
using namespace std;
using namespace vcf;
void ... |
<commit_before>
#define TC_LIST_TEMPLATE \
typename T, uint32_t DEFAULT_ELEMENT_COUNT, class AllocatorType, class Policy
#define TC_LIST_TEMPLATE_PARAMS \
T, DEFAULT_ELEMENT_COUNT, AllocatorType, Policy
template< TC_LIST_TEMPLATE >
void TCList< TC_LIST_TEMPLATE_PARAMS >::_SetFirst( ElementType* /*pEl*/ )
{
}
... |
<commit_before>#ifndef XSIMD_CONFIG_HPP
#define XSIMD_CONFIG_HPP
/**
* high level free functions
*
* @defgroup xsimd_config_macro Instruction Set Detection
*/
/**
* @ingroup xsimd_config_macro
*
* Set to 1 if SSE2 is available at compile-time, to 0 otherwise.
*/
#ifdef __SSE2__
#define XSIMD_WITH_SSE2 1
#els... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#include <iostream>
#include <fstream>
#include <cmath>
// [[Rcpp::depends(RcppArmadillo)]]
//' Construct several polygenic risk scores from a matrix of weights.
//' @param name Path to .ped file (or binary file, working on this now).
//' @param weights A matrix of weights with each row being beta corr... |
<commit_before>/**
* @file llcrashlookup.cpp
* @brief Base crash analysis class
*
* Copyright (C) 2011, Kitty Barnett
*
* 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;
* version 2.1 of... |
<commit_before>/**
* @file LLNearbyChatHandler.cpp
* @brief Nearby chat notification managment
*
* $LicenseInfo:firstyear=2009&license=viewergpl$
*
* Copyright (c) 2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to yo... |
<commit_before>#include <iostream>
#include "Lib.hpp"
#include "Root.hpp"
#include "QdlParser.hpp"
int main() {
try {
Lib lib;
QdlParser(std::cin, lib);
std::unique_ptr<Root> root(lib.compile("top"));
//root->dumpClauses(std::cout);
Result const res = root->solve();
std::cout << res << st... |
<commit_before>// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "intro.h"
#include "ui_intro.h"... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>//
// quadTree.cpp
// layout++
//
// Created by Andrei Kashcha on 5/21/15.
// Copyright (c) 2015 Andrei Kashcha. All rights reserved.
//
// NOTE: This code was copied as is from https://github.com/anvaka/ngraph.quadtreebh3d/blob/master/index.js
// Some of the coments are no longer relvant to C++.
/... |
<commit_before><commit_msg>Cherry Pick: Fix VertexBufferData::CopyInto bug<commit_after><|endoftext|> |
<commit_before>#include "iges.h"
#ifdef SIREN_ENABLE_IGES
bool siren_iges_install(mrb_state* mrb, struct RClass* mod_siren)
{
// Class method
mrb_define_class_method(mrb, mod_siren, "save_iges", siren_iges_save, MRB_ARGS_REQ(2));
mrb_define_class_method(mrb, mod_siren, "load_iges", siren_iges_load, MRB_ARGS_REQ... |
<commit_before>#ifndef STACK_HPP
#define STACK_HPP
#include <iostream>
#include "Card.hpp"
class Stack {
public:
Stack ( );
Stack (int c);
Stack (const Stack& rhs);
~Stack ( );
int getSize ( ) const;
int getTotalCapacity ( ) const;
bool isEmpty ( ) const;
bool isFull ( ) const;
Card* peek ( ) const;... |
<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>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** GNU Lesser General Public License Usage
**
** This file may ... |
<commit_before>
#include <algorithm>
#include <iostream>
#include "lib/units.h"
#include "c_thrustable.h"
#include "c_moveable.h"
#include "s_thrust.h"
namespace spacegun {
using namespace std;
extern const string COMPONENT_TYPE_THRUSTABLE;
void Thrust::init(aronnax::Entities& entities)
{
for (auto e : ... |
<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>#include "ofApp.h"
#include "ofxXmlSettings.h"
#include "ofxJSONElement.h"
void ofApp::setup(){
ofBackground(54, 54, 54, 255);
#ifdef TARGET_OSX
ofSetDataPathRoot("../Resources/data/");
#endif
// start logging
ofLogToFile("app.log");
// start recoding events
if (!e... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AnimationSchemesPanel.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-09-16 19:17:23 $
*
* The Contents of this ... |
<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>#ifndef __STAN__PROB__DISTRIBUTIONS__MULTIVARIATE__CONTINUOUS__DIRICHLET_HPP__
#define __STAN__PROB__DISTRIBUTIONS__MULTIVARIATE__CONTINUOUS__DIRICHLET_HPP__
#include <boost/math/special_functions/gamma.hpp>
#include <boost/random/gamma_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#i... |
<commit_before>#include "chrono_parallel/physics/ChSystemParallel.h"
#include <omp.h>
using namespace chrono;
using namespace chrono::collision;
ChSystemParallelDEM::ChSystemParallelDEM(unsigned int max_objects)
: ChSystemParallel(max_objects)
{
LCP_solver_speed = new ChLcpSolverParallelDEM(da... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2017 Gleb Mishchenko, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any... |
<commit_before>/**
Copyright (c) 2013, Philip Deegan.
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 conditions... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2018, Raghavender Sahdev.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>
/*
* Copyright 2007 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that t... |
<commit_before>// Copyright (c) 2006, Google Inc.
// All rights reserved.
//
// Author: Li Liu
//
// 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 copyr... |
<commit_before>#include "extensions/filters/http/well_known_names.h"
#include "test/integration/http_protocol_integration.h"
namespace Envoy {
namespace {
const std::string RBAC_CONFIG = R"EOF(
name: envoy.filters.http.rbac
config:
rules:
policies:
foo:
permissions:
- header: { name: ":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.