text stringlengths 54 60.6k |
|---|
<commit_before>#include "client_balancer.hxx"
#include "net/ConnectSocket.hxx"
#include "net/SocketDescriptor.hxx"
#include "net/SocketAddress.hxx"
#include "pool.hxx"
#include "async.hxx"
#include "balancer.hxx"
#include "failure.hxx"
#include "address_list.hxx"
#include <socket/resolver.h>
#include <socket/util.h>
... |
<commit_before><include stdio.h>
<include #stdio.h>
using System;
using userAuth.UITests;
using userAuth.FrameAnchor;
using NUGET.Framework;
project element static[object(slider) {
slider.static.Movable.object(for {user::prefs} meta::element)
} if [[element.slider: IOerror(pre: set, re-set: center)].post:'./makefil... |
<commit_before>#include "xchainer/python/routines.h"
#include <cstdint>
#include <string>
#include <vector>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/context.h"
#include "xchainer/device.h"
#include "xchainer/error.h"
#include "xchainer/routines/creation.h"
#include "xchainer/rout... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2010 Aldebaran Robotics
*/
#include <gtest/gtest.h>
#include <map>
#include <alcommon-ng/functor/functor.hpp>
#include <alcommon-ng/functor/makefunctor.hpp>
#include <alcommon-ng/tools/dataperftimer.hpp>
static co... |
<commit_before>/*
This file is part of libkdepim.
Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
... |
<commit_before>#include "catch.hpp"
// mapnik vector tile tile class
#include "vector_tile_tile.hpp"
TEST_CASE("Vector tile base class")
{
mapnik::box2d<double> global_extent(-20037508.342789,-20037508.342789,20037508.342789,20037508.342789);
SECTION("default constructed")
{
mapnik::vector_tile_i... |
<commit_before>#include "catch.hpp"
#include <cstdint>
#include "memory_arena.hpp"
struct alignas(32) SomeType {
int64_t x;
int64_t y;
int64_t z;
};
// Make sure that subsequent allocations that should fit into a single
// chunk are actually allocated sequentially.
TEST_CASE("Sequential memory addresse... |
<commit_before>// Catch
#include <catch.hpp>
#include <helper.hpp>
// Mantella
#include <mantella>
TEST_CASE("quasiRandomSequence: getHaltonSequence", "") {
arma::Mat<double>::fixed<2, 5> expected;
expected = {
0.0, 0.0,
1.0/2.0, 1.0/3.0,
1.0/4.0, 2.0/3.0,
3.0/4.0, 1.0/9.0,
1.0/8.0, 4.0/9.0,
... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// decimal_functions_sql_test.cpp
//
// Identification: test/sql/decimal_functions_sql_test.cpp
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===------... |
<commit_before>#ifndef MJOLNIR_TEST_UTIL_CHECK_FORCE_ENERGY_VIRIAL_HPP
#define MJOLNIR_TEST_UTIL_CHECK_FORCE_ENERGY_VIRIAL_HPP
#include <mjolnir/math/Vector.hpp>
#include <mjolnir/core/System.hpp>
#include <mjolnir/core/LocalInteractionBase.hpp>
#include <mjolnir/core/GlobalInteractionBase.hpp>
#include <type_traits>
... |
<commit_before>#include <itkImageRegionConstIterator.h>
#include <itkPasteImageFilter.h>
#include "rtkTestConfiguration.h"
#include "rtkRayEllipsoidIntersectionImageFilter.h"
#include "rtkDrawEllipsoidImageFilter.h"
#include "rtkConstantImageSource.h"
#include "rtkFieldOfViewImageFilter.h"
#include "rtkFDKConeBeamReco... |
<commit_before>/*
* Part of HTTPP.
*
* Distributed under the 3-clause BSD licence (See LICENCE.TXT file at the
* project root).
*
* Copyright (c) 2014 Thomas Sanchez. All rights reserved.
*
*/
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hp... |
<commit_before>#ifndef VIENNAGRID_STORAGE_HOOK_HPP
#define VIENNAGRID_STORAGE_HOOK_HPP
#include <iterator>
#include <vector>
#include <map>
#include "viennagrid/meta/typemap.hpp"
#include "viennagrid/storage/forwards.hpp"
namespace viennagrid
{
namespace storage
{
namespace hook
{
... |
<commit_before>/*
*
* Copyright (C) 2015 Jason Gowan
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <gtest/gtest.h>
#include "simple_constraint_handler.h"
#include <vector>
TEST(SimpleConstraintHandle... |
<commit_before>#include "tests.h"
// Work efficient prefix sum
template <typename F, typename std::enable_if<std::is_floating_point<F>::value>::type* = nullptr>
bool check_sum(cl::sycl::buffer<F, 1>& data) {
using namespace cl::sycl;
auto d = data.get_access<access::read, access::host_buffer>();
F sum = 0;
for(s... |
<commit_before>#include <QAbstractButton>
#include "KVSettingsDialog.h"
#include "ui_KVSettingsDialog.h"
#include "KVMainWindow.h"
#include "KVDefaults.h"
KVSettingsDialog::KVSettingsDialog(KVMainWindow *parent, Qt::WindowFlags f) :
QDialog(parent, f),
ui(new Ui::KVSettingsDialog)
{
ui->setupUi(this);
ui->transl... |
<commit_before>// Copyright (c) 2010 Nickolas Pohilets
//
// This file is a part of the unit test suit for the CppEvents library.
//
// 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... |
<commit_before>// Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
<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>/* 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>/* Copyright (c) 2010 - 2021 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, co... |
<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>/*************************************************************************
*
* 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: ManifestImport.cxx,v $
* $Revisi... |
<commit_before>/***************************************************************************
connectionstatusplugin.cpp
-------------------
begin : 26th Oct 2002
copyright : (C) 2002-2003 Chris Howells
email : how... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>#include "pch.h"
#include "utils.h"
#include "ui/dial_button.h"
#include "ui/expanded_tab.h"
#include "utf8.h"
#if defined (WIN32)
#include <Rpc.h>
#elif defined (__ANDROID__) || defined (__EMSCRIPTEN__)
#include <uuidlib/uuid.h>
#else
#include <uuid/uuid.h>
#endif
std::string Utils::generateUUID( ... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 app... |
<commit_before>/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 req... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#include "Action.h"
Action::Action(const int _action):
action(_action)
{}
Action::Execute()
{}
<commit_msg>added comparison operator<commit_after>#include "Action.h"
Action::Action(const int _action):
action(_action)
{}
Action::Execute()
{
//call stored function
}
bool operator==(const Action& a1)... |
<commit_before>#ifndef DUNE_STUFF_MATH_HH
#define DUNE_STUFF_MATH_HH
#include <vector>
#include <limits>
#include <algorithm>
#include <cstring>
#include <iostream>
#include "static_assert.hh"
#include <boost/static_assert.hpp>
#include <boost/fusion/include/void.hpp>
#include <boost/format.hpp>
#include <boost/accumu... |
<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>/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Pavel Strakhov
*
* 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>//
// kern_nvhda.cpp
// WhateverGreen
//
// Copyright © 2018 vit9696. All rights reserved.
//
#include "kern_nvhda.hpp"
#include <Headers/kern_util.hpp>
#include <libkern/libkern.h>
#include <IOKit/pci/IOPCIDevice.h>
#include <IOKit/IODeviceTreeSupport.h>
// Workaround for systems with BIOSes that ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MasterPageObserver.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2007-07-31 17:25:53 $
*
* The Contents of this file... |
<commit_before>/**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#include <iostream>
#include "core/driver.h"
#include "core/modmanager.h"
#include "core/value.h"
#include "core/cstring.h"
#include "core/scope.h"
#include ... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// Planet - An atmospheric code for planetary bodies, adapted to Titan
//
// Copyright (C) 2013 The PECOS Development Team
//
// This library is fre... |
<commit_before>#include "word.h"
#include "kwic.h"
#include "cute.h"
#include "ide_listener.h"
#include "xml_listener.h"
#include "cute_runner.h"
void testWordShouldBeLessComparesInternalValue() {
//Arrange
const Word word1("abc");
const Word word2("bcd");
//Assert
ASSERT_LESS(word1, word2);
}
void testWordShoul... |
<commit_before>/*
* RBDecorators.cpp
* golf
*
* Created by Robert Rose on 4/20/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "RBDecorators.h"
#include "RudeDebug.h"
#include "RudeFile.h"
#include "RudeTextureManager.h"
#include "RudeTweaker.h"
bool gRenderDecos = true;
RUDE_... |
<commit_before>/*
* RBDecorators.cpp
* golf
*
* Created by Robert Rose on 4/20/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "RBDecorators.h"
#include "RudeDebug.h"
#include "RudeFile.h"
#include "RudeTextureManager.h"
#include "RudeTweaker.h"
bool gRenderDecos = true;
RUDE_... |
<commit_before>#include<stdio.h>
#include<stdlib.h>
int main()
{
int a;
a = 20161107;
printf_s("%d\n", a);
system("pause");
return(0);
}<commit_msg>Update Source.cpp<commit_after>#include<stdio.h>
#include<stdlib.h>
int main()
{
int b;
b = 20161107;
printf_s("%d\n", b);
system("pause");
return(0);
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sortparam.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2008-01-29 15:20:06 $
*
* The Contents of this file are made... |
<commit_before><commit_msg>GPU Calc: Fixed accuracy bug of BitAnd<commit_after><|endoftext|> |
<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: xeescher.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2005-01-14 12:09:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
BSD 3-Clause License
Copyright (c) 2019-2020, bitsofcotton
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 retain the above copyright notice, t... |
<commit_before><commit_msg>sc: refactor ScDrawTextObjectBar::ExecuteAttr<commit_after><|endoftext|> |
<commit_before>int main()
{
//show message
return 0;
}
<commit_msg>Update ex1_1.cpp<commit_after>int main()
{
return 0;
}
<|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: chart2uno.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2004-06-04 11:53:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include "HgTexture.h"
#include <glew.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <vector>
HgTexture::gpuUpdateTextureFunction HgTexture::updateTextureFunc;
AssetManager<HgTexture> HgTexture::imageMap;
HgTexture::TexturePtr HgTexture::acquire(const std::string& path, TextureTy... |
<commit_before>/* Copyright 2013 Roman Kurbatov
*
* 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 la... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_resource_protocols.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name: app.cpp
// Purpose: Implementation of classes for syncodbcquery
// Author: Anton van Wezenbeek
// Copyright: (c) 2014 Anton van Wezenbeek
///////////////////////////////////////////////////////////////////... |
<commit_before>#include "wasm-binary.h"
#include "wasm-s-parser.h"
using namespace std;
namespace {
string wast2wasm(string input, bool debug = false) {
wasm::Module wasm;
try {
if (debug) std::cerr << "s-parsing..." << std::endl;
wasm::SExpressionParser parser(const_cast<char*>(input.c_str()));
was... |
<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
* "... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// hash_join_test.cpp
//
// Identification: tests/executor/hash_join_test.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===---------------------------... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2012 Couchbase, 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 ... |
<commit_before>/*
* Copyright (C) 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.
*/
#include <libport... |
<commit_before>#ifdef TREE_HPP
#include <cstddef>
#include <cstdlib>
int compare( const int left, const int right );
template < class T >
Tree< T >::Tree() {
this->root = nullptr;
}
template < class T >
Tree< T >::~Tree() {
destroy( &( this->root ) );
}
template < class T >
void Tree< T >::destroy( Node< T... |
<commit_before>// Copyright (C) 2010-2012 Joshua Boyce.
// See the file COPYING for copying permission.
#include "hadesmem/pelib/section_list.hpp"
#include <sstream>
#include <utility>
#define BOOST_TEST_MODULE section_list
#include "hadesmem/detail/warning_disable_prefix.hpp"
#include <boost/test/unit_tes... |
<commit_before>#ifndef MJOLNIR_BOUNDARY_CONDITION
#define MJOLNIR_BOUNDARY_CONDITION
#include <cassert>
namespace mjolnir
{
template<typename realT, typename coordT>
struct UnlimitedBoundary
{
typedef realT real_type;
typedef coordT coordiante_type;
UnlimitedBoundary() = default;
~UnlimitedBoundary(... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE libmace
#define BOOST_TEST_NO_MAIN
#include <boost/test/unit_test.hpp>
#include "ContextService.h"
#include "AccessLine.h"
#include "MaceKey.h"
#include "HeadEventDispatch.h"
namespace mace{
class __ServiceStackEvent__;
class __ScopedTransition__... |
<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/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_window.h"
#include "chrom... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
// TODO(rafaelw,erikkay) disabled due to flakiness
// BUG=22668 (probably the... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/spellchecker/spellcheck_message_filter.h"
#include <algorithm>
#include <functional>
#include "base/bind.h"
... |
<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/translate/translate_infobars_delegates.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#includ... |
<commit_before>#include "mocca/net/rpc/Dispatcher.h"
#include "mocca/base/ContainerTools.h"
#include "mocca/base/Error.h"
#include "mocca/base/Memory.h"
#include "mocca/log/LogManager.h"
#include "mocca/net/ConnectionFactorySelector.h"
#include "mocca/net/rpc/JsonKeys.h"
using namespace mocca::net;
Dispatcher::Dispa... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*
* libcpu: translate_singlestep.cpp
*
* This translates a single instruction and hooks up all
* basic blocks (branch target, taken, non-taken, ...)
* so that execution will always exit after the instruction.
*/
#include "llvm/BasicBlock.h"
#include "libcpu.h"
#include "libcpu_llvm.h"
#include "... |
<commit_before>/*
kopetexsl.cpp - Kopete XSL Routines
Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org>
*************************************************************************
* *
* This program is free software; you... |
<commit_before>/**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "proxy.h"
namespace ti
{
Proxy::Proxy(const std::string& _hostname,
const std::string& _po... |
<commit_before>/*
* Copyright (C) 2006 Justin Karneges
*
* 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.1 of the License, or (at your option) any later version.... |
<commit_before>//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------... |
<commit_before>//===-- Intercept.cpp - System function interception routines -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>/**
* \file TypedBaseFilter.hxx
*/
#include <ATK/Core/TypedBaseFilter.h>
#include <ATK/Core/Utilities.h>
#include <complex>
#include <cstdint>
#include <iostream>
#include <type_traits>
#include <boost/mpl/contains.hpp>
#include <boost/mpl/distance.hpp>
#include <boost/mpl/empty.hpp>
#include <boost... |
<commit_before>#include "game.hpp"
#define SCORE_MAX 3
// helper functions
static void
draw();
static void
resetBall();
// game state functions
static void
menuTitle();
static void
gameSetup();
static void
gameMain();
static void
menuWin();
static void
menuLose();
void (*gameTick)(){ &menuTitle };
Ball ball;... |
<commit_before>#include <boost/test/unit_test.hpp>
#include "util/coordinate_calculation.hpp"
#include <osrm/coordinate.hpp>
#include <cmath>
using namespace osrm;
using namespace osrm::util;
// Regression test for bug captured in #1347
BOOST_AUTO_TEST_CASE(regression_test_1347)
{
Coordinate u(FloatLongitude(-... |
<commit_before>/*********************************************************************
* NAN - Native Abstractions for Node.js
*
* Copyright (c) 2018 NAN contributors
*
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
********************************************************************/
#inclu... |
<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 LOCK_FREE_QUEUE_HPP
#define LOCK_FREE_QUEUE_HPP
#include <atomic>
#include <utility>
namespace ctl {
/// Thread safe and lock free FIFO queue.
/** Note: implementation is from:
http://www.drdobbs.com/parallel/writing-lock-free-code-a-corrected-queue/210604448
**/
templat... |
<commit_before>/*
* Android File Transfer for Linux: MTP client for android devices
* Copyright (C) 2015 Vladimir Menshakov
* 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 ... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015-2018 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* T... |
<commit_before>// Copyright (c) 2015 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-CHROMIUM file.
#include "browser/permission_manager.h"
#include "base/callback.h"
#include "content/public/browser/permission_type.h"
names... |
<commit_before>#include "iostream"
#include "cstdlib"
#include "optional"
using namespace std;
/*
LinkedList
- Estrutura fundamental, pois todos os outros partem dele
- Tamanho variavel**
- Um nó aponta para o proximo, se o nó for o "primeiro" o mesmo é NULL
*/
template<class T>
struct Node{
T value;... |
<commit_before>// (C) Copyright Gennadiy Rozental 2001-2002.
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied warranty,
// and with no claim as to its suitability... |
<commit_before><commit_msg>Disable OCSP until we have fixed the crash in OCSP code. As a result our EV checks must fail because EV requires revocation checking. (We aren't downloading CRLs yet.)<commit_after><|endoftext|> |
<commit_before><commit_msg><commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/type_traits.h"
#include "base/basictypes.h"
#include <gtest/gtest.h>
namespace base {
namespace {
struct AStruct {};
... |
<commit_before>#ifndef SIGNALSRLATCH_HPP_INCLUDED
#define SIGNALSRLATCH_HPP_INCLUDED
#include <iostream>
#include "ComponentEssentials.h"
#include "ComponentUtilities.h"
#include "math.h"
//!
//! @file SignalSRlatch.hpp
//! @author Petter Krus <petter.krus@liu.se>
//! @date Fri 28 Jun 2013 13:01:40
//! @b... |
<commit_before>#ifndef SLIC3RXS
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <initializer_list>
#include <memory>
#include <regex>
#include "PrintConfig.hpp"
#include "ConfigBase.hpp"
namespace Slic3r {
/// Exception class for invalid (but correct type) option values.
/// Thrown by validate()
class InvalidOpti... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/type_traits.hpp>
#include <agency/execution/executor/new_executor_traits/is_simple_executor.hpp>
#include <agency/execution/executor/new_executor_traits/is_bulk_executor.hpp>
namespace agency
{
template<class T>
using new_is_exe... |
<commit_before>// Copyright © 2010-2015 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "CefBrowserWrapper.h"
#include "CefAppUnmanagedWrapper.h"
#include "JavascriptRootObject... |
<commit_before>// @(#)root/thread:$Id$
// Author: Enric Tejedor, CERN 12/09/2016
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* MPIAggregator.cpp
*
* Created on: Feb 20, 2018
* Author: William F Godoy godoywf@ornl.gov
*/
#include "MPIAggregator.h"
#include "adios2/helper/adiosFunctions.h"
n... |
<commit_before>/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2008-2011 Ames Laboratory
Iowa State University and The Regents of the University of Michigan All rights
reserved.
HOOMD-blue may contain modifications ("Contributions") provide... |
<commit_before>//################################################
// This code file
// defines Measure class used to track properties
// (e.g. peak, min, duration) of specified state variable.
//
// Copyright (C) 2015 Thomas J. Hund.
// Updated 07/2015
// Email thomas.hund@osumc.edu
//##################################... |
<commit_before>#pragma once
#ifndef OPENGM_GRAPHICALMODEL_MANIPULATOR_HXX
#define OPENGM_GRAPHICALMODEL_MANIPULATOR_HXX
#include <exception>
#include <set>
#include <vector>
#include <queue>
#include "opengm/graphicalmodel/graphicalmodel.hxx"
#include "opengm/graphicalmodel/space/discretespace.hxx"
#include "opengm/f... |
<commit_before>/*
============================================================================
Author : Alexey Tikhvinsky
Copyright : Copyright (C) 2011 Rhomobile (http://www.rhomobile.com).
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the t... |
<commit_before>// Copyright (c) 2012, Steinwurf ApS
// 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, thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.