text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright 2004 The Apache Software 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 requi... |
<commit_before>#include <stdio.h>
#include <cmath>
#include <boost/shared_ptr.hpp>
#include <lcm/lcm-cpp.hpp>
#include "lcmtypes/drc_lcmtypes.hpp"
#include <ConciseArgs>
#include <string>
#include <cstring>
#include <fstream>
#include "CImg.h"
using namespace cimg_library;
using namespace std;
#include <path_util/path... |
<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>/* Copyright 2016 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 2019 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 "Globals.h"
#include "IncrementalRedstoneSimulator.h"
#include "Chunk.h"
#include "CommandBlockHandler.h"
#include "DoorHandler.h"
#include "RedstoneHandler.h"
#include "RedstoneTorchHandler.h"
#include "RedstoneWireHandler.h"
#include "RedstoneRepeaterHandler.h"
#include "RedstoneToggleHand... |
<commit_before>/*
* Copyright 2017-present Facebook, 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 appl... |
<commit_before>/*
Uses the sound_play library of ROS to play sound on the OS' default sound driver.
Listening on:
/tawi/motors/wheels to geometry_msgs::Twist (directions to drive)
Publishing on:
*/
#include <threemxl/platform/io/configuration/XMLConfiguration.h>
#include <threemxl/dxlassert.h>
#include <ros/ros.h>
#... |
<commit_before>// See Fossen 2011, chapter 12.3.2
#include "pseudoinverse_allocator.h"
template<typename Derived>
inline bool isFucked(const Eigen::MatrixBase<Derived>& x)
{
return !((x.array() == x.array())).all() && !( (x - x).array() == (x - x).array()).all();
}
PseudoinverseAllocator::PseudoinverseAllocator()
{... |
<commit_before>void RICHtest (Int_t evNumber1=0,Int_t evNumber2=0)
{
/////////////////////////////////////////////////////////////////////////
// This macro is a small example of a ROOT macro
// illustrating how to read the output of GALICE
// and do some analysis.
//
/////////////////////////////////////////... |
<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/content_settings/content_settings_provider.h"
namespace content_settings {
ProviderInterface::Rule::Rule() {... |
<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 "base/file_path.h"
#include "base/string_util.h"
#include "chrome/browser/password_manager/password_manager.h"
#include "chrom... |
<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 "base/debug/stack_trace.h"
#include <errno.h>
#include <execinfo.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>... |
<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 <process.h>
#include "base/message_loop.h"
#include "base/object_watcher.h"
#include "testing/gtest/include/gtest/gtest.... |
<commit_before>#include "loader.h"
#include "elf.h"
#include "except.h"
#include <fstream>
#include <iostream>
using namespace Simulator;
using namespace std;
static const int PAGE_SIZE = 4096;
// Throws an exception if the expression is false
static void Verify(bool expr, const char* error = "invalid ELF file")
{
i... |
<commit_before>#include <stdio.h>
#include <ctype.h>
#include <list>
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <RhIO.hpp>
#include "Stream.h"
#include "Shell.h"
#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
namespace RhIO
{
Shell::She... |
<commit_before>#include <netdb.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include "client.h"
#include "duckchat.h"
// Variables
struct sockaddr_in client_addr;
struct sockaddr_in server_addr;
int client_socket;
struct addrinfo *server_info;
char *channel;
// Prints an error message and exits the program.
void E... |
<commit_before>/*****************************************************************************
* discoSnp++: discovering polymorphism from raw unassembled NGS reads
* A tool from the GATB (Genome Assembly Tool Box)
* Copyright (C) 2014 INRIA
* Authors: P.Peterlongo, E.Drezen
*
* This program is free soft... |
<commit_before><commit_msg>Made some changes to create_dm_device and modify_dm_device to call _display_info. _display_info prints the status and related information about the virtual disk created.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2018 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. Al... |
<commit_before>/*
* Copyright (c) 2013 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>/**
* @file posix/net.cpp
* @brief POSIX network access layer (using cURL)
*
* (c) 2013-2014 by Mega Limited, Wellsford, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the ru... |
<commit_before>
//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 Ulrich von Zadow
//
// 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 L... |
<commit_before>// Copyright (c) 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 "config.h"
#include "PluginData.h"
#include "PluginInfoStore.h"
#undef LOG
#include "webkit/glue/glue_util.h"
#include "web... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <wincodec.h>
#include "SkAutoCoInitialize.h"
#include "SkImageDecoder.h"
#include "SkImageEncoder.h"... |
<commit_before>#include "vision_cpu.h"
template <typename scalar_t>
at::Tensor nms_cpu_kernel(
const at::Tensor& dets,
const at::Tensor& scores,
const float iou_threshold) {
AT_ASSERTM(!dets.options().device().is_cuda(), "dets must be a CPU tensor");
AT_ASSERTM(!scores.options().device().is_cuda(), "sc... |
<commit_before>/*!
* \copy
* Copyright (c) 2009-2013, Cisco Systems
* 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... |
<commit_before>#include "layouter.h"
#include "utf-8.h"
#include <harfbuzz/hb.h>
#include <harfbuzz/hb-ft.h>
#include <fribidi/fribidi.h>
#include <linebreak.h>
#include <vector>
#include <string>
#include <memory>
#include <algorithm>
typedef struct
{
std::vector<textLayout_c::commandData> run;
int dx, dy;
... |
<commit_before>/*************************************************************************
*
* $RCSfile: ContextHelper.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: bm $ $Date: 2003-10-06 09:58:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>#ifndef __COMPHELPER_UNOINTERFACETOUNIQUEIDENTIFIERMAPPER__
#define __COMPHELPER_UNOINTERFACETOUNIQUEIDENTIFIERMAPPER__
#include <map>
#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
#endif
#ifndef _COM_SUN_STAR_UNO_XINTERFACE_HPP_
#include <com/sun/star/uno/XInterface.hpp>
#endif
namespace comp... |
<commit_before>#include<iostream>
#include<fstream>
#include<string>
#include<vector>
/*to do:
figure out what other functions might be useful
populate datastructures.txt more, change name to something better like programming.txt or w/e
*/
struct rdnode {
public:
std::string topic;
std::vector<rdnode*> parents;
s... |
<commit_before>///
/// A simple clang plugin which will translate the given C file into Zomp
/// definitions
///
#include "clang/Frontend/FrontendPluginRegistry.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/AST.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Basic/SourceManager.h"
#include ... |
<commit_before>#ifndef regex_impl_hh_INCLUDED
#define regex_impl_hh_INCLUDED
#include "exception.hh"
#include "flags.hh"
#include "ref_ptr.hh"
#include "unicode.hh"
#include "utf8.hh"
#include "utf8_iterator.hh"
#include "vector.hh"
#include <string.h>
namespace Kakoune
{
enum class MatchDirection
{
Forward,
... |
<commit_before>// Copyright (c) 2009-2017 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: jglaser
#include "MolecularForceCompute.h"
#include "hoomd/CachedAllocator.h"
#include "hoomd/Autotuner.h"
#ifdef ENABLE_CUDA
#... |
<commit_before>#include "Register/Apply.hpp"
#include "Chip/MKL27Z4.hpp"
#include "Register/Seam.hpp"
#include <iostream>
#include <sstream>
#include <iomanip>
namespace Kvasir {
namespace Register {
template<typename T>
struct ExecuteSeam<T, ::Kvasir::Tag::User> : RecordActions<T> {};
}
}
int main() {
using... |
<commit_before>/*
* Copyright (C) 2015 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 limit... |
<commit_before>#include "coincontroltreewidget.h"
#include "coincontroldialog.h"
CoinControlTreeWidget::CoinControlTreeWidget(QWidget *parent) :
QTreeWidget(parent)
{
}
void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event)
{
if (event->key() == Qt::Key_Space) // press spacebar -> select checkbox
{
... |
<commit_before>/*****************************************************************************
* Project: RooFit *
* Package: RooFitModels *
* @(#)root/roofit:$Id$
* Authors: ... |
<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/signin_manager.h"
#include "base/command_line.h"
#include "base/string_util.h"
#include "chrome/browser/... |
<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 <algorithm>
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/mac/scoped_ns... |
<commit_before>/*
* Copyright (C) 2013 Marcin Zdun
*
* 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,
* modi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: file_path_helper.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 14:55:55 $
*
* The Contents of this file a... |
<commit_before>#include "mfem.hpp"
#include <memory>
#include <iostream>
#include <fstream>
using namespace std;
using namespace mfem;
/** After spatial discretization, the rubber model can be written as:
* 0=H(x)
* where x is the block vector representing the deformation and pressure
* and H(x) is the nonli... |
<commit_before>// Copyright (c) 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.
#include "scheduler.h"
#include <assert.h>
#include <boost/bind.hpp>
#include <utility>
CScheduler::CScheduler() ... |
<commit_before>#include <iostream>
#include <iomanip>
#include <array>
#include <bitset>
struct sudoku_cell{
using numset = std::bitset<9>;
sudoku_cell():cells{}{}
std::array<unsigned,81> cells;
std::array<numset,81> cands;
std::array<numset,9> reduced_row;
std::array<numset,9> reduc... |
<commit_before>/* $Id$ */
/*
* Copyright (c) 2010 .SE (The Internet Infrastructure 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. Redistributions of source code must re... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2009, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>#include "EventSystem.hpp"
#include <algorithm>
#include <type_traits>
namespace Kunlaboro
{
namespace detail
{
template<typename Event>
struct EventType
{
std::function<void(const Event&)> Func;
};
struct BaseComponentEvent : public EventSystem::BaseEvent
{
ComponentId Component... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <memory>
#include <Nazara/Renderer/Debug.hpp>
template<typename... Args>
NzModelRef NzModel::New(Args&&... args)
{
... |
<commit_before>#ifndef ALEPH_UTILITIES_STRING_HH__
#define ALEPH_UTILITIES_STRING_HH__
#include <algorithm>
#include <limits>
#include <regex>
#include <sstream>
#include <string>
#include <vector>
#include <cctype>
namespace aleph
{
namespace utilities
{
template <class T> T ltrim( T sequence )
{
sequence.erase... |
<commit_before>#ifndef _IZENELIB_AM_SUCCINCT_CONSTANTS_HPP
#define _IZENELIB_AM_SUCCINCT_CONSTANTS_HPP
#include <types.h>
NS_IZENELIB_AM_BEGIN
namespace succinct
{
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
/* Defined by BSIZE */
typedef uint64_t block_t;
/* Block size (64-bit environment) */
static const ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>#ifndef KGR_INCLUDE_KANGARU_DETAIL_TRAITS_HPP
#define KGR_INCLUDE_KANGARU_DETAIL_TRAITS_HPP
#include "function_traits.hpp"
#include "utils.hpp"
#include <type_traits>
#include <tuple>
namespace kgr {
namespace detail {
// void_t implementation
template<typename...>
struct voider { using type = void; ... |
<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>/* -*- 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>#ifndef SERENITY_HTTP_REQUEST_HPP_
#define SERENITY_HTTP_REQUEST_HPP_
#include <string>
#include <map>
#include <iostream>
#include "response.hpp"
namespace serenity { namespace http {
const unsigned int nothing = 0;
const unsigned int crlf_01_start = 1;
const unsigned int crlf_01_end = 2;... |
<commit_before>/**
\file undistort.cc
Apply Lensfun corrections to a PNM file in place. This means, the original
file is overwritten. The command line parameters are:
- path to the PNM file
- x coordinate of top left corner
- y coordinate of top left corner
- x coordinate of top right corner
... |
<commit_before>#ifndef VSMC_CXX11_FUNCTIONAL_HPP
#define VSMC_CXX11_FUNCTIONAL_HPP
#include <vsmc/internal/config.hpp>
#include <vsmc/internal/defines.hpp>
#if VSMC_HAS_CXX11LIB_FUNCTIONAL
#include <functional>
namespace vsmc { namespace cxx11 {
using std::function;
} }
#else // VSMC_HAS_CXX11LIB_FUNCTIONAL
#include... |
<commit_before>#ifndef VSMC_SMP_PARALLEL_GCD_HPP
#define VSMC_SMP_PARALLEL_GCD_HPP
#include <vsmc/internal/common.hpp>
#include <vsmc/smp/base.hpp>
#include <vsmc/utility/dispatch.hh>
namespace vsmc {
/// \brief Particle::value_type subtype
/// \ingroup GCD
template <unsigned Dim, typename T>
class StateGCD : public... |
<commit_before>#ifndef VSMC_SMP_PARALLEL_TBB_HPP
#define VSMC_SMP_PARALLEL_TBB_HPP
#if defined(__clang__) && !defined(_LIBCPP_VERSION) && (__GLIBCXX__ < 20100429)
#ifndef TBB_USE_CAPTURED_EXCEPTION
#define TBB_USE_CAPTURED_EXCEPTION 1
#endif
#endif // __clang__
#include <vsmc/smp/base.hpp>
#include <tbb/tbb.h>
names... |
<commit_before>/***************************************************************************
* Copyright (c) 2017, Sylvain Corlay and Johan Mabille *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#include "stdafx.h"
#include "texture_bank.h"
#include "asdf_multiplat/data/gl_resources.h"
#include "asdf_multiplat/utilities/utilities.h"
#include "asdf_multiplat/utilities/cjson_utils.hpp"
using namespace std;
namespace asdf
{
using namespace util;
namespace hexmap {
namespace data
{
text... |
<commit_before>/*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include "board.hpp"
#include "config.hpp"
namespace roadagain
{
Config::Config() : use_color_(true), automatic_(false), player_(BLACK)
{
}
Config::Config(const Config& config)
{
}
Config& Config::instance()
{
return (Config::instance_);
}
Config& Config::operator=(const Config& config)
{
}
}
... |
<commit_before>#ifndef CONFIG_HPP
#define CONFIG_HPP
const int SCREEN_WIDTH = 256;
const int SCREEN_HEIGHT = 144;
const int INITIAL_WINDOW_WIDTH = SCREEN_WIDTH;
const int INITIAL_WINDOW_HEIGHT = SCREEN_HEIGHT;
#endif<commit_msg>changed resolution (hopefully for last time)<commit_after>#ifndef CONFIG_HPP
#define CONFI... |
<commit_before>#include <nan.h>
#include <iostream>
#include <sys/msg.h>
using v8::Function;
using v8::Local;
using v8::Number;
using v8::Value;
using Nan::AsyncQueueWorker;
using Nan::AsyncWorker;
using Nan::Callback;
using Nan::New;
using Nan::Null;
#ifndef MSGMAX
#define MSGMAX 4056
#endif
#ifndef linux
struct ms... |
<commit_before>#include <SDL2/SDL.h>
SDL_Window *g_pWindow = 0;
SDL_Renderer *g_pRenderer = 0;
int main(int argc, char *argv[])
{
// init SDL
if (SDL_Init(SDL_INIT_EVERYTHING) >= 0) {
g_pWindow = SDL_CreateWindow("Hello", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 960, 640, SDL_WINDOW_SHOWN);
... |
<commit_before>#include "gameitem.h"
#include "gamescene.h"
#include <QDeclarativeExpression>
GameItem::GameItem(GameScene *parent)
: QQuickItem((QQuickItem *)parent)
, m_expression(0)
, m_updateInterval(0)
, m_collided(false)
, m_scene(0)
{
}
void GameItem::update(long delta)
{
if ((m_update... |
<commit_before>#include "ocisession.h"
#include <algorithm>
#include "oci_lib_intf.h"
#include <oci.h>
void * ocisession::envhp = NULL;
list<ocisession*> ocisession::_sessions;
ocisession::ocisession(const char * connect_str, const int connect_str_len,
const char * user_name, const int user_name_len,
... |
<commit_before>/*
* Copyright (c) 2000-2005 The Regents of The University of Michigan
* Copyright (c) 2008 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
... |
<commit_before>/*
* Copyright (c) 2003-2005 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>#include "geometry.hpp"
Segment::Segment()
{
p1=sf::Vector2f(0.f,0.f);
p2=sf::Vector2f(0.f,0.f);
}
Segment::Segment(sf::Vector2f pointA, sf::Vector2f pointB)
{
p1=pointA;
p2=pointB;
}
const sf::Vector2f Segment::intersection_time(const Segment &other) const
{
auto dir1 = p2 - p1;
... |
<commit_before>#include <QApplication>
#include <QFontDatabase>
#include <QtGlobal>
#include <QFile>
#include <QCommandLineParser>
#include "neovimconnector.h"
#include "mainwindow.h"
/**
* A log handler for Qt messages, all messages are dumped into the file
* passed via the NVIM_QT_LOG variable. Some information is... |
<commit_before>/*
Copyright (c) 2007, 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>/* Copyright (c) 2008, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this softwa... |
<commit_before>
#include <cmath>
#include <cfloat>
#include "string.h"
#include "turing_calculator.h"
turing_calculator::turing_calculator():machine_(0), instructions_(0), instructions_sum_(0), yield_execution_(false) {
}
turing_calculator::~turing_calculator() {
delete[] instructions_;
}
size_t t... |
<commit_before><commit_msg>Disable two ui_tests on linux after a WebKit merge.<commit_after><|endoftext|> |
<commit_before>/**
* @file shared_ptr.hpp
* @brief shared_ptr is a minimal implementation of smart pointer, a subset of the C++11 std::shared_ptr or boost::shared_ptr.
*
* This file includes "boost/shared_ptr.hpp" if LOGGER_USE_BOOST_SHARED_PTR is defined,
* or <memory> (or <tr1/memory>) when C++11 (or experimen... |
<commit_before>/**
* @file
* Zenderer/Math/Vector.hpp - A vector class representing a position
* in 3D (or 2D) space, fully supporting the mathematical operations
* typical of such a structure.
*
* @author George Kudrayvtsev (halcyon)
* @version 1.1.3
* @copyright Apache License v2.0
* Licensed ... |
<commit_before>//
//
// Copyright (c) 2017, 2019 Ivan Baidakou (basiliscos) (the dot dmol at gmail
// dot com)
//
// Distributed under the MIT Software License
//
#pragma once
#include "../Protocol.hpp"
#include "../Result.hpp"
#include <memory>
#include <utility>
#include <boost/asio.hpp>
#include <boost/variant.hpp... |
<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>// 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/gpu/gpu_video_decoder.h"
#include "base/command_line.h"
#include "chrome/common/child_thread.h"
#include "chrome/comm... |
<commit_before><commit_msg>Implement operator<<(std::ostream&, const uno::Any&)<commit_after><|endoftext|> |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / __... |
<commit_before><commit_msg>Fix explicit<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <Eigen/Core>
#include <vector>
#include <memory>
#include <array>
#include "mtao/types.h"
#include <sstream>
#include <numeric>
namespace mtao { namespace geometry {
template <typename T, int D>
class KDTree;
template <typename T, int D, int Axis>
//class ... |
<commit_before>#ifndef VSMC_INTERNAL_ASSERT_HPP
#define VSMC_INTERNAL_ASSERT_HPP
#include <cassert>
#include <cstdio>
#include <stdexcept>
#include <vsmc/internal/config.hpp>
#include <vsmc/internal/forward.hpp>
// Runtime assertion
#if VSMC_RUNTIME_ASSERT_AS_EXCEPTION
#define VSMC_RUNTIME_ASSERT(cond, msg) ... |
<commit_before>#pragma once
#include "zmsg_types.hpp"
namespace zmsg {
template<>
struct zmsg<mid_t::dust_check_start> {
public:
ZMSG_PU()
};
struct bool_img {
uint16_t width;
uint16_t height;
std::vector<bool> data;
public:
ZMSG_PU(width, height, data);
};
template<>
struct zmsg<mid_t::dust_check_result> {
... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libetonyek 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 a... |
<commit_before>#include "unlimited.h"
#include "test/test_bitcoin.h"
#include "../consensus/consensus.h"
#include <boost/algorithm/string.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
using namespace std;
// Defined in rpc_tests.cpp not bitcoin-cli.cpp
extern UniValue CallRPC(string str... |
<commit_before>#include "Mocks.hpp"
using namespace blackhole;
TEST(verbose_logger_t, Class) {
enum level : std::uint64_t { debug, info, warn, error };
verbose_logger_t<level> log;
UNUSED(log);
}
TEST(verbose_logger_t, OpenRecordByDefault) {
enum level : std::uint64_t { debug, info, warn, error };
... |
<commit_before>/*
* Copyright 2009-2018 The VOTCA Development Team
* (http://www.votca.org)
*
* 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
*
*... |
<commit_before>#include <map>
#include <stack>
#include "splice-pool.hpp"
#include "gtest/gtest.h"
namespace
{
const std::vector<int> values{3, 1, 4, 1, 5, 9};
std::vector<splicer::Node<int>> makeNodes()
{
std::vector<splicer::Node<int>> nodes(values.size());
for (std::size_t i(0); i < v... |
<commit_before>#include <map>
#include <stack>
#include "splice-pool.hpp"
#include "gtest/gtest.h"
namespace
{
const std::vector<int> values{3, 1, 4, 1, 5, 9};
std::vector<splicer::Node<int>> makeNodes()
{
std::vector<splicer::Node<int>> nodes(values.size());
for (std::size_t i(0); i < v... |
<commit_before>/****************************************************************************
* themefile.cpp - Theme file handling
*
* Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se>
* Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
* Copyright (c) 2004 Petri Damstn <damu@iki.fi>
*
* This file is pa... |
<commit_before>#include <time.h>
#include <random>
#include <gtest/gtest.h>
#include <u/vector.h>
#include <u/math.h>
#define VECTOR_DUMP(n) "vector[size='" << ds_size(v ## n) << "', capacity='" << ds_cap(v ## n) << "']"
#define ASSERT_CAPACITY(_q0, _q1, _q2, _q3, _q4) \
ASSERT_EQ(_q0, ds_cap(v0)) << _q0 << " => "... |
<commit_before>#include "core/os.h"
#include "core/stringutils.h"
#include <dirent.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
// copied from https://stackoverflow.com/a/145309/180307
#include <cstdio> /* defines FILENAME_MAX */
#include <utility>
#ifdef _M... |
<commit_before>/*
* Clever language
* Copyright (c) 2010 Clever Team
*
* 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... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011,2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.