text stringlengths 54 60.6k |
|---|
<commit_before>#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <gl/glew.h>
#include <gl/gl.h>
#endif
#include "qglwidget.hpp"
#include <cmath>
#include <cstddef>
#include <iostream>
#include <memory>
#include <GL/gl.h>
#include <QApplication>
#include <QBitmap>
#include <QDesktopWidget>
#inc... |
<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 "net/url_request/url_request_simple_job.h"
#include <vector>
#include "base/bind.h"
#include "base/compiler_specific.h"
#inc... |
<commit_before>#ifndef CPP2SIR_REG_HPP
#define CPP2SIR_REG_HPP
#include "cfg.hpp"
#include <clang/AST/Decl.h>
#include <clang/AST/DeclCXX.h>
#include <clang/AST/Stmt.h>
#include <clang/AST/StmtCXX.h>
#include <boost/assert.hpp>
#include <boost/variant.hpp>
#include <boost/utility.hpp>
#include <vector>
#include <list... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_occ_sram.... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_tod_move_tod_to_tb.... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 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 Lice... |
<commit_before>/*
* FILE: m.cpp
* PURPOSE: 4D maze game
* AUTHOR: Geoffrey Card
* DATE: 2014-02-06 - 2014-02-06
* NOTES: Controls are un-intuitive.
* Graphics are too big.
*/
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include "m4.hpp"
int main (void)
{
//printf("Hello, brave new ... |
<commit_before>/**
* @file UxAsyncTest.cpp
* @brief UxAsync class tester.
* @author zer0
* @date 2018-12-06
*/
#include <gtest/gtest.h>
#include <libtbag/uvxx/UxLoop.hpp>
#include <libtbag/uvxx/UxAsync.hpp>
using namespace libtbag;
using namespace libtbag::uvxx;
TEST(UxAsyncTest, Default)
{
int async_c... |
<commit_before>/*
* opencog/persist/sql/SQLPersistSCM.cc
*
* Copyright (c) 2008 by OpenCog Foundation
* Copyright (c) 2008, 2009, 2013, 2015 Linas Vepstas <linasvepstas@gmail.com>
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affer... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Morwenn
*
* 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
... |
<commit_before>#include "common/common.h"
#include "common/input_output.h"
#include "common/parser.h"
#include "common/generation.h"
ChVector<> lpos(0, 0, 0);
ChQuaternion<> quat(1, 0, 0, 0);
//all dimensions are in millimeters, milligrams
real container_width = 10; //width of area with particles
real container_lengt... |
<commit_before>#include <stdio.h>
#include <vector>
#include <cmath>
#include <string>
#include "common/input_output.h"
using std::cout;
using std::endl;
// all dimensions are in millimeters, milligrams
real container_width = 5; // width of area with particles
real container_length = 25; // length of are... |
<commit_before>/*************************************************************************
*
* $RCSfile: externallock.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-01-11 14:05:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#ifndef SDR_H_
#define SDR_H_
#include <vector>
#include <array>
#include <bitset>
#include <iostream>
#include <utility>
#include <algorithm>
#include <iostream>
#include <cmath>
#include <unordered_map>
#include <unordered_set>
#ifdef USE_SHERWOOD
#include "sherwood_map.hpp"
#endif
namespace sdr
{
... |
<commit_before>/** @file
@brief Test implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ob... |
<commit_before>#include "common/common.h"
#include "common/input_output.h"
#include "common/parser.h"
#include "common/generation.h"
ChVector<> lpos(0, 0, 0);
ChQuaternion<> quat(1, 0, 0, 0);
//all dimensions are in millimeters, milligrams
real container_width = 10; //width of area with particles
real container_lengt... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2016 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>//===-- BenchmarkResult.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>[DF] Add test for ROOT-9558<commit_after><|endoftext|> |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <pthread.h>
//#include "carbon_user.h"
#include <time.h>
#include <sys/timeb.h>
#define MAX 100000000
#define INT_MAX 100000000
// #define DEBUG 1
#define BILLION 1E9
int _W[8][8] =
{
{0, 2, 1, 17, MAX, M... |
<commit_before>/*************************************************************************
*
* $RCSfile: localedatawrapper.hxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: er $ $Date: 2001-07-09 17:49:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>#include "translator.hpp"
#include "decl.hpp"
#include "type.hpp"
#include "context.hpp"
#include "expr.hpp"
#include "action.hpp"
#include "dumper.hpp"
#include <string>
// for testing only
#include <iostream>
#include <sstream>
namespace pip
{
translator::translator(context& cxt)
: cxt(cxt)
... |
<commit_before>/*
This file is part of tgl-library
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>#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <v8.h>
#include <node.h>
using namespace node;
using namespace v8;
class Time
{
public : static void Init(Handle<Object> target)
{
HandleScope scope;
// time(3)
Persistent<FunctionTemplate> s_time = Persistent<Functio... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkJavaUtil.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by K... |
<commit_before>/*------------gauss_vis.cpp----------------------------------------------------/
*
* Purpose: Simple visualization script for difference scenes for computus video
* 2020
*
* Notes: Compilation instructions:
* g++ -L/path/to/GathVL -I/path/to/GathVL -lgathvl -o gauss_vis gauss_vis.... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <mpi.h>
#include <cstring>
#include <cassert>
const int SHIFT = 32;
const unsigned long long BASE = (unsigned long long)1 << SHIFT;
int VALID = 1000000;
int LEN = VALID / 8 + 2;
void add(unsigned long long dest[], unsigned src[]) {
for (int i = LEN - 1; i >... |
<commit_before>/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this fil... |
<commit_before>namespace scheduler
{
inline
Tag::Tag(libport::Symbol name)
: parent_(0),
blocked_(false),
frozen_(false),
name_(name)
{
}
inline
Tag::~Tag()
{
}
inline
Tag::Tag(const Tag&)
{
assert(false);
}
inline rTag
Tag::fresh(libport::Symbol name)
{
r... |
<commit_before>#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <cmath>
#include <sstream>
#include <string>
#include <vector>
#include <popt.h>
#include "defs.hh"
#include "StringSet.hh"
#include "FactorEncoder.hh"
#include "GreedyUnigrams.hh"
using namespac... |
<commit_before>#include "gtest/gtest.h"
#include <memory>
#include "tuple/tuple.h"
#include "endianess/little.h"
#include "endianess/big.h"
#include "container.h"
class BufferTest : public ::testing::Test {
protected:
virtual void SetUp() {
this->buffer_ = std::unique_ptr<BinaryMapping::Buffer>(
new Binary... |
<commit_before>#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "defs.hh"
#include "conf.hh"
#include "StringSet.hh"
#include "FactorEncoder.hh"
#include "Unigrams.hh"
using namespace std;
void assert_short_... |
<commit_before>/*
* Copyright (c) 2019, Arm Limited and affiliates.
* 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.apache.org/lic... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkCurvatureFlowTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before>/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "uct_p2p_test.h"
extern "C" {
#include <ucs/arch/atomic.h>
}
class uct_flush_test : public uct_test {
public:
static const uint64_t SEED1 = 0x1111111111111111lu;
static co... |
<commit_before>#include <sh.h>
#include <stdio.h>
int main(void) {
MCU_sw ic;
ic.led.set();
//ic.Uart.putch('H');
//ic.Uart.putch('e');
//ic.Uart.putch('l');
//ic.Uart.putch('l');
//ic.Uart.putch('o');
ic.stdio.setio(&ic.Uart);
icprintf("Hello world from printf\n");
while (1) {
if (ic.but... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//-----------------------------------------------------------------------el-
//Antioch
#include "antioch/vector_utils_decl.h"
#include "antioch/physic... |
<commit_before>// Copyright 2013 The Flutter 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 "flutter/shell/platform/windows/angle_surface_manager.h"
#include <iostream>
#include <vector>
#ifdef WINUWP
#include <third_part... |
<commit_before>#include "enigma-queue.h"
#include "hphp/runtime/vm/native-data.h"
namespace HPHP {
namespace Enigma {
PlanInfo::PlanInfo(std::string const & cmd)
: command(cmd) {
determineParameterType();
}
Array PlanInfo::mapParameters(Array const & params) {
if (type == ParameterType::Named) {
... |
<commit_before>#include "PairWiseClusterWriter.h"
/**
* Constructor
*
* @param char * m
* The method used for similarity: sc, pc, mi
* @param char * fp
* The string used to prefix all files
* @param int i
* The job index. This will be added to all files.
* @param int n
* The number of samples.
*/
Pa... |
<commit_before>#include <BALL/VIEW/PLUGIN/modularWidgetPluginHandler.h>
#include <BALL/PLUGIN/BALLPlugin.h>
#include <BALL/VIEW/PLUGIN/modularWidgetPlugin.h>
#include <BALL/VIEW/KERNEL/mainControl.h>
namespace BALL
{
namespace VIEW
{
ModularWidgetPluginHandler::ModularWidgetPluginHandler(MainControl* parent)
... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* CompressPNG.cpp
*
* Created on: Jun 10, 2019
* Author: William F Godoy godoywf@ornl.gov
*/
#include "CompressPNG.h"
#include <cstring> // std::memset
extern "C" {
#... |
<commit_before>// =================================================================== //
// Copyright (C) 2016 Kimura Ryo //
// //
// This Source Code Form is subject to the terms of the Mozilla Public //
// Licens... |
<commit_before>/*
// $Id$
// Fennel is a library of data storage and processing components.
// Copyright (C) 2005-2007 The Eigenbase Project
// Copyright (C) 2005-2007 Disruptive Tech
// Copyright (C) 2005-2007 LucidEra, Inc.
// Portions Copyright (C) 1999-2007 John V. Sichi
//
// This program is free software; you can... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: asyncmodaldialog.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2006-11-07 14:48:52 $
*
* The Contents of this file a... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008-2009, Image Engine Design Inc. All rights reserved.
//
// Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios),
// its affiliates and/or its licensors.
//
// Redistribution and use... |
<commit_before>#include "Arduino.h"
#include "Owly.h"
#include "libs/PubSubClient/PubSubClient.h"
#include "libs/PubSubClient/PubSubClient.cpp"
#include "Client.h"
PubSubClient _pubsubclient();
Owly::Owly(const char *inputuser_username, const char *inputuser_password, Client& client)
{
this->_inputuser_username =... |
<commit_before>#include "State.h"
using namespace std;
//constructor
State::State()
{
gameover = 0;
turn = 0;
bug.open("./debug.txt");
};
//deconstructor
State::~State()
{
bug.close();
};
//sets the state up
void State::setup()
{
grid = vector<vector<Square> >(rows, vector<Square>(cols, Square()... |
<commit_before>/*************************************************
* TILP.h - Library for linking TI calculators *
* and Arduinos. *
* Created by Christopher Mitchell, *
* 2011-2014, all rights reserved. *
********************************************... |
<commit_before>// --*- Mode: C++; c-basic-offset: 8 -*--
#include <complex>
#include "EigenLab.h"
int main(int argc, const char * argv[])
{
EigenLab::ParserXd parserXd;
auto failXd = parserXd.test();
EigenLab::ParserXf parserXf;
auto failXf = parserXf.test();
#if EIGEN_VERSION_AT_LEAST(3,2,0)
EigenLab... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: querydescriptor.cxx,v $
*
* $Revision: 1.32 $
*
* last change: $Author: hr $ $Date: 2007-11-01 15:02:17 $
*
* The Contents of this file a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: queryview.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2005-09-23 12:44:53 $
*
* The Contents of this file are made... |
<commit_before>#include "symbols.h"
#include <stdio.h>
#include <unordered_map>
#include <memory>
#include <string>
using namespace Symbols;
using namespace std;
int SymbolTable::last_sequence = 0; // TODO: For debugging
shared_ptr<SymbolTable> Symbols::global_symbol_table = make_shared<SymbolTable>();
shared_ptr<Sy... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dp_version.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2006-11-06 14:54:42 $
*
* The Contents of this file are mad... |
<commit_before>#include <stdio.h>
#include <memory.h>
#include <assert.h>
#include <stdlib.h>
#include <malloc.h>
#include "halide_benchmark.h"
#include "pipeline_cpu.h"
#include "pipeline_hvx64.h"
#include "pipeline_hvx128.h"
#include "HalideRuntimeHexagonHost.h"
#include "HalideBuffer.h"
template <typename T>
T c... |
<commit_before>#include "config.h"
#include "file_io_type_pel.hpp"
#include "utils.hpp"
#include "xyz/openbmc_project/Common/error.hpp"
#include <stdint.h>
#include <systemd/sd-bus.h>
#include <unistd.h>
#include <exception>
#include <filesystem>
#include <iostream>
#include <sdbusplus/server.hpp>
#include <vector>... |
<commit_before>/*
* Target.cc
*
* Author: William Ma <https://github.com/williampma>
*
* Copyright (C) 2015 OpenCog Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation... |
<commit_before>#include <iostream>
using namespace std;
#include "gtest/gtest.h"
#include "BoardHelper.h"
#include "MnistLoader.h"
#include "BoardPng.h"
#include "Timer.h"
#include "NeuralNet.h"
#include "AccuracyHelper.h"
#include "stringhelper.h"
#include "FileHelper.h"
void loadMnist( string mnistDir, string setN... |
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__VON_MISES_HPP__
#define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__VON_MISES_HPP__
#include <stan/agrad/partials_vari.hpp>
#include <stan/math/error_handling.hpp>
#include <stan/math.hpp>
#include <stan/meta/traits.hpp>
#include <sta... |
<commit_before>#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "TriggerDetector.h"
using ::testing::Return;
class ExampleTriggerDetector : public TriggerDetector {
public:
ExampleTriggerDetector(void) : TriggerDetector(NULL) {
setTrigger(timeLimit, 2,
&ExampleTriggerDetector::... |
<commit_before>/*******************************************************************************
* test/construction_test.cpp
*
* Copyright (C) 2017 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
* Copyright (C) 2017 Marvin Löbel <loebel.marvin@gmail.com>
*
* All rights reserved. Published under the BSD-2 licens... |
<commit_before><commit_msg>Fix typo. The right button is pressed when MK_RBUTTON is set.<commit_after><|endoftext|> |
<commit_before>#include "translatorbasictest.h"
#include <QDebug>
#include "../../xpiks-qt/Translation/translationmanager.h"
#include "../../xpiks-qt/Commands/commandmanager.h"
#include "signalwaiter.h"
QString TranslatorBasicTest::testName() {
return QLatin1String("TranslatorBasicTest");
}
void Transla... |
<commit_before>#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#include "aim.hpp"
// Algorithm to be tested
using Position = std::pair<std::size_t, std::size_t>;
class State
{
int num_revolvings_;
Position pos_;
std::vector<bool> state_;
public:
State(int num_revolving, P... |
<commit_before>// $Id: exact_solution.C,v 1.10 2005-04-10 20:15:27 spetersen Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// L... |
<commit_before>/* Copyright 2022 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 (c) 2015 The CSUTIL 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 <errno.h>
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <arpa/i... |
<commit_before>/*************************************************************************
*
* $RCSfile: myucp_provider.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kso $ $Date: 2001-06-06 14:46:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 option) any later version.
c... |
<commit_before><commit_msg>Add checks on key string in CaesarCipher function.<commit_after><|endoftext|> |
<commit_before>// MFEM Example 0
//
// Compile with: make ex0
//
// Sample runs: ex0
// ex0 -m ../data/fichera.mesh
// ex0 -m ../data/square-disc.mesh -o 2
//
// Description: This example code demonstrates the most basic usage of MFEM to
// define... |
<commit_before>/// This file contains the implementation of VNS
#include "header/vns-priv.hpp"
using namespace std;
namespace pcp {
Solution bestSolution;
Solution origSolution;
bool checkValid(Solution* s);
/// Some constants
const int NUM_VNS = 2;
const int SHAKE_START = 1;
/// Implementation of VNS, see... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Kirsten Weber
#ifndef DUNE_STUFF_FUNCTIONS_EXPRESSION_HH
#def... |
<commit_before>/**
* @file
*
* @brief Tests for the Backend builder class
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <gtest/gtest-elektra.h>
#include <kdb.hpp>
#include <regex>
class Ensure : public ::testing::Test
{
protected:
static const char * testRoot;
stati... |
<commit_before>/*
*/
/*
* Copyright (C) 2015-present ScyllaDB
*
* Modified by ScyllaDB
*/
/*
* SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0)
*/
#include <chrono>
#include <seastar/core/future-util.hh>
#include <seastar/core/do_with.hh>
#include <seastar/core/semaphore.hh>
#include <seastar/core/m... |
<commit_before>#include "statement.h"
#include "adapter.h"
#include "result.h"
#include "query.h"
VALUE cSwiftStatement;
void statement_mark(StatementWrapper *handle) {
if (handle)
rb_gc_mark(handle->adapter);
}
void statement_free(StatementWrapper *handle) {
if (handle) {
if (handle->free) delete handle... |
<commit_before>#include "catch.hpp"
#include "build_machine.hpp"
#include "compass.hpp"
#include <bitset>
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
TEST_CASE_METHOD( host_reference, "machine_specific" ){
SECTION( "vendor_right" ){
auto value = compass::runtime::vendor();
... |
<commit_before>#include "cppunit/extensions/HelperMacros.h"
#include "FooLib.h"
class FooLibTest : public CppUnit::TestFixture
{
public:
void setUp()
{
a = 4;
b = 5;
pFoo = new Foo(a, b);
}
void tearDown()
{
delete pFoo;
}
void testSum()
{
CPPUNIT_ASSERT_EQUAL(9, pFoo->sum());... |
<commit_before><commit_msg>Reverse polarity of CLOCK_MONOTONIC_COARSE check<commit_after><|endoftext|> |
<commit_before>
// .\Release\x64\benchmarks.exe --benchmark_repetitions=10 --benchmark_min_time=2 --benchmark_filter=Newhall // NOLINT(whitespace/line_length)
// Benchmarking on 1 X 3310 MHz CPU
// 2015/05/24-13:16:32
// Benchmark Time(ns) CPU(ns) Iterations
// ----------------------------------... |
<commit_before>/**
* \file GainMaxColoredExpanderFilter.cpp
*/
#include "GainMaxColoredExpanderFilter.h"
#include <cmath>
#include <cstdint>
#include <iostream>
#include <stdexcept>
namespace ATK
{
template<typename DataType_>
GainMaxColoredExpanderFilter<DataType_>::GainMaxColoredExpanderFilter(int nb_channel... |
<commit_before><commit_msg>TBBUTTON bugfix<commit_after><|endoftext|> |
<commit_before>// RUN: %clangxx_asan -flto=thin -O %s -o %t.thinlto
// RUN: not %run %t.thinlto crash 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s
// RUN: not %run %t.thinlto bad-bounds 2>&1 | FileCheck --check-prefix=CHECK-BAD-BOUNDS %s
// RUN: not %run %t.thinlto bad-alignment 2>&1 | FileCheck --check-prefix=CHECK-... |
<commit_before>//
// Class to identify resonance candidate pairs, which are then
// added back into the mini event to serve as daughters for
// another particle.
//
#include "Riostream.h"
#include "TMath.h"
#include "TString.h"
#include "AliRsnMiniParticle.h"
#include "AliRsnMiniPair.h"
#include "AliRsn... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <iterator>
#include <ctime>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include <iterator>
#include <unordered_map>
#include <... |
<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>/*=========================================================================
Program: Visualization Toolkit
Module: TestScalarBarWidget.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.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 l... |
<commit_before>/*******************************************************************************
* thrill/api/groupby.hpp
*
* DIANode for a groupby to indx operation.
* Performs the actual groupby operation
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Huyen Chau Nguyen <hello@chau-nguyen.de>
*
* This fil... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>#ifndef G2_FIELD_CORE_INCLUDE_FIELD_STRUCTS_HH_
#define G2_FIELD_CORE_INCLUDE_FIELD_STRUCTS_HH_
/*===========================================================================*\
author: Matthias W. Smith
email: mwsmith2@uw.edu
file: field_constants.hh
about: A header file for constant parameters use... |
<commit_before>/* This source file is part of the Tomviz project, https://tomviz.org/.
It is released under the 3-Clause BSD License, see "LICENSE". */
#include "GenericHDF5Format.h"
#include <DataExchangeFormat.h>
#include <DataSource.h>
#include <Hdf5SubsampleWidget.h>
#include <h5cpp/h5readwrite.h>
#include <h... |
<commit_before>/* Copyright (c) 2010-2015, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QFileInfo>
#include <QDateTime>
#include <QTextStream>
#include "erbconverter.h"
... |
<commit_before>// clang -std=c++17 -lstdc++ prod.cpp -o prod && ./prod
#include <iostream>
#include <functional>
#include <memory>
#include <string>
#include <tuple>
#include <typeinfo>
#include <utility>
#include <vector>
using namespace std;
template<typename T>
void print(vector<T>& vec) {
for(int i = 0; i < ... |
<commit_before>#include <coffee/CCore>
#include <coffee/asio/include/rest-client.h>
using namespace Coffee;
int32 coffee_main(int32, byte_t**)
{
RestClient::InitService();
RestClient::RestResponse t =
RestClient::RestRequest(RestClient::HTTP,
"tmi.twitch.tv",
... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WIT... |
<commit_before><?hh //partial
use typesafety\Result;
use stdClass;
describe('Result', function() {
beforeEach(function() {
$message = new stdClass();
$message->code = 2055;
$message->descr = "error message";
$message->path = "/foo/var/example.hh";
$message->line = 38;
... |
<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>/*
* Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.