text stringlengths 54 60.6k |
|---|
<commit_before>#include <tree.h>
#include <catch.hpp>
SCENARIO ("init", "[init]")
{
Tree<int> test;
REQUIRE(test.root_() == nullptr);
REQUIRE(test.get_count() == 0);
}
SCENARIO("insert", "[init]")
{
Tree<int> test;
test.insert_node(5);
REQUIRE(test.get_count() == 1);
REQUIRE(test.find_node(... |
<commit_before>#include <stack.cpp>
#include <catch.hpp>
#include <iostream>
//using namespace std;
SCENARIO("count", "[count]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
}
SCENARIO("push", "[push]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
REQUIRE(s.top()==1);
}
SCENARIO("top", "[top]")... |
<commit_before>#include <BST.hpp>
#include <catch.hpp>
#include <fstream>
SCENARIO ("init", "[init]")
{
BST<int> test;
REQUIRE(test.getroot() == nullptr);
REQUIRE(test.getcount() == 0);
}
SCENARIO("insert", "[init]")
{
BST<int> test;
test.add(10);
REQUIRE(test.search(10, test.getroot()) != 0);
}
... |
<commit_before>#include "catch.hpp"
#include <iostream>
//#include "Database_Creator.hpp"
#include "Database_Sorter.hpp"
person readPerson(std::string file_name, size_t index) {
person result;
std::ifstream file(file_name);
for (size_t i = 0; i < index + 1; i++) {
file >> result;
}
file.close();
return result;... |
<commit_before>#include <BinaryTree.hpp>
#include <catch.hpp>
SCENARIO ("init", "[init]")
{
BinaryTree<int> obj;
REQUIRE(obj.root_() == nullptr);
}
SCENARIO("insert", "[insert]")
{
BinaryTree<int> obj;
obj.insert_node(3);
REQUIRE(obj.find_node(3, obj.root_())->data == 3);
}
SCENARIO("find_node", "[find_nod... |
<commit_before>/* vim: set ts=2 expandtab: */
/**
* @file test.cpp
* @brief
*
* @author Josh King (jheretic), jking@chambana.net
*
* @internal
* Created 11/17/2013 06:01:11 PM
* Compiler gcc/g++
* Organization The Open Technology Institute
* Copyright Copyright (c) 2013, J... |
<commit_before>/*
C++ interface test
*/
#include <libmemcached/memcached.hpp>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctime>
#include <libtest/server.h>
#include <libtest/test.hpp>
#include <string>
#i... |
<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>/*****************************************************************************\
* ANALYSIS PERFORMANCE TOOLS *
* libparaver-api *
* API Library for libparaver-kernel ... |
<commit_before>/******************************************************************************\
* File: process.cpp
* Purpose: Implementation of class 'wxExProcess'
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009 Anton van Wezenbeek
* All rights are reserved. Reprod... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#ifndef VIENNAGRID_ELEMENT_CREATION_HPP
#define VIENNAGRID_ELEMENT_CREATION_HPP
/* =======================================================================
Copyright (c) 2011-2013, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>/*************************************************************************
*
* $RCSfile: backendaccess.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: hr $ $Date: 2003-04-04 16:11:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*************************************************************************
*
* $RCSfile: bootstrapcontext.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-03-19 16:19:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tools.cxx,v $
*
* $Revision: 1.28 $
*
* last change: $Author: rt $ $Date: 2008-01-30 07:55:41 $
*
* The Contents of this file are made av... |
<commit_before>#include <derecho/derecho.h>
#include <derecho/view.h>
#include <chrono>
#include <fstream>
#include <map>
#include <string>
#include <thread>
#include <vector>
#include <algorithm>
using namespace derecho;
using std::ifstream;
using std::string;
using std::vector;
int main(int argc, char* argv[]) {
... |
<commit_before>/**
* @file Cosa/Driver/DHT22.hh
* @version 1.0
*
* @section License
* Copyright (C) 2012-2013, Mikael Patel
*
* 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; eith... |
<commit_before>//
// SamplerVoice.cpp
// AudioKit Core
//
// Created by Shane Dunne, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
#include "SamplerVoice.hpp"
#include <stdio.h>
#define MIDDLE_C_HZ 262.626f
namespace AudioKitCore
{
void SamplerVoice::init(double sampleRate... |
<commit_before>/**
* @file
* exercise_02_41_part_5.cpp
* @author
* Henrik Samuelsson, henrik.samuelsson(at)gmail.com
* @brief
* Part five of exercise 2.41 from the book C++ Primer (5th edition).
* @details
* The book store program from section 1.6 but using the Sales_data class
* inst... |
<commit_before>/*
* Copyright 2014-2019 Real Logic 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 required by applicab... |
<commit_before># pragma once
# include <Siv3D.hpp>
# include "AscMessageManager.hpp"
# include "AscSpriteManager.hpp"
namespace asc
{
using namespace s3d;
using Commnad = std::pair<int32, String>;
class Novel
{
private:
bool m_isUpdating;
int32 m_currentLine;
Array<Commnad> m_commands;
MessageManage... |
<commit_before><commit_msg>cp: warnings: initalize mpNatPunchthroughClient after mpReplicaManager3<commit_after><|endoftext|> |
<commit_before>/*=========================================================================
*
* Copyright LUMC and contributors
*
* 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>/*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing 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 r... |
<commit_before>/*
* DataMask.cpp
* zxing
*
* Created by Christian Brunschen on 19/05/2008.
* Copyright 2008 ZXing 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 th... |
<commit_before>/** \brief Utility for converting Dublin Core data downloaded from ICPSR to MARC.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2021 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or... |
<commit_before>/**
@file ConnectionSTREAM_UNITE.cpp
@author Lime Microsystems
@brief Implementation of STREAM+UNITE board connection.
*/
#include "ConnectionSTREAM_UNITE.h"
#include "ErrorReporting.h"
using namespace std;
namespace lime
{
ConnectionSTREAM_UNITE::ConnectionSTREAM_UNITE(void* ctx, const std... |
<commit_before>#ifndef resplunk_util_Cloneable_HeaderPlusPlus
#define resplunk_util_Cloneable_HeaderPlusPlus
#include <memory>
#include <type_traits>
namespace resplunk
{
namespace util
{
struct Cloneable
{
Cloneable() = default;
Cloneable(Cloneable const &) = default;
Cloneable &operator=(Cloneable co... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/atom_browser_client.h"
#if defined(OS_WIN)
#include <shlobj.h>
#endif
#include "atom/browser/api/atom_api_app.h"
#include "atom/browser/api/atom... |
<commit_before>#include "Game.h"
Game::Game()
{
renderWindow.create(VideoMode(SCREEN_WIDTH,SCREEN_HEIGHT), "SFML Snake");
renderWindow.setVerticalSyncEnabled(true);
gameState = MENU;
srand(time(0));
snakeFast = false;
canWalkBorder = true;
generateWalls = false;
gamePause... |
<commit_before>/*****************************************************************************
* Help.cpp : Help and About dialogs
****************************************************************************
* Copyright (C) 2007 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b3ivector.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-07 20:55:03 $
*
* The Contents of this file are made... |
<commit_before>// illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver 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 Found... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: ImageRegionIteratorWithIndex.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
... |
<commit_before>#include "Halide.h"
#include "halide_benchmark.h"
using namespace Halide;
using namespace Halide::Tools;
Var x("x"), y("y");
// Downsample with a 1 3 3 1 filter
Func downsample(Func f) {
Func downx("downx"), downy("downy");
downx(x, y, _) = (f(2*x-1, y, _) + 3.0f * (f(2*x, y, _) + f(2*x+1, y, ... |
<commit_before>#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <functional>
#include "std_is_missing_stuff.h"
#include "global.h"
#include "operators.h"
#include "tokens.h"
#include "nodes.h"
class Parser {
private:
std::vector<Token> to... |
<commit_before>#include "arguments.hpp"
#include "call_frame.hpp"
#include "memory.hpp"
#include "metrics.hpp"
#include "builtin/array.hpp"
#include "builtin/class.hpp"
#include "builtin/exception.hpp"
#include "builtin/fiber.hpp"
#include "builtin/lookup_table.hpp"
#include "builtin/object.hpp"
#include "memory/gc.h... |
<commit_before>#include "cnn/init.h"
#include "cnn/aligned-mem-pool.h"
#include "cnn/cnn.h"
#include "cnn/model.h"
#include <iostream>
#include <random>
#include <cmath>
#if HAVE_CUDA
#include "cnn/cuda.h"
#include <device_launch_parameters.h>
#endif
using namespace std;
namespace cnn {
AlignedMemoryPool<AL... |
<commit_before>// @(#)root/pyroot:$Id$
// Author: Wim Lavrijsen, Jan 2005
// Bindings
#include "PyROOT.h"
#include "PyStrings.h"
#include "ObjectProxy.h"
#include "Utility.h"
// ROOT
#include "TObject.h"
#include "TBufferFile.h" // for pickling
//- data _________________________________________________________... |
<commit_before>// Copyright Daniel Wallin 2007. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <libtorrent/extensions.hpp>
#include <libtorrent/entry.hpp>
#include <libtorre... |
<commit_before>// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// Please see LICENSE.md in repository root for license information
// https://github.com/AtomicGameEngine/AtomicGameEngine
#include "AtomicEditor.h"
#include <rapidjson/document.h>
#include "rapidjson/prettywriter.h"
#include "rapi... |
<commit_before>//
// AHDSHREnvelope.cpp
// AudioKit
//
// Created by Jeff Cooper on 5/21/20.
// Copyright © 2020 AudioKit. All rights reserved.
//
#include "AHDSHREnvelope.hpp"
#include <cmath>
namespace AudioKitCore
{
AHDSHREnvelopeParameters::AHDSHREnvelopeParameters()
: sampleRateHz(44100.0f) // ... |
<commit_before>#include "Stabilization.h"
#include <sofa/core/ObjectFactory.h>
#include "../utils/map.h"
namespace sofa {
namespace component {
namespace odesolver {
SOFA_DECL_CLASS(Stabilization);
int StabilizationClass = core::RegisterObject("Kinematic constraint stabilization").add< Stabilization >();
Stabiliz... |
<commit_before>//
// Created by Sam on 3/29/2018.
//
#include "../../../../include/Network/Response/Game/CreatureAttackedMessage.h"
#include "../../../../include/Game/Player.h"
#include "../../../../include/Game/Card/Creature.h"
CreatureAttackedMessage::CreatureAttackedMessage(CreatureAttackedEvent creatureAttackedEv... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015-2017 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, t... |
<commit_before>#include "addtype.h"
#include "ui_addtype.h"
AddType::AddType(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddType)
{
ui->setupUi(this);
}
AddType::~AddType()
{
delete ui;
}
void AddType::on_button_Save_Type_clicked()
{
//If validation fails these are used
bool canCreateType ... |
<commit_before>#include <string.h>
#include <stdbool.h>
#include <iostream>
using namespace std;
#define ctab "\t"
#include "tests.h"
#include "basetypes.h"
#include "command.h"
#include "main.h"
// COMMAND WORD
///////////////
class CommandWord {
public:
char word[1000], *walker;
int wordcount;
CommandWor... |
<commit_before>#pragma once
#include "application_launcher.hpp"
#include "configuration_monitor.hpp"
namespace krbn {
class menu_process_manager final {
public:
menu_process_manager(const menu_process_manager&) = delete;
menu_process_manager(std::shared_ptr<configuration_monitor> configuration_monitor) {
// ... |
<commit_before>/*!
* \carl_joy_teleop.cpp
* \brief Allows for control of CARL with a joystick.
*
* carl_joy_teleop creates a ROS node that allows the control of CARL with a joystick.
* This node listens to a /joy topic and sends messages to the /cmd_vel topic.
*
*
* \author Russell Toris, WPI - rctoris@wpi.edu
... |
<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.
//
// Broker RPC Server implementation.
#include "ceee/ie/broker/broker_rpc_server.h"
#include "base/atomic_sequence_num.h"
#include "... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "... |
<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.
//
// Implementation of the SafeBrowsingBlockingPage class.
#include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#ifndef _Stroika_Foundation_Memory_Common_inl_
#define _Stroika_Foundation_Memory_Common_inl_ 1
/*
********************************************************************************
***************************** Implementatio... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TitleHelper.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 01:35:17 $
*
* The Contents of this file are ma... |
<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 <string>
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/rand_util.h"
#include "base/string_util.h"
#inc... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#ifndef _Stroika_Foundation_Memory_Common_inl_
#define _Stroika_Foundation_Memory_Common_inl_ 1
/*
********************************************************************************
***************************** Implementatio... |
<commit_before>// Copyright (c) The University of Cincinnati.
// All rights reserved.
// UC MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
// THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE, OR N... |
<commit_before><commit_msg>Initialize salt_ to zero in VisitedLinkCommon.<commit_after><|endoftext|> |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* ZoteroBetterBibTeX.cpp
*
* Copyright (C) 2009-20 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero Ge... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2015 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before><commit_msg>Fix ui test failure<commit_after><|endoftext|> |
<commit_before>// Copyright 2008, 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:
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is ... |
<commit_before>/*
OpenDeck MIDI platform firmware
Copyright (C) 2015-2017 Igor Petrovic
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... |
<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/devtools/render_view_devtools_agent_host.h"
#include "base/basictypes.h"
#include "base/lazy_instance.h"
#in... |
<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 "base/bind.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/ref... |
<commit_before>/*
* This file is part of the UnTech Editor Suite.
* Copyright (c) 2016 - 2018, Marcus Rowe <undisbeliever@gmail.com>.
* Distributed under The MIT License: https://opensource.org/licenses/MIT
*/
#include "palettecentralwidget.h"
#include "paletteresourceitem.h"
#include "gui-qt/resources/palette/pal... |
<commit_before>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2021-present David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
... |
<commit_before>#if !defined (__CINT__) || defined (__MAKECINT__)
#include "AliAnalysisManager.h"
#include "AliAnalysisTaskPtEMCalTriggerV1.h"
#include "AliESDtrackCuts.h"
#include "AliJetContainer.h"
#include <TList.h>
#include <TString.h>
#include <cstring>
#endif
void AddClusterComponent(EMCalTriggerPtAnalysis::AliE... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestAxisActor3D.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkImageFileWriterStreamingTest1.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights res... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkExhaustiveOptimizerTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
**... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#include "halley/tools/assets/import_assets_database.h"
#include "halley/bytes/byte_serializer.h"
#include "halley/resources/resource_data.h"
#include "halley/tools/file/filesystem.h"
constexpr static int currentAssetVersion = 50;
using namespace Halley;
void ImportAssetsDatabaseEntry::serialize(Seria... |
<commit_before>/*
* Copyright (C) 2020 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 Toru Niina 2017.
// Distributed under the MIT License.
#ifndef TOML11_TYPES_HPP
#define TOML11_TYPES_HPP
#include "datetime.hpp"
#include "string.hpp"
#include "traits.hpp"
#include "comments.hpp"
namespace toml
{
template<typename Comment, // discard/preserve_comment
template... |
<commit_before>// Copyright 2017-2020 The Verible 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 a... |
<commit_before>//------------------------------------------------------------------------------
// RenderEnumsTest.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "UnitTest++/src/UnitTest++.h"
#include "Core/String/String.h"
#include "Render/Core/Enum... |
<commit_before>/*
This file is part of solidity.
solidity 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.
solidity is distributed in ... |
<commit_before>/*
Copyright (c) 2003-2012, 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 ... |
<commit_before>// Copyright 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 file.
#include "media/audio/sounds/wav_audio_handler.h"
#include <algorithm>
#include <cstring>
#include "base/logging.h"
#include "base/sys_by... |
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
#ifndef __BSE_PUGIXML_HH__
#define __BSE_PUGIXML_HH__
#define PUGIXML_NO_XPATH
#define PUGIXML_NO_EXCEPTIONS
// Tune these constants to adjust memory-related behavior
// #define PUGIXML_MEMORY_PAGE_SIZE 32768
// #define PUGIXML_M... |
<commit_before>// @(#)root/winnt:$Name: $:$Id: TWin32Timer.cxx,v 1.1.1.1 2000/05/16 17:00:46 rdm Exp $
// Author: Valery Fine(fine@mail.cern.ch) 29/09/98
#include <process.h>
#include "Windows4Root.h"
#include "TTimer.h"
#include "TROOT.h"
#include "TWin32Timer.h"
#include "TWin32HookViaThread.h"
#include "TGWin32... |
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
#include "viewport.hh"
#include "factory.hh"
#define VDEBUG(...) RAPICORN_KEY_DEBUG ("Viewport", __VA_ARGS__)
namespace Rapicorn {
ViewportImpl::ViewportImpl () :
xoffset_ (0), yoffset_ (0),
sig_scrolled (Aida::slot (*this... |
<commit_before>/*************************************************************************/
/* image_loader_svg.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) 2010 Kitware 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 a... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
<commit_before>/*************************************************************************
*
* $RCSfile: EnhancedCustomShapeToken.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2004-11-26 14:09:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the... |
<commit_before>namespace Bull
{
template <typename T>
Angle<T> Angle<T>::degree(T value)
{
return Angle<T>(value, true);
}
template <typename T>
Angle<T> Angle<T>::radian(T value)
{
return Angle<T>(value);
}
template <typename T>
Angle<T> Angle<T>... |
<commit_before>/// @brief provides a proxy class to deal with integer below fixed-point number
#ifndef INC_CORE_AS_NATIVE_PROXY_HPP_
#define INC_CORE_AS_NATIVE_PROXY_HPP_
#include <boost/integer/integer_mask.hpp>
namespace core {
template<typename T, size_t n, size_t f, class op, class up>
class fix... |
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_LA_CONTAINER_FACTORY_EIGEN_HH
#define DUNE_DETAILED_DISCRETIZATIONS_LA_CONTAINER_FACTORY_EIGEN_HH
//#ifdef HAVE_EIGEN
#include <dune/common/shared_ptr.hh>
#include <dune/stuff/la/container/pattern.hh>
#include <dune/stuff/la/container/eigen.hh>
namespace Dune {
n... |
<commit_before>/**
* This file implements a command line utility to interact
* with the `d2` library.
*/
#include <boost/exception/diagnostic_information.hpp>
#include <boost/exception/get_error_info.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#inclu... |
<commit_before>#ifndef VORIMAGE_H
#define VORIMAGE_H
#include <tuple>
#include <vector>
#include <queue>
#include <numeric>
#include <iterator>
#include "detail/heapqueue.hpp"
#include "detail/common.hpp"
namespace ndtess {
namespace vorimage {
template <typename T>
static void build(T* result... |
<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)
//===================================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.