text stringlengths 54 60.6k |
|---|
<commit_before>// ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>// Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <memory>
#include <jni.h>
#include "core/android/EngineAndroid.hpp"
#include "core/android/WindowResourceAndroid.hpp"
#include "core/Engine.hpp"
#include "events/EventDispatcher.hpp"
#include "input/android/InputMa... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "Renderer.h"
#include "core/Engine.h"
#include "Texture.h"
#include "Shader.h"
#include "RenderTarget.h"
#include "BlendState.h"
#include "MeshBuffer.h"
#include "IndexBuffer.h"
#include "VertexBuffer.h"
#include "... |
<commit_before>/*
* Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <sstream>
#include <deque>
#include <vector>
#include <iostream>
#include "halValidate.h"
#include "hal.h"
using namespace std;
using namespace hal;
// current implementatio... |
<commit_before>#include <QtPlugin>
#include <QSqlQuery>
#include <QSqlRecord>
#include <QSqlError>
#include "kernel.h"
#include "geos/geom/Coordinate.h"
#include "coordinate.h"
#include "location.h"
#include "internalmodule.h"
#include "ilwisdata.h"
#include "range.h"
#include "connectorinterface.h"
#include "abstractf... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2013-2016 Rapptz, ThePhD and contributors
// 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 wi... |
<commit_before>#include <SFML/Audio.hpp>
#include <SFML/Window.hpp>
#include <cmath>
#include <iostream>
#include <vector>
struct sound_generator {
void play(int frequency, sf::Time duration) {
unsigned constexpr sample_rate{44100};
unsigned const samples_size{static_cast<unsigned>(sample_rate * d... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <mutex>
#include <iostream>
#include "Stroika/Foundation/Execution/CommandLine.h"
#include "Stroika/Foundation/Execution/Event.h"
#include "Stroika/Fo... |
<commit_before>#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <sys/dirent.h>
#include <vector>
#include <algorithm>
#include "ui.h"
#include "common.h"
struct ui_alphabetize {
inline bool operator() (char* a, char* b) {
return strcasecmp(a, b) < 0;
}
};
bool u... |
<commit_before>#include "sfsmisc.h"
#include "dhash_prot.h"
#include "dhash.h"
#include "crypt.h"
#include <sys/time.h>
float avg_lookupRPCs;
static ptr<aclnt> p2pclnt;
static bigint *IDs;
static void **data;
static str control_socket;
static FILE *outfile;
int out = 0;
int out_op = 0;
int OPS_OUT = 1024;
void afet... |
<commit_before>
#include "../../Flare.h"
#include "FlareButton.h"
#include "../../Player/FlareMenuManager.h"
/*----------------------------------------------------
Construct
----------------------------------------------------*/
void SFlareButton::Construct(const FArguments& InArgs)
{
// Setup
IsPressed = false;
... |
<commit_before>/* Copyright 2017-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "Mercurial.h"
#include "ChildProcess.h"
#include "Logging.h"
#include "watchman.h"
// Capability indicating support for the mercurial SCM
W_CAP_REG("scm-hg")
namespace watchman {
using Options = Chil... |
<commit_before>//
// DiskCopy42.cpp
// Clock Signal
//
// Created by Thomas Harte on 02/06/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#include "MacintoshIMG.hpp"
#include <cstring>
#include "../../Track/PCMTrack.hpp"
#include "../../Track/TrackSerialiser.hpp"
#include "../../Encodings/AppleG... |
<commit_before>/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
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 2 of the License, or
(at your option) ... |
<commit_before>/******************************************************************************\
Copyright (c) 2005-2018, Intel Corporation
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. Redistributi... |
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see http... |
<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.
//
// ScenicWindow.cpp:
// Implements methods from ScenicWindow
//
#include "util/fuchsia/ScenicWindow.h"
#include <fuchsia/ima... |
<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: salvtables.cxx,v $
* $Revision: ... |
<commit_before>#include <Album.h>
#include <cassert>
using namespace SoundCity;
Album::Album(int id, const std::string &title, const std::string &artist, int release) :
id(id),
artist(artist),
title(title),
release(release)
{
assert(&title);
assert(&artist);
assert(release);
}<commit_msg>Mise ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMeshSpatialObjectIOTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.... |
<commit_before>/* A BlockEnvironment is created when a block is created. Its primary
* operation is call, which activates the code associated with the block. */
#include "block_environment.hpp"
#include "objectmemory.hpp"
#include "builtin/compiledmethod.hpp"
#include "builtin/contexts.hpp"
#include "builtin/fixnum.... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Utils/CardSetUtils.hpp>
#include <hspp/Actio... |
<commit_before>#include <list>
#include <set>
#include <iostream>
#include "vtrc-asio.h"
#include "vtrc-thread-pool.h"
#include "vtrc-mutex-typedefs.h"
#include "vtrc-memory.h"
#include "vtrc-bind.h"
#include "vtrc-thread.h"
///// TODO: need some fix here
namespace vtrc { namespace common {
namespace basio = VT... |
<commit_before>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
#define playerMenuDialo... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/* The MIT License (MIT)
*
* Copyright (c) 2014 Colin Wallace
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... |
<commit_before>int main()
{
}
<commit_msg>Flush out jitpp-dis a little<commit_after>#include <getopt.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
const char *binary_type_str = nullptr;
const char *machine_type_str = nullptr;
const char *binary_name = nullptr;
enum MachineType
{
TY... |
<commit_before>#include "best_constant.h"
bool is_more_than_two_labels_observed = false;
float first_observed_label = FLT_MAX;
float second_observed_label = FLT_MAX;
bool get_best_constant(vw& all, float& best_constant, float& best_constant_loss)
{
if ( first_observed_label == FLT_MAX || // no non-test labels... |
<commit_before>/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include <fstream>
#include <float.h>
#ifndef _WIN32
#include <netdb.h>
#endif
#include <string.h>
... |
<commit_before>/* Copyright (c) 2013 Fabian Schuiki */
#pragma once
#include <cassert>
#define GLADUS_HAS_BINDING
namespace gladus {
/** A pair of bind() and unbind() calls limited to the scope of the declared
* variable. Provides a convenient exception-safe way of using OpenGL resources
* that implement a bind/unb... |
<commit_before>/**
* Copyright (c) 2015, Lehigh University
* All rights reserved.
* See COPYING for license.
*
* This file implements the program that finds the best resultant snake
* (evaluated by the F-funtion) under different values of low SNR threshold t
* and penalizing factor c. If a ground truth snake is ... |
<commit_before>/* Copyright (c) 2013 Fabian Schuiki */
#pragma once
#include <cassert>
namespace gladus {
template <typename T> struct binding
{
typedef T type;
T& object;
binding(T& object): object(object) { is_bound = false; bind(); }
~binding() { if (is_bound) unbind(); }
void bind() { assert(!is_bound); ob... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and 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 r... |
<commit_before>// Copyright 2020 MongoDB 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 applicable law or a... |
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2013/07/15
// Author: Mike Ovsiannikov
//
// Copyright 2013 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (the "License"); ... |
<commit_before>/*
* THE NEW CHRONOTEXT TOOLKIT: https://github.com/arielm/new-chronotext-toolkit
* COPYRIGHT (C) 2012-2015, ARIEL MALKA ALL RIGHTS RESERVED.
*
* THE FOLLOWING SOURCE-CODE IS DISTRIBUTED UNDER THE SIMPLIFIED BSD LICENSE:
* https://github.com/arielm/new-chronotext-toolkit/blob/master/LICENSE.md
*/
... |
<commit_before>/*************************************************************************
*
* $RCSfile: sdundo.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-08-23 08:12:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wall... |
<commit_before>#ifndef URMEM_H_
#define URMEM_H_
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#endif
#include <vector>
#include <iterator>
#include <algorithm>
#include <memory>
#include <mutex>
class urmem {
public:
using address_t = u... |
<commit_before>/*
* Copyright 2009-2021 The VOTCA Development Team
* (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License")
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... |
<commit_before>#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#endif
#include "lz4mt_io_cstdio.h"
#include "lz4mt.h"
namespace {
FILE* fopen_(const char* filename, const char* mode) {
#if defined(_MSC_VER)
FILE* fp = nullptr;
::fopen_s(&fp, filename, mode);
return fp;
... |
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... |
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... |
<commit_before><commit_msg>todo refactoring<commit_after><|endoftext|> |
<commit_before>// @(#)root/graf:$Name: $:$Id: TCutG.cxx,v 1.11 2002/03/15 22:11:47 brun Exp $
// Author: Rene Brun 16/05/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*************************************************************************
*
* $RCSfile: BColumns.cxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: oj $ $Date: 2001-10-12 11:39:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<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 "content/browser/gpu/gpu_process_host_ui_shim.h"
#include <algorithm>
#include "base/bind.h"
#include "base/command_line.h"
... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:... |
<commit_before>#include "WPILib.h"
#include "DeadSwipe.h"
#include "UsefulMath.h"
#include "F310.h"
class Robot : public SampleRobot
{
// class wide declarations
// drive train declarations - anything prefixed with db is a part of the drive train
// motor declarations - motors are controlled by motor controllers.... |
<commit_before>#include "Shell.hpp"
#include <iostream>
#include <sstream>
#include "FileSystem.hpp"
using namespace std;
const int MAXCOMMANDS = 8;
const int NUMAVAILABLECOMMANDS = 15;
string availableCommands[NUMAVAILABLECOMMANDS] = {
"quit", "format", "ls", "create", "cat", "save", "load",
"rm", "copy", "append... |
<commit_before>#include "Debug.h"
#include "Theme.h"
#include "Color.h"
#include <cstdio>
#include <cstring>
#include "SDL.h"
#include "SDL_rwops.h"
Theme::Theme()
{
mFontWidth = 8;
mFontHeight = 8;
mWidth = 480;
mHeight = 360;
mBasePath = "assets/";
mBackgroundPath = mBasePath+"gui.png";
mFontPath = mBasePath+... |
<commit_before>#include "Tiler.h"
#include "cinder/gl/gl.h"
#include "cinder/app/App.h"
#include "cinder/Rand.h"
#include <algorithm>
#include <sstream>
using namespace reza::tiler;
using namespace cinder;
using namespace glm;
using namespace std;
Tiler::Tiler( int32_t imageWidth, int32_t imageHeight, int32_t tileWi... |
<commit_before>#include <iostream>
#include <vector>
#include <sys/stat.h>
#include "Network.h"
// Returns the path to the default weights directory
std::string getWeightsDir(char* argvZero) {
std::string executablePath = realpath(argvZero, NULL);
size_t index = executablePath.rfind('/', executablePath.rfind('/')... |
<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 (c) 2017 ASMlover. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list o... |
<commit_before>// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
/*
* Detector.cpp
* zxing
*
* Created by Christian Brunschen on 14/05/2008.
* Copyright 2008 ZXing authors All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... |
<commit_before>/** \file merge_differential_and_full_marc_updates.cc
* \brief A tool for creating combined full updates from an older full update and one or more differential updates.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is ... |
<commit_before>#ifndef __SIMFQT_SVC_SIMFQT_SERVICE_HPP
#define __SIMFQT_SVC_SIMFQT_SERVICE_HPP
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// StdAir
#include <stdair/stdair_basic_types.hpp>
#includ... |
<commit_before>/**
* \file commands.hxx
* Interface definition for encapsulated commands.
* Started Spring 2001 by David Megginson, david@megginson.com
* This code is released into the Public Domain.
*
* $Id$
*/
#ifndef __COMMANDS_HXX
#define __COMMANDS_HXX
#include <simgear/compiler.h>
#include STL_STRING
#... |
<commit_before>#include "jsonfile.hpp"
#include "xmlfile.hpp"
#include "world.hpp"
using namespace Headway;
World::World(QObject* parent) : QObject(parent)
{
createWorld();
}
World::World(const World& other) : QObject(other.parent()), generations_(other.generations()), count_(other.count()), matrix(new Matrix<bo... |
<commit_before>/** @file assembler.cpp
* Implementation of Assembler class methods
* @author Alexander Potashev
* Copyright 2009 MDSP team
*/
#include "assembler.h"
#include "operation.h"
Assembler::Assembler( std::vector<SemanticUnit *> units)
{
this->units = units;
}
Assembler::~Assembler()
{
}
std::map<... |
<commit_before>//
// overuse_detector_test.cpp
// WebRTC_QoS
//
// Created by Volvet Zhang on 16/10/11.
// Copyright © 2016年 volvet. All rights reserved.
//
#include <assert.h>
#include <string>
#include "overuse_detector_test.hpp"
using namespace std;
namespace webrtc {
const double KRTPTimestampToMS = 1.0... |
<commit_before>/// \author A0112054Y
#include "stdafx.h"
#include "../../../You-Utils/log.h"
#include "../../../You-DataStore/datastore.h"
#include "../../../You-DataStore/transaction.h"
#include "../model.h"
#include "../controller.h"
#include "update_task.h"
namespace You {
namespace QueryEngine {
namespace Intern... |
<commit_before>#include "cxxopts.hpp"
// see https://www.gitmemory.com/issue/ddemidov/amgcl/162/668662041 for inspiration
#include <amgcl/io/mm.hpp>
#include <amgcl/adapter/crs_tuple.hpp>
#include <amgcl/amg.hpp>
#if defined(SOLVER_BACKEND_CUDA)
# include <amgcl/adapter/eigen.hpp>
# include <amgcl/backend/cuda.hpp... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>//
// AmstradCPC.cpp
// Clock Signal
//
// Created by Thomas Harte on 30/07/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#include "StaticAnalyser.hpp"
#include "../../Storage/Disk/Parsers/CPM.hpp"
#include "../../Storage/Disk/Encodings/MFM.hpp"
static bool strcmp_insensitive(con... |
<commit_before>#pragma ident "$Id$"
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
//... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ldapuserprofilebe.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 19:23:53 $
*
* The Contents of this file ... |
<commit_before>AliGenerator* AddMCGenPythia8(Float_t e_cms = 2760., Bool_t kCR = kTRUE)
{
// Add Pythia 8 generator:
// - Color reconnection = ON/OFF
gSystem->Load("liblhapdf.so");
AliGenerator *genP = NULL;
genP = CreatePythia8Gen(e_cms, kCR);
return genP;
}
AliGenerator* CreatePythia8Gen(Float... |
<commit_before>/******************************************************************************
* Copyright 2018 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>// @(#)root/base:$Id$
// Author: Rene Brun 12/12/94
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
===============================================================================
FILE: compressor.hpp
CONTENTS:
Integer compressor
PROGRAMMERS:
martin.isenburg@rapidlasso.com - http://rapidlasso.com
uday.karan@gmail.com - Hobu, Inc.
COPYRIGHT:
(c) 2007-2014, marti... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: srchdlg.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: rt $ $Date: 2005-09-08 18:39:11 $
*
* The Contents of this file are made ... |
<commit_before>#include <cxxtest/TestSuite.h>
#include <typeinfo>
#include "dicek/vector.hpp"
class VectorTest : public CxxTest::TestSuite {
public:
void testInstance( void )
{
using namespace dicek::math;
vector<3, double> v;
}
struct traits {
};
void testInstanceTraits( voi... |
<commit_before>#define CYBOZU_TEST_DISABLE_AUTO_RUN
#include <cybozu/test.hpp>
#include <cybozu/benchmark.hpp>
#include <cybozu/option.hpp>
#include <cybozu/xorshift.hpp>
#include <mcl/bn384.hpp>
#include <mcl/bn.hpp>
#include <mcl/lagrange.hpp>
using namespace mcl::bn384;
mcl::fp::Mode g_mode;
#include "bench.hpp"
... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 f... |
<commit_before>#include "test.hh"
#include <thread.hh>
class Thread : public IThread {
public:
Thread(void (*exitHook)(),
int (*fn)(void *), void *arg)
{
}
MOCK_METHOD0(getRegs, void *());
};
#include "../src/thread.cc"
<commit_msg>unit test: Add expectations on mock<commit_after>#include "test.hh"
#include... |
<commit_before>#include "testsettings.hpp"
#ifdef TEST_ALLOC
#include <string>
#include <tightdb/util/unique_ptr.hpp>
#include <tightdb/util/file.hpp>
#include <tightdb/alloc_slab.hpp>
#include "test.hpp"
using namespace std;
using namespace tightdb;
using namespace tightdb::util;
// Test independence and thread-... |
<commit_before>/* Copyright 2009-2016 Francesco Biscani (bluescarni@gmail.com)
This file is part of the mp++ library.
The mp++ library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; eith... |
<commit_before>#include "libtorrent/session.hpp"
#include "libtorrent/session_settings.hpp"
#include "libtorrent/hasher.hpp"
#include "libtorrent/alert_types.hpp"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/filesystem/operations.hpp>
#include "test.hpp"
#include "setup_transfer.hpp"
u... |
<commit_before>#include "libtorrent/session.hpp"
#include "libtorrent/session_settings.hpp"
#include "libtorrent/hasher.hpp"
#include "libtorrent/alert_types.hpp"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/filesystem/operations.hpp>
#include "test.hpp"
#include "setup_transfer.hpp"
u... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// Unit tests for src/core/SkPoint.cpp and its header
#include "SkPoint.h"
#include "Test.h"
// Tests that SkPoint::length() and SkPoint::Length() both return... |
<commit_before>#include <gtest/gtest.h>
#include <plasp/utils/IO.h>
#include <plasp/utils/Parser.h>
#include <plasp/utils/ParserException.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
TEST(UtilsTests, ParseSimple)
{
std::stringstream s("identifier 5 \n-51... |
<commit_before>#include "KAI/KAI.h"
#include <iostream>
#include <strstream>
#include <stdarg.h>
#include "KAI/Translator/Lexer.h"
using namespace std;
KAI_BEGIN
Lexer::Lexer(const char *in)
: input(in)
{
CreateLines();
AddKeywords();
Run();
}
void Lexer::AddKeywords()
{
keyWords["if"] = Token::If;
keyWords... |
<commit_before>#include "libyaml_utils.h"
#include "logger.h"
// ---------------------------------------------------------------------------------
// ------------------------------- libyaml test code -------------------------------
// ---------------------------------------------------------------------------------
na... |
<commit_before>#include <SFML-Book/Piece.hpp>
#include <SFML-Book/converter.hpp>
#include <iostream>
namespace book
{
const sf::Color Piece::Tetrimino_colors[Piece::Tetrimino_Types::SIZE]= {
sf::Color::Blue,
sf::Color::Red,
sf::Color::Green,
sf::Color::Cyan,
sf::Color::Ma... |
<commit_before>// 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 or agreed to in writing, software
... |
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "core/editing/VisibleSelection.h"
#include "core/dom/Document.h"
#include "core/dom/Range.h"
#include "core/d... |
<commit_before>//===- MemDepPrinter.cpp - Printer for MemoryDependenceAnalysis -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
Copyright (c) 2015, Project OSRM contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of condi... |
<commit_before>//===- DCE.cpp - Code to perform dead code elimination --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include <iostream>
#include <exception>
#include <stdlib.h>
#include <string>
#include <sstream>
using std::cout;
using std::endl;
using std::string;
static void Error(const char* msg){
cout << "ERROR: " << msg << endl;
exit(EXIT_FAILURE);
}
static void Warn(const cha... |
<commit_before>//===-- asan_win_dll_thunk.cc ---------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkCellInterfaceTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSliceIteratorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2001 Insight Consortium
All rights reserved.
Redistribut... |
<commit_before>#include <Poco/Buffer.h>
#include <Poco/Logger.h>
#include <Poco/SharedPtr.h>
#include <Poco/JSON/Object.h>
#include <Poco/Net/WebSocket.h>
#include "gwmessage/GWGatewayRegister.h"
#include "gwmessage/GWGatewayAccepted.h"
#include "gws/WebSocketRequestHandler.h"
#include "util/Sanitize.h"
using namespa... |
<commit_before>/*******************************************************************************
* Copyright (c) 2016 James Chapman
*
* 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>// Copyright (c) 2013 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/web_ui_controller_factory.h"
#include "browser/browser_context.h"
#include "browser/devtools_ui.h"
#includ... |
<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 "webkit/appcache/appcache_host.h"
#include "base/logging.h"
#include "webkit/appcache/appcache_request_handler.h"
namespace ... |
<commit_before>#include <wiringPi.h>
int main (void)
{
wiringPiSetup () ;
pinMode (0, OUTPUT) ;
for (;;)
{
digitalWrite (0, HIGH) ; delay (500) ;
digitalWrite (0, LOW) ; delay (500) ;
}
return 0 ;
}<commit_msg>minor change<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.