text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "compressor.h"
... |
<commit_before>#include <rohc/compressor.h>
#include <rohc/lock.h>
#include <rohc/log.h>
#include "network.h"
#include <rohc/rohc.h>
#include "cprofile.h"
#include <functional>
#include <algorithm>
#include <cstring>
using namespace std;
namespace
{
struct ContextFinder : public unary_function<const ROHC::CProfil... |
<commit_before>
#include "connection.hpp"
Connection::Connection() :
mode(SERVER)
{
socket.bind(GAME_PORT);
socket.setBlocking(false);
}
Connection::Connection(Mode mode) :
mode(mode)
{
socket.bind(GAME_PORT);
socket.setBlocking(false);
}
Connection::~Connection()
{
}
void Connection::update(sf::Tim... |
<commit_before>/***************************************************************************
* Copyright © 2003 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
... |
<commit_before>// Copyright (c) 2016, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-corbaserver.
// hpp-corbaserver 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 Softw... |
<commit_before>#include "GasMeter.h"
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IntrinsicInst.h>
#include "preprocessor/llvm_includes_end.h"
#include "Ext.h"
#include "RuntimeManager.h"
namespace dev
{
namespace eth
{
namespace jit
{
namespace // Helper functions
{
int64_t const c_stepGas[] = ... |
<commit_before>/*
* Container for cookies received from other HTTP servers.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef BENG_PROXY_COOKIE_JAR_HXX
#define BENG_PROXY_COOKIE_JAR_HXX
#include "util/StringView.hxx"
#include <inline/compiler.h>
#include <boost/intrusive/list.hpp>
#include <new>
#include ... |
<commit_before>/*
This file is part of the CVD Library.
Copyright (C) 2005 The Authors
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 L... |
<commit_before>#include <string>
#include <utility>
#include <vector>
#include <stdexcept>
#include <algorithm>
/* TODO:
* Normalization and Comparison
* http://tools.ietf.org/html/rfc3986#section-6
*/
struct uri {
std::string scheme;
std::string userinfo;
std::string host;
std::string path;
st... |
<commit_before>#include "precompiled.h"
//
// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RenderTarget11.cpp: Implements a DX11-specific wrapper for ID3D11View pointers
// retained by Re... |
<commit_before>// 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.
//
// File contains modifications by: The Gulden developers
// All modifications:
// Copyright (c) 2017-2018 Th... |
<commit_before>// Copyright 2011 Google Inc. 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
//
// Unless require... |
<commit_before>/*
* This file is part of the CN24 semantic segmentation software,
* copyright (C) 2015 Clemens-Alexander Brust (ikosa dot de at gmail dot com).
*
* For licensing information, see the LICENSE file included with this project.
*/
/**
* @file DatasetInputLayer.cpp
* @author Clemens-Alexander Brust (ik... |
<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 Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt ... |
<commit_before>// Copyright (c) 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 "rpc/client.h"
#include "rpc/protocol.h"
#include "util.h"
#i... |
<commit_before>/*
* Copyright (c) 2018, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of... |
<commit_before>/*
* Copyright 2016 Hewlett Packard Enterprise Development LP
*
* 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>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// This one has to come first (includes the config.h)!
#include <dune/stuff/test/main.hx... |
<commit_before>// Copyright (c) 2018 Google 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
<commit_before>#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
this->s_settingsDialog = 0;
this->systemTrayIcon = 0;
this->setWindowTitle(APP_TITLE);
this->setMinimumSize(627, 500);
this->view = new WebView(this);
this->view->setUrl(APP_URL);
th... |
<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 "testing/testing.hpp"
#include "coding/reader.hpp"
#include "coding/writer.hpp"
#include "routing_common/transit_serdes.hpp"
#include "routing_common/transit_types.hpp"
#include <algorithm>
#include <cstdint>
#include <vector>
using namespace routing;
using namespace routing::transit;
using ... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
#include "Getopt.hpp"
#include "snarkfront.hpp"
using namespace snarkfront;
using namespace snarklib;
using namespace std;
void printUsage(const char* exeName) {
const string
PAIR = " -p BN128|Edwards",
VKEY... |
<commit_before>#include <fstream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <string>
#include <time.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "stdarg.h"
#include <signal.h>
#include <errno.h>
#include "simple_config.h"
#include "simple_log.h"
// log context
const... |
<commit_before>#ifndef NOTCH_IO_H
#define NOTCH_IO_H
/// notch_io.hpp -- optional input-output helpers for Notch library
/**
The MIT License (MIT)
Copyright (c) 2015 Sergey Astanin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... |
<commit_before>#pragma once
#include "opencv2/opencv.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"
namespace pt = boost::posix_time;
/**
* Information related to RGB-D pair images
*/
struct Image
{
const pt::ptime time; // Time taken
const cv::Mat rgb; // 3-channel cv::Mat containing R... |
<commit_before>#ifndef AST_HPP_INCLUDED
#define AST_HPP_INCLUDED
#include "../misc.hpp"
#include "../runtime/runtime_info.hpp"
#include <iostream>
#include <memory>
#include <string>
#include <vector>
namespace shiranui{
namespace syntax{
namespace ast{
struct VisitorForAST;
}
}
}... |
<commit_before>#include "message_row.h"
#include <gdkmm/pixbufloader.h>
#include <gtkmm/stock.h>
#include <libsoup/soup-uri.h>
#include <iostream>
#include <regex>
static std::string convert_links(const std::string &slack_markup);
static std::string convert_link(const std::string &linker);
MessageRow::MessageRow(icon... |
<commit_before>#include "taskqueuer.h"
WARNINGS_DISABLE
#include <QCoreApplication>
#include <QEventLoop>
#include <QVariant>
WARNINGS_ENABLE
#include "cmdlinetask.h"
/*! Track info about tasks. */
struct TaskMeta
{
/*! Actual task. */
CmdlineTask *task;
/*! Does this task need to be the only one happeni... |
<commit_before>#ifndef regex_impl_hh_INCLUDED
#define regex_impl_hh_INCLUDED
#include "unicode.hh"
#include "utf8.hh"
#include "utf8_iterator.hh"
#include "vector.hh"
#include "flags.hh"
namespace Kakoune
{
struct CompiledRegex
{
enum Op : char
{
Match,
Literal,
LiteralIgnoreCase,
... |
<commit_before>#include <mos/assets.hpp>
#include <rapidxml.hpp>
#include <rapidxml_utils.hpp>
#include <lodepng.h>
#include <exception>
#include <memory>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iterator>
#include <stb_vorbis.h>
#include <glm/gtx/io.hpp>
#include <glm/gtx/euler_angles.hpp>
... |
<commit_before>#include "includes/truthtable.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <sstream>
#include <stack>
#include "includes/symbols.h"
#include "includes/tokenizer.h"
TruthTable::TruthTable()
: m_operator_map(std::map<std::string, Op>()),
m_keywords_set(... |
<commit_before>#include "libtorrent/udp_socket.hpp"
#include "libtorrent/connection_queue.hpp"
#include <stdlib.h>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/array.hpp>
#include <asio/read.hpp>
using namespace libtorrent;
udp_socket::udp_socket(asio::io_service& ios, udp_socket::callb... |
<commit_before>/* -------------------------------------------------------------------------- */
/* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */
/* */
/* Licensed under the Apache License, Version 2.0 (the "Licens... |
<commit_before>#include "webcam.hpp"
#include <chrono>
using namespace cv;
using namespace std;
Mat ellipticKernel(int width, int height = -1) {
if (height==-1) {
return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2));
} else {
return getStructuringElement(MORPH_ELLIPSE,Size(widt... |
<commit_before>#include "webcam.hpp"
using namespace cv;
using namespace std;
void morphFast(Mat inout, int smallsize = 100, int factor = 25, int eq = 1, int diler = 0) {
int width, height;
width = inout.size().width;
height = inout.size().height;
factor = factor + (1-(factor%2));
Mat downsample;
resize(i... |
<commit_before>#include <allegro.h>
#include <cstring>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <pthread.h>
#include <time.h>
#include <vector>
#include <map>
#include "globals.h"
#include "mugen_reader.h"
#include "mugen_section.h"
#include "mugen_item_content.h"
#include "mugen_item.h"
#in... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2015 nabijaczleweli
// 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 ... |
<commit_before>#ifndef TESTLEVEL
#define TESTLEVEL
#include <Annwvyn.h>
#include "DemoUtils.hpp"
using namespace Annwvyn;
//Custom object:
class Sinbad : public AnnGameObject
{
public:
void postInit() override
{
setPosition(0, 0, -5);
setScale(0.2f, 0.2f, 0.2f);
setAnimation("Dance");
playAnimation(true);
... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MasterPagesPanel.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: ihi $ $Date: 2006-08-01 09:23:34 $
*
* The Contents of this file... |
<commit_before>/**
* @file CameraMatrixCorrectorV2.cpp
*
* @author <a href="mailto:kaden@informatik.hu-berlin.de">Steffen Kaden</a>
*/
#include "CameraMatrixCorrectorV2.h"
#include <array>
CameraMatrixCorrectorV2::CameraMatrixCorrectorV2()
{
getDebugParameterList().add(&getCameraMatrixOffset());
DEBUG_REQUEST_RE... |
<commit_before>/*
Copyright (c) 2015, 2016, Andreas Fett. 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 <cstring>
#include "parser-impl.h"
#include "error.h"
#include "token-stream.h"
#include "utf8stream... |
<commit_before>// Copyright (c) 2016-2021 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 <policy/rbf.h>
#include <policy/policy.h>
#include <policy/settings.h>
#include <tinyformat.h>
#incl... |
<commit_before>/*
* ============================================================================
*
* Filename: gbsqc.cc
* Description: A GBS quality control pipeline
* License: LGPL-3+
* Author: Kevin Murray, spam@kdmurray.id.au
*
* ===================================================... |
<commit_before>/*
* W.J. van der Laan 2011
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "qtwin.h"
#include "headers.h"
#include "init.h"
#include <QApplication>
#include <QMessageBox>
#include <QThread>
#include <QLocale>
#include <QTranslator>
#inc... |
<commit_before>/*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
*
* This file is part of eigenpy.
* eigenpy 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 (a... |
<commit_before>#include "qzmqsocket.h"
#include <stdio.h>
#include <assert.h>
#include <QStringList>
#include <QTimer>
#include <QSocketNotifier>
#include <QMutex>
#include <zmq.h>
#include "qzmqcontext.h"
namespace QZmq {
static bool get_rcvmore(void *sock)
{
qint64 more;
size_t opt_len = sizeof(more);
int ret =... |
<commit_before><commit_msg>#104320# update cache after changing font properties<commit_after><|endoftext|> |
<commit_before>#include "optimizers.h"
#include "common/io.h"
#include "tensors/tensor_operators.h"
namespace marian {
void Sgd::updateImpl(Tensor params, Tensor grads) {
using namespace functional;
Element(_1 -= (multiplyFactor_ * eta_) * _2, params, grads);
params->getBackend()->synchronize();
}
// tempora... |
<commit_before>#include "directories.h"
#include "logging.h"
#include <algorithm>
#include <unordered_set>
#include "source.h"
#include "terminal.h"
#include "notebook.h"
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
namespace sigc {
#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
te... |
<commit_before>#include <metaSMT/frontend/QF_BV.hpp>
#include <metaSMT/API/Comment.hpp>
#include <boost/test/unit_test.hpp>
// lazy headers
using namespace metaSMT;
using namespace logic;
using namespace logic::QF_BV;
namespace proto = boost::proto;
BOOST_FIXTURE_TEST_SUITE(annotate_t, Solver_Fixture )
BOOST_AUTO_... |
<commit_before>//
// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "compiler/translator/TranslatorGLSL.h"
#include "angle_gl.h"
#include "compiler/translator/BuiltInFunctionEmu... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// query_to_operator_transformer.cpp
//
// Identification: src/optimizer/query_to_operator_transformer.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// query_to_operator_transformer.cpp
//
// Identification: src/optimizer/query_to_operator_transformer.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//... |
<commit_before>/*
* validator.cpp
* cpds
*
* Copyright (c) 2016 Hannes Friederich.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "cpds/validator.hpp"
#include "cpds/node.hpp"
#include "cpds/exception.hpp"
#include <iostre... |
<commit_before>
#include <WiFiClientSecure.h>
#include <base64.h>
#include <Arduino.h>
#define MODULE_NAME "email_send"
#include "email_send.h"
#include "logger.h"
#define FSTR
bool read_response(WiFiClientSecure* client, char* buffer, int buffer_len, const char* endmarker, const char* exp_response, const cha... |
<commit_before>// Copyright (C) 2005-2009 by Jukka Korpela
// Copyright (C) 2009-2013 by David Hoerl
// Copyright (C) 2013 by Martin Moene
//
// 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 Softwar... |
<commit_before>//
// msgf_amp_pipe.cpp
// ToneGenerator
//
// Created by 長谷部 雅彦 on 2013/12/08.
// Copyright (c) 2013年 長谷部 雅彦. All rights reserved.
//
#include "msgf_amp_pipe.h"
#include "msgf_audio_buffer.h"
#include "msgf_instrument.h"
#include "msgf_part.h"
using namespace msgf;
//-----------------------------... |
<commit_before>//
// EigenJS.cpp
// ~~~~~~~~~~~
//
// Copyright (c) 2014 Rick Yang (rick68 at gmail dot com)
//
// 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/.
//
#if... |
<commit_before>#include <JsonBox/Convert.h>
#include <sstream>
#define MASKBITS 0x3F //00111111
#define MASK1BYTE 0x80 //10000000
#define MASK2BYTES 0xC0 //11000000
#define MASK3BYTES 0xE0 //11100000
#define MASK4BYTES ... |
<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) 2007-2008 Vojtech Franc
* Writt... |
<commit_before>#pragma once
#include "core/enum.hh"
#include "bytes.hh"
#include "gc_clock.hh"
#include "tombstone.hh"
namespace sstables {
// Some in-disk structures have an associated integer (of varying sizes) that
// represents how large they are. They can be a byte-length, in the case of a
// string, number of ... |
<commit_before>
#include "../../expat/escape_xml.h"
#include "../frontend/basic_formats.h"
#include "output_popup.h"
#include <cmath>
#include <fstream>
bool Tag_Filter::matches(const std::vector< std::pair< std::string, std::string > >* tags) const
{
if (!tags)
return false;
for (std::vector< std::pair< std... |
<commit_before>/**
* @file calcOpticalFlowPyrLK.cpp
* @brief mex interface for calcOpticalFlowPyrLK
* @author Kota Yamaguchi
* @date 2011
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/**
* Main entry called from Matlab
* @param nlhs number of left-hand-side arguments
* @param plhs point... |
<commit_before>#include <signal.h>
#ifndef NDEBUG
# include <sys/resource.h>
#endif
#include <syslog.h>
#include <cassert>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <iterator>
#include <algorithm>
#include <sys/wait.h>
#include <autosprintf.h>
#include "eyekinfig.h"
#include "eyetil.h"
#inclu... |
<commit_before>#include <windows.h>
#include <winsock.h>
#include <string>
using std::string;
#include <iostream>
using std::cout; using std::endl; using std::cin;
namespace rsa
{
const int WSVERS = MAKEWORD(2, 0);
auto make_remote_address(char* arr[]) -> struct sockaddr_in
{
struct sockaddr_in ad... |
<commit_before>#include <windows.h>
#include <winsock.h>
#include <string>
using std::string;
#include <iostream>
using std::cout; using std::endl; using std::cin;
namespace as3
{
const int WSVERS = MAKEWORD(2, 0);
class Socket
{
public:
explicit Socket(SOCKET s)
: socket_{ s }
... |
<commit_before>/*
Copyright 2012 Joe Hermaszewski. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list... |
<commit_before>/*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include "filesystem.hpp"
#include "logger.hpp"
#include "string_util.hpp"
#include "SDL.h"
#include "oddlib/stream.hpp"
#include "oddlib/cdromfilesystem.hpp"
#include <algorithm>
#include <fstream>
#include "jsonxx/jsonxx.h"
#include "imgui/imgui.h"
#ifdef _WIN32
const char kDirSeperator = '\\';
#else
... |
<commit_before>/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 1999-2016 Vaclav Slavik
*
* 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 restrictio... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: FeatEdge.cc
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reprod... |
<commit_before>#include "NTClient.h"
using namespace std;
NTClient::NTClient(int interval, double _accuracy) {
typeIntervalMS = interval;
accuracy = _accuracy;
hasError = false;
firstConnect = true;
connected = false;
lessonLen = 0;
lidx = 0;
log = new NTLogger("(Not logged in)");
}
NTClient::~NTClient() {
de... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2014.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================================... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// Licensed to Qualys, Inc. (QUALYS) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// QUALYS licenses this fil... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2012.
// 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>#include "src/holy_thread.h"
#include "src/pink_epoll.h"
#include "src/pink_item.h"
#include "include/pink_conn.h"
namespace pink {
HolyThread::HolyThread(int port, ConnFactory *conn_factory, int cron_interval) :
ServerThread::ServerThread(port, cron_interval),
conn_factory_(conn_factory) {
pthr... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 l... |
<commit_before>/*
* mapping_data.cc
*
* Created on: Mar 19, 2015
* Author: isovic
*/
#include "mapping_data.h"
MappingData::MappingData() {
bins.clear();
intermediate_mappings.clear();
final_mapping_ptrs.clear();
bin_size = -1;
num_seeds_over_limit = 0;
num_seeds_with_no_hits = 0;
num_seeds... |
<commit_before>#include "Preheat.h"
namespace cura
{
void Preheat::setConfig(const MeshGroup& meshgroup)
{
for (int extruder_nr = 0; extruder_nr < meshgroup.getExtruderCount(); extruder_nr++)
{
assert(meshgroup.getExtruderTrain(extruder_nr) != nullptr);
const ExtruderTrain& extruder_train = *... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner
* Copyright (C) 2009, 2010 Peter Schüller
* Copyright (C) 2011, 2012, 2013 Christoph Redl
*
* This file is part of dlvhe... |
<commit_before>/* The MIT License (MIT)
Copyright (c) 2015 Gabriel Corona
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... |
<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 that the f... |
<commit_before>/*
* Copyright (c) 2016, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
<commit_before>/* ************************************************************************************
*
* ftFluidFlow
*
* Created by Matthias Oostrik on 03/16.14.
* Copyright 2014 http://www.MatthiasOostrik.com All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... |
<commit_before>/* ************************************************************************************
*
* ftFluidFlow
*
* Created by Matthias Oostrik on 03/16.14.
* Copyright 2014 http://www.MatthiasOostrik.com All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... |
<commit_before>/* RLTK (RogueLike Tool Kit) 1.00
* Copyright (c) 2016-Present, Bracket Productions.
* Licensed under the LGPL - see LICENSE file.
*
* Example 7: Advanced GUI with retained-mode GUI elements and an owner-draw background.
*/
// You need to include the RLTK header
#include "../../rltk/rltk.hpp"
#incl... |
<commit_before>// Copyright (c) 2011 Chris Pickel <sfiera@gmail.com>
//
// This file is part of librezin, a free software project. You can redistribute it and/or modify
// it under the terms of the MIT License.
#include <rezin/pict.hpp>
#include <stdint.h>
#include <vector>
#include <rezin/clut.hpp>
#include <rezin/... |
<commit_before>//
// Bareflank Hypervisor
//
// Copyright (C) 2015 Assured Information Security, Inc.
// Author: Rian Quinn <quinnr@ainfosec.com>
// Author: Brendan Kerrigan <kerriganb@ainfosec.com>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesse... |
<commit_before>/*
* Copyright 2015 WebAssembly Community Group participants
*
* 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
*
* Unl... |
<commit_before>/*
* XCFun, an arbitrary order exchange-correlation library
* Copyright (C) 2018 Ulf Ekström and contributors.
*
* This file is part of XCFun.
*
* 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 ... |
<commit_before>#include <jpl-tags/fiducial_stereo.h>
#include <opencv2/opencv.hpp>
#include <drc_utils/LcmWrapper.hpp>
#include <drc_utils/BotWrapper.hpp>
#include <lcm/lcm-cpp.hpp>
#include <lcmtypes/multisense/images_t.hpp>
#include <lcmtypes/bot_core/image_t.hpp>
#include <lcmtypes/drc/tag_detection_t.hpp>
#includ... |
<commit_before>#include "ImageResizer.hpp"
#include "FAST/Data/Image.hpp"
namespace fast {
void ImageResizer::setWidth(int width) {
if(width <= 0)
throw Exception("Width must be larger than 0.");
mSize.x() = width;
}
void ImageResizer::setHeight(int height) {
if(height <= 0)
throw Exception("Height must be l... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
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 of the License, or (... |
<commit_before>#include "Zenderer/CoreGraphics/VertexArray.hpp"
using namespace zen::gfxcore;
CVertexArray::CVertexArray(const GLenum type) :
CGLSubsystem("Vertex Array"),
m_icount(0), m_vcount(0),
m_vao(0), m_vbo(0), m_ibo(0),
m_type(type)
{
m_vaoIndices.clear();
m_vaoVertices.clear();
}
CVe... |
<commit_before>#ifndef apparel_class_H
#define apparel_class_H
/* Classes for apparel */
#include <iostream>
using namespace std;
class apparel {
public:
string type; // apparel type
int condition; // condition of equipment
};
int main() {
}
#endif
<commit_msg>no c... |
<commit_before>// Sh: A GPU metaprogramming language.
//
// Copyright 2003-2005 Serious Hack Inc.
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to an... |
<commit_before>/***************************************************************************
begin : Thu Apr 24 15:54:58 CEST 2003
copyright : (C) 2003 by Giuseppe Lipari
email : lipari@sssup.it
***************************************************************************/
/***... |
<commit_before>// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "StdAfx.h"
#include "MainApp.h"
const TCHAR* pszDefaulTime = _T("--:--");
const TCHAR* pszProgresssLoop[] = {
/* 00 */ _T("Error: ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.