text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#i... |
<commit_before>//===-- XBeeSyncServer.cpp - XBee Syncing for GameModel ------------ c++ --===//
//
// UWH Timer
//
// This file is distributed under the BSD 3-Clause License.
// See LICENSE.TXT for details.
//
//===--------------------------------------------... |
<commit_before>#include "Plater/Plate2D.hpp"
// libslic3r includes
#include "Geometry.hpp"
#include "Point.hpp"
#include "Log.hpp"
#include "ClipperUtils.hpp"
// wx includes
#include <wx/colour.h>
#include <wx/dcbuffer.h>
namespace Slic3r { namespace GUI {
Plate2D::Plate2D(wxWindow* parent, const wxSize& size, std:... |
<commit_before>#include "Plater/Plate2D.hpp"
// libslic3r includes
#include "Geometry.hpp"
#include "Log.hpp"
// wx includes
#include <wx/colour.h>
#include <wx/dcbuffer.h>
namespace Slic3r { namespace GUI {
Plate2D::Plate2D(wxWindow* parent, const wxSize& size, std::vector<Plater2DObject>& _objects, std::shared_pt... |
<commit_before>/*
* Forces_PS.cpp
*
* Created on: Oct 6, 2016
* Author: isivkov
*/
#include "Forces_PS.h"
//#include "../Beta_gradient/Beta_projectors_gradient.h"
#include "../k_set.h"
namespace sirius
{
//---------------------------------------------------------------
//--------------------------------... |
<commit_before>#include "scalyc.h"
using namespace scaly;
namespace scaly {
extern __thread _Page* __CurrentPage;
extern __thread _Task* __CurrentTask;
}
int main(int argc, char** argv) {
// Allocate the root page for the main thread
_Page* page = 0;
posix_memalign((void**)&page, _pageSize, _pageSize * _... |
<commit_before>// Copyright 2017-2019 Zuse Institute Berlin
//
// 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
//
// Unles... |
<commit_before>//
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Mon Aug 17 02:39:28 PDT 2015
// Last Modified: Mon Aug 17 02:39:32 PDT 2015
// Filename: HumdrumFileContent.cpp
// URL: https://github.com/craigsapp/humlib/blob/master/src/HumdrumFileContent.cpp
// Syntax: ... |
<commit_before>/*************************************************************************
*
* $RCSfile: lngprops.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: tl $ $Date: 2001-05-08 12:42:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2012 Kouhei Sutou <kou@clear-code.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Licens... |
<commit_before>/*
* X509_DN
* (C) 1999-2007,2018 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/x509_dn.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/parsing.h>
#include <botan/internal/stl_util.h>
#include <botan/oids.h>
#include <ostr... |
<commit_before>// macro to make invariant mass plots
// for combinations of 2 muons with opposite charges,
// from root file "MUONtrackReco.root" containing the result of track reconstruction,
// generated by the macro "MUONrecoNtuple.C".
// Histograms are stored on the "MUONmassPlot.root" file.
// A model for macros u... |
<commit_before>#include "Logger.h"
#include <iostream>
//
// (plesslie)
// posix_time_zone is just parsing the "-XX" portion and subtracting that from UTC meaning
// that it isn't adjusting for daylight savings time. not sure how to fix that, and I don't
// really care for now.
//
Logger::Logger() : ss_(), tz_(new bo... |
<commit_before>#include <QDebug>
#include <QGuiApplication>
#include <QScreen>
#include "LinuxWindowCapture.h"
#include <xcb/xcb_icccm.h>
#define WM_WINDOW_INSTANCE "Hearthstone.exe"
#define WM_CLASS "Wine"
LinuxWindowCapture::LinuxWindowCapture()
: mWindow( 0 )
{
}
bool LinuxWindowCapture::WindowFound() {
if ... |
<commit_before>// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
/// \file
/// Implementation of ImageBufAlgo algorithms that merely move pixels
/// or channels between images without altering their ... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>/**
* @file AGLParameters.cpp
*
* @author <a href="mailto:scheunem@informatik.hu-berlin.de">Marcus Scheunemann</a>
*
*/
#include "AGLParameters.h"
#include "Tools/Debug/DebugParameterList.h"
AGLParameters::AGLParameters()
: ParameterList("AGLParameters")
{
//Deviation of the second pos... |
<commit_before>#include "src/Recorder.h"
#include "src/Display.h"
#include "src/RobotDetection/Calibrator.h"
#include "src/Settings.h"
#include <unistd.h> /* For getuid() */
#include <iostream> /* For ofstream */
#include <fstream> /* For ofstream */
using namespace std;
string exec_path;
Settings* settings = nullp... |
<commit_before>/*
SWARM
Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (... |
<commit_before>/*!
\file
\brief Basis for SDL library
*/
#ifndef SDL_HPP_uyqa3zsm
#define SDL_HPP_uyqa3zsm
// this must be defined before this is included
#ifdef HAVE_SDL_H
// Only on really old versions?
# include <SDL.h>
#else
// assume this because it's the normal way
# include <SDL/SDL.h>
#endif
#include <cass... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*
* AscEmu Framework based on ArcEmu MMORPG Server
* Copyright (c) 2014-2019 AscEmu Team <http://www.ascemu.org>
* Copyright (C) 2008-2012 ArcEmu Team <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Pu... |
<commit_before>#include<iostream>
#include<vector>
#include<cstdio>
#include<string>
#include<thread>
#include<dirent.h>
#include<chrono>
#include<sys/socket.h>
#include<netinet/in.h>
#include<sys/types.h>
#include<arpa/inet.h>
#include<fcntl.h>
#include<unistd.h>
#include<cstdlib>
#include<sys/wait.h>
#include<string.... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include <cassert>
#include <algorithm>
#include "proc.hh"
#include "io.hh"
namespace ten {
static std::atomic<uint64_t> taskidgen(0);
void tasksleep(uint64_t ms) {
task::cancellation_point cancellable;
this_proc()->sched().sleep(milliseconds(ms));
}
bool fdwait(int fd, int rw, uint64_t ms) {... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2004 David Faure <faure@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 version 2 as published by the Free Software Foundation.
This library is... |
<commit_before>#include "VisitorPrettyPrint.h"
#include "AstNode.h"
#include "Return.h"
#include "FunctionDeclaration.h"
#include "ClassDeclaration.h"
#include "Conditional.h"
#include "UnaryOperator.h"
#include "BinaryOperator.h"
#include "Assignment.h"
#include "MethodCall.h"
#include "Declaration.h"
#include "WhileL... |
<commit_before>#ifndef _SDD_DD_ALPHA_HH_
#define _SDD_DD_ALPHA_HH_
#include "sdd/dd/definition_fwd.hh"
#include "sdd/util/boost_flat_map_no_warnings.hh"
#include "sdd/util/hash.hh"
namespace sdd {
/*------------------------------------------------------------------------------------------------*/
/// @brief Represe... |
<commit_before>/********** tell emacs we use -*- c++ -*- style comments *******************
$Revision: 1.3 $ $Author: trey $ $Date: 2006-02-15 16:24:28 $
@file FRTDP.cc
@brief No brief
Copyright (c) 2006, Trey Smith. All rights reserved.
Redistribution and use in source and binary forms, with or witho... |
<commit_before>#include <uri>
#include <regex>
#include <iostream>
using namespace uri;
///////////////////////////////////////////////////////////////////////////////
const URI::Span_t URI::zero_span_;
///////////////////////////////////////////////////////////////////////////////
URI::URI(const char* uri)
: URI{... |
<commit_before>/* json11
*
* json11 is a tiny JSON library for C++11, providing JSON parsing and serialization.
*
* The core object provided by the library is json11::Json. A Json object represents any JSON
* value: null, bool, number (int or double), string (std::string), array (std::vector), or
* object (std::m... |
<commit_before>#include <stdio.h>
#include <algorithm>
#include "GIF.h"
#include "uint128.h"
#include "Ps2Const.h"
#include "Profiler.h"
#include "Log.h"
using namespace Framework;
using namespace std;
using namespace boost;
#ifdef PROFILE
#define PROFILE_GIFZONE "GIF"
#endif
CGIF::CGIF(CGSHandler*& gs, uint8* ram,... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>/**
* Copyright (c) 2016-2018 mvs developers
*
* This file is part of metaverse-explorer.
*
* metaverse-explorer 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 the Free Sof... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.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 ob... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#include "Vision/RTSVisionInfo.h"
#include "EngineUtils.h"
#include "Net/UnrealNetwork.h"
#include "RTSLog.h"
#include "RTSOwnerComponent.h"
#include "RTSPlayerController.h"
#include "RTSPlayerState.h"
#include "RTSTeamInfo.h"
#include "Vision/RTSVisionComponent.h"
#include "Vision/RTSVisionVolume.h"
... |
<commit_before>//=============================================================================
//File Name: OperatorControl.cpp
//Description: Handles driver controls for robot
//Author: FRC Team 3512, Spartatroniks
//=============================================================================
#include <Timer.h>
#inc... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlsignaturehelper.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2004-11-26 14:50:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*
* Copyright (c) 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 copyri... |
<commit_before>#ifndef LOGGER_HPP
#define LOGGER_HPP
/* Defines the Logger class
* which logs the contents
* of the program to disk.
*/
#include <fstream>
#include <string>
#include "./Exceptions.hpp"
class Logger
{
private:
std::string logs;
std::string logfile;
std::fstream logstream;
enum LOG_STAT... |
<commit_before>/*
* @file decision_stump_test.cpp
* @author Udit Saxena
*
* Test for Decision Stump
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/decision_stump/decision_stump.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
using namespace mlpack;
using namespa... |
<commit_before>// Copyright 2020 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.
#include <cassert>
#include <codecvt>
#include <fstream>
#include <iostream>
#include <iterator>
#include <locale>
#include <vector>
#include <f... |
<commit_before>#include "physics/n_body_system.hpp"
#include <cmath>
#include <functional>
#include <set>
#include <vector>
#include "geometry/named_quantities.hpp"
#include "geometry/r3_element.hpp"
#include "glog/logging.h"
#include "integrators/symplectic_partitioned_runge_kutta_integrator.hpp"
#include "quantiti... |
<commit_before>
// Copyright (c) 2012, 2013 Pierre MOULON.
// 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/.
// An example of a minimal, self-contained bundle adjust... |
<commit_before>#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <time.h>
#include <string>
#include <cassert>
#include "KDTree.hpp"
#include "MWC.hpp"
using namespace std;
//#define VERBOSE
void BenchMark(const int numPoints);
const Point& B... |
<commit_before>/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directo... |
<commit_before>#define FP_T double
#include "Units.hpp"
#include <iostream>
using namespace std;
int main()
{
using namespace SI;
typedef Value<Velocity> MpS;
typedef Value<Acceleration> MpSS;
typedef Value<Force> Newton;
auto sum = 100.0_m + 22.0_m;
MpS velocity = 5.0_m / 20._s;
Meter fall = v... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#include <tiffio.h>
#include <osg/Image>
#include <osg/Notify>
#include <osg/Geode>
#include <osg/GL>
#include <osgDB/Registry>
#include <stdio.h>
/****************************************************************************
*
* Follows is code extracted from the simage library. Original Authors:
... |
<commit_before>#include "elliptic_homogenizer.hh"
namespace Dune {
namespace Multiscale {
NULLFUNCTION(ZeroFunction)
//! the following class is comparable to a SecondSource-Class (some kind of -div G )
class CellSource : CommonTraits::FunctionBaseType {
private:
typedef typename CommonTraits::DiffusionType TensorT... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** ... |
<commit_before>#include <gst/gst.h>
#include "MediaPipeline.hpp"
#include <WebRtcEndpointImplFactory.hpp>
#include "WebRtcEndpointImpl.hpp"
#include <jsonrpc/JsonSerializer.hpp>
#include <KurentoException.hpp>
#include <gst/gst.h>
#include <boost/filesystem.hpp>
#include <IceCandidate.hpp>
#include <webrtcendpoint/kmsi... |
<commit_before>//..............................................................................
//
// This file is part of the AXL library.
//
// AXL is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloa... |
<commit_before>// Copyright 2010-2012 Google
// 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 a... |
<commit_before>/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
extern "C" {
#include <ovsdb_wrapper.h>
}
#include <ovsdb_object.h>
#include <ovsdb_entry.h>
#include <ovsdb_types.h>
using OVSDB::OvsdbEntry;
using OVSDB::OvsdbDBEntry;
using OVSDB::OvsdbObject;
using OVSDB::OvsdbDBObject;
OvsdbE... |
<commit_before>#pragma once
#include <mutex>
/*!
* Namespace indents were made intentionally to improve the readability.
*/
namespace blackhole {
namespace repository {
namespace config {
template<class T>
struct transformer_t;
template<class To>
class pa... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>#include "texture.h"
#include <cassert>
#include <stdexcept>
namespace possumwood {
Texture::Texture(const unsigned char* data, std::size_t width, std::size_t height, const Format& format) : m_id(0) {
int original_alignment;
glGetIntegerv(GL_UNPACK_ALIGNMENT, &original_alignment);
glPixelStorei(GL_... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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>// Main entry point for SDLGame
// 2016 createjump
// sorry about everything being convoluted, linker dosen't like it if i create a function
// it dosen't just not like it, it goes MENTAL! i swear, this programming thing is making me rant too much.
#include "stdafx.h"
#include "SDLGame.h"
#includ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "data_block_manager.hpp"
#include "log_serializer.hpp"
#include "utils.hpp"
#include "cpu_context.hpp"
#include "event_queue.hpp"
#include "arch/io.hpp"
void data_block_manager_t::start(fd_t fd) {
assert(state == state_unstarted);
dbfd = fd;
last_data_extent = extent_manager->... |
<commit_before>/*
Copyright 2016 Mitchell Young
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 o... |
<commit_before>
/*
* Copyright (c) 2012 Karl N. Redgate
*
* 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, m... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 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>#include "clang/Analysis/Til/Bytecode.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/Tooling.h"
#include "gtest/gtest.h"
#include "lsa/BuildCallGraph.h"
#include "til/TILCompare.h"
/// Registers the necessary matcher and runs the c... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "schedule_registry.h"
#include "schedule_registry_exception.h"
#incl... |
<commit_before>/*************************************************************************
*
* $RCSfile: dibpreview.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: tra $ $Date: 2002-03-21 07:37:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#ifndef __SOCKADDR_HPP__
#define __SOCKADDR_HPP__
#include "../config.h"
#include <netinet/in.h>
#include <memory>
#include <string>
#include <boost/ptr_container/ptr_vector.hpp>
#include "Errno.hxx"
namespace SockAddr {
class SockAddr {
protected:
SockAddr() throw() {}
public:
virtual ~SockAddr()... |
<commit_before>/*
* gtgtrace
*
* Performs the core loop of the program: propagating satellite position
* forward for the specified number of steps from the specified start time.
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "SGP4.h"
#include "Julian.h"
#include "Timespan.h"
#include "Tle.h... |
<commit_before>#include <Endure.h>
#include "Catch/single_include/catch.hpp"
#include <memory>
using namespace Endure;
using namespace std;
namespace Endure
{
template <typename T> class _List;
template <typename T> class _List
{
public:
static shared_ptr<_List<T>> Cons(T item, shared_ptr<_List<T>> list)
{
... |
<commit_before>#include "hooks.h"
#include "undocumented.h"
#include "ssdt.h"
#include "hider.h"
#include "misc.h"
#include "log.h"
static HOOK hNtQueryInformationProcess = 0;
static HOOK hNtQueryObject = 0;
static HOOK hNtQuerySystemInformation = 0;
static HOOK hNtClose = 0;
static HOOK hNtSetInformationTh... |
<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 "inputdevice.h"
namespace openalpp {
// Static
int InputDevice::nobjects_=0;
void InputDevice::Init() {
if(!nobjects_) {
PaError err=Pa_Initialize();
if(err!=paNoError)
throw InitError("Error initializing PortAudio");
}
nobjects_++;
}
InputDevice::InputDevice() {
Init()... |
<commit_before>/*************************************************************************
*
* $RCSfile: ZipPackageStream.cxx,v $
*
* $Revision: 1.26 $
*
* last change: $Author: mtg $ $Date: 2001-09-24 18:25:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*
* SchemeAdHoc.c
*
* Scheme adhoc callback into opencog
*
* Copyright (c) 2008 Linas Vepstas <linas@linas.org>
*/
#ifdef HAVE_GUILE
#include <libguile.h>
#include <opencog/server/CogServer.h>
#include <opencog/nlp/question/SentenceQuery.h>
#include <opencog/nlp/question/TripleQuery.h>
#includ... |
<commit_before>/*
Kopete , The KDE Instant Messenger
Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
Viva Chile Mierda!
Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile
Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
**************************... |
<commit_before>/*
* Listener on a TCP port.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "ServerSocket.hxx"
#include "SocketDescriptor.hxx"
#include "SocketAddress.hxx"
#include "StaticSocketAddress.hxx"
#include "fd_util.h"
#include "pool.hxx"
#include "util/Error.hxx"
#include <socket/util.h>
#include... |
<commit_before>#include "net/http_request.h"
namespace loftili {
namespace net {
HttpRequest::HttpRequest(const loftili::net::Url& url)
: m_url(url), m_method("GET") {
}
HttpRequest::HttpRequest(const loftili::net::Url& url, std::string method)
: m_url(url), m_method(method) {
}
HttpRequest::HttpRequest(cons... |
<commit_before>/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#ifndef OLIGOFITSCHEME_HPP
#... |
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
partnodebodypart.cpp
This file is part of KMail, the KDE mail client.
Copyright (c) 2004 Marc Mutz <mutz@kde.org>,
Ingo Kloecker <kloecker@kde.org>
KMail is free software; you can redistribute it and/or modify it
unde... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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 w... |
<commit_before>/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a)... |
<commit_before>#include "typesolver.hh"
#include "typeident.hh"
#include <cmath>
#include <limits>
#include <iostream>
#include "trim.hh"
using namespace nolang;
TypeSolver::TypeSolver() :
method(nullptr)
{
}
TypeSolver::TypeSolver(const PureMethod *m) :
method(m)
{
}
bool TypeSolver::isNative(const std::... |
<commit_before>/*************************************************************************/
/* audio_stream_ogg_vorbis.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "FlowChannel1Phase.h"
#include "FlowModelSinglePhase.h"
#include "StabilizationSettings.h"
#include "HeatTransfer1PhaseBase.h"
#include "Closures1PhaseBase.h"
#include "THMApp.h"
registerMooseObject("THMApp", FlowChannel1Phase);
template <>
InputParameters
validParams<FlowChannel1Phase>()
{
... |
<commit_before>#include "bart_builder.h"
#include <unordered_map>
#include <deal.II/fe/fe_dgq.h>
#include <deal.II/fe/fe_q.h>
#include <deal.II/fe/fe_raviart_thomas.h>
namespace bbuilders {
template <int dim>
void BuildFESpaces (const dealii::ParameterHandler &prm,
std::vector<dealii::FiniteElement<dim, dim>*> &... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
<commit_before>// $Id$
///////////////////////////////////////////////////////////////////////////////
// //
// class for HLT reconstruction //
// <Cvetan.Cheshkov@cern.ch> ... |
<commit_before>#include <Network/cUDPServerManager.h>
#include <Network/cUDPManager.h>
#include <Network/cDeliverManager.h>
#include <Network/cEventManager.h>
#include <Network/cRequestManager.h>
#include <Network/cResponseManager.h>
#include <cinder/app/App.h>
#include <limits>
#include <Node/action.hpp>
#inc... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#define NOMINMAX
#include <windows.h>
#include "InputWin.h"
#include "core/Engine.h"
#include "events/EventDispatcher.h"
#include "GamepadWin.h"
#include "utils/Utils.h"
namespace ouzel
{
namespace input
{
... |
<commit_before>#include <QMessageBox>
#include "sharefolderwindow.h"
#include "ui_sharefolderwindow.h"
#include "binapi.h"
#include "pcloudapp.h"
#include "common.h"
ShareFolderWindow::ShareFolderWindow(PCloudApp *a, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ShareFolderWindow)
{
app=a;
setWind... |
<commit_before>#include "plat.h"
#ifdef PWRE_PLAT_X11
#include "x11.hpp"
#include <X11/Xutil.h>
#include <unordered_map>
#include "zk_rwlock.hpp"
#include <mutex>
#include <atomic>
#include <climits>
#include <cstring>
namespace Pwre {
Atom netWmName;
Atom utf8Str;
Atom wmDelWnd;
Atom wmProtocols;
Atom netWm... |
<commit_before>#include "LibSVMClassificationDataset.h"
#include <fstream> // XXX
#include <iostream>
LibSVMClassificationDataset::LibSVMClassificationDataset(ClassificationDataset<double> &classificationDataset)
{
m_InputSize = classificationDataset.getInputSize();
const int numberOfInputs = classificationDataset.g... |
<commit_before>/*
* Copyright (C) 2005 Tommi Maekitalo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.... |
<commit_before>#include "KAI/Network/Node.h"
#include <raknet/RakPeerInterface.h>
KAI_NET_BEGIN
using namespace RakNet;
using namespace std;
struct Node::Impl
{
int constexpr NumSockets = 100;
int constexpr Port = 6666;
shared_ptr<RakPeerInterface> _peer;
SocketDescriptor _sockets[NumSockets];
Impl()
: _pee... |
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef CNETLINK_H_
#define CNETLINK_H_ 1
#include <deque>
#include <exception>
#include <mutex>
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.