text stringlengths 54 60.6k |
|---|
<commit_before>//MIT License
//Copyright 2017 Patrick Laughrea
#include "theadFun.hpp"
#include "utils.hpp"
#include "webss.hpp"
#include "list.hpp"
using namespace std;
using namespace webss;
TheadFun::TheadFun() : ptr(shared_ptr<const Tuple*>(new const Tuple*)) {}
TheadFun::TheadFun(const TheadFun& o, int foreachI... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: svdpagv.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2007-06-26 12:01:15 $
*
* The Contents of this file are made a... |
<commit_before>// janssonxx - C++ wrapper for jansson, implementation file
//
// author: Sean Middleditch <sean@middleditch.us>
//
// janssonxx is free software; you can redistribute it and/or modify
// it under the terms of the MIT license. See LICENSE for details.
#if !defined(IN_JANSSON_HPP)
# error "jansson-impl.h... |
<commit_before>/*
* Copyright 2014 CyberVision, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
<commit_before>/**
* \file qibla.cpp
*/
#include <math.h>
double get_qibla_angle(double longitude, double latitude)
{
double m = sin(longitude - 39.8230);
double n = cos(latitude) * tan(21.42330) - sin(latitude) * cos(longitude - 39.8230);
double q = atan(m/n);
return q;
}
<commit_msg>use constants w... |
<commit_before>#include "Audio.hpp"
#include <AL/al.h>
#include <AL/alext.h>
#include "Game.hpp"
#include "Sound.hpp"
#include "GlobalProperties.hpp"
#define AUDIO_GC_DEBUG 0
namespace Diggler {
Audio::Audio(Game* G) : G(G), sounds(m_sounds) {
if (!GlobalProperties::IsSoundEnabled)
return;
int alMajor, alMinor... |
<commit_before>// Uses ITK to convert any image format ITK understands to any format ITK understands.
// If necessary e.g. for custom/proprietory file formats, can write an ImageIO subclass
// and register it with the IO factory.
#include <boost/program_options.hpp>
#include "itkImage.h"
#include "itkImageFileReader.... |
<commit_before><commit_msg>Add steering function<commit_after><|endoftext|> |
<commit_before>#include "RTSContainableComponent.h"
#include "GameFramework/Actor.h"
#include "Net/UnrealNetwork.h"
#include "RTSContainerComponent.h"
#include "RTSLog.h"
#include "Combat/RTSHealthComponent.h"
URTSContainableComponent::URTSContainableComponent(const FObjectInitializer& ObjectInitializer /*= FObject... |
<commit_before>#include "GUINode.h"
wxIMPLEMENT_DYNAMIC_CLASS(GUINode, wxControl);
void GUINode::Init()
{
// Compute the best width
m_bestSize.SetWidth(200); // Must be computed depending on the lengths of the inputs and outputs parameters
// Compute the best height
int nbInputs = m_node.GetInputs().size();
int ... |
<commit_before>#include <ros/ros.h>
#include <nav_msgs/Odometry.h>
#include <tf/transform_broadcaster.h>
#include <math.h>
#include <igvc_msgs/velocity_pair.h>
#include "Odometer.h"
/**
* Coneverts wheel velocities to odometry message using trigonometry for calculations
* In the ros coordinate convention x is forwa... |
<commit_before>#include "../base/SRC_FIRST.hpp"
#include "mainwindow.hpp"
#include "draw_widget.hpp"
#include "update_dialog.hpp"
#include "searchwindow.hpp"
#include "classificator_tree.hpp"
#include "slider_ctrl.hpp"
#include "about.hpp"
#include "preferences_dialog.hpp"
#include "info_dialog.hpp"
#include "guide_pa... |
<commit_before>/*
gpe_game_master_itenary.cpp
This file is part of:
GAME PENCIL ENGINE
https://create.pawbyte.com
Copyright (c) 2014-2020 Nathan Hurde, Chase Lee.
Copyright (c) 2014-2020 PawByte LLC.
Copyright (c) 2014-2020 Game Pencil Engine contributors ( Contributors Page )
Permission is hereby granted, ... |
<commit_before><commit_msg>printerpullpages: #i106879# use document printer as default<commit_after><|endoftext|> |
<commit_before>/*
* Android File Transfer for Linux: MTP client for android devices
* Copyright (C) 2015 Vladimir Menshakov
* 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 ... |
<commit_before>#include "gpgpu/import/load_kernel.hh"
#include <fstream>
#include "logging/assert.hh"
#include "util/environment.hh"
namespace jcc {
namespace {
std::string read_file(const std::string& path) {
std::ifstream cl_file(path);
std::string text = "";
std::string line;
while (std::getline(cl_file,... |
<commit_before><commit_msg>array conf: returning default value instead of 0<commit_after><|endoftext|> |
<commit_before>/// ParameterGraph.hpp
/// Shaun Harker
/// 2015-05-24
#ifndef DSGRN_PARAMETERGRAPH_HPP
#define DSGRN_PARAMETERGRAPH_HPP
#ifndef INLINE_IF_HEADER_ONLY
#define INLINE_IF_HEADER_ONLY
#endif
#include "ParameterGraph.h"
INLINE_IF_HEADER_ONLY ParameterGraph::
ParameterGraph ( void ) {
data_ . reset ( ne... |
<commit_before>#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include <opencv2/opencv.hpp>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <... |
<commit_before>#ifndef ALEPH_TOPOLOGY_IO_GRAPHML_HH__
#define ALEPH_TOPOLOGY_IO_GRAPHML_HH__
#include <aleph/config/TinyXML2.hh>
#include <aleph/utilities/String.hh>
#ifdef ALEPH_WITH_TINYXML2
#include <tinyxml2.h>
#endif
#include <algorithm>
namespace aleph
{
namespace topology
{
namespace io
{
/**
@class ... |
<commit_before>/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult 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) ... |
<commit_before>/**
* \file
* \brief SignalsCatcher 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
* distributed... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/** \file jsonv/detail/string_view.hpp
* The JsonVoorhees implementation of string_view. You should not include this directly; instead, prefer including
* \c jsonv/string_view.hpp and manipulating \c JSONV_STRING_REF_TYPE and \c JSONV_STRING_REF_INCLUDE.
*
* Copyright (c) 2014 by Travis Gockel. ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>// ============================================================================
// SeqAn - The Library for Sequence Analysis
// ============================================================================
//
// Copyright (c) 2006-2017, Knut Reinert & Freie Universitaet Berlin
// Copyright... |
<commit_before>// This file is a part of Simdee, see homepage at http://github.com/tufak/simdee
// This file is distributed under the MIT license.
#ifndef SIMDEE_SIMD_TYPES_COMMON_HPP
#define SIMDEE_SIMD_TYPES_COMMON_HPP
#include "../util/inline.hpp"
#include "../util/bitfiddle.hpp"
#include "../util/macros.hpp"
#inc... |
<commit_before>#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <d2d1.h>
#pragma comment(lib, "d2d1")
#include "../../../Nova/nova_geometry.h"
#include "../../../Nova/nova_render.h"
LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
// Direct 2D vars.
ID2D1Factory *pFactory = N... |
<commit_before>// Copyright 2010-2012 University of Washington. All Rights Reserved.
// LICENSE_PLACEHOLDER
// This software was created with Government support under DE
// AC05-76RL01830 awarded by the United States Department of
// Energy. The Government has certain rights in the software.
#ifndef PARALLEL_LOOP_HPP
... |
<commit_before>#include "Analyze.h"
#include <iostream>
using namespace std;
int Analyze::analyzeString(vector<string>* givenString, int* exitFlag){
vector<string> commandVector;
int result = 0;
int finalResult = 0;
int skipAndFlag = 0;
int skipOrFlag = 0;
unsigned int outer = 0;
unsigned int paranthese... |
<commit_before>#include "arbiter.h"
#include <iostream>
void say_hi() {
std::cout << "Hello world" << std::endl;
}
<commit_msg>Fix header include<commit_after>#include "Arbiter.h"
#include <iostream>
void say_hi() {
std::cout << "Hello world" << std::endl;
}
<|endoftext|> |
<commit_before>#include "ble.h"
//BLE::BLE(Stream *sp) : BC127(sp)
//{
//
//}
int BLE::begin(void)
{
//force into command mode (not needed if already in command mode...but historical Tympan units were preloaded to Data mode instead)
//myTympan.forceBTtoDataMode(false);
_serialPort->print("$"); delay(400); _serial... |
<commit_before>#include <map>
#include "normalise.hh"
#include "references.hh"
#include "db.hh"
#include "exec.hh"
#include "globals.hh"
void registerSuccessor(const FSId & id1, const FSId & id2)
{
setDB(nixDB, dbSuccessors, id1, id2);
}
static FSId storeSuccessor(const FSId & id1, ATerm sc)
{
FSId id2 = w... |
<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 <core/stdafx.h>
#include <core/smartview/NickNameCache.h>
namespace smartview
{
SRowStruct::SRowStruct(const std::shared_ptr<binaryParser>& parser)
{
cValues = blockT<DWORD>::parse(parser);
if (*cValues)
{
if (*cValues < _MaxEntriesSmall)
{
lpProps.EnableNickNameParsing();
... |
<commit_before>/*
===========================================================================
Daemon GPL Source Code
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
This file is part of the Daemon GPL Source Code (Daemon Source Code).
Daemon Source Code is free software: you can redistribute it and... |
<commit_before>// Time: O(n)
// Space: O(1)
class Solution {
/**
* @param A: Given an integers array A
* @return: A long long array B and B[i]= A[0] * ... * A[i-1] * A[i+1] * ... * A[n-1]
*/
public:
vector<long long> productExcludeItself(vector<int> &nums) {
if (nums.empty()) {
... |
<commit_before>/**
* @file Cosa/UML/Connector.hh
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* 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 Foundation; either
... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No ... |
<commit_before>/***************************************************************************
**
** This file is part of the qmlogre example on http://qt.gitorious.org.
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
**
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**... |
<commit_before>#include <fmt/format.h>
#include "../python.hpp"
#include "../../string.hpp"
#include "../item.hpp"
#include "../plugin_handler.hpp"
using namespace bookwyrm;
using std::string;
using std::vector;
PYBIND11_MODULE(pybookwyrm, m)
{
m.attr("__doc__") = "bookwyrm python bindings";
/* core::item b... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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 Foundation; eit... |
<commit_before>/** \file create_author_synomym_map.cc
* \brief Creates a SOLR-MARC syonym map for authors from norm data.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free software: you can redistribute it and/or modify
it un... |
<commit_before>// Copyright (C) 2013 Google 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#include <kernel/timer.hpp>
#include <map>
#include <vector>
#include <kernel/os.hpp>
using namespace std::chrono;
typedef Timers::id_t id_t;
typedef Timers::duration_t duration_t;
typedef Timers::handler_t handler_t;
static void sched_timer(duration_t when, id_t id);
struct Timer
{
Timer(du... |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkSLHCodeGenerator.h"
#include "SkSLParser.h"
#include "SkSLUtil.h"
#include "ir/SkSLEnum.h"
#include "ir/SkSLFunctionDeclaration.h"
#include "ir/SkS... |
<commit_before>//
// Copyright (c) 2012 Kim Walisch, <kim.walisch@gmail.com>.
// All rights reserved.
//
// This file is part of primesieve.
// Homepage: http://primesieve.googlecode.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
<commit_before>#include "bamliquidator.h"
#include <cmath>
#include <fstream>
#include <future>
#include <iostream>
#include <map>
#include <stdexcept>
#include <sstream>
#include <boost/atomic.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <hdf5.h>
#include <hdf5_hl.h>
/* tod... |
<commit_before>#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <sensor_msgs/PointCloud.h>
#include <math.h>
#define PI 3.14159265
#define DEG_TO_RAD(x) (x * PI / 180.0)
#define MAX_RANGE 3.0 // meters
#define MIN_ANGLE -144 // degrees
#define MAX_ANGLE 144 // degrees
#define DEG_INCREMENT 2 // degrees... |
<commit_before><commit_msg>do not use INFINITY (or NAN while at it..) macro<commit_after><|endoftext|> |
<commit_before>#include "../set_stream_precision.hxx"
#include <El.hpp>
#include <boost/filesystem.hpp>
void write_spectrum(const boost::filesystem::path &output_path,
const std::vector<std::vector<El::BigFloat>> &zeros)
{
boost::filesystem::ofstream outfile(output_path);
if(!outfile.good())
... |
<commit_before>#ifndef __STAN__PROB__INTERNAL_MATH_HPP__
#define __STAN__PROB__INTERNAL_MATH_HPP__
#include <math.h>
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/special_functions/beta.hpp>
namespace stan {
namespace math {
// Gradient of the hypergeometric function 2F1(a, b | ... |
<commit_before>#include <algorithm> // random_shuffle, transform
#include <cassert>
#include <chrono>
#include <random>
#include <utility> // pair
#include <sdd/order/order.hh>
#include <sdd/order/strategies/force.hh>
#include "mc/make_order.hh"
#include "mc/dump.hh"
namespace pnmc { namespace mc {
using sdd_conf ... |
<commit_before>#include <X86/CpuRegisters.hh>
#include <PageFrameAllocator.hh>
#include <Parameters.hh>
class PageDirectory
{
void init()
{
uint32_t* pageDirectory = (uint32_t* )PageFrameAllocator::getFreePage();
KASSERT(pageDirectory != 0);
memset(pageDirectory, 0, PageSize);
}
};
<commit_... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCommand.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MPreparedStatement.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 06:19:23 $
*
* The Contents of this file... |
<commit_before>//
// Created by dc on 15/12/17.
//
#ifndef SUIL_CMDL_HPP
#define SUIL_CMDL_HPP
#include <suil/sys.hpp>
namespace suil {
namespace cmdl {
static const char NOSF = '\0';
struct Arg {
zcstring lf{nullptr};
zcstring help;
char ... |
<commit_before>#include <boost/test/unit_test.hpp>
#include "distribution.h"
#include "json/json_spirit_utils.h"
using namespace std;
using namespace json_spirit;
BOOST_AUTO_TEST_SUITE(distribution_tests)
#define PRECISION 1e-8
BOOST_AUTO_TEST_CASE( test_simple_distribution )
{
BalanceMap mapBalance;
mapB... |
<commit_before>#include "detectPeaks.h"
#include "powerSleep.h"
#include <SD.h>
bool peakDetected(volatile SignalState_t* signalState)
{
float s = 0;
bool peak = false;
signalState->offset = (signalState->x_max - signalState->x_min) / 2.208;
float high_thresh = signalState->x_max - signalState->offset;
flo... |
<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 "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h"
#include <map>
#include "base/synchronization/lock.h"
#include "ba... |
<commit_before>#pragma once
#include "boost_defs.hpp"
#include "iokit_utility.hpp"
#include "service_observer.hpp"
#include "types.hpp"
#include <boost/optional.hpp>
#include <list>
#include <memory>
class hid_system_client final {
public:
hid_system_client(const hid_system_client&) = delete;
// Note:
// OS X... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/* Copyright 2007-2015 QReal Research Group
*
* 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 ap... |
<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 <thread>
... |
<commit_before>#include <htl_stdinc.hpp>
// system
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/time.h>
#include <inttypes.h>
// socket
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
// dns
#include <netdb.h>
#include <string>
using namespace std... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* inc... |
<commit_before>#include <Eigen/Dense>
#include <VirtualRobot/MathTools.h>
#include <VirtualRobot/Nodes/ForceTorqueSensor.h>
#include <SimDynamics/SimDynamics.h>
#include <boost/assert.hpp>
#include <boost/make_shared.hpp>
#include "kajita/ChestPostureController.h"
#include "kajita/FootForceController.h"
#include "kaj... |
<commit_before>/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Acc... |
<commit_before>#include <ros/ros.h>
#include <moveit/move_group_interface/move_group.h>
#include <moveit/warehouse/planning_scene_storage.h>
#include <boost/program_options.hpp>
#include <view_controller_msgs/CameraPlacement.h>
#include "moveit_recorder/TrajectoryRetimer.h"
#include "moveit_recorder/AnimationReco... |
<commit_before>#include "position.h"
#include <cstring>
#include <cstdlib>
#include <stdexcept>
namespace {
Piece translate_fen_piece(char c) {
Color color = std::isupper(c) ? WHITE : BLACK;
c = std::tolower(c);
PieceKind piece;
switch (c) {
case 'p': piece = PAWN; break;
case 'n': pie... |
<commit_before>// Copyright (c) 2019 The Gulden developers
// Authored by: Malcolm MacLeod (mmacleod@gmx.com)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#include "android_wallet.h"
#include "util.h"
#include <google/protobuf/descriptor.h>
#include <google/protobuf/dynamic_... |
<commit_before>/*
* Car.cpp
*
* Created on: 2009-09-08
* Author: chudy
*/
#include "race/Car.h"
#include "Properties.h"
#include "Message.h"
#include "race/Level.h"
#include "race/RacePlayer.h"
#include <ClanLib/core.h>
#include <ClanLib/display.h>
Car::Car(RacePlayer *p_player) :
m_player(p_player),
m_... |
<commit_before>/*
* rational.cpp
*/
#include "rational.h"
namespace c8 {
rational::rational(double v) {
/*
* Split our double into a significand and an exponent.
*/
uint64_t *vbits_ptr = reinterpret_cast<uint64_t *>(&v);
uint64_t vbits = *vbits_ptr;
bool neg = (v... |
<commit_before>
#include <planet/common.hpp>
#include <planet/utils.hpp>
#include <planet/fs_core.hpp>
#include <fuse.h>
namespace planet {
shared_ptr<file_entry> file_cast(shared_ptr<fs_entry> entry)
{
if (!entry || entry->type() != file_type::regular_file)
throw std::runtime_error(get_e... |
<commit_before>//----------------------------------------------------------------------------
// registry.cpp
//
// registry manipulation stuff
//
// Copyright (C) 2011 Neil Butterworth
//----------------------------------------------------------------------------
#include <iostream>
#include <algorithm>
#in... |
<commit_before>#include <algorithm>
#include <iostream>
#include <cassert>
#include "reinhard.h"
using std::transform;
/*
* Compute the luminance vector Lw, as well as the mean log luminance, as
* specified in Eq. 1.
*/
void reinhard_tonemap_aux(const vector<spectrum>& input, int n,
vecto... |
<commit_before>/*
Copyright 2015 Daniel Jay Haskin
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 agree... |
<commit_before><commit_msg>Fix for 3D Window ignoring mouse commands.<commit_after><|endoftext|> |
<commit_before>/*******************************************************************************
* Copyright (c) 2009-2014, MAV'RIC Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... |
<commit_before>// Copyright (c) 2016, 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 <gflags/gflags.h>
#include <vector>
#include <string>
#include <iostream>
#include <common/string_util.h>
#include <common/thread... |
<commit_before>// Copyright (c) 2014-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_UNTIL_HPP
#define TAO_PEGTL_INTERNAL_UNTIL_HPP
#include "../config.hpp"
#include "bytes.hpp"
#include "eof.hpp"
#include "not_at.hpp"
#incl... |
<commit_before>#ifndef __AXIS_HPP
#define __AXIS_HPP
#ifndef __ODRIVE_MAIN_HPP
#error "This file should not be included directly. Include odrive_main.hpp instead."
#endif
// Warning: Do not reorder these enum values.
// The state machine uses ">" comparision on them.
enum AxisState_t {
AXIS_STATE_UNDEFINED = 0, ... |
<commit_before>// Copyright (c) 2014 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 "timedata.h"
#include "netbase.h"
#include "sync.h"
#include "ui_interface.h"
#include "util.h"
#include ... |
<commit_before>#include "PyramidTree.h"
#include "Hashing.h"
#include "Util.h"
#include <algorithm>
#include <sstream>
namespace mdsearch
{
Point computeInitialMedianPoint(int maxBucketNumber, int numDimensions)
{
Real m = static_cast<Real>(1.0 / numDimensions);
int div = ceil(pow(maxBucketNumber, m));
return... |
<commit_before>/**
* @file llinstantmessage.cpp
* @author Phoenix
* @date 2005-08-29
* @brief Constants and functions used in IM.
*
* $LicenseInfo:firstyear=2005&license=viewergpl$
*
* Copyright (c) 2005-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source... |
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <gtest/gtest.h>
#include <CommonAPI/SerializableStruct.h>
#include <CommonAPI/Serializable... |
<commit_before>/**
* create_weightvector_from_SvmOutput main file. Reads a model.dat to
* create a weight vector to be used with sopnet.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <sopnet/segments/SegmentHash.h>
#include <util/exceptions.h>
#include <util/ProgramOptions.h>
#include <util... |
<commit_before>/**
@file sparse_adjacency_matrices.cc
@brief Tool for calculating persistent homology of sparse adjacency matrices
This is a tool shipped by 'Aleph - A Library for Exploring Persistent
Homology'. It calculates the persistent homology of sparse adjacency
matrices, i.e. data sets containing *m... |
<commit_before>/**
@file sparse_adjacency_matrices.cc
@brief Tool for calculating persistent homology of sparse adjacency matrices
This is a tool shipped by 'Aleph - A Library for Exploring Persistent
Homology'. It calculates the persistent homology of sparse adjacency
matrices, i.e. data sets containing *m... |
<commit_before>// DepthOp.cpp
/*
* Copyright (c) 2009, Dan Heeks
* This program is released under the BSD license. See the file COPYING for
* details.
*/
#include "stdafx.h"
#include "DepthOp.h"
#include "CNCConfig.h"
#include "ProgramCanvas.h"
#include "Program.h"
#include "interface/PropertyInt.h"
#include ... |
<commit_before><commit_msg>legion: avoiding allocation in the common case when computing eq make ready sets<commit_after><|endoftext|> |
<commit_before><commit_msg>#78528# EnterData(EditTextObject): recognize formulas even if formatted<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS aw035 (1.21.182); FILE MERGED 2006/07/13 16:05:18 aw 1.21.182.1: #126320# SdrMark::GetObj() -> SdrMark::GetMarkedSdrObj() for isolating selection handling<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS ooo19126 (1.36.66); FILE MERGED 2005/09/05 13:25:47 rt 1.36.66.1: #i54170# Change license header: remove SISSL<commit_after><|endoftext|> |
<commit_before><commit_msg>#83188# Prevent crash when item set lacks the ID_FILETP_READONLY item (office documents found by the old chaos search had this problem).<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* 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 ... |
<commit_before><commit_msg>comment change<commit_after><|endoftext|> |
<commit_before><commit_msg>suite-tolower: Added tests for two-byte codepoints.<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.