text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2022 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 applicable law... |
<commit_before>#pragma once
#ifndef DELEGATE_HPP
# define DELEGATE_HPP
#include <cassert>
#include <bitset>
#include <memory>
#include <new>
#include <type_traits>
#include <utility>
#include "lightptr.hpp"
namespace
{
template<typename T> constexpr const T &as_const(T &t) { return t; }
template <typename T... |
<commit_before>// Copyright (c) 2017 Vittorio Romeo
// MIT License | https://opensource.org/licenses/MIT
// http://vittorioromeo.info | vittorio.romeo@outlook.com
#pragma once
#include "../meta/forward_like.hpp"
#include "../meta/replace_all.hpp"
#include "../meta/y_combinator.hpp"
#include "../utils/fwd.hpp"
#inclu... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <ctime>
#include <cstdio>
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/calib3d/calib3d.hpp"
//#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/objdetect/objd... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before><commit_msg>Fixed test failure after 54314083e16c41082a81520ec44c7aaae44989c7.<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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 ... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/hwpf/fapi2/include/utils.H $ ... |
<commit_before>#include "dynet/nodes.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
#include "dynet/rnn.h"
#include "dynet/gru.h"
#include "dynet/lstm.h"
#include "dynet/fast-lstm.h"
#include "dynet/dict.h"
#include "dynet/expr.h"
#include <sys/stat.h>
#include <sys/types.h>
#include... |
<commit_before>/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include "util/name_map.h"
#include "kernel/free_vars.h"
#include "kernel/for_each_fn.h"
#include "library/trace.h"
#includ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageAccumulate.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to C. Charles Law who developed this class.
Copyright (c) 1993-2001 Ken Mar... |
<commit_before>/**
* \file
* Copyright 2014-2015 Benjamin Worpitz
*
* This file is part of alpaka.
*
* alpaka 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 License, or
* (at yo... |
<commit_before>/**
* \file
* Copyright 2014-2015 Benjamin Worpitz
*
* This file is part of alpaka.
*
* alpaka 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 License, or
* (at yo... |
<commit_before>/**
* These codes are licensed under the Unlicense.
* http://unlicense.org
*/
#ifndef COMMATA_GUARD_E8F031F6_10D8_4585_9012_CFADC2F95BA7
#define COMMATA_GUARD_E8F031F6_10D8_4585_9012_CFADC2F95BA7
#include <cassert>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <... |
<commit_before>/**
* These codes are licensed under the Unlicense.
* http://unlicense.org
*/
#ifndef COMMATA_GUARD_E8F031F6_10D8_4585_9012_CFADC2F95BA7
#define COMMATA_GUARD_E8F031F6_10D8_4585_9012_CFADC2F95BA7
#include <cassert>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: include/eos/render/Texture.hpp
*
* Copyright 2017 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<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>#include <get_property_value.h>
boost::python::object PyGetValue::GetObject()
{
return _obj;
}
boost::python::object PyGetValue::GetInteger( const IAAFPropertyValueSP& spPropVal, IAAFTypeDefIntSP& spTypeDef)
{
AxTypeDefInt axIntDef(spTypeDef);
AxPropertyValue axValue(spPropVal);
aafUInt... |
<commit_before>//
// Copyright (c) 2016 CNRS
// Author: NMansard from Florent Lamiraux
//
//
// This file is part of hpp-pinocchio
// hpp-pinocchio 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, eith... |
<commit_before>/**
* @file iutility.cpp
* @brief utility interface class
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 9. 6
* @details utility interface class
*/
#ifndef _COSSB_IUTILITY_HPP_
#define _COSSB_IUTILITY_HPP_
#include <sys/stat.h>
namespace cossb {
namespace interface {
class i... |
<commit_before>#pragma once
#include <atomic>
#include <string>
#include <vector>
#include <memory>
#include <glm/glm.hpp>
#include <mos/gfx/texture.hpp>
namespace mos::gfx {
class Texture_2D;
using Shared_texture_2D = std::shared_ptr<Texture_2D>;
/** Texture in two dimension. Contains chars as data. */
class Textu... |
<commit_before>#pragma once
#include <utility>
#include <type_traits>
#include "any.hpp"
#include "meta/type_list.hpp"
#include "meta/free_function_deduction.hpp"
namespace shadow
{
typedef any (*free_function_binding_signature)(any*);
//////////////////////////////////////////////////////////////////////////////... |
<commit_before>#pragma once
#include <vector>
#include <memory>
#include <valijson/constraints/constraint.hpp>
#include <valijson/internal/optional.hpp>
#include <valijson/exceptions.hpp>
namespace valijson {
/**
* Represents a sub-schema within a JSON Schema
*
* While all JSON Schemas have at least one sub-sch... |
<commit_before>// Time: O(n)
// Space: O(n)
class Solution {
public:
bool canCross(vector<int>& stones) {
unordered_map<int, int> lookup;
for (int i = 0; i < stones.size(); ++i) {
lookup[stones[i]] = i;
}
vector<bool> dp(stones.size());
dp[0] = true;
fo... |
<commit_before>// Time: O(1), per operation
// Space: O(k), k is the capacity of cache
class LFUCache {
public:
LFUCache(int capacity) : capa_(capacity), size_(0) {
}
int get(int key) {
if (!key_to_nodeit_.count(key)) {
return -1;
}
auto new_node = *key_to... |
<commit_before>#pragma once
#include <algorithm>
#include <string>
namespace cu
{
/// Tells whether the @c txt string starts with the @c start string.
template <std::size_t N>
bool startsWith( const std::string & txt, const char (&start)[N] )
{
// The actual length of the `start` string is N-1, because of the
/... |
<commit_before>// See LICENSE file for copyright and license details.
#include "core/v2i.hpp"
#include <cassert>
#include <cstdlib>
#include <cmath>
V2i::V2i(int x, int y)
: mX(x),
mY(y)
{
}
V2i::V2i()
: mX(0),
mY(0)
{
}
V2i::~V2i() {
}
int V2i::x() const {
return mX;
}
int V2i::y() const {
retur... |
<commit_before>/**
* @file llchicletbar.cpp
* @brief LLChicletBar class implementation
*
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2011, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms... |
<commit_before>#include <cap/resistor_capacitor.h>
#ifdef WITH_DEAL_II
#include <cap/supercapacitor.h>
#endif
namespace cap {
EnergyStorageDeviceBuilder::
~EnergyStorageDeviceBuilder() = default;
void
EnergyStorageDeviceBuilder::
register_energy_storage_device(std::string const & type, EnergyStorageDeviceBuilder... |
<commit_before>/*************************************************************************
*
* $RCSfile: fmteiro.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-01-05 15:49:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: redline.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:06:31 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: splargs.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2005-10-05 13:19:01 $
*
* The Contents of this file are made a... |
<commit_before>#ifdef _DEBUG
#include "testdatapath.h"
#endif
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
using namespace std;
//画像表示用関数
int showImage(const cv::Mat& image, int wait = 0){
static const string wname("EBookChecker");
cv::imshow(wname, image);
return cv::waitKey(wait);
}
c... |
<commit_before>////////////////////////////////////////////////////////////////////////
// This file is part of Grappa, a system for scaling irregular
// applications on commodity clusters.
// Copyright (C) 2010-2014 University of Washington and Battelle
// Memorial Institute. University of Washington authorizes use ... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/* test.c
*
* Test program: Various info about DOS
* (C) 2009-2012 Jonathan Campbell.
* Hackipedia DOS library.
*
* This code is licensed under the LGPL.
* <insert LGPL legal text here>
*/
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <stdlib.h>
#includ... |
<commit_before>#ifndef JARNGREIPR_GEOMETRY_CENTER
#define JARNGREIPR_GEOMETRY_CENTER
#include <jarngreipr/model/Bead.hpp>
#include <jarngreipr/io/PDBAtom.hpp>
#include <jarngreipr/io/PDBResidue.hpp>
#include <jarngreipr/io/PDBChain.hpp>
#include <mjolnir/util/scalar_type_of.hpp>
namespace mjolnir
{
template<typename ... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. 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>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name: listviewfile.cpp
// Purpose: Implementation of class 'wxExListViewFile'
// Author: Anton van Wezenbeek
// Created: 2010-01-29
// RCS-ID: $Id$
// Copyright: (c) 2010 Anton van Wezenbeek
///////////////... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inspagob.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: kz $ $Date: 2006-12-12 17:05:49 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: assclass.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:22:10 $
*
* The Contents of this file are made ... |
<commit_before>// -*- Mode:C++ -*-
/**************************************************************************************************/
/* */
/* Copyright (C) 2014-2015 University of Hull ... |
<commit_before>/**
* @file State.cpp
*
* @brief Implementation file for State class.
*
* @author Machine Learning Team 2015-2016
* @date March, 2016
*/
#include "State.h"
#include <cmath>
/**
* Creates a state object initialised with starting values of angle of robot
* based on encoder value, ... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use ... |
<commit_before>/***************************************************************************
* @file order_statistic_tree.hpp
* @author Alan.W
* @date 20 July 2014
* @remark Implementation of CLRS algorithms, using C++ templates.
*************************************************************... |
<commit_before>// This file is part of playd.
// playd is licensed under the MIT licence: see LICENSE.txt.
/**
* @file
* Implementation of the Mp3AudioSource class.
* @see audio/audio_source.hpp
*/
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#inclu... |
<commit_before>/** @file
@brief Implementation
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, 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 ... |
<commit_before>#include <iostream>
#include <fstream>
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/regex.h>
#include <boost/algorithm/string/regex.hpp>
#include <bitset>
#include <regex>
using boost::asio::ip::tcp;
using namespace std;
class Client
{
public:
//public client ent... |
<commit_before>/**
* Copyright (c) Sjors Gielen, 2010
* See LICENSE for license.
*/
#include "database.h"
#include "config.h"
#include <QtCore/QVariant>
#include <QtCore/QDebug>
#include <QtSql/QSqlQuery>
#include <QtSql/QSqlError>
#include <QtSql/QSqlRecord>
/**
* @brief Constructor.
*/
Database::Database( cons... |
<commit_before>/*****************************************************************************
* intf_beos.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: Interface.cpp,v 1.13 2003/05/30 17:30:54 titer Exp $
*
* Auth... |
<commit_before>#include <QDebug>
#include "Utils/QRunTimeError.hpp"
#include "Crypto/CryptoFactory.hpp"
#include "ShuffleBlamer.hpp"
using Dissent::Utils::QRunTimeError;
using Dissent::Crypto::CryptoFactory;
using Dissent::Crypto::OnionEncryptor;
namespace Dissent {
namespace Anonymity {
ShuffleBlamer::ShuffleBla... |
<commit_before>//
// geometry.cpp
// GLAMER
//
// Created by bmetcalf on 7/24/14.
//
//
#include "geometry.h"
#include "Tree.h"
#include "point.h"
/// output cartisian coordinates of the point
void Utilities::Geometry::SphericalPoint::sphericalTOcartisian(PosType x[]) const{
x[0] = r*cos(theta)*cos(phi);
x[1] ... |
<commit_before>#include "ResourceList.hpp"
#include <Engine/Geometry/RiggedModel.hpp>
#include <Engine/Geometry/StaticModel.hpp>
#include <Engine/Texture/Texture2D.hpp>
#include <Engine/Audio/SoundBuffer.hpp>
#include <Engine/Hymn.hpp>
#include <Engine/Entity/World.hpp>
#include <Engine/Entity/Entity.hpp>
#include <i... |
<commit_before>#include "stdafx.h"
#include "Thread.h"
#if defined( __WINDOWS__ )
#include <Tlhelp32.h>
#include <time.h>
#include <dbghelp.h>
#include <stdio.h>
#include <tchar.h>
#define DUMP_SIZE_MAX 8000 //max size of our dump
#define CALL_TRACE_MAX ( ( DUMP_SIZE_MAX - 2000 ) / ( MAX_PATH + 40 ) )... |
<commit_before>#include "Managers.hpp"
#include "ResourceManager.hpp"
#include "RenderManager.hpp"
#include "ParticleManager.hpp"
#include "PhysicsManager.hpp"
#include "SoundManager.hpp"
#include "ScriptManager.hpp"
#include "DebugDrawingManager.hpp"
#include "ProfilingManager.hpp"
#include "../Component/SuperCompon... |
<commit_before>/**
KDE Certificate Manager
by Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>, Jesper
K. Pedersen <blackie@klaralvdalens-datakonsult.se> and
Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
Copyright (C) 2002 by Klarlvdalens Datakonsult AB
This software is licensed under t... |
<commit_before>
/*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* VR Juggler is (C) Copyright 1998, 1999, 2000, 2001 by Iowa State University
*
* Original Authors:
* Allen Bierbaum, Christopher Just,
* Patrick Hartling, Kevin Meinert,
* Carolina Cruz-Neira, Albert Baker
*... |
<commit_before><commit_msg>remove order dependence on simulation_world_service_test<commit_after><|endoftext|> |
<commit_before>#ifndef __LARGE_BUF_HPP__
#define __LARGE_BUF_HPP__
#include "buffer_cache/buffer_cache.hpp"
#include "config/args.hpp"
class large_buf_t;
struct large_buf_available_callback_t :
public intrusive_list_node_t<large_buf_available_callback_t> {
virtual ~large_buf_available_callback_t() {}
vir... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2008 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before><commit_msg>Change to generate BCE particles from ANCF cable elements faster<commit_after><|endoftext|> |
<commit_before>//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifdef ARCUS
#include <Arcus/Error.h> //To process error codes.
#include "Listener.h"
#include "../utils/logoutput.h"
namespace cura
{
void Listener::stateChanged(Arcus::SocketState::SocketState)
{
... |
<commit_before>#include "condor_common.h"
#include "condor_debug.h"
#include "condor_q.h"
#include "condor_attributes.h"
#include "condor_qmgr.h"
// specify keyword lists; N.B. The order should follow from the category
// enumerations in the .h file
static const char *intKeywords[] =
{
ATTR_CLUSTER_ID,
ATTR_PROC_ID... |
<commit_before>/*
* ArrayTest.cpp
*
* Created on: Feb 28, 2015
* Author: hugo
*/
#include <cmath>
#include <ctime>
#include <iostream>
#include "../core/malgorithm.hpp"
#include "../core/matrix.hpp"
#include "../core/matrixworker.hpp"
#include "../core/operator.hpp"
#include "../core/primitivevector.hpp"
... |
<commit_before>/*
*
* Copyright 2015 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>/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>#include "catch.hpp"
#include "test/base_test_fixture.h"
#include <cstdio>
#include <cstdlib>
namespace
{
struct odbc_fixture : public base_test_fixture
{
odbc_fixture()
: base_test_fixture(/* connecting string from NANODBC_TEST_CONNSTR environment variable)*/)
{
... |
<commit_before>/*
Test wrappers around POSIX functions.
Copyright (c) 2012-2014, Victor Zverovich
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>#include "libtorrent/upnp.hpp"
#include "libtorrent/socket.hpp"
#include "libtorrent/connection_queue.hpp"
#include <boost/bind.hpp>
#include <boost/ref.hpp>
#include <boost/intrusive_ptr.hpp>
using namespace libtorrent;
void callback(int tcp, int udp, std::string const& err)
{
std::cerr << "tcp: " <<... |
<commit_before>/**
* \file
* \brief wasteTime() implementation
*
* \author Copyright (C) 2014 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
* distributed ... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by t... |
<commit_before>#include <iostream>
#include "format.hpp"
static uint32_t get_words(const char* src, char sch = ' ') noexcept
{
if(src == nullptr) return 0;
uint32_t n = 0;
char bc = sch;
bool bsc = false;
while(1) {
char ch = *src++;
if(ch == '\\') {
bsc = true;
... |
<commit_before>// $Id: NaN_Test.cpp,v 1.1 2004/11/06 00:30:12 othman Exp $
// Test that verifies the MaRC::NaN constant is actually
// "Not-A-Number".
#include <MaRC/NaN.h>
#include <cmath>
int
main ()
{
return (std::isnan (MaRC::NaN) ? 0 : -1);
}
<commit_msg>Removed old CVS $ entries and email addresses.<commit_... |
<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 "content/plugin/plugin_channel.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/process/process_handle... |
<commit_before>// Copyright (c) 2017 Manfeel
// manfeel@foxmail.com
#include <libsigrok4DSL/libsigrok.h>
#include <algorithm> //min/max
#include <iostream>
#include <Pothos/Framework.hpp>
#include <Poco/Logger.h>
#include <chrono>
#include <random>
#include "devicemanager.h"
#include "sigsession.h"
#include "blockingq... |
<commit_before>// $Id$
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQExpressionWidget.cpp,v $
// $Revision: 1.22 $
// $Name: $
// $Author: shoops $
// $Date: 2008/04/23 17:42:50 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Propertie... |
<commit_before>/***************************************************************************
* Copyright (c) 2010 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before><commit_msg>PVS: V1016 Value is out of range of enum values. This causes unspecified or undefined behavior.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/unit_test.h"
#include <stdio.h>
#include "bin/builtin.h"
#include "bin/da... |
<commit_before>//*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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) 2022 The Orbit 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 "HistogramWidget.h"
#include <absl/strings/str_cat.h>
#include <absl/strings/str_format.h>
#include <qnamespace.h>
#include <qpo... |
<commit_before>
#ifndef RESOURCE_PACKER_INTERNAL_HPP
#define RESOURCE_PACKER_INTERNAL_HPP
#include <iostream>
namespace RP
{
bool isLittleEndian();
template <typename T>
void writeLittleEndian(std::ofstream& o, T data)
{
union
{
T i;
char c[sizeof(T)];
... |
<commit_before>/*
* MIT License
*
* Copyright (c) 2016 xiongziliang <771730766@qq.com>
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "So... |
<commit_before>/// @file wlog_tools.cpp
/// @brief Well Logs manipulation algorithms
/// @author uentity
/// @version 1.0
/// @date 27.02.2014
/// @copyright This source code is released under the terms of
/// the BSD License. See LICENSE for more details.
#ifndef WLOG_TOOLS_TMEEHO84
#define WLOG_TOOLS_TMEE... |
<commit_before>/*
* Distributed under the MIT License (See accompanying file /LICENSE )
*/
#include "logger.hpp"
#include <memory>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_sinks.h>
#include <spdlog/sinks/dist_sink.h>
#include <spdlog/fmt/ostr.h>
#ifdef _WIN32
#include <spdlog/sinks/wincolor_sink.h>... |
<commit_before>#include "PhysicsService.hpp"
namespace Core
{
PhysicsService::PhysicsService(): m_objectList() {};
PObject* PhysicsService::CreateObject(const PShape* p_shape)
{
m_objectList.push_back(new Core::PObject(p_shape));
list<PObject*>::iterator it = m_objectList.end();
it--;
(*it)->m_iterator = i... |
<commit_before>#define DEBUG 1
/**
* File : C.cpp
* Author : Kazune Takahashi
* Created : 2019-3-30 21:04:45
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#in... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/* This file is part of Zanshin
Copyright 2014 Kevin Ottens <ervin@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License or (at your ... |
<commit_before>#ifndef DICE_RANDOM_VARIABLE_DECOMPOSITION_HPP_
#define DICE_RANDOM_VARIABLE_DECOMPOSITION_HPP_
#include <vector>
#include <cassert>
#include <unordered_set>
#include <unordered_map>
#include "random_variable.hpp"
namespace dice
{
// Decomposition should treat given variable as always independent.... |
<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://www.... |
<commit_before>/**
* ActionServer interface to the control_msgs/GripperCommand action
* for a Robotiq S-Model device
*/
#include "robotiq_action_server/robotiq_s_model_action_server.h"
// To keep the fully qualified names managable
//Anonymous namespaces are file local -> sort of like global static objects
namesp... |
<commit_before>#ifndef __STAN__AGRAD__FWD__MATRIX__TO_FVAR_HPP__
#define __STAN__AGRAD__FWD__MATRIX__TO_FVAR_HPP__
#include <vector>
#include <stan/math/matrix/Eigen.hpp>
#include <stan/math/matrix/typedefs.hpp>
#include <stan/agrad/fwd/fvar.hpp>
#include <stan/agrad/fwd/matrix/typedefs.hpp>
namespace stan {
namesp... |
<commit_before>#include "textendanalyzer.h"
#include "streamindexer.h"
#include "inputstreamreader.h"
#include "indexwriter.h"
using namespace jstreams;
char
TextEndAnalyzer::analyze(std::string filename, jstreams::InputStream *in,
int depth, StreamIndexer *indexer, Indexable* i) {
// very simple algorithm... |
<commit_before>
#include "swganh/command/command_service.h"
#include <cctype>
#include <cppconn/exception.h>
#include <cppconn/connection.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
#include <cppconn/sqlstring.h>
#include "anh/logger.h"
#include "anh/crc.h... |
<commit_before>#include "LIBGPU.H"
#define GL_GLEXT_PROTOTYPES 1
#include <GL/glew.h>
#include <SDL.h>
#include <SDL_opengl.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <LIBETC.H>
#include "EMULATOR.H"
#include "EMULATOR_GLOBALS.H"
#define POLY_TAG_USE_ADDR (0)
#define 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/common/child_thread.h"
#include "base/command_line.h"
#include "chrome/common/child_process.h"
#include "chrome/commo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.