text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief NES Emulator ハンドラー
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2018, 2019 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/maste... |
<commit_before>#include "TestCommon.hh" //to get argparser
using namespace SDLut;
Logger testlog("ScreenAccess");
class Assert : public AssertEngine
{
video::Rect assertedrect;
video::Color color;
public:
Assert(Logger& l, ArgParser& ap,video::Rect assertrect, video::Color c)
: AssertEngine(l... |
<commit_before>// Copyright 2015 Patrick Putnam
//
// 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>//
// StaticAnalyser.cpp
// Clock Signal
//
// Created by Thomas Harte on 15/09/2016.
// Copyright © 2016 Thomas Harte. All rights reserved.
//
#include "StaticAnalyser.hpp"
#include "../Disassembler/Disassembler6502.hpp"
using namespace StaticAnalyser::Atari;
static void DeterminePagingFor2kCart... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/ui/accelerator_util.h"
#include <stdio.h>
#include <string>
#include "base/string_util.h"
#include "base/strings/string_num... |
<commit_before>/*************************************************************************
*
* $RCSfile: ViewShellHint.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pjunck $ $Date: 2004-10-28 13:27:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before><commit_msg>We shouldn't use BIDI_DEFAULT_(RTL|LTR) if we know the directionality of the page, because we won't like the result if string is mixed bidi (it may mark string as RTL instead of LTR if it starts with strong RTL characters, even if the global direction is LTR).<commit_after><|endoftext|> |
<commit_before>#include <Core/Geometry/IndexedGeometry.hpp>
#include <iterator>
namespace Ra {
namespace Core {
namespace Geometry {
MultiIndexedGeometry::MultiIndexedGeometry( const MultiIndexedGeometry& other ) :
AttribArrayGeometry( other ) {
deepCopy( other );
}
MultiIndexedGeometry::MultiIndexedGeometry... |
<commit_before>/*##############################################################################
Copyright (C) 2011 HPCC Systems.
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 Fre... |
<commit_before>// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/osr/osr_output_device.h"
#include "third_party/skia/include/core/SkDevice.h"
#include "ui/gfx/skia_util.h"
namespace atom {
OffScreenOutputDevi... |
<commit_before>#include <vtkVersion.h>
int main(int, char *[])
{
std::cout << vtkVersion::GetVTKSourceVersion() << std::endl;
std::cout << vtkVersion::GetVTKMajorVersion() << std::endl;
std::cout << vtkVersion::GetVTKMinorVersion() << std::endl;
return EXIT_SUCCESS;
}
<commit_msg>Updating CheckVTKVersion<comm... |
<commit_before>//////////////////////////////////////////////////////////////////////
// sect2.cpp -- Emit the Section2 Procedures
// Date: Sat Nov 30 13:50:35 2013
///////////////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#in... |
<commit_before>#pragma once
#include "standard_error_handler.hpp"
#include <libxml/xmlerror.h>
#include <libxml/xmlschemas.h>
class LibXml2ErrorHandler : public StandardErrorHandler {
public:
static void errors( void *ctx, xmlErrorPtr p );
};
class XmlErrorHandler : public LibXml2ErrorHandler {
public:
void ... |
<commit_before>#include "model.h"
#include "model_io.h"
#include "modelwidget.h"
#include "figurepainter.h"
#include "recognition.h"
#include "layouting.h"
#include "model_ops.h"
#include <QPainter>
#include <QMouseEvent>
#include <QInputDialog>
#include <QMessageBox>
#include <QWheelEvent>
#include <QGesture>
#include... |
<commit_before>#include "UT4WebAdmin.h"
#include "Base64.h"
#define UT4WA_PLUGIN_FOLDER "UT4WebAdmin"
#define UT4WA_WWW_FOLDER "www"
#define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>"
#define DENIED2 "<html><head><title>Acces denied</title></head><body>Access deni... |
<commit_before>#include <stdio.h>
#include <iostream>
#include "messaging.hpp"
#include "impl_zmq.hpp"
#include "common/params.h"
#include "common/swaglog.h"
#include "common/timing.h"
#include "common/util.h"
#include "ublox_msg.h"
using namespace ublox;
extern volatile sig_atomic_t do_exit;
void write_file(std::s... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <[email protected]>
**
** Copyright (C) 2010 Aldebaran Robotics
*/
#include <iostream>
#include <alcommon-ng/collections/variables_list.hpp>
#include <alcommon-ng/messaging/call_definition.hpp>
#include <alcommon-ng/messaging/result_definition.hpp>
#inclu... |
<commit_before>/*
* This file is part of the Electron Orbital Explorer. The Electron
* Orbital Explorer is distributed under the Simplified BSD License
* (also called the "BSD 2-Clause License"), in hopes that these
* rendering techniques might be used by other programmers in
* applications such as scientific visu... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Tavendo GmbH
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompa... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/**
* @file cache.cpp
*
* @date Nov 21, 2012
* @author perämäki
*/
#include "cache.h"
#include "logger_factory.h"
#include "info.h"
#include <time.h>
#include "plugin_factory.h"
#include <boost/lexical_cast.hpp>
#include "regular_grid.h"
using namespace std;
using namespace himan::plugin;
typedef... |
<commit_before>#include "simdjson.h"
#include <unistd.h>
#include "benchmark.h"
// #define RAPIDJSON_SSE2 // bad for performance
// #define RAPIDJSON_SSE42 // bad for performance
#include "rapidjson/document.h"
#include "rapidjson/reader.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
#include "s... |
<commit_before>#include "metaEditorSupportPlugin.h"
#include <QtCore/QProcess>
#include <QtGui/QApplication>
#include <QtGui/QFileDialog>
#include <QtGui/QMessageBox>
#include <QtGui/QProgressBar>
#include <QtGui/QDesktopWidget>
#include "../../../qrkernel/settingsManager.h"
#include "../../../qrmc/metaCompiler.h"
#... |
<commit_before>#include <iostream>
#include <exception>
#include <math.h>
#include <string.h>
#include "calculator.h"
using namespace std;
// ======================================================================================
int check(const char*& text, int value, bool invalid=false);
void check_calc();
/*
* =... |
<commit_before>
#include "manu343726/turbo_core/turbo_core.hpp"
#include <tick/requires.h>
#include <iostream>
template<typename metatype, typename ctor, typename value = ctor>
struct TypeDecorator
{
using Type = metatype;
using Ctor = ctor;
using Value = value;
};
template<typename Type, typename BoxedValue>
st... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2015 Gael Guennebaud <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this f... |
<commit_before>#pragma once
// math_frac.hpp: fractional functions for posits
//
// Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
namespace sw {
namespace unum {
// the current shims are NON-COM... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision: 11316 $
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2006 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 Li... |
<commit_before>#include "SqlBuilderBase.h"
#include <QSqlError>
#include <QSqlRecord>
#include <QString>
#include <QSqlDriver>
#include "ClassMapBase.h"
#include "ConfigurationMap.h"
#include "QueryModels/DeleteQueryModel.h"
#include "QueryModels/InsertQueryModel.h"
#include "QueryModels/SelectQueryModel.h"
#include ... |
<commit_before>#include "BVSExampleModule.h"
// This is your module's constructor.
// Please do not change its signature as it is called by the framework (so the
// framework actually creates your module) and the framework assigns the unique
// identifier and gives you access to the its config.
// However, you might... |
<commit_before>#include <sys/prctl.h>
#include <sys/wait.h>
#include <boost/lexical_cast.hpp>
#include "typename.h"
#include "Logger.h"
#include "demangle.h"
#include "exceptions.h"
logger::LogChannel tracelog("tracelog", "[trace] ");
stack_trace_::stack_trace_() {
std::string programName = get_program_name();
s... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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.or... |
<commit_before>/*
Copyright (c) 2007 Tobias Koenig <[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) any... |
<commit_before>/**
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... |
<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/login_prompt.h"
#include "base/command_line.h"
#include "base/lock.h"
#include "base/message_loop.h"
#in... |
<commit_before>#include "pprint/c_pprint.hpp"
#include <ostream>
#include <string>
#include <vector>
#include <stdexcept>
namespace bfc {
namespace pprint {
c_pprint::c_pprint(void) = default;
/* Halp I feel so dirty halp. */
c_pprint::config::config(void) :
prelude{
"#include <stdio.h>",
"static unsigned... |
<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 "base/file_util.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "chrome/common/chrome_switches.h"
#... |
<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/views/controls/label.h"
#include <math.h>
#include "app/gfx/chrome_canvas.h"
#include "app/gfx/chrome_font.h"
#... |
<commit_before>#include <pluginlib/class_list_macros.h>
#include <kdl_parser/kdl_parser.hpp>
#include <math.h>
#include <Eigen/LU>
#include <utils/pseudo_inversion.h>
#include <utils/skew_symmetric.h>
#include <lwr_controllers/one_task_inverse_kinematics.h>
namespace lwr_controllers
{
OneTaskInverseKinematics::OneT... |
<commit_before>#include "resizer.h"
Resizer::Resizer(QObject *parent) : QObject(parent)
{
}
int Resizer::width() const
{
return m_width;
}
int Resizer::height() const
{
return m_height;
}
void Resizer::process()
{
m_outputImage = QImage(m_path).
scaled(width(), height(), Qt::KeepAspectRatio... |
<commit_before>#include "chrono_parallel/physics/ChSystemParallel.h"
#include <omp.h>
using namespace chrono;
using namespace chrono::collision;
ChSystemParallelDEM::ChSystemParallelDEM(unsigned int max_objects,
ChContactDEM::NormalForceModel normal_m... |
<commit_before>#include "UltrasonicObstacleDetector2020.h"
UltrasonicDetector2020::UltrasonicDetector2020()
{
DEBUG_REQUEST_REGISTER("UltrasonicDetector2020:draw3D:measurements", "", false);
rightReceiverInTorso.translation = {47.7, -41.6, 50.9};
leftReceiverInTorso.translation = {47.7, 41.6, 50.9};
... |
<commit_before>/************************************************************
USAGE: This file is used to test a new implementation of an
ecmdDataBuffer Member Function. It runs the new implementation
and compares the result and performance to the original/old
implementation.
Look for 'CHANGE_CODE_HERE' flags below t... |
<commit_before>#ifndef AUTOCHECK_REPORTER_HPP
#define AUTOCHECK_REPORTER_HPP
#include <iostream>
#include <sstream>
#include <cmath>
#include "distribution.hpp"
namespace autocheck {
class reporter {
public:
virtual void success(size_t tests, size_t max_tests,
size_t trivial = 0,
dis... |
<commit_before>/**
* Created by Jian Chen
* Inspired by the book: C++ Concurrency In Action
* Thanks to its author: Anthony Williams
* @since 2016.05.15
* @author Jian Chen <[email protected]>
* @link http://chensoft.com
* @thread-safe
*/
#pragma once
#include "semaphore.hpp"
#include "callable.hpp"
#inclu... |
<commit_before>/**
* This file defines the lock graph data structure used during the post-mortem
* program analysis.
*/
#ifndef D2_CORE_LOCK_GRAPH_HPP
#define D2_CORE_LOCK_GRAPH_HPP
#include <d2/detail/lock_debug_info.hpp>
#include <d2/lock_id.hpp>
#include <d2/segment.hpp>
#include <d2/thread_id.hpp>
#include <b... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file excep... |
<commit_before>//============================================================================
// MCKL/include/mckl/random/rdrand.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//----------------------------------------------------------------------... |
<commit_before>#pragma once
#include <utility>
#include <type_traits>
#include <string>
#include "any.hpp"
#include <type_list.hpp>
#include <function_deduction.hpp>
#include <member_variable_deduction.hpp>
#include <void_t.hpp>
namespace shadow
{
// free function signature
typedef any (*free_function_binding_signa... |
<commit_before>#ifndef REFLECTION_BINDING_HPP
#define REFLECTION_BINDING_HPP
#include <string>
#include <type_traits>
#include <utility>
#include "any.hpp"
#include <function_deduction.hpp>
#include <member_variable_deduction.hpp>
#include <type_list.hpp>
#include <void_t.hpp>
namespace shadow
{
// free function s... |
<commit_before>// FileSections.cpp
/*
* (C) Copyright 2015 Noah Roth
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/lice... |
<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: b2dpolypolygoncutter.hxx,v $
* $... |
<commit_before>/*
* Copyright 2016 Freeman Zhang <[email protected]>
*
* 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 req... |
<commit_before>#pragma once
// generic (non-architecture-specific) implementations of gemmBitserial
// and other related functions
static GEMMContext allocGEMMContext_generic(
uint64_t lhsRows, uint64_t depth, uint64_t rhsRows,
uint64_t lhsBits, uint64_t rhsBits,
bool lhsSigned, bool rhsSigned
) {
const uint64... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDashedStreamLine.hh
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyright... |
<commit_before>/*~
* Copyright (C) 2013 - 2016 George Makrydakis <[email protected]>
*
* This file is part of 'clause', a highly generic C++ meta-programming library,
* subject to the terms and conditions of the Mozilla Public License v 2.0. If
* a copy of the MPLv2 license text was not distributed with this ... |
<commit_before>/*
@ 0xCCCCCCCC
*/
#include <iostream>
#include "signals.h"
void foo(int i, const int& j, int&& k)
{
std::cout << "foo" << std::endl;
}
struct Foo {
static void foo(int i, const int& j, int&& k)
{
std::cout << "Foo::foo" << std::endl;
}
};
int main()
{
Signal<int, const ... |
<commit_before>#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
struct BmodP {
long long index;
long long value;
}mod1[10000000];
bool cmp(BmodP tmp1, BmodP tmp2) {
if(tmp1.value<tmp2.value || (tmp1.value==tmp2.value&&tmp1.index<tmp2.index)) return true;
return fa... |
<commit_before>// Copyright 2013 The Flutter 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 "flutter/shell/platform/android/android_surface_gl.h"
#include <utility>
#include "flutter/fml/logging.h"
#include "flutter/fml/m... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: simplemapi.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-03-26 13:51:49 $
*
* The Contents of this file are mad... |
<commit_before>// Copyright (c) 2011 The Chromium Embedded Framework 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 "dom_node_impl.h"
#include "browser_impl.h"
#include "cef_thread.h"
#include "dom_document_impl.h"
#include... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 08:17:26 $
*
* Th... |
<commit_before>#pragma once
#include <gcl/mp/meta/functional.hpp>
namespace gcl::mp
{
template <std::size_t index>
struct type_index {};
template <typename... types>
struct tuple {
constexpr static auto size = sizeof...(types);
constexpr static auto empty = size == 0;
templat... |
<commit_before>/******************************************************************************
* Main script for the 2017 RoboFishy Scripps AUV
******************************************************************************/
#include "Mapper.h"
// Multithreading
#include <pthread.h>
#include <sched.h>
#include <unistd... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<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-2016 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, t... |
<commit_before>/*
* Copyright (c) 2006, Lee McColl Sylvester - www.designrealm.co.uk
* 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 th... |
<commit_before>/*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: makedocs.cc,v 1.11 2002/09/05 04:34:04 verkerke Exp... |
<commit_before>#include "shape.hpp"
#include "glm/gtx/rotate_vector.hpp"
#include "utils.hpp"
namespace trac0r {
const glm::vec3 Shape::pos(const Shape &shape) {
return shape.m_pos;
}
void Shape::set_pos(Shape &shape, glm::vec3 new_pos) {
shape.m_pos = new_pos;
}
const glm::vec3 Shape::orientation(const S... |
<commit_before>#ifndef UTILS_HPP
#define UTILS_HPP
#include <glm/glm.hpp>
#include <SDL.h>
#include <SDL_ttf.h>
#include <cmath>
#include <string>
#include <iostream>
namespace trac0r {
SDL_Texture *make_text(SDL_Renderer *renderer, TTF_Font *font, std::string text,
const SDL_Color &color) {... |
<commit_before>#include "photoeffects.hpp"
#include <math.h>
using namespace cv;
#define MAX_KERNELSIZE 15
int edgeBlur(InputArray src, OutputArray dst, int indentTop, int indentLeft)
{
CV_Assert(src.type() == CV_8UC3);
dst.create(src.size(), src.type());
Mat image = src.getMat(), outputImage = dst.getMa... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 1999 Preston Brown, Ian Dawes
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
... |
<commit_before>// $Id: steepestDescent.C,v 1.2 1999/08/31 22:01:17 oliver Exp $
#include <BALL/MOLMEC/MINIMIZATION/steepestDescent.h>
#include <BALL/COMMON/limits.h>
namespace BALL
{
Size SteepestDescentMinimizer::Default::MAX_STEPS = 6;
float SteepestDescentMinimizer::Default::MAX_GRADIENT = 0.001;
const char* ... |
<commit_before>#include <iostream>
#include <iomanip>
#include "Util.h"
#include "Timer.h"
#include "util/usage.hh"
namespace Moses
{
/***
* Return the total wall time that the timer has been in the "running"
* state since it was first "started".
*/
double Timer::get_elapsed_time() const
{
if (stopped) {
... |
<commit_before>#include <sal/net/io_service.hpp>
#include <sal/net/internet.hpp>
#include <sal/common.test.hpp>
#if __sal_os_darwin
#include <sal/thread.hpp>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <forward_list>
#include <thread>
using namespace std::chrono_literals... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002-2003 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. Red... |
<commit_before>// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// Copyright 2019 FZI Forschungszentrum Informatik
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file excep... |
<commit_before>#include "RansomwareCanary.h"
#include <thread>
#include "../stringtools.h"
#include "../urbackupcommon/os_functions.h"
#include "../Interface/Server.h"
#include "../Interface/File.h"
#include "../urbackupcommon/glob.h"
#include "../common/miniz.h"
#include "clientdao.h"
#include "database.h"
#... |
<commit_before>#include "TextureLoader.h"
TextureLoader::TextureLoader(std::string const & url) :
m_objectsTexture(new sf::Texture()),
m_floorTexture(new sf::Texture()),
m_characterTexture(new sf::Texture())
{
loadTexture(url);
}
TextureLoader::~TextureLoader()
{
delete(m_floorTexture);
delete(m_objectsTexture);... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NameContainer.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-25 08:58:49 $
*
* The Contents of this file are ... |
<commit_before>#include <Poco/AutoPtr.h>
#include <gtest/gtest.h>
#include <exception>
#include <iostream>
#include <string>
#include <strstream>
#include "db.h"
#ifdef ENABLE_SQLITE3
extern "C" {
extern DB::Connection *create_sqlite3_connection(void);
};
class SqliteInvalidTest : public ::testing::Test {
... |
<commit_before>/// This file is part of the KDE libraries
/// Copyright (C) 2008 Paul Giannaros <[email protected]>
/// Copyright (C) 2008 Christoph Cullmann <[email protected]>
///
/// This library is free software; you can redistribute it and/or
/// modify it under the terms of the GNU Library General Public
/// Lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salgdiutils.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: hr $ $Date: 2007-08-03 14:02:31 $
*
* The Contents of this file are m... |
<commit_before>
// .\Release\x64\benchmarks.exe --benchmark_repetitions=3 --benchmark_filter=Planetarium // NOLINT(whitespace/line_length)
#include "ksp_plugin/planetarium.hpp"
#include <algorithm>
#include "astronomy/time_scales.hpp"
#include "base/status_utilities.hpp"
#include "benchmark/benchmark.h"
#include "... |
<commit_before>/*
Copyright (C) 2001 by Jorrit Tyberghein
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) any later ... |
<commit_before>//------------------------------------------------------------------------
//
// CASROS: Component-based Architecture for Safe Robotic Systems
//
// Copyright (C) 2012-2014 Min Yang Jung and Peter Kazanzides
//
//------------------------------------------------------------------------
//
// Created on ... |
<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.
// For information about interceptions as a whole see
// http://wiki/Main/ChromeSandboxInterceptionDesign
#include <set>
#includ... |
<commit_before>/**
* \file
* \brief staticThreadBlinker example application
*
* \author Copyright (C) 2016 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 not
*... |
<commit_before>// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "browser/linux/libnotify_notification.h"
#include "base/files/file_enumerator.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conver... |
<commit_before>/*
This file is part of Akregator.
Copyright (C) 2005 Frank Osterfeld <[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 L... |
<commit_before>// Base class for property controlled subsystems
//
// Copyright (C) 2012 Thomas Geymayer <[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
... |
<commit_before>
#include <boost/asio.hpp>
#include "vtrc-protocol-layer.h"
#include "vtrc-connection-iface.h"
#include "vtrc-common/vtrc-monotonic-timer.h"
#include "vtrc-common/vtrc-data-queue.h"
#include "vtrc-common/vtrc-hasher-iface.h"
#include "vtrc-common/vtrc-hasher-impls.h"
#include "vtrc-common/vtrc-transfor... |
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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, c... |
<commit_before>
#include <iostream>
#include <thread>
#include <deque>
#include <exception>
#include <mutex>
// #include <condition_variable>
// #include <mutex>
void busywait(int lmax) {
for(int i=0; i<lmax; i++) {
for(int j=0; j<lmax; j++) {
for(int k=0; k<lmax; k++) {
}
... |
<commit_before>#include "http_server/http_server.hxx"
#include "http_server/Request.hxx"
#include "http_server/Handler.hxx"
#include "http_headers.hxx"
#include "direct.hxx"
#include "RootPool.hxx"
#include "pool.hxx"
#include "istream/istream.hxx"
#include "istream/istream_catch.hxx"
#include "fb_pool.hxx"
#include "s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.