text stringlengths 54 60.6k |
|---|
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>// @(#)root/tree:$Id$
// Author: Rene Brun 05/02/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>//===- CorrelatedValuePropagation.cpp - Propagate CFG-derived info --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <toolbox/testing/test.h>
#include <toolbox/argv/parser.hpp>
#include <toolbox/cpp/make_ref_tuple.hpp>
#include <toolbox/gcc/type_to_string.hpp>
#include <initializer_list>
#include <cstring>
struct cmd_line_options
{
cmd_line_options(std::initializer_list<const char *> options)
{
argc = opt... |
<commit_before>#include "pouarquick.h"
PouarQuick::PouarQuick(QObject *parent) : QObject(parent)
{
}
QImageProvider::QImageProvider() : QQuickImageProvider(QQuickImageProvider::Image)
{
}
QImage QImageProvider::requestImage(const QString &id, QSize *size, const QSize &requestedSize)
{
Q_UNUSED(size);
QUrl dir(id);... |
<commit_before>//-----------------------------------------------------------
//
// Copyright (C) 2015 by the deal2lkit authors
//
// This file is part of the deal2lkit library.
//
// The deal2lkit library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesse... |
<commit_before>/// \file
/// \ingroup tutorial_eve
/// Demonstrates how to combine Timur's GL plots with other scene elements.
///
/// \image html eve_glplot_geom.png
/// \macro_code
///
/// \author Matevz Tadel
void glplot_geom()
{
TEveManager::Create();
TEveUtil::Macro("show_extract.C");
TH3F *h31 = new T... |
<commit_before>// script post-processing the file generated by TMemStat (default memstat.root)
//
// To use the class TMemStat, add the following statement at the beginning
// of your script or program
// TMemStat mm("gnubuiltin");
// or in an interactive session do something like:
// root > TMemStat mm("gnubuil... |
<commit_before><commit_msg>Fix another typo in a comment<commit_after><|endoftext|> |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2008 Torsten Rahn <tackat@kde.org>
// Copyright 2008 Jens-Michael Hoffman... |
<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.
//
// NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit)
// rather than as part of test_shell_tests because they re... |
<commit_before>#include "i_render.h"
#include "text_uimodel.h"
#include "main/window.h"
#include "engine/engine.h"
#include "text.h"
#include "font.h"
namespace {
void scale( float& x, float& y, float ratio )
{
if( ratio >= 1.0f )
{
x /= ratio;
}
else
{
y *= ratio;
}
}
}
bool ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2015. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Execution/Thread.h"
#include "../Execution/ThreadAbortException.h"
#include "BlockAllocator.h"
using namespace Stroika;
using namespace Stroika::Foundatio... |
<commit_before>
/*
Tessellation only GLU library with FASTUIDRAW modifications
- all but tessellation removed
- arbitary winding rule
- prefix public functions with fastuidraw_
- prefix public macros with FASTUIDRAW_
- change source and header files to cpp and hpp extension
- so that API header all... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/** Copyright (C) 2016, 2017 European Spallation Source ERIC */
#include <common/DetectorModuleRegister.h>
#include <common/Log.h>
#include <dlfcn.h>
#include <efu/Loader.h>
#include <iostream>
#include <string.h>
#include <string>
Loader::~Loader() {
LOG(INIT, Sev::Debug, "Loader destructor called")... |
<commit_before>#include "sound.hpp"
#include "oddlib/audio/SequencePlayer.h"
#include "gui.hpp"
#include "core/audiobuffer.hpp"
#include "logger.hpp"
#include "filesystem.hpp"
void Sound::BarLoop()
{
printf("Bar Loop!");
if (mTargetSong != -1)
{
if (mSeqPlayer->LoadSequenceData(mAliveAudio.m_Loade... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>/**
TimeType.cpp
Auto-generated code - do not modify.
thinglang C++ transpiler, 0.0.0
**/
#include "../InternalTypes.h"
#include "../../execution/Program.h"
/**
Methods of TimeType
**/
void TimeType::__constructor__() {
Program::push(Program::create<TimeInstance>());
}
void TimeTyp... |
<commit_before>#include <iostream>
#include <string>
#include <cstdlib>
#include <stdio.h>
#include <getopt.h>
#include "boost/program_options.hpp"
#include "libutil/exceptions.h"
#include "libsyntax/driver.h"
#include "libsyntax/types.h"
#include "libsyntax/ast_dump_visitor.h"
#include "libsyntax/parser.tab.h"
#in... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the Qt Assistant of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No ... |
<commit_before>//
// Application.cpp
// OpenGL Skeleton
//
// Created by Paul Tolstoi on 28/07/15.
//
//
#include "Application.h"
#include <vector>
namespace lornar {
Application::Application(const string &name)
: m_name(name)
, m_window(nullptr) {
if(glfwInit() == GL_FALSE) {
... |
<commit_before>/*************************************************************************
*
* $RCSfile: ConnectionLineAccess.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2004-08-02 16:12:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2009-07-14 19:11:20 +0200 (Tue, 14 Jul 2009) $
Version: $Revision: 18127 $
Copyright (c) German Cancer Research Center, Division of Medical and... |
<commit_before>#include "RegisterApplication.h"
#include "itkMetaImageIOFactory.h"
#include "itkPNGImageIO.h"
#include "itkPNGImageIOFactory.h"
RegisterApplication::RegisterApplication()
{
m_FixedImageReader = ImageReaderType::New() ;
m_MovingImageReader = ImageReaderType::New() ;
m_RegisteredImageWriter = Image... |
<commit_before>
//
// Copyright (c) 2012 Jonathan Topf
//
// 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 the rights
// to use, copy, mod... |
<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>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKC... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<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>/*
* Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your o... |
<commit_before>/*
Copyright (C) 2008-2016 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 "catch.hpp"
#include <iostream>
#include "Database_Creator.hpp"
#include "Database_Sorter.hpp"
SCENARIO("Sort", "[s]") {
Database_Creator database_creator(3000);
Database_Sorter database_sorter("F:\\1\\database.txt", "F:\\1\\sorted_database.txt", 4000);
database_sorter.sortDatabase();
}
<com... |
<commit_before>/***************************************************************************
* Copyright (c) 2012 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* Copyright (c) 2013 Stefan Tröger <stefantroeger@gmx.net> *
* ... |
<commit_before>// Copyright (C) 2012 Jérôme Leclercq
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Utility/SkeletalMesh.hpp>
#include <Nazara/Utility/Mesh.hpp>
#include <Nazara/Utility/Skeleton.hpp>
#include <... |
<commit_before>// Copyright (C) 2016 xaizek <xaizek@openmailbox.org>
//
// This file is part of uncov.
//
// uncov 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 "FrameBuffer.h"
#include "Texture2D.h"
FrameBuffer::FrameBuffer()
{
glGenFramebuffers(1, &frameBufferHandle);
}
FrameBuffer::~FrameBuffer()
{
glDeleteFramebuffers(1, &frameBufferHandle);
}
void FrameBuffer::Attach(const Texture2D *texture, GLenum attachment)
{
// Check sizes to see if the... |
<commit_before>/*
* Copyright 2012-2013 Falltergeist Developers.
*
* This file is part of Falltergeist.
*
* Falltergeist 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, ... |
<commit_before>/*
OpenLieroX
hide and seek gamemode
created 2009-02-09
code under LGPL
*/
#include <iostream>
#include <math.h>
#include "CHideAndSeek.h"
#include "CWorm.h"
#include "Options.h"
#include "Consts.h"
#include "CServer.h"
#include "CClient.h"
#include "CServerConnection.h"
#include "CServerNetEng... |
<commit_before>#if 1
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgViewer/Viewer>
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightManipulator>
#include <osgGA/AnimationPathManipulator>
#include <iostream>
class ThreadingHandler : public osgGA::GUIEventHandler
{
public:
Threading... |
<commit_before>#include <string.h>
#include <sstream>
#include "track.h"
#include "user.h"
#include "number.h"
#include "db.h"
#include "art.h"
#include "repl.h"
#include "path.h"
Repl hitsd;
using namespace std;
Track::Track(int id){
_id = 0;
_artistId = 0;
if(id<=0) return;
DB::Result r = DB::quer... |
<commit_before>#include "LLVM_Headers.h"
#include "LLVM_Output.h"
#include "CodeGen_LLVM.h"
#include "CodeGen_C.h"
#include "CodeGen_Internal.h"
#include <iostream>
#include <fstream>
namespace Halide {
std::unique_ptr<llvm::raw_fd_ostream> make_raw_fd_ostream(const std::string &filename) {
std::string error_str... |
<commit_before>// Scintilla source code edit control
/** @file LexProgress.cxx
** Lexer for Progress 4GL.
** Based on LexCPP.cxx of Neil Hodgson <neilh@scintilla.org>
**/
// Copyright 2006-2007 by Yuval Papish <Yuval@YuvCom.com>
// The License.txt file describes the conditions under which this software may be dist... |
<commit_before>/*
* Copyright (c) 2011-2014 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin-watcher.
*
* libbitcoin-watcher 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,... |
<commit_before>#include <nan.h>
#include <QObject>
#include <QVariant>
#include <QMetaType>
#include <QQmlComponent>
#include "utils.h"
namespace Brig {
using namespace v8;
using namespace node;
namespace Utils {
Local<Value> QDataToV8(int type, void *value)
{
Nan::EscapableHandleScope scope;
return s... |
<commit_before>#include <vili/utils.hpp>
#include <algorithm>
namespace vili::utils::string
{
size_t count(const std::string& str, const std::string& occur)
{
int occurrences = 0;
std::string::size_type start = 0;
while ((start = str.find(occur, start)) != std::string::npos)
{
... |
<commit_before>#include <cstring>
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/wait.h>
#include <sys/types.h>
#include "words.h"
#include "test.cpp"
//implementation of Node
Node::Node(string token) {
this->content = token;
}
void Node::setNext(Node* n) {
this->... |
<commit_before>#ifndef X_XFT_HPP
#define X_XFT_HPP
#include <iostream>
#include <unordered_map>
#include <X11/Xft/Xft.h>
#include "data_types.hpp"
namespace x {
class xft {
public:
xft(Display * dpy,
XVisualInfo * const visual_info, const Colormap & colormap,
unsigned int width, unsigned int ... |
<commit_before>// Filename: localsearch.cpp
// Author: Christopher Goes
// Course: CS 572 Evolutionary Computation
// Semester: Fall 2016
// Description: Assignment 1 - Local Search
// Github: https://github.com/GhostofGoes/cgoes-cs572
#include "localSearchLib.h"
int encoding, mutation;
inline double fitness(... |
<commit_before>#include "Engine.h"
#include "Game.h"
#include "ObjectDummy.h"
#include "BodyRigid.h"
#include "BodyDummy.h"
#include "Physics.h"
#include "ShapeCapsule.h"
#include "ActorBase.h"
#include "Visualizer.h"
#include "sys/SysControl.h"
using namespace MathLib;
#ifdef MEMORY_INFO
#define new new(__FILE__, _... |
<commit_before>// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Genera... |
<commit_before>#include <cstdio>
#include <string>
#include <regex>
#include <fstream>
#include <sys/stat.h>
// http://tclap.sourceforge.net/manual.html
#include "tclap/CmdLine.h"
#include "HCIDumpParser.h"
#include "MsgPublisherTypeConstraint.h"
static HCIDumpParser parserLogic;
#define STOP_MARKER_FILE "STOP"
inli... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Jana Kiesel <jana.kiesel@tu-ilmenau.de>
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @v... |
<commit_before>#ifndef INCLUDE_UNITTESTS_DECIMATER_HH
#define INCLUDE_UNITTESTS_DECIMATER_HH
#include <gtest/gtest.h>
#include <Unittests/unittests_common.hh>
class OpenMeshProperties : public OpenMeshBase {
protected:
// This function is called before each test is run
virtual void SetUp() {
... |
<commit_before>//===--- HTMLDiagnostics.cpp - HTML Diagnostics for Paths ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------... |
<commit_before>#pragma once
#include <cmath>
namespace slam {
struct CostWeight {
double cost;
double weight;
};
class RobustEstimator {
public:
virtual ~RobustEstimator() = default;
virtual CostWeight cost_weight(const double x2) const = 0;
CostWeight operator()(const double x2) const {
return cos... |
<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>#include "../CEpubFile.h"
#include "../../DesktopEditor/common/Directory.h"
#include "../../OfficeUtils/src/OfficeUtils.h"
#include "../../DesktopEditor/xml/include/xmlutils.h"
#include "../../HtmlFile2/htmlfile2.h"
#include "src/CBookInfo.h"
#include <iostream>
CEpubFile::CEpubFile()
{
}
CEpubFile::~C... |
<commit_before>
// PngExporter.cpp
// Implements the cPngExporter class that exports cBlockImage data as a PNG image
#include "Globals.h"
#include "PngExporter.h"
#include "BlockImage.h"
#include "BlockColors.h"
void cPngExporter::Export(cBlockImage & a_Image, const AString & a_OutFileName, int a_HorzSize, int a... |
<commit_before>/*
* OpenCMISS-Zinc Library Unit Tests
*
* 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 <zinc/core.h>
#inclu... |
<commit_before>/*-------------viral_video.cpp------------------------------------------------//
*
* Purpose: To simulate how a video becomes viral
*
* Notes: videos represented as integers, we don't care about their name
* videos_seen will hold history for the viewer, we may cut this off
* viewers h... |
<commit_before>// PythonStuff.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include <wx/file.h>
#include <wx/mimetype.h>
#include <wx/process.h>
#include "PythonStuff.h"
#include "ProgramCanvas.h"
#include "OutputCanvas.... |
<commit_before>#include "geometry/FLANN.hh"
#include "geometry/VietorisRipsComplex.hh"
#include "containers/PointCloud.hh"
#include "distances/Euclidean.hh"
#include "utilities/String.hh"
#include <iostream>
#include <string>
using namespace aleph;
using namespace distances;
using namespace geometry;
using namespa... |
<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>/*
* Copyright (c) 2013 Mateusz Kaczanowski
* www.mkaczanowski.com
*
* Original BBIO Author Adafruit
* Modified for BeagleBoneBlack-GPIO Mateusz Kaczanowski
*
* This file incorporates work covered by the following copyright and
* permission notice, all modified code adopts the original license:
... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1999-2008 Robert Osfield
*
* This software is open source and may be redistributed and/or modified under
* the terms of the GNU General Public License (GPL) version 2.0.
* The full license is in LICENSE.txt file included with this distribution,.
*
* This ... |
<commit_before>extern "C" {
#include "thumbnailer.h"
#include <string.h>
}
#include "util.hh"
#include <Magick++.h>
#include <functional>
#include <stdexcept>
#ifndef MIT_LICENSE
#include "compress_png.hh"
#endif // MIT_LICENSE
// Iterates over all pixels and checks, if any transparency present
static bool has_transp... |
<commit_before>/* This file is part of the Palabos library.
*
* Copyright (C) 2011-2015 FlowKit Sarl
* Route d'Oron 2
* 1010 Lausanne, Switzerland
* E-mail contact: contact@flowkit.com
*
* The most recent release of Palabos can be downloaded at
* <http://www.palabos.org/>
*
* The library Palabos is free soft... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-man... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2010-2012 The PECOS Development Team
//
// This program is free softw... |
<commit_before>// Copyright 2016 The RE2 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 <stddef.h>
#include <stdint.h>
#include <map>
#include <memory>
#include <queue>
#include <string>
#include "re2/prefilter.h"
#includ... |
<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>// Time: O(n)
// Space: O(1)
class MinStack {
public:
void push(int number) {
if (elements_.empty()) {
elements_.emplace(0);
stack_min_ = number;
} else {
elements_.emplace(static_cast<int64_t>(number) - stack_min_);
if (number < stack... |
<commit_before>/******************************************************************************
This source file is part of the TEM tomography project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, s... |
<commit_before>#include "core/value.h"
#include "types/array.h"
namespace clever {
void* ArrayType::allocData(CLEVER_TYPE_CTOR_ARGS) const
{
ArrayObject* arr = new ArrayObject();
std::vector<Value*>& vec = arr->getData();
for (size_t i = 0, j = args->size(); i < j; ++i) {
Value* val = new Value();
val->copy(... |
<commit_before>#include "updatename.h"
#include <QJsonDocument>
#include <QJsonValue>
#include <QJsonObject>
UpdateName::UpdateName(QObject *parent) :
Twitter(parent)
{
try {
myScreenName = twitter.getScreenName();
} catch(std::runtime_error &e) {
qCritical() << "screen_nameの取得に失敗しました。: " <... |
<commit_before>#include <algorithm>
#include <iomanip>
#include <iostream>
#include <ostream>
#include <sstream>
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkSubtractImageFilter.h"
#include "itkBinaryDilateImageFilter.h"
#include "itkBinaryBallStructuringElement.h"
... |
<commit_before>#include "stdafx.h"
#include "BST.h"
using namespace BST;
template <class K, class T>
void Tree<K,T>::insert(K id, T data)
{
Node<K, T>* tmp = new Node<K, T>;
tmp->key = data;
tmp->id = id;
tmp->left = nullptr;
tmp->right = nullptr;
if (this->empty())
{
tmp->parent = nullptr;
this->_root ... |
<commit_before>/* Copyright (C) 2005, 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 copyrig... |
<commit_before>// cr: a c++ template parser
//
// Copyright (c) 2012-2016 Timothe Feuillet
//
// 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 limitat... |
<commit_before>#pragma once
#include <supermarx/id_t.hpp>
namespace supermarx
{
template<typename T>
class reference
{
private:
id_t id;
public:
reference(id_t _id)
: id(_id)
{}
id_t unseal() const // No implicit conversion
{
return id;
}
};
template<typename T>
static inline std::ostream& operator<<(std... |
<commit_before>// Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
#include "bindings/pawn_invoke.h"
#include <string.h>
#include "base/logging.h"
#include "bindings/provided_natives.h"
#includ... |
<commit_before>/* ------------------------------------------------------------------------ */
/* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); y... |
<commit_before>// Sh: A GPU metaprogramming language.
//
// Copyright (c) 2003 University of Waterloo Computer Graphics Laboratory
// Project administrator: Michael D. McCool
// Authors: Zheng Qin, Stefanus Du Toit, Kevin Moule, Tiberiu S. Popa,
// Michael D. McCool
//
// This software is provided 'as-is', wi... |
<commit_before>//
// OCCAM
//
// Copyright (c) 2011-2012, SRI International
//
// 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 cop... |
<commit_before>//
// Created by fred on 06/12/16.
//
#include "frnetlib/TcpListener.h"
namespace fr
{
const int yes = 1;
const int no = 0;
Socket::Status TcpListener::listen(const std::string &port)
{
addrinfo *info;
addrinfo hints;
memset(&hints, 0, sizeof(addrinfo));
... |
<commit_before>#include "../include/TgBotHelper.hpp"
#include "../include/CurlHelper.hpp"
#include <iostream>
tgb::TgBotHelper::TgBotHelper(std::string token)
: m_token{ token }
, m_lastRetrieved{ -1L }
{
}
void tgb::TgBotHelper::setOnNewMessageListener(std::function<void(const std::vector<Message> &messages)> onNew... |
<commit_before>#pragma once
#include <vector>
#include <gtest/gtest.h>
#include "longestsubstrworep.hxx"
using std::vector;
namespace {
class LongestSubStringWithoutRepetitionTest : public testing::Test
{
protected:
LongestSubStringWithoutRepetitionTest(void) {}
virtual ~LongestSubStringWithoutRepetit... |
<commit_before>// Copyright 2015 <Magazino GmbH>
#include <pylon_camera/pylon_camera_node.h>
#include <GenApi/GenApi.h>
#include <algorithm>
#include <cmath>
#include <vector>
namespace pylon_camera
{
PylonCameraNode::PylonCameraNode() :
nh_("~"),
pylon_camera_(NULL),
pylon_camera_parameter_s... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <vistk/pipeline/config.h>
#include <vistk/pipeline/modules.h>
#includ... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*
* caosVM_input.cpp
* openc2e
*
* Created by Alyssa Milburn on 28/07/2004.
* Copyright 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 published by the F... |
<commit_before>/*
* Copyright (C) 2013-2014 INRA
*
* 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>#include "player.h"
#include "game_system.h"
#include "bullet.h"
#include "utils.h"
#include "texture_manager.h"
#include <iostream>
namespace vot
{
Player::Player(const sf::Texture &texture) :
Character(texture),
_cooldown(0.0f),
_homing_cooldown(0.0f),
_look_at_ta... |
<commit_before>//! @Yue Wang
//!
//! Exercise 10.13:
//! The library defines an algorithm named partition that takes a predicate
//! and partitions the container so that values for which the predicate is
//! true appear in the first part and those for which the predicate is false
//! appear in the second part. The algo... |
<commit_before>#include "ex14_32.h"
#include "ex14_30_StrBlob.h"
#include <iostream>
StrBlobPtr&
StrBlobPtr_pointer::operator *()
{
return *(this->pointer);
}
StrBlobPtr*
StrBlobPtr_pointer::operator ->()
{
return & this->operator *();
}
int main()
{
StrBlob sb{ "hello", "world" };
StrBlobPtr iter = ... |
<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 <cassert>
#include <cmath>
#include <limits>
#include <sstream>
#include "ppapi/cpp/audio.h"
#include "ppapi/cpp/instance.h"
#... |
<commit_before>#include "NL_RenderingEngine.h"
#include "NL_IGameManager.h"
#include "NL_IInputProcessor.h"
#include "NL_ThreadLocal.h"
#include "NL_GlfwWindowManager.h"
#include "NL_EngineServices.h"
#include "NL_SharedData.h"
#include <iostream>
#include "lua.hpp"
namespace NLE
{
namespace GRAPHICS
{
Renderin... |
<commit_before>//
// Copyright (c) 2018 Rokas Kupstys
//
// 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 the rights
// to use, copy, modif... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.