text stringlengths 54 60.6k |
|---|
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
<commit_before> /* -*- mode: c++; c-basic-offset:4 -*-
decryptverifyfilescontroller.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2008 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public... |
<commit_before>#include <b9.hpp>
#include <b9/loader.hpp>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
/// B9run's usage string. Printed when run with -help.
static const char* usage =
"Usage: b9run [<option>...] [--] [<module> [<main>]]\n"
" Or: b9run -help\n"
"Options:\n"
" ... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>// matrixMultiplication.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
//0 - podanych macierzy nie mona pomnoy
//1 - wszystko poszo zgodnie z planem - macierz pomnoona
//RM - ResultMatrix
int matrixMultiplication(float **firstMat... |
<commit_before>#include <catch2/catch.hpp>
#include <higanbana/core/system/time.hpp>
#include <vector>
#include <thread>
#include <future>
#include <optional>
#include <cstdio>
#include <iostream>
#include <experimental/coroutine>
class SuperLBS
{
//std::vector<std::thread> m_threads;
};
struct suspend_never {
... |
<commit_before>#pragma once
constexpr double CESIUS_MIN = -273.15;
constexpr double KELVIN_MIN = 0;
constexpr double FAHRENHEIT_MIN = -459.67;
class TemperatureConverter
{
public:
// TemperatureConverter();
double celsiusToKelvin(const double& celsius);
double kelvinToCelsius(const double& celsius);
double celsiu... |
<commit_before>#include "Config.hpp"
#include "EventOutputQueue.hpp"
#include "PointingRelativeToScroll.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace RemapFunc {
List* PointingRelativeToScroll::queue_ = NULL;
Flags PointingRelativeToScroll::currentFromFlags_ = NULL;
TimerWrapper PointingRelativeTo... |
<commit_before>// -*- c++ -*-
/*=========================================================================
Program: Visualization Toolkit
Module: vtkNetCDFCOARDSReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.h... |
<commit_before>#include "model.h"
#include <QDebug>
using namespace qReal;
using namespace model;
Model::Model()
{
mClient = new client::Client();
rootItem = new ModelTreeItem(ROOT_ID, NULL);
treeItems.insert(ROOT_ID, rootItem);
mClient->setProperty(ROOT_ID, "Name", ROOT_ID.toString());
loadSubtreeFr... |
<commit_before>/*
Copyright (C) 2013 Martin Klapetek <mklapetek@kde.org>
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 opt... |
<commit_before>/*
MIT License
Copyright (c) 2016 ME_Kun_Han
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
<commit_before>/*************************************************************************
*
* $RCSfile: servicenames_coosystems.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: iha $ $Date: 2004-01-17 13:09:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the... |
<commit_before>/* dtkCommunicatorMpi.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Mon Feb 15 16:51:02 2010 (+0100)
* Version: $Id$
* Last-Updated: jeu. oct. 4 18:11:31 2012 (+0200)
* By: Nicolas Niclausse
* Update #: 615
*/
/* Commentary:
*
*/
/* Ch... |
<commit_before>//===-- MipsMCTargetDesc.cpp - Mips Target Descriptions -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===--- PartiallyInlineLibCalls.cpp - Partially inline libcalls ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright (c) 2011 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/chromeos/accessibility_util.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login_manager_view.h"
#include <signal.h>
#include <sys/types.h>
#include "app/l10n_util.h"
#includ... |
<commit_before>// inipp.hh - minimalistic ini file parser class in single header file
//
// Copyright (c) 2009, Florian Wagner <florian@wagner-flo.net>.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions ... |
<commit_before>// Copyright (c) 2011 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/policy/device_token_fetcher.h"
#include <algorithm>
#include "base/message_loop.h"
#include "chrome/browser/... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
//////////////////////////////////////////////////////////////////////////////
//
// ... |
<commit_before>// Copyright (c) 2011 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/prerender/prerender_manager.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/t... |
<commit_before>/*
Copyright (c) DataStax, 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 law or agreed to... |
<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/privacy_blacklist/blacklist.h"
#include <algorithm>
#include <limits>
#include <string>
#include "base/file_... |
<commit_before>#include <QString>
#include <QtTest>
#include <getopt.h>
#include "application.h"
#include <iostream>
#include <fstream>
class StreamRedirect
{
public:
StreamRedirect(std::ostream & in_original, std::ostream & in_redirect) :
m_original(in_original),
m_old_buf(... |
<commit_before>// RUN: cat %s | %cling | FileCheck %s
// This test makes sure the interpreter doesn't create many useless empty
// transactions.
// Author: Vassil Vassilev
#include "cling/Interpreter/Interpreter.h"
#include "cling/Interpreter/Transaction.h"
#include "clang/AST/Decl.h"
#include <stdio.h>
.rawInput... |
<commit_before>#include <cstdio>
#include <cstdlib>
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#if defined(_WIN32) || defined(_WIN64)
# include <windows.h>
# define sleep(x) Sleep((DWORD)(x*1000))
#else
# include <unistd.h>
#endif
#include "pokemon.h"
static
int
xSleep(lua_Stat... |
<commit_before>#include "hand_rolled.hpp"
#define ACCEPT_REFERENCE_WRAPPER 1
#define INSTRUMENT_COPIES 1
#define BOOST_TEST_MODULE TypeErasure
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE(hand_rolled)
{
#define ECHO(expr) \
do { ... |
<commit_before>//===--- AccessMarkerElimination.cpp - Eliminate access markers. ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>
//g++-4.4 -DNOMTL -Wl,-rpath /usr/local/lib/oski -L /usr/local/lib/oski/ -l oski -l oski_util -l oski_util_Tid -DOSKI -I ~/Coding/LinearAlgebra/mtl4/ spmv.cpp -I .. -O2 -DNDEBUG -lrt -lm -l oski_mat_CSC_Tid -loskilt && ./a.out r200000 c200000 n100 t1 p1
#define SCALAR double
#include <iostream>
... |
<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.
*
* Copyright (c) 2012, Sergey Lisitsyn
*/
#if... |
<commit_before>
//
// big_number.cpp
//
// Class that implements a BigNumber representation.
//
// Created by Ryan Faulkner on 4/16/13.
// Copyright (c) 2013. All rights reserved.
//
#include <iostream>
#include <string>
using namespace std;
class BigNumber {
public:
BigNumber()
{
... |
<commit_before>/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief String utilities.
*/
#pragma once
#include "./config.hpp"
#include "./char.hpp"
#include "./string.hpp"
#include "./detail/string_traits.hpp"
#include "./EncodingUtils.hpp"
#include <cstring>
#include <type_trai... |
<commit_before>#include "helpers.hpp"
#include <combinations.hpp>
#include <set>
#include <vector>
#include <string>
#include <iterator>
#include "catch.hpp"
using iter::combinations;
using itertest::BasicIterable;
using itertest::SolidInt;
using CharCombSet = std::vector<std::vector<char>>;
TEST_CASE("combination... |
<commit_before>//===-- RuntimeDyldMachO.cpp - Run-time dynamic linker for MC-JIT -*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>/*
* Copyright 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 la... |
<commit_before>#include <iostream>
#include <cmath>
#include <queso/asserts.h>
#include <queso/GslVector.h>
#include <queso/GslMatrix.h>
#include <queso/VectorSet.h>
#include <queso/VectorSpace.h>
#include <queso/BoxSubset.h>
#include <queso/ScalarFunction.h>
#include <queso/GslOptimizer.h>
#include <queso/OptimizerMon... |
<commit_before>// -----------------------------------------------------------------------------
//
// Copyright (C) 2021 CERN & Newcastle University for the benefit of the
// BioDynaMo collaboration. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... |
<commit_before>//Implementation of a Forest Fire Simulation
#include <cassert>
#include <random>
#include "forest.hpp"
#include "tclap/ValueArg.h"
WARPED_REGISTER_POLYMORPHIC_SERIALIZABLE_CLASS(ForestEvent)
std::vector<std::shared_ptr<warped::Event> > Forest::initializeLP() {
// Register random number generator... |
<commit_before>/// \file
/// \ingroup tutorial_dataframe
/// \notebook -nodraw
/// Showcase registration of callback functions that act on partial results while
/// the event-loop is running using `OnPartialResult` and `OnPartialResultSlot`.
/// This tutorial is not meant to run in batch mode.
///
/// \macro_code
///
/... |
<commit_before>//= CheckerDocumentation.cpp - Documentation checker ---------------*- C++ -*-//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <catch.hpp>
#include <experimental/filesystem>
#include <pddlparse/AST.h>
#include <pddlparse/Parse.h>
namespace fs = std::experimental::filesystem;
const pddl::Context::WarningCallback ignoreWarnings = [](const auto &, const auto &){};
const auto pddlInstanceBasePath = fs::path("data") / "p... |
<commit_before>/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>/**
* @file perceptron_test.cpp
* @author Udit Saxena
*
* Tests for perceptron.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/perceptron/perceptron.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
using namespace mlpack;
using namespace arma;
using namesp... |
<commit_before>/*
* Copyright (c) 2015 Mikhail Baranov
* Copyright (c) 2015 Victor Gaydov
*
* 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/.
*/
#include "roc_core... |
<commit_before>/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* 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... |
<commit_before>//===-- sanitizer_symbolizer_report.cpp -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>#include "face_normals.hpp"
#include "triangulation_enums.hpp"
#include "indexing.hpp"
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
#define __GLM_GLM_HPP_INCLUDED
#include <glm/glm.hpp> // glm
#endif
// Include standard headers
#include <stdint.h> // uint32_t etc.
#include <vector> // std::vector
n... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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>// Copyright (C) 2018 Egor Pugin <egor.pugin@gmail.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/.
#include <primitives/exceptions.h>
#ifdef U... |
<commit_before>//===- unittest/Tooling/ToolingTest.cpp - Tooling unit tests --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#ifndef TEST__PERFORMANCE__UTILITY_HPP
#define TEST__PERFORMANCE__UTILITY_HPP
#include <stdexcept>
#include <boost/algorithm/string.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/math/special_functions/fpclassify... |
<commit_before>/*
anycmd.cpp - Total Commander lister plugin
Copyright (C) 2012-2013 by Serge Lamikhov-Center
MIT License
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, inc... |
<commit_before>#include <iostream>
#include <string>
#include <sstream>
using namespace std;
/* Declaration of the Structure used to store the different budget variables. */
struct MonthlyBudget {
double housing, utilities, household_expenses, transportation, food, medical, insurance, entertainment, clothing, misc;
... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 Ulrich von Zadow
//
// 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 Li... |
<commit_before>/**************************************************************************
**
** Copyright (C) 2015 Hugues Delorme
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accord... |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
// Boost
#include <boost/make_shared.hpp>
// StdAir
#include <stdair/stdair_exceptions.hpp>
#include <stdair/stda... |
<commit_before>//#include "lodepng.h"
#include "filters.h"
//#include <iostream>
void decodeOneStep(const char* filename, std::vector<unsigned char> *image, unsigned *width, unsigned *height)
{
//decode
unsigned error = lodepng::decode(*image, *width, *height, filename);
//if there's an error, display it
if(e... |
<commit_before>#include <apf.h>
#include "apfMDS.h"
#include <apfMesh2.h>
#include <gmi_mesh.h>
#include <PCU.h>
int main(int argc, char** argv)
{
assert(argc == 3);
MPI_Init(&argc,&argv);
PCU_Comm_Init();
gmi_register_mesh();
//load model and mesh
double t0 = MPI_Wtime();
apf::Mesh2* m = apf::loadMdsMes... |
<commit_before>#include "HeatConductionMaterial.h"
template<>
InputParameters validParams<HeatConductionMaterial>()
{
InputParameters params = validParams<Material>();
params.addCoupledVar("temp", "Coupled Temperature");
params.addParam<Real>("thermal_conductivity", "The thermal conductivity value");
params.... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robert Bosch LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
<commit_before>
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>
#include "firebasepush.hh"
#include <iostream>
#include <string.h>
#include <flexisip/logmanager.hh>
using namespace std;
using namespace flexisip;
/*
* This supports the legacy http Firebase protocol:
* https://firebase.google.com/docs/cloud-messaging/http-server-ref
*/
FirebasePushNotificationRe... |
<commit_before>// Copyright (C) 2014, Richard Thomson. All rights reserved.
#include "json.h"
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/spirit/include/qi.hpp>
using namespace boost::spirit::qi;
namespace
{
typedef std::pair<std::string, json::value> key_value_pair;
}
BOOST_FUSION_ADAPT_ST... |
<commit_before>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#include "bsenote.hh"
#include "bseutils.hh"
#include "bseieee754.hh"
#include "bsemathsignal.hh"
#include <string.h>
#include <birnet/birnet.hh>
/* --- functions --- */
namespace {
struct FreqCmp {
inline int
operator() (float... |
<commit_before>#include "includes.h"
SDL_Window * mainWindow = NULL;
SDL_Renderer * mainRenderer = NULL;
bool init();
bool loadMedia();
void close();
bool checkCollision(vector<SDL_Rect>& a, vector<SDL_Rect>& b);
const int gameWidth = 1280;
const int gameHeight = 720;
#include <iostream>
#include <cstring>
#incl... |
<commit_before>/*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015-2018 Vladimir Menshakov
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 v... |
<commit_before>#include "replication/heartbeat_manager.hpp"
#include "arch/arch.hpp"
#include "arch/timing.hpp"
heartbeat_sender_t::heartbeat_sender_t(int heartbeat_frequency_ms) :
heartbeat_frequency_ms_(heartbeat_frequency_ms), heartbeat_timer_(NULL), continue_firing(false) {
rassert(heartbeat_frequency... |
<commit_before>#include <sstream>
#include "runtime/core/arithmetic_impl.h"
#include "errors/error_factory.h"
#include "system/globalenv.h"
#include "types/root_typemanager.h"
#include "types/casting.h"
#include "util/Assert.h"
#include "runtime/numerics/NumericsImpl.h"
#include "errors/error_factory.h"
namespace xqp ... |
<commit_before>// This code is part of the project "Ligra: A Lightweight Graph Processing
// Framework for Shared Memory", presented at Principles and Practice of
// Parallel Programming, 2013.
// Copyright (c) 2013 Julian Shun and Guy Blelloch
//
// Permission is hereby granted, free of charge, to any person obtainin... |
<commit_before>// armory.cpp : Defines the entry point for the DLL application.
// Some code copied from other default plugins ;)
/*
BSD license
Copyright (c) 2016 Kaadmy
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the f... |
<commit_before>// @(#)root/minuit2:$Name: $:$Id: Numerical2PGradientCalculator.cpp,v 1.8.4.4 2005/11/29 11:08:35 moneta Exp $
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
/**********************************************************************
* ... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "generic_peek.h"
#include <vespa/eval/eval/nested_loop.h>
#include <vespa/eval/eval/wrap_param.h>
#include <vespa/vespalib/util/overload.h>
#include <vespa/vespalib/util/stash.h>
#in... |
<commit_before>/*
* SerialTopLvlProtocoll.cpp
*
* Created on: 18.05.2017
* Author: aca619
*/
#include <cstring>
#include "SerialProtocoll.h"
#include "ITopLvlProtocoll.h"
#include "../../Tests/Serial/SerialTestStub.h"
#include <string.h>
#include <Logger.h>
#include <Logscope.h>
#include "PuckSignal.h"
us... |
<commit_before>/* -*-c++-*-
* Copyright (C) 2008 Cedric Pinson <mornifle@plopbyte.net>
*
* 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 f... |
<commit_before>/**
Released as open source by Gabriel Caudrelier
Developed by Gabriel Caudrelier, gabriel dot caudrelier at gmail dot com
https://github.com/metrodango/pip3line
Released under AGPL see LICENSE for more information
**/
#include "packetmodelabstract.h"
#include "packet.h"
#include <QDebug>
#include <Q... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*
==============================================================================
OscProcessor.cpp
Created: 22 Jan 2015 10:56:59pm
Author: Daniel Lindenfelser
==============================================================================
*/
#include "OscProcessor.h"
OscProcessor::Osc... |
<commit_before>// Copyright Daniel Wallin 2009. 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)
#ifndef LUABIND_DETAIL_MAKE_INSTANCE_090310_HPP
# define LUABIND_DETAIL_MAKE_INSTANCE_0... |
<commit_before>#include <cassert>
#include <cmath>
#include <vector>
#ifdef _WIN32
#include "mferror.h"
#include "windows.h"
#include "mmsystem.h"
#include "mmreg.h"
#endif
#include "VorbisDecoder.hpp"
#ifdef _DEBUG
#include "odbgstream.hpp"
#include "iidstr.hpp"
using std::endl;
// keep the compiler quiet about do... |
<commit_before>#include "Mocks.hpp"
#include <ctime>
using namespace blackhole;
class base_frontend_t {
public:
virtual void handle(log::record_t&& record) = 0;
};
template<class Formatter, class Sink>
class frontend_t : public base_frontend_t {
const std::unique_ptr<Formatter> m_formatter;
const std::u... |
<commit_before>//#define NDEBUG // Debug supression
#include <os>
#include <iostream>
#include <net/inet>
using namespace std;
using namespace net;
uint8_t* buf = 0;
int bufsize = 0;
uint8_t* prev_data = 0;
class global {
static int i;
public:
global(){
printf("[*] Global constructor printing %i \n",++i);
... |
<commit_before>/** @file editorviewscene.cpp
* @brief Сцена для отрисовки объектов
* */
#include "editorviewscene.h"
#include <QGraphicsTextItem>
#include <QtGui>
#include "editorviewmviface.h"
#include "editorview.h"
#include "mainwindow.h"
#include "../mainwindow/mainwindow.h"
using namespace qReal;
EditorView... |
<commit_before>/**
Copyright 2015 Joachim Wolff
Master Thesis
Tutor: Fabrizio Costa
Winter semester 2015/2016
Chair of Bioinformatics
Department of Computer Science
Faculty of Engineering
Albert-Ludwig-University Freiburg im Breisgau
**/
#include <algorithm>
#include <iostream>
#include <iterator>
#include <u... |
<commit_before>//
// Copyright (C) 2007-2009 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2007-2009 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Auth... |
<commit_before>// Copyright (c) 2011 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.
// Illustrates how to use worker threads that issue completion callbacks
#include "base/bind.h"
#include "base/logging.h"
#include "ba... |
<commit_before>/**
* These codes are licensed under the Unlicense.
* http://unlicense.org
*/
#ifndef FURFURYLIC_GUARD_4B6A00F6_E33D_4114_9F57_D2C2E984E809
#define FURFURYLIC_GUARD_4B6A00F6_E33D_4114_9F57_D2C2E984E809
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <ios>
#include <memory>
#include... |
<commit_before>#include <cassert>
#include <iostream>
#include <map>
#include <random>
#include <GLFW/glfw3.h>
#include <glbinding/Binding.h>
#include <glbinding/callbacks.h>
#include <glbinding/gl/gl.h>
#include <globjects/globjects.h>
#include <glm/gtc/matrix_transform.hpp>
#include <openll/GlyphRenderer.h>
#incl... |
<commit_before>#include <cassert>
#include <iostream>
#include <climits>
#include "solvers/difference_assistant.h"
#include "config.h"
using namespace theorysolver;
#define VERBOSE_ASSISTANT false
#define EF satsolver::ExtendedFormula
#define SPEF std::shared_ptr<EF>
#define DA DifferenceAtom
#define SPDA std::share... |
<commit_before>// Copyright (c) 2013 The Chromium Embedded Framework 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 "cef_handler.h"
#include "include/base/cef_bind.h"
#include "include/cef_app.h"
#include "include/wrapper... |
<commit_before>AliAnalysisTaskMinijet* AddTaskMinijet(Int_t runNumber = -1,
TString format = "esd",
Bool_t useMC = false,
Bool_t mcOnly = false,
Bool_t useHighMult = false
)
{
//Seetings
Float_t ptTrigMin = 0.7;
Float_t ptAssocMi... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkAMRUtilities.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... |
<commit_before>/*
Copyright (c) 2008 Volker Krause <vkrause@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 as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) a... |
<commit_before>/*************************************************************************
*
* $RCSfile: xdictionary.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: er $ $Date: 2002-12-06 18:50:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*
* ForwardChainer.cc
*
* Copyright (C) 2014,2015 Misgana Bayetta
*
* Author: Misgana Bayetta <misgana.bayetta@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software... |
<commit_before>/*
Copyright (c) 2003, 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>#include "DeclarativeSettings.hpp"
#include "Utils.hpp"
#include <QLoggingCategory>
namespace Telegram {
namespace Client {
DeclarativeRsaKey::DeclarativeRsaKey(QObject *parent)
: QObject(parent)
{
}
bool DeclarativeRsaKey::isValid() const
{
return m_key.isValid();
}
bool DeclarativeRsaKey... |
<commit_before>/*
* math.hpp
*
* Created on: Aug 19, 2017
* Author: santiago
*/
#pragma once
#include <math.h>
#include <algorithm>
#include <functional>
#include <cassert>
namespace mch{
constexpr float PI = 3.14159265359f;
//CONVERSION CONSTANTS
static constexpr float D2R = (PI) / 180.f;
static cons... |
<commit_before>#include <iostream>
#include <cstring>
#include <stdexcept>
namespace accelergy
{
std::string exec(const char* cmd) {
std::string result = "";
char buffer[128];
FILE* pipe = popen("which accelergy", "r");
if (!pipe) {
std::cout << "popen(" << cmd << ") failed" << std::endl;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.