text stringlengths 54 60.6k |
|---|
<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/plugin_observer.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/content_settings/host_co... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* 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... |
<commit_before>#include "lua_class.h"
#include "../table/table.h"
#include "../util/string_enum.h"
namespace saki
{
bool isValidSuitStr(const std::string &s)
{
return s.size() == 1 && T34::isValidSuit(s[0]);
}
std::string toLower(const char *s)
{
std::string res(s);
std::for_each(res.begin(), res.end()... |
<commit_before>#include "Iop_Dynamic.h"
using namespace Iop;
CDynamic::CDynamic(uint32* exportTable)
: m_exportTable(exportTable)
, m_name(reinterpret_cast<char*>(m_exportTable) + 12)
{
}
CDynamic::~CDynamic()
{
}
std::string CDynamic::GetId() const
{
return m_name;
}
std::string CDynamic:... |
<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 "OrbitCaptureClient/CaptureClient.h"
#include <absl/container/flat_hash_set.h>
#include <absl/flags/declare.h>
#include <absl/ti... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WIT... |
<commit_before>#include "BoundingBox.hpp"
#include "Exceptions.hpp"
#include "clipper/clipper.hpp"
#include "builders/BuilderContext.hpp"
#include "builders/terrain/LineGridSplitter.hpp"
#include "builders/terrain/TerraBuilder.hpp"
#include "entities/Node.hpp"
#include "entities/Way.hpp"
#include "entities/Area.hpp"
#i... |
<commit_before>/*
* @file filesystem-lru-cache.cc
* @brief additional implementation of file system LRU cache
*
* @date Nov 20, 2014
* @author elenav
*/
#include <map>
#include <boost/regex.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include ... |
<commit_before>#include <vector>
#include <iostream>
// euclidean distance
double distance(std::pair<double, double>, std::pair<double, double>);
double distance(std::pair<int, int>, std::pair<int, int>);
int shortest_path_dist(vector< vector<int> >);
int main(int argc, char** argv)
{
if (argc < 2)
{
std::cerr <... |
<commit_before>// Author: Brian Scully
// Copyright (c) 2016 Agponics
#include "ds18b20_sensor.h"
void CDs18b20Sensor::set_pin(int pin)
{
CDevice::set_pin(pin);
m_one_wire = OneWire(pin);
m_dt = DallasTemperature(&m_one_wire);
m_dt.begin();
}
String CDs18b20Sensor::get_status_str()
{
d... |
<commit_before>/** \brief Classes related to the Zotero Harvester's interoperation with the Zeder database
* \author Madeeswaran Kannan
*
* \copyright 2020-2021 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms ... |
<commit_before>#ifndef DIRICHLET_SHETXCOC
#define DIRICHLET_SHETXCOC
namespace Dune {
namespace Functionals {
namespace Constraints {
/** @brief Constraints for Dirichlet values on the entire boundary domain
*
* This class implements constraints on the degrees of freedom on a @ref
* Subspace::Linear "linear subspa... |
<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 "build/build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#include <objidl.h>
#include <mlang.h>
#endif
#include ... |
<commit_before>#ifndef __CALLBACK_ENGINE_HPP_INCLUDED
#define __CALLBACK_ENGINE_HPP_INCLUDED
#include "cpp/ylikuutio/common/any_value.hpp"
// Include standard headers
#include <queue> // std::queue
#include <stdint.h> // uint32_t etc.
#include <string> // std::string
#include <unordered_map> // st... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "..\ProjectEuler\Problem1.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace ProjectEulerTests
{
TEST_CLASS(Problem1Tests)
{
public:
TEST_METHOD(SumMultiplesOf3And5Below_Input0_Returns0)
{
auto result... |
<commit_before>#include "maps.h"
namespace gsnizk {
G1 B1::extract(const CRS &crs) const {
return _2 - (Fp(1) / crs.j1) * _1;
}
G2 B2::extract(const CRS &crs) const {
return _2 - (Fp(1) / crs.j2) * _1;
}
GT BT::extract(const CRS &crs) const {
Fp p = Fp(-1) / crs.j1;
return (_22 * (_12 ^ p)) * ((_21 ... |
<commit_before>
/*******************************************************************************
** Copyright Chris Scott 2014
** Interface to Voro++
*******************************************************************************/
#include "stdlib.h"
#include "math.h"
#include "voro_iface.h"
#include "voro++.hh"
#i... |
<commit_before>// Copyright (c) 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/renderer/tts_dispatcher.h"
#include "base/basictypes.h"
#include "base/utf_string_conversions.h"
#include "chrome/com... |
<commit_before>#include "allocator.h"
#include <cstring>
namespace nvds {
uintptr_t Allocator::Alloc(uint32_t size) {
// The client side should refuse too big kv item.
// TODO(wgtdkp): round up.
auto blk_size = size + sizeof(uint32_t);
assert(blk_size % 16 == 0);
assert(blk_size <= kMaxBlockSize);
auto ... |
<commit_before><commit_msg>`floyd_warshall_shader_CSV_compute_task`: `internal_format` is `GL_R8`.<commit_after><|endoftext|> |
<commit_before>// This file is part of the dune-pymor project:
// https://github.com/pyMor/dune-pymor
// Copyright Holders: Felix Albrecht, Stephan Rave
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_PYMOR_FUNCTIONALS_DEFAULT_HH
#define DUNE_PYMOR_FUNCTIONALS_DEFAULT_HH
... |
<commit_before>/* cclive
* Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
*
* This file is part of cclive <http://cclive.sourceforge.net/>.
*
* This program 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... |
<commit_before>//
// main.cpp
// CS372Spring2015Examples
//
// Created by Chris Hartman on 1/26/15.
// Copyright (c) 2015 Chris Hartman. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}
<commit_msg>... |
<commit_before><commit_msg>Split overly long line into multiple lines.<commit_after><|endoftext|> |
<commit_before>#ifndef PI
#define PI 3.14159265359f
#endif
#ifndef GLM_FORCE_RADIANS
#define GLM_FORCE_RADIANS
#define DEGREES_TO_RADIANS(x) (x * PI / 180.0f)
#endif
#ifndef RADIANS_TO_DEGREES
#define RADIANS_TO_DEGREES(x) (x * 180.0f / PI)
#endif
#include "universe.hpp"
#include "scene.hpp"
#include "ground_level.h... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <functional>
#include <cstdio>
#include <cstdlib>
using namespace std;
// nSwap == nNiXuNumber
Class BuddleSortWithReversals
{
public:
int getCurNiXuNumber(vector<int> A)
{
int n = A.s... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medickal and
Biological Informatics. All righ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkInteractorObserver.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>#include "GameProcess.h"<commit_msg>Signed-off-by: mrlitong <litongtongxue@gmail.com><commit_after>#include "GameProcess.h"
using namespace MathLib;<|endoftext|> |
<commit_before><commit_msg>Typos in method descriptions.<commit_after><|endoftext|> |
<commit_before>///
/// @file help.cpp
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesum.hpp>
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;... |
<commit_before>#include "common/application_info.h"
#include "base/file_version_info.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
namespace brightray {
std::string GetApplicationName() {
auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModule... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <stdlib.h... |
<commit_before>/*
Part of Scallop Transcript Assembler
(c) 2017 by Mingfu Shao, Carl Kingsford, and Carnegie Mellon University.
See LICENSE for licensing.
*/
#include <cstdio>
#include <cassert>
#include <sstream>
#include "config.h"
#include "gtf.h"
#include "genome.h"
#include "assembler.h"
#include "scallop.h"
#i... |
<commit_before>#pragma once
#include "renderer/scene/gravitationalobject.hpp"
#include "collisiondetection/collidable.hpp"
/**
* Basic brown gravitational asteroid.
*/
class Asteroid : public scene::GravitationalObject, public collisiondetection::Collidable {
public:
Asteroid(glm::vec3 initialLocation, unsigned ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: ImageViewer.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright... |
<commit_before>// Copyright 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 applicable ... |
<commit_before><commit_msg>`AnyValue`: use `std::boolapha` to convert `bool` value to a string.<commit_after><|endoftext|> |
<commit_before><commit_msg>Bugfix: if active `Scene` was deleted, set active `Scene` to `nullptr`.<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>#include "command_manager.hh"
#include "utils.hh"
#include "assert.hh"
#include "context.hh"
#include "shell_manager.hh"
#include <algorithm>
namespace Kakoune
{
bool CommandManager::command_defined(const String& command_name) const
{
return m_commands.find(command_name) != m_commands.end();
}
v... |
<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/browser/views/cookie_info_view.h"
#include <algorithm>
#include "app/l10n_util.h"
#include "base/i18n/time_formattin... |
<commit_before>/*
* Contest2019DataLoader.cpp
*
* Copyright (C) 2019 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "Contest2019DataLoader.h"
#include "mmcore/param/BoolParam.h"
#include "mmcore/param/FilePathParam.h"
#include "mmcore/param/FloatParam.h"
#include "mmc... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2007 Bruno Virlet <bruno.virlet@gmail.com>
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,... |
<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/website_settings_model.h"
#include <string>
#include <vector>
#include "base/string_number_conversions.h"
#i... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2007 Bruno Virlet <bruno.virlet@gmail.com>
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,... |
<commit_before>#include <Dusk/Dusk.hpp>
#include <Dusk/Log.hpp>
#include <Dusk/Module.hpp>
#include <Dusk/ScriptConsole.hpp>
#include <Dusk/Graphics/GraphicsDriver.hpp>
#include <Dusk/Graphics/TransformData.hpp>
#include <Dusk/Scene/AxisComponent.hpp>
#include <Dusk/Scene/MeshComponent.hpp>
#include <Dusk/Scene/Entity... |
<commit_before>/*
Copyright 2016 Peter Repukat - FlatspotSoftware
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 ag... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vvasielv@cern.ch>
// author: Baozeng Ding <sploving1@gmail.com>
//-----------------------------------------------------------------... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/Interpreter/CIFactory.h... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/Interpreter/CIFactory.h... |
<commit_before>/*
* Converts media wiki markup into plaintext
*/
#include <iostream>
#include <sstream>
#include <fstream>
#include <string.h>
#include <pcre.h>
#include <math.h>
#include <dirent.h>
using namespace std;
char* substr(char* dest, const char* src, int start, int len, int n)
{
if(start >= n)
th... |
<commit_before>//===--- TerminalDisplayWin.h - Output To Windows Console -------*- 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) 2017-2018 Andrew Depke
*/
#include "WindowsProcess.h"
#include <Windows.h>
#include <Psapi.h>
namespace Red
{
bool GetProcessModules(std::vector<ProcessModule>* Output)
{
if (!Output)
{
return false;
}
HMODULE Modules[1024];
HANDLE Process = GetCurrentProcess();
DWOR... |
<commit_before>/** @file
Catch-based unit tests for MIOBufferWriter class.
@section license License
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... |
<commit_before>//// Fancy ncurses terminal for calculators
//// Author: David P. Sicilia, June 2016
#include <ncurses.h>
#include <string>
#include <vector>
#include <algorithm>
#include <stdexcept>
#include <iostream>
#include <string.h>
#include <dlfcn.h>
#include <stdlib.h>
#include "assert.hpp"
#include "scope_ex... |
<commit_before>#ifndef MBGL_UTIL_VEC
#define MBGL_UTIL_VEC
#include <limits>
#include <type_traits>
#include <cmath>
#include <cstdint>
#include <array>
namespace MonkVG {
template <typename T = double>
struct vec2 {
struct null {};
typedef T Type;
T x, y;
inline vec2() {}
template<typename U ... |
<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>#include <cstdio>
#include <iostream>
#include <fstream>
#include <boost/regex.hpp>
#include <boost/filesystem.hpp>
#include <nwg.h>
#include <nwg_basicprotocolcodec.h>
#define BUFFSIZE SZ_64KB
#define READBUFFSIZE SZ_4MB
#ifndef SILENT
#define SILENT 1
#endif
#if SILENT
#define _printf(...)
#el... |
<commit_before>/*
* Copyright 2020 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 requ... |
<commit_before>#pragma once
#include "CGameProjectile.hpp"
#include "Camera/CCameraShakeData.hpp"
namespace urde {
class CEnergyProjectile : public CGameProjectile {
CSfxHandle x2e8_sfx;
zeus::CVector3f x2ec_dir;
float x2f8_mag;
CCameraShakeData x2fc_camShake;
bool x3d0_24_dead : 1;
bool x3d0_25_ : 1;
... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2009-05-12 19:56:03 +0200 (Di, 12. Mai 2009) $
Version: $Revision: 17179 $
Copyright (c) German Cancer Research Center, Division of Medical and... |
<commit_before>//
// AppleGCR.cpp
// Clock Signal
//
// Created by Thomas Harte on 21/04/2018.
// Copyright © 2018 Thomas Harte. All rights reserved.
//
#include "AppleGCR.hpp"
namespace {
const unsigned int five_and_three_mapping[] = {
0xab, 0xad, 0xae, 0xaf, 0xb5, 0xb6, 0xb7, 0xba,
0xbb, 0xbd, 0xbe, 0xbf, 0x... |
<commit_before>#include "common/WindowDescriptors.hpp"
#include "widgets/Window.hpp"
namespace chatterino {
namespace {
QJsonArray loadWindowArray(const QString &settingsPath)
{
QFile file(settingsPath);
file.open(QIODevice::ReadOnly);
QByteArray data = file.readAll();
QJsonD... |
<commit_before>#include "SINSymbolTable.h"
#include "SINAssert.h"
#define ASSERT_CURRENT_SCOPE() SINASSERT(currScope < table.size())
#define ASSERT_GIVEN_SCOPE() SINASSERT(scope < table.size())
#define ASSERT_SCOPE(SCOPE) SINASSERT(SCOPE < table.size())
#define RETURN_VALUE(SCOPE, FUNC... |
<commit_before>//g++ *.cpp -lpthread -lwiringPi -std=c++11
//LATER MET GUI MAKEFILE <sudo make>
#include "Sensor.h"
#include "I22cCom.h"
#include "Log.h"
#include "Camera.h"
#include "Light.h"
#include "MotionSensor.h"
#include "PressureSensor.h"
//#define I2CLOC "/dev/i2c-1"// <-- this is the real I2C devic... |
<commit_before>//
// AppleGCR.cpp
// Clock Signal
//
// Created by Thomas Harte on 21/04/2018.
// Copyright © 2018 Thomas Harte. All rights reserved.
//
#include "AppleGCR.hpp"
namespace {
const unsigned int five_and_three_mapping[] = {
0xab, 0xad, 0xae, 0xaf, 0xb5, 0xb6, 0xb7, 0xba,
0xbb, 0xbd, 0xbe, 0xbf, 0x... |
<commit_before>// UI:
// http://qt-project.org/doc/qt-4.8/qtablewidget.html#details
//
// Model:
//
// Store:
#include "top/config.h"
#include "view/mainwindow.h"
#include "canary/model.h"
#include "dal/pq_queries.h"
#include "top/app_types.h"
#include "canary/isolation.h"
#include <QApplication>
#include <QLabel>
#i... |
<commit_before>/***************************************************************************
Copyright (C) 2007
by Marco Gulino <marco@kmobiletools.org>
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 Softw... |
<commit_before>#include <bitbots_ros_control/wolfgang_hardware_interface.h>
#include <bitbots_ros_control/utils.h>
namespace bitbots_ros_control {
/**
* This class provides a combination of multiple hardware interfaces to construct a complete Wolfgang robot.
* It is similar to a CombinedRobotHw class as specified i... |
<commit_before>AliAnalysisTask *AddTask_Helium3Pi(TString name="name"){
//get the current analysis manager
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTask_Helium3Pi", "No analysis manager found.");
return 0;
}
//========= Add task to the ANALYSIS mana... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit (ITK)
Module:
Language: C++
Date:
Version:
Copyright (c) 2000 National Library of Medicine
All rights reserved.
See COPYRIGHT.txt for copyright details.
=====... |
<commit_before>/*
* DBriefDescriptorExtractor.cpp
*
* Created on: Aug 22, 2013
* Author: andresf
*/
#include <DBriefDescriptorExtractor.h>
#include <iostream>
#include <string>
namespace cv {
void DBrief(const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors,
const int& size, const int& type) {... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Actions/Generic.hpp>
#include... |
<commit_before>/*
* Copyright (C) 2018 Muhammad Tayyab Akram
*
* 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 b... |
<commit_before>//===-- ExternalMethods.cpp - Implement External Methods ------------------===//
//
// This file contains both code to deal with invoking "external" methods, but
// also contains code that implements "exported" external methods.
//
// External methods in LLI are implemented by dlopen'ing the lli exe... |
<commit_before>#include <lcm/lcm-cpp.hpp>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/filters/passthrough.h>
#include <path_util/path_util.h>
#include <laser_utils/laser_util.h>
#include <lcmtypes/pronto/pointcloud2_t.hpp>
#include <lcmtypes/pronto/pointcloud_t.hpp>
#include <pronto_utils/... |
<commit_before>#include "musicplaylistfoundwidget.h"
#include "musicsourcedownloadthread.h"
#include "musicdownloadquerywyplaylistthread.h"
#include "musicplaylistfoundinfowidget.h"
#include "musicdownloadqueryfactory.h"
#include "musictinyuiobject.h"
#include "musicplaylistfoundcategorywidget.h"
#include <QPushButton... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: core_resource.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 13:36:10 $
*
* The Contents of this file are ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SqlNameEdit.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 07:00:36 $
*
* The Contents of this file are m... |
<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/browser/debugger/devtools_http_protocol_handler.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#inc... |
<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/extensions/extension_webkit_preferences.h"
#include "chrome/common/extensions/extension.h"
#include "webkit/g... |
<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 "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_s... |
<commit_before>// Copyright (c) 2006-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/net/chrome_url_request_context.h"
#include "base/command_line.h"
#include "base/format_macros.h"
#includ... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include "gtest/gtest.h"
#include <Utils/ResponseUtils.... |
<commit_before>/**
* @file perf_index.hpp
* @brief Performance tests on index.
* @author Paolo D'Apice
*/
#ifndef VIS_PERF_INDEX_HPP
#define VIS_PERF_INDEX_HPP
#include "descriptors_type.hpp"
#include "index.hpp"
#include "utils/timer.hpp"
#include <boost/array.hpp>
namespace perf {
/// Number of times a single... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Publ... |
<commit_before>
#include <DuiLocale>
#include <QTimer>
#include <QHash>
#include <QObject>
#include <QDebug>
#include <QDBusInterface>
#include <QAbstractEventDispatcher>
#include <DuiInfoBanner>
#include "notifier.h"
#include "sysuid.h"
#include "notifierdbusadaptor.h"
NotifTimer::NotifTimer(int expireTimeout, QObj... |
<commit_before>#include "numerics.h"
using namespace std;
namespace numerics {
// subtract minimum value, logaddexp residuals, pass residuals and partition to
// draw_sample_with_partition
int draw_sample_unnormalized(vector<double> unorm_logps, double rand_u) {
double max_el = *std::max_element(unorm_logp... |
<commit_before>#include "stdafx.h"
#include "Win32NonBlockingDispatcher.h"
#include <cassert>
#include <mutex>
#include <optional>
#include <queue>
#if defined(_WIN32)
// WTL includes
#define NOMINMAX
#include <Windows.h>
#include <atlapp.h>
#include <atlbase.h>
namespace isc
{
struct Win32NonBlocki... |
<commit_before>// Only for Linux :)
#include <iostream>
// LEVEL TRIGGERED. Notification happens when we have something to read.
// 10 bytes received. System notifies us. We read 5. System notifies us again to read
// another 5.
// EDGE TRIGGERED. Notification happens when we have something to read.
// 10 bytes rece... |
<commit_before>//
// Utility class to do jet-by-jet correction
// Based on templates of ptJet vs ptTrack vs r
//
// Author: M.Verweij
#include "TH2.h"
#include "TH3.h"
#include "TProfile.h"
#include "TMath.h"
#include "TRandom3.h"
#include "TLorentzVector.h"
#include "AliEmcalJet.h"
#include "AliVParticle.h"
#include ... |
<commit_before>// FXStudioCore.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "FXStudioCore.h"
#include "FXStudioApp.h"
#include "FXStudioView.h"
FXSTUDIOCORE_API int CreateInstance(
int *instancePtrAddress,
int *hPrevInstancePtrAddress,
int *hWndPtrAddress,
int nCmd... |
<commit_before>/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
* Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
* Copyright (C) 2007 Alexe... |
<commit_before>// JSON condenser exmaple
// This example parses JSON from stdin with validation,
// and re-output the JSON content to stdout with all string capitalized, and without whitespace.
#include "rapidjson/reader.h"
#include "rapidjson/writer.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/filew... |
<commit_before>/*
* Copyright (C) 2013 Google Inc. 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 l... |
<commit_before>//
// Copyright (C) Alexandr Vorontsov. 2017
// Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
//
#include "stdafx.h"
#include "Render/Renderer.h"
#include "Render/DX12/RendererDX12.h"
namespace Kioto::Renderer
{
RendererDX12 renderer; // [a_vorontsov] N... |
<commit_before>#include <iostream>
#include <algorithm>
#include <exception>
#include <vector>
#include <memory>
#include "csimplesocket/ActiveSocket.h"
#include "json.hpp"
#include "core/api.h"
#include "strategy.h"
using json = nlohmann::json;
const int PACKET_SIZE = 8096;
namespace
{
template<typename JSON>
void... |
<commit_before>#include "AnalysisSolver.h"
#include <sofa/core/ObjectFactory.h>
#include <Eigen/SVD>
#include <Eigen/Eigenvalues>
namespace sofa {
namespace component {
namespace linearsolver {
SOFA_DECL_CLASS(AnalysisSolver)
int AnalysisSolverClass = core::RegisterObject("Analysis solver: runs other KKTSolvers suc... |
<commit_before><commit_msg>Wait for the history backend to load, which makes AutocompleteBrowserTest.Autocomplete not flaky.<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.