text stringlengths 54 60.6k |
|---|
<commit_before>/* Copyright 2020 The TensorFlow 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
Unless required by appl... |
<commit_before>/**
* @file device_properties.hxx
* @author Muhammad Osama (mosama@ucdavis.edu)
* @brief
* @version 0.1
* @date 2020-10-05
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <iostream>
#include <gunrock/cuda/device.hxx>
namespace gunrock {
namespace cuda {
typedef cudaDeviceProp devi... |
<commit_before>#include "material/ggx.h"
namespace AT_NAME
{
// NOTE
// http://www.cs.cornell.edu/~srm/publications/EGSR07-btdf.pdf
// https://agraphicsguy.wordpress.com/2015/11/01/sampling-microfacet-brdf/
// NOTE
// http://qiita.com/_Pheema_/items/f1ffb2e38cc766e6e668
AT_DEVICE_MTRL_API real MicrofacetGGX::p... |
<commit_before>#include "../test.h"
extern "C" {
#include "udp-json-parser/json.h"
#include "udp-json-builder/json-builder.h"
} // extern "C"
static void GenStat(Stat* s, const json_value* v) {
switch (v->type) {
case json_object:
for (size_t i = 0; i < v->u.object.length; i++) {
const j... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rtl_OUStringBuffer2.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2006-09-17 08:58:39 $
*
* The Contents of this fi... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*
* @file TopKItemEstimation.hpp
* @author Kuilong Liu
* @date 2013.04.24
* @ TopKItem by count min sketch
*/
#ifndef IZENELIB_UTIL_TOPKITEM_ESTIMATION_H_
#define IZENELIB_UTIL_TOPKITEM_ESTIMATION_H_
#include <list>
#include <iterator>
#include <iostream>
#include <boost/unordered_ma... |
<commit_before>/*
* Copyright (c) 2013, The University of Oxford
* 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,
... |
<commit_before>/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <string>
#include "util/sstream.h"
#include "kernel/find_fn.h"
#include "kernel/replace_fn.h"
#include "kernel/instantiate.h"
#inclu... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// SneezyMUD - All rights reserved, SneezyMUD Coding Team
//
// $Log: task_trance_of_blades.cc,v $
// Revision 1.1 2000/12/22 07:12:03 dash
// Initial revision
//
// Revision 5.1.1.1 1999/10/16 04:32:20 batopr
// new branch... |
<commit_before>/*******************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) European Southern Observatory, 2011
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as pu... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<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 distr... |
<commit_before><commit_msg>[cling] Only add NullPtrChk if enabled.<commit_after><|endoftext|> |
<commit_before>// Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com
//
// Part of "Nuitka", an optimizing Python compiler that is compatible and
// integrates with CPython, but also works on its own.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this fi... |
<commit_before>/******************************************************************
*
* Copyright 2014 Samsung Electronics 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... |
<commit_before>// tinygettext - A gettext replacement that works directly on .po files
// Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de>
//
// 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 Foundatio... |
<commit_before>#include "Thread/Win/MutexImpl.hh"
#include "Thread/ThreadException.hh"
namespace LilWrapper
{
MutexImpl::MutexImpl()
{
InitializeCriticalSection(&this->_mutex);
}
MutexImpl::~MutexImpl()
{
DeleteCriticalSection(&this->_mutex);
}
void MutexImpl::lock()
{
EnterCriticalSectio... |
<commit_before>
/*!
\file
\brief Compound file.
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2011-2017 Igor Mironchik
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 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>/**
* MegaMol
* Copyright (c) 2009, MegaMol Dev Team
* All rights reserved.
*/
#include "mmstd_gl/renderer/CallGetTransferFunctionGL.h"
using namespace megamol::mmstd_gl;
/*
* view::CallGetTransferFunctionGL::CallGetTransferFunctionGL
*/
CallGetTransferFunctionGL::CallGetTransferFunctionGL(void... |
<commit_before>// fdp.hpp : include file containing templated C++ interfaces to fused dot product
//
// Copyright (C) 2017-2019 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <vector>
namespace sw {
namespace unu... |
<commit_before>#ifndef __LOCAL_STORE_H
#define __LOCAL_STORE_H
#include <string>
#include "store-api.hh"
namespace nix {
class Transaction;
/* Nix store and database schema version. Version 1 (or 0) was Nix <=
0.7. Version 2 was Nix 0.8 and 0.8. Version 3 is Nix 0.10 and
up. */
const int nixSchemaVersi... |
<commit_before>#include "config.hh"
#include "args.hh"
#include <sstream>
#include <gtest/gtest.h>
#include <nlohmann/json.hpp>
namespace nix {
/* ----------------------------------------------------------------------------
* Config
* --------------------------------------------------------------------... |
<commit_before>///
/// @file pi_lmo_parallel.cpp
/// @brief Parallel implementation of the Lagarias-Miller-Odlyzko
/// prime counting algorithm using OpenMP. This implementation
/// uses load balancing and counts the number of unsieved
/// elements using POPCNT without using any special counting
/... |
<commit_before>#include "maBiblio.h"
bool ValidationLigne(string, int);
int OptimiseLongueur(string);
vector<string> GrilleLettre(string, int);
vector<string> GrilleJeu(string, int);
void PromotionEspaceVide(vector<string>&);
void EspaceSort(vector<string>&, int, int,int);
int Partition(vector<string>&,int,int,int,in... |
<commit_before>/*
Copyright (c) 2019, Ford Motor Company, Livio
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of ... |
<commit_before>#ifndef LUNAR_SLAB_ALLOCATOR
#define LUNAR_SLAB_ALLOCATOR
#include <new>
#include <limits>
#include <stdlib.h>
#include "slab.hpp"
namespace lunar {
template <typename T>
class slab_allocator {
public:
typedef T value_type;
typedef size_t size_type;
typedef ptrdiff_t differenc... |
<commit_before>#include "cpx/WindowsLibraryLoader.hpp"
#include "cpx/Exception.hpp"
#include "cpx/PluginFactory.hpp"
#include <iostream>
namespace cpx
{
WindowsLibraryLoader::WindowsLibraryLoader(cpx::PluginFactory* pluginFactory):
_pluginFactory(pluginFactory)
{
}
void WindowsLibraryLoader::loadLibrary(std::... |
<commit_before>#ifndef LIMONP_CODE_CONVERTER_HPP
#define LIMONP_CODE_CONVERTER_HPP
#include <iconv.h>
#include <iostream>
#include <memory.h>
namespace Limonp
{
using namespace std;
class CodeConverter
{
public:
CodeConverter(const char *from_charset,const char *to_charset)
... |
<commit_before>
// FastNBT.cpp
// Implements the fast NBT parser and writer
#include "Globals.h"
#include "FastNBT.h"
// The number of NBT tags that are reserved when an NBT parsing is started.
// You can override this by using a cmdline define
#ifndef NBT_RESERVE_SIZE
#define NBT_RESERVE_SIZE 200
#endif // NB... |
<commit_before>/*
* Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org)
*
* 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... |
<commit_before>#include "game_window.h"
#include <sstream>
#include <algorithm>
bool GameWindow::sdlInitialized = false;
bool GameWindow::initialize() {
Logger::getInstance()->writeInformation("Initializing graphics");
if (GameWindow::sdlInitialized) {
Logger::getInstance()->writeWarning("SDL already initialized"... |
<commit_before><commit_msg>External: ""glm::decompose()" is using float-type instead of templated-type #869" (https://github.com/g-truc/glm/issues/869) related commit<commit_after><|endoftext|> |
<commit_before>#ifndef OPENFLOW_INSTRUCTION_H
#define OPENFLOW_INSTRUCTION_H
#include "of13action.hh"
#include "openflow-13.h"
#include <list>
#include <set>
namespace fluid_msg {
namespace of13 {
class Instruction {
protected:
uint16_t type_;
uint16_t length_;
public:
Instruction();
Instruction(uin... |
<commit_before>#include "RenderThread.hpp"
#include <Core/Engine.hh>
#include <Context/SdlContext.hh>
#include <Utils/ThreadName.hpp>
#include <Threads/Tasks/ToRenderTasks.hpp>
#include <Threads/Commands/ToRenderCommands.hpp>
#include <Threads/Tasks/BasicTasks.hpp>
#include <Context/SdlContext.hh>
#include <Utils/Conta... |
<commit_before>// Copyright 2016 Benjamin Glatzel
//
// 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 l... |
<commit_before>#pragma once
#include <string>
#include <chrono>
#include <functional>
#include <deque>
#include "optional.hpp"
#include "abstbuff.hpp"
#include "serialization/chars.hpp"
#include <boost/serialization/access.hpp>
#include <boost/serialization/deque.hpp>
#include <boost/serialization/vector.hpp>
#include ... |
<commit_before>/*
Copyright (C) 2013-2015 The Communi Project
You may use this file under the terms of BSD license as follows:
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 mus... |
<commit_before>#include <miopen.h>
#include "test.hpp"
#include <array>
#include <iterator>
#include <memory>
#include <utility>
#include <iostream>
#include <miopen/tensor.hpp>
#include <miopen/convolution.hpp>
#include <limits>
// #include "network_data.hpp"
#include "tensor_holder.hpp"
#include "verify.hpp"
#includ... |
<commit_before>#include "urlviewformaction.h"
#include <sstream>
#include "config.h"
#include "formatstring.h"
#include "listformatter.h"
#include "strprintf.h"
#include "utils.h"
#include "view.h"
namespace newsboat {
/*
* The UrlViewFormAction is probably the simplest dialog of all. It
* displays a list of URLs... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>//===========================================================================
//
// File: Identity.C
//
// Created:
// ... |
<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 "base/bind_helpers.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base... |
<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/browsing_data/browsing_data_helper.h"
#include "chrome/browser/browsing_data/browsing_data_remover.h"
#include... |
<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/renderer_host/gtk_key_bindings_handler.h"
#include <gdk/gdkkeysyms.h>
#include <string>
#include <utility>
#in... |
<commit_before>// Copyright (c) 2006, 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 ... |
<commit_before>#include <annis/join/seed.h>
#include <annis/annosearch/annotationsearch.h>
using namespace annis;
AnnoKeySeedJoin::AnnoKeySeedJoin(const DB &db, std::shared_ptr<Operator> op,
std::shared_ptr<Iterator> lhs, size_t lhsIdx,
const std::set<AnnotationKey> &rightAnnoK... |
<commit_before>#include "Geometry.h"
#include <cstdio>
#include <fstream>
#include <stdexcept>
#include "spruce.hh"
using std::string;
using std::istringstream;
using std::ifstream;
using Eigen::Vector3i;
using Eigen::Vector3d;
using Eigen::RowVectorXd;
using Eigen::Matrix3Xd;
using Eigen::Matrix3Xi;
namespace Dra... |
<commit_before>//============================================================================
// vSMC/example/pf/include/pf_mpi_do.hpp
//----------------------------------------------------------------------------
// vSMC: Scalable Monte Carlo
//--------------------------------------------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ed_ioleobject.cxx,v $
*
* $Revision: 1.19 $
*
* last change: $Author: obo $ $Date: 2007-01-25 11:36:17 $
*
* The Contents of this file ar... |
<commit_before>#include <algorithm>
#include <iostream>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <climits>
using namespace std;
vector<int> dx = {0, 1, 0, -1};
vector<int> dy = {1, 0, -1, 0};
template <typename T>
void show(T a) {
for (auto i : a) {
cout << i << ... |
<commit_before>/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "RootShadowNode.h"
#include <react/components/view/conversions.h>
#include <react/debug/SystraceSection.h... |
<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>#ifdef USE_ALLEGRO
#include <allegro.h>
#endif
#include "music-player.h"
#include "globals.h"
#include <iostream>
#include "configuration.h"
#include "sound.h"
#include "dumb/include/dumb.h"
#include "gme/Music_Emu.h"
#ifdef USE_ALLEGRO
#include "dumb/include/aldumb.h"
#include "ogg/logg.h"
#ifdef _WI... |
<commit_before>//
// Created by manuel on 08.06.15.
//
#include "AssemblyParser.h"
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <bitset>
#include <cstdint>
const std::string AssemblyParser::ROUTINE_DIRECTIVE = ".FUNCT";
const std::string AssemblyParser::GVAR_DIRECTIVE = ".GVA... |
<commit_before>// [AsmJit]
// Complete x86/x64 JIT and Remote Assembler for C++.
//
// [License]
// Zlib - See LICENSE.md file in the package.
// [Export]
#define ASMJIT_EXPORTS
// [Dependencies - AsmJit]
#include "../base/cputicks.h"
// [Dependencies - Posix]
#if defined(ASMJIT_OS_POSIX)
# include <time.h>
# includ... |
<commit_before>/*---------------------------------------------------------------------------*\
* OpenSG *
* *
* ... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<commit_before>/*
* RewriteLink.cc
*
* Copyright (C) 2017 Nil Geisweiller
*
* 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
* published by the Free Software Foundation and including the
* exceptions at http://opencog.org/... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
#include <boost/thread/thread.hpp>
#include <tf/transform_listener.h>
#include <Eigen/Dense>
ros::Publisher pub;
double height;
Eigen::Vector3d normal;
void callback(const sensor_msg... |
<commit_before>#include "Accumulate.h"
#include "../Data.h"
VariableAccumulate::VariableAccumulate(const Options& iOptions, const Data& iData) : Variable(iOptions, iData),
mTimeWindow(Global::MV) {
// Which base variable should be accumulated?
iOptions.getRequiredValue("baseVariable", mBaseVariable);
//... |
<commit_before>#include <coffee/core/plat/linking/libraries.h>
#include <coffee/core/coffee_strings.h>
#if defined(COFFEE_LINUX)
#include <dlfcn.h>
#elif defined(COFFEE_WINDOWS)
#include <Windows.h>
#endif
namespace Coffee{
namespace CLibraryLoader{
#if defined(COFFEE_LINUX)
struct CNativeObject
{
void* handle;... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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>#pragma once
//=====================================================================//
/*! @file
@brief 波形描画テンプレート・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/mast... |
<commit_before>/*************************************************************************
*
* $RCSfile: b3dentty.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:30:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*
* Copyright 2011 Esrille 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 l... |
<commit_before>/*
* jcom.oscroute
* External for Jamoma: parse and pass OpenSoundControl messages
* By Tim Place, Copyright 2006
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "Jamoma.h"
#define MAX_ARGCOUNT 100
#define MAX_MESS_SIZE 2... |
<commit_before>/*
* Copyright 2009 The VOTCA Development Team (http://www.votca.org)
*
* 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>#include "globals.hh"
#include "shared.hh"
#include "store-api.hh"
#include "util.hh"
#include <algorithm>
#include <cctype>
#include <exception>
#include <iostream>
#include <mutex>
#include <cstdlib>
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <signal.h>
#include <openss... |
<commit_before>#include "globals.hh"
#include "shared.hh"
#include "store-api.hh"
#include "util.hh"
#include "loggers.hh"
#include <algorithm>
#include <cctype>
#include <exception>
#include <iostream>
#include <mutex>
#include <cstdlib>
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <signa... |
<commit_before>/* Copyright (C) 2005-2008, Thorvald Natvig <thorvald@natvig.com>
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 co... |
<commit_before>// Copyright (c) 2016 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 "rpcnestedtests.h"
#include "chainparams.h"
#include "consensus/validation.h"
#include "validation.h"
#in... |
<commit_before>
#include <xpcc/architecture/platform.hpp>
using namespace xpcc::atmega;
// Create a new UART object and configure it to a baudrate of 115200
Uart0 uart(115200);
int
main()
{
// Enable interrupts, this is needed for every buffered UART
sei();
// Write some characters
uart.write('H');
uart.write... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2020 Realm 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://ww... |
<commit_before>// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/Algorithm.hpp>
#include <Nazara/Core/Debug.hpp>
namespace Nz
{
/*!
* \brief Constructs a ByteStream objec... |
<commit_before>/*
* Copyright (C) 2013 Vaclav Slavik <vslavik@gmail.com>
* 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 copy... |
<commit_before>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "common.h"
#include "eventpipebuffermanager.h"
#include "eventpipeeventinstance.h"
#include ... |
<commit_before>#ifndef INC_AL_CONTROL_NAV_HPP
#define INC_AL_CONTROL_NAV_HPP
#include "allocore/io/al_Window.hpp"
#include "allocore/spatial/al_CoordinateFrame.hpp"
namespace al {
/// Mapping from keyboard and mouse controls to a Nav object
struct NavInputControl : public InputEventHandler {
NavInputControl(Nav * ... |
<commit_before>/* This file is part of Zanshin Todo.
Copyright 2008-2010 Kevin Ottens <ervin@kde.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 Software Foundation; either version 2 of
the License o... |
<commit_before>#include<iostream>
int main()
{
using std::cin;
using std::cout;
using std::endl;
int i = 0, n = 0;
cout<<"How many numbers would you like to have on your list?"<<endl;
cin>>n;
int *list = new int [n];
cout<<"Please enter the integers."<<endl;
for(i = 0; i < n; i++)
{
cin>>list... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*
* people_det.cpp
*
* Created on: Oct 20, 2015
* Author: Tzutalin
*/
#include <string.h>
#include <jni.h>
#include <android/log.h>
#include <string>
#include <stdio.h>
#include <vector>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#in... |
<commit_before>/*! \file helpers.hpp
\brief Internal helper functionality
\ingroup Internal */
/*
Copyright (c) 2013, Randolph Voorhies, Shane Grant
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>// Copyright 2016 Google Inc. 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
//
// Unless require... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#pragma once
#include "dedisp.h"
#include <cstdlib>
#include <vector>
#include <string>
#include <cstring>
#include <sstream>
#include <stdexcept>
#include <data_types/timeseries.hpp>
#include <data_types/filterbank.hpp>
#include <utils/exceptions.hpp>
class Dedisperser {
private:
dedisp_plan plan;
... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#include "triangular.hpp"
#include "../segments/types.hpp"
#include "../vertices/types.hpp"
////////////////////////////
// Triangle, cartesian 2D //
////////////////////////////
unsigned int TriangularCartesian2D_Domain::num_vertices()
{
TriangularCartesian2D_VertexRange_t vertex_range = viennagrid::... |
<commit_before>/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directo... |
<commit_before>/*************************************************************************
*
* $RCSfile: register.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2003-12-01 18:09:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "BACharacter.h"
#include "BAMap.h"
#include "BAGlobal.h"
BAPlayer::BAPlayer(BACharacterData data){
charData = data;
// init ships
ships = NULL;
numberOfShips = charData.sShips + charData.mShips + charData.lShips;
ships = new BAShip[numberOfShips];
// small ships
for(size_t i = 0... |
<commit_before>// Port of
// third_party/nxp/rt1176-sdk/middleware/wireless/ethermind/port/pal/mcux/bluetooth/BT_storage_pl.c
// to use Dev Board Micro's filesystem APIs.
#include "libs/base/filesystem.h"
extern "C" {
#include "third_party/nxp/rt1176-sdk/middleware/wireless/ethermind/port/pal/mcux/bluetooth/BT_stora... |
<commit_before>// $Id$
/*
Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior University
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... |
<commit_before>void lego() {
// macro to visualize the lego plots generated by gAlive->RunLego
gROOT->Reset();
TFile *file = new TFile("galice.root");
Float_t theta = 10;
Float_t phi = 170;
Int_t ncont = 50;
TCanvas *cgcm2 = new TCanvas("cgcm2","gcm2",200,100,600,400);
cgcm2->SetTheta(the... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: BGroups.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: obo $ $Date: 2006-09-17 02:06:47 $
*
* The Contents of this file are made... |
<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 "content/browser/android/in_process/synchronous_compositor_impl.h"
#include "base/auto_reset.h"
#include "base/bind.h"
#include "... |
<commit_before>/**
* @file
* @brief Implementation of object with set of particles at pixel
* @copyright Copyright (c) 2017-2019 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does no... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.