text stringlengths 54 60.6k |
|---|
<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><commit_msg>add a OpenGLContext to unix backend<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: virdev.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2003-12-01 13:24:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: strhelper.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2003-03-27 17:58:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
* Copyright (c) 2017, Tier IV, 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 "../Flare.h"
#include "FlareSpacecraftInterface.h"
#include "FlareSpacecraftComponent.h"
#include "../Game/FlareGame.h"
/*----------------------------------------------------
Constructor
----------------------------------------------------*/
UFlareSpacecraftInterface::UFlareSpacecraftInterfa... |
<commit_before>/**
* This file is part of TelepathyQt4
*
* @copyright Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
* @copyright Copyright (C) 2009 Nokia Corporation
* @license LGPL 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Les... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief arango benchmark tool
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Vers... |
<commit_before>/* Computes the gradient magnitude after convolving with a Gaussian kernel.
It uses IIR filter for approximating the convolution */
#include "vvITKFilterModule.h"
#include "itkGradientMagnitudeRecursiveGaussianImageFilter.h"
static int ProcessData(void *inf, vtkVVProcessDataStruct *pds)
{
vtkVV... |
<commit_before>#pragma once
#include "base/status_or.hpp"
#include "geometry/named_quantities.hpp"
#include "physics/body.hpp"
#include "physics/discrete_trajectory.hpp"
#include "physics/massive_body.hpp"
#include "quantities/named_quantities.hpp"
#include "quantities/quantities.hpp"
namespace principia {
namespace... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/app/atom_main_delegate.h"
#include <string>
#include "atom/browser/atom_browser_client.h"
#include "atom/renderer/atom_renderer_cli... |
<commit_before>/*************************************************************************
*
* $RCSfile: i_type.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2004-11-15 13:26:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*
* CompoundAgent.cpp
* openc2e
*
* Created by Alyssa Milburn on Tue May 25 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... |
<commit_before>#include "ComputeUtils.h"
#include "LuaUtils.h"
#include <pthread.h>
#ifdef _WIN32
#include <Windows.h>
#else
#include <dlfcn.h>
#endif
//
struct ComputeDevices {
#ifdef WANT_CUDA
// COMPUTE_LIB mCUDA; //
#endif
#ifdef WANT_METAL
// MTLDevice mMetalDevice;
#endif
};
//
static bool Exists (const ... |
<commit_before>#include "ofApp.h"
//------------------------------------------------------------------------------
void ofApp::setup()
{
ofSetFrameRate(30);
ofEnableAlphaBlending();
}
//------------------------------------------------------------------------------
void ofApp::draw()
{
ofBackground(0);
... |
<commit_before>//@author A0097630B
#include "stdafx.h"
#include "query_executor.h"
#include "../exceptions/context_index_out_of_range_exception.h"
#include "../result.h"
#include "query_executor_builder_visitor.h"
namespace You {
namespace Controller {
namespace Internal {
using You::NLP::QUERY;
using You::NLP::ADD_Q... |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
#include <iostream>
#include <string>
// STDAIR
#include <stdair/bom/BomRoot.hpp>
#include <stdair/bom/Inventory.... |
<commit_before>//
// BackCurl.cpp
// Created by Taymindis Woon on 23/5/17.
// Copyright © 2017 Taymindis Woon. All rights reserved.
//
#include "BackCurl.h"
namespace bcl {
/** If you activate mainLoopCallBack, please make sure bcl::LoopBackFire on the loop thread, for e.g. UI thread **/
void init() ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: basidesh.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kz $ $Date: 2007-10-09 15:25:06 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgedobj.hxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: hr $ $Date: 2003-11-05 12:40:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* $RCSfile: image.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: vg $ $Date: 2003-05-22 11:01:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before><commit_msg>Some correction as per new llvm<commit_after><|endoftext|> |
<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/renderer/media/android/media_info_loader.h"
#include "base/bits.h"
#include "base/callback_helpers.h"
#include "base/met... |
<commit_before>#ifndef WIN32
//===--- TerminalConfigUnix.cpp - termios storage -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------... |
<commit_before>#include <stdio.h>
#include <iostream>
#include "Eigen/Dense"
#include "gtest/gtest.h"
#include "include/cpu_operations.h"
#include "include/matrix.h"
template<class T>
class MatrixSubtractTest : public ::testing::Test {
public:
Nice::Matrix<T> m1;
Nice::Matrix<T> m2;
Nice::Matrix<T> result;
Ni... |
<commit_before>#include "../../../include/stupid/internal/macros.hpp"
Q_LOGGING_CATEGORY(cutehmi_stupid_0_lib_loggingCategory, "cutehmi.stupid.0.lib")
//(c)MP: Copyright © 2017, Michal Policht. All rights reserved.
//(c)MP: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy... |
<commit_before>//
// yas_audio_rendering_graph.cpp
//
#include "yas_audio_rendering_graph.h"
#include <audio/yas_audio_graph_connection.h>
#include <audio/yas_audio_graph_node.h>
#include <cpp_utils/yas_stl_utils.h>
using namespace yas;
namespace yas::audio {
std::vector<std::unique_ptr<rendering_node>> make_rend... |
<commit_before>//! [class-defn]
#include <memory>
#include <QApplication>
#include <QGuiApplication>
#include "QtWidgets/qwidget.h"
#include "Qt3D/qglview.h"
#include "Qt3D/qglscenenode.h"
#include "Qt3D/qglbuilder.h"
#include "Qt3D/qglteapot.h"
class TeapotView : public QGLView
{
Q_OBJECT
public:
TeapotVie... |
<commit_before>#include <QtGui>
#include "editorviewmviface.h"
#include "editorview.h"
#include "editorviewscene.h"
#include "realreporoles.h"
#include "../umllib/uml_element.h"
#include "../umllib/uml_guiobjectfactory.h"
EditorViewMViface::EditorViewMViface(EditorView *view, EditorViewScene *scene)
: QAbstractIt... |
<commit_before>#include <owlqn.h>
void OWLQN::optimize()
{
// compute dir
// compute grad
while (_cur_iter < _max_iter)
{
_cur_iter ++;
grad();
dir();
linearSearch();
shift();
}
}
void OWLQN::grad()
{
model->grad(_w, *_data, _grad);
}
void OWLQN::dir()
... |
<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 "build/build_config.h"
#include "cc/layers/solid_color_layer.h"
#include "cc/test/layer_tree_pixel_test.h"
#include "cc/test/pixel... |
<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/accessibility_util.h"
#include "base/callback.h"
#include "base/logging.h"
#include "chrome/browser/... |
<commit_before>#ifndef __SCENECHANGER_HPP__
#define __SCENECHANGER_HPP__
#include "utils.hpp"
class SceneChanger {
public:
SceneChanger();/*
SceneChanger(sf::Vector2f pos, std::string nextScene, sf::Vector2f nextScenePos);
~SceneChanger();
std::string getNextSceneName();
directions getChangeDirec... |
<commit_before>/*
Copyright (c) 2014, Dilyan Rusev
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 condition... |
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/*
The elevation evaluator gets the surface elevation, slope, and updates pres + elev.
Authors: Ethan Coon ([email protected])
*/
#include "fractional_conductance_evaluator.hh"
namespace Amanzi {
namespace Flow {
namespace Fl... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>#ifndef _PROPHY_PROPHY_HPP
#define _PROPHY_PROPHY_HPP
#include <stdint.h>
namespace prophy
{
inline void swap(uint8_t&)
{ }
inline void swap(uint16_t& in)
{
in = (in << 8) | (in >> 8);
}
inline void swap(uint32_t& in)
{
in = ((in << 8) & 0xFF00FF00) | ((in >> 8) & 0x00FF00FF);
in = (in <... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
// Loriano: let's try Armadillo quick code
#include <armadillo>
#define ENTDIM 8
#define COORDIM (ENTDIM-2)
#define PARAMDIM 5
namespace
{
int numofline (const char * fname)
{
int number_of_lines = 0;
std::string line;
std::i... |
<commit_before>/***********
AUTHORS: Michael Katelman, Vijay Ganesh, Trevor Hansen, Dan Liew
BEGIN DATE: Oct, 2008
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 ... |
<commit_before>//---------------------------- quadrature_test.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 1998, 1999, 2000 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
//... |
<commit_before>#include "x86_64-Codegen.h"
#include "ASTNode.h"
#include "lib/Runtime.h"
#include "lib/SnowString.h"
#include "Internal.h"
#include <stdexcept>
#include <vector>
using namespace std;
#define __ m_Asm->
#define e__ entry_asm->
namespace snow {
namespace x86_64 {
// stack_frame->`member'
#define GET_S... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. ... |
<commit_before>/*********************************************
* Author: Jun Jiang - [email protected]
* Created: 2017-06-01 11:22
* Last modified: 2017-06-01 11:22
* Filename: TestRNN.cpp
* Description:
**********************************************/
#include "utils/RNNHelper.h"
#include "rnn/RNN.h"
int main(int ar... |
<commit_before>#include <chrono>
#include <vector>
#include <initializer_list>
#include <cstdint>
#include <cstdlib>
#include <cstdio>
#include <cassert>
class bitvector {
const size_t n;
uint64_t* array;
public:
bitvector(size_t n_) : n(n_) {
assert(n > 0);
array = new uint64_t[n];
... |
<commit_before>#include <random>
#include <chrono>
#include <vendor/gmock/gmock.h>
#include <core/rendering/vertex/StaticIndexData.h>
#include <core/rendering/vertex/DynamicIndexData.h>
#include "mock/MockGpuBuffer.h"
#include "mock/MockVertexData.h"
#include "mock/MockGpuBufferFactory.h"
using ::testing::Return;
u... |
<commit_before>#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
#include <assert.h>
#include "itkCenteredSimilarity2DTransform.h"
// my files
#include "Stack.hpp"
#include "NormalizeImages.hpp"
#include "StackInitializers.hpp"
#include "RegistrationBuilder.hpp"
#include "StackAligner.hpp"
#include... |
<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>////////////////////////////////////////////////////////////////////////////////
///
/// Peak detection routine.
///
/// The routine detects highest value on an array of values and calculates the
/// precise peak location as a mass-center of the 'hump' around the peak value.
///
/// Author ... |
<commit_before>/**
* @file Cosa/Driver/DHT11.hh
* @version 1.0
*
* @section License
* Copyright (C) 2012-2013, 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; eith... |
<commit_before>#include "easyctrl.h"
Easyctrl_Class Easyctrl;
void MonitoredBase::init(const char *name, bool writeable) {
this->name = name;
this->writeable = writeable;
// Add it to the linked list of known monitored variables
this->next = Easyctrl.first;
Easyctrl.first = this;
}
void Easyctrl_Class::w... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
<commit_before>#ifndef MUNCHAR
#define MUNCHAR
#include <cstddef>
namespace Munchar {
// Unconditional success
struct Success {
const char* operator()(const char* b, const char* e) const {
return b;
}
};
// Unconditional failure
struct Failure {
const char* operator()(const char* b, co... |
<commit_before>// 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 agreed to in writing, software
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlgname.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 04:18:08 $
*
* The Contents of this file are made ... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#pragma once
#include <iostream>
#include "mutation_partition.hh"
#include "keys.hh"
#include "schema.hh"
#include "dht/i_partitioner.hh"
class mutation final {
private:
schema_ptr _schema;
dht::decorated_key _dk;
mutation_partition _p;
... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
/*
* 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
... |
<commit_before>#include "gum/Anim2SymLoader.h"
#include "gum/FilepathHelper.h"
#include "gum/EasyAnim2Loader.h"
#include "gum/SpineAnim2Loader.h"
#include "gum/SymbolPool.h"
#include "gum/ExtendSymFile.h"
#include <sprite2/Anim2Symbol.h>
#include <simp/NodeAnim2.h>
#include <bimp/typedef.h>
#include <fstream>
#inclu... |
<commit_before>#include <iostream>
#include <string>
#include "elements.h"
using namespace std;
/**
* @elementspage The Gaussian Optimization Analytical Tool (GOAT)
*
* Welcome to the Gaussian Optimization Analytical Tool (GOAT) documentation site!
* Users may find relevant info related to this program, a p... |
<commit_before>/** \file test_csv_convert.cpp
* Executable to convert dictionary CSV file from source pattern to destination pattern, which conversion rule is defined in a configuration file, such as "csv-convert-ipa-juman-eucjp.def".
* Below is the usage examples:
* \code
* The encoding type of those CSV files in ... |
<commit_before>#include <arc/loader/Plugin.h>
#include <arc/message/PayloadSOAP.h>
#include <stdio.h>
#define R_NO_REMAP 1
#include <R.h>
#include <Rembedded.h>
#include <Rinternals.h>
#include "eqtlservice.h"
typedef enum {
PARSE_NULL,
PARSE_OK,
PARSE_INCOMPLETE,
PARSE_ERROR,
PARSE_EOF
} Parse... |
<commit_before>//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2018 Michael Fink
//
/// \file GeoTagTool\MainFrame.cpp GeoTagTool main frame
//
#include "stdafx.h"
#include "res/Ribbon.h"
#include "resource.h"
#include "AboutDlg.hpp"
#include "GeoTagToolView.hpp"
#include "MainFrame.hpp"
#i... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ccoll.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: obo $ $Date: 2006-09-16 22:37:33 $
*
* The Contents of this file are made a... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Characters/Character.h"
#include "../Characters/String.h"
#include "../Characters/StringBuilder.h"
#include "../Containers/Common.h"
#include "../Debug/Trace.h"
#... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mailmrge.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2007-07-05 07:41:35 $
*
* The Contents of this file are made... |
<commit_before>/*
Copyright (c) 2006-2008 Advanced Micro Devices, Inc. All Rights Reserved.
This software is subject to the Apache v2.0 License.
*/
#include "Arithmetic/Def/SubDef.h"
#include "fwSignal.h"
using namespace OPT_LEVEL;
FwStatus PREFIX_OPT(OPT_PREFIX, fwsSub_16s )(const Fw16s* pSrc1, const Fw1... |
<commit_before>/*************************************************************************
*
* $RCSfile: paminit.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: jp $ $Date: 2002-02-01 12:37:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************
* Solution to question 2.2 - Return Kth to Last
*
* Status: INCOMPLETE
*************************************************/
#include <iostream>
#include "../snode.h"
#include "../slist.h"
using namespace std;
using namespace ctci;
class SListSub : ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: node2lay.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 03:51:24 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: glshell.cxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:07:18 $
*
* The Contents of this file are made... |
<commit_before>///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-10-16
... |
<commit_before>#include "devicesConfigurationWidget.h"
#include <QtWidgets/QBoxLayout>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QLabel>
#include <interpreterBase/robotModel/robotModelInterface.h>
using namespace interpreterCore::ui;
using namespace interpreterBase::robotModel;
DevicesConfigurationWidget::... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../StroikaPreComp.h"
#include <mutex>
#include "../Containers/Mapping.h"
#include "../Debug/Trace.h"
#include "../Containers/Concrete/Queue_Array.h"
#include "BlockingQueue.h"
#include "Thread... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#ifndef _Stroika_Foundation_IO_Network_SocketAddress_inl_
#define _Stroika_Foundation_IO_Network_SocketAddress_inl_ 1
/*
********************************************************************************
*******************... |
<commit_before><commit_msg>CppunitTest_sw_rtfimport: disable 3 checks for now<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: accgraphic.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-09-27 08:21:32 $
*
* The Contents of this file are mad... |
<commit_before>
#include "LocaleSharedMemory.hpp"
#ifndef SHMMAX
#error "no SHMMAX defined for this system -- look it up with the command: `sysctl -A | grep shm`"
#endif
const int64_t default_locale_reserved_size = (1L << 32);
DEFINE_int64( locale_reserved_size, default_locale_reserved_size, "Shared memory between co... |
<commit_before>#ifndef DUNE_STUFF_DISCRETEFUNCTION_PROJECTION_DIRICHLET_HH
#define DUNE_STUFF_DISCRETEFUNCTION_PROJECTION_DIRICHLET_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#include <vector>
#include <dune/common/shared_ptr.hh>
#if HAVE_DU... |
<commit_before>//=============================================================================================================
/**
* @file test_spectral_connectivity.cpp
* @author Daniel Strohmeier <[email protected]>;
* Matti Hamalainen <[email protected]>
* @version 1.0
* @date ... |
<commit_before>/*
Copyright (C) 2007 <SWGEmu>
This File is part of Core3.
This program 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 version 2 of the License,
or (at your option) any later versio... |
<commit_before>
/**
* @file GradientGoalDetector.cpp
*
* Implementation of class GradientGoalDetector
*
*/
#include "GradientGoalDetector.h"
#include "Tools/DataStructures/ArrayQueue.h"
#include "Tools/CameraGeometry.h"
#include "Tools/Debug/Stopwatch.h"
#include "Tools/ImageProcessing/BresenhamLineS... |
<commit_before>// Copyright 2020 The TCMalloc Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... |
<commit_before>/** \file
Task: Full-automatic 3D tiling acquisition.
\author: Nathan Clack <[email protected]>
\copyright
Copyright 2010 Howard Hughes Medical Institute.
All rights reserved.
Use is subject to Janelia Farm Research Campus Software Copyright 1.1
license terms (http://license.janelia... |
<commit_before><commit_msg>Create callback function, add 'static' keyword<commit_after><|endoftext|> |
<commit_before>//---------------------------------------------------------------------------//
/*
Copyright (c) 2012, Stuart R. Slattery
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
*: Re... |
<commit_before>#include "Physics.hpp"
#include "../Physics/RigidBody.hpp"
#include "../Physics/Shape.hpp"
#include "../Util/Json.hpp"
namespace Component {
Json::Value Physics::Save() const {
Json::Value component;
component["velocity"] = Json::SaveVec3(velocity);
component["maxVelocity"]... |
<commit_before>#pragma once
#include <glm/glm.hpp>
#include <openvr.h>
#include <openvr_capi.h>
/// Handles communication with VR devices using OpenVR.
class VRManager {
friend class Hub;
public:
/// Check if the VRManger is active.
/**
* @return Whether hmd is present or not.
... |
<commit_before>#include "process.h"
#include <iostream>
using namespace std;
int main() {
cout << "Example 1 - simple echo process" << endl;
Process process1("echo \"Hello World\"", "", [](const char *bytes, size_t n) {
cout << "Output from stdout: " << std::string(bytes, n);
});
auto exit_code=process1.g... |
<commit_before>//===-- ItaniumABILanguageRuntime.cpp --------------------------------------*- 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 2015 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>/*
OpenDeck MIDI platform firmware
Copyright (C) 2015-2017 Igor Petrovic
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 3 of the License, or
... |
<commit_before>#include <nds.h>
#include <stdio.h>
#include <fat.h>
#include <vector>
#include <string>
#include "patches.h"
#include "drunkenlogo.h"
unsigned int rawDataOffset=0;
u8 workbuffer[1024] ALIGN(32);
#define SCREEN_COLS 32
#define ITEMS_PER_SCREEN 10
#define ITEMS_START_ROW 12
#define MAX_DATNAME_LEN 26
... |
<commit_before>#include <ctrcommon/input.hpp>
#include <ctrcommon/platform.hpp>
#include <ctrcommon/ui.hpp>
#include <sstream>
#include <iomanip>
#include <stdio.h>
typedef enum {
INSTALL,
DELETE
} Mode;
int main(int argc, char **argv) {
if(!platformInit()) {
return 0;
}
... |
<commit_before>//
//
// Created by Steven Massey on 4/15/19.
// Copyright © 2019 Steven Massey. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "m3.hpp"
extern "C"
{
# include "m3_core.h"
}
#include "m3_host.h"
void m3Output (const char * i_string)
{
printf ("%s\n", ... |
<commit_before>#include <ctrcommon/common.hpp>
#include <sstream>
#include <iomanip>
typedef enum {
INSTALL,
DELETE
} Mode;
int main(int argc, char **argv) {
if(!platform_init()) {
return 0;
}
std::vector<std::string> extensions;
extensions.push_back("cia");
Me... |
<commit_before>/*======================================================================
This file is part of the elastix software.
Copyright (c) University Medical Center Utrecht. All rights reserved.
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
details.
This software is distri... |
<commit_before>/* The Next Great Finite Element Library. */
/* Copyright (C) 2003 Benjamin S. Kirk */
/* 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 */
/* version 2.1 o... |
<commit_before>/*
Copyright DaiMysha (c) 2015, All rights reserved.
[email protected]
https://github.com/DaiMysha
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 copyrig... |
<commit_before>#include <armadillo>
#include <iostream>
#include <string>
#include <fastlib/fx/io.h>
#include "svm.h"
#define BOOST_TEST_MODULE SVM test
#include <boost/test/unit_test.hpp>
PROGRAM_INFO("SVM Unit Test",
"This program tests various methods in the SVM implementation.", "svm");
using std::string;
usi... |
<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/nacl/nacl_thread.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/nacl_messages.h"
// This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.