text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/data/smart_buffer.h>
using namespace vespalib;
void checkMemory(const vespalib::string &expect, const Memory &mem)... |
<commit_before>//
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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... |
<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.... |
<commit_before>/* -*- c++ -*-
passphrasedialog.cpp
This file is part of libkleopatra, the KDE keymanagement library
Copyright (c) 2004 Klarlvdalens Datakonsult AB
Libkleopatra is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
publi... |
<commit_before>/*
* Copyright (C) 1999 Lars Knoll ([email protected])
* (C) 1999 Antti Koivisto ([email protected])
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU... |
<commit_before>// Copyright (c) 2014, Ruslan Baratov
// All rights reserved.
#include <sober/sober.hpp>
class Delegate : public sober::network::api::OpenWeatherMap {
public:
using Base = sober::network::api::OpenWeatherMap;
using StatusCode = sober::network::http::response::attribute::StatusCode;
using ErrorCo... |
<commit_before>/*
This file is part of HadesMem.
Copyright (C) 2010 Joshua Boyce (aka RaptorFactor, Cypherjb, Cypher, Chazwazza).
<http://www.raptorfactor.com/> <[email protected]>
HadesMem is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as... |
<commit_before>#include <gtest/gtest.h>
#include "stan/prob/distributions/multivariate/continuous/multi_normal_cholesky.hpp"
#include <boost/random/mersenne_twister.hpp>
#include <boost/math/distributions.hpp>
#include <stan/agrad/rev.hpp>
using Eigen::Dynamic;
using Eigen::Matrix;
using std::vector;
TEST(ProbDistrib... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (a... |
<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: tp_SeriesToAxis.cxx,v $
* $Revis... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/status/status_area_button.h"
#include "grit/theme_resources.h"
#include "ui/gfx/canvas.h"
#include "... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2012 Razor team
* Authors:
* Johannes Zellner <[email protected]>
*
* This program or library is free software; you can redistribute it
* and/or modify it... |
<commit_before>/*
* Copyright (c) 2000-2004 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include "global_state_annotation.h"
namespace fish_annotator {
GlobalStateAnnotation::GlobalStateAnnotation(
std::map<std::string, bool> states)
: states_(states) {
}
GlobalStateAnnotation::GlobalStateAnnotation()
: states_() {
}
pt::ptree GlobalStateAnnotation::write() const {
pt::ptree arr... |
<commit_before>// include google test
#include <gtest/gtest.h>
// include files to test
#include <common/PackedString.hpp>
#include <common/alphabets.hpp>
#include <common/AlphabetTraits.hpp>
class PackingTest : public ::testing::Test
{
public:
std::vector<std::string> dna_seqs = {"", "A", "T", "C", "AC", "AAAAAAAA... |
<commit_before>/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>/* rapicorn-zintern - small C source compression utility
* Copyright (C) 2003-2006 Tim Janik
*
* 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... |
<commit_before>#include "Analog.h"
#include "..\sysex\SysEx.h"
#include "..\eeprom\Configuration.h"
#include "..\interface\settings\AnalogSettings.h"
Analog::Analog() {
//def const
}
void Analog::init() {
const subtype analogEnabledSubtype = { MAX_NUMBER_OF_ANALOG, 0, 1 };
const subtype analog... |
<commit_before>#include "ImageStreamer.hpp"
#include "ImageImporter.hpp"
#include "DeviceManager.hpp"
#include "Exception.hpp"
using namespace fast;
/**
* Dummy function to get into the class again
*/
inline void stubStreamThread(ImageStreamer * streamer) {
streamer->producerStream();
}
DynamicImage::pointer Im... |
<commit_before>/*
* BatteryTech
* Copyright (c) 2010 Battery Powered Games LLC.
*
* This code is a component of BatteryTech and is subject to the 'BatteryTech
* End User License Agreement'. Among other important provisions, this
* license prohibits the distribution of source code to anyone other than
* a... |
<commit_before>/**
* @file
*
* Includes all external headers.
*/
#pragma once
#include <algorithm>
#include <numeric>
#include <limits>
#include <utility>
#include <functional>
#include <vector>
#include <memory>
#include <string>
#include <sstream>
#include <iomanip>
#include <initializer_list>
#include <cassert>... |
<commit_before>/* Sirikata Utilities -- Sirikata Utilities
* Singleton.hpp
*
* Copyright (c) 2009, Daniel Reiter Horn
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistr... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include "core/posix.hh"
#include "core/vla.hh"
#include "core/reactor.hh"
#include "core/future-util.hh"
#include "core/stream.hh"
#include "core/circular_buffer.hh"
#include "cor... |
<commit_before>#ifndef TEST_NOTCH_IO_HPP
#define TEST_NOTCH_IO_HPP
#include <sstream>
#include "catch.hpp"
#include "notch_io.hpp"
using namespace std;
TEST_CASE("Array plain-text I/O", "[io]") {
Array a = {0.5, 1.0, 2.0, 4.0};
// output
ostringstream sout;
sout << a;
CHECK(sout.str() == "0.5 ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/C... |
<commit_before>#pragma once
#include "crow/core.hpp" // -lcrow
#include <map>
#include <stdexcept>
#include <string>
namespace Unicorn {
namespace UnicornDetail {
struct UnicodeVersionTable {
std::map<Crow::Version, char32_t> table;
UnicodeVersionTable();
};
cons... |
<commit_before>/* Copyright (c) 2014 Quanta Research Cambridge, Inc
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to us... |
<commit_before>#include "stdafx.h"
#include "UICurve.h"
#include "../resource/ResManager.h"
using namespace Gear::Res;
UICurve::UICurve()
#ifdef USE_D2D_RENDER_MODE
:m_pColorBrush(nullptr)
, m_pStrokeStyle(nullptr)
#else
#endif
{
InitAttrMap();
InitEventMap();
InitAttrValuePatternMap();
InitAttrValueParserMap(... |
<commit_before>#ifndef DATAMANAGER_H
#define DATAMANAGER_H
#include "StdIncl.hpp"
#include "types/Data.hpp"
#include "InvalidConfigException.hpp"
namespace uipf{
using namespace std;
// Provides and controls access to Parameters, Input and Outputdata
class DataManager
{
public:
DataManager(std::map < std::strin... |
<commit_before>// Copyright (c) 2021 The Orbit 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 "SessionSetup/RetrieveInstancesWidget.h"
#include <QCoreApplication>
#include <QLineEdit>
#include <QMessageBox>
#include <QObje... |
<commit_before>/* Copyright 2019 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>// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
#include <stdint.h>
#include <stdio.h>
#include <sys/mman.h>
int main() {
const size_t kLog2Size = 40;
const uintptr_t kLocation = 0x40ULL << kLog2Size;
void *p = mmap(
reinterpret_cast<void*>(kLocation),
1ULL << kLog2Size... |
<commit_before>#include "ComplexSymLoader.h"
#include "FilepathHelper.h"
#include "SpriteFactory.h"
#include "SprTransLoader.h"
#include <sprite2/ComplexSymbol.h>
#include <simp/NodeComplex.h>
#include <fstream>
namespace gum
{
ComplexSymLoader::ComplexSymLoader(s2::ComplexSymbol* sym)
: m_sym(sym)
{
if (m_sym) {... |
<commit_before>#include <LinearizedTree.h>
#include <algorithm>
LinearizedTree::LinearizedTree()
: _tree(nullptr)
, _strategy(None)
, _nextIndex(0)
{
}
LinearizedTree::LinearizedTree(const Tree* tree, Algorithm strategy)
: _tree(tree)
, _strategy(strategy)
, _nodes(tree->size())
, _nextIndex(0)
{
linearize();
}
co... |
<commit_before>/*
Copyright (C) 2005 by Jorrit Tyberghein
(C) 2005 by Frank Richter
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,... |
<commit_before>// tinygettext - A gettext replacement that works directly on .po files
// Copyright (C) 2009 Ingo Ruhnke <[email protected]>
//
// 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 Foundatio... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp_scom.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_cppm... |
<commit_before>/// \file ConfigureAndGetEventTriggerMaskAndCaloTriggerString.C
/// \ingroup CaloTrackCorrMacros
/// \brief Configuration of the event trigger
///
/// Configuration macro of the task event trigger, depending on trigger name,
/// specially for EMCal triggers.
/// The trigger event settings depend on spec... |
<commit_before>/*
* Copyright (c) 2016 Zubax, zubax.com
* Distributed under the MIT License, available in the file LICENSE.
* Author: Pavel Kirienko <[email protected]>
*/
/*
* Simple command shell designed as a more versatile replacement to the ChibiOS embedded shell.
*/
#pragma once
#include <ch.hpp>
... |
<commit_before>#include "HelloPolycodeApp.h"
HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
CoreServices::getInstance()->getResourceManager()->addDirResourc... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>// This file is part of the ustl library, an STL implementation.
//
// Copyright (C) 2005 by Mike Sharov <[email protected]>
// This file is free software, distributed under the MIT License.
//
// sostream.h
//
#include "mistream.h" // for istream_iterator, referenced in utf8.h
#include "sos... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: OptimizationExample.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/tests/test_fullscreen.h"
#include <stdio.h>
#include <string.h>
#include <string>
#include "ppapi/c/dev/ppb_testing_d... |
<commit_before>#include <mex.h>
#include <stdio.h>
#include <zmq.h>
#include <string.h>
#include <assert.h>
#include "protocol.h"
////////////////////////////////////////////////////////////
// Global variables
uint16_T socket_port;
uint32_T socket_timeout;
void *context;
void *zsocket;
zmq_pollitem_t poll_items [1];
... |
<commit_before>#include <leveldb/db.h>
#include <leveldb/slice.h>
#include <leveldb/env.h>
#include <leveldb/write_batch.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <pthread.h>
#include <errno.h>
#incl... |
<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>#include <stdint.h>
#include <assert.h>
/////////////////////////////////////////////////////////////////////////////////////////
class BitArray
{
public:
uint32_t *v;
const uint32_t size;
BitArray(uint32_t size =1)
: size(size)
{
v = new uint32_t [size];
}
~Bit... |
<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>/*
* Copyright 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. Al... |
<commit_before>// ECE556 - Copyright 2014 University of Wisconsin-Madison. All Rights Reserved.
#include "ece556.h"
int main(int argc, char **argv)
{
signal(SIGSEGV, handler);
if(argc!=3){
printf("Usage : ./ROUTE.exe <input_benchmark_name> <output_file_name> \n");
return 1;
}
int status;... |
<commit_before><commit_msg>linux: abort unless we have the proper version of NSS<commit_after><|endoftext|> |
<commit_before><commit_msg>Fixing scoped_ptr misusage in base/win_util.cc BUG=24266<commit_after><|endoftext|> |
<commit_before>//@author A0097630B
#include "stdafx.h"
#include "exceptions/parse_error_exception.h"
#include "query_parser.h"
namespace You {
namespace NLP {
namespace spirit = boost::spirit;
namespace qi = spirit::qi;
namespace phoenix = boost::phoenix;
QUERY QueryParser::parse(const StringType& string) {
QUERY r... |
<commit_before>//@author A0097630B
#include "stdafx.h"
#include "exceptions/parse_error_exception.h"
#include "query_parser.h"
namespace You {
namespace NLP {
namespace spirit = boost::spirit;
namespace qi = spirit::qi;
namespace phoenix = boost::phoenix;
QUERY QueryParser::parse(const StringType& string) {
QUERY r... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_thro... |
<commit_before>#include "np-divs/np_divs.hpp"
#include "np-divs/matrix_io.hpp"
#include "np-divs/div-funcs/div_func.hpp"
#include "np-divs/div_func_from_str.hpp"
#include <iostream>
#include <fstream>
#include <string>
#include <boost/program_options.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <flann... |
<commit_before>/*
* Copyright (c) 2015 Oleg Morozenkov
*
* 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, copy, mod... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: out_node.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-09-18 14:04:03 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: expop2.cxx,v $
*
* $Revision: 1.25 $
*
* last change: $Author: rt $ $Date: 2005-09-08 18:57:15 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlnexpi.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: vg $ $Date: 2003-06-04 12:36:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: graphsh.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:59:24 $
*
* The Contents of this file are made a... |
<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 "media/base/media.h"
#include <windows.h>
#include "base/file_path.h"
#include "base/logging.h"
#include "base/path_service.... |
<commit_before>/* -LICENSE-START-
** Copyright (c) 2013 Blackmagic Design
**
** Permission is hereby granted, free of charge, to any person or organization
** obtaining a copy of the software and accompanying documentation covered by
** this license (the "Software") to use, reproduce, display, distribute,
** execute, a... |
<commit_before>// ======================================================================== //
// Copyright 2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#ifndef __SCHEME_MASTER_HPP_INCLUDED
#define __SCHEME_MASTER_HPP_INCLUDED
// Include standard headers
#include <string> // std::string
#include "s7.h"
namespace yli
{
namespace scheme
{
class SchemeMaster
{
public:
// constructor.
Sch... |
<commit_before>/*************************************************************************
*
* $RCSfile: typemanager.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2004-06-04 03:09:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*************************************************************************
*
* $RCSfile: javatype.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-06-04 03:14:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/browser/gtk/status_icons/status_icon_gtk.h"
#include "c... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <cairo/c... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2010 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 2009 Thomas McGuire <[email protected]>
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 ) version 3 o... |
<commit_before>
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "BeaconEntity.h"
#include "../BlockArea.h"
#include "../Entities/Player.h"
#include "../UI/BeaconWindow.h"
#include "../ClientHandle.h"
cBeaconEntity::cBeaconEntity(BLOCKTYPE a_BlockType, NIBBLE... |
<commit_before><commit_msg>use p for momentum threshold of protons<commit_after><|endoftext|> |
<commit_before>#include "Definitions.h"
#include "Simulator.h"
#include "cpplog/cpplog.hpp"
#include <boost/filesystem.hpp>
#include <boost/make_shared.hpp>
int main(int argc, char **argv)
{
auto logger = boost::make_shared<cpplog::StdErrLogger>();
state state0;
state0.V = -70;
state0.h = 1.0;
st... |
<commit_before>template <class T> struct F {};
template <class T> class I {
F<T> m;
};
struct C {
typedef short char_type;
typedef F<char_type> f; // commenting this line out fixes it!
typedef I<char_type> i;
};
<commit_msg>minor change<commit_after>template <class T> struct F {};
template <class T> struc... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>#include <Kunlaboro/Component.inl>
#include <Kunlaboro/Entity.inl>
#include <Kunlaboro/EntitySystem.inl>
#include <Kunlaboro/Views.inl>
#include "catch.hpp"
#include <atomic>
#include <random>
struct NumberComponent : public Kunlaboro::Component
{
NumberComponent(int i)
: Number(i)
{ }
int Numbe... |
<commit_before>#include "WrapperGenerator.h"
using namespace std;
void WrapperGenerator::initOpToGenMap() {
shared_ptr<TracingInnerWrapperGenerator> traceGen;
shared_ptr<CachingIPCInnerWrapperGenerator> cachingIPCGen;
shared_ptr<NonCachingIPCInnerWrapperGenerator> nonCachingIPCGen;
traceGen = make_sh... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/*************************************************************************
*
* $RCSfile: sdxmlwrp.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: cl $ $Date: 2000-11-17 11:13:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/// \file libuobject/main.cc
#include <libport/cstdio>
#include <libport/unistd.h>
#include <cerrno>
#include <iostream>
#include <list>
#include <sstream>
#include <libport/cli.hh>
#include <libport/containers.hh>
#include <libport/foreach.hh>
#include <libport/lexical-cast.hh>
#include <libport/pack... |
<commit_before>#include "Phantom_vrepHW.h"
#include "../v_repLib.h"
#include <string>
#include <iostream>
namespace MR
{
std::string Phantom_vrepHW::sm_jointsName[MR_JOINTS_NUM] = {
"PhantomXPincher_joint1",
"PhantomXPincher_joint2",
"PhantomXPincher_joint3",
"PhantomXPincher_joint4"
};
////////////////... |
<commit_before>/*
Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open
Source Software License
Copyright (c) 2008 Ames Laboratory Iowa State University
All rights reserved.
Redistribution and use of HOOMD, in source and binary forms, with or
without modification, are permitted, provided that the following
... |
<commit_before><commit_msg>sensord cleanup (#2111)<commit_after><|endoftext|> |
<commit_before>// Copyright 2015 Google Inc. 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 require... |
<commit_before>/*
Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open
Source Software License
Copyright (c) 2008 Ames Laboratory Iowa State University
All rights reserved.
Redistribution and use of HOOMD, in source and binary forms, with or
without modification, are permitted, provided that the following
... |
<commit_before>// Copyright 2015 Google Inc. 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 require... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
*
* Condor Software Copyright Notice
* Copyright (C) 1990-2006, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* This source code is covered by the Condor Public License, which can
* be foun... |
<commit_before>#ifndef __Data_general__
#define __Data_general__
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <algorithm> // has the for_each
using namespace std;
enum GenEd {
// Foundation Studies
FYW, // First-Year Writing
WRI, // Writing in Context
FOL, // For... |
<commit_before>// material_tests.cpp
#include "material_tests.h"
#include <cmath>
#include <gtest/gtest.h>
#include "cyc_limits.h"
#include "error.h"
#include "mat_query.h"
using cyclus::Iso;
using cyclus::CompMap;
using cyclus::Composition;
using cyclus::Material;
//- - - - - - - - - - - - - - - - - - - - - - - - ... |
<commit_before>/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 ... |
<commit_before>/*
* Copyright 2012 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 by applicable l... |
<commit_before>#include "country_status_display.hpp"
#include "framework.hpp"
#include "../gui/controller.hpp"
#include "../gui/button.hpp"
#include "../gui/text_view.hpp"
#include "../graphics/overlay_renderer.hpp"
#include "../graphics/display_list.hpp"
#include "../platform/platform.hpp"
#include "../base/thread... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <[email protected]>
*
* 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; eithe... |
<commit_before>#include <cstdlib>
#include <set>
#include "BinaryRegion.hpp"
int main(int argc, char** argv) {
BinaryRegion binaryRegion(
0x00400000, /* Base address */
0, /* Entry point offset */
"\x50\x8B\xD9\xEB\x01\xDE\x83\xF2\x43",
9
);
return EXIT_SUCCESS;
}<commit_msg>furthering region split te... |
<commit_before>/*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <[email protected]>
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
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.