text stringlengths 54 60.6k |
|---|
<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/scoped_temp_dir.h"
#include "base/scoped_vector.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chro... |
<commit_before>#include "builtin_extra.hh"
#include "lisp_ptr.hh"
#include "vm.hh"
#include "builtin_util.hh"
#include "procedure.hh"
#include "s_closure.hh"
#include "util.hh"
#include "eval.hh"
#include "env.hh"
#include "builtin_equal.hh"
using namespace std;
using namespace Procedure;
Lisp_ptr traditional_transfo... |
<commit_before>//===- lib/ReaderWriter/MachO/StubsPass.cpp -------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/* Copyright 2020 Stanford University, NVIDIA Corporation
*
* 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 Implementation
@date 2014
@author
Ryan Pavlik
<[email protected]>
<http://sensics.com>
*/
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Version 2.0)
// Internal Includes
#inc... |
<commit_before>/*
* Copyright 2008 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that th... |
<commit_before>//
// Copyright 2012 Advanced Micro Devices, Inc. All rights reserved.
//
/*! \file commandqueue.hpp
* \brief Declarations CommandQueue object.
*
* \author Laurent Morichetti ([email protected])
* \date October 2008
*/
#ifndef COMMAND_QUEUE_HPP_
#define COMMAND_QUEUE_HPP_
#include "t... |
<commit_before>#ifndef OPTIONAL_H
#define OPTIONAL_H
#include <type_traits>
namespace experimental {
template <typename T> class Optional
{
/**
* \brief The internal storage of size T and
* properly aligned on T.
*/
typename std::aligned_storage<sizeof(T), alignof(T)>::type s... |
<commit_before>/*************************************************************************
*
* $RCSfile: scextopt.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: vg $ $Date: 2005-02-21 13:20:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR 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 required by... |
<commit_before>//===-- MipsISelDAGToDAG.cpp - A dag to dag inst selector for Mips --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#ifndef DETAIL_DETECT_ARCHITECTURE_H
#define DETAIL_DETECT_ARCHITECTURE_H
//for reference see: https://sourceforge.net/p/predef/wiki/Architectures/
#define COMPASS_CT_ARCH_UNSUPPORTED
#if (defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) || defined(... |
<commit_before>/* -*- C++ -*-
* (c) 2004 Helge Bahmann <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
* Refer to the file "COPYING" for details.
*/
#include <boost/bind.hpp>
#include <boost/i... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... |
<commit_before>/**
* \file
* \brief ThreadState enum class header
*
* \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
* distribut... |
<commit_before>//===-- MipsRegisterInfo.cpp - MIPS Register Information -== --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- MipsRegisterInfo.cpp - MIPS Register Information -== -----*- C++ -*-===//
//
// 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
// We use ostream for logging purposes.
#include <iostream> // NOLINT(readability/streams)
#include <limits>
#include <string>
#include <type_traits>
#include "base/not_null.hpp"
#include "serialization/quantities.pb.h"
namespace principia {
using base::not_null;
namespace quantities ... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#ifndef STAN_MATH_OPENCL_MULTIPLY_HPP
#define STAN_MATH_OPENCL_MULTIPLY_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/matrix_cl.hpp>
#include <stan/math/opencl/kernels/scalar_mul.hpp>
#include <stan/math/opencl/kernels/matrix_multiply.hpp>
#include <stan/math/opencl/kernels/multiply_rect.hpp>
#includ... |
<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>/*
* 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>/**
* @file llinventoryicon.cpp
* @brief Implementation of the inventory icon.
*
* $LicenseInfo:firstyear=2001&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 under th... |
<commit_before>#include "IMultirotor_Properties.h"
#include "qmath.h"
namespace silk
{
std::vector<IMultirotor_Properties::Motor> IMultirotor_Properties::create_motors(size_t arm_count, float radius, bool plus_config, bool double_config)
{
std::vector<IMultirotor_Properties::Motor> res;
float angle_between_m... |
<commit_before>/******************************************************************************
* Copyright (c)2012 Jan Rheinlaender <[email protected]> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include "StagePanel.h"
#include "StageCanvas.h"
#include "SelectSpritesOP.h"
#include "SymbolContainer.h"
#include "LibraryPanel.h"
#include "Symbol.h"
extern d2d::StageModule MODULE_STAGE;
namespace ecomplex
{
StagePanel::StagePanel(wxWindow* parent, wxTopLevelWindow* frame,
d2d::PropertySet... |
<commit_before>/*!
\file binary_radix_tree_bvh.cpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#include "binary_radix_tree_bvh.hpp"
// Standard C++ library
#include <algorithm>
#include <functional>
... |
<commit_before>#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "../test_utils.h"
#include <babylon/engines/null_engine.h>
#include <babylon/engines/scene.h>
#include <babylon/meshes/abstract_mesh.h>
TEST(TestPositionAndRotation, TestConversionBetweenQuaternionsAndEuler)
{
using namespace BABYLON;
// C... |
<commit_before>/*-------------------------------------------------------------------------
*
* tuple_transformer.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /n-store/src/bridge/tuple_transformer.cpp
*
*-------------------------------------------------------------------------
*/
#include <iostream>
... |
<commit_before>#include "BuildingQueue.h"
#include "bwem.h"
#include "UnitManager.h"
#include "BaseManager.h"
#include "BuildingPlacer.h"
#include "DrawingManager.h"
Neolib::BuildingQueue buildingQueue;
namespace Neolib {
void BuildingQueue::onFrame() {
for (auto it = buildingQueue.begin(); it != buildingQueue.e... |
<commit_before>// Time: O(b * b! * h!)
// Space: O(b * b! * h!)
class Solution {
public:
int findMinStep(string board, string hand) {
unordered_map<string, unordered_map<string, int>> lookup;
sort(hand.begin(), hand.end());
int result = findMinStepHelper(board, hand, &lookup);
ret... |
<commit_before>//===- lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp ----------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before><commit_msg>Eliminated a compilation warning.<commit_after><|endoftext|> |
<commit_before>#ifndef BUILDERS_BUILDINGS_ROOFS_FLATROOFBUILDER_HPP_DEFINED
#define BUILDERS_BUILDINGS_ROOFS_FLATROOFBUILDER_HPP_DEFINED
#include "builders/buildings/roofs/RoofBuilder.hpp"
#include "meshing/MeshBuilder.hpp"
#include "meshing/Polygon.hpp"
#include <vector>
namespace utymap { namespace builders {
// ... |
<commit_before>// Copyright Yangqing Jia 2013
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include "caffe/net.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/solver.hpp"
#include "caffe/util/io.hpp"
#include "caffe/util/math_functions.hpp"
using std::max;
using std::min;
names... |
<commit_before>#include "source/extensions/matching/input_matchers/ip/config.h"
namespace Envoy {
namespace Extensions {
namespace Matching {
namespace InputMatchers {
namespace IP {
Envoy::Matcher::InputMatcherFactoryCb
Config::createInputMatcherFactoryCb(const Protobuf::Message& config,
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: graphconvert.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kz $ $Date: 2006-02-01 19:05:23 $
*
* The Contents of this file are m... |
<commit_before>#include "precomp.hpp"
//////////////////////////////////////////////////////////////////////////////////////////////////////
/// cv::viz::Color
cv::viz::Color::Color() : Scalar(0, 0, 0) {}
cv::viz::Color::Color(double gray) : Scalar(gray, gray, gray) {}
cv::viz::Color::Color(double blue, double green,... |
<commit_before>/******************************************************************************
Copyright 2013 Allied Telesis Labs Ltd. 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. Redistribu... |
<commit_before>/*
* Copyright (C) 2013-2014 Daniel Nicoletti <[email protected]>
*
* 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 o... |
<commit_before><commit_msg>There is no ExportCGM<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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... |
<commit_before>#include "sim_obj.h"
#include <vector>
#include <cmath>
#include <iostream>
using namespace std;
void sim_obj::resizeMatrix(vector<vector<double>>& p_Matrix, int newSize) {
p_Matrix.clear();
p_Matrix.resize(newSize, vector<double>(newSize, 0));
}
double sim_obj::calcCompDistance(int bodyID_A, int b... |
<commit_before>// Copyright 2013 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/metrics/caching_permuted_entropy_provider.h"
#include <string>
#include "base/basictypes.h"
#include "base/prefs/... |
<commit_before>/*
* Copyright 2016 The Cartographer Authors
*
* 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... |
<commit_before><commit_msg>Explain what the function does<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TemplateScanner.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2006-09-16 18:34:51 $
*
* The Contents of this file ... |
<commit_before>#include "disassembler.h"
#include "util.h"
using namespace std;
struct program {
char name[7];
//TODO
program() {
for ( int i = 0 ; i < 7 ; i++ ) {
name[i] = 0;
}
//TODO
}
};
bool read_record(ifstream &ifile, string &record);
void record_to_memory(const string record, program &p);
void w... |
<commit_before>/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2017 Victor DENIS (victordenis01@... |
<commit_before>/*************************************************************************
*
* $RCSfile: expop2.cxx,v $
*
* $Revision: 1.23 $
*
* last change: $Author: kz $ $Date: 2005-01-14 12:01:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: cclass_unicode.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2003-04-24 11:06:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/// \file libuobject/uobject.cc
#include <iostream>
#include <sstream>
#include <list>
#include <libport/foreach.hh>
#include <libport/lexical-cast.hh>
#include <libport/unistd.h>
#include <libport/format.hh>
#include <liburbi/compatibility.hh>
#include <urbi/uexternal.hh>
#include <urbi/uobject.hh>
... |
<commit_before>// infoware - C++ System information Library
//
// Written in 2016 by nabijaczleweli <[email protected]> and ThePhD <[email protected]>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public doma... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MultipleItemConverter.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2007-05-22 18:01:30 $
*
* The Contents of this f... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tokstack.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: vg $ $Date: 2007-02-27 12:36:15 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* $RCSfile: drawsh2.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: sab $ $Date: 2002-11-11 13:40:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include <v8.h>
#include <node.h>
#include <node_buffer.h>
#include <node_object_wrap.h>
#include <queue>
#include <uv.h>
#include "lib/OSXAudioInput.h"
#include "lib/OSXAudioInput.cc"
/**
* # Audio Classes
*
* Thanks to:
* - Justin Latimer: https://github.com/justinlatimer (node-midi, which this... |
<commit_before>#include "driveredit.h"
#include "ui_driveredit.h"
#include <QFileDialog>
string toStdString(const QString& s);
DriverEdit::DriverEdit(RobotWorld* _world,WorldSimulation* _sim,QWidget *parent) :
QDialog(parent),
ui(new Ui::DriverEdit),
world(_world),sim(_sim),robot(NULL),current(0)
{
ui... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file ScriptMetaTypeDefines.cpp
* @brief Registration of the Core API objects to Javascript.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "ScriptMetaTypeDefines.h"
#include "SceneAP... |
<commit_before>#include "data-student.hpp"
using namespace std;
void Student::init(string n, int s, int g, string m) {
name = n;
startingYear = s;
gradutationYear = g;
addMajors(m);
}
Student::Student() {
init("", 2000, 2004, "");
}
Student::Student(string n, string s, string e, string m) {
int startYear = stri... |
<commit_before>#include "ComponentCamera.h"
#include "Glew/include/glew.h"
#include "SDL/include/SDL_opengl.h"
#include "GameObject.h"
#include "ComponentTransform.h"
#include "Application.h"
#include "ModuleScene.h"
#include "ModuleRenderer3D.h"
// Constructors =================================
ComponentCamera::Co... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* DataDifferential Utility Library
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... |
<commit_before>#ifndef __ENCODER_HPP
#define __ENCODER_HPP
#ifndef __ODRIVE_MAIN_H
#error "This file should not be included directly. Include odrive_main.h instead."
#endif
class Encoder {
public:
enum Error_t {
ERROR_NONE = 0,
ERROR_UNSTABLE_GAIN = 0x01,
ERROR_CPR_OUT_OF_RANGE = 0x02,
... |
<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><commit_msg>Flagging as flaky again, they like to fail with some frequency on Chromium XP but not the testers.<commit_after><|endoftext|> |
<commit_before>/* Copyright (C) 2006-2008 Joris Mooij [j dot mooij at science dot ru dot nl]
Radboud University Nijmegen, The Netherlands
This file is part of libDAI.
libDAI is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... |
<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/extensions/extension_apitest.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Toolstrip) {
ASSERT_TRUE(RunExtens... |
<commit_before>// Copyright (c) 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/browser/extensions/user_script_master.h"
#include <fstream>
#include "base/file_path.h"
#include "base/file_util.h"
... |
<commit_before>/*
*********************************************************
Author: *
this file provides the detector algorithm for HMPID. *
*********************************************************
*/
extern "C" {
#include <daqDA.h>
}
#include "event.h"
#include "mon... |
<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/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "chrome/browser/ui/panels/panel_mouse_watcher.h"
#include "... |
<commit_before>#include "musicbottomareawidget.h"
#include "ui_musicapplication.h"
#include "musicuiobject.h"
#include "musicsystemtraymenu.h"
#include "musicwindowextras.h"
MusicBottomAreaWidget::MusicBottomAreaWidget(QWidget *parent)
: QWidget(parent)
{
m_supperClass = parent;
m_systemCloseConfig = false... |
<commit_before>// Copyright 2015 Headcrash Industries LLC. All Rights Reserved.
#include "VlcMediaPCH.h"
#include "Vlc.h"
#include "VlcMediaPlayer.h"
#include "VlcMediaUtils.h"
/* FVlcMediaPlayer structors
*****************************************************************************/
FVlcMediaPlayer::FVlcMediaPla... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2004 Joseph Wenninger <[email protected]>
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.
This li... |
<commit_before>
#include "kgreet_ovirtcred.h"
#include "OVirtCred.h"
#include <kglobal.h>
#include <klocale.h>
#include <QtGui/QLayout>
#include <QtGui/QLabel>
#define KDM_OVIRTCRED_SERVER_DBUS_NAME "org.ovirt.vdsm.Credentials"
#define KDM_OVIRTCRED_SERVER_DBUS_PATH "/org/ovirt/vdsm/Credentials"
#define KD... |
<commit_before>/*
* UnknownWordPenalty.cpp
*
* Created on: 28 Oct 2015
* Author: hieu
*/
#include <boost/foreach.hpp>
#include "UnknownWordPenalty.h"
#include "../System.h"
#include "../Scores.h"
#include "../PhraseBased/Manager.h"
#include "../PhraseBased/TargetPhraseImpl.h"
#include "../PhraseBased/InputPa... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "houdini_file_saver.h"
#include <sstream>
#include <iomanip>
#include <string>
#include "../../util/houdini_geo/HoudiniFileDumpHelper.h"
#ifdef USE_PARTIO
#include "../../util/partio/PartioFunctions.h"
#endif
#define OUTPUT_FILE_NAME "frames/frame"
//Taken from http://www.cplusplus.com/forum... |
<commit_before>/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2009-2015 The Regents of
the University of Michigan All rights reserved.
HOOMD-blue may contain modifications ("Contributions") provided, and to which
copyright is held, by vari... |
<commit_before>/***************************************************************************
* Copyright (C) 2005-2007 by the FIFE Team *
* [email protected] *
* This file is part of FIFE. ... |
<commit_before>//
// SegmentParser.cpp
// Clock Signal
//
// Created by Thomas Harte on 04/05/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#include "SegmentParser.hpp"
#include "Encoder.hpp"
#include <array>
namespace {
const uint8_t six_and_two_unmapping[] = {
/* 0x96 */ 0x00, 0x01,
/* 0x98... |
<commit_before>
/**
* @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<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 "chrome/browser/chromeos/drive/sync_client.h"
#include <vector>
#include "base/bind.h"
#include "base/message_loop/message_l... |
<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 "chrome/browser/performance_monitor/metric.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/string_nu... |
<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/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/st... |
<commit_before>#include "ClientWrapper.hpp"
#include <bts/net/upnp.hpp>
#include <bts/net/config.hpp>
#include <bts/db/exception.hpp>
#include <QApplication>
#include <QResource>
#include <QSettings>
#include <QJsonDocument>
#include <QUrl>
#include <QMessageBox>
#include <QDir>
#include <iostream>
void get_htdocs_... |
<commit_before>/*
* This file is part of accounts-ui
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Alberto Mardegan <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
<commit_before>#include "ClientWrapper.hpp"
#include <bts/net/upnp.hpp>
#include <QApplication>
#include <QResource>
#include <QSettings>
#include <QJsonDocument>
#include <QUrl>
#include <QMessageBox>
#include <iostream>
void get_htdocs_file( const fc::path& filename, const fc::http::server::response& r )
{
std:... |
<commit_before>#include "viewer.h"
#include <cstdlib>
#include <ctime>
#include <GL/gl.h>
#include <SDL.h>
#include "base/Log.h"
#include "base/Guard.h"
namespace viewer {
int Viewer::run() {
typedef base::PtrGuard<SDL_Surface, SDL_FreeSurface> SurfaceGuard;
typedef base::RunGuard<SDL_Quit> SDLQuitGuard;
i... |
<commit_before>/* -*- C++ -*-
This file is part of ThreadWeaver.
$ Author: Mirko Boehm $
$ Copyright: (C) 2004-2013 Mirko Boehm $
$ Contact: [email protected]
http://www.kde.org
http://creative-destruction.me $
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Libra... |
<commit_before>#ifndef ALEPH_PERSISTENT_HOMOLOGY_PHI_PERSISTENCE_HH__
#define ALEPH_PERSISTENT_HOMOLOGY_PHI_PERSISTENCE_HH__
#include <aleph/persistenceDiagrams/PersistenceDiagram.hh>
#include <aleph/persistentHomology/Calculation.hh>
#include <aleph/topology/Conversions.hh>
#include <aleph/topology/Intersections.hh... |
<commit_before>// (C) Copyright Gennadiy Rozental 2005.
// Distributed under 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)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
//... |
<commit_before>/**
* \file
* \brief ThreadControlBlock class header
*
* \author Copyright (C) 2014 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
* distrib... |
<commit_before>// Joint work by Rob Mill & J B Coe
#include <iostream>
#include <functional>
class A;
class B;
class C;
class AbstractVisitor
{
public:
virtual void Visit(A& a) = 0;
virtual void Visit(B& b) = 0;
virtual void Visit(C& c) = 0;
protected:
~AbstractVisitor() {}
};
class Visitable
{
public:
... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac ([email protected])
* Copyright (c) 2014 Manuel Wuthrich ([email protected])
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>/*
* structs.h
*
* Created on: 28.01.2015
* Author: fnolden
*/
#include <assert.h>
#ifndef INCLUDE_IMAGE_CLOUD_COMMON_CALIBRATION_STRUCTS_H_
#define INCLUDE_IMAGE_CLOUD_COMMON_CALIBRATION_STRUCTS_H_
namespace search
{
struct Value{
float min;
float max;
int steps_max;
float step_width;... |
<commit_before>#ifndef VIGRA_MULTI_ARRAY_MAP_HXX
#define VIGRA_MULTI_ARRAY_MAP_HXX
/* boost */
#include <boost/function.hpp>
/* vigra */
#include <vigra/multi_array.hxx>
#include <vigra/accumulator.hxx>
/* vigra - merge graph */
#include <vigra/merge_graph/min_indexed_pq.hxx>
namespace vigra{
namespace view_maps ... |
<commit_before>#include <Percolation_Sim.h>
int main() {
// Construct Network
Network net("name", false);
net.populate(10001);
net.erdos_renyi(5);
for (int i = 0; i < 10001; i++){
// Choose and run simulation
Percolation_Sim sim(&net);
sim.set_transmiss... |
<commit_before>/**
* @file
* NearestNeighborFLANN.cpp
*
* @date: Jan 5, 2010
* @author: sblume
*/
#include "NearestNeighborFLANN.h"
#include <assert.h>
#include <stdexcept>
#include <cmath>
using std::runtime_error;
namespace BRICS_3D {
NearestNeighborFLANN::NearestNeighborFLANN() {
this->dimension = -1;
... |
<commit_before>/*
* Copyright (C) 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef URBI_SOCK... |
<commit_before>#include "platform/chunks_download_strategy.hpp"
#include "coding/file_writer.hpp"
#include "coding/file_reader.hpp"
#include "coding/varint.hpp"
#include "base/logging.hpp"
#include "std/algorithm.hpp"
namespace downloader
{
ChunksDownloadStrategy::ChunksDownloadStrategy(vector<string> const & url... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.