text stringlengths 54 60.6k |
|---|
<commit_before>/**************************************************************************
Copyright (c) 2017 sewenew
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.a... |
<commit_before>/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* span.cpp
* - Spans and error handling
*/
#include <functional>
#include <iostream>
#include <span.hpp>
#include <parse/lex.hpp>
#include <common.hpp>
SpanInner Span::s_empty_span;
Span::Span(Span parent, RcString filename, ... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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://ww... |
<commit_before>// ----------------------------------------------------------------------------
#include "cmsis_device.h"
#include "define.h"
#include "Timer.h"
#include "util.h"
#include "SerialHardware.h"
#include "SPI.h"
int main()
{
// SPI spi(SPI1, PINREMAP);
// spi.start(SPI_BRRDIV16);
// spi.softPin(GPIOA, ... |
<commit_before>
// G910_SAMPLE.cpp : Defines the class behaviors for the application.
//
#pragma comment(lib, "LogitechLEDLib.lib")
#include <stdio.h>
#include <stdlib.h>
#include "LogitechLEDLib.h"
#include <iostream>
using namespace std;
int main()
{
LogiLedInit();
int red = 100;
int green =... |
<commit_before>#include <pthread.h>
#include <string.h>
#include <string>
#include <stdint.h>
#include <unistd.h>
#include <re.h>
#include <vector>
#include "timer.hpp"
#include "uamanager.hpp"
#include "stats_displayer.hpp"
#include "useragent.hpp"
#include "stack.hpp"
#include "logger.hpp"
#include "csv.h"
#include ... |
<commit_before>/*
* Copyright (C) 2017 deipi.com LLC and contributors. All rights reserved.
*
* 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 limit... |
<commit_before>#include "thread/thread.hpp"
#include "thread/mutex.hpp"
#include <atomic>
#include <thread>
#include <mutex>
#include <unordered_map>
#include <boost/lockfree/queue.hpp>
#include <boost/context/all.hpp>
#include <boost/version.hpp>
#include <unistd.h>
#include <cassert>
#include <cstdlib>
#include <sys... |
<commit_before>// Copyright (c) 2016 Greenheart Games Pty. Ltd. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "greenworks_utils.h"
#include "steam_id.h"
#include "v8.h"
namespace greenworks {
v8::Local<v8::Object> SteamID::Create(CSt... |
<commit_before>#include <catch.hpp>
#include <luwra.hpp>
#include <memory>
struct A {
int a;
A(int x = 1338): a(x) {}
};
TEST_CASE("UserTypeRegistration") {
luwra::StateWrapper state;
luwra::registerUserType<A>(state);
}
TEST_CASE("UserTypeConstruction") {
luwra::StateWrapper state;
luwra::registerUserType<A... |
<commit_before>// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2012 University of Cali... |
<commit_before>// Copyright (C) 2015 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <algorithm>
#include "Node.h"
#include "Engine.h"
#include "SceneManager.h"
#include "Layer.h"
#include "Animator.h"
#include "Camera.h"
#include "Utils.h"
#include "MathUtils.h"
namespace ouzel
{
Node::Node()... |
<commit_before>#include "../include/ginseng/ginseng.hpp"
#include <chrono>
#include <iostream>
#include <random>
using namespace std;
using namespace std::chrono;
using DB = Ginseng::Database<>;
using Ginseng::Not;
using EntID = DB::EntID;
using ComID = DB::ComID;
template <typename T>
void print(T&& t)
{
//cou... |
<commit_before>#include "BehaviorTree.h"
using namespace BT;
int main(int argc, char **argv)
{
try
{
int TickPeriod_milliseconds = 1000;
ActionTestNode* test1 = new ActionTestNode("A1");
ActionTestNode*test2 = new ActionTestNode("A2");
ActionTestNode*test3 = new ActionTestNode... |
<commit_before>///
/// @file test.cpp
///
/// Copyright (C) 2014 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 <primecount-internal.hpp>
#include <primesieve.hpp>
#include <stdin... |
<commit_before>///
/// @file test.cpp
/// @brief primesum integration tests.
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesum-internal.hpp>
#include <primesum.hpp>
#incl... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>//
// This file is part of the Marble Desktop 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 2008 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "NavigationFlo... |
<commit_before>#include "Expression.hpp"
#include <sstream>
#include <cmath>
namespace lm
{
Expression::Expression(const std::string& inputInit) : input{inputInit}
{
}
double Expression::getResult()
{
std::istringstream istr(input);
double val1 = 0.0;
double val2 = 0.0;
char op = '\0';
istr >> v... |
<commit_before>#include "Expression.hpp"
#include <sstream>
#include <cmath>
namespace lm
{
Expression::Expression(const std::string& inputInit) : input{inputInit}
{
}
double Expression::getResult()
{
std::istringstream istr(input);
double val1 = 0.0;
double val2 = 0.0;
char op = '\0';
istr >> v... |
<commit_before>/* Copyright (C) 2016-2018 INRA
*
* 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, merg... |
<commit_before>/*
* Dataset_opencvTest.cpp
* Tests Dataset_opencv
*
Copyright 2017 Wojciech Wilgierz
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>/*
* 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 later version.
*
* Written (W) 2012 Heiko Strathmann
*/
#incl... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "txdb.h"
#include "chainparams.h"
#include "hash.h"
#inc... |
<commit_before>
#include "get_bin.h"
int GetBin::change_enmark( char* _string_ )
{
int c = 0;
while( *_string_ )
{
if( *_string_ == '\\' )
{
*_string_ = '/';
c ++;
}
_string_ ++;
}
return c;
}
// get binary code from buf
unsigned char* GetBin::get_bin( void *bin, int size )
{
if( ( unsigned int ... |
<commit_before>#ifndef WISSBI_UTIL_HPP_
#define WISSBI_UTIL_HPP_
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include <string>
#include <sstream>
#include <algorithm>
namespace wissbi {
namespace util {
static void ConnectStringToSockaddr(const std::st... |
<commit_before>/*
* Jamoma Asynchronous Object Graph Layer
* Creates a wrapper for TTObjects that can be used to build a control graph for asynchronous message passing.
* Copyright © 2010, Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/lice... |
<commit_before>/*
Copyright (C) 2013 Nick Ogden <nick@nickogden.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... |
<commit_before>#include "confidence_bounds_strategy_evaluator.h"
#include "estimator.h"
#include "error_calculation.h"
#include "debug.h"
#include <math.h>
#include <assert.h>
#include <limits>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <iomanip>
#include <map>
using std::if... |
<commit_before>/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
delegate.c
Templates and classes to enable delegates for callbacks.
***************************************************************************/
#include <asse... |
<commit_before>// MIT License
//
// Copyright (c) 2017 Artur Wyszyński, aljen at hitomi dot pl
//
// 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 lim... |
<commit_before>// Natron
/* 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/. */
/*
*Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
*contact: immarespond at gmail do... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/procedures/hwp/lib/pstates_pgpe.H $ ... |
<commit_before>
// STL includes
#include <cstring>
#include <cstdio>
#include <iostream>
#include <cerrno>
// Linux includes
#include <fcntl.h>
#include <sys/ioctl.h>
// Local Hyperion includes
#include "ProviderSpi.h"
#include <utils/Logger.h>
ProviderSpi::ProviderSpi(const Json::Value &deviceConfig)
: LedDevice(... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>#include "ArgParse.h"
using namespace std;
ArgParse::ArgParse(int argc, char* argv[])
{
for(int a=1;a<argc;++a){
if(argv[a][0]=='-'){
string in(argv[a]),trig,val;
trig=in.substr(1,in.find('='));
if(in.find('=')==string::npos) {
val='1';//t... |
<commit_before>#include "rubymotion.h"
VALUE rb_cDirector = Qnil;
static VALUE mc_director_instance = Qnil;
static VALUE
director_instance(VALUE rcv, SEL sel)
{
if (mc_director_instance == Qnil) {
VALUE obj = rb_class_wrap_new(
(void *)cocos2d::Director::getInstance(), rb_cDirector);
mc_director_instance = rb... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/browser.h"
#include <stdlib.h>
#include "atom/browser/native_window.h"
#include "atom/browser/window_list.h"
#include "atom/common/atom_version.... |
<commit_before>// @(#)root/hist:$Name: $:$Id: TF3.cxx,v 1.4 2002/05/18 08:21:59 brun Exp $
// Author: Rene Brun 27/10/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<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
* "Li... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 later version.
cpp-ethereum is dis... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>//Copyright (c) 2011 Krishna Rajendran <krishna@emptybox.org>.
//Licensed under an MIT/X11 license. See LICENSE file for details.
extern "C" {
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
}
#include "eldb.hpp"
#include "eldb_gtk_globalkeybind.hpp"
namespace elgtk {
struct KeyList;
struct ValueLis... |
<commit_before>#include "externaleditors.h"
#include "qt4project.h"
#include "qt4projectmanagerconstants.h"
#include "qtversionmanager.h"
#include <utils/synchronousprocess.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
#include <designer/designerconstants.h>
#include <QtCore/QPr... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/* This file is part of the Vc library. {{{
Copyright (C) 2013 Matthias Kretz <kretz@kde.org>
Vc is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the... |
<commit_before>#include "utility.hpp"
#include "hog.pencil.h"
#include "HogDescriptor.h"
#include <opencv2/core/core.hpp>
#include <opencv2/ocl/ocl.hpp>
#include <pencil_runtime.h>
#include <chrono>
#include <random>
#include <array>
#define NUMBER_OF_CELLS 1
#define NUMBER_OF_BINS 8
#define GAUSSIAN_WEIGHTS 1
#defi... |
<commit_before>/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Yingdi Yu <yingdi@cs.ucla.edu>
* See COPYING for copyright and distribution information.
*/
// Only compile if ndn-cpp-config.h defines NDN_CPP_HAVE_OSX_SECUR... |
<commit_before>/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2010 Koen van de Sande
* Copyri... |
<commit_before>
#include "fetchURL.h"
void FetchURL::callExtension(const char * output, int outputSize, const char * function)
{};
void FetchURL::startGETThread(std::string function)
{};
void FetchURL::startPOSTThread(std::string function, std::string parameters)
{};
void FetchURL::fetchResultGET(std::string * functio... |
<commit_before>#include <random>
#include <algorithm>
#include <string>
#include <fstream>
#include <sstream>
#include <chrono>
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <getopt.h>
#include "eval.h"
#include "util.h"
void usage() {
int index = 0;
bch code(5, 0x25, 7);
std::cout << "--algorithm <n... |
<commit_before>/*
* Copyright (C) 2009-2010, 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.
*/
/// \file li... |
<commit_before>/*
Copyright 2015-2019 Igor Petrovic
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 or agreed to i... |
<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
// "Lic... |
<commit_before>#include <ctime>
#include <iostream>
#include <cstdlib>
#include <iterator>
#include <dariadb.h>
#include <utils/fs.h>
#include <ctime>
#include <limits>
#include <cmath>
#include <chrono>
#include <thread>
#include <random>
#include <cstdlib>
#include <atomic>
#include <cassert>
class BenchCallback :p... |
<commit_before>#include <cstdlib>
#include <ctime>
#include <iostream>
#include <iterator>
#include "bench_common.h"
#include <dariadb.h>
#include <algorithm>
#include <atomic>
#include <chrono>
#include <cmath>
#include <ctime>
#include <limits>
#include <random>
#include <storage/capacitor.h>
#include <thread>
#incl... |
<commit_before>#include <Halide.h>
using namespace Halide;
Var x, y;
// Downsample with a 1 3 3 1 filter
Func downsample(Func f) {
Func downx, downy;
downx(x, y, _) = (f(2*x-1, y, _) + 3.0f * (f(2*x, y, _) + f(2*x+1, y, _)) + f(2*x+2, y, _)) / 8.0f;
downy(x, y, _) = (downx(x, 2*y-1, _) + 3.0f * (downx(x,... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* 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... |
<commit_before>// Copyright 2014 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 "apps/ui/views/native_app_window_views.h"
#include "apps/app_window.h"
#include "base/threading/sequenced_worker_pool.h"
#include... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>/*
* dataset3d.cpp
*
* Created on: May 9, 2012
* Author: schurade
*/
#include "../datastore.h"
#include "../../gui/gl/evrenderer.h"
#include "dataset3d.h"
Dataset3D::Dataset3D( QString filename, QVector<QVector3D> data, nifti_image* header ) :
DatasetNifti( filename, FNDT_NIFTI_VECT... |
<commit_before>#include "nano.h"
#include "class.h"
#include "measure.hpp"
#include "text/table.h"
#include "accumulator.h"
#include "text/cmdline.h"
#include "math/clamp.hpp"
#include "math/random.hpp"
#include "math/numeric.hpp"
#include "tensor/numeric.hpp"
#include "measure_and_log.hpp"
#include "layers/make_layers... |
<commit_before>/*
This file is part of the clazy static checker.
Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
Author: Sérgio Martins <sergio.martins@kdab.com>
Copyright (C) 2015 Sergio Martins <smartins@kde.org>
This library is free software; you can redistribute it... |
<commit_before>/*
Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open
Source Software License
Copyright (c) 2008 Ames Laboratory Iowa State University
All rights reserved.
Redistribution and use of HOOMD, in source and binary forms, with or
without modification, are permitted, provided that the following
... |
<commit_before>#include "../../local/include/gtest/gtest.h"
#include <vector>
// uncomment to use threads
//#define THREADED
#ifdef THREADED
// Tron
//#define NUM_CORES 4
// Clue
#define NUM_CORES 12
#include <thread>
#include <future>
#endif // THREADED
#include "genetic.h"
#include "genetic_circuit.h"
#includ... |
<commit_before>
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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 Softwar... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2012 Litecoin Developers
// Copyright (c) 2013 GoldCoin (GLD) Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include... |
<commit_before>/*************************************************************************
*
* $RCSfile: fuconstr.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2004-10-12 13:11:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before><commit_msg>sd: fix --disable-sdremote: SetImpressMode() not static<commit_after><|endoftext|> |
<commit_before>#include <sstmac/hardware/packet_flow/packet_flow_sender.h>
#include <sstmac/hardware/router/valiant_routing.h>
#include <sstmac/hardware/network/network_message.h>
#include <sstmac/common/stats/stat_spyplot.h>
#include <sprockit/output.h>
namespace sstmac {
namespace hw {
packet_flow_sender::packet_fl... |
<commit_before>#include <core/arch/Cpu.h>
#include "PlatformUnifiedInterface//ExecMemory/ClearCacheTool.h"
#include "PlatformUnifiedInterface/Platform.h"
#include <unistd.h>
#ifdef __APPLE__
#include <mach-o/dyld.h>
#include <mach/mach.h>
#include <mach/vm_map.h>
#include <sys/mman.h>
#include "UserMode/UnifiedInter... |
<commit_before>#pragma once
#include "main/asdf_defs.h"
DIAGNOSTIC_PUSH
DIAGNOSTIC_IGNORE(-Wsign-conversion)
DIAGNOSTIC_IGNORE(-Wshorten-64-to-32)
DIAGNOSTIC_IGNORE(-Wsign-conversion)
DIAGNOSTIC_IGNORE(-Wdouble-promotion)
#include "cJSON/cJSON.h"
DIAGNOSTIC_POP
#include <array>
DIAGNOSTIC_PUSH
DIAGNOSTIC_IGNORE(-Wu... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief infrastructure for query optimizer
///
/// @file arangod/Aql/Optimizer.cpp
///
/// DISCLAIMER
///
/// Copyright 2010-2014 triagens GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the... |
<commit_before>#ifndef _DLLPARSER_H
#define _DLLPARSER_H
#include <dlfcn.h>
#include <iostream>
#include <string>
#include <unordered_map>
#include <functional>
#include <memory>
class DllParser
{
public:
~DllParser()
{
unload();
}
bool load(const std::string& dllFilePath)
{
m_han... |
<commit_before>#ifndef EPETRA_TESTABLEWRAPPERS_H
#define EPETRA_TESTABLEWRAPPERS_H
#include "src/Epetra_SerialDenseMatrixWrapper.hpp"
#include "src/Epetra_MultiVectorWrapper.hpp"
#include "src/Epetra_OperatorWrapper.hpp"
#include "Epetra_SerialDenseMatrix.h"
#include "Epetra_MultiVector.h"
#include "Epetra_Operator.h... |
<commit_before>#include "Halide.h"
#include <stdio.h>
#include <algorithm>
using namespace Halide;
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT
#endif
// Use an extern stage to do a sort
extern "C" DLLEXPORT int sort_buffer(buffer_t *in, buffer_t *out) {
if (!in->host) {
... |
<commit_before>#if defined(TEMPEST_BUILD_VULKAN)
#include "vswapchain.h"
#include <Tempest/SystemApi>
#include "vdevice.h"
using namespace Tempest;
using namespace Tempest::Detail;
VSwapchain::FenceList::FenceList(VkDevice dev, uint32_t cnt)
:dev(dev), size(0) {
aquire .reset(new VkFence[cnt]);
present.reset... |
<commit_before>#include "config.h"
#ifdef CONFIG_XFREETYPE
#include "ypaint.h"
#include "yapp.h"
#include "ystring.h"
#include "intl.h"
/******************************************************************************/
class YXftFont : public YFont {
public:
#ifdef CONFIG_I18N
typedef class YUnicodeString string_... |
<commit_before>/*
Copyright 2013 SINTEF ICT, Applied Mathematics.
*/
#include "EquelleRuntimeCUDA.hpp"
#include "CollOfScalar.hpp"
#include "DeviceGrid.hpp"
#include "CollOfIndices.hpp"
#include "CollOfVector.hpp"
#include "wrapEquelleRuntime.hpp"
#include "LinearSolver.hpp"
#include <opm/core/utility/ErrorMacros.... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before># pragma once
# include <Siv3D.hpp>
namespace asc
{
using namespace s3d;
class MessageManager
{
private:
Stopwatch m_stopwatch;
String m_name;
String m_text;
uint32 m_charCount;
public:
MessageManager() :
m_charCount(0U)
{
m_stopwatch.start();
m_stopwatch.pause();
}
... |
<commit_before>/**
* \file
* \brief SignalCatchingOperationsTestCase class implementation
*
* \author Copyright (C) 2015-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... |
<commit_before>#include <gtest/gtest.h>
#include <chrono>
#ifdef _WIN32
#define _WINSOCKAPI_ // to include Winsock2.h instead of Winsock.h from windows.h
#include <winsock2.h>
#if defined(__GNUC__) || defined(__MINGW32__)
extern "C" {
WINSOCK_API_LINKAGE INT WSAAPI inet_pton( INT Family, PCSTR pszAddrString, PVO... |
<commit_before>#include <iostream>
#include "time.h"
#include <string>
#include "novoht.h"
#include <cstdlib>
#include <cstddef>
#include <sys/time.h>
//#include "meta.pb.h"
#define KEY_LEN 32
#define VAL_LEN 128
using namespace std;
struct timeval tp;
double diffclock(clock_t clock1, clock_t clock2){
double clock_... |
<commit_before>// NOLINT(namespace-envoy)
#ifndef WIN32
#include "unistd.h"
#endif
#include <cerrno>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <limits>
#include <string>
#ifndef NULL_PLUGIN
#include "proxy_wasm_intrinsics.h"
#else
#include "include/proxy-wasm/null_plugin.h"
#endif
START_WASM_PLUG... |
<commit_before>/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2008, 2009 Ames Laboratory
Iowa State University and The Regents of the University of Michigan All rights
reserved.
HOOMD-blue may contain modifications ("Contributions") provid... |
<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>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
#include "TestSscCommon.h"
#include <adios2.h>
#include <gtest/gtest.h>
#include <mpi.h>
#include <numeric>
#include <thread>
using namespace adios2;
int mpiRank = 0;
int mpiSi... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2020 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>#include <QtCore/QDebug>
#include <QtCore/QTimer>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <QDateTime>
#include <QString>
#include <QVariantMap>
#include <TelepathyQt4/Account>
#include <TelepathyQt4/AccountManager>
#include <TelepathyQt4/Debug>
#include <TelepathyQt4/PendingAccount>
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
<<<<<<< HEAD
// Copyright (c) 2019, Vinitha Ranganeni, Brian Lee
=======
// Copyright (c) 2019, Brian Lee, Vinitha Ranganeni
>>>>>>> a7fffa012325937d70466fdf4b5b0938ff1a8d82
// All rights reserved.
//
// Redistribution and u... |
<commit_before><commit_msg>watchdog for stalled queued checking torrents<commit_after><|endoftext|> |
<commit_before>
#include <unistd.h>
#include <pthread.h> // pthread_create
#include <iostream>
#include <string.h> // strerror
using namespace std;
void* run(void*); // 线程函数
void* thread1_run(void* arg);
void* thread2_run(void* arg);
void printids(char const* s);
// 互斥变量
pthread_mutex_t mqlock = PTHREAD_MUTEX_INITIA... |
<commit_before>/*******************************************************************************
* thrill/api/size.hpp
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2015 Matthias Stumpp <mstumpp@gmail.com>
* Copyright (C) 2015 Sebastian Lamm <seba.lamm@gmail.com>
*
* All rights reserve... |
<commit_before>#include "logging.h"
#ifndef Q_OS_WIN32
#include <syslog.h>
#endif
#include <QByteArray>
#include <QString>
#ifdef Q_OS_WIN32
#include <stdio.h>
#include <stdarg.h>
void syslog(int priority, const char *format, ...){
Q_UNUSED(priority);
va_list arg_list;
va_start(arg_list, format);
... |
<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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.