text stringlengths 54 60.6k |
|---|
<commit_before>// This file is part of the uSTL library, an STL implementation.
//
// Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net>
// This file is free software, distributed under the MIT License.
#include "ofstream.h"
#include "ustring.h"
#include "uexception.h"
#include <unistd.h>
#include <errn... |
<commit_before>#define BOOST_FILESYSTEM_VERSION 3
#define USE_FILESYSTEM_THREE
#include <boost/filesystem.hpp>
#include <fstream>
#include "path.h"
#include "kazbase/exceptions.h"
#include "kazbase/string.h"
namespace os {
namespace path {
std::string join(const std::string& p1, const std::string& p2) {
return... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#ifndef ROSETTASTONE_EFFECTS_HPP
#define ROSETT... |
<commit_before>// Time: ctor: O(m * n),
// update: O(logm + logn),
// query: O(logm + logn)
// Space: O(m * n)
// Segment Tree solution.
class NumMatrix {
public:
NumMatrix(vector<vector<int>> &matrix) : matrix_(matrix) {
if (!matrix.empty() && !matrix[0].empty()) {
const int ... |
<commit_before>#include "musicdownloadquerywythread.h"
#include "musicdownloadqueryyytthread.h"
#include "musicsemaphoreloop.h"
#include "musiccoreutils.h"
#include "musicnumberutils.h"
#include "musictime.h"
#///QJson import
#include "qjson/parser.h"
MusicDownLoadQueryWYThread::MusicDownLoadQueryWYThread(QObject *par... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#ifndef ROSETTASTONE_CHARACTER_HPP
#define ROSE... |
<commit_before>#include "Adafruit_ZeroI2S.h"
#include "wiring_private.h"
Adafruit_ZeroI2S::Adafruit_ZeroI2S(uint8_t FS_PIN, uint8_t SCK_PIN, uint8_t TX_PIN, uint8_t RX_PIN) : _fs(FS_PIN), _sck(SCK_PIN), _tx(TX_PIN), _rx(RX_PIN) {}
Adafruit_ZeroI2S::Adafruit_ZeroI2S() : _fs(PIN_I2S_FS), _sck(PIN_I2S_SCK), _tx(PIN_I2S_... |
<commit_before>/*
* File: multi_bounded_queue.hpp
* Author: Barath Kannan
* Vector of bounded list queues.
* Created on 28 January 2017, 09:42 AM
*/
#ifndef BK_CONQ_MULTI_BOUNDED_QUEUE_HPP
#define BK_CONQ_MULTI_BOUNDED_QUEUE_HPP
#include <thread>
#include <vector>
#include <mutex>
#include <memory>
#include <... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: communi.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 18:20:35 $
*
* The Contents of this file are made a... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// Copyright (c) 2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <amount.h>
#include <arith_uint256.h>
#include <compressor.h>
#include <consensus/merkle.h>
#include <core... |
<commit_before>/**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
*
* based on the Null Theme Engine for Gtk+.
* Copyright (c) 2008 Robert Staudinger <robert.staudinger@gmail.com>
*
* This lib... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>#include <tuple>
#include <utility>
#include <iostream>
#include <typeinfo>
enum class for_tuple_keys : int {
nothing = 0,
break_,
//return_ in future
continue_
};
template <size_t size>
class VarargsIterator
{
template <size_t index, bool isOk = (index < size)>
struct Iterator
... |
<commit_before>/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com>
* Copyright (C) 2018 Miodrag Milanovic <miodrag@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is he... |
<commit_before>#include "PoissonDiskSampling.h"
PoissonDiskSampling::PoissonDiskSampling(int pointWidth, int pointHeight, double pointMinDist, double pointCount) :
m_width(pointWidth),
m_height(pointHeight),
m_minDist(pointMinDist),
m_pointCount(pointCount),
m_cellSize(m_minDist / 1.414214f),
m_gridWidth(ceil(m_... |
<commit_before>/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "TiRootObject.h"
#include "NativeStringInterface.h"
#inc... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: servres.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2007-04-26 09:39:34 $
*
* The Contents of this file are made a... |
<commit_before>/**
* Copyright (c) 2014 Charles J. Ezell III.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it wil... |
<commit_before>#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup()
{
ofSetLogLevel(OF_LOG_NOTICE);
ofDisableArbTex();
ofBackground(ofColor::black);
ofImage image;
image.setUseTexture(false);
if (!image.load("testcard.png"))
{
ofLogError("ofApp::setup") << "... |
<commit_before><commit_msg>Better RTL debug start/stop in MpMisc.<commit_after><|endoftext|> |
<commit_before>#ifndef LINEARALGEBRA_HH
#define LINEARALGEBRA_HH
#define LA_COMPLEX_SUPPORT
#include "lapackpp.h"
#include "HCL_Rn_d.h"
typedef LaGenMatDouble Matrix;
typedef LaVectorDouble Vector;
typedef LaSymmMatDouble SymmetricMatrix;
/** Functions for matrix operations */
namespace LinearAlgebra {
//!< A as... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Durati... |
<commit_before>#include <pybind11/embed.h>
#include <iostream>
#include "term_window.h"
#include "draw_pane.h"
#include <wx/dcbuffer.h>
#include "term_context.h"
#include "term_buffer.h"
#include "term_line.h"
#include "term_cell.h"
#include "term_network.h"
#include "color_theme.h"
#include <bitset>
extern
wxCoor... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <algorithm>
#include "Engine.h"
#include "CompileConfig.h"
#include "Cache.h"
#if defined(OUZEL_SUPPORTS_OPENGL) || defined(OUZEL_SUPPORTS_OPENGLES)
#include "RendererOGL.h"
#endif
#if defined(SUPPORTS_DIRECT3D11... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: metafunctions.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: thb $ $Date: 2006-07-13 12:03:25 $
*
* The Contents of this file are... |
<commit_before>// Standard Library includes
#include <iostream>
#include <string>
//! Main function of the mpags-cipher program
int main(int /*argc*/, char* /*argv*/[]) {
// Hello world for C++ using strings
std::string msg {"Hello World!"};
std::cout << msg << "\n";
// No requirement to return from main, but... |
<commit_before>#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
#define MAX_BUF 1024
#include <sstream>
#include <iostream>
#include <string>
#include <chrono>
using namespace std;
#include <boost/property_tree/json_pars... |
<commit_before>#include "simdjson.h"
#include <unistd.h>
#include "benchmark.h"
SIMDJSON_PUSH_DISABLE_ALL_WARNINGS
// #define RAPIDJSON_SSE2 // bad for performance
// #define RAPIDJSON_SSE42 // bad for performance
#include "rapidjson/document.h"
#include "rapidjson/reader.h"
#include "rapidjson/stringbuffer.h"
#incl... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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
//
//... |
<commit_before>#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <tf/transform_broadcaster.h>
#include <tf_conversions/tf_eigen.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/ModelCoefficients.h>
#include <pcl/filters/project_inliers.h>
#include ... |
<commit_before>/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** v4l2compress_jpeg.cpp
**
** Read YUYC from a ... |
<commit_before>/*-
* Copyright (c) 2010 Benjamin Close <Benjamin.Close@clearchain.com>
* 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 ... |
<commit_before>/**
* @file MAchievementsDetails.cpp
* @brief Get Achievements that a user can unlock.
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the ... |
<commit_before>/*
* Author(s):
* - Cedric Gestes <gestes@aldebaran-robotics.com>
* - Chris Kilner <ckilner@aldebaran-robotics.com>
*
* Copyright (C) 2010 Aldebaran Robotics
*/
#include <qi/serialization/message.hpp>
#include <vector>
namespace qi {
namespace serialization {
#if 0
#define __QI_DEBUG_SERIALIZAT... |
<commit_before>#include "jobwidget.h"
#include "debug.h"
#include "restoredialog.h"
#include "utils.h"
#include <QMenu>
#include <QMessageBox>
JobWidget::JobWidget(QWidget *parent)
: QWidget(parent), _saveEnabled(false)
{
_ui.setupUi(this);
_ui.archiveListWidget->setAttribute(Qt::WA_MacShowFocusRect, fals... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>/*
* Copyright (C) 2017 Rhys Ulerich
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef DESCENDU_SEXP_HPP
#define DESCENDU_SEXP_HPP
#inc... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: reflcnst.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:15:25 $
*
* The Contents of this file are made ... |
<commit_before>
// Copyright 2010-2012 University of Washington. All Rights Reserved.
// LICENSE_PLACEHOLDER
// This software was created with Government support under DE
// AC05-76RL01830 awarded by the United States Department of
// Energy. The Government has certain rights in the software.
#include <boost/test/uni... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file JavascriptModule.cpp
* @brief
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "JavascriptModule.h"
#include "ScriptMetaTypeDefines.h"
#include "JavascriptEngine.h"
#include "EC_... |
<commit_before>/****************************************************************************/
/**
* @file Bmp.cpp
* @author Naohisa Sakamoto
*/
/*----------------------------------------------------------------------------
*
* Copyright (c) Visualization Laboratory, Kyoto University.
* All rights reserved.
... |
<commit_before>/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distrib... |
<commit_before>//===- lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp ----------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>#pragma once
#include <cstdint>
#include <vector>
#include <string>
#if __BIG_ENDIAN
#define RTP_HEADER(port, subclass, ack, sfs) \
(((port & 0x0F) << 4) | ((subclass & 0x03) << 2) | ((ack & 0x01) << 1) | \
(sfs & 0x01))
#else
#define RTP_HEADER(port, subclass, ... |
<commit_before>/*
NES_Keyboard.h - A library to control a keyboard with an NES controller.
*WARNING* This code requires a Leonardo or Micro (NOT DUE!!!)
(The Due runs on 3.3v and would likely break if you try to run this code)
Copyright (c) 2014 James P. McCullough. All rights reserved.
*/
#include "NES_Keybo... |
<commit_before>/**
* Copyright (C) 2021 3D Repo Ltd
*
* 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 Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* T... |
<commit_before>//===- AMDGPUUnifyDivergentExitNodes.cpp ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SysShentry.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2006-06-19 14:20:47 $
*
* The Contents of this file are mad... |
<commit_before>/*
* Copyright (c) 2002-2010 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of ... |
<commit_before>#include "modinterface.h"
#ifndef MODIFACE_ROBOBO
#define MODIFACE_ROBOBO
class ModuleInterface {
public:
ModuleInterface(std::tr1::unordered_map<std::string, Server>* serverMap, std::tr1::unordered_map<std::string, Module>* moduleMap);
void sendToServer(std::string server, std::string rawLine);
... |
<commit_before><commit_msg>RSComputer: Replace inefficient HashSet iteration by deque<commit_after><|endoftext|> |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... |
<commit_before>// Application.cpp
#include "Header.h"
//==================================================================================================
wxIMPLEMENT_APP( Application );
//==================================================================================================
Application::Application( voi... |
<commit_before>#include <FileUtils.hpp>
#include <algorithm>
#include <dirent.h>
#include <sstream>
#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
void FileUtils::readFolder(const char* folderPath,
std::vector<std::string>& files) {
DIR *dir;
struct dirent *ent;
// Try opening fo... |
<commit_before>/*
qgvdial is a cross platform Google Voice Dialer
Copyright (C) 2009-2013 Yuvraaj Kelkar
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 ... |
<commit_before>#include "glog/logging.h"
#include "gtest/gtest.h"
#include "quantities/astronomy.hpp"
#include "quantities/BIPM.hpp"
#include "quantities/constants.hpp"
#include "quantities/dimensionless.hpp"
#include "quantities/elementary_functions.hpp"
#include "quantities/quantities.hpp"
#include "quantities/si.hp... |
<commit_before>// Author: Chrono Law
// Copyright (c) 2015-2016
#ifndef _NGX_BUF_HPP
#define _NGX_BUF_HPP
#include "NgxPool.hpp"
class NgxBuf final : public NgxWrapper<ngx_buf_t>
{
public:
typedef NgxWrapper<ngx_buf_t> super_type;
typedef NgxBuf this_type;
public:
NgxBuf(const NgxPool& p, std::size_t n):
... |
<commit_before>#include <bts/blockchain/transaction_creation_state.hpp>
#include <bts/blockchain/balance_operations.hpp>
namespace bts { namespace blockchain {
transaction_creation_state::transaction_creation_state( chain_interface_ptr prev_state )
:pending_state(prev_state),required_signatures(1),eval_state... |
<commit_before>/*
* MPT C++ config interface
*/
#include <sys/uio.h>
#include "node.h"
#include "array.h"
#include "config.h"
__MPT_NAMESPACE_BEGIN
template <> int typeinfo<configuration::element>::id()
{
static int id = 0;
if (!id) {
id = make_id();
}
return id;
}
// non-trivial path operations
array::con... |
<commit_before>/*********************************************************************
*
* Copyright 2012 the original author or authors.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");... |
<commit_before>/****************** <VPR heading BEGIN do not edit this line> *****************
*
* VR Juggler Portable Runtime
*
* Original Authors:
* Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
*
* -----------------------------------------------------------------
* File: $RC... |
<commit_before>//#define _DEBUG
#include <algorithm>
#include <climits>
#include <cstddef>
#include <memory>
#include <string>
#include <vector>
#ifdef _DEBUG
#include <iostream>
#endif
#include "js6chars.hpp"
std::string char_repr(char value, bool* cannot_use, char forbidden);
std::string str_repr(const char* str,... |
<commit_before>#include "common/params.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif // _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <map>
#include <string>
#include <string.h>
#include "common/util.h"
#include "... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include "common/visionbuf.h"
#include "common/visionipc.h"
#include "common/swaglog.h"
#include "models/driving.h"
volatile sig_atomic_t do_exit = 0;
static void set_do_exit(int sig) {
do_exit = 1;
}
// globals
bool run_model;
mat3 cur_transform;
pthread_mut... |
<commit_before>
#pragma once
#include "quantities/parser.hpp"
#include <array>
#include <string>
#include "quantities/astronomy.hpp"
#include "quantities/dimensions.hpp"
#include "quantities/named_quantities.hpp"
#include "quantities/si.hpp"
namespace principia {
namespace quantities {
namespace internal_parser {
... |
<commit_before>#include "k/context.h"
#include "etl/armv7m/mpu.h"
#include "etl/armv7m/types.h"
#include "common/message.h"
#include "common/descriptor.h"
#include "k/address_range.h"
#include "k/context_layout.h"
#include "k/object_table.h"
#include "k/registers.h"
#include "k/reply_sender.h"
#include "k/scheduler.... |
<commit_before>/******************************************************************************
* @file prngcl_constant.cpp
* @author Vadim Demchik <vadimdi@yahoo.com>
* @version 1.0
*
* @brief [PRNGCL library]
* contains implementation, description and initialization procedures of
* ... |
<commit_before>#include "loging.h"
#include "task.h"
#include "preferences.h"
#include <qdatetime.h>
#include <qstring.h>
#include <qfile.h>
#include <qtextstream.h>
#include <qregexp.h>
#include <iostream>
#define LOG_START 1
#define LOG_STOP 2
#define LOG_NEW_TOTAL_TIME 3
#define LOG_NEW_SESSION_TIME 4
Login... |
<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/logging.h"
#include "media/base/callback.h"
#include "media/base/media.h"
#include "remoting/base/capture_data.h"
#inclu... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/base/encoder_vp8.h"
#include "base/logging.h"
#include "media/base/callback.h"
#include "media/base/yuv_convert.h"
... |
<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/embedder/tests/embedder_test_context_gl.h"
#include "flutter/fml/make_copyable.h"
#include "flutter/fml/pa... |
<commit_before>#include "Lowe_Andersen.h"
#include "Polymer.h"
#include "Monomer.h"
#include "consts.h"
using namespace consts;
#include<cmath>
using namespace std;
Lowe_Andersen::Lowe_Andersen(Polymer &poly, double dtime, double nu) : poly(poly),
nu(nu), uniform_real(0.,1.), gauss_real(0.,1.) {
time_step(... |
<commit_before>/* libs/graphics/effects/Sk2DPathEffect.cpp
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.ap... |
<commit_before>/*
* OpenSSL Hash Functions
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/internal/openssl_engine.h>
#include <openssl/evp.h>
namespace Botan {
namespace {
/*
* EVP Hash Function
*/
class EVP_HashFunction : public HashFunction
{
public:
... |
<commit_before><commit_msg>replacing std::copy with std::copy_n<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix typog<commit_after><|endoftext|> |
<commit_before>/*
* Simulator.cc : part of the Mace toolkit for building distributed systems
*
* Copyright (c) 2011, Charles Killian, James W. Anderson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
<commit_before>#include <Poco/Exception.h>
#include <Poco/Logger.h>
#include <Poco/String.h>
#include "di/Injectable.h"
#include "policy/SensorHistoryRules.h"
#include "util/TimespanParser.h"
BEEEON_OBJECT_BEGIN(BeeeOn, SensorHistoryRules)
BEEEON_OBJECT_PROPERTY("rules", &SensorHistoryRules::parseAndSetRules)
BEEEON_... |
<commit_before>// Copyright (c) 2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/pivx/masternodeswidget.h"
#include "qt/pivx/forms/ui_masternodeswidget.h"
#include "qt/pivx/qtutils.h"
#includ... |
<commit_before><commit_msg>[idyntree-model-info] added print of relative frame transformations<commit_after><|endoftext|> |
<commit_before><commit_msg>Adding avatar_url to select statement<commit_after><|endoftext|> |
<commit_before>#include <boost/thread/thread.hpp>
#include <iostream>
using std::cout;
using std::endl;
#include <string>
using std::string;
#include <fstream>
using std::ifstream;
#include <sstream>
using std::stringstream;
#include <vector>
using std::vector;
#include "liblager_connect.h"
#include "liblager_convert.... |
<commit_before><commit_msg>corrected title height calculation in case of a zoom<commit_after><|endoftext|> |
<commit_before>// Listen to map_store_POINTS files:
// - store them in a local object
// - maintain a list and broadcast the list
// - support queries, which sent a specific cloud back
// - listen for
// LCM example program for interacting with PCL data
// In this case it pushes the data back out to LCM in
// a di... |
<commit_before>#include "common.h"
#include "SoftXMT.hpp"
#include "ForkJoin.hpp"
#include "Cache.hpp"
#include "Delegate.hpp"
#include "PerformanceTools.hpp"
#include "GlobalAllocator.hpp"
#include "timer.h"
#include "GlobalTaskJoiner.hpp"
GRAPPA_DEFINE_EVENT_GROUP(bfs);
#define read SoftXMT_delegate_read_word
... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>//===-- SymbolVendorMacOSX.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#ifndef IG_CHIRP_SAMPLE_FORMAT_HPP
#define IG_CHIRP_SAMPLE_FORMAT_HPP
#include <chirp/exceptions.hpp>
namespace chirp
{
///
///
///
enum class byte_order {
big_endian,
little_endian
};
///
///
///
class sample_format
{
public:
// Not default constructible
sample_format() = delete... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/gtk/info_bubble_gtk.h"
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "app/gfx/path.h"
#include "... |
<commit_before><commit_msg>If a sync message can't be routed, respond immediately with an error. This will allow us to process alerts correctly if they happen after the tab has been closed in the browser process.<commit_after><|endoftext|> |
<commit_before>
#include <stdio.h>
#include <iostream>
#include <thread>
#include <mutex>
#include <atomic>
#include <queue>
#include <vector>
#include <algorithm>
#include <sstream>
//#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/format.hpp>
#in... |
<commit_before>/*
* @(#)$Id$
*
* Copyright (c) 2004 Intel Corporation. All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE file.
* If you do not find these files, copies can be found by writing to:
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300,
* Berkele... |
<commit_before>/*
* Copyright (c) 2013 Per Johansson
* 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... |
<commit_before>/**
* \description This is the main for the new version of the mert algorithm developed during the 2nd MT marathon
*/
#include <limits>
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cmath>
#include <ctime>
#include <getopt.h>
#include "Data.h"
#include "Point... |
<commit_before>// demo.cpp
#include "demo.h"
namespace demo
{
void Demo::startup()
{
}
void Demo::run()
{
}
bool Demo::isRunning() const
{
}
void Demo::shutdown()
{
}
} // End nspc demo<commit_msg>Initialize the graphics api in the demo start up sequence.<commit_after>// demo.cpp
#include "demo.h"
#include "demo... |
<commit_before>#include"manager.h"
#include"user.h"
#include<sstream>
#include"config.h"
#include"utils.h"
#include <liblog.h>
MODULE_LOG_NAME("CManager");
CManager::CManager(CConnectionPool * DatabaseFile)
{
m_pDatabase=DatabaseFile;
}
CManager::~CManager()
{
}
bool CManager::getUserByID(int nID, IUser ** ppUser)
... |
<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: simpleguesser.cxx,v $
* $Revis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.