text stringlengths 54 60.6k |
|---|
<commit_before>#include "stdafx.h"
#include "include/framework.h"
#include "include/debug.h"
#include "include/exceptions.h"
namespace yappy {
namespace framework {
using error::checkWin32Result;
///////////////////////////////////////////////////////////////////////////////
// class ResourceManager impl
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: abstdlg.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: vg $ $Date: 2007-10-15 13:07:27 $
*
* The Contents of this file are made a... |
<commit_before>/**
* @file lldockcontrol.cpp
* @brief Creates a panel of a specific kind for a toast
*
* $LicenseInfo:firstyear=2000&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it u... |
<commit_before>/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... |
<commit_before><commit_msg>can resolve multiple links now<commit_after><|endoftext|> |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// File: Expression.hpp
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, I... |
<commit_before>#pragma once
#include "../geometry/point2d.hpp"
#include "../geometry/rect2d.hpp"
#include "../base/math.hpp"
struct MercatorBounds
{
static double minX;
static double maxX;
static double minY;
static double maxY;
inline static double ClampX(double d)
{
if (d < MercatorBounds::minX) r... |
<commit_before>/*
* FUNCTION:
* Base class for SQL-backed persistent storage.
*
* HISTORY:
* Copyright (c) 2016 Linas Vepstas <linasvepstas@gmail.com> except for
* MurmurHash2 written by Austin Appleby which is separately placed into
* the public domain.
*
* LICENSE:
* This program is free software; you can r... |
<commit_before>/* Copyright (c) 2017, EPL-Vizards
* 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 ... |
<commit_before>
// STL includes
#include <cstring>
#include <cstdio>
#include <iostream>
#include <cerrno>
// Linux includes
#include <fcntl.h>
#include <sys/ioctl.h>
// Local Hyperion includes
#include "ProviderSpi.h"
#include <utils/Logger.h>
ProviderSpi::ProviderSpi(const Json::Value &deviceConfig)
: LedDevice(... |
<commit_before><commit_msg>Made the horizontal move of parallax more reasonable<commit_after><|endoftext|> |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include <iostream>
#include "binary.hxx"
#include "bitnode.hxx"
namespace despairagus {
namespace bitwisetrieNS {
using std::cout;
using std::ostream;
using namespace bitnodeNS;
using namespace binaryNS;
template <typename A, typename B>
class bitwisetrie final {
templa... |
<commit_before>#include "MifareClassic.h"
#define BLOCK_SIZE 16
#define MIFARE_CLASSIC ("Mifare Classic")
MifareClassic::MifareClassic(Adafruit_NFCShield_I2C& nfcShield)
{
_nfcShield = &nfcShield;
}
MifareClassic::~MifareClassic()
{
}
NfcTag MifareClassic::read(byte *uid, unsigned int uidLength)
{
uint8_t ke... |
<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 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<commit_before>/*************************************************************************
*
* $RCSfile: salsys.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: vg $ $Date: 2003-04-15 16:08:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see http... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017 The GalaxyCash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assert.h"
#in... |
<commit_before>#include <wayfire/plugin.hpp>
#include <wayfire/output.hpp>
#include <wayfire/core.hpp>
#include <wayfire/view.hpp>
#include <wayfire/view-transform.hpp>
#include <wayfire/render-manager.hpp>
#include <wayfire/workspace-stream.hpp>
#include <wayfire/workspace-manager.hpp>
#include <wayfire/signal-definit... |
<commit_before><commit_msg>Made a GenericProp template and created the specific properties from that.<commit_after><|endoftext|> |
<commit_before><commit_msg>Nanoseconds are unsigned<commit_after><|endoftext|> |
<commit_before>#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
for (size_t i = 0; i < argc; i++) {
printf("%s \n", argv[i]);
}
getchar();
}<commit_msg>mudanças na main<commit_after>#include <stdlib.h>
#include <stdio.h>
#include <string>
using std::string;
int main(int argc, char *argv... |
<commit_before>/* Copyright 2010 SPARTA, Inc., dba Cobham Analytic Solutions
*
* This file is part of WATCHER.
*
* WATCHER 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 vers... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before>#include "estimator/dcm_attitude_estimator.hpp"
#include "hal.h"
#include "protocol/messages.hpp"
#include "unit_config.hpp"
DCMAttitudeEstimator::DCMAttitudeEstimator(Communicator& communicator)
: dcm(Eigen::Matrix3f::Identity()),
attitudeMessageStream(communicator, 20) {
}
attitude_estimate_t... |
<commit_before>#include "NeuralNetwork.h"
#include <iostream> /////////////////
#include <time.h>
#include <cmath>
int randSeed = (int)(time(NULL)%10000); /* Random seed */ ///////////////Test max limit
int randA = 4545; /* Random a value */
int randB = 8334; /* Random b value */
int randM = 8427; /* Random ... |
<commit_before>/* The Image Registration Toolkit (IRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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/l... |
<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 KDE project
Copyright (C) 2006-2008 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
T... |
<commit_before>
/*
* Copyright 2012 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 "SkColorPriv.h"
#include "SkGeometry.h"
#include "SkShader.h"
static void tesselate(const SkPath& src, SkPath* dst) {
SkPath::Ite... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assert.h"
#include "chainparams.h"
#include "main.h"
#includ... |
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#... |
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2013-2014 The Dogecoin developers
// Copyright (c) 2014 The Inutoshi developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include ... |
<commit_before>// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fms-extensions -emit-llvm -o - | FileCheck %s
// Test optnone on both function declarations and function definitions.
// Verify also that we don't generate invalid IR functions with
// both alwaysinline and noinline. (optnone implies noinline and wins
/... |
<commit_before>// Copyright 2016 The RE2 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 <stddef.h>
#include <stdint.h>
#include <map>
#include <string>
#include "re2/re2.h"
using re2::StringPiece;
using std::string;
// ... |
<commit_before>
// Library includes
#include <string>
#include <ostream>
#include <iostream>
#include <memory>
#include "grl/KukaFRI.hpp"
#include "grl/KukaFriClientData.hpp"
#include <boost/log/trivial.hpp>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <boost/asio.hpp>
#include <vector>
#includ... |
<commit_before>#ifndef STATIC_LINK
#define IMPLEMENT_API
#endif
#if defined(HX_WINDOWS) || defined(HX_MACOS) || defined(HX_LINUX)
#define NEKO_COMPATIBLE
#endif
#include <hx/CFFI.h>
#include "AdMobEx.h"
using namespace admobex;
AutoGCRoot* intestitialEventHandle = NULL;
static value admobex_init(value banner_id,v... |
<commit_before>#ifndef G2_FIELD_CORE_INCLUDE_FIELD_STRUCTS_HH_
#define G2_FIELD_CORE_INCLUDE_FIELD_STRUCTS_HH_
/*===========================================================================*\
author: Matthias W. Smith
email: mwsmith2@uw.edu
file: field_constants.hh
about: A header file for constant parameters use... |
<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_SHARED_PTR_CONVERTER_090211_HPP
# define LUABIND_SHARED_PTR_CONVERTER_0... |
<commit_before>/**
* \file
* \brief SignalsWaitTestCase class implementation
*
* \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
... |
<commit_before>#include <cassert>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <string>
#include <cstring>
#include <gtkmm.h>
#include <gtksourceviewmm.h>
#include <glib/gmessages.h>
using namespace std ;
using namespace Gtk;
using namespace Glib;
using namespace Gsv ;
#define LOG(message) \
s... |
<commit_before>#include <cassert>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <string>
#include <cstring>
#include <gtkmm.h>
#include <gtksourceviewmm.h>
#include <glib/gmessages.h>
using namespace std ;
using namespace Gtk;
using namespace Glib;
using namespace Gsv ;
#define LOG(message) \
s... |
<commit_before>//
// Created by nprat on 7/4/16.
//
#include <chrono>
#include <string>
#include "openGL.h"
std::shared_ptr<OpenGL> OpenGL::m_openGL = nullptr;
OpenGL::OpenGL()
{
m_openGL = nullptr;
m_renderChain = nullptr;
m_obj = nullptr;
m_display = nullptr;
m_lowestTime = 0;
}
OpenGL::~Open... |
<commit_before>#include <iostream>
#include <iomanip>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <ShlObj.h>
#include "Osiris.hpp"
#include "Modules/OsirisModule.hpp"
#include "Modules/OsirisModules.hpp"
#include <Utils/Utils.hpp>
#include <Ausar/Ausar.hpp>
#include <vector>
#include <iterator>
Osi... |
<commit_before>#ifndef MJOLNIR_POTENTIAL_LOCAL_FLEXIBLE_LOCAL_ANGLE_POTENTIAL_HPP
#define MJOLNIR_POTENTIAL_LOCAL_FLEXIBLE_LOCAL_ANGLE_POTENTIAL_HPP
#include <array>
#include <algorithm>
#include <limits>
#include <cassert>
#include <cmath>
namespace mjolnir
{
template<typename T> class System;
// Flexible Local Ang... |
<commit_before>/* $Id$ */
// Helper macros can be found in this file
// A set of them can be used to connect to proof and execute selectors.
TProof* connectProof(const char* proofServer)
{
TProof* proof = TProof::Open(proofServer);
if (!proof)
{
printf("ERROR: PROOF connection not established.\n");
ret... |
<commit_before>#ifndef _SDD_HOM_EVALUATION_HH_
#define _SDD_HOM_EVALUATION_HH_
#include <cassert>
#include <iosfwd>
#include "sdd/hom/context_fwd.hh"
namespace sdd { namespace hom {
/// @cond INTERNAL_DOC
/*-------------------------------------------------------------------------------------------*/
/// @brief Ev... |
<commit_before>/*************************************************************************
*
* $RCSfile: ZipPackageSink.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: mtg $ $Date: 2001-11-15 20:28:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>#include "fastext/FASTex.hpp"
#include <fmo/detector.hpp>
#include <fmo/processing.hpp>
namespace fmo {
const int THRESHOLD = 19;
const bool NON_MAX_SUP = false;
const size_t LEVELS = 6;
const size_t SKIPPED_LEVELS = 1;
const size_t PROCESSED_LEVELS = LEVELS - SKIPPED_LEVELS;
//... |
<commit_before>#include "catch.hpp"
#include <algorithm>
#include <array>
#include <cstdint>
#include <fmo/image.hpp>
#include <fstream>
const char* const IM_4x2_FILE = "assets/4x2.png";
const fmo::Image::Dims IM_4X2_DIMS = {4, 2};
const std::array<uint8_t, 24> IM_4x2_BGR = {
0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, ... |
<commit_before>//===--- Compilation.cpp - Compilation Task Implementation ----------------===//
//
// 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 Strigi Desktop Search
*
* Copyright (C) 2007 Alexandr Goncearenco <neksa@neksa.net>
*
* 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
... |
<commit_before>#include "config.hpp"
#include "handler.hpp"
#include <engine.hpp>
#if WINDOWS
#include <windows/context.hpp>
#endif
using namespace std;
using namespace e_engine;
using namespace OS_NAMESPACE;
#define KDEVELOP 0
#define COLOR 0
#define DO_SHA 0
void hexPrint( std::vector<unsigned char> const &_... |
<commit_before>#include <gtest/gtest.h>
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <iostream>
#include <queue>
using namespace std;
class pool
{
public:
pool(int max_size_ = 10): max_size(... |
<commit_before>/*
* Copyright 2014 Facebook, 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 "stdafx.h"
#include "Input.h"
static std::vector<FoneOSPoint> _points;
void Input::Init()
{
}
void Input::SendTouch(FoneOSPoint point)
{
_points.push_back(point);
}
FoneOSPoint Input::GetTouch()
{
if (_points.size() == 0)
{
return FoneOSPoint();
}
FoneOSPoint ret = _points[0];
Log... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <random>
#include <catch2/catch.hpp>
#include "delaunay.h"
TEST_CASE("Delaunay triangulation should be able to triangulate 3 points as float", "[DelaunayTest]") {
std::vector<Vector2<float> > points;
points.push_back(Vector2<float>(0.0f, 0.0f));
points.push... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlsecuritycontext_mscryptimpl.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2005-03-10 18:11:27 $
*
* The Contents of this file are made available subject to the terms of
* either ... |
<commit_before>#ifndef REMAPFUNCBASE_HPP
#define REMAPFUNCBASE_HPP
#include "bridge.h"
#include "FromEvent.hpp"
#include "IOLogWrapper.hpp"
#include "KeyCode.hpp"
#include "ListHookedKeyboard.hpp"
#include "RemapFuncClasses.hpp"
#include "ToEvent.hpp"
namespace org_pqrs_Karabiner {
namespace RemapFunc {
class R... |
<commit_before><commit_msg>Final implementation of multiple camera support for operator WebCamera<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2016 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>#include "Args.hpp"
#include <QApplication>
#include <QCommandLineParser>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QStringList>
namespace chatterino {
Args::Args(const QApplication &app)
{
QCommandLineParser parser;
parser.setApplication... |
<commit_before><commit_msg>fdo#78153 SwTxtFrm::ManipOfst() requires a valid position<commit_after><|endoftext|> |
<commit_before>/*********************************************************************
* thread-sleep: Force Node.js to sleep
*
* Copyright (c) 2015 Forbes Lindesay
* Copyright (c) 2015 Tiancheng "Timothy" Gu
*
* MIT License
********************************************************************/
#include <nan.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 "base/file_util.h"
#include "base/path_service.h"
#include "base/ref_counted.h"
#include "chrome/browser/browser.h"
#include "... |
<commit_before>#include "Formatting.h"
#include <assert.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include "Buffers/Buffer.h"
#include "Buffers/ReadBuffer.h"
/*
* Readf is a simple sscanf replacement for working with non-null
* terminated strings
*
* specifiers:
* %% rea... |
<commit_before>#pragma once
#include "adjustment.hpp"
#include "io.hpp"
#include "vec.hpp"
#include "voxel.hpp"
#include <string>
#include <tuple>
#include <vector>
template <typename color_t>
void convert(const std::string &fname)
{
std::vector<voxel<color_t>> volume;
vec min, max;
uint64_t x, y, z;
std::cout <<... |
<commit_before>/*
* Copyright (c) 2013 Patrick Kelsey. 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 ... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* 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, mod... |
<commit_before>#include "test_cast.h"
#include <rtti.h>
#include <debug.h>
#include <memory>
namespace {
struct A
{
int a = 1;
virtual ~A() = default;
DECLARE_CLASSINFO
};
struct B: A
{
int b = 2;
DECLARE_CLASSINFO
};
struct C: B
{
int c = 3;
DECLARE_CLASSINFO
};
struct D
{
int... |
<commit_before>#include "CommentHandler.h"
#include <sstream>
#include "JZLogger.h"
using namespace std;
#define COMMENT_FLAG_NON 0
#define COMMENT_FLAG_SRC 1
#define COMMENT_FLAG_LINE_COMMENT 2
#define COMMENT_FLAG_BLOCK_COMMENT 3
#define COMMENT_FLAG_END 4
#define COMMENT_FLAG_STR 5
CommentHandler::CommentHandler(... |
<commit_before>/*
* Copyright (c) 2013 Patrick Kelsey. 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 ... |
<commit_before>#include <iostream>
#include <functional>
#include <memory>
#include <atomic>
#include <cmath>
#include "integration_test_helper.h"
#include "dronecore.h"
#include "plugins/telemetry/telemetry.h"
#include "plugins/action/action.h"
#include "plugins/gimbal/gimbal.h"
#include "plugins/offboard/offboard.h"
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageWrapPad.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>// This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.o... |
<commit_before>/**
* @file sparse_bias_layer.hpp
* @author Tham Ngap Wei
*
* Definition of the SparseBiasLayer class.
*/
#ifndef __MLPACK_METHODS_ANN_LAYER_SPARSE_BIAS_LAYER_HPP
#define __MLPACK_METHODS_ANN_LAYER_SPARSE_BIAS_LAYER_HPP
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/layer/layer_traits.hpp>... |
<commit_before>#ifndef CELL_AUTOMATA_ISING_SPIN_PARAMS
#define CELL_AUTOMATA_ISING_SPIN_PARAMS
template<typename spin_T, typename simulator_T>
struct Spin_params;
template<typename simulator_T>
class Neuman_flip_spin;
template<typename simulator_T>
struct Spin_params<Neuman_flip_spin<simulator_T>, simulator_T>
{
... |
<commit_before>/*******************************************************************************
Copyright (c) 2014, Jan Koester jan.koester@gmx.net
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* R... |
<commit_before>#include "rbis_fovis_update.hpp"
#include <path_util/path_util.h>
namespace MavStateEst {
FovisHandler::FovisHandler(lcm::LCM* lcm_recv, lcm::LCM* lcm_pub,
BotParam * param, BotFrames * frames): lcm_recv(lcm_recv), lcm_pub(lcm_pub), frames(frames){
verbose_ = true;
publi... |
<commit_before>/*
* Copyright 2012 BrewPi/Elco Jacobs.
*
* This file is part of BrewPi.
*
* BrewPi 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... |
<commit_before>/*******************************************************************************
Copyright (c) 2014, Jan Koester jan.koester@gmx.net
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* R... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief Library to build up VPack documents.
///
/// DISCLAIMER
///
/// Copyright 2015 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file ... |
<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) 2012 Viktor Gal
* Copyright (C)... |
<commit_before>#include "stdafx.h"
#include "Image.h"
#include "Kernel.h"
#include "ImgLoader.h"
namespace scv {
Image::Image(const scv::Point &p1, const std::string &fileName) : Panel(p1, Point(p1.x + 10, p1.y + 10)) {
_data = NULL;
loadImage(fileName);
setWidth(_realSize.x);
setHeight(_r... |
<commit_before>/**
* Copyright 2019 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>/*
* Copyright 2016 - 2019 gtalent2@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 <QBuffer>
#include <QFile>
#include <n... |
<commit_before>#include <atomic>
#include <string>
#include <gtest/gtest.h>
#include <teelogging/teelogging.h>
#include "../shell.h"
#include "../coroutine.h"
#include "../scheduler.h"
#include "../semaphore.h"
#include "../channel.h"
class CoroTest : testing::Test { };
using namespace cu;
cu::scheduler sch;
TEST(C... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: togglebuttontoolbarcontroller.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: ihi $ $Date: 2007-07-10 15:08:28 $
*
* The Contents ... |
<commit_before>#include <sys/socket.h>
#include "coap/observable.h"
#include "coap-uripath-dispatcher.h"
#include "coap/decoder-subject.hpp"
#include "main.h"
using namespace moducom::pipeline;
using namespace moducom::coap;
using namespace moducom::coap::experimental;
#ifndef FEATURE_MCCOAP_INLINE_TOKEN
#error "... |
<commit_before>#include "stdafx.h"
#include "DtorCorrectnessTest.h"
#include <iostream>
using namespace std;
class CtorDtorCopyCounter {
public:
static int s_outstanding;
static size_t s_construction;
CtorDtorCopyCounter(void) {
s_outstanding++;
s_construction++;
}
CtorDtorCopyCounter(const CtorDt... |
<commit_before>//
// DynamicVoiceManager.cpp
// C700
//
// Created by osoumen on 2014/11/30.
//
//
#include "DynamicVoiceManager.h"
//-----------------------------------------------------------------------------
DynamicVoiceManager::DynamicVoiceManager() :
mVoiceLimit(8)
{
}
//------------------------------... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: ModelComponent.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#include <cassert>
#include <cmath>
#include "SDL.h"
#include "AutomapPanel.h"
#include "GameWorldPanel.h"
#include "TextBox.h"
#include "../Game/CardinalDirection.h"
#include "../Game/CardinalDirectionName.h"
#include "../Game/Game.h"
#include "../Game/Options.h"
#include "../Interface/TextAlignment.... |
<commit_before>/*
* DistributionContainer.C
*
* Created on: Jul 6, 2012
* Author: alfoa
*/
#include "DistributionContainer.h"
//#include "Factory.h"
//#include "distribution_1D.h"
#include "distribution_min.h"
#include <iostream>
#include <math.h>
#include <cmath>
#include <cstdlib>
#include <stdlib.h>
#incl... |
<commit_before>#include <algorithm>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <utility>
#include <vector>
using Coord = std::pair<int,int>;
using RNG = std::mt19937;
int NumDigits(int n) {
int v = 0;
while (n > 0) {
v++;
n/=10;
}
return v;
}
namespace { // State
class Stat... |
<commit_before>/* This file is part of VoltDB.
* Copyright (C) 2008-2015 VoltDB Inc.
*
* This file contains original code and/or modifications of original code.
* Any modifications made by VoltDB Inc. are licensed under the following
* terms and conditions:
*
* This program is free software: you can redistribute... |
<commit_before>#include "ee/jsb/core/jsb_core_common.hpp"
#include "Cocos2dxStore.h"
#include "ee/jsb/core/jsb_templates.hpp"
#include "jsb_cc_soomla_store.hpp"
namespace ee {
namespace core {
template <>
soomla::CCStoreAssets* get_value(const se::Value& value) {
return static_cast<soomla::CCStoreAssets*>(
... |
<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/views/extensions/theme_preview_infobar_delegate.h"
#include "app/l10n_util.h"
#include "base/string_util.h"
#... |
<commit_before>/***************************************************************************
Paraskevi.Ganoti@cern.ch - last modified on //2019
//
//Lauches SigmaStar analysis with rsn mini package
//Allows basic configuration of pile-up check and event cuts
//
*********************************************... |
<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 "app/l10n_util.h"
#include "base/file_util.h"
#include "base/rand_util.h"
#include "base/string_util.h"
#include "chrome/brows... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.