text stringlengths 54 60.6k |
|---|
<commit_before>#include "linalg/ray.h"
#include "geometry/differential_geometry.h"
#include "geometry/geometry.h"
#include "scene.h"
#include "integrator/surface_integrator.h"
#include "renderer/renderer.h"
Renderer::Renderer(std::unique_ptr<SurfaceIntegrator> surface_integrator)
: surface_integrator(std::move(surfac... |
<commit_before>
#include "elastic/Renderer/renderer.h"
#include "floats/transform.h"
#include "nucleus/Streams/array_input_stream.h"
namespace el {
namespace {
const char* kQuadVertexShaderSource = R"source(
#version 330
layout(location = 0) in vec2 inPosition;
layout(location = 1) in vec2 inTexCoords;
out vec2 t... |
<commit_before>
#include "emptyScene.h"
void emptyScene::setup(){
// parameters.add(param);
loadCode("emptyScene/exampleCode.cpp");
}
void emptyScene::update(){
}
void emptyScene::draw(){
drawCode();
}
void emptyScene::drawCode(){
string codeReplaced = getCodeWithParamsReplaced();
ofDr... |
<commit_before>/* Chemfiles, an efficient IO library for chemistry file formats
* Copyright (C) 2015 Guillaume Fraux
*
* 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... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <iostream>
#include <cstdlib>
#ifdef LEAN_USE_LUA
#include <lua.hpp>
#include "bindings/lua/name.h"
#include "bindings/lua/numerics... |
<commit_before>// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "data/base58_encode_decode.json.h"
#include "data/base58_keys_invalid.json.h"
#i... |
<commit_before>#include <cstdlib> // size_t
#include <string>
#include <stdint.h>
#include <iostream>
#include <tightdb/assert.hpp>
#include <tightdb/utilities.hpp>
#ifdef _MSC_VER
#include <intrin.h>
#else
#include <cpuid.h>
#endif
namespace tightdb {
signed char sse_support = -1;
signed char avx_support = -... |
<commit_before>#ifndef TURBO_TOOLSET_INTRINSIC_HPP
#define TURBO_TOOLSET_INTRINSIC_HPP
#include <cstdint>
namespace turbo {
namespace toolset {
inline std::uint32_t count_leading_zero(std::uint32_t input)
{
#if defined( _WIN32) && defined(_MSC_VER)
std::uint32_t result = 0U;
return (_BitScanReverse(result&, ... |
<commit_before>// Alexis Giraudet
// Théo Cesbron
#ifndef TREE_DICTIONNAIRE_HPP
#define TREE_DICTIONNAIRE_HPP
#include "abstract_dictionnaire.hpp"
#include "node.hpp"
using namespace std;
/**
* Classe tree_dictionnaire:
*
**/
template <typename V>
class tree_dictionnaire: public abstract_dictionnaire<V>
{
pr... |
<commit_before>/**
* Copyright (C) 2013 CoDyCo Project
* Author: Silvio Traversaro
* website: http://www.codyco.eu
*/
#include "kdl_codyco/treeserialization.hpp"
#include "kdl_codyco/tree_rotation.hpp"
#include <kdl/joint.hpp>
#include <algorithm>
#include <cassert>
#include <iostream>
#include <sstream>
nam... |
<commit_before>void build(Solution &s)
{
auto &tess = s.addProject("google.tesseract", "master");
tess += Git("https://github.com/tesseract-ocr/tesseract", "", "{v}");
auto cppstd = cpp17;
auto &libtesseract = tess.addTarget<LibraryTarget>("libtesseract");
{
libtesseract.setChecks("libtess... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <cstdio>
using namespace std;
string replaceAll(string source, const string &target, const string &replacement)
{
string::size_type pos = 0;
while ((pos = source.find(target, pos)) != string::npos)
{
... |
<commit_before>// Copyright (c) 2022 PaddlePaddle 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<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 WITHOUT AN... |
<commit_before>// Filename: config_pnmtext.cxx
// Created by: drose (08Sep03)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// l... |
<commit_before>//2014.03.18 - 2014.03.19 Gustaf - CTG.
/* P R O B L E M : V A R I A B L E - L E N G T H S T R I N G M A N I P U L A T I O N
Write heap-based implementations for three required string functions:
- append
This function takes a string and a character and appends the character
to the end of the ... |
<commit_before>#include "docktoolbar.h"
#include "documentmanager.h"
#include "filebrowserwindow.h"
#include "filebrowserwidget.h"
#include "mainwindow.h"
#include "onefieldwindow.h"
#include "utils.h"
#include "ui_filebrowserwindow.h"
#include <QDir>
#include <QFileInfo>
#include <QMenu>
#include <QMessageBox>
stat... |
<commit_before>#include "AliHBTReaderInternal.h"
#include <TTree.h>
#include <TFile.h>
#include <TParticle.h>
#include <TError.h>
#include <AliRun.h>
#include <AliMagF.h>
#include "AliHBTRun.h"
#include "AliHBTEvent.h"
#include "AliHBTParticle.h"
#include "AliHBTParticleCut.h"
AliHBTReaderInternal test;
ClassImp(Al... |
<commit_before>// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "agent/agent_impl.h"
#include "gflags/gflags.h"
#include "boost/bind.hpp"
#include "boost/algorithm/string.hpp"
#include "boost/a... |
<commit_before>/***********************************************************************
filename: CEGUIFalTextComponent.cpp
created: Sun Jun 19 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/********************************... |
<commit_before>#include "vm.hpp"
#include "sexpr.hpp"
#include "package.hpp"
namespace vm {
builtin::builtin(std::size_t argc, func_type func) {
assert(argc < argc_mask);
storage.func = func;
// std::clog << "builtin: " << std::bitset<64>(storage.bits) << std::endl;
storage.bits |= argc;
}
b... |
<commit_before>#pragma once
#include <tuple>
#include <vector>
#include <memory>
#include <unordered_set>
#include <unordered_map>
#include "object_pool.hpp"
namespace Granite
{
class Entity;
struct ComponentIDMapping
{
public:
template <typename T>
static uint32_t get_id()
{
static uint32_t id = ids++;
retur... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "ProfilingEvent.hpp"
#include <armnn/utility/IgnoreUnused.hpp>
#include "armnn/IProfiler.hpp"
#include "WallClockTimer.hpp"
#include <chrono>
#include <iosfwd>
#include <ctime>
#include <vect... |
<commit_before>/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2018 The PHP Group |
... |
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>extern "C" {
#include <sys/types.h>
#include <stdio.h>
#include <jpeglib.h>
}
#include <setjmp.h>
#include <graphics/format/JPEG.h>
#include <system/System.h>
namespace lime {
struct ErrorData {
struct jpeg_error_mgr base;
jmp_buf on_error;
};
static void OnOutput (j_common_ptr cinfo... |
<commit_before><commit_msg>make redirection of find command work with ROOT6<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2015-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <compat.h>
#include <prevector.h>
#include <bench/bench.h>
struct nontrivial_t {
int x;
non... |
<commit_before>/*************************************************************************/
/* area_bullet.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "dynet/nodes.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
#include "dynet/rnn.h"
#include "dynet/gru.h"
#include "dynet/lstm.h"
#include "dynet/dict.h"
#include "dynet/expr.h"
#include "dynet/cfsm-builder.h"
#include "dynet/hsm-builder.h"
#include "dynet/glob... |
<commit_before>/*
* Copyright (c) 2012 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>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#include "SkillSystem.h"
#include "BulletSystem.h"
#include "interface.h"
#include "GameProcess.h"
#include "ObjectParticles.h"
CSkillSystem::CSkillSystem(CGameProcess* pGameProcess)
{
CBulletSystem::GetInstance()->SetCallback(MakeInterface(this, &CSkillSystem::OnSkillCallback));
m_pGameProcess = pGam... |
<commit_before>// $Id$
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
<commit_before>/**********************************************************************
* File: mod128.cpp (Formerly dir128.c)
* Description: Code to convert a DIR128 to an ICOORD.
* Author: Ray Smith
* Created: Tue Oct 22 11:56:09 BST 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** ... |
<commit_before>//------------------------------------------------------------------------------
// Copyright (c) 2018 John D. Haughton
//
// 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 wi... |
<commit_before>#include "HttpHeader.h"
HttpHeaderInfo HttpHeaderInfo::readFromBuffer(DataBuffer& buffer)
{
HttpHeaderInfo info;
if (buffer.size() < 4 || !(strncmp((const char*)buffer.data(), "HTTP", 4) == 0 || strncmp((const char*)buffer.data(), "http", 4) == 0))
{
info.valid = false;
return info;
}
size_t ... |
<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 "net/base/host_resolver_proc.h"
#include "build/build_config.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include <resol... |
<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 "net/base/host_resolver_proc.h"
#include "build/build_config.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include <resol... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 wit... |
<commit_before><commit_msg>WIP of forward probe scoring.<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: hfi_hierarchy.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-11-02 16:35:26 $
*
* The Contents of this file are ... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
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
... |
<commit_before>/*************************************************************************
*
* $RCSfile: b2dbeziertools.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: thb $ $Date: 2004-02-16 17:03:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: Constraint.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#include "LandObjectDefinition.h"
#include "components/debug/Debug.h"
namespace
{
constexpr double NO_ANIMATION_SECONDS = 0.0;
}
void LandObjectDefinition::init(Radians angle, const TextureManager::IdGroup<ImageID> &imageIDs,
double animSeconds)
{
this->angle = angle;
this->imageIDs = imageIDs;
t... |
<commit_before>//astahlle
AliAnalysisTaskEMCALPi0V2ShSh *AddTaskEMCALPi0V2ShSh()
{
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr)
{
::Error("AddTaskEMCALPi0V2ShSh", "No analysis manager to connect to.");
return NULL;
}
if (!mgr->GetInputEventHandler())
{
::Error("... |
<commit_before>//______________________________________________________________________________
AliAnalysisTaskCEPAnalysis* AddAnalysisTaskCEP(
Bool_t isMC = kFALSE,
Bool_t isSaveAll = kFALSE,
Int_t numTracksMax = 100000)
)
{
// get the manager and task
AliAnalysisManager *aam = AliAnalysis... |
<commit_before>/***********************************************************************
filename: CEGUIFalTextComponent.cpp
created: Sun Jun 19 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/********************************... |
<commit_before>/*
* THE UNICODE TEST SUITE FOR CINDER: https://github.com/arielm/Unicode
* COPYRIGHT (C) 2013, ARIEL MALKA ALL RIGHTS RESERVED.
*
* THE FOLLOWING SOURCE-CODE IS DISTRIBUTED UNDER THE MODIFIED BSD LICENSE:
* https://github.com/arielm/Unicode/blob/master/LICENSE.md
*/
/*
* USING BIDI TEXT EXAMPLES... |
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved.
#include "JSCHelpers.h"
#include <JavaScriptCore/JSStringRef.h>
#include <glog/logging.h>
#include "Value.h"
namespace facebook {
namespace react {
void installGlobalFunction(
JSGlobalContextRef ctx,
const char* name,
JSObjectCallA... |
<commit_before>#include "splitruns.h"
#include "pvalue.h"
#include "gtest/gtest.h"
#include <gsl/gsl_cdf.h>
TEST(splitruns, split)
{
constexpr double Tobs = 15.5;
constexpr unsigned N = 12;
constexpr unsigned n = 2;
const double F = runs_cumulative(Tobs, N);
const double approx = F*F / (1.0 + Delt... |
<commit_before>#include "splitruns.h"
#include "pvalue.h"
#include "gtest/gtest.h"
#include <gsl/gsl_cdf.h>
TEST(splitruns, split)
{
constexpr double Tobs = 15.5;
constexpr unsigned N = 12;
constexpr unsigned n = 2;
const double F = runs_cumulative(Tobs, N);
const double approx = F*F / (1.0 + Delt... |
<commit_before><commit_msg>Fix some clang warnings with -Wmissing-braces in rlz.<commit_after><|endoftext|> |
<commit_before>/*
DS18B20.h - Library for reading the voltage of a battery or solarcell.
See sensV for circuitry.
Created by Maurice (Mausy5043) Hendrix, FEB2015
MIT license
*/
#include "DS18B20.h"
DS18B20::DS18B20(int pin, int samples)
{
_pin = pin;
_samples = samples;
}
void DS18B20::begin(void)
{
/... |
<commit_before>/*
* Copyright (c) 2011-2012 Stephen Williams (steve@icarus.com)
* Copyright (c) 2014 CERN
* @author Maciej Suminski (maciej.suminski@cern.ch)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public ... |
<commit_before>//
// MurmurHash3, by Austin Appleby
//
// Originals at:
// http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp
// http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.h
//
// Notes:
// 1) this code assumes we can read a 4-byte value from any address
// without crashing ... |
<commit_before>//===-- WebAssemblyInstrInfo.cpp - WebAssembly Instruction Information ----===//
//
// 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) 2018, NVIDIA CORPORATION. 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, th... |
<commit_before>/*
* AscEmu Framework based on ArcEmu MMORPG Server
* Copyright (C) 2014-2016 AscEmu Team <http://www.ascemu.org/>
*
* 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 Software Foundation, e... |
<commit_before>/*
* Copyright (c) 2012-2015 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
#include "scene_graph.h"
#include "quaternion.h"
#include "vector3.h"
#include "matrix3x3.h"
#include "matrix4x4.h"
#include "allocator.h"
#include "array.h... |
<commit_before>#include <string>
#include <Poco/NumberFormatter.h>
#include <Poco/Timestamp.h>
#include <Poco/XML/XMLWriter.h>
#include <Poco/SAX/AttributesImpl.h>
#include "xmlui/Serializing.h"
#include "l10n/TimeZone.h"
#include "model/Gateway.h"
#include "model/LegacyGateway.h"
#include "model/Location.h"
#include ... |
<commit_before>/*
** This file is part of libyuni, a cross-platform C++ framework (http://libyuni.org).
**
** 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/.
**
** github:... |
<commit_before>#include "singleton_factory.hpp"
namespace {
auto invertReg = ObjectRegister<std::function<cv::Mat(cv::Mat)> >("Invert",
[](cv::Mat im){
cv::rectangle(im, cv::Point(100,100), cv::Point(200,200), cv::Scalar(255,0,0), 1);
return im; });
}
<commit_msg>Simple invert processor.<commit_afte... |
<commit_before>/*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
//Using one stack but modifies the in... |
<commit_before>// -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2004-2006 Apple Computer, Inc.
* Copyright (C) 2006 Bjoern Graf (bjoern.graf@gmail.com)
*
* This library is free software; you can redistribute it an... |
<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/chromeos/login/update_view.h"
#include <string>
#include "base/utf_string_conversions.h"
#include "chrome/br... |
<commit_before>// Copyright (c) 2011 - 2015, GS Group, https://github.com/GSGroup
// 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 notice appear in all copies.
// THE SOFTWARE IS PRO... |
<commit_before>#include <iostream>
using namespace std;
int main()
{
}
<commit_msg>removed empty solution<commit_after><|endoftext|> |
<commit_before>class Solution {
public:
/**
* @param nums an integer array and all positive numbers, no duplicates
* @param target an integer
* @return an integer
*/
int backPackVI(vector<int>& nums, int target) {
// Write your code here
}
};<commit_msg>Solved 564<commit_after>cl... |
<commit_before>// stl
#include <iostream>
#include <string>
//project
#include "Bot.h"
Bot::Bot()
: armiesLeft(0)
, parser(this)
, phase(NONE)
{
}
Bot::~Bot()
{
}
void Bot::playGame()
{
parser.parseInput();
}
void Bot::makeMoves()
{
/// Output No moves when you have no time left ... |
<commit_before>#include "File.h"
std::map<__ino_t, File *> File::uk_inode;
std::multimap<fsize_t, File *> File::cx_size;
File::File(const std::string &path, const std::string &filename) {
name = filename;
relativepath.append(path) += std::string("/") += filename;
// std::cout << relativepath << std::endl;
struct s... |
<commit_before>/** @file
A brief file description
@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 ownership. The ASF licenses this fi... |
<commit_before>/*
* nvbio
* Copyright (c) 2011-2014, NVIDIA CORPORATION. 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
... |
<commit_before>#include "linearoctree.h"
#include "octantid.h"
#include "parallel_stable_sort.h"
#include <algorithm>
#include <ostream>
#include <assert.h>
std::ostream& operator<<(std::ostream& s, const LinearOctree& octree) {
s << "Octree with layers. Size: " << octree.leafs().size() << std::endl;
for (ui... |
<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/gtk/gtk_floating_container.h"
#include <gtk/gtk.h>
#include <gtk/gtkprivate.h>
#include <gtk/gtkmarshal.h>
#... |
<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/file_path.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chr... |
<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/gtk/options/fonts_page_gtk.h"
#include "app/l10n_util.h"
#include "app/l10n_util_collator.h"
#include "chrome... |
<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/prefs/session_startup_pref.h"
#include <string>
#include "base/values.h"
#include "chrome/browser/net/url_fi... |
<commit_before><commit_msg>planning: increase routing lane length check epsilon to allow projection diff.<commit_after><|endoftext|> |
<commit_before>#include <boost/test/unit_test.hpp>
#include <ze/event.h>
#include "vast/query/ast.h"
#include "vast/query/exception.h"
#include "vast/query/expression.h"
#include "vast/query/parser/query.h"
#include "vast/util/parser/parse.h"
std::vector<ze::event_ptr> events
{
new ze::event{"foo", "babba", 1.337... |
<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 <string>
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/common/... |
<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/notifications/balloon_host.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/in_process_we... |
<commit_before>/*
* Copyright (C) 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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, either version 3 of the License, or
* (at your op... |
<commit_before>/**
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "ruby_module.h"
namespace kroll {
KRubyObject::KRubyObject(VALUE object) :
object(object)
... |
<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/views/about_network_dialog.h"
#include "base/string_util.h"
#include "base/thread.h"
#include "chrome/browser... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
* (C) 2019 Eddie Hung <eddie@fpgeh.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided th... |
<commit_before>/*
* opencog/atomspace/AtomSpace.cc
*
* Copyright (C) 2008-2011 OpenCog Foundation
* Copyright (C) 2002-2007 Novamente LLC
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* publishe... |
<commit_before>#include <iostream>
#include "room.hpp"
template<size_t D>
int Room<D>::image_source_model(const Eigen::Matrix<float,D,1> &source_location, int max_order)
{
/*
* This is the top-level method to run the image source model
*/
// make sure the list is empty
while (visible_sources.size() > 0)
... |
<commit_before>/*
* opencog/atomspace/AtomSpace.cc
*
* Copyright (c) 2008-2010 OpenCog Foundation
* Copyright (c) 2009, 2013 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* publish... |
<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/renderer/media/video_renderer_impl.h"
#include "media/base/yuv_convert.h"
VideoRendererImpl::VideoRendererImpl(WebMe... |
<commit_before><commit_msg>Fix clang warning in UDPSocketTest.<commit_after><|endoftext|> |
<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/renderer/render_widget_fullscreen_pepper.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/ggl/... |
<commit_before>/*
Copyright (c) 2015, Aaditya Kalsi
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 copyright notice, this
list of conditions a... |
<commit_before>#include "Arduino.h"
#include "RSS.h"
// #include "MemoryFree.h"
//#include "SPI.h"
//using namespace grubs;
// using namespace grubs;
// namespace grubs{
// bool c = 1;
// }
//using namespace std;
// namespace grubs{
// int blue;
// };
RSS::RSS(int N , int hits, char Rule, int channel){
_Trig... |
<commit_before>/*************************************************************************
*
* $RCSfile: redcom.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:45:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.