text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2014 Jrmy Ansel
// Licensed under the MIT license. See LICENSE.txt
#include "config.h"
#include <string>
#include <fstream>
#include <algorithm>
#include <cctype>
using namespace std;
Config g_config;
Config::Config()
{
this->AspectRatioPreserved = true;
this->MultisamplingAntiali... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "BenchTimer.h"
#include "SamplePipeControllers.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkGPipe.h"
#include "SkOSFile.h"
#include "SkPi... |
<commit_before>#include <algorithm>
#include <atomic>
#include <iostream>
#include <limits>
#include <utility>
#include <vector>
#include <getopt.h>
#include <signal.h>
#include <unistd.h>
#include <zcm/zcm-cpp.hpp>
using namespace std;
static atomic_int done {0};
static void sighandler(int signal)
{
done++;
... |
<commit_before>/*
* Copyright (C) 2012
* Alessio Sclocco <a.sclocco@vu.nl>
*
* 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
* (at your option) any lat... |
<commit_before>#include "wintoastlib.h"
using namespace WinToastLib;
class CustomHandler : public IWinToastHandler {
public:
void toastActivated() const {
std::wcout << L"The user clicked in this toast" << std::endl;
exit(0);
}
void toastActivated(int actionIndex) const {
std::wco... |
<commit_before>//============================================================================
// vSMC/example/rng/include/rng_test.hpp
//----------------------------------------------------------------------------
// vSMC: Scalable Monte Carlo
//--------------------------------------------------... |
<commit_before>/**
* @file compmanager.cpp
* @brief COSSB component manager
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details
*/
#include "manager.hpp"
#include "container.hpp"
#include "broker.hpp"
#include "driver.hpp"
namespace cossb {
namespace manager {
bool component_mana... |
<commit_before>/*
Copyright (c) 2014, Kai Klindworth
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 copyright notice, this
list of conditions ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2018.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//==================================================... |
<commit_before><commit_msg>Review fixes<commit_after><|endoftext|> |
<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>#include "Pipeline.h"
#include <QTime>
#include <QCoreApplication>
// Remove sleep function that only works on linux
// http://stackoverflow.com/questions/3752742/how-do-i-create-a-pause-wait-function-using-qt
void delay( int secondsToWait )
{
QTime dieTime = QTime::currentTime().addSecs( secondsTo... |
<commit_before>#ifndef CV_ADAPTERS_ROWRANGE_HPP
#define CV_ADAPTERS_ROWRANGE_HPP
#include <iterator>
#include <opencv2/core/core.hpp>
namespace cv
{
template <typename T>
class RowRangeConstIterator : public std::iterator<std::forward_iterator_tag, T>
{
public:
RowRangeConstIterator()
: data(... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#ifndef GCN_KEY_HPP
#define GCN_KEY_HPP
#include <string>
namespace gcn
{
/**
*
*/
class Key
{
public:
/**
*
*/
Key(char character);
/**
*
*/
Key(int scancode);
/**
*
*/
char getCharacter();
/**
*
*/
int getScanC... |
<commit_before>/* The MIT License (MIT)
*
* Copyright (c) 2014-2017 David Medina and Tim Warburton
*
* 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 witho... |
<commit_before>#ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <deque>
#include <cassert>
#include <functional>
#include <iostream>
#include <iterator>
#include <boost/array.hpp>
#include <boost/container/set.hpp>
#include <boost/container/node_allocator.hpp>
#include <boost/math/special_functions/round.hpp... |
<commit_before>#include "data_header.hpp"
#include "point_to_int64.hpp"
#include "scales.hpp"
#include "../defines.hpp"
#include "../coding/file_reader.hpp"
#include "../coding/file_writer.hpp"
#include "../coding/file_container.hpp"
#include "../coding/write_to_sink.hpp"
#include "../coding/varint.hpp"
#include "..... |
<commit_before>//===- llvm-prof.cpp - Read in and process llvmprof.out data files --------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
/... |
<commit_before>/****************************************************************************
** ncw is the nodecast worker, client of the nodecast server
** Copyright (C) 2010-2012 Frédéric Logier <frederic@logier.org>
**
** https://github.com/nodecast/ncw
**
** This program is free software: you can redistrib... |
<commit_before>#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <syslog.h>
#include <zmq.hpp>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
#include <Magick++.h>
#include "thumq.pb.h"
namespace protobuf =... |
<commit_before>/*************************************************************************
*
* $RCSfile: pickerhelper.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2005-04-13 10:24:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/***********************************************************************
* Module: APlayer.h
* Author: Fiahil
* Modified: Monday, May 07, 2012 6:23:17 PM
* Purpose: Declaration of the class APlayer
***********************************************************************/
#if !defined(__Bomberman_A... |
<commit_before>// Sh: A GPU metaprogramming language.
//
// Copyright 2003-2005 Serious Hack Inc.
//
// 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 the Licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: dview.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-07-12 15:48:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance wi... |
<commit_before>/*
Empath - Mailer for KDE
Copyright (C) 1998 Rik Hemsley rik@kde.org
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 ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wtextsh.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: vg $ $Date: 2007-05-22 16:40:34 $
*
* The Contents of this file are made a... |
<commit_before>#ifndef MBGL_UTIL_MATH
#define MBGL_UTIL_MATH
#include <cmath>
#include <array>
#include "vec.hpp"
namespace MonkVG {
namespace util {
template <typename T>
inline T perp(const T& a) {
return T(-a.y, a.x);
}
template <typename T, typename S1, typename S2>
inline T dist(const S1& a, const S2& b) ... |
<commit_before>#include "fast_lexical_cast.hpp"
#include "viterbi.h"
#include <sstream>
#include <vector>
#include "hg.h"
//#define DEBUG_VITERBI_SORT
using namespace std;
std::string viterbi_stats(Hypergraph const& hg, std::string const& name, bool estring, bool etree,bool show_derivation)
{
ostringstream o;
o... |
<commit_before>#include "config.hpp"
#include "MidiPlayer.hpp"
#include <iostream>
#include <stdexcept>
#include "filesystem.hpp"
namespace MidiPlayer
{
MidiDisplayManager::MidiDisplayManager()
:m_width(800),
m_height(600),
m_fullscreen(false),
m_title("MidiPlayer"),
m_context(3, 2, 0),
m_... |
<commit_before>/***************************************************************************
CGTFile.cpp -
Encapsulates the Compiled Grammar Table File
read operations and structures.
-------------------
begin... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <iostream>
#include <fstream>
#include <signal.h>
#include <cstdlib>
#include <getopt.h>
#include <string>
#include "util/stackinfo.... |
<commit_before>// Copyright 2017 The Johns Hopkins University Applied Physics Laboratory.
// Licensed under the MIT License. See LICENSE.txt in the project root for full license information.
#include <cstdio>
#include <ctime>
#include "orthoimage.h"
#include "shr3d.h"
// Print command line arguments.
void pr... |
<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>/*! @file simulation.cpp
@brief Implementation of Simulation class
@defgroup params Parameters
*/
#include "simulation.hpp"
#include "tissue.hpp"
#include "cell.hpp"
#include "random.hpp"
#include "version.hpp"
#include <wtl/iostr.hpp>
#include <wtl/chrono.hpp>
#include <wtl/exception.hpp>
#incl... |
<commit_before>#include <cstdlib>
#include <ctime>
#include <sys/wait.h>
#include <fstream>
#include <set>
#include <string>
#include <iostream>
#include <deque>
#include <vector>
#include "Crawler.h"
#include "Downloader.h"
#include "HTMLContent.h"
#include "HTMLTag.h"
#include "WikiPage.h"
std::string Crawler::Gen... |
<commit_before>/*
* File: Factory.cpp
* Author: iMer
*
* Created on 19. August 2014, 18:40
*/
#include "Factory.hpp"
#include "ParticleSystem.hpp"
namespace engine {
std::map<std::string, std::function<Node*(Json::Value& root, Node* parent) >> Factory::m_types = {
std::make_pair(std::string("node"... |
<commit_before>/* GG is a GUI for SDL and OpenGL.
Copyright (C) 2003 T. Zachary Laine
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 the License, or (at y... |
<commit_before>#ifndef WF_UTIL_HPP
#define WF_UTIL_HPP
#include <functional>
#include <pixman.h>
extern "C"
{
#include <wlr/types/wlr_box.h>
}
/* ------------------ point and geometry utility functions ------------------ */
/* Format for log_* to use when printing wf_point/wf_geometry/wlr_box */
#define Prwp "(%d,%d... |
<commit_before>///
/// @file help.cpp
///
/// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primecount.hpp>
#include <iostream>
#include <cstdlib>
#include <string>
using namespace st... |
<commit_before>#include "html.h"
#include "stylesheet.h"
#include <algorithm>
#include "document.h"
void litehtml::css::parse_stylesheet(const tchar_t* str, const tchar_t* baseurl, const std::shared_ptr<document>& doc, const media_query_list::ptr& media)
{
tstring text = str;
// remove comments
tstring... |
<commit_before>#ifndef __ETERNAL_TCP_HEADERS__
#define __ETERNAL_TCP_HEADERS__
#include <arpa/inet.h>
#include <errno.h>
#include <pthread.h> /* POSIX Threads */
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <algori... |
<commit_before>// Module: Log4CPLUS
// File: timehelper.cxx
// Created: 4/2003
// Author: Tad E. Smith
//
//
// Copyright 2003-2013 Tad E. Smith
//
// 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 ... |
<commit_before>#include "Huffman.hpp"
Node::Node(double probability, Node* left, Node* right)
: probability(probability),
left(left),
right(right),
is_leaf(false)
{}
Node::Node(double probability, int symbol)
: probability(probability),
symbol(symbol),
is_leaf(true),
left(nullptr),
... |
<commit_before>#include <iostream>
#include <map>
#include "IRVisitor.h"
#include "IRMatch.h"
#include "IREquality.h"
#include "IROperator.h"
namespace Halide {
namespace Internal {
using std::vector;
using std::map;
using std::string;
void expr_match_test() {
vector<Expr> matches;
Expr w = Variable::make(I... |
<commit_before>/*
* Verify URI parts.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "uri_verify.hxx"
#include "uri_chars.hxx"
#include <string.h>
bool
uri_segment_verify(const char *src, const char *end)
{
for (; src < end; ++src) {
/* XXX check for invalid escaped characters? */
if... |
<commit_before>#include <sstream>
#include <llvm/ADT/StringRef.h>
#include <llvm/ADT/STLExtras.h>
#include <llvm/Support/ErrorHandling.h>
#include "type.h"
#include "decl.h"
#include "../support/utility.h"
using namespace delta;
#define DEFINE_BUILTIN_TYPE_GET_AND_IS(TYPE, NAME) \
Type Type::get##TYPE(bool isMuta... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "backtrace.hpp"
#include <cxxabi.h>
#include <execinfo.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <string>
#include "errors.hpp"
#include <boost/ptr_container/ptr_map.hp... |
<commit_before>/*
* Copyright (c) 2002-2005 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>// Copyright 2017 Jose M. Arbos
//
// 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>//
// 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 2011 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "logger.h... |
<commit_before>// Rootmenu.cc for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// 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 re... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
<commit_before>// Copyright (c) 2015 Yandex LLC. All rights reserved.
// Author: Vasily Chekalkin <bacek@yandex-team.ru>
#include "sdch_dictionary.h"
#include <cassert>
#include <cstring>
#include <vector>
#include <google/vcencoder.h>
#include <openssl/sha.h>
namespace sdch {
namespace {
#if nginx_version < 10060... |
<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 2011 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 (C) 2003-2011 Victor Semionov
* 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, ... |
<commit_before>/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2015 Liviu Ionescu.
*
* µOS++ 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 Foundatio... |
<commit_before>// Copyright 2014 The Crashpad 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
//
// Unle... |
<commit_before>/*
* TMC2130.cpp
*
* Created on: 03 nov 2019
* Author: Tim Evers
*/
#include "TMC2130.h"
#if defined(FARMDUINO_EXP_V20) || defined(FARMDUINO_V30) || defined(FARMDUINO_V32)
void loadTMC2130ParametersMotor(TMC2130_Basics *tb, int microsteps, int current, int sensitivity, bool stealth)
{
u... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2017 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<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 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salpixmaputils.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2007-06-27 19:49:56 $
*
* The Contents of this file are... |
<commit_before>/*
This file is part of KXForms.
Copyright (c) 2005,2006 Cornelius Schumacher <schumacher@kde.org>
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
... |
<commit_before>//
// Created by Rachel Ren on 4/18/16.
//
#include <vector>
#include <algorithm>
using namespace std;
struct Interval {
int start;
int end;
Interval() : start(0), end(0) {}
Interval(int s, int e) : start(s), end(e) {}
};
struct less_than_key
{
inline bool ... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
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... |
<commit_before>#include "rviz_ortho_view_controller/ortho_view_controller.h"
#include <OgreCamera.h>
#include <OgreSceneNode.h>
#include <OgreViewport.h>
#include <pluginlib/class_list_macros.h>
#include <QEvent>
#include <rviz/display_context.h>
#include <rviz/geometry.h>
#include <rviz/ogre_helpers/orthographic.h... |
<commit_before>//===- IListTest.cpp ------------------------------------------------------===//
//
// The Bold Project
//
// This file is distributed under the New BSD License.
// See LICENSE for details.
//
//===----------------------------------------------------------------------===//
#... |
<commit_before>#ifndef VIENNAGRID_STORAGE_INSERTER_HPP
#define VIENNAGRID_STORAGE_INSERTER_HPP
//#include "viennagrid/storage/reference.hpp"
#include "viennagrid/storage/container_collection.hpp"
#include "viennagrid/storage/container_collection_element.hpp"
namespace viennagrid
{
namespace storage
{
... |
<commit_before>/******************************************************************************\
* File: lexer.cpp
* Purpose: Implementation of lexer classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009 Anton van Wezenbeek
* All rights are reserved. Reproduction i... |
<commit_before>//==============================================================================
// Single cell view information solvers widget
//==============================================================================
#include "cellmlfileruntime.h"
#include "coreutils.h"
#include "singlecellviewinformationsolver... |
<commit_before>/*
* Copyright 2007-2017 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include "partition/partitioner.hpp"
#include "partition/annotated_partition.hpp"
#include "partition/bisection_graph.hpp"
#include "partition/compressed_node_based_graph_reader.hpp"
#include "partition/edge_based_graph_reader.hpp"
#include "partition/node_based_graph_to_edge_based_graph_mapping_reader.h... |
<commit_before>#include "bs_mesh_stdafx.h"
#include "py_rs_mesh.h"
#include "bs_mesh_grdecl.h"
#include "export_python_wrapper.h"
#include "py_pair_converter.h"
#include <boost/python/tuple.hpp>
#ifdef BSPY_EXPORTING_PLUGIN
using namespace boost::python;
namespace blue_sky { namespace python {
PY_EXPORTER (mesh_gr... |
<commit_before>#include "world.hh"
#include <ACGL/OpenGL/Creator/VertexArrayObjectCreator.hh>
#include <ACGL/OpenGL/Managers.hh>
#include <ACGL/OpenGL/Creator/ShaderProgramCreator.hh>
#include <ACGL/OpenGL/Data/TextureLoadStore.hh>
#include "../audio/loadWavFile.hh"
using namespace std;
using namespace ACGL;
using na... |
<commit_before>/*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <config.h... |
<commit_before>/*************************************************************************
*
* $RCSfile: filtergrouping.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2003-03-27 11:28:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/**
* Unit tests for rf
* @author Alexander Misevich
* Copyright 2018 MIPT-MIPS
*/
// generic C
#include <cassert>
#include <cstdlib>
// Google Test library
#include <gtest/gtest.h>
// MIPS-MIPS modules
#include <mips/mips.h>
#include "../rf.h"
#define GTEST_ASSERT_NO_DEATH(statement) \
ASSER... |
<commit_before>//===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===--- TargetRegistry.cpp - Target registration -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "reservasrv.h"
#include "tools.h"
Reserva ReservaSrv::add(std::string cedulaCliente, std::string nombreEspacio, time_t fechaReservacion, time_t fechaFinReservacion)
{
validarCedula(cedulaCliente);
validarString(nombreEspacio);
validarFechas(fechaReservacion, fechaFinReservacion);
... |
<commit_before>/*
Copyright 2013-2014 Daniele Di Sarli
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 ... |
<commit_before>//===-- GCSE.cpp - SSA-based Global Common Subexpression Elimination ------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>//-----------------------------------------------------------------------------
//
// Main.cpp
//
// Minimal application to test OpenZWave for Lua.
//
// Creates an OpenZWave::Driver and the waits. In Debug builds
// you should see verbose logging to the console, which will
// indicate that communicatio... |
<commit_before>#include "VideoView.h"
#ifdef USE_FFMPEG
#include <QFileDialog>
#include <QMap>
using namespace QGBA;
QMap<QString, QString> VideoView::s_acodecMap;
QMap<QString, QString> VideoView::s_vcodecMap;
QMap<QString, QString> VideoView::s_containerMap;
VideoView::VideoView(QWidget* parent)
: QWidget(paren... |
<commit_before>
//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2011 Ulrich von Zadow
//
// 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 of the L... |
<commit_before>/* os.cc
Mathieu Stefani, 13 August 2015
*/
#include "os.h"
#include "common.h"
#include <unistd.h>
#include <fcntl.h>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <sys/epoll.h>
#include <sys/eventfd.h>
using namespace std;
int hardware_concurrency() {
std::ifstream ... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include <BALL/VIEW/DIALOGS/downloadPDBFile.h>
#include <BALL/FORMAT/lineBasedFile.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/VIEW/KERNEL/mainControl.h>
#include <BALL/VIEW/KERNEL/message.h>
#include <BALL/KERNEL/system.h>
#include <qcomb... |
<commit_before>//
// Aspia Project
// Copyright (C) 2018 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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
// (a... |
<commit_before>/**
* \file
*
* \brief Plugin which acts as proxy and calls other plugins written in python
*
* \copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#ifndef SWIG_TYPE_TABLE
# error Build system error, SWIG_TYPE_TABLE is not defined
#endif
#include <Python.h>
#ifndef HAVE_K... |
<commit_before>/**
* @file
*
* @brief Write key sets using yaml-cpp
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "write.hpp"
#include "log.hpp"
#include "yaml-cpp/yaml.h"
#include <kdb.hpp>
#include <kdbease.h>
#include <kdblogger.h>
#include <fstream>
#include <stack>
... |
<commit_before>#include "clay.hpp"
#include "invokeutil2.hpp"
//
// declarations
//
struct CValue;
typedef Pointer<CValue> CValuePtr;
struct CValue : public Object {
TypePtr type;
llvm::Value *llval;
CValue(TypePtr type, llvm::Value *llval)
: Object(CVALUE), type(type), llval(llval) {}
};
llv... |
<commit_before>/*
* Copyright (c) 2016 - 2022 Pedro Falcato
* This file is part of Onyx, and is released under the terms of the MIT License
* check LICENSE at the root directory for more information
*
* SPDX-License-Identifier: MIT
*/
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <onyx/bo... |
<commit_before><commit_msg>Remove unnecessary SubsetterContext base class<commit_after><|endoftext|> |
<commit_before>/* -*- c++ -*-
subscriptiondialog.cpp
This file is part of KMail, the KDE mail client.
Copyright (C) 2002 Carsten Burghardt <burghardt@kde.org>
KMail is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
publ... |
<commit_before>/*
Copyright (c) 2008, 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>
#include <cstdio>
#include <string>
#include <iostream>
#include <array>
#include <vector>
#include <unistd.h>
#include <lo/lo.h>
#include <lo/lo_cpp.h>
int test1(const char *path, const char *types,
lo_arg **argv, int argc, lo_message m,
void *data)
{
printf("path: %s\n", pa... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: galobj.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:49:56 $
*
* The Contents of this file are made av... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.