text stringlengths 54 60.6k |
|---|
<commit_before>#include "CopyOperation.h"
#include <boost/filesystem.hpp>
#include <sstream>
using file_system::operations::CopyOperation;
using file_system::Path;
CopyOperation::CopyOperation()
{
}
CopyOperation::~CopyOperation()
{
}
void CopyOperation::copy(const Path& sourceFile, const Path& destinationFolder)
... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../../StroikaPreComp.h"
#if qHasFeature_OpenSSL
#include <openssl/evp.h>
#if OPENSSL_VERSION_MAJOR >= 3
#include <openssl/provider.h>
#endif
#endif
#include "../../Debug/Assertions.h"
#include "../../Execution/Exce... |
<commit_before>/* dtkDistributedMapper.cpp ---
*
* Author: Thibaud Kloczko
* Created: 2013 Thu Feb 7 10:55:57 (+0100)
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#include "dtkDistributedMapper.h"
#include <QtCore>
// /////////////////////////////////////////////////////////////////
// dtkDistributedMa... |
<commit_before>/*************************************************
* Pooling Allocator Source File *
* (C) 1999-2007 The Botan Project *
*************************************************/
#include <botan/mem_pool.h>
#include <botan/libstate.h>
#include <botan/config.h>
#include <botan/bi... |
<commit_before>#include "metaenum_p.h"
#include "metacontainer_p.h"
namespace rtti {
MetaEnum::MetaEnum(std::string_view const &name, const MetaContainer &owner, MetaType_ID typeId)
: MetaItem{*new MetaEnumPrivate{name, owner, typeId}}
{}
MetaEnum *MetaEnum::create(std::string_view const &name, MetaContainer &o... |
<commit_before>/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* mir/dump.cpp
* - Dump MIR for functions (semi-flattened)
*/
#include "main_bindings.hpp"
#include <hir/visitor.hpp>
#include "mir.hpp"
namespace {
class TreeVisitor:
public ::HIR::Visitor
{
::std... |
<commit_before>/*
* OtaLogger.hpp
* Wraps ArduinoOTA into a class and shows the OTA
* status on serial or an OLED display.
*
* Version: 1.0
* Author: Lübbe Onken (http://github.com/luebbe)
*/
#ifndef SRC_OTA_H
#define SRC_OTA_H
#include <Homie.h> // used for logger output
#include <OLEDDisplay.h> // used... |
<commit_before>#include "pjobrunnernetworkscanner.h"
#include <QtNetwork>
#include "pjobrunnersessionwrapper.h"
#include <iostream>
QList<PJobRunnerSessionWrapper*> PJobRunnerNetworkScanner::s_found_sessions;
bool PJobRunnerNetworkScanner::s_blocking_scan = false;
PJobRunnerNetworkScanner::PJobRunnerNetworkScanner()
... |
<commit_before>#include "pjobrunnersessionwrapper.h"
#include <QtCore/QRegExp>
#include <iostream>
PJobRunnerSessionWrapper::PJobRunnerSessionWrapper(QHostAddress hostname, long timeout)
: m_peer(hostname)
{
m_valid = false;
m_socket.connectToHost(hostname, 23023);
if(!m_socket.waitForConnected(timeout... |
<commit_before>#include "musicdownloadquerymgartistthread.h"
#include "musicnumberutils.h"
#///QJson import
#include "qjson/parser.h"
MusicDownLoadQueryMGArtistThread::MusicDownLoadQueryMGArtistThread(QObject *parent)
: MusicDownLoadQueryArtistThread(parent)
{
m_queryServer = "Migu";
}
QString MusicDownLoadQu... |
<commit_before>#include "includes_defines.h"
#include "types.h"
#include "global.h"
#include "utilities.cpp"
#include "load_scenarios.cpp"
#include "heuristic_function.cpp"
#include "custom_encoding.cpp"
#include "encoding_methods.cpp"
extern "C" {
int get_bit(int row, int col){
return ((int) opcodes[row][col]);
... |
<commit_before>/*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2015 OSRE ( Open Source Render Engine ) by Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated docum... |
<commit_before>/**
* @file
*
* @brief Tests for the getenv library
*
* @copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#include <gtest/gtest.h>
#include <kdbgetenv.h>
TEST (GetEnv, NonExist)
{
EXPECT_EQ (getenv ("du4Maiwi/does-not-exist"), static_cast<char *> (nullptr));
}
TEST (Ge... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: Factory_test.C,v 1.3 2002/12/18 16:00:39 sturm Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/CONCEPT/factory.h>
///////////////////////////
START_TEST(Factory, "$Id: Factory_test.C,v 1.3 2002/12/18 ... |
<commit_before>#include "localization.h"
#include "gui_msgs/ColorMsg.h"
#include "gui_msgs/GUIPointMsg.h"
#include "gui_msgs/GUIPolyMsg.h"
#include "rss_msgs/MotionMsg.h"
#include "rss_msgs/RobotLocation.h"
#include <random>
using namespace rss_msgs;
using namespace gui_msgs;
using namespace std;
typedef cgal_kernel... |
<commit_before>/*
* (C) Copyright 2013 Kurento (http://kurento.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
<commit_before>/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the Apache 2.0 license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tre... |
<commit_before>#include "rosplan_planning_system/ProblemGeneration/ProblemInterface.h"
#include <fstream>
#include <sstream>
#include <string>
#include <ctime>
#include <string>
#include <streambuf>
namespace KCL_rosplan {
/*-------------*/
/* constructor */
/*-------------*/
ProblemInterface::ProblemInterface(r... |
<commit_before>#include "node_map.hpp"
#include "node_file_source.hpp"
#include <mbgl/platform/default/headless_display.hpp>
#include <mbgl/map/still_image.hpp>
#include <mbgl/util/exception.hpp>
#include <unistd.h>
namespace node_mbgl {
struct NodeMap::RenderOptions {
double zoom = 0;
double bearing = 0;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rlrcitem.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2006-06-19 15:27:12 $
*
* The Contents of this file are made ... |
<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 "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/platform_thread.h"
#include ... |
<commit_before>//
// This file is part of the Marble Virtual 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 2009-2010 Bastian Holst <[email protected]>
//
#include "MarbleGraphic... |
<commit_before>#include <algorithm>
#include <fstream>
#include <json/json.h>
#include <iostream>
#include <regex>
#include <utils.h>
#include "cmdparse.h"
#include "CmdHandler.h"
#include "lynxbot.h"
CmdHandler::CmdHandler(const char *name, const char *channel,
const char *token, Moderator *mod, URLParser *urlp,
... |
<commit_before>/*************************************************************************
*
* $RCSfile: svdtxhdl.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: pjunck $ $Date: 2004-11-03 11:06:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#include "DrawAttack.hpp"
#include "States/TitleState.hpp"
#include "States/ServerSelectState.hpp"
#include "States/PlayState.hpp"
#include "States/DisconnectedState.hpp"
#include "States/NameSelectState.hpp"
using namespace cpp3ds;
using namespace TweenEngine;
namespace DrawAttack {
DrawAttack::Dra... |
<commit_before>/*************************************************************************
*
* $RCSfile: dflyobj.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: pjunck $ $Date: 2004-11-03 09:52:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*************************************************************************
*
* $RCSfile: porexp.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: vg $ $Date: 2003-04-17 14:28:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before><commit_msg>coverity#708455 Uninitialized scalar field<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: portox.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-09-16 21:39:13 $
*
* The Contents of this file are made a... |
<commit_before>// This file was developed by Thomas Müller <[email protected]>.
// It is published under the BSD 3-Clause License within the LICENSE file.
#include <tev/HelpWindow.h>
#include <nanogui/button.h>
#include <nanogui/entypo.h>
#include <nanogui/label.h>
#include <nanogui/layout.h>
#include <nanogui/opengl.... |
<commit_before>//
// QuestionGenerator.cpp
// mathgame1
//
// Created by Nicholas on 25/07/2015.
// Copyright (c) 2015 Nicholas. All rights reserved.
//
#include "QuestionGenerator.h"
#include "QuestionAnswer.h"
#include "RandomNumber.h"
#include <iostream>
struct QuestionAnswer QuestionGenerator(){
QuestionA... |
<commit_before>/*************************************************************************
*
* $RCSfile: barcfg.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2003-04-17 15:16:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before><commit_msg>OUString: remove temporaries and repeated expressions<commit_after><|endoftext|> |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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 Lic... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / __... |
<commit_before>/************************************
* file enc : utf8
* author : [email protected]
************************************/
#include "KeyWordExt.h"
namespace CppJieba
{
KeyWordExt::KeyWordExt()
{
}
KeyWordExt::~KeyWordExt()
{
}
bool KeyWordExt::init()
{
return _segment.init();
}
b... |
<commit_before>/*
* This file is part of Poedit (http://poedit.net)
*
* Copyright (C) 2014-2015 Vaclav Slavik
*
* 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 restrictio... |
<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/autofill_manager.h"
#include "base/string_util.h"
#include "chrome/browser/profile.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.
#include "base/string_util.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/ui/ui_test.h"
#include "chrome/b... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/time.h>
#include <cassert>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <FWContextBase.h>
#include <FWPlatformBase.h>
#include <EventLoop.h>
#include <CurlClient.h>
#include <Co... |
<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.
// Tests for the top plugins to catch regressions in our plugin host code, as
// well as in the out of process code. Currently this te... |
<commit_before>// Local
#include "MainWindow.h"
#include "ui_MainWindow.h"
#include "ShadowSettings.h"
#include "GraphicsRoundedRectItem.h"
// Qt
#include <QGraphicsRectItem>
#include <QFileDialog>
#include <QMessageBox>
#include <QSettings>
#include <QMenu>
#include <QInputDialog>
#include <QDebug>
MainWindow::Ma... |
<commit_before>/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 re... |
<commit_before>//============================================================================
// Name : PinballBot.cpp
// Author : Nico Hauser, David Schmid
// Version : 0.1
// Description : A reinforcement learning agent that learns to play pinball
//====================================================... |
<commit_before>// Copyright (c) 2017 Andrey Valyaev <[email protected]>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include <TextReport.h>
#include <iostream>
#include <sstream>
#include <Report.h>
#include <Result.h>
#include <Tes... |
<commit_before>#include "TpObserver.h"
TpObserver::TpObserver (const ChannelClassList &channelFilter,
QObject *parent )
: AbstractClientObserver(channelFilter)
, IObserver (parent)
, id(1) // Always ignore
{
}//TpObserver::TpObserver
void
TpObserver::setId (int i)
{
id... |
<commit_before>/*
* D-Bus AT-SPI, Qt Adaptor
*
* Copyright 2009-2011 Nokia Corporation and/or its subsidiary(-ies).
*
* 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
* vers... |
<commit_before>
#include "VM.h"
#include <libevm/VMFace.h>
#include "ExecutionEngine.h"
#include "Compiler.h"
namespace dev
{
namespace eth
{
namespace jit
{
bytesConstRef VM::go(ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps)
{
auto module = Compiler().compile(_ext.code);
ExecutionEngine engine;
auto ... |
<commit_before>#ifndef __CONSOLE_HPP_INCLUDED
#define __CONSOLE_HPP_INCLUDED
#include "code/ylikuutio/callback_system/key_and_callback_struct.hpp"
#include "code/ylikuutio/callback_system/callback_parameter.hpp"
#include "code/ylikuutio/callback_system/callback_object.hpp"
#include "code/ylikuutio/callback_system/call... |
<commit_before><commit_msg>Bugfix: `Shader::get_number_of_apprentices`.<commit_after><|endoftext|> |
<commit_before>#include <ast/op-expr.hh>
namespace ast
{
OpExpr::OpExpr(const yy::location& location,
Expr* lexpr,
OpExpr::Operator op,
Expr* rexpr)
: Expr(location)
, lexpr_(lexpr)
, rexpr_(rexpr)
, op_(op)
{}
OpExpr... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010-2015 Belledonne Communications SARL, All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free S... |
<commit_before>/****************************************************************/
/* */
/* Implementation of Cardiac Tissue elasticity as given in */
/* [Whiteley2007] */
/* ... |
<commit_before>#include "dlib/bam_util.h"
#include "dlib/bed_util.h"
#include <getopt.h>
#include <functional>
int usage(char **argv, int retcode=EXIT_FAILURE) {
fprintf(stderr, "bmftools %s <-l output_compression_level> in.bam out.bam\n"
"Use - for stdin or stdout.\n"
"Flag... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2016 musikcube 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>// Copyright 2010 Google 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 ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include "tools/cabana/messageswidget.h"
#include <QCompleter>
#include <QDialogButtonBox>
#include <QFontDatabase>
#include <QHeaderView>
#include <QLineEdit>
#include <QPushButton>
#include <QSortFilterProxyModel>
#include <QTextEdit>
#include <QVBoxLayout>
#include "tools/cabana/dbcmanager.h"
Messa... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: command.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2007-04-11 20:06:36 $
*
* The Contents of this file are made a... |
<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/extensions/extension.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/string_util... |
<commit_before>#include <stdio.h>
#include <SFML/Graphics/Color.hpp>
#include <SFML/Graphics/VertexArray.hpp>
// #include <SFML/Graphics/Vertex.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include "gui/cursor.hpp"
namespace qrw
{
Cursor* Cursor::cursor = 0;
Cursor::Cursor()
: position(0, 0),
child(0)
{}
... |
<commit_before>// @(#)root/tree:$Name: $:$Id: TTreeFilePrefetch.cxx,v 1.10 2006/06/15 10:02:13 brun Exp $
// Author: Rene Brun 04/06/2006
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include "world.h"
#include "roomsmodel.h"
World::World(const QString &name, const QSize &size, QObject *parent) :
QObject(parent)
{
this->name = name;
this->size = size;
rooms = new RoomsModel(this);
}
void World::addRoom(QString const& name)
{
Room *room = new Room(name);
room... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
// Model matrix sliders
ui->modelScaleXSlider->init();
ui->modelScaleYSlider->init();
ui->modelScaleZSlider->init();
... |
<commit_before>#include "mainwindow.hpp"
#include <QDebug>
#include <QComboBox>
#include "menupage.hpp"
#include "game_window.hpp"
#include "settingspage.hpp"
#include "gameoverpage.hpp"
#include "settings.hpp"
#include "except.hpp"
#include "scorespage.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(pare... |
<commit_before>//This tutorial illustrates how to create an histogram with polygonal
//bins (TH2Poly), fill it and draw it. The initial data are stored
//in TMultiGraphs. They represent the european countries.
//The histogram filling is done according to a Mercator projection,
//therefore the bin contains should be pro... |
<commit_before>// @(#)root/cintex:$Id$
// Author: Pere Mato 2005
// Copyright CERN, CH-1211 Geneva 23, 2004-2005, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear in a... |
<commit_before>#include <iostream>
#include <vector>
#include "PosixTimespec.hpp"
int main(int argc, char** argv)
{
std::vector<timespec> timespecs;
timespec tp;
tp.tv_sec = 0;
tp.tv_nsec = 0;
timespecs.push_back(tp);
tp.tv_sec = 1;
tp.tv_nsec = 1;
timespecs.push_back(tp);
tp.t... |
<commit_before>/*************************************************************************
*
* $RCSfile: saldata.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2003-04-01 14:07:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before><commit_msg>Guard against wrap-around in SvxFontHeightItem<commit_after><|endoftext|> |
<commit_before>#include "audio_facade.h"
#include "audio_engine.h"
#include "audio_handle_impl.h"
#include "audio_source_behaviour.h"
using namespace Halley;
constexpr bool ownAudioThread = false;
AudioFacade::AudioFacade(AudioOutputAPI& output)
: output(output)
, running(false)
{
}
AudioFacade::~AudioFacade()
{
... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ChartTypeHelper.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 11:55:59 $
*
* The Contents of this file ... |
<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 "base/file_path.h"
#include "chrome/test/ui/ui_layout_test.h"
namespace {
const char* kResources[] = {
"content",
"... |
<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) 2010 Francois Beaune
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of... |
<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/common/notification_service.h"
#include "base/lazy_instance.h"
#include "base/thread_local.h"
static base::Lazy... |
<commit_before>// Copyright (c) 2016, Joseph Mirabel
// Authors: Joseph Mirabel ([email protected])
//
// This file is part of hpp-pinocchio.
// hpp-pinocchio 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 ... |
<commit_before>#include <catch.hpp>
#include <pmath/Vector.hpp>
using namespace pmath;
TEST_CASE("Vector2 tests", "[vector]")
{
SECTION("Boolean tests")
{
CHECK(Vec2(1, 1) != Vec2(2, 1));
CHECK(Vec2(2, 2) == Vec2(2, 2));
CHECK_FALSE(Vec2(2, 2) == Vec2(1, 2));
CHECK_FALSE(Vec2(2, 2) != Vec2(2, 2));
}
SEC... |
<commit_before>#pragma once
#include <csv.h>
#include <iostream>
#include <boost/lexical_cast.hpp>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <typeinfo>
namespace csv {
namespace detail {
struct Result {
int number{0};
std::string message{"success"};
operator bool() const { retur... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>#include <iostream>
#include <sstream>
#include <map>
#include <unordered_map>
#include <vector>
#include <string>
#include "dict.h"
#include "dictglobal.h"
typedef std::unordered_map<std::string, std::string> Dict;
typedef unsigned long IdentificatorType;
// consider map<unsigned long, unordered_map>
... |
<commit_before>/**
* \file
* \brief Reset_Handler() for ARMv6-M and ARMv7-M
*
* \author Copyright (C) 2014-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was n... |
<commit_before>/*
* BBGHHibe.cpp
*
* Created on: Dec 21, 2014
* Author: imiers
*/
#include <assert.h>
#include "BBGHibe.h"
namespace forwardsec{
using namespace std;
void Bbghibe::setup(const unsigned int & l, BbhHIBEPublicKey & pk, G2 & msk) const
{
ZR alpha = group.randomZR();
pk.gG1 = group.rando... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageToStructuredPoints.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to C. Charles Law who developed this class.
Copyright (c) 1993-199... |
<commit_before>///
/// @file BitSieve.cpp
/// @brief Bit array for prime sieving.
///
/// Copyright (C) 2014 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#if !defined(__STDC_CONSTANT_MACROS)
#define __STDC_CONST... |
<commit_before>#include "../include/BlueFile.h"
//Prpare pour la lecture
BlueFile::BlueFile(string nom_fichier) : nom_fichier(nom_fichier)
{
bits.reserve(BLOCK_SIZE);
determineTaille();
fichier_lecture = NULL;
fichier_ecriture = NULL;
cout << "__________/_\\__________" << endl;
cout << "CRYPTAGE/DECRYPTAGE DE... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_... |
<commit_before>/*
Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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>/**************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Dmitry Sovetov
https://github.com/dmsovetov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "... |
<commit_before>#include "Debugger.h"
#include "Cpu.h"
#include "CpuHelpers.h"
#include "CpuOpCodes.h"
#include "MemoryBus.h"
#include "Platform.h"
#include <array>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <vector>
namespace {
template <typename T>
T HexStringToIntegral(const char* s) ... |
<commit_before>
#include "GameCtrl.h"
#include "util/util.h"
#include <stdexcept>
#include <cstdio>
#include <chrono>
#include <cstdlib>
#ifdef _WIN32
#include <Windows.h>
#endif
using std::string;
using std::list;
// Error statements
const string GameCtrl::MSG_BAD_ALLOC = "Not enough memory to run the game.";
const ... |
<commit_before>#include <limits>
#include <iostream>
#include <iomanip>
#include <unistd.h>
#include <libpstack/util.h>
#include <libpstack/elf.h>
#include <algorithm>
using std::string;
using std::make_shared;
using std::shared_ptr;
std::ostream *debug;
static uint32_t elf_hash(string);
bool noDebugLibs;
GlobalDebu... |
<commit_before>/**
* A class which describes the properties of a MySQL database connection.
*
* @date Jul 21, 2013
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... |
<commit_before>/*
* 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) any later version.
*
* Written (W) 1999-2007 Gunnar Raetsch
* Writ... |
<commit_before>#include "batch-downloader.h"
#include <QCoreApplication>
#include <QSettings>
#include <QTimer>
#include "commands/commands.h"
#include "downloader/download-query-group.h"
#include "downloader/download-query-image.h"
#include "downloader/image-downloader.h"
#include "loader/pack-loader.h"
#include "mode... |
<commit_before>#include <algorithm>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include <popt.h>
#include "defs.hh"
#include "StringSet.hh"
#include "FactorEncoder.hh"
#include "Unigrams.hh"
#include "Bigrams.hh"
us... |
<commit_before>/*-
* Copyright (c) 2016 Frederic Culot <[email protected]>
* 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. Redistributions of source code must retain the above copyri... |
<commit_before>#include <algorithm>
#include <map>
#include <string>
#include <limits>
#include "Prefetch.h"
#include "CodeGen_Internal.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Bounds.h"
#include "Scope.h"
#include "Simplify.h"
#include "Substitute.h"
#include "Util.h"
namespace Halide {
namespace ... |
<commit_before>// Copyright (c) 2011 - 2015, GS Group, https://github.com/GSGroup
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permission notice appear in all copies.
// THE SOFTWARE IS PRO... |
<commit_before>#ifndef MJOLNIR_CORE_ENERGY_OBSERVER_HPP
#define MJOLNIR_CORE_ENERGY_OBSERVER_HPP
#include <mjolnir/core/ObserverBase.hpp>
#include <mjolnir/core/Unit.hpp>
#include <iostream>
#include <fstream>
#include <iomanip>
namespace mjolnir
{
template<typename traitsT>
class EnergyObserver final : public Observ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.