text stringlengths 54 60.6k |
|---|
<commit_before>/*
* (C) 2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "cli.h"
#if defined(BOTAN_HAS_ASN1) && defined(BOTAN_HAS_PEM_CODEC)
#include <botan/bigint.h>
#include <botan/hex.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef BTREE_KEYS_HPP_
#define BTREE_KEYS_HPP_
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include "config/args.hpp"
#include "containers/archive/archive.hpp"
#include "rpc/serialize_macros.hpp"
#if defined(__GN... |
<commit_before>#ifndef _C4_SSTREAM_HPP_
#define _C4_SSTREAM_HPP_
#include "c4/config.hpp"
#include "c4/span.hpp"
#include <limits>
#include <inttypes.h>
C4_BEGIN_NAMESPACE(c4)
//-----------------------------------------------------------------------------
template< class T > struct fmt_tag {};
#define _C4_DEFINE_F... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2012 Razor team
* Authors:
* Łukasz Twarduś <ltwardus@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it und... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2006 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*
Copyright (C) 2001 by W.C.A. Wijngaards
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) any later ... |
<commit_before>// Copyright (c) 2006-2008 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 "net/base/x509_certificate.h"
// Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424
// until NSS 3.12.2 com... |
<commit_before>/*
Copyright (C) 2002 by Anders Stenberg
Written by Anders Stenberg
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 ... |
<commit_before>// Copyright (c) 2012 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/at_exit.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/i18n/icu_util.h"
#include "base/memory/s... |
<commit_before>#ifndef RADIUMENGINE_COLOR_PRESET_HPP_
#define RADIUMENGINE_COLOR_PRESET_HPP_
#include <Core/Math/LinearAlgebra.hpp>
namespace Ra{
namespace Core{
/// Colors are defined as vector4, i.e. 4 floats in RGBA order.
/// displayable colors should have all their coordinates between 0 and ... |
<commit_before>#include <algorithm>
#include <cctype>
#include <Utils/MathUtils.hpp>
#include <Utils/StringUtils.hpp>
#include <Utils/VectorUtils.hpp>
namespace obe::Utils::String
{
std::vector<std::string> split(const std::string& str, const std::string& delimiters)
{
std::vector<std::string> tokens;... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
<commit_before>/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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 ... |
<commit_before>
/*
* Copyright (c) 2012 Karl N. Redgate
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, m... |
<commit_before>/*****************************************************************************
* crossbar.c : DirectShow access module for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id$
*
* Author: Damien Fouilleul <damien dot fouilleul at lap... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* XPLC - Cross-Platform Lightweight Components
* Copyright (C) 2000, Pierre Phaneuf
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License
... |
<commit_before>/*
* Author: Landon Fuller <landon@landonf.org>
*
* Copyright (c) 2015 Landon Fuller <landon@landonf.org>.
* All rights reserved.
*
* 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 t... |
<commit_before>/* Copyright (c) 2017-2018 Hans-Kristian Arntzen
*
* 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, c... |
<commit_before>#include <Eigen/Core> // Cholesky decomposition + solving
#include <Eigen/Cholesky> // of system of linear equations.
#include "nao_igm.h"
#include "maple_functions.h"
/**
* @brief Get feet positions.
*
* @param[out] left_foot_expected 3x1 expected position vector
* @param[out] right_foot... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2009 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/*
* Copyright 2011 Troels Blum <troels@blum.dk>
*
* This file is part of cphVB <http://code.google.com/p/cphvb/>.
*
* cphVB 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... |
<commit_before>/*
* Copyright (C) 2011
* Alessio Sclocco <a.sclocco@vu.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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... |
<commit_before>#ifndef Matrix_hpp
#define Matrix_hpp
//https://msdn.microsoft.com/ru-ru/library/f1b2td24.aspx
#include <iostream>
#include <fstream>
#include "MatrixException.hpp"
template <class MatrixT> class Matrix;
template <class MatrixT> std::istream& operator>> (std::istream& stream, Matrix<MatrixT>& matrix);
t... |
<commit_before>/*
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. Al... |
<commit_before>//+ Fitting 1-D histograms with cmaes
// Author: L. Moneta 10/2005
// Author: E. Benazera 05/2014
/**********************************************************************
* *
* Copyright (c) 2014 INRIA ... |
<commit_before>#pragma once
template<class A, class B>
class pair {
public:
A _a;
B _b;
pair(const A &a, const B &b) : _a(a), _b(b) {}
bool operator==(const pair<A, B> &other) {
return _a == other._a && _b == other._b;
}
};
template<int N>
class strbuf {
public:
char _buf[N];
strbuf(const char ... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright 2012-2016 Masanori Morise. All Rights Reserved.
// Author: mmorise [at] yamanashi.ac.jp (Masanori Morise)
//
// Spectral envelope estimation on the basis of the idea of CheapTrick.
//-----------------------------... |
<commit_before>#include <iostream>
#include <string>
#include <QApplication>
#include "framework/ModuleManager.hpp"
#include "framework/Configuration.hpp"
// foor Boost:
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.h... |
<commit_before>#include "Sensor/UltrasoundSensor.h"
#include "Data/UltrasoundData.h"
UltrasoundSensor::UltrasoundSensor(string port, int baudrate) : Sensor("Ultrasound Sensor"), conn(std::make_shared<SerialPort>(port, baudrate)) {
}
UltrasoundSensor::~UltrasoundSensor() {
}
bool UltrasoundSensor::ping() {
return co... |
<commit_before>#include "holmes.capnp.h"
#include <capnp/ez-rpc.h>
#include <llvm/Object/Binary.h>
#include <llvm/Object/Archive.h>
#include <llvm/Object/ObjectFile.h>
#include <llvm/ADT/StringRef.h>
#include <llvm/ADT/Triple.h>
#include <llvm/Support/MemoryBuffer.h>
#include <kj/debug.h>
#include <iostream>
#include... |
<commit_before>/*************************************************************************
*
* $RCSfile: BCatalog.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: vg $ $Date: 2005-03-10 15:18:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2006, ScalingWeb.com
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms, with or without modification, are
* pe... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>// Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
<commit_before>/*************************************************************************
*
* $RCSfile: RTableConnectionData.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: oj $ $Date: 2002-02-06 07:23:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*************************************************************************
*
* $RCSfile: QTableWindow.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: rt $ $Date: 2003-12-01 10:38:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this fil... |
<commit_before>/*
* Copyright deipi.com LLC and contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the... |
<commit_before><?hh //strict
/**
* This file is part of hhpack/migrate.
*
* (c) Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace HHPack\Migrate\Application;
use HHPack\Getopt as cli;
use H... |
<commit_before>#include <iostream>
#include "mminfo.h"
#include "hshgtest.h"
namespace
{
void DiffAddMid()
{
// Add new block in the middle
MemMon::MemoryMap m1, m2;
m1.Clear( 10 );
m2.Clear( 10 );
MemMon::Region r;
r.base = 0;
r.type = MemMon::Region::free;
r.size = 30;
m1.AddBlock( r );
r.size = 10;
... |
<commit_before>#ifndef IPOOL_H
#define IPOOL_H
#include <utility>
#include <functional>
class trait_pool_concurrency {
public:
class none{};
class global{};
class granular{};
class lockfree{};
class waitfree{};
};
class trait_pool_size {
public:
class bounded{};
class unbounded{};
};
cla... |
<commit_before>#include "country_status_display.hpp"
#include "framework.hpp"
#include "../gui/controller.hpp"
#include "../gui/button.hpp"
#include "../gui/text_view.hpp"
#include "../graphics/overlay_renderer.hpp"
#include "../graphics/display_list.hpp"
#include "../platform/platform.hpp"
#include "../base/thread... |
<commit_before>#include <node_buffer.h>
#include <stdint.h>
#include <iostream>
#include <string>
#include "talk/app/webrtc/jsep.h"
#include "webrtc/system_wrappers/interface/ref_count.h"
#include "common.h"
#include "datachannel.h"
using namespace node_webrtc;
v8::Persistent<v8::Function> DataChannel::constructor;... |
<commit_before>#include "dds_stream.hpp"
#include "gl_util.hpp"
#include "thirdparty/shaun/sweeper.hpp"
#include "thirdparty/shaun/parser.hpp"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cmath>
using namespace std;
GLenum DDSFormatToGL(DDSLoader::Format format)
{
switch (format)
{
cas... |
<commit_before>/*
module: terra-incognita
synopsis: ICFP 2006 contest postmission
author: heisenbug
copyright: 2006 terraincognita team
*/
#include <algorithm>
#include <iostream>
// Alternative (PseudoJIT) Universal Machine
typedef void (*Fun)(void);
void Halt(Fun* array0, unsigned (®s)[10])
{
std::cerr <... |
<commit_before>/*
*
* D-Bus++ - C++ bindings for D-Bus
*
* Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com>
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eit... |
<commit_before>#include "controls.h"
#include <unordered_map>
namespace controls {
std::unordered_map<util::Direction, std::vector<sf::Keyboard::Key>>
directionKeys;
std::vector<sf::Keyboard::Key> jumpKeys;
void init() {
directionKeys[util::Direction::UP].push_back(sf::Keyboard::Up);
directionKeys[util::Di... |
<commit_before><commit_msg>removed unecessary comments<commit_after><|endoftext|> |
<commit_before>#include "utilities.h"
//------------------------------
//getbit
//------------------------------
boolean getbit(byte x, int n) {
return (x >> n) & 1;
}
boolean getbit(word x, int n) {
return (x >> n) & 1;
}
boolean getbit(dword x, int n) {
return (x >> n) & 1;
}
//-------------------------... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... |
<commit_before>#include "debugger.h"
#include "dbg_impl.h"
#include "dbg_network.h"
#include "bridge/dbg_delayload.h"
#include <base/util/unicode.h>
namespace vscode
{
debugger::debugger(io* io, threadmode mode)
: impl_(new debugger_impl(io, mode))
{ }
debugger::~debugger()
{
delete impl_;
}
void debugger:... |
<commit_before>// Copyright 2008 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.
// Exhaustive testing of regular expression matching.
#include "util/test.h"
#include "re2/testing/exhaustive_tester.h"
DECLARE_string(regexp... |
<commit_before>// DIB.CPP
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include "cdib.h"
using namespace std;
CDib::CDib() {
m_pDibBytes = NULL;
m_pDibInfo = NULL;
m_pBFH = NULL;
}
CDib::~CDib() {
// 如果位图已经被加载,释放之
if (m_pDibBytes) {
delete[]m_pDibBytes;
}
// 如果位图文件结构已被加载,释放之
... |
<commit_before>#include <iostream>
#include <algorithm>
#include <unistd.h>
#include <fcntl.h>
#include "dasync.h"
#include "service.h"
#include "dinit-log.h"
#include "cpbuffer.h"
// TODO should disarm, not remove, the file descriptor watchers when they are not busy
// (and likewise re-arm instead of re-add t... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin-server.
*
* libbitcoin-server is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License with
* additional permissions to the one publish... |
<commit_before>// Copyright 2014 Tom Regan
//
// 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 applic... |
<commit_before>/*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include "../include/configurator.h"
#include "../include/obj.hpp"
GameMap::GameMap(Texture &image) {
sprite_.setTexture(image);
sprite_.scale(SCALE_X, SCALE_Y);
maxX_ = maxY_ = grassNum_ = 0;
}
GameMap::~GameMap() {
for (unsigned int i = 0; i <= maxX_; ++i)
delete [] pMap_[i];
for (unsigned in... |
<commit_before>/* Copyright 2012 Brian Ellis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
<commit_before>// Copyright (c) 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/path_service.h"
#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/file_path.h"
#if defined(OS_WIN... |
<commit_before>/*
// $ g++ -O3 -o createSortedJaccsFile createSortedJaccsFile.cpp
// $ ./createSortedJaccsFile network.jaccs newSortedNewtwork.jaccs sortedJaccs.csv
*/
#include <math.h>
#include <ctime>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <set>
#include <map>
#include <utility> // fo... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sbunoobj.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: hr $ $Date: 2005-09-29 16:31:39 $
*
* The Contents of this file are made... |
<commit_before>/* -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
// vim:sts=4:sw=4:ts=4:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
/* Copyright (c) FFLAS-FFPACK
* Written by Clément Pernet <clement.pernet@imag.fr>
* ========LICENCE========
* This file is part of the library FFLAS-FFPACK.
*... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Marcin Juszkiewicz
** All rights reserved.
** Contact: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Le... |
<commit_before>//===- llvm/unittest/ADT/ValueMapTest.cpp - ValueMap unit tests -*- C++ -*-===//
//
// 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/webui/flags_ui.h"
#include <string>
#include "base/singleton.h"
#include "base/values.h"
#include "chrome/br... |
<commit_before>// Copyright (c) 2006-2008 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.
// This file provides the embedder's side of random webkit glue functions.
#include "build/build_config.h"
#if defined(OS_WIN)
#... |
<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/test/nacl/nacl_ui_test.h"
// TODO(jvoung) see what includes we really need.
#include "base/file_util.h"
#include "bas... |
<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 <windows.h>
#include <objbase.h>
#include <urlmon.h>
#include "base/logging.h"
#include "base/string_number_conversions.h"
#i... |
<commit_before>#pragma unmanaged
#include "IntersonCxxImagingScan2DClass.h"
#pragma managed
#include <vcclr.h>
#include <msclr/marshal_cppstd.h>
#using "Interson.dll"
// For StartReadScan
#using "System.Drawing.dll"
namespace IntersonCxx
{
namespace Imaging
{
class Scan2DClassImpl
{
public:
typedef cli::array< ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/*
* Copyright 2016 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
<commit_before>/*
* Vulkan examples debug wrapper
*
* Appendix for VK_EXT_Debug_Report can be found at https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0-VK_EXT_debug_report/doc/specs/vulkan/appendices/debug_report.txt
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under th... |
<commit_before>#include <sstream>
#include <iostream>
#include <vector>
#include <cassert>
#include <cmath>
#include "config.h"
#include <boost/shared_ptr.hpp>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include "sentence_metadata.h"
#include "scorer.h"
#include "verbose.... |
<commit_before>#include <signal.h> // for signal, SIGINT
#include <zmq.hpp>
#include <uuid.h>
#include <ctime>
#include "util.h"
#include "timesync.h"
#include "h5analogwriter.h"
bool s_interrupted = false;
static void s_signal_handler(int)
{
s_interrupted = true;
printf("\n");
}
static void s_catch_signals(voi... |
<commit_before>#include <array>
#include "h5writer.h"
H5Writer::H5Writer()
{
m_enabled = false;
m_h5file = 0;
m_fn.assign("");
m_w = NULL;
}
H5Writer::~H5Writer()
{
close();
}
bool H5Writer::open(const char *fn)
{
if (isEnabled()) {
return false;
}
// Create a new file using default properties.
m_h5file =... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>#include "RoleDecisionPositionFormation.h"
#include "Eigen/Eigen"
#include <iomanip>
#include <limits>
RoleDecisionPositionFormation::RoleDecisionPositionFormation()
{
getDebugParameterList().add(¶ms);
DEBUG_REQUEST_REGISTER("RoleDecision:Position:formation:reset_positions", "resets the rol... |
<commit_before>/*
* File: ScanLineEdgelDetector.cpp
* Author: claas
* Author: Heinrich Mellmann
*
* Created on 14. march 2011, 14:22
*/
#include "ScanLineEdgelDetector.h"
// debug
#include "Tools/Debug/DebugModify.h"
#include "Tools/Debug/DebugRequest.h"
#include "Tools/Debug/DebugImageDrawings.h"
#include ... |
<commit_before>#pragma once
// `krbn::probable_stuck_events_manager` can be used safely in a multi-threaded environment.
#include "types.hpp"
#include <set>
namespace krbn {
// `probable_stuck_events_manager` manages events which may be stuck with ungrabbed device.
//
// macOS keeps the key state after the device is... |
<commit_before>/*
* Copyright (c) 2016 tildearrow
*
* 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, ... |
<commit_before>#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <tf/transform_broadcaster.h>
#include <boost/bind.hpp>
#include <boost/lambda/lambda.hpp>
#include <sys/time.h>
#include "Comm.h"
#include <sensor_msgs/Imu.h>
#include <std_srvs/Trigger.h>
#include <stdexcept>
class CheckSumError : pu... |
<commit_before>/*
* C++ wrappers for libevent.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef EVENT_BASE_HXX
#define EVENT_BASE_HXX
#include <event.h>
class EventBase {
struct event_base *event_base;
public:
EventBase():event_base(::event_init()) {}
~EventBase() {
::event_base_free(ev... |
<commit_before>#include "facenet_tf.h"
#include <dirent.h>
#include <string.h>
Ptr<ml::KNearest> k_nearest(ml::KNearest::create());
Ptr<ml::ANN_MLP> ann;
#define K_VALUE 1
#define N_LAYERS 3
FacenetClassifier::FacenetClassifier (string operation, string model_path, string svm_model_path, string labels_file_path) {
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//===- CallingConvEmitter.cpp - Generate calling conventions --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>[macro toolbar walkthrough] change dialog parent to this instead of main window, for avoiding warning message when closing macro execute dialog<commit_after><|endoftext|> |
<commit_before>// $Id: fe_clough.C,v 1.2 2005-02-22 22:17:36 jwpeterson Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Licens... |
<commit_before>/*
* File.cpp
*
* Created on: Jun 24, 2015
* Author: gatanasov
*/
#include "File.h"
#include <sstream>
using namespace std;
namespace tns
{
string File::ReadText(const string& filePath)
{
int len;
bool isNew;
const char *content = ReadText(filePath, len, isNew);
string s(content,... |
<commit_before>#include "stan/math/functions/ibeta.hpp"
#include <gtest/gtest.h>
TEST(MathFunctions, ibeta) {
using stan::math::ibeta;
EXPECT_FLOAT_EQ(0.0, ibeta(0.5, 0.5, 0.0)) << "reasonable values for a, b, x";
EXPECT_FLOAT_EQ(0.333333333, ibeta(0.5, 0.5, 0.25)) << "reasonable values for a, b, x";... |
<commit_before>#include <array>
#include <boost/fusion/adapted/array.hpp>
#include <boost/fusion/adapted/std_array.hpp>
#include <boost/fusion/adapted/std_tuple.hpp>
#include <boost/fusion/adapted/std_pair.hpp>
#include <boost/spirit/home/x3.hpp>
#include <boost/spirit/include/support_istream_iterator.hpp>
#include <i... |
<commit_before>#ifdef HAVE_CXX11
#include <functional>
#define HAVE_CPP_FUNC_PTR
namespace funcptr = std;
#else
#ifdef HAVE_BOOST
#include <boost/function.hpp>
namespace funcptr = boost;
#define HAVE_CPP_FUNC_PTR
#endif
#endif
#include <fstream>
#include <cctype>
#ifndef WIN32
#include <cstdio>
#include <unistd.h>
#e... |
<commit_before>#include <fstream>
#include <sstream>
#include <iostream>
#include <cstdlib>
#include <stdint.h>
#include <cstring>
#include <list>
#include <cmath>
#define FILE_MARKER "\xF0\xE1"
#define FILE_VERSION "fpcl.00001" // increment this number file format change !
std::stringstream *linestream;
std::string ... |
<commit_before>/*
* face-cleaner.cpp
*
* Created on: Nov 15, 2014
* Author: Michael Williams
*/
#include "face-cleaner.h"
#include <vector>
#include <stdio.h>
#include "load_file.h"
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
using namespace std;
namespace facerecognition{
Mat clean_face(M... |
<commit_before>/*********************************************************************
** Author: Zach Colbert
** Date: 30 November 2017
** Description: Library class
*********************************************************************/
/*********************************************************************
** Includes... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2003 Sven Lppken <sven@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 Lic... |
<commit_before>/*************************************************************************
*
* $RCSfile: tabpage.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2003-12-01 13:40:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salsys.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: vg $ $Date: 2006-08-16 16:17:24 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: soicon.cxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:02:58 $
*
* The Contents of this file are made a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.