text stringlengths 54 60.6k |
|---|
<commit_before>#include <pangolin/pangolin.h>
#include <pangolin/video/video_record_repeat.h>
#include <pangolin/gl/gltexturecache.h>
struct GlFormat
{
GlFormat() {}
GlFormat(const pangolin::VideoPixelFormat& fmt)
{
switch( fmt.channels) {
case 1: glformat = GL_LUMINANCE; break;
ca... |
<commit_before>// Copyright 2014 BVLC and contributors.
// This program converts a set of images to a leveldb by storing them as Datum
// proto buffers.
// Usage:
// convert_imageset [-g] ROOTFOLDER/ LISTFILE DB_NAME RANDOM_SHUFFLE[0 or 1]
// [resize_height] [resize_width]
// where ROOTFOLDER is t... |
<commit_before>// -*- c++ -*-
/*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012-2014 Mohammed Sameer <msameer@foolab.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 Foundat... |
<commit_before>#pragma once
#include <cmath>
#include <iostream>
#include "core/constants.hpp"
#include "core/fp_utils.hpp"
#include "core/global_config.hpp"
namespace mocc {
inline real_t RadToDeg( real_t rad ) {
return 180*(rad*RPI);
}
struct Angle {
/// x-component of the angle
... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#pragma once
#include <fstream>
#include "filesystem.hpp"
namespace std
{
template<> struct hash<dafs::BlockFormat>
{
std::size_t operator()(dafs::BlockFormat const& s) const
{
std::size_t h = 0;
for (int i=0; i<dafs::BLOCK_SIZE_IN_BYTES; i++)
... |
<commit_before>
#include <sstream>
#include <algorithm>
#include "data/vocab.h"
#include "common/utils.h"
#include "common/file_stream.h"
#include "3rd_party/exception.h"
#include "3rd_party/yaml-cpp/yaml.h"
#include "common/logging.h"
Vocab::Vocab() {
}
size_t Vocab::operator[](const std::string& word) const {
... |
<commit_before>#include <csignal>
#include <cstdlib>
#include <string>
#include <vector>
#ifndef _WIN32
#include <cstring>
#include <execinfo.h>
#include <unistd.h>
#endif
#pragma warning(push, 0)
#include <llvm/ADT/ArrayRef.h>
#include <llvm/ADT/StringRef.h>
#include <llvm/Support/FileSystem.h>
#include <llvm/Support/... |
<commit_before>#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/Joy.h>
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/PoseStamped.h>
#include <std_msgs/String.h>
#include <vector>
#include <fstream>
#include <string>
class WaypointsSaver{
public:
WaypointsSaver() : ... |
<commit_before>/*
* Copyright (c) 2011 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.... |
<commit_before>#ifndef _IZENELIB_AM_SUCCINCT_CONSTANTS_HPP
#define _IZENELIB_AM_SUCCINCT_CONSTANTS_HPP
#include <types.h>
NS_IZENELIB_AM_BEGIN
namespace succinct
{
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
/* Defined by BSIZE */
typedef uint64_t block_t;
/* Block size (64-bit environment) */
static const ... |
<commit_before>#ifndef TIMING_HPP_
#define TIMING_HPP_
#include <boost/chrono/chrono.hpp>
#include <boost/chrono/chrono_io.hpp>
#include <boost/chrono/system_clocks.hpp>
typedef boost::chrono::high_resolution_clock clock_type;
typedef clock_type::time_point time_point_type;
typedef clock_type::dur... |
<commit_before>#include "rltk.hpp"
#include <SFML/Graphics.hpp>
namespace rltk {
void run(std::function<void(double)> on_tick, const int window_width, const int window_height, const std::string window_title) {
sf::RenderWindow window(sf::VideoMode(window_width, window_height, sf::Style::Titlebar | sf::Style::Resi... |
<commit_before>/*
* MoldUDP64 protocol support
*
* The implementation is based on the following specifications provided
* by NASDAQ:
*
* MoldUDP64 Protocol Specification
* V 1.00
* 07/07/2009
*/
#pragma once
#include "helix/nasdaq/moldudp64_messages.h"
#include "helix/compat/endian.h"
#include "helix/h... |
<commit_before>#ifndef IMQUE_QUEUE_QUEUE_IMPL_HH
#define IMQUE_QUEUE_QUEUE_IMPL_HH
#include "../atomic/atomic.hh"
#include "../ipc/shared_memory.hh"
#include "../allocator/fixed_allocator.hh"
#include <inttypes.h>
#include <string.h>
#include <algorithm>
namespace imque {
namespace queue {
static const char MAG... |
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_DETAIL_SINGLE_HPP
#define KGR_KANGARU_INCLUDE_KANGARU_DETAIL_SINGLE_HPP
#include "traits.hpp"
#include "meta_list.hpp"
#include "detection.hpp"
namespace kgr {
struct single {
single() = default;
~single() = default;
single(const single&) = delete;
single& opera... |
<commit_before>/*
Copyright (c) 2006-2012, 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 ... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*
Copyright (c) 2009, 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>///
/// @file pod_vector.hpp
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef POD_VECTOR_HPP
#define POD_VECTOR_HPP
#include "macros.hpp"
#include <algorithm>
#inclu... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>//===- ModuleIndex.hpp - Allow Module lookups by index -------------- C++ -===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
//... |
<commit_before>#ifndef _SOT_CORE_CAUSAL_FILTER_H_
#define _SOT_CORE_CAUSAL_FILTER_H_
/*
* Copyright 2017-, Rohan Budhirja, LAAS-CNRS
*
* This file is part of sot-torque-control.
* sot-torque-control is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public Licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: pyuno_gc.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2005-02-11 16:40:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "QmitkFunctionality.h"
#include <qlcdnumber.h>
#include <qslider.h>
#include <itkCommand.h>
QmitkFunctionality::QmitkFunctionality(QObject *parent, const char *name, mitk::DataTreeIteratorBase* dataIt) :
QObject(parent, name), m_Available(false), m_Activated(false), m_DataTreeIterator(NULL... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission ... |
<commit_before>//------------------------------------------------------------------------------
// Copyright (C) 2014 Glenn Smith
//
// 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 ver... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013-2015 SRS(simple-rtmp-server)
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 right... |
<commit_before>/*
* Copyright (C) 2015 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <limits>
#include <cctype>
#include <cstdio>
#include <sstream>
#include "snphandler.h"
using namespace std;
using namespace hal;
SNPHandler::SNPHandler(SideGraph* sideGra... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2010-2013 The PECOS Development Team
//
// This library is free softw... |
<commit_before>// ======================================================================== //
// Copyright 2016-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "stdafx.h"
#include "c11log/formatters/formatters.h"
#include "c11log/level.h"
void c11log::formatters::format_time(const c11log::formatters::timepoint& tp, std::ostream &dest)
{
std::tm tm = details::os::localtime(std::chrono::system_clock::to_time_t(tp));
//get ms
//auto... |
<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 "xchainer/python/array.h"
#include <algorithm>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include "xchainer/array.h"
#include "xchainer/dtype.h"
#include "xchainer/error.h"
namespace xchainer {
namespace py = pybind11;
Dtype NumpyDtypeToDtype(py::dtype npdtype) {
swit... |
<commit_before>// Copyright (c) 2011 Zeex
//
// 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 a... |
<commit_before>#include <boost/filesystem/operations.hpp>
#include <iostream>
#include <algorithm>
#include "../include/fs_helpers.hpp"
#include "../include/debug.hpp"
namespace llscm {
using namespace std;
using namespace boost::filesystem;
static string exec_path;
static deque<string> search_path = ... |
<commit_before><commit_msg>related tdf#89004 improve performance of document data collection<commit_after><|endoftext|> |
<commit_before>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
<commit_before><commit_msg>coverity#738899 unused member<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: tautofmt.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: fme $ $Date: 2001-06-14 17:19:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: initui.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2007-09-27 12:45:31 $
*
* The Contents of this file are made a... |
<commit_before>// ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: initui.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2007-04-26 09:23:37 $
*
* The Contents of this file are made a... |
<commit_before>/*
* Copyright (c) 2015, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Michael X. Grey <mxgrey@gatech.edu>
*
* Georgia Tech Graphics Lab and Humanoid Robotics Lab
*
* Directed by Prof. C. Karen Liu and Prof. Mike Stilman
* <karenliu@cc.gatech.edu> <mstilman@cc.gatech.ed... |
<commit_before>#include <algorithm>
#include <cmath>
#include <cstddef>
#include <iostream>
#include <iterator>
#include <utility>
#include <vector>
using std::begin;
using std::end;
using std::size_t;
std::vector<double> solve_euler(double timestep, size_t size) {
std::vector<double> result;
double current = 1.... |
<commit_before>// Copyright (c) 2017, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-core.
// hpp-core is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation... |
<commit_before>/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2008, 2009 Ames Laboratory
Iowa State University and The Regents of the University of Michigan All rights
reserved.
HOOMD-blue may contain modifications ("Contributions") provid... |
<commit_before>/*
* Classify characters in a HTML/XML document.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef HTML_CHARS_HXX
#define HTML_CHARS_HXX
#include "strutil.h"
static inline bool
is_html_name_start_char(char ch)
{
return char_is_letter(ch) ||
ch == ':' || ch == '_';
}
static inline ... |
<commit_before>#include <utility>
#include "halley/tools/assets/import_assets_database.h"
#include "halley/bytes/byte_serializer.h"
#include "halley/resources/resource_data.h"
#include "halley/tools/file/filesystem.h"
constexpr static int currentAssetVersion = 73;
using namespace Halley;
AssetPath::AssetPath()
{}
A... |
<commit_before>
#include "system.h"
#include <array>
#include <iostream>
#include <string>
#include <cstdio>
namespace
{
std::string exec(const std::string& cmd)
{
std::array<char, 128> buffer;
std::string result;
// std::cout << "Opening reading pipe" << std::endl;
FILE* pipe = popen(cmd.c_str(),... |
<commit_before>/*
* Copyright (C) 2019 The Android Open Source Project
*
* 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>/**\file
* \brief "Hello World" HTTP Server
*
* This is an example HTTP server that serves a simple "Hello World!" on /, and
* a 404 on all other resources.
*
* Call it like this:
* \code
* $ ./http-hello localhost 8080
* \endcode
*
* With localhost and 8080 being a host name and port of your ... |
<commit_before>/*
* Copyright 2019 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "tools/viewer/SkSLSlide.h"
#include "include/core/SkCanvas.h"
#include "include/effects/SkGradientShader.h"
#include "include/effects/SkPerlinNoiseShader.h"... |
<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>/*
* 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 "Lice... |
<commit_before>#include "treemodel.h"
TreeModel::TreeModel (QObject * parent, tree_data_t * data)
: QAbstractItemModel(parent)
, m_tree_data(data)
{ }
TreeModel::~TreeModel () { /* leave m_tree_data untouched. they are owned by sessionState */ }
QVariant TreeModel::headerData(int section, Qt::Orientation orientati... |
<commit_before>//
// Sophos - Forward Private Searchable Encryption
// Copyright (C) 2016 Raphael Bost
//
// This file is part of Sophos.
//
// Sophos 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, e... |
<commit_before>#include "dagent/dagent.h"
#include "base/logger.h"
#include "dcreporter.h"
#include "dcreport_collect.h"
int reporter_ready(){
return dagent_ready();
}
int reporter_init(const char * parent, const char * name){
dagent_config_t conf;
conf.addr = "push://";
conf.addr += parent;
conf... |
<commit_before>#include <fstream>
#include <sstream>
#include <glog/logging.h>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
// Name of the main program window
static const std::string W_NAME = "WINDOW";
cv:... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>/* This file is part of Ingen.
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
*
* Ingen 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 y... |
<commit_before>/* $Id$
Copyright (C) 2008 Werner Smekal
This file is part of PLplot.
PLplot is free software; you can redistribute it and/or modify
it under the terms of the GNU General Library Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at you... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name: vi.cpp
// Purpose: Implementation of class wxExSTC vi mode
// Author: Anton van Wezenbeek
// Created: 2009-11-21
// RCS-ID: $Id$
// Copyright: (c) 2009 Anton van Wezenbeek
////////////////////////////... |
<commit_before>#include "./label_node.h"
#include <QPainter>
#include <QImage>
#include <QPoint>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include "./importer.h"
#include "./mesh.h"
#include "./quad.h"
#include "./texture.h"
LabelNode::LabelNode(Label label) : label(label)
{
Importer importer;
anchorMesh =... |
<commit_before><commit_msg>3rdParty: nodejs: v8.0.0: v8: add missing return statement<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2011 Ivan Cukic <ivan.cukic(at)kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* or (at your option) any later version, as published by the Free
* Software Foundation
*
... |
<commit_before>/*
* Copyright (C) 2011 Ivan Cukic <ivan.cukic(at)kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* or (at your option) any later version, as published by the Free
* Software Foundation
*
... |
<commit_before>#ifndef _INPUSTREAM_HXX_
#define _INPUSTREAM_HXX_
#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
#endif
#ifndef _OSL_FILE_HXX_
#include <osl/file.hxx>
#endif
#ifndef _CPPUHELPER_WEAK_HXX_
#include <cppuhelper/weak.hxx>
#endif
#ifndef _COM_SUN_STAR_UNO_XINTERFACE_HPP_
#include <com/sun/star/uno/XIn... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLTextShapeImportHelper.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: mib $ $Date: 2001-04-23 07:37:30 $
*
* The Contents of this file are made available subject to the terms of
* either of th... |
<commit_before>//===-- AArch64TargetMachine.cpp - Define TargetMachine for AArch64 -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- SparcV9.cpp - General implementation file for the SparcV9 Target ------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details... |
<commit_before>// $Id$
//***************************************************************************
// File:
// Sparc.cpp
//
// Purpose:
//
// History:
// 7/15/01 - Vikram Adve - Created
//**************************************************************************/
#include "SparcInternals.h"
#include "llvm/Tar... |
<commit_before>//===- NodeImpl.cpp - Implement the data structure analysis nodes ---------===//
//
// Implement the LLVM data structure analysis library.
//
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/DataStructure.h"
#include "llvm/DerivedTypes.h"
#include ... |
<commit_before>#pragma once
#ifndef Method_Solver_H
#define Method_Solver_H
#include "Spirit_Defines.h"
#include <Spirit/Simulation.h>
#include <data/Parameters_Method.hpp>
#include <data/Spin_System_Chain.hpp>
#include <data/Parameters_Method.hpp>
#include <engine/Method.hpp>
#include <engine/Vectormath.hpp>
#include... |
<commit_before>//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "RenderingSystem.h"
#include "Engine.h"
#include "AutoBinder.hpp"
using namespace Core;
using namespace Device;
using namespace Rendering;
using namespace Rendering::Camera;
using namespace Rendering::Shader;
using namespace Rendering::Renderer;
using namespace Rendering::RenderState;
using nam... |
<commit_before>//===- BasicCalleeAnalysis.cpp - Determine callees per call site ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//===-- PPCTargetMachine.cpp - Define TargetMachine for PowerPC -----------===//
//
// 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) 2000-2003 MySQL AB
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... |
<commit_before>// RUN: %clang --analyze -Xclang -analyzer-checker=core,experimental.cplusplus.Iterators -Xclang -verify %s
// XFAIL: win32
// FIXME: Does not work with inlined C++ methods.
// XFAIL: *
#include <vector>
void fum(std::vector<int>::iterator t);
void foo1()
{
// iterators that are defined but not ini... |
<commit_before>// RUN: %clang_cc1 -std=c++11 -triple i686-linux %s -o /dev/null -S
//
// This test's failure mode is running ~forever. (For some value of "forever"
// that's greater than 25 minutes on my machine)
template <typename... Ts>
struct Foo {
template <typename... T>
static void ignore() {}
Foo() { igno... |
<commit_before>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include "timer.h"
using namespace std;
/*
* first is a symbol or file name
* second is the fuzzy match score, smaller is better
*/
typedef pair<string, int> fuzzy_match;
bool is_fuzzy_match(const stri... |
<commit_before>
#include "levels/wave.h"
#include <fstream>
#include <sstream>
#include <string>
#include "engine/game-manager.h"
#include "base/debug.h"
void Wave::Load() {
// Create filename
std::stringstream filename;
filename << "assets/waves/level_" << level_ << ".wave";
// Open file
std::ifstream w... |
<commit_before>// RUN: rm -rf %t
//
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -emit-module -fmodules-cache-path=%t -fmodule-name=diag_flags -x c++ %S/Inputs/module.map -fmodules-ts
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -verify -fmodules-cache-path=%t -I %S/Inputs %s -fmodules-ts
// RUN: %clang_c... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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>#include "gtest/gtest.h"
#include "gpac/module.h"
#include "gpac/modules/codec.h"
#include "gpac/modules/service.h"
#include "gpac/internal/terminal_dev.h"
using namespace std;
string signals_fld;
string modules_fld;
GF_ModuleManager *modules;
GF_Config *config;
static void term_on_connect(GF_Client... |
<commit_before>#include "Address.h"
Address::Address() : addr(0) {
}
Address::Address(uint16_t location) : addr(location) {
}
Address::Address(RegisterGroup from) : addr(from.value()) {
}
Address::Address(WordRegister from) : addr(from.value()) {
}
uint16_t Address::value() const {
return addr;
}
<commit_msg>R... |
<commit_before>#include "Binary.hpp"
#include <stdexcept>
#include <algorithm>
#include "constants.hpp"
#include "Tree.hpp"
using namespace std;
int safe_fclose(FILE* fptr) { return fptr ? fclose(fptr) : 0; }
Binary::Binary(const string& binary_file_path) : bin_fptr_(nullptr, safe_fclose)
{
// open the binary fi... |
<commit_before>#include "Camera.h"
#include "Window.h"
#include <glm/glm.hpp>
using namespace std;
Camera :: Camera(const std::string& fn, IFactory* factory, ICache* cache)
{
}
bool Camera :: in_frustum(const Box& box) const
{
if(m_bOrtho)
{
if(not box.quick_valid())
return false;
... |
<commit_before>/*
* Copyright (C) 2011, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
*/
#include "Camera.h"
#include <stdio.h>
#include <opencv2/imgproc/imgproc_c.h>
#include "Settings.h"
#include <QtCore/QFile>
Camera::Camera(QObject * parent) :
QObject(parent),
capture_(0)
{
qRegisterMetaType<cv::Mat>("... |
<commit_before>
/**********************************************************************/
/**********************************************************************/
/* */
/* */
/* ... |
<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>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// Antioch - A Gas Dynamics Thermochemistry Library
//
// Copyright (C) 2013 The PECOS Development Team
//
// This library is free software; you can... |
<commit_before>#include "../test_adam.hpp"
#include "../test_optimizer.hpp"
#include "nnlib/critics/mse.hpp"
#include "nnlib/math/math.hpp"
#include "nnlib/math/random.hpp"
#include "nnlib/nn/linear.hpp"
#include "nnlib/opt/adam.hpp"
using namespace nnlib;
using T = NN_REAL_T;
NNTestClassImpl(Adam)
{
Linear<T> mod... |
<commit_before>#include "Halide.h"
#include <cstdio>
#include <algorithm>
#include "halide_benchmark.h"
using namespace Halide;
using namespace Halide::Tools;
// 32-bit windows defines powf as a macro, which won't work for us.
#ifdef _WIN32
extern "C" __declspec(dllexport) float pow_ref(float x, float y) {
return... |
<commit_before>#include "../src/repeat_detector.h"
void repeat_detector_test() {
using namespace LeviDB;
class Tester : public SuffixTree {
private:
Arena arena;
public:
Tester() noexcept : arena(), SuffixTree(&arena) {}
bool contains(std::string & src, int from) {
... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 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) 2008, 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.