text stringlengths 54 60.6k |
|---|
<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/extensions/extension_popup_api.h"
#include "base/json/json_writer.h"
#include "base/string_util.h"
#include "... |
<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/net/connection_tester.h"
#include "net/base/mock_host_resolver.h"
#include "net/test/test_server.h"
#include ... |
<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/ui/webui/ntp/ntp_login_handler.h"
#include <string>
#include "base/bind.h"
#include "base/bind_helpers.h"
#i... |
<commit_before><commit_msg>HMI: Set default HMIMode to Mkz Standard Debug.<commit_after><|endoftext|> |
<commit_before>#include "variant_builder_multi_sample_vector.h"
#include "variant.h"
#include <boost/test/unit_test.hpp>
#include <stdexcept>
using namespace std;
using namespace gamgee;
// Input and expected output for both test_integer_multi_sample_vector_multiple_samples and test_integer_multi_sample_vector_multi... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* 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 t... |
<commit_before>//------------------------------------------------------------------------------
// TextureFloat.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/App.h"
#include "Render/RenderFacade.h"
#include "Debug/DebugFacade.h"
#include "Ren... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documenta... |
<commit_before>/*
All Hands On Deck
Copyright (C) 2015-2017 Vladimir "allejo" Jimenez
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 3 of the License, or
(at your ... |
<commit_before>// RUN: rm -rf %t && mkdir %t
// RUN: mkdir -p %t/ctudir
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu \
// RUN: -emit-pch -o %t/ctudir/ctu-other.cpp.ast %S/Inputs/ctu-other.cpp
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu \
// RUN: -emit-pch -o %t/ctudir/ctu-chain.cpp.ast %S/Inputs/ctu-chain.cpp
... |
<commit_before><commit_msg>[axl_io] fix: io::SharedMemoryTransport did not release the lock on open-error<commit_after><|endoftext|> |
<commit_before>
#ifndef __MIRRORED_CACHE_HPP__
#define __MIRRORED_CACHE_HPP__
#include "event_queue.hpp"
#include "cpu_context.hpp"
// This cache doesn't actually do any operations itself. Instead, it
// provides a framework that collects all components of the cache
// (memory allocation, page lookup, page replacemen... |
<commit_before>#include "u_memory.h"
#include "c_complete.h"
namespace c {
struct completer {
completer();
~completer();
completer *insert(const u::string &c, bool term = true);
static int at(int ch);
static completer *insert(completer *h, const u::string &c);
static void dfs(completer *n, con... |
<commit_before>/*!
* \file painter_attribute.hpp
* \brief file painter_attribute.hpp
*
* Copyright 2016 by Intel.
*
* Contact: kevin.rogovin@intel.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 ca... |
<commit_before>// This file is part of the AliceVision 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 at https://mozilla.org/MPL/2.0/.
#include <aliceVision/feature/imageDescriberCommon.h... |
<commit_before>/**
* @file
* A mechanism to get network interface configurations a la Unix/Linux ifconfig.
*/
/******************************************************************************
* Copyright (c) 2010-2012, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute... |
<commit_before>#include <geometry/plane_3d.h>
#include <gtest/gtest.h>
#include <iostream>
using Vec1 = std::array<double,3>;
using Vec2 = Eigen::Vector3d;
using Plane3D1 = cgogn::geometry::Plane3D<Vec1>;
using Plane3D2 = cgogn::geometry::Plane3D<Vec2>;
TEST(Plane3D_TEST, NameOfType)
{
EXPECT_EQ(cgogn::name_of_type(... |
<commit_before>// Copyright © 2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner ... |
<commit_before>// Copyright 2019 The Marl Authors.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
<commit_before>//!
//! @author Yue Wang
//! @date 26.11.2014
//!
//! @brief Implementation for Listing 4.13
//!
#include <../include/utilities.hpp>
#include <iostream>
#include <list>
#include <algorithm>
#include <future>
namespace para {
/**
* @brief parallel_functional_quick_sort
* @param list
* @return sor... |
<commit_before>// RUN: cat %s | %cling | FileCheck %s
// The test verifies the expected behavior in cling::utils::Transform class,
// which is supposed to provide different transformation of AST nodes and types.
#include "cling/Interpreter/Interpreter.h"
#include "cling/Interpreter/LookupHelper.h"
#include "cling/Uti... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010-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:
*
* * Redistributio... |
<commit_before>#pragma once
#include <crab/support/debug.hpp>
#include <crab/support/os.hpp>
#include <crab/types/variable.hpp>
#include <boost/optional.hpp>
namespace crab {
// Very simple language for expressing constraints over reference variables.
template <typename Number, typename VariableName> class referenc... |
<commit_before>/*
* Copyright (c) 2013 Teragon Audio. 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 lis... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_MAIN_MENU_OVERLAY_HPP
#define RJ_GAME_MAIN_MENU_OVERLAY_HPP
#include "site_credits.hpp"
#include "site_editor.hpp"
#include "site_home.hpp"
#include "site_inventar.hpp"
#include "site_levels.hpp"
#inc... |
<commit_before>/**
* \file testIntegrator_Peak.cpp
* This file is a unit test for Integrator.h and its' associated files.
* The test function peak varies with the parameter alpha to create an
* increasingly sharp point at the abscissa equal to pi/4.
*/
#include <NumericalIntegration.h>
#include <iostream>
#incl... |
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "LeapSerial.h"
#include "AESStream.h"
#include <gtest/gtest.h>
#include <numeric>
#include <vector>
static const std::array<uint8_t, 32> sc_key{ 0x99, 0x84, 0x49, 0x28 };
class AESStreamTest:
public testing... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2017 Roman Lebedev
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 License, or (at... |
<commit_before>#if ENABLE_S3
#include "s3.hh"
#include "s3-binary-cache-store.hh"
#include "nar-info.hh"
#include "nar-info-disk-cache.hh"
#include "globals.hh"
#include "compression.hh"
#include "download.hh"
#include "istringstream_nocopy.hh"
#include <aws/core/Aws.h>
#include <aws/core/VersionConfig.h>
#include <a... |
<commit_before>//! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the BSD License.
*/
#include <triton/api.hpp>
#include <triton/callbacks.hpp>
#include <triton/exceptions.hpp>
namespace triton {
namespace callbacks {
Callbacks::Callbacks(triton::API& api) : api(api) {
th... |
<commit_before>#include "stdafx.h"
#include "AutowiringTest.h"
#include "Autowired.h"
#include "TestFixtures/SimpleObject.h"
#include "TestFixtures/SimpleReceiver.h"
TEST_F(AutowiringTest, VerifyAutowiredFast) {
// Add an object:
m_create->Inject<SimpleObject>();
// Verify that AutowiredFast can find this objec... |
<commit_before>/**
\brief Empty program which does OGL init; for simple testing.
*/
#include "StdTuvokDefines.h"
#include <cstdlib>
#include <iostream>
#include <memory>
#include <GL/glew.h>
#include "Controller/Controller.h"
#include "context.h"
using namespace tuvok;
int main(int, const char *[])
{
try {
... |
<commit_before>#pragma once
#include <earcut.hpp>
#include <memory>
#include <vector>
template <typename Coord, typename Polygon>
class EarcutTesselator {
public:
using Vertex = std::array<Coord, 2>;
using Vertices = std::vector<Vertex>;
EarcutTesselator(const Polygon &polygon_)
: polygon(polygon... |
<commit_before>/*******************************************************************************
* tests/api/reduce_node_test.cpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com>
*
* This file has no license. Only Chuck Norris can compile it.
************************************... |
<commit_before>#include "test_common.h"
#include <signal.h>
#include <thread>
#include <evpp/exp.h>
#include <evpp/libevent_headers.h>
#include <evpp/libevent_watcher.h>
#include <evpp/timestamp.h>
#include <evpp/event_loop.h>
#include <evpp/event_loop_thread.h>
namespace evtimer {
static evpp::Duration g_timeout(... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@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... |
<commit_before>/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
smt_strategic_solver.h
Abstract:
Create a strategic solver with tactic for all main logics
used in SMT.
Author:
Leonardo (leonardo) 2012-02-19
Notes:
--*/
#include"cmd_context.h"
#include"combined_solver.h"
#include"tactic... |
<commit_before>#include "Semaphore.hpp"
#include "Vehicle.hpp"
#include "Road.hpp"
#include "doubly_linked_list.h"
#include <ctime>
int main(int argc, char const *argv[]) {
srand(time(0));
DoublyLinkedList<Event*> eventos;
// Create Semaphores
Semaphore *S1North = new Semaphore();
Semaphore *S1Ea... |
<commit_before>#include <ctre.hpp>
#include <iostream>
int main() {
using namespace std::string_view_literals;
auto input = "123,456,768"sv;
#if __cpp_nontype_template_parameter_class
for (auto match: ctre::range<"(?<first>[0-9])[0-9]++">(input)) {
#else
using namespace ctre::literals;
static constexpr a... |
<commit_before>//
// Copyright 2019 The ANGLE 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.
//
// Tests the eglQueryStringiANGLE and eglQueryDisplayAttribANGLE functions exposed by the
// extension EGL_ANGLE_feature_control.... |
<commit_before>#include <iostream>
#include <string>
using namespace std::string_literals;
#include "acmacs-base/argc-argv.hh"
#include "acmacs-base/read-file.hh"
// #include "acmacs-base/enumerate.hh"
#include "acmacs-chart/ace.hh"
#include "acmacs-map-draw/draw.hh"
#include "settings.hh"
#include "mod-applicator.hh... |
<commit_before>#include "country_info.hpp"
#include "country_polygon.hpp"
#include "country.hpp"
#include "../indexer/geometry_serialization.hpp"
#include "../geometry/region2d.hpp"
#include "../coding/read_write_utils.hpp"
#include "../base/string_utils.hpp"
namespace storage
{
/*
class LessCountryDef
{
... |
<commit_before>/*******************************************************************************
*
* BSD 2-Clause License
*
* Copyright (c) 2017, Sandeep Prakash
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
<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 "ppapi/tests/test_instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/var.h"
#include "ppapi/tests/test_ima... |
<commit_before>#include "outcome.hpp"
#include <type_traits>
#include <iostream>
#include <string>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <vector>
namespace outcome = OUTCOME_V2_NAMESPACE;
enum class ConversionErrc
{
Success = 0,
EmptyString = 1,
IllegalChar = 2,
Too... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: OutlineViewShellBase.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:10:44 $
*
* The Contents of this fi... |
<commit_before>#include <sdbusplus/exception.hpp>
#include <sdbusplus/sdbus.hpp>
extern sdbusplus::SdBusImpl sdbus_impl;
namespace sdbusplus
{
namespace exception
{
SdBusError::SdBusError(int error, const char* prefix, SdBusInterface* intf) :
std::system_error(error, std::generic_category()), error(SD_BUS_ERROR_... |
<commit_before>#include <gtest/gtest.h>
#include "test/util.hpp"
// WX_NAME is defined by the cmake file to be one of the algorithms
#include "@WX_NAME@.hpp"
#define WX_NAME @WX_NAME@
void foo(WX_NAME<size_t, size_t> bar) {}
TEST(WX_NAME, smoketest) {
//std::cout << "foo\n";
}
<commit_msg>Add initial tests<commi... |
<commit_before>#define BOOST_TEST_DYN_LINK
//#define BOOST_TEST_MODULE balance
#include <boost/test/unit_test.hpp>
#include <system.hh>
#include "balance.h"
using namespace ledger;
struct balance_fixture {
balance_fixture() {
times_initialize();
amount_t::initialize();
// Cause the display precision for do... |
<commit_before>//
// main.cpp
// cPWP
//
// Created by Evan McCartney-Melstad on 12/31/14.
// Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved.
//
/*
Program for calculating pairwise pi from a file full of unsigned char integers
*/
#include <string>
#include <iostream>
#include <fstream>
#include <v... |
<commit_before>#include "iostream"
#include "stdlib.h"
#include "GL/freeglut.h"
#include "GL/gl.h"
using namespace std;
int play=0; // game's pause and play state
int windowWidth=900,windowHeight=600;
float x=410,y=60; // (x,y) are the mid point of square
//float xtest=0,ytest=121,speedtest=0.4;
int attach=0; // whea... |
<commit_before>
// Copyright (c) 2015 Guo Xiao <guoxiao08@gmail.com>
// 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... |
<commit_before>#include <iostream>
#include <map>
#include <list>
#include <algorithm>
#include <queue>
#include <stack>
using std::map;
using std::list;
using std::cout;
using std::find;
using std::queue;
using std::stack;
class Graph {
map<int, list<int> > v;
public:
void addEdge(int a, int b) {
v[a].push_b... |
<commit_before>#include <SDL.h>
#include <imgui.h>
#include "SeqPlayer.h"
#include "SeqProjectHeaders.h"
#include "Sequentia.h"
#include "SeqWorkerManager.h"
#include "SeqTaskDecodeVideo.h"
#include "SeqDecoder.h"
#include "SeqRenderer.h"
#include "SeqMaterialInstance.h"
#include "SeqList.h"
#include "SeqTime.h"
SeqP... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>/***************************************************************************
* @file queue_by_2stacks.hpp
* @author Alan.W
* @date 2 Jun 2014
* @remark This code is for Introduction to Algorithms
* @note code style : STL
* @attention bug found, check issue #2 for ... |
<commit_before>#pragma sw require header org.sw.demo.google.protobuf.protoc
#pragma sw require header org.sw.demo.qtproject.qt.base.tools.moc
/*void configure(Build &s)
{
if (s.isConfigSelected("mt"))
{
auto ss = s.createSettings();
ss.Native.LibrariesType = LibraryType::Static;
ss.Nati... |
<commit_before>#include "AudioManager.h"
#include <math.h>
#include <algorithm>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include "../globals.h"
#include "../constants.h"
using namespace troen::sound;
float ChangeSemitone(float frequency, float variation) {
static float semitone_ratio = pow(2.0f, ... |
<commit_before>// Copyright (c) 2017 Jackal Engine, MIT License.
#include "Win32WindowTest.hpp"
#include "Core/Win32/Win32Window.hpp"
// OpenGL Testing as well.
#include "OpenGLDevice/OpenGLDevice.hpp"
#include "OpenGLDevice/Win32/Win32OpenGL.hpp"
#include <gtest/gtest.h>
TEST(Win32, Win32WindowTest)
{
#if JACKAL_P... |
<commit_before>#include "widgets/WidgetScript.h"
#include "ParticleUniverseSystemManager.h"
namespace i6engine {
namespace particleEditor {
namespace widgets {
WidgetScript::WidgetScript(QWidget * par) : QWidget(par), _changeable(true) {
setupUi(this);
connect(textEdit, SIGNAL(textChanged()), this, SLOT(change... |
<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/chromeos/setting_level_bubble.h"
#include <gdk/gdk.h>
#include "base/timer.h"
#include "chrome/browser/chrom... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <vector>
#include <boost/program_options.hpp>
#include <davix.hpp>
#include "davix_test_lib.h"
namespace po = boost::program_options;
using namespace Davix;
#define SSTR(message) static_cast<std::ostringstream&>(std::ostringstream().flush() << message).s... |
<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/devtools/devtools_file_helper.h"
#include <vector>
#include "base/bind.h"
#include "base/callback.h"
#includ... |
<commit_before>/*! @page build Building MLPACK From Source
@section buildintro Introduction
MLPACK uses CMake as a build system and allows several flexible build
configuration options. One can consult any of numerous CMake tutorials for
further documentation, but this tutorial should be enough to get MLPACK built
an... |
<commit_before>#include "catch.hpp"
#include <lua.hpp>
#include <luwra.hpp>
#include <cstring>
#include <string>
#include <utility>
#include <type_traits>
template <typename I>
struct NumericTest {
static
void test(lua_State* state) {
const I max_value = std::numeric_limits<I>::max();
const I min_value = std::... |
<commit_before><commit_msg>Add support for texture-sharpening sample bias in Metal.<commit_after><|endoftext|> |
<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/extensions/webstore_installer.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/file_ut... |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2009-2012 Matthias Kretz <kretz@kde.org>
Vc 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 3 of
th... |
<commit_before>//---------------------------- constraints.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
... |
<commit_before>#include <iostream>
#include <string>
#include <iomanip>
#include <stack>
#include <limits>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cassert>
#include "matrix.h"
#ifdef DEBUG
#define LOG(x) std::cerr << x
#else
#define LOG(x)
#endif
using namespace std;
// Largest ne... |
<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/ui/browser_list.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/message_loop.h"
#i... |
<commit_before>// Author: Akira Okumura 2011/5/1
/******************************************************************************
* Copyright (C) 2006-, Akira Okumura *
* All rights reserved. *
*****************************... |
<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.
//
// Implementation of the MalwareDetails class.
#include "chrome/browser/safe_browsing/malware_details.h"
#include "base/bind.h"
#in... |
<commit_before>// ======================================================================== //
// Copyright 2009-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<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/ui/views/ash/screenshot_taker.h"
#include <string>
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
... |
<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/ui/webui/options/core_options_handler.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/ui_tes... |
<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 <map>
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string_number_conversions.h"
#include "base/t... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gradwrap.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 09:34:42 $
*
* The Contents of this file are made ... |
<commit_before>#include <ValueElement.h>
namespace tests {
namespace valueElementSuite {
template<typename T>
bool exactlyEqual(const ValueElement<T, true>& a, const ValueElement<T, true>& b) {
return a.value() == b.value() && a.uncertainty() == b.uncertainty();
}
template<typename V>
void testComp(V a, V b, boo... |
<commit_before><commit_msg>sw33bf06: #i111742#: SidebarTxtControlAcc.cxx: apply patch by pjanik<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlgctl3d.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 15:45:11 $
*
* The Contents of this file are made ... |
<commit_before>/*******************************************************************************
* tests/net/test_net_group.cpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
*
* This file has no license. Only Chuck Norris can compile it.
*****************************************... |
<commit_before>/* Copyright (c) 2008-2017 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 it... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 29/08/2011
This file is part of MRtrix.
MRtrix is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free So... |
<commit_before>#include <thread>
#include <chrono>
#include "Common.hpp"
#include "builtins/StandardBuiltins.hpp"
#include "core/Engine.hpp"
namespace K3 {
StandardBuiltins::StandardBuiltins(Engine& engine)
: __engine_(engine), __rand_distribution_(0.0, 1.0) {}
boost::mutex StandardBuiltins::__mutex_;
unit_t S... |
<commit_before>/*
* Copyright (C) 2010, 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this li... |
<commit_before>/**
* @file fileAttr.cc
* @author Konrad Zemek
* @copyright (C) 2015 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "fileAttr.h"
#include "messages.pb.h"
#include <sys/types.h>
#include <sstream>
#include <system_error>
#includ... |
<commit_before><commit_msg>Added Todoconfig in damagemanager<commit_after><|endoftext|> |
<commit_before>/* Gobby - GTK-based collaborative text editor
* Copyright (C) 2008-2014 Armin Burgmeier <armin@arbur.net>
*
* 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 noti... |
<commit_before>/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 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>/* ************************************************************************* */
/* This file is part of Shard. */
/* */
/* Shard is free software: you can redistribute it and/or modify ... |
<commit_before>/*
* Copyright (c) 2013-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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.apac... |
<commit_before>/*******************************************************************************
* thrill/common/math.hpp
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2013-2015 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE fil... |
<commit_before>/*
* Copyright (c) 2017 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>/**
* (c) 2019 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 rules set forth in the Terms of Service.
*
* The MEGA SDK is distributed in the h... |
<commit_before>#include "Board.h"
#include <cstring>
Board::Board()
{
memset(board, NIL, sizeof(board));
board[A1] = board[H1] = WHITE_ROOK;
board[B1] = board[G1] = WHITE_KNIGHT;
board[C1] = board[F1] = WHITE_BISHOP;
board[D1] = WHITE_QUEEN;
board[E1] = WHITE_KING;
board[A2] = board[B2] = board[C2] = ... |
<commit_before>/*
Copyright (c) 2009-2014, Jack Poulson
Copyright (c) 2011, The University of Texas at Austin
Copyright (c) 2014, Sayan Ghosh, University of Houston
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in th... |
<commit_before>#include "Renderer.h"
#include <iostream>
#include "platform.h"
#include GLHEADER
#include "resources/Font.h"
#include <SDL.h>
#include "Log.h"
#include "ImageIO.h"
#include "../data/Resources.h"
#include "Settings.h"
#ifdef USE_OPENGL_ES
#define glOrtho glOrthof
#endif
namespace Renderer
{
static bo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.