text stringlengths 54 60.6k |
|---|
<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>#include <iostream>
#include <functional>
#include <memory>
#include <future>
#include <atomic>
#include "integration_test_helper.h"
#include "dronecore.h"
#include "plugins/telemetry/telemetry.h"
#include "plugins/action/action.h"
#include "plugins/mission/mission.h"
using namespace dronecore;
using na... |
<commit_before>#include "Overlay.h"
#include "ui_Overlay.h"
#include "../Hearthstone.h"
#include "../Settings.h"
#ifdef Q_OS_MAC
#include <objc/objc-runtime.h>
#endif
#include <cassert>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
#include <QFile>
#include <QMouseEvent>
#define CHECK_FOR_O... |
<commit_before>/*
* Copyright 2017 Buck Baskin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, mer... |
<commit_before>/*
* Copyright (c) 2010, Joshua Lackey
* 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
* n... |
<commit_before>/*!
* \brief Contains a bunch of utility functions which may or may not be actually used anywhere
*
* \author David
* \date 18-May-16.
*/
#ifndef RENDERER_UTILS_H
#define RENDERER_UTILS_H
#include <algorithm>
#include <exception>
#include <optional>
#include <string>
#include <vector>
#include <f... |
<commit_before>/*!
* \brief Contains a bunch of utility functions which may or may not be actually used anywhere
*
* \author David
* \date 18-May-16.
*/
#ifndef RENDERER_UTILS_H
#define RENDERER_UTILS_H
#include <algorithm>
#include <exception>
#include <optional>
#include <string>
#include <vector>
#include <f... |
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
// vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
//#include "goto-def.h"
/* Copyright (c) FFLAS-FFPACK
* Written by Clément Pernet <clement.pernet@imag.fr>
* ========LICENCE========
* This file is part of the li... |
<commit_before>#include <ctime>
#include <iostream>
#include <cstdlib>
#include <iterator>
#include <memseries.h>
#include <ctime>
#include <limits>
#include <cmath>
#include <chrono>
int main(int argc, char *argv[]) {
auto ms = new memseries::storage::MemoryStorage{ 2000000 };
auto m = memseries::Meas::empty(... |
<commit_before>/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** H26x_V4l2DeviceSource.cpp
**
** H264/H265 V4L... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>// Numexpr - Fast numerical array expression evaluator for NumPy.
//
// License: MIT
// Author: See AUTHORS.txt
//
// See LICENSE.txt for details about copyright and rights to use.
//
// module.cpp contains the CPython-specific module exposure.
#define DO_NUMPY_IMPORT_ARRAY
#include "module... |
<commit_before>/*
* Copyright (c) 2013, Quarkslab
* 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
* lis... |
<commit_before>/*
* This file is part ServerManager of package
*
* (c) Ondřej Záruba <zarubaondra@gmail.com>
*
* For the full copyright and license information, please view the license.md
* file that was distributed with this source code.
*/
#include <string>
#include <fstream>
#include <cstdlib>
#include <sstr... |
<commit_before>/*
Copyright 2012 Ulrik Mikaelsson <ulrik.mikaelsson@gmail.com>
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>/*
* MusicBrainz -- The Internet music metadatabase
*
* Copyright (C) 2006 Lukas Lalinsky
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlgedpage.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-01-16 16:37:11 $
*
* The Contents of this file are made... |
<commit_before>/*
* Note: LoRaWAN per sub-band duty-cycle limitation is enforced (1% in g1,
* 0.1% in g2).
*
* Change DEVADDR to a unique address!
* See http://thethingsnetwork.org/wiki/AddressSpace
*
* Do not forget to define the radio type correctly in config.h.
*/
#include <SPI.h>
#include "Lora.h"
#include... |
<commit_before>/*
* This file is part of telepathy-accounts-kcm
*
* Copyright (C) 2009 Collabora Ltd. <info@collabora.com>
* Copyright (C) 2011 Dominik Schmidt <kde@dominik-schmidt.de>
* Copyright (C) 2011 Thomas Richard <thomas.richard@proan.be>
*
* This library is free software; you can redistribute it and/or
... |
<commit_before>/*
* This file is part of telepathy-accounts-kcm
*
* Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
*
* 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... |
<commit_before>/* <x0/request.hpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
*
* (c) 2009 Chrisitan Parpart <trapni@gentoo.org>
*/
#ifndef x0_http_request_hpp
#define x0_http_request_hpp (1)
#include <x0/buffer.hpp>
#include <x0/header.hpp>
#include <x0/fileinfo.hpp>
#inclu... |
<commit_before>#include "daisysp.h"
#include "../src/kxmx_bluemchen.h"
#include <string.h>
using namespace kxmx;
using namespace daisy;
using namespace daisysp;
Bluemchen bluemchen;
Oscillator osc;
float oofreq = 80.0;
uint numWaves = 2;
std::vector<uint> waves = { 0, 1 } ;
std::string waveStrings[] = { "WAVE_SIN... |
<commit_before>#include <xmppclient.h>
#include <xmppstream.h>
#include <xmppserver.h>
#include <virtualhost.h>
#include <db.h>
#include <tagbuilder.h>
#include <nanosoft/base64.h>
// for debug only
#include <string>
#include <iostream>
#include <stdio.h>
using namespace std;
using namespace nanosoft;
/**
* Конструк... |
<commit_before>#include "ddPropertiesPanel.h"
#include <QtVariantPropertyManager>
#include <QtTreePropertyBrowser>
#include <QtGroupBoxPropertyBrowser>
#include <QtVariantEditorFactory>
#include <QVBoxLayout>
//-----------------------------------------------------------------------------
class ddPropertiesPanel::dd... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#pragma once
#include <cassert>
#include <memory>
#include <db.h>
namespace ftcxx {
class Slice {
public:
Slice()
: _data(nullptr),
_size(0)
{}
explicit Slice(size_t sz)
... |
<commit_before>// Copyright (c) 2015 The Brick Authors.
#include "brick/desktop_media.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include "include/internal/cef_linux.h"
#include "include/base/cef_logging.h"
namespace desktop_media {
bool
IsAcceptableState(::Window window) {
::X... |
<commit_before>#ifndef GENERICDATA_H
#define GENERICDATA_H
#include "taskdata.hpp"
#include "utils/dbg.hpp"
template <typename T>
class GenericData : public TaskData
{
public:
typedef T container_type;
const T & get_const() const
{
return m_data;
}
T & get_mutable()
{
m_valid... |
<commit_before>
#include <iostream>
#include "timer.h"
#include "matrix.h"
#if defined(AMATRIX_COMPARE_WITH_EIGEN)
#include "Eigen/Dense"
#endif
template<typename TMatrixType, int NumberOfRows, int NumberOfColumns>
class ComparisonColumn{
TMatrixType mA;
void initialize(TMatrixType& TheMatrix){
for(int i = 0 ; i... |
<commit_before>//! Copyright (c) 2013 ASMlover. 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, thi... |
<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 "base/command_line.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/debugger/devtools_client_host.h"
#include "... |
<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 "base/command_line.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/debugger/devtools_client_host.h"
#include "... |
<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 "base/command_line.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/debugger/devtools_client_host.h"
#include "... |
<commit_before>// Copyright (c) 2010 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 "base/command_line.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#i... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
// Flaky, http://crbug.com/20828. Please consult phajdan.jr before re-enablin... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/prefs/pref_servi... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCProperty.cpp
// @Author : LvSheng.Huang
// @Date : 2012-03-01
// @Module : NFCProperty
//
// -----------------------------------------------... |
<commit_before>/*
* PhraseTableMemory.cpp
*
* Created on: 28 Oct 2015
* Author: hieu
*/
#include <cassert>
#include <boost/foreach.hpp>
#include "PhraseTableMemory.h"
#include "../../PhraseBased/PhraseImpl.h"
#include "../../Phrase.h"
#include "../../System.h"
#include "../../Scores.h"
#include "../../Input... |
<commit_before>#include "xchainer/memory.h"
#include <cassert>
#ifdef XCHAINER_ENABLE_CUDA
#include <cuda.h>
#include <cuda_runtime.h>
#endif // XCHAINER_ENABLE_CUDA
#include "xchainer/backend.h"
#ifdef XCHAINER_ENABLE_CUDA
#include "xchainer/cuda/cuda_runtime.h"
#endif // XCHAINER_ENABLE_CUDA
#include "xchainer/d... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: accessibleeventbuffer.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 02:25:04 $
*
* The Contents of this f... |
<commit_before>/*************************************************************************
*
* $RCSfile: numrule.hxx,v $
*
* $Revision: 1.24 $
*
* last change: $Author: obo $ $Date: 2005-07-18 13:33:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include <set>
#include <sstream>
#include <string>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hp... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define USAGE "U... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005 Laurent Ribon (laumaya@users.sourceforge.net)
Version 0.9, packaged on Novemeber, 2005.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can redis... |
<commit_before>class Solution {
public:
int canCompleteCircuit(vector<int>& gas, vector<int>& cost) {
if (gas.empty()) {
return -1;
}
int start_index = 0;
int total = 0;
int charge = 0;
for(size_t i = 0; i < gas.size(); i++) {
charge += gas[i] ... |
<commit_before>#include <gtest/gtest.h>
#include <bitset>
#include "hamt.hpp"
static const auto show = [](auto indices) {
std::size_t shift = 0;
for(auto i: indices) {
std::cout << i << "/" << (i << shift) << ", ";
if(shift)
shift += 5;
else
shift += 4;
}
std::cout << std::endl;
};
... |
<commit_before>/*
Copyright (c) 2013, Ford Motor Company
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of condit... |
<commit_before>//
// main.cpp
// Unit Tests
//
// Created by Evan McCartney-Melstad on 12/31/14.
// Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved.
//
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "../cPWP/generateSimulatedData.h"
#includ... |
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 2006. Use, modification and distribution is
// subject to 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)
#include <libtorrent/session.hpp>
#include <libtorrent/torrent.hpp>
#inc... |
<commit_before>#ifndef _VINECPP_HEADER_HPP_
#define _VINECPP_HEADER_HPP_
// headers
#ifndef DBL_MAX
#define DBL_MAX 1.79769e+308
#endif
#include <iostream>
#include <string>
#define _USE_MATH_DEFINES
#include <cmath>
#include <vector>
#include <nlopt.hpp>
#include <algorithm>
#include <utility>
#include <omp.h>
#in... |
<commit_before>/*
Empath - Mailer for KDE
Copyright 1999, 2000
Rik Hemsley <rik@kde.org>
Wilco Greven <j.w.greven@student.utwente.nl>
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
th... |
<commit_before>#include "sexpr.hpp"
#include "parse.hpp"
namespace {
template<char ... c>
static int matches(int x) {
static const char data[] = {c..., 0};
for(const char* i = data; *i; ++i) {
if(*i == x) return true;
}
return false;
}
}
maybe<sexpr> sexpr::parse(std::istream& in) {... |
<commit_before>#include "builtin/class.hpp"
#include "builtin/object.hpp"
#include "builtin/stat.hpp"
#include "builtin/string.hpp"
#include "builtin/time.hpp"
#include "ontology.hpp"
namespace rubinius {
void Stat::init(STATE) {
GO(stat_class).set(ontology::new_class(state, "Stat", G(object), G(rubinius)));
... |
<commit_before>/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <sstream>
#include "oaa.h"
#include "simple_... |
<commit_before>#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <stdlib.h>
#include <QtGlobal>
#include <QtWidgets>
int main(int argc, char *argv[])
{
// Global menubar is broken for qt5 apps in Ubuntu Unity, see:
// https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/... |
<commit_before>// Copyright (C) 2019, Antonio Coratelli
//
// 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 ... |
<commit_before>#include <algorithm>
#include <bitset>
#include "base/crc.h"
#include "bsp/bsp_uart.h"
#include "main.hpp"
#include "program_flash/boot_table.hpp"
static void CheckBootSettings()
{
auto settingsValid = Bootloader.Settings.CheckMagicNumber();
if (settingsValid)
{
BSP_UAR... |
<commit_before>#include "MidasTreeView.h"
#include <QtGui>
#include <QItemSelection>
#include <QContextMenuEvent>
#include <QModelIndex>
#include "MIDASDesktopUI.h"
#include "MidasTreeItem.h"
#include "MidasTreeModel.h"
#include "MidasCommunityTreeItem.h"
#include "MidasCollectionTreeItem.h"
#include "MidasItemTreeIt... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006 Tim Beaulen <tbscope@gmail.com>
Copyright (C) 2006-2007 Matthias Kretz <kretz@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as publ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dp_gui_updatedata.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: ihi $ $Date: 2006-12-20 14:24:31 $
*
* The Contents of this file... |
<commit_before>#include "PackUIWindowTask.h"
#include "PackUI.h"
#include "pack_ui_cfg.h"
#include <ee/FileHelper.h>
#include <ee/std_functor.h>
#include <ee/StringHelper.h>
#include <ee/Exception.h>
#include <algorithm>
namespace erespacker
{
PackUIWindowTask::PackUIWindowTask(const std::string& filepath, const Js... |
<commit_before>// Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/lir/testing/lir_test.h"
#include "elang/lir/editor.h"
#include "elang/lir/factory.h"
#include "elang/lir/literals.h"
#includ... |
<commit_before>/*
* This file is part of the Phatbooks project and is distributed under the
* terms of the license contained in the file LICENSE.txt distributed
* with this package.
*
* Author: Matthew Harvey <matthew@matthewharvey.net>
*
* Copyright (c) 2012-2013, Matthew Harvey.
*
* THE SOFTWARE IS PROVIDED... |
<commit_before>// -*-mode: c++; indent-tabs-mode: nil; -*-
#include <iostream>
#include <fstream>
#include <sys/types.h> // opendir
#include <dirent.h> // opendir
#include <sys/types.h> // stat
#include <sys/stat.h> // stat
#include <unistd.h> // stat
#include <limits.h> // realpath
#include <stdlib.h> ... |
<commit_before>#include "global_vars.h"
#include "index_table.h"
#include <cmath>
#include <cassert>
// Construct the index tables as maps, which are automatically sorted.
IndexTable::IndexTable(const double cofm_i[], const int axis_i[], const int NumLos_i, const double box):
cofm(cofm_i), axis(axis_i), NumLos(NumLo... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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>#include "stdafx.h"
static double GetTime()
{
LARGE_INTEGER t, f;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&f);
return (double)t.QuadPart / f.QuadPart;
}
static float INVALID_POS = -99999.f;
static float CalcRadius(const Mesh* m)
{
const Block& b = m->GetRawDatas();
float maxSq = 0;... |
<commit_before>
/**
* Example to demonstrate a XPCC driver for HD44780 displays,
* including displays with I2C PCA8574 port expanders.
*
* This example uses I2cMaster2 of STM32F407
*
* SDA PB11
* SCL PB10
*
* GND and +5V are connected to the the port expander of the display.
*
*/
#include <xpcc/architectu... |
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_MATH_FNV_HPP
#define OUZEL_MATH_FNV_HPP
#include <cstdint>
namespace ouzel
{
namespace fnv
{
template <typename T> constexpr T prime;
template <typename T> constexpr T offsetBasis;
template <> ... |
<commit_before>/*****************************************************************************
* Copyright (c) 2019, Acer Yun-Tse Yang 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 "../ccrrt/CBiRRT.h"
using namespace ccrrt;
using namespace Eigen;
CBiRRT::CBiRRT(int maxTreeSize, double maxStepSize, double collisionCheckStepSize) :
ConstrainedRRT(maxTreeSize, maxStepSize, collisionCheckStepSize)
{
_projected_constraints = NULL;
max_projection_attempts = 10;
... |
<commit_before>/*
* DMXPro.cpp
*
* Created by Andrea Cuius
* The MIT License (MIT)
* Copyright (c) 2014 Nocte Studio Ltd.
*
* www.nocte.co.uk
*
*/
#include "cinder/app/App.h"
#include "cinder/Utilities.h"
#include <iostream>
#include "DMXPro.h"
#include "cinder/Log.h"
using namespace ci;
using namespace... |
<commit_before>/*
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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>/*
* Copyright (C) 2014 Martin Preisler <martin@preisler.me>
*
* This file is part of oclcrypto.
*
* 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, i... |
<commit_before>// Scintilla source code edit control
/** @file LexLua.cxx
** Lexer for Lua language.
**
** Written by Paul Winwood.
** Folder by Alexey Yutkin.
** Modified by Marcos E. Wurzius & Philippe Lhoste
**/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
... |
<commit_before>#include <algorithm>
#include "Parser.h"
Parser::Parser()
: m_stopParser( false )
{
}
Parser::~Parser()
{
if ( m_thread == nullptr )
return;
{
std::lock_guard<std::mutex> lock( m_lock );
if ( m_tasks.empty() == true )
m_cond.notify_all();
m_stop... |
<commit_before>#include "Player.hpp"
#include <iostream>
void Player::update (sf::Time deltaTime) {
// get input from globals and process:
sf::Vector2f tmpPos = getPosition();
int width = getWidth();
int height = getHeight();
int dir = -1;
if (input[0]) { tmpPos.x -= 1; dir = 3; }
if (input[1]) { tmpPos.x += ... |
<commit_before>// Copyright (c) 2014, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE source in the root of the Project.
#include <boost/python.hpp... |
<commit_before>/*
* Koder is a code editor for Haiku based on Scintilla.
*
* Copyright (C) 2014-2015 Kacper Kasper <kacperkasper@gmail.com>
*
* 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 Foundatio... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
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 condi... |
<commit_before>// Copyright (c) 2011 Vince Durham
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "script.h"
#include "auxpow.h"
#include "init.h"
using namespace std;
using namespace boost;
unsigned char pchMe... |
<commit_before>// Copyright (c) 2014-2015 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 "base58.h"
#include "hash.h"
#include "uint256.h"
#include <assert.h>
#include <stdint.h>
#include ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inspectorhelpwindow.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2006-12-13 12:00:06 $
*
* The Contents of this fil... |
<commit_before>/// \file buffer.cpp
/// Contains the main code for the Buffer.
#include <fcntl.h>
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sstream>
#include <sys/time.h>
#include "buffer_stream.h"
... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2006 Laurent Ribon (laumaya@users.sourceforge.net)
Version 0.9.6, packaged on June, 2006.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can red... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
Version 0.9.9, packaged on May, 2008.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can redi... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "SkShader.h"
/*
* Want to ensure that our bitmap sampler (in bitmap shader) keeps ple... |
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... |
<commit_before>// Copyright (c) 2013 Plenluno All rights reserved.
#include <libnode/os.h>
#include <libnode/net.h>
#include "./gtest_common.h"
namespace libj {
namespace node {
TEST(GTestOs, TestOsInfo) {
String::CPtr hostname = os::hostname();
String::CPtr type = os::type();
String::CPtr release = os:... |
<commit_before>#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#define close closesocket
#define sleep Sleep
#else
#include <netdb.h>
#include <unistd.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sstream>
#include "client.h"
#define... |
<commit_before>#include <Eigen/Sparse>
#include <iostream>
using namespace std;
int main() {
Eigen::SparseMatrix<double> m(1000000,1000);
cerr << "ok!\n";
}
<commit_msg>remove accidentally committed file<commit_after><|endoftext|> |
<commit_before>#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/ethernet.h>
#include "uvxbridge.h"
#include "uvxlan.h"
static uint64_t
mac_parse(const char *input)
{
char *idx, *mac = strdup(input);
const char *del = ":";
uint64_t mac_num = 0;
uint8_t *m... |
<commit_before>#pragma once
// ----------------------------------------------------------------------
namespace tree
{
// ----------------------------------------------------------------------
template <typename N, typename F1> inline void iterate_leaf(N&& aNode, F1&& f_name)
{
if (aNode.is_leaf()) ... |
<commit_before>/*
** Copyright 2011-2017 Centreon
**
** 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 ... |
<commit_before>/*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
* Copyright 2020 Axel Waggershauser
*
* 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.o... |
<commit_before>#ifndef context_hh_INCLUDED
#define context_hh_INCLUDED
#include "window.hh"
#include "input_handler.hh"
#include "user_interface.hh"
namespace Kakoune
{
// A Context is used to access non singleton objects for various services
// in commands.
//
// The Context object links an InputHandler, an Editor ... |
<commit_before>#include "spriteStyle.h"
#include "platform.h"
#include "tile/tile.h"
#include "gl/shaderProgram.h"
#include "gl/texture.h"
#include "gl/vertexLayout.h"
#include "util/builders.h"
#include "view/view.h"
#include "labels/spriteLabel.h"
#include "glm/gtc/type_ptr.hpp"
namespace Tangram {
SpriteStyle::S... |
<commit_before>#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <functional>
#include <cstddef>
static constexpr int min = 1;
static constexpr int max = 255;
struct Hash {
inline std::size_t operator () (std::vector<char> const & str) const
{
return std::hash<st... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// @(#)root/textinput:$Id$
// Author: Axel Naumann <axel@cern.ch>, 2011-05-21
/*************************************************************************
* Copyright (C) 1995-2011, Rene Brun and Fons Rademakers. *
* All rights reserved. *
... |
<commit_before>#include "mdns.hpp"
#include <net/if.h> // if_nametoindex()
#include <v8.h>
#include "mdns_utils.hpp"
#include "dns_service_ref.hpp"
#include "txt_record_ref.hpp"
#ifdef NODE_MDNS_USE_SOCKET_WATCHER
# include "socket_watcher.hpp"
#endif
using namespace v8;
using namespace node;
namespace node_mdns {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.