text stringlengths 54 60.6k |
|---|
<commit_before>#include "system/env.h"
#include "system/van.h"
#include "base/common.h"
#include "base/local_machine.h"
#include "base/file.h"
// #include "data/common.h"
#include "proto/node.pb.h"
namespace ps {
DEFINE_int32(num_servers, 0, "number of servers");
DEFINE_int32(num_workers, 0, "number of clients");
DEFI... |
<commit_before>/*
* TCP client connection pooling.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef BENG_PROXY_TCP_STOCK_HXX
#define BENG_PROXY_TCP_STOCK_HXX
struct pool;
struct balancer;
struct StockMap;
struct StockItem;
struct StockGetHandler;
struct async_operation_ref;
class SocketAddress;
/**
* Creat... |
<commit_before>// (C) 2016 Marvin Sielenkemper
#include "db.hpp"
#include <mariadb/mysql.h>
#include <iostream>
struct Db::Impl : boost::noncopyable {
MYSQL mysql;
Impl() : mysql() {
mysql_init(&mysql);
}
};
Db::Db(char* passwd) : m_implPtr(new Impl()) {
auto& mysql(m_implPtr->mysql);
auto const p(... |
<commit_before>#include "chainerx/python/chainer_interop.h"
#include <algorithm>
#include <cstdint>
#include <iterator>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <gsl/gsl>
#include <nonstd/optional.hpp>
#include "chainerx/array.h"
#include "chainerx/array_body.h"
#include "cha... |
<commit_before>#include "chainerx/python/chainer_interop.h"
#include <algorithm>
#include <cstdint>
#include <iterator>
#include <memory>
#include <string>
#include <vector>
#include "chainerx/array.h"
#include "chainerx/array_body.h"
#include "chainerx/array_fwd.h"
#include "chainerx/backward.h"
#include "chainerx/b... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#include "Thread.hpp"
#include <Windows.h>
namespace Util
{
namespace Thread
{
uintmax_t GetCurrentThreadId()
{
#ifdef _WIN64
/*
mov rax,qword ptr gs:[30h]
mov eax,dword ptr [rax+48h]
*/
return Pointer(_... |
<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/extensions/extension_creator.h"
#include <vector>
#include <string>
#include "base/crypto/rsa_private_key.h"... |
<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/browser.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/gtk/view_id_util.h"
#include "c... |
<commit_before>AliAnalysisTask *AddTaskHFECal()
{
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTaskHFEECal", "No analysis manager found.");
return NULL;
}
if (!mgr->GetInputEventHandler()) {
::Error("AddTaskHFECal", "This task requires an input event han... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: setaccess.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:20:15 $
*
* The Contents of this file are made... |
<commit_before>/**
* C S O U N D V S T
*
* A VST plugin version of Csound, with Python scripting.
*
* L I C E N S E
*
* This software 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 ... |
<commit_before>#include "SimObservable.h"
#include "SimObserver.h"
#include "json/json.h"
#include "schema.h"
#include "../Validator/ObjectRequirement.h"
#include "../Validator/ArrayRequirement.h"
#include "SimException.h"
#include "../Observers/DLMFileObserver.h"
#include "../Observers/JSONObserver.h"
#include "../Obs... |
<commit_before>// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>#include "tangram_bam.h"
#include <stdio.h>
#include <limits.h>
#include <getopt.h>
#include <vector>
#include <string>
#include <iostream>
#include "api/BamReader.h"
#include "api/BamWriter.h"
#include "../OutSources/fasta/Fasta.h"
#include "../OutSources/stripedSW/ssw_cpp.h"
using namespace std;
vo... |
<commit_before>//! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "bounded/static.hpp"
#include "quantities/wall_time.hpp"
#include "rsrc/fonts.hpp"
#include "utility/reference.hpp"
#include "utility/simple_moving_average.hpp"
#include <SFML/Graphics.hpp>
#include <deque>
nam... |
<commit_before>/*
Copyright(c) Microsoft Open Technologies, Inc. All rights reserved.
The MIT License(MIT)
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,... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000-2002 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>#include <algorithm>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include <popt.h>
#include "defs.hh"
#include "StringSet.hh"
#include "FactorEncoder.hh"
#include "Unigrams.hh"
#include "Bigrams.hh"
us... |
<commit_before>#include <QAction>
#include <QApplication>
#include <QBoxLayout>
#include <QTime>
#include <QTimer>
#include "base.h"
#include "dialog.h"
#include "dlog.h"
#include "menu.h"
#include "note.h"
#include "proj.h"
#include "term.h"
#include "tedit.h"
#include "svr.h"
#include "state.h"
#include "recent.h"
... |
<commit_before>
#include "antsUtilities.h"
#include <algorithm>
#include <stdio.h>
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkResampleImageFilter.h"
#include "itkConstantBoundaryCondition.h"
#include "itkIdentityTransform.h"
#include "itkBSplineInterpolateImag... |
<commit_before>//---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2005, 2006, 2008, 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please re... |
<commit_before>#include "WavTapDevice.hpp"
#include "WavTapEngine.hpp"
#include <IOKit/audio/IOAudioControl.h>
#include <IOKit/audio/IOAudioLevelControl.h>
#include <IOKit/audio/IOAudioToggleControl.h>
#include <IOKit/audio/IOAudioDefines.h>
#include <IOKit/IOLib.h>
#define super IOAudioDevice
OSDefineMetaClassAndStr... |
<commit_before>/*
Copyright 2014 The pydevs Developers
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... |
<commit_before>#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofEnableAntiAliasing();
ofSetVerticalSync( true );
ofSetFrameRate( 30 );
#ifdef DISABLE_STREAMING
cout << "Disabled streaming: compile with 'Release' to enable" << endl;
... |
<commit_before>/* ========================================
ID: mathema6
TASK: B2
LANG: C++14
* File Name : B2.cpp
* Creation Date : 15-07-2021
* Last Modified : Thu 15 Jul 2021 12:45:26 AM CEST
* Created By : Karel Ha <mathemage@gmail.com>
* URL : https://codingcompetitions.withgoogle.com/kick... |
<commit_before>#include "ncd_gateway.h"
#include "S3B.h"
#include "spark_wiring_eeprom.h"
S3B sModule;
String eventReturns[5];
unsigned long tOut = 3000;
//int s3b(JsonObject& root);
void init_gateway(){
Particle.function("deviceComm", gatewayCommand);
Particle.subscribe("ncd_deviceCom", commandHandler, MY_D... |
<commit_before>#include <ros.h>
#include <string.h>
#include "std_msgs/String.h"
#include "maelstrom_msgs/PwmRequests.h"
#include "maelstrom_msgs/ThrusterForces.h"
#include "maelstrom_msgs/LightInput.h"
#include "ForceToPwmLookup.h"
//incleder for IMU og trykksensor
#include "MPU6050/MPU6050.h"
#include "MS5803_14B... |
<commit_before>#ifndef MJOLNIR_OMP_UNLIMITED_GRID_CELL_LIST_HPP
#define MJOLNIR_OMP_UNLIMITED_GRID_CELL_LIST_HPP
#include <mjolnir/omp/OpenMPSimulatorTraits.hpp>
#include <mjolnir/omp/sort.hpp>
#include <mjolnir/core/UnlimitedGridCellList.hpp>
namespace mjolnir
{
template<typename realT, template<typename, typename> ... |
<commit_before>#pragma once
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#define _mgl_str(x) #x
#define _mgl_xstr(x) _mgl_str(x)
#define mgl_mod _mgl_xstr(MODERNGL_MODULE)
#define mgl_ext mgl_mod ".mgl"
/* Wrapper classes for internal objects are defined in python. They must have __slots__ d... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Accounts/Player.h>
#include <hspp/Cards/... |
<commit_before>#ifndef STAN_MATH_REV_FUN_DIAG_PRE_MULTIPLY_HPP
#define STAN_MATH_REV_FUN_DIAG_PRE_MULTIPLY_HPP
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/eval.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/fu... |
<commit_before>#ifndef STAN_MATH_REV_FUN_ORDERED_CONSTRAIN_HPP
#define STAN_MATH_REV_FUN_ORDERED_CONSTRAIN_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/functor/reverse_pass_callback.hpp>
#include <stan/math/rev/core/arena_matrix.hpp>
#include <stan/math/rev/fun/value_of.hpp>
#include <stan/math/prim/f... |
<commit_before><commit_msg>Activated an aditional unit test on windows.<commit_after><|endoftext|> |
<commit_before>#include "queryconfig.h"
#include <thread>
annis::QueryConfig::QueryConfig()
: optimize(true), forceFallback(false), avoidNestedBySwitch(true) ,
numOfBackgroundTasks(0), threadPool(nullptr)
{
size_t numOfCPUs = std::thread::hardware_concurrency();
if(numOfCPUs > 0)
{
numOfBackgroundTas... |
<commit_before>#ifndef MPACK_AVLITERATOR_IMPL_HPP
#define MPACK_AVLITERATOR_IMPL_HPP
namespace MPACK
{
namespace Algorithm
{
template<class T> AVL<T>::Iterator::Iterator()
{
}
template<class T> AVL<T>::Iterator::Iterator(const Iterator& other)
: m_avl(other.m_avl), m_node(other.m_node), m_count(other.m_c... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: opcodes.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2005-09-29 16:31:38 $
*
* The Contents of this file are made ... |
<commit_before>// Copyright (c) 2016, Baidu.com, 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 "volum_group.h"
#include "volum.h"
#include "mounter.h"
#include "protocol/galaxy.pb.h"
#include "agent/volum/volum.h"
#include "bo... |
<commit_before>//----------------------------------------------------------------------------
// Copyright( c ) 2016, Robert Kimball
// 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. Re... |
<commit_before>#ifndef MPACK_GROUPCONTROLLERS_HPP
#define MPACK_GROUPCONTROLLERS_HPP
#include "GroupController.hpp"
#include "PlayGroupController.hpp"
#include "VolumeGroupController.hpp"
#endif
<commit_msg>Updated GroupControllers.hpp<commit_after>#ifndef MPACK_GROUPCONTROLLERS_HPP
#define MPACK_GROUPCONTROLLERS_HPP... |
<commit_before>/**
* Copyright (c) 2016-2018 metaverse core developers (see MVS-AUTHORS)
*
* This file is part of metaverse.
*
* metaverse is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by th... |
<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>#include <cstdio>
#include <cstring>
#include <cassert>
const int shift = 32;
const unsigned long long BASE = (unsigned long long)1 << shift;
const int LEN = 10000000;
void add(unsigned dest[], unsigned src[]) {
for (int i = LEN - 1; i >= 0; i--)
if (dest[i] >= BASE - src[i]) {
assert(i && "Oh car... |
<commit_before>/* vim:set ts=4 sw=4 sts=4 et: */
#include <set>
#include <stdexcept>
#include <igraph/cpp/edge.h>
#include <igraph/cpp/generators/line_graph.h>
#include <netctrl/model/liu.h>
#include <netctrl/model/switchboard.h>
namespace netctrl {
using namespace igraph;
SwitchboardControllabilityModel::~Switchbo... |
<commit_before>// ==========================================================================
// ANISE
// ==========================================================================
// Copyright (c) 2006-2014, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and use in... |
<commit_before>/*
* Copyright (c) 2013 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>#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <limits.h>
#include <random>
#include "transpose.h"
#define BIT(x) ((unsigned long long) 1 << x)
template <typename T>
union container {
T native;
unsigned char bytes[sizeof(T)];
};
template <typename T>
void
assign_bit(T *in_ptr, T... |
<commit_before>//===- Printer.cpp - Code for printing data structure graphs nicely -------===//
//
// This file implements the 'dot' graph printer.
//
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/DataStructure.h"
#include "llvm/Analysis/DSGraph.h"
#include "l... |
<commit_before>#include "nuclear_burn.hpp"
#include "source/misc/vector_initialiser.hpp"
#include "safe_retrieve.hpp"
#include <fstream>
extern "C" {
void initnet_(const char* rfile);
void burn_step_(int* indexeos,
double* density,
double* energy,
double* tburn,
double* xn,
double* atomw,
... |
<commit_before>/*
* Gives the idc's friendly names.
*/
#define vehicle_store 24233
#define main_screen 24234
#define vehicle_list 24235
#define buy_vehicle_button 24236
#define spawn_locations_button 1803
<commit_msg>added idc definitions<commit_after>/*
* Gives the idc's friendly names.
*/
#define vehicle_store ... |
<commit_before>/*
* This file is part of SmartLamp application.
*
* 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... |
<commit_before>//////////////////////////////////////////////////////////////////////
/// @file ai.cpp
/// @author Connor McBride
/// @brief Contains definition information for the AI class.
//////////////////////////////////////////////////////////////////////
#include "ai.h"
// @public_functions
// @constructors
AI... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 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) 2017-2020 the rbfx project.
//
// 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, co... |
<commit_before>//===- ProfileInfoLoaderPass.cpp - LLVM Pass to load profile info ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>[mdns] remove stale, empty multicast_dns source file (#122)<commit_after><|endoftext|> |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013-2016, 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.apac... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cloud_print/service/win/cloud_print_service.h"
#include <iomanip>
#include <iostream>
#include "base/at_exit.h"
#include "b... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/* The Next Great Finite Element Library. */
/* Copyright (C) 2003 Benjamin S. Kirk */
/* 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 o... |
<commit_before>#include "Window.h"
#include <QtGui>
#include "ui_MainWindow.h"
#if defined Q_OS_MAC
#include "../OSXLocal.h"
#endif
#include "../Settings.h"
Window::Window()
: mUI( new Ui::MainWindow )
{
mUI->setupUi( this );
setWindowFlags( (Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint |... |
<commit_before>#pragma once
#include "generator/osm2type.hpp"
#include "generator/xml_element.hpp"
#include "generator/feature_builder.hpp"
#include "generator/ways_merger.hpp"
#include "indexer/ftypes_matcher.hpp"
#include "indexer/feature_visibility.hpp"
#include "indexer/classificator.hpp"
#include "geometry/tree... |
<commit_before>#include "http/URLParser.hpp"
#include <cstring>
using std::string;
char hexToChar(char hex1, char hex2) {
return (hex1 - '0') * 16 + (hex2 - '0');
}
bool decodeURLEntities(const char* in, size_t length, std::string& out) {
out.clear();
out.reserve(length);
for (size_t i = 0; i < lengt... |
<commit_before>// Copyright 2016 AUV-IITK
#include <ros.h>
#include <Arduino.h>
#include <std_msgs/Int32.h>
#include <std_msgs/Float64.h>
#include <math.h>
#define pwmPinWest 3
#define pwmPinEast 2
#define directionPinWest1 30
#define directionPinWest2 31
#define directionPinEast1 33
#define directionPinEast2 32
#def... |
<commit_before>/*
* Copyright 2009-2018 The VOTCA Development Team
* (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License")
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... |
<commit_before>/*
Copyright (c) 2013, Ford Motor Company
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 condit... |
<commit_before>#include "videosourcefactory.h"
namespace gg
{
VideoSourceFactory VideoSourceFactory::_factory_singleton;
VideoSourceFactory::VideoSourceFactory()
{
for (size_t i = 0; i < NUM_DEVICES; i++)
_devices[i] = nullptr;
}
VideoSourceFactory::~VideoSourceFactory()
{
free_device(DVI2PCIeDuo_DV... |
<commit_before>//****************************************************************************
// Copyright © 2015 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2015-10-23.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//*********... |
<commit_before>//==============================================================================
// Single cell simulation view simulation
//==============================================================================
#include "singlecellsimulationviewcontentswidget.h"
#include "singlecellsimulationviewinformati... |
<commit_before>#include <stdio.h>
#include <Halide.h>
#include <algorithm>
#include <iostream>
using namespace Halide;
using namespace Halide::Internal;
Scope<Expr> scope;
Scope<int> linearity;
Expr x = Variable::make(Int(32), "x");
Expr y = Variable::make(Int(32), "y");
constexpr int N = 100;
Expr v[N];
void fi... |
<commit_before>/*
*
* Copyright 2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2017-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* T... |
<commit_before>// Copyright (c) 2011 - 2019, GS Group, https://github.com/GSGroup
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permission notice appear in all copies.
// THE SOFTWARE IS PRO... |
<commit_before>#include <gflags/gflags.h>
#include <glog/logging.h>
#include <iostream>
#include <fstream>
#include "utils/cluster_rt.h"
#include "proto/singa.pb.h"
#include "utils/common.h"
#ifndef GFLAGS_GFLAGS_H_
namespace gflags = google;
#endif // GFLAGS_GFLAGS_H_
DEFINE_string(global, "conf/singa.conf", "Glob... |
<commit_before>#pragma once
#include <array>
#include <vector>
#include <ostream>
#include <cstring>
#ifdef DEBUG
# include <iostream>
#endif
#include "util.hpp"
#include "debug.hpp"
namespace utki{
/**
* @brief span template class.
* This class is a wrapper of continuous memory span, it encapsulates pointer to ... |
<commit_before><commit_msg>Make sure the output file is closed before committing<commit_after><|endoftext|> |
<commit_before>// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/parser/cpdf_object.h"
#include <algorit... |
<commit_before>/*
This file is part of Magnum.
Original authors — credit is appreciated but not required:
2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 —
Vladimír Vondruš <mosra@centrum.cz>
2020 — Nghia Truong <nghiatruong.vn@gmail.com>
This is free and unencumber... |
<commit_before>/*
* Copyright (c) 2003-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 (c) 2013-2016 Ubidots.
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, copy, modify, merge, publish... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/future.hpp>
#include <agency/new_executor_traits.hpp>
#include <agency/detail/executor_traits/shared_parameter_container.hpp>
#include <agency/detail/executor_traits/check_for_member_functions.hpp>
#include <agency/detail/index_cast.hpp>
... |
<commit_before>//
// main.cpp
// Unit Tests
//
// Created by Evan McCartney-Melstad on 12/31/14.
// Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved.
//
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "../cPWP/generateSimulatedData.h"
#includ... |
<commit_before>#include "ovasCPluginExternalStimulations.h"
#include <boost/interprocess/ipc/message_queue.hpp>
#include <vector>
#include <ctime>
#include <iostream>
#include <openvibe/ovITimeArithmetics.h>
#define boolean OpenViBE::boolean
using namespace OpenViBE;
using namespace OpenViBE::Kernel;
using namespa... |
<commit_before>/*-------------------------------------------------------------------------
*
* logger.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /peloton/src/backend/logging/logger.cpp
*
*-------------------------------------------------------------------------
*/
#include "backend/logging/logger.... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// //
// Ludic Game Library //
// Copyright (C)2014 - Michell Stuttgart Faria ... |
<commit_before>/***************************************************************************//**
* FILE : timekeeper.hpp
*/
/* ***** 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 t... |
<commit_before>/*
* SliderWithLabel.cpp
* iPhoneEmptyExample
*
* Created by hansi on 29.01.11.
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
* ------------------------------
* PLEASE READ BEFORE YOU CODE:
*
* This is a simple container thingie.
* You can use it exactly like an OF main ... |
<commit_before>#if defined(WINVER)
#include <windows.h>
#endif
#ifdef __DJGPP__
#else
const long UCLOCKS_PER_SEC = 1000;
long uclock();
#endif
#include <string>
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <functional>
#include <unordered_map>
#include <memory>
#include <utility... |
<commit_before>#include <gtest/gtest.h>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <stego-crypt-lib/stego-crypt-lib.hh>
TEST(StegStub, oneEqualsone) {
int one = 1;
EXPECT_EQ(1, one);
}
TEST(BmpTests, Validation) {
std::ifstream ifs("test/stego-crypt/test.bmp", std::ios::b... |
<commit_before>/* +---------------------------------------------------------------------------+
| The Mobile Robot Programming Toolkit (MRPT) |
| |
| http://www.mrpt.org/ ... |
<commit_before>/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
*... |
<commit_before><commit_msg>找出缺失的数<commit_after><|endoftext|> |
<commit_before>//
// main.cpp
// simulate
//
// Created by Lucy Li on 3/16/20.
// Copyright © 2020 Lucy M Li. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}
<commit_msg>remove extraneous file<comm... |
<commit_before>
//Implementation of the parallel statement execution manager
#include "parContextManager.h"
StatementContext::StatementContext() {
//Do nothing
}
StatementContext::StatementContext(StatementContext&& sc) {
this->int_future_id_map = std::move(sc.int_future_id_map);
this->float_future_id_map = st... |
<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>/******************************************************************
*
* Copyright 2015 Samsung Electronics 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... |
<commit_before>/**
* Filter Traffic DPDK example application
* =======================================
* An application that listens to one or more DPDK ports (a.k.a DPDK devices), captures all traffic
* and matches packets by user-defined matching criteria. Matching criteria is given on startup and can contain one... |
<commit_before>// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2013 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify it un... |
<commit_before>/* This file is part of the Kate project.
*
* Copyright (C) 2012 Christoph Cullmann <cullmann@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>// Copyright 2011 the V8 project authors. 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.