text stringlengths 54 60.6k |
|---|
<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.
cpp-ethereum is dis... |
<commit_before>#include <stdio.h>
#include <ctype.h>
#include <metaSurface.h>
int testMetaSurface(int argc, char *argv[])
{
std::cout << "Creating test file ...";
MetaSurface* surface = new MetaSurface(3);
surface->ID(0);
SurfacePnt* pnt;
unsigned int i;
for(i=0;i<10;i++)
{
pnt = new SurfacePnt(3);... |
<commit_before>/*
* Copyright 2012 Coherent Theory LLC
*
* This program 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 version 2, or
* (at your option) any later version.
*
* ... |
<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.
cpp-ethereum is d... |
<commit_before>#include <pqxx/compiler.h>
#include <iostream>
#include <pqxx/binarystring>
#include <pqxx/connection>
#include <pqxx/transaction>
#include <pqxx/result>
using namespace PGSTD;
using namespace pqxx;
// Example program for libpqxx. Test binarystring functionality.
//
// Usage: test062 [connect-string... |
<commit_before>#include <core/stdafx.h>
#include <core/propertyBag/registryPropertyBag.h>
#include <core/mapi/mapiFunctions.h>
#include <core/utility/strings.h>
#include <core/utility/registry.h>
#include <core/utility/error.h>
#include <core/interpret/proptags.h>
#include <core/property/parseProperty.h>
namespace pro... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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... |
<commit_before>#ifndef SINGLETON_HPP
#define SINGLETON_HPP
namespace cutehmi {
namespace internal {
typedef void(*singletonDestroyCallback)();
void destroySingletonInstances();
void storeSingletonDestroyCallback(singletonDestroyCallback callback);
void removeSingletonDestroyCallback(singletonDestroyCallback callba... |
<commit_before>#include "libtorrent/upnp.hpp"
#include "libtorrent/socket.hpp"
#include "libtorrent/connection_queue.hpp"
#include <boost/bind.hpp>
#include <boost/ref.hpp>
using namespace libtorrent;
void callback(int tcp, int udp, std::string const& err)
{
std::cerr << "tcp: " << tcp << ", udp: " << udp << ", erro... |
<commit_before>// @(#)root/thread:$Id$
// Author: Xavier Valls March 2016
/*************************************************************************
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*!
\copyright (c) RDO-Team, 2003-2012
\file find_dialog.cpp
\author Урусов Андрей (rdo@rk9.bmstu.ru)
\date 31.12.2012
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
#include "app/rdo_studio/pch/stdpch.h"
// -----... |
<commit_before>/*
Copyright (C) 2003 by Eric Sunshine <sunshine@sunshineco.com>
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
version 2 of the License, or (at your option) ... |
<commit_before>/*
** Copyright 2012 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed i... |
<commit_before>/* libscratch - Multipurpose objective C++ library.
Copyright (C) 2012 - 2013 Angelo Geels
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 Lic... |
<commit_before>/**
* Copyright 2017 Shusheng Shao <iblackangel@163.com>
*
* 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 r... |
<commit_before>#include <limits>
#include <omp.h>
#include <stdint.h>
#include <algorithm>
#include <iostream>
#include "boost/serialization/vector.hpp"
#include "boost/serialization/utility.hpp"
#include "GraphMatRuntime.h"
#include "common.hpp"
#ifdef GRANULA
#include "granula.hpp"
#endif
using namespace std;
st... |
<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>/**
* \file
* \brief DeferredThreadDeleter class header
*
* \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* dist... |
<commit_before>/**
* File : A.cpp
* Author : Kazune Takahashi
* Created : 2018-2-17 14:09:03
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> //... |
<commit_before>/**
* Touhou Community Reliant Automatic Patcher
* Tasogare Frontier support plugin
*
* ----
*
* Image patching for nsml engine.
*/
#include <thcrap.h>
#include "./png.h"
#include "thcrap_tasofro.h"
#include "nsml_images.h"
size_t get_image_data_size(const char *fn, bool fill_alpha_for_24... |
<commit_before>/*
* Copyright 2013 Arma2NET Developers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
<commit_before>#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QKeyEvent>
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <cassert>
#include <cmath>
#include <vector>
#include <unordered_map>
#include <fstream>
#include <string>
#include "mainwindow.h"
#i... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "music.h"
#include "alarm.h"
#include "calendar.h"
#include <cstring>
#include <string>
#include <memory>
#include <QFile>
MainWindow::MainWindow(Config cfg, QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
, alarmer... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <stdio.h>
#include <QScrollBar>
#include <QFileDialog>
#include "hardware/camera/qopencvcamera.h"
#include "hardware/projector/seconddisplayprojector.h"
#include "geom/triangulator.h"
#include "hardware/projector/gridpattern.h"
#include "hardwa... |
<commit_before>#include "gvki/UnderlyingCaller.h"
#include <iostream>
#include <cstdlib>
#ifndef MACRO_LIB
#include <dlfcn.h>
#endif
using namespace gvki;
#ifdef MACRO_LIB
#define SET_FCN_PTR(F) F ## U = &(::F);
#else
#include <unistd.h>
#define SET_FCN_PTR(F) dlerror(); /* clear any old errors */ \
... |
<commit_before>#include "task_synthetic_shapes.h"
#include "libnanocv/loss.h"
#include "libnanocv/util/random.hpp"
namespace ncv
{
synthetic_shapes_task_t::synthetic_shapes_task_t(const string_t& configuration)
: task_t(configuration),
m_rows(math::clamp(text::from... |
<commit_before>/*
* Copyright (c) 2015 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>////////////////////////////////////////////////////////////////////////////////
//
// File: NekMemoryManager.hpp
//
// For more information, please see: http://www.nektar.info/
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of A... |
<commit_before>#include "editorView.h"
#include <QtCore/QTimeLine>
using namespace qReal;
int const zoomAnimationInterval = 20;
int const zoomAnimationTimes = 4;
EditorView::EditorView(QWidget *parent)
: QGraphicsView(parent)
, mMouseOldPosition()
, mWheelPressed(false)
, mTouchManager(this)
{
setRenderHint(QP... |
<commit_before>#include "File.hpp"
#include "CompressedFile.hpp"
#include "utils.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sstream>
#include <utility>
#include <iostream>
#include <cerrno>
#include <system_error>
extern "C" {
# include <solv/solv_xfopen.h>
}... |
<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.
cpp-ethereum is dis... |
<commit_before>/*
SPI.cpp - SPI library for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* Copyright 2008-2010 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation fil... |
<commit_before>///////////////////////////////////////////////////////////////////////
// Lowest Common Ancestor (LCA)
// O(lgn) per query
// Link: http://www.spoj.com/status/LCA/
///////////////////////////////////////////////////////////////////////
#include <iostream>
#include <algorithm>
#include <vector>
#incl... |
<commit_before>/*
Copyright (c) 2015-2021 Alternative Games Ltd / Turo Lamminen
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>/* Copyright (c) 2017-2019 Hans-Kristian Arntzen
*
* 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>/*=========================================================================
Program: Visualization Library
Module: Cylinder.hh
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reprod... |
<commit_before>//=======================================================================
// Copyright (c) 2015 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) 2014-2015 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 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>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, Elm Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/triangulation.h"
#ifdef __WITH_PCL // test normally
#include <boost/filesy... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>#include "translator.h"
#include "analyzer.h"
#include "exception.h"
#include "printer.h"
#include "yaml.h"
#include <QtCore/QDir>
using namespace std;
enum {
_Base = GeneralCodes, CannotCreateOutputDir, CannotWriteToFile
};
Translator::Translator(const QString& configFilePath, QString outputDi... |
<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>#include <gtest/gtest.h>
#include <paddle/framework/net.h>
#include <paddle/framework/op_registry.h>
#include <paddle/framework/operator.h>
namespace paddle {
namespace framework {
static int infer_shape_cnt = 0;
static int run_cnt = 0;
class TestOp : public OperatorBase {
public:
void InferShape(c... |
<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>
#include "cmdline/cmdline.h"
#include "mhap/overlap.h"
#include "mhap/parser.h"
#include "ra/include/ra/ra.hpp"
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iostream>
#include <vector>
#include <sys/stat.h>
// trimming params
int READ_LEN_THRESHOLD = 100000;
uint32_t MAX_READS_IN_... |
<commit_before>/*************************************************************************
*
* $RCSfile: anydata.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jb $ $Date: 2002-02-11 14:29:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
#include "Input.h"
#include "BlueRayUtils.h"
using namespace MathLib;
CGameProcess::CGamePro... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
#include "Input.h"
#include "BlueRayUtils.h"
#include "World.h"
#include "Action.h"
#include "F... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef DATABASE_HH_
#define DATABASE_HH_
#include "dht/i_partitioner.hh"
#include "core/sstring.hh"
#include "core/shared_ptr.hh"
#include "net/byteorder.hh"
#include "utils/UUID.hh"
#include "db_clock.hh"
#include "gc_clock.hh"
#include <functional>... |
<commit_before>// Copyright 2018 Intel Corporation.
#include <gtest/gtest.h>
#include "testing/matchers.h"
#include "tile/codegen/schedule/deps.h"
#include "tile/stripe/stripe.h"
#include "tile/stripe/stripe.pb.h"
namespace gp = google::protobuf;
using ::testing::EqualsProto;
namespace vertexai {
namespace tile {
... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Sk4px.h"
#include "SkNx.h"
#include "SkRandom.h"
#include "Test.h"
template <int N, typename T>
static void test_Nf(skiatest::Reporter* r) {
aut... |
<commit_before>/*
* pv.cpp
*
*/
#include <columns/buildandrun.hpp>
int customexit(HyPerCol * hc, int argc, char * argv[]);
int main(int argc, char * argv[]) {
char * param_file = NULL;
int paramfilestatus = pv_getopt_str(argc, argv, "-p", ¶m_file);
int cl_argc = argc + (paramfilestatus!=0 ? 2 : 0);
... |
<commit_before>#include <iostream>
#include <unistd.h>
#include "libs/catch/catch.hpp"
#include "src/dopt_node.h"
TEST_CASE("entangle|dopt_node-enc") {
auto n = entangle::OTNode(8888, 100);
entangle::upd_t u = { entangle::del, 100, 'c' };
REQUIRE(n.enc_upd_t(u).compare("1:100:c") == 0);
REQUIRE(n.cmp_upd_t({ ent... |
<commit_before>#ifndef __UTIL_H
#define __UTIL_H
#include "types.hh"
#include <sys/types.h>
#include <dirent.h>
#include <unistd.h>
#include <signal.h>
#include <iostream>
namespace nix {
#define foreach(it_type, it, collection) \
for (it_type it = collection.begin(); it != col... |
<commit_before>#include <iostream>
#include <algorithm>
#include <numeric>
#include "glt/load_models.h"
glt::ModelInfo::ModelInfo(size_t index_offset, size_t indices, size_t vert_offset)
: index_offset(index_offset), indices(indices), vert_offset(vert_offset)
{}
bool glt::load_models(const std::vector<std::string> &m... |
<commit_before>
#include <legato.h>
#include <thread>
#include <string>
#include <list>
#include <iostream>
#ifndef MUST_BE_DEFINED
#error MUST_BE_DEFINED was not defined.
#endif
COMPONENT_INIT
{
LE_INFO("Hello world, from thread 1.");
std::thread newThread([]()
{
le_thread_InitLegatoTh... |
<commit_before>#pragma once
#include "lubee/tests/test.hpp"
#include "../random/convex2d.hpp"
#include "../random/point2d.hpp"
#include "../random/segment2d.hpp"
#include "../random/circle2d.hpp"
#include "../random/aabb2d.hpp"
#include "../random/capsule2d.hpp"
#include "../random/line2d.hpp"
#include "../random/ray2d... |
<commit_before>#pragma once
#include "physics/inertia_tensor.hpp"
#include "geometry/barycentre_calculator.hpp"
#include "geometry/identity.hpp"
#include "geometry/point.hpp"
namespace principia {
namespace physics {
namespace internal_inertia_tensor {
using geometry::Barycentre;
using geometry::Identity;
using geo... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential Utility library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
<commit_before>#include "test.hpp"
#include "setup_transfer.hpp"
#include "libtorrent/alert.hpp"
#include "libtorrent/session.hpp"
#include "libtorrent/error_code.hpp"
#include <fstream>
using namespace libtorrent;
int test_main()
{
int http_port = start_web_server();
int udp_port = start_tracker();
int prev_udp... |
<commit_before>#include "test.hpp"
#include "setup_transfer.hpp"
#include "libtorrent/alert.hpp"
#include "libtorrent/session.hpp"
#include "libtorrent/error_code.hpp"
#include <fstream>
using namespace libtorrent;
int test_main()
{
int http_port = start_web_server();
int udp_port = start_tracker();
int prev_udp... |
<commit_before>/*
* Copyright 2009-2012 Red Hat, 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 applic... |
<commit_before>#include <tiramisu/tiramisu.h>
using namespace tiramisu;
void gen(std::string name, int size, int val0, int val1)
{
tiramisu::init(name);
tiramisu::function *function0 = global::get_implicit_function();
tiramisu::constant N("N", tiramisu::expr((int32_t) size), p_int32, true, NULL, 0);
... |
<commit_before>#include <gtest/gtest.h>
#include <uvw.hpp>
TEST(FsEvent, TODO) {
auto loop = uvw::Loop::getDefault();
auto handle = uvw::FsEventHandle::create(loop);
handle = nullptr;
// TODO
}
<commit_msg>Test fs event (#89)<commit_after>#include <gtest/gtest.h>
#include <uvw.hpp>
TEST(FsEvent, ... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free... |
<commit_before>/** \copyright
* Copyright (c) 2015, Stuart W Baker
* 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 not... |
<commit_before>/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrOverdrawFragmentProc... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd 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/LICE... |
<commit_before>/// \file
/// \ingroup tutorial_dataframe
/// \notebook -draw
/// This tutorial illustrates how NanoAOD files can be processed with ROOT
/// dataframes. The NanoAOD-like input file is filled with events from
/// CMS OpenData containing muon candidates from 2011 data
/// ([DOI: 10.7483/OPENDATA.CMS.RZ34.Q... |
<commit_before>// Unit Test Framework Includes
#include "UnitTest++.h"
#include <cstdlib>
// File To Test
#include "sll.h"
using namespace UnitTest;
//-----------------------------------------------------------------------------
// Begin Unit Tests
//------------------------------------------------------------------... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// File FilterBenchmark.cpp
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautic... |
<commit_before>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
#include "RdYarpRobotManager.hpp"
namespace rd
{
RdYarpRobotManager::RdYarpRobotManager(const std::string& robotName): RdRobotManager(robotName)
{
connected = false;
enabled = false;
}
bool RdYarpRobotManager::moveForward... |
<commit_before>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE libstorage
#include <boost/test/unit_test.hpp>
#include <iostream>
// Enable testing of private and protected methods, too
// #define protected public
// #define private public
#include "storage/EtcFstab.h"
#include "storage/Filesystems/Filesyste... |
<commit_before>/* test_ndx.cpp -- Console app for testing the B-tree indexing routines
Copyright (c) 2005-2009 by Gerald Lindsly
See <nub/Platform.h> for additional copyright information
*/
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <conio.h>
#inclu... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "nbostream.h"
#include "hexdump.h"
#include <vespa/vespalib/util/exceptions.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <cassert>
namespace vespalib {
nbostream::nbostream(size_t... |
<commit_before>#include "game.h"
#include <iostream>
Game::Game()
{
//Constructor used for automatic initial board creation.
for (int row = 0; row < MAX_ROWS; row++) {
for (int col = 0; col < MAX_COLS; col++) {
board[row][col] = pieceNeutral;
}
}
}
Game::~Game()
{
//dtor in case I need it
}
void Game::p... |
<commit_before>#include <pqxx/compiler.h>
#include <iostream>
#include <pqxx/connection>
#include <pqxx/nontransaction>
#include <pqxx/result>
using namespace PGSTD;
using namespace pqxx;
// Test program for libpqxx. Read and print table using field iterators.
//
// Usage: test082 [table] [connect-string]
//
// W... |
<commit_before>/*
* Copyright 2013 Gustaf Räntilä
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
<commit_before>#include "fs.h"
#include "files.h"
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include <string>
#include <vector>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <host/CopyFile.h>
using namespace std;
s... |
<commit_before>#include "Halide.h"
namespace {
enum class BlurGPUSchedule {
Inline, // Fully inlining schedule.
Cache, // Schedule caching intermedia result of blur_x.
Slide, // Schedule enabling sliding window opt within each
// work-item or cuda thread.
... |
<commit_before>/*
*
* Copyright 2019 Asylo 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>/**
* Copyright (c) 2016-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... |
<commit_before>/***********************************************************************
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C)... |
<commit_before>/***********************************************************************
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C)... |
<commit_before>#ifndef MJOLNIR_INPUT_READ_EXTERNAL_POTENTIAL_HPP
#define MJOLNIR_INPUT_READ_EXTERNAL_POTENTIAL_HPP
#include <extlib/toml/toml.hpp>
#include <mjolnir/potential/external/HarmonicRestraintPotential.hpp>
#include <mjolnir/potential/external/ImplicitMembranePotential.hpp>
#include <mjolnir/potential/external... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b2dvector.cxx,v $
*
* $Revision: 1.16 $
*
* last change: $Author: obo $ $Date: 2007-07-18 11:08:22 $
*
* The Contents of this file are ma... |
<commit_before><commit_msg>Add TODO to look out for IMPALA-2208/PARQUET-251<commit_after><|endoftext|> |
<commit_before>class Solution {
public:
int maxProfit(vector<int> &prices) {
return maxProfit(prices, 0);
}
int maxProfit(vector<int> & prices, int start){
int max = 0;
if(prices.size() - start < 2) return max;
int minPrice = prices[start];
... |
<commit_before>#include "etl_audio.hpp"
using namespace std;
using namespace nervana;
bool audio::config::set_config(nlohmann::json js) {
// TODO
}
shared_ptr<audio::params> audio::param_factory::make_params(std::shared_ptr<const decoded>) {
auto params = shared_ptr<audio::params>(new audio::params());
... |
<commit_before>#include "tpunit++.hpp"
#include "mock4cpp.h"
#include <string>
struct BasicVerification: tpunit::TestFixture {
BasicVerification() :
tpunit::TestFixture(
//
TEST(BasicVerification::verify_should_not_throw_exception_if_method_was_called), //
TEST(BasicVerification::verify_should_throw_M... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlg_View3D.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-03 13:38:25 $
*
* The Contents of this file are mad... |
<commit_before>// Floating Temple
// Copyright 2015 Derek S. Snyder
//
// 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>/**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>#include "ruby.h"
#include "vector"
#include "iostream"
#include "map"
#include "RtAudio.h"
typedef VALUE (ruby_method)(...);
int tick( void *outputBuffer, void *inputBuffer, unsigned int inBufferFrames,
double streamTime, RtAudioStreamStatus status, void *dataPointer )
{
return 0;
}
class ... |
<commit_before>/*************************************************************************
*
* $RCSfile: ViewShellHint.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2005-03-23 13:57:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*
* Copyright (c) 2015 University of Basel
* 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,
* t... |
<commit_before>/*
* Copyright (C) 2009, 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.
*/
/// \file urbi/uob... |
<commit_before>/*
* Copyright (c) 2012 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.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.