text stringlengths 54 60.6k |
|---|
<commit_before>/**
* Created by Liam Huang (Liam0205) on 2018/10/11.
*/
#ifndef QUEUE_BLOCK_QUEUE_HPP_
#define QUEUE_BLOCK_QUEUE_HPP_
#include <queue>
#include <mutex>
#include <condition_variable>
template <typename T>
class BlockQueue {
public:
using value_type = T;
using container_type = std::qu... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2016 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
<commit_before>/* Definition of libpqxx exception classes.
*
* pqxx::sql_error, pqxx::broken_connection, pqxx::in_doubt_error, ...
*
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/except instead.
*
* Copyright (c) 2000-2020, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive ... |
<commit_before>#ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <deque>
#include <cassert>
#include <functional>
#include <iostream>
#include <iterator>
#include <boost/array.hpp>
#include <boost/container/set.hpp>
#include <boost/container/node_allocator.hpp>
#include <boost/math/special_functions/round.hpp... |
<commit_before>#pragma once
#include <cstring>
#include <pmmintrin.h>
namespace rack {
/** Abstraction of byte-aligned values for SIMD CPU acceleration. */
namespace simd {
/** Generic class for vector types.
This class is designed to be used just like you use scalars, with extra features for handling bitwise lo... |
<commit_before>#include "acceptandpayofferlistpage.h"
#include "ui_acceptandpayofferlistpage.h"
#include "init.h"
#include "util.h"
#include "offeracceptdialog.h"
#include "offeracceptdialogbtc.h"
#include "offer.h"
#include "syscoingui.h"
#include "guiutil.h"
#include "platformstyle.h"
#include <QSortFilterProxyMode... |
<commit_before>// https://leetcode.com/problems/course-schedule-ii/
/*
There are a total of n courses you have to take, labeled from 0 to n - 1.
Some courses may have prerequisites, for example to take course 0
you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of cou... |
<commit_before>#ifndef PYTHONIC_TYPES_SET_HPP
#define PYTHONIC_TYPES_SET_HPP
#include "pythonic/include/types/set.hpp"
#include "pythonic/types/assignable.hpp"
#include "pythonic/types/empty_iterator.hpp"
#include "pythonic/types/list.hpp"
#include "pythonic/utils/iterator.hpp"
#include "pythonic/utils/reserve.hpp"
... |
<commit_before>#pragma once
namespace openMVG {
namespace robust {
enum EROBUST_ESTIMATOR
{
ROBUST_ESTIMATOR_START = 0,
ROBUST_ESTIMATOR_ACRANSAC = 1, //< A-Contrario Ransac.
ROBUST_ESTIMATOR_RANSAC = 2, //< Classic Ransac.
ROBUST_ESTIMATOR_LSMEDS = 3, //< Variant of RANSAC using Leas... |
<commit_before>/*
* SlideParser.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General P... |
<commit_before>#include <iostream>
#include <vector>
#include <stack>
using namespace std;
class Node {
public:
int data;
bool visited;
vector<Node> adj;
Node(int d) {
visited = false;
data = d;
}
};
class Graph {
public:
vector<Node> G;
int N;
Graph(int n_nodes)
{... |
<commit_before>/*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... |
<commit_before>/*
Copyright 2013 Miro Knejp
See the accompanied LICENSE file for licensing details.
*/
/**
\file
Adds shortcut type traits proposed for C++14.
\author Miro Knejp
*/
#ifndef XTD_xtd_type_traits_bc035fe3_9c1b_4ff7_9b1b_2657f0dab836
#define XTD_xtd_type_traits_bc035fe3_9c1b_4ff7_9b1b_2657f0dab... |
<commit_before>//(c) 2016-2017 by Authors
//This file is a part of ABruijn program.
//Released under the BSD license (see LICENSE file)
#include "contig_extender.h"
#include "output_generator.h"
void ContigExtender::generateUnbranchingPaths()
{
GraphProcessor proc(_graph, _asmSeqs, _readSeqs);
_unbranchingPaths = p... |
<commit_before>/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... |
<commit_before>#pragma once
#include "manipulator/details/base.hpp"
#include "manipulator/details/types.hpp"
#include "types.hpp"
#include "virtual_hid_device_client.hpp"
#include <mach/mach_time.h>
namespace krbn {
namespace manipulator {
namespace details {
class post_event_to_virtual_devices final : public base {
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** 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
**... |
<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>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_ac... |
<commit_before>/**
* @file Nanoshield_Termopar.cpp
* This is the library to access the Termopar Nanoshield version 2
*
* Copyright (c) 2015 Circuitar
* This software is released under the MIT license. See the attached LICENSE file for details.
*/
#include "Nanoshield_Termopar.h"
// MAX31856 registers
#define M... |
<commit_before>#include "Player.hpp"
#include <iostream>
#include "Tile.hpp"
bool Player::intersects(const GameObject& cmp)
{
const sf::FloatRect &tmpRect = mySprite->getGlobalBounds();
sf::Vector2f tmpPos(tmpRect.left, tmpRect.top);
return intersects(tmpPos, cmp);
}
bool Player::intersects(const sf::Vector2f &tes... |
<commit_before>// Copyright (c) 2020 The Orbit 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 "GraphTrack.h"
#include <GteVector.h>
#include <absl/strings/str_format.h>
#include <algorithm>
#include <cstdint>
#include "G... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>// Copyright (c) 2014, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE source in the root of the Project.
#include <boost/python.hpp... |
<commit_before>// Copyright (c) 2013-2014 Anton Kozhevnikov, Thomas Schulthess
// 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 ... |
<commit_before>/*
This file is part of the clazy static checker.
Copyright (C) 2017 Sergio Martins <smartins@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
vers... |
<commit_before>#include "iteration/updater/source_updater_gauss_seidel.h"
#include <sstream>
#include "system/system.h"
namespace bart {
namespace iteration {
namespace updater {
template <>
void SourceUpdaterGaussSeidel<formulation::CFEMStamperI>::UpdateScatteringSource(
system::System& system,
system::G... |
<commit_before>/*=========================================================================
Program: ParaView
Module: vtkXMLDataElement.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000-2001 Kitware Inc. 469 Clifton Corporate Parkway,
Clifton Park, NY, 12065, USA.
All rights ... |
<commit_before>/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
QoreOracleStatement.cpp
Qore Programming Language
Copyright (C) 2003 - 2012 David Nichols
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 F... |
<commit_before>#include <QSettings>
#include <QTranslator>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/project.h>
#include <projectexplorer/target.h>
#include <projectexplorer/task.h>
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/buildsteplist.h>
#include <extensi... |
<commit_before>#include "learn_dx11/tess/terrain_tessellation_example.h"
#include <cassert>
#include <iostream>
#include <iterator>
#include <vector>
using namespace cg;
namespace {
size_t bottom_left_index(size_t row, size_t column, size_t row_count, size_t column_count)
{
assert(row_count > 0);
... |
<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) 1999-2009 Soeren Sonnenburg
* C... |
<commit_before>// Sh: A GPU metaprogramming language.
//
// Copyright (c) 2003 University of Waterloo Computer Graphics Laboratory
// Project administrator: Michael D. McCool
// Authors: Zheng Qin, Stefanus Du Toit, Kevin Moule, Tiberiu S. Popa,
// Michael D. McCool
//
// This software is provided 'as-is', wi... |
<commit_before>// Include GLGizmoBase.hpp before I18N.hpp as it includes some libigl code, which overrides our localization "L" macro.
#include "GLGizmoCut.hpp"
#include "slic3r/GUI/GLCanvas3D.hpp"
#include <GL/glew.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#in... |
<commit_before>/*
########## Copyright (C) 2015 Vincenzo Pacella
## ## Distributed under MIT license, see file LICENSE
## ## or <http://opensource.org/licenses/MIT>
## ##
########## ############################################################# shaduzlabs.com ... |
<commit_before>/*
* Copyright (C) 2003-2005 Justin Karneges <justin@affinix.com>
* Copyright (C) 2004,2005,2007 Brad Hards <bradh@frogmouth.net>
*
* 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 Softw... |
<commit_before>/*
* Yelly Database Scripts
* Copyright (C) 2006-2008 U2 Team <http://www.undzwei.eu/>
* Copyright (C) 2007-2008 Yelly Team
* Copyright (C) 2009 WhyScripts Team <http://www.whydb.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General ... |
<commit_before>#include "Shooter.h"
#include "Commands/SpinUp.h"
#include "Commands/SpinDown.h"
#include <math.h>
namespace subsystems
{
using SpinUp = commands::SpinUp;
using SpinDown = commands::SpinDown;
// Constructor:
Shooter::Shooter() : Subsystem("Shooter")
{
top_roller_ = new CANTalon(6);
state_ = State_t... |
<commit_before>#include "include/Text/textcontroller.h"
#include <iostream>
#include <fstream>
#include <QFile>
#include <QTextStream>
#include <stdexcept>
#include <regex>
#include <sstream>
using namespace std;
TextController::TextController(const std::string& dataFolderPath):
dataFolderPath(dataFol... |
<commit_before>#include "DebugDrawing.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include "Shader/Shader.hpp"
#include "Shader/ShaderProgram.hpp"
#include "DebugDrawing.vert.hpp"
#include "DebugDrawing.frag.hpp"
#include "glm/gtc/constants.hpp"
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
using namespace Video... |
<commit_before>#include "Target.hpp"
#include <opencv2/opencv.hpp>
#include <math.h>
#include <iostream>
Target::Target(std::vector<std::vector<cv::Point> > contour)
{
if(contour.size() > 1)
{
edgeL = contour[0];
edgeR = contour[1];
}
else
{
edgeL = contour[0];
edg... |
<commit_before>#include <zip_longest.hpp>
#include "helpers.hpp"
#include <vector>
#include <tuple>
#include <string>
#include <iterator>
#include <utility>
#include <iterator>
#include <sstream>
#include <iostream>
#include "catch.hpp"
using iter::zip_longest;
// reopening boost is the only way I can find that ge... |
<commit_before>// Copyright 2021 Google LLC
//
// 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>/***********************************************************************
filename: CEGUITreeItem.cpp
created: 5-13-07
author: Jonathan Welch (Based on Code by David Durant)
*************************************************************************/
/*************************************... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2020, LH_Mouse. All wrongs reserved.
#include "../precompiled.hpp"
#include "abstract_stream_socket.hpp"
#include "socket_address.hpp"
#include "../static/network_driver.hpp"
#include "../utilities.hpp"
namespace poseidon {
Abstract_Stream_Socket::
~Abstra... |
<commit_before>/*
Forecast class provides weather conditions for 3 next days
*/
#ifndef FORECAST_HPP
#define FORECAST_HPP
#include "weather.hpp"
namespace wunderground
{
class Forecast:public Weather
{
public:
Forecast()=default;
Forecast(std::string);
/*
load and parse xml file with all weather da... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>
#include "slg/Window.hpp"
#include <GL/glew.h>
#include <GL/glfw.h>
#include <cassert>
namespace slg {
static Window * currentWindow = 0;
// -- Callbacks --
void mouseButton(int button, int state)
{
if (currentWindow)
currentWindow->input().setMouseButton(button, state == GL... |
<commit_before>#ifndef _ZEROMQ_HPP_
#define _ZEROMQ_HPP_
#include <Rcpp.h>
#include <chrono>
#include <string>
#include <thread>
#include <unordered_map>
#include "zmq.hpp"
#include "MonitoredSocket.hpp"
typedef std::chrono::high_resolution_clock Time;
typedef std::chrono::milliseconds ms;
int pending_interrupt();
c... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLTableShapeImportHelper.cxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: sab $ $Date: 2002-05-29 11:32:52 $
*
* The Contents of this file are made available subject to the terms of
* either of ... |
<commit_before><commit_msg>Fix compilation error when OSL_DEBUG_LEVEL > 0<commit_after><|endoftext|> |
<commit_before>#include "GaussianSmoothingFilter.hpp"
#include "Exception.hpp"
#include "DeviceManager.hpp"
#include "Image.hpp"
#include "DynamicImage.hpp"
using namespace fast;
void GaussianSmoothingFilter::setInput(ImageData::pointer input) {
mInput = input;
mIsModified = true;
addParent(input);
if(... |
<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 "chrome/common/chrome_constants.h"
namespace chrome {
// The following should not be used for UI strings; they are meant... |
<commit_before>/* Copyright 2014 Dietrich Epp.
This file is part of Dreamless. Dreamless is licensed under the terms
of the 2-clause BSD license. For more information, see LICENSE.txt. */
#include "analytics.hpp"
#include "curl.hpp"
#include "json.hpp"
#include "sg/atomic.h"
#include "sg/cvar.h"
#include "sg/en... |
<commit_before>/***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 26 Feb 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
*****************************************************************... |
<commit_before><commit_msg>WaE: unused variable 'itEnd'<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: ddelink.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2004-10-04 20:05:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: ddelink.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2004-03-08 11:45:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
Version 1.1.0, packaged on March, 2009.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can re... |
<commit_before>/*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distribu... |
<commit_before><commit_msg>Fix first run ui hanging. The threads need to get started earlier.<commit_after><|endoftext|> |
<commit_before><commit_msg>[gtk] avoid dcheck crash when making browser window very narrow<commit_after><|endoftext|> |
<commit_before><commit_msg>Gtk: fix reference counting/destruction of GtkMenu* in MenuGtk. <commit_after><|endoftext|> |
<commit_before>
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify... |
<commit_before>#include <sim/constants.h>
#include <sim/mysql.h>
#include <simlib/filesystem.h>
#include <simlib/process.h>
#include <simlib/sim/problem_package.h>
#include <simlib/spawner.h>
#include <simlib/time.h>
using std::string;
using std::vector;
/**
* @brief Displays help
*/
static void help(const char* pr... |
<commit_before>#include <string.h>
#include <stdio.h>
#include <inttypes.h>
#include <stdlib.h>
#include <assert.h>
static const char b58_tbl[] =
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
bool
bcn_decode_b58(
unsigned char **data,
size_t *datalen,
const unsigned char *str,
size_t strlen
... |
<commit_before><commit_msg>Remove chrome://apps from chrome-urls on ChromeOS.<commit_after><|endoftext|> |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/searchlib/docstore/logdatastore.h>
#include <vespa/searchlib/index/dummyfileheadercontext.h>
#include <vespa/vespalib/util/closure.h>
#include <vespa/vespalib/util/closu... |
<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 "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc... |
<commit_before>/*
* MotorConfigurations.cpp
*
* Created on: 18.02.2015
* Author: lutz
*/
#include "MotorConfigurations.h"
#include <iostream>
#include <fstream>
#include <assert.h>
#include "json/json.h"
MotorConfigurationsManager::MotorConfigurationsManager(std::string filename)
: m_filename(filename)
{... |
<commit_before>#include <nan.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <v8.h>
#include <algorithm>
extern "C" {
#include "rpi_ws281x/ws2811.h"
}
using namespace v8;
#define DEFAULT_TARGET_FREQ 800000
#define DEFAULT_GPIO_PIN 18
#define DEFAULT_DMANUM 10
#define PARAM_FREQ 1
#define PAR... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 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. Redistributi... |
<commit_before>#include "run_async.h"
#include "duktapevm.h"
#include "callback.h"
#include <node.h>
#include <v8.h>
#include <string>
#include <memory>
#include <vector>
using namespace v8;
using node::FatalException;
namespace {
struct WorkRequest
{
WorkRequest(std::string functionName, std::string parameters,... |
<commit_before><commit_msg>On 'window.print()' javascript command, print only the frame that is represented by 'window'.<commit_after><|endoftext|> |
<commit_before><commit_msg>Mark NPAPIVisiblePluginTester.VerifyNPObjectLifetime as FLAKY.<commit_after><|endoftext|> |
<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 "base/file_util.h"
#include "base/path_service.h"
#include "base/test/test_timeouts.h"
#include "build/build_config.h"
#includ... |
<commit_before><commit_msg>Re-enabling worker fast tests (doing a more surgical disabling of just a single test).<commit_after><|endoftext|> |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 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. Redistributi... |
<commit_before>/*************************************************************************
*
* $RCSfile: hfi_xrefpage.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-02-20 09:41:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before><commit_msg>UVa 1207 solved<commit_after><|endoftext|> |
<commit_before>/// @author Владимир Керимов
#pragma once
#include <data/api>
#include <data/stdfwd>
#include <cstdint>
namespace data
{
/// Base type for any data type
class DATA_API object
{
public:
/// Create null-object
object();
/// Base scalar destructor
~object... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include "median.h"
using namespace std;
int main ()
{
srand (time(NULL));
MedianList a;
for (int i=0; i<100000; i++)
{
int r = rand() % 100000 + 0;
a.insert(r);
}
cout<<a.getMedian();
return 0;
}
<commit_msg>Add avera... |
<commit_before><commit_msg>Build fix.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2005 The Regents of The University of Michigan
* 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 copyri... |
<commit_before>/* 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/. */
#ifndef HEADER_GUARD_CHANGE_H
#define HEADER_GUARD_CHANGE_H
#include <boost/optional.hpp>
#include... |
<commit_before><commit_msg>fix_interpolation<commit_after><|endoftext|> |
<commit_before>#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include "StoreImageModule.hpp"
using namespace std;
using namespace uipf;
// executes the Module
/*
input is a std::map of input resources, the names are described in the module meta description
params is a... |
<commit_before>#include "encoding/ganglion.h"
#include <opencv2/imgproc.hpp>
#include "core/exception.h"
#include "ts/ts.h"
using namespace cv;
class DiffOfGaussians2dSqTest : public ::testing::Test
{
protected:
virtual void SetUp()
{
radius_ = 13;
scale_ = 1.f;
to_.Init(radius_, sca... |
<commit_before><commit_msg>`World::set_active_scene`: add `const` modifier to function parameter.<commit_after><|endoftext|> |
<commit_before><commit_msg>Localization: fix the crash that gps message is ealier than imu message<commit_after><|endoftext|> |
<commit_before>/*! \file
*
* \brief Python exports for math
* \author Benjamin Pritchard (ben@bennyp.org)
*/
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include "bpmodule/math/Factorial.hpp"
using namespace boost::python;
//! \todo Export exact casts? Or have the equivalent with python... |
<commit_before>//===--- tools/extra/clang-tidy/ClangTidyMain.cpp - Clang tidy tool -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlversion.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2005-02-21 16:35:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#include "arch/io/blocker_pool.hpp"
#include <string.h>
__thread int thread_is_blocker_pool_thread = 0;
// IO thread function
void* blocker_pool_t::event_loop(void *arg) {
thread_is_blocker_pool_thread = 1;
blocker_pool_t *parent = reint... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>#include "c4/storage/raw.test.hpp"
#include "c4/storage/raw.hpp"
#include "c4/test.hpp"
#include "c4/allocator.hpp"
C4_BEGIN_NAMESPACE(c4)
C4_BEGIN_NAMESPACE(stg)
TEST(raw_fixed, instantiation)
{
using ci = Counting< int >;
{
AllocationCountsChecker ch;
{
auto cd = ... |
<commit_before>#ifndef CAFFE_LAYER_FACTORY_HPP_
#define CAFFE_LAYER_FACTORY_HPP_
#include <string>
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/vision_layers.hpp"
namespace caffe {
// A function to get a specific layer from the specification given in
// LayerParameter. Ideally this w... |
<commit_before>
#include "journal/player.hpp"
#include <list>
#include <string>
#include <thread>
#include <vector>
#include "benchmark/benchmark.h"
#include "glog/logging.h"
#include "gtest/gtest.h"
#include "journal/method.hpp"
#include "journal/profiles.hpp"
#include "journal/recorder.hpp"
#include "ksp_plugin/in... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.