text stringlengths 54 60.6k |
|---|
<commit_before>/*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... |
<commit_before>/**
* @file Event.hpp
* @author Denis Kotov
* @date 10 Jun 2017
* @brief Contains abstract class for Pack Buffer
* @copyright MIT License. Open source:
*/
#ifndef ICC_EVENT_HPP
#define ICC_EVENT_HPP
#include <vector>
#include <map>
#include <tuple>
#include <utility>
#include <algorithm>
#include... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>//------------------------------------------------------------------------------
//
// Arion
//
// Extract metadata and create beautiful thumbnails of your images.
//
// ------------
// main.cpp
// ------------
//
// Copyright (c) 2015 Paul Filitchkin, Snapwire
//
// Redistribution and use in source an... |
<commit_before>#include "vmainwindow.h"
#include <QApplication>
#include <QTranslator>
#include <QDebug>
#include <QLibraryInfo>
#include <QFile>
#include <QTextCodec>
#include <QFileInfo>
#include <QStringList>
#include <QDir>
#include "utils/vutils.h"
#include "vsingleinstanceguard.h"
#include "vconfigmanager.h"
VCo... |
<commit_before>/*
* File: main.cpp
* Author: vlad
*
* Created on December 12, 2013, 10:38 PM
*/
#include <iostream>
#include "qpp.h"
//#include "matlab.h" // support for MATLAB
// TODO: expandout function
// TODO: dyad function
// TODO: proj (dya) function
// TODO: ip (inner product function) function, make ... |
<commit_before>/*
* Copyright 2013 Matthew Harvey
*
* 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 applicabl... |
<commit_before>/*
* File: main.cpp
* Author: vlad
*
* Created on December 12, 2013, 10:38 PM
*/
#include <iostream>
#include <cmath>
#include "qpp.h"
#include "matlab.h" // support for MATLAB
// TODO: expandout function
// TODO: dyad function
// TODO: proj (dya) function
// TODO: ip (inner product function) ... |
<commit_before>#include <fstream>
#include <vector>
#include <locale.h>
#include "LogEntryFilter.h"
#include "LogEntryRootFilter.h"
#include "LogEntryMessageFilter.h"
#include "LogEntryTimeFilter.h"
#include "FileUtils.hpp"
#include "CommandLineUtils.hpp"
#include "LogEntryParser.h"
#include "Rearranger.h"
#include "Lo... |
<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>//
// Parser.cpp
// snowcrash
//
// Created by Zdenek Nemec on 4/8/13.
// Copyright (c) 2013 Apiary.io. All rights reserved.
//
#include <exception>
#include <sstream>
#include "Parser.h"
#include "MarkdownParser.h"
#include "BlueprintParser.h"
using namespace snowcrash;
const int SourceAnnotation... |
<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>
#define _GLIBCXX_USE_NANOSLEEP
#include "main.hpp"
#include <algorithm>
/*
What I know:
Cipher 1:
is a shift cipher. Offset 13, so basically ROT-13!
Cipher 2:
is not a regular shift cipher.
is a Vigenere cipher. Key length of 9!
Cipher ... |
<commit_before>#include <signal.h>
#include <iostream>
#include <boost/asio.hpp>
#include <boost/asio/coroutine.hpp>
#include <network/http/server.hpp>
#include <network/http/http_request.hpp>
#include <network/http/http_protocol.hpp>
using namespace network::http;
int main()
{
boost::asio::io_service io_service... |
<commit_before>#include "WPILib.h"
#include "../ADBLib/src/ADBLib.h"
#include "auton/AutoBot.h"
#include "DreadbotDIO.h"
#include <unistd.h>
using namespace ADBLib;
class Robot: public IterativeRobot
{
private:
TractionDrive* drivebase;
CANTalon* motors[5];
Joystick* jys;
Joystick* jys2;
ADBLib::Controller gpd;
... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2018 BMW Car IT GmbH
* %%
* 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 ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestAMRGhostLayerStripping.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for det... |
<commit_before>
// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "CameraControllable.h"
#include "EC_NetworkPosition.h"
#include "SceneEvents.h"
#include "Entity.h"
#include "SceneManager.h"
#include "EC_OgrePlaceable.h"
#include "Renderer.h"
... |
<commit_before>#include "image_writer.h"
#include "heatmap_writer.h"
#include "json_writer.h"
#include "logger.h"
#include "parser.h"
#include "regex.h"
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <fstream>
#include <float.h>
using namespace wotreplay;
us... |
<commit_before>//============================================================================
// Name : ctm_c.cpp
// Author : Edward
// Version :
// Copyright : GPL
// Description : Implementation of CTM by C++
//============================================================================
#include <i... |
<commit_before>#include <tr1/memory>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <signal.h>
#include <getopt.h>
#include "barrier.h"
#include "streamer.h"
#include "socket.h"
#include <unistd.h>
using std::vector;
using std::tr1::shared_ptr;
static bool run = true;
static void terminate(void)
{... |
<commit_before>#include "Shell.hpp"
#include <iostream>
#include <sstream>
#include "FileSystem.hpp"
using namespace std;
const int MAXCOMMANDS = 8;
const int NUMAVAILABLECOMMANDS = 16;
string availableCommands[NUMAVAILABLECOMMANDS] = {
"quit", "format", "ls", "create", "cat", "save", "load",
"rm", "copy", "append... |
<commit_before>//********************************************************************
//
//This program displays a list of numbers and their squares.
//
//By: JESUS HILARIO HERNANDEZ
//Last Updated: October 5th, 2016
//
//********************************************************************
#include <iostream>
using n... |
<commit_before>/*************************************************************************
*
* $RCSfile: datman.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2004-06-17 16:15:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: slideview.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2007-07-20 06:24:59 $
*
* The Contents of this file are made... |
<commit_before>#include "Tiler.h"
#include "cinder/gl/gl.h"
#include "cinder/app/App.h"
#include "cinder/Rand.h"
#include <algorithm>
#include <sstream>
using namespace reza::tiler;
using namespace cinder;
using namespace glm;
using namespace std;
Tiler::Tiler( int32_t imageWidth, int32_t imageHeight, int32_t tileWi... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "Event.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Execution;
/*
********************************************************************************... |
<commit_before>#include <QApplication>
#include "qkeymapper.h"
#ifdef DEBUG_LOGOUT_ON
//#include "vld.h"
#endif
int main(int argc, char *argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication a(argc, argv);
QApplication::se... |
<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>/***************************************************************************
* Copyright (c) 2004 Jürgen Riegel <juergen.riegel@web.de> *
* Copyright (c) 2012 Luke Parry <l.parry@warwick.ac.uk> *
* ... |
<commit_before>/*
* Copyright (c) 2008-2009
*
* School of Computing, University of Utah,
* Salt Lake City, UT 84112, USA
*
* and the Gauss Group
* http://www.cs.utah.edu/formal_verification
*
* See LICENSE for licensing information
*/
#ifndef _TRACE_HPP
#define _TRACE_HPP
#include <vector>
#include <list>
#... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: modulepcr.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-09-16 13:19:31 $
*
* The Contents of this file are mad... |
<commit_before>/***************************************************************************
* Copyright (c) 2004 Jürgen Riegel <juergen.riegel@web.de> *
* Copyright (c) 2012 Luke Parry <l.parry@warwick.ac.uk> *
* ... |
<commit_before>
/*
* Copyright (C) 2013 Michael Imamura
*
* 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 applicab... |
<commit_before>#include <tclap/CmdLine.h>
#include <llvm/IR/Module.h>
#include <llvm/ExecutionEngine/GenericValue.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/Interpreter.h>
#include <llvm/Support/TargetSelect.h>
#include "utils/util.hpp"
#include "utils/error.hpp"
#include "lexe... |
<commit_before>#include <memory>
#include <unistd.h>
#include "glload/gl_3_2.h"
#include "glload/gll.hpp"
#include <GL/glfw.h>
#include "config/globals.hpp"
#include "scene/scenemanager.hpp"
#include "scene/perspectivecamera.hpp"
#include "scene/scenegroup.hpp"
#include "sceneitems/genericplanet.hpp"
//HACK for s... |
<commit_before>/* main.cpp - CS 472 Project #2: Genetic Programming
* Copyright 2014 Andrew Schwartzmeyer
*/
#include <algorithm>
#include <cassert>
#include <chrono>
#include <ctime>
#include <future>
#include <iostream>
#include <thread>
#include "algorithm/algorithm.hpp"
#include "individual/individual.hpp"
#inc... |
<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>#include <chrono>
#include <iostream>
#include <vector>
#include <armadillo>
using std::chrono::high_resolution_clock;
using std::chrono::duration;
namespace {
uint32_t num = 1;
uint32_t fft_size = 48000;
uint32_t conv_ir_size = 72000;
uint32_t conv_sig_size = 5760000;
}
duration<double> Convolut... |
<commit_before>#include <iostream>
#include <queue>
#include <sys/wait.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include "Shell.h"
#include "Input.h"
using namespace std;
int main() {
Input in;
// while(1) {
in.getInput();
queue<string> tasks = in.Parse... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>#include <thread>
#include <condition_variable>
#include <mutex>
#include <sstream>
#include <lcm/lcm-cpp.hpp>
#include <ConciseArgs>
#include <drc_utils/LcmWrapper.hpp>
#include <drc_utils/BotWrapper.hpp>
#include <bot_lcmgl_client/lcmgl.h>
#include <lcmtypes/drc/map_scans_t.hpp>
#include <lcmtypes/... |
<commit_before>#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <unistd.h>
#include <thread>
#include <mutex>
#include <cmath>
#include "concurrentqueue.h"
using namespace std;
using name... |
<commit_before>#ifndef UTILS_HPP
#define UTILS_HPP
#include <type_traits>
#include <utility>
////////////////////////// Tuple unpack utils
////////////////////////// http://stackoverflow.com/questions/7858817/unpacking-a-tuple-to-call-a-matching-function-pointer
namespace util
{
// helper class
template <
typena... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: main.C,v 1.5 2004/07/16 11:18:18 amoll Exp $
//
// order of includes is important: first qapplication, than BALL includes
#include <qapplication.h>
#include <BALL/SYSTEM/path.h>
#include <BALL/SYSTEM/directory.h>
#include "mainframe.h"
#i... |
<commit_before>#include "InterpolationFunction.h"
#include <QtGlobal>
#include <math.h>
#include <QtCore/QStringList>
#include "Workspace.h"
#include "SimulatedAnnealing.h"
#include <set>
#include <limits>
#include <boost/foreach.hpp>
//Optimierer: min_a (A*a - y)
extern "C"{
int sgels_(char *trans, int *m, int *n, i... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 req... |
<commit_before>/* main.cpp - CS 472 Project #3: Genetic Programming
* Copyright 2014 Andrew Schwartzmeyer
*/
#include <cstdlib>
#include <chrono>
#include <ctime>
#include <iostream>
#include <tuple>
#include "algorithm/algorithm.hpp"
#include "individual/individual.hpp"
#include "options/options.hpp"
#include "ran... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FormattedField.hxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: obo $ $Date: 2007-03-09 13:26:13 $
*
* The Contents of this file a... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FormattedField.hxx,v $
* $Revisi... |
<commit_before>#include <iostream>
#include <memory>
#include <vector>
#include <unordered_map>
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
using namespace std;
template<typename T>
T clamp(T val, T from, T to) { return std::max(from, std::min(to, val)); }
struct Color3 { float r, g, b; };
class Size
{
public... |
<commit_before>#include <stdio.h>
#include "Scanner.h"
int main(int argc, const char *argv[])
{
Scanner scanner;
return 0;
}
<commit_msg>something changes in main.cpp<commit_after>#include <stdio.h>
#include "Scanner.h"
int main(int argc, const char *argv[])
{
printf("Before\r\n");
Scanner scanner;
printf("After... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* adiosComm.inl
*/
#ifndef ADIOS2_HELPER_ADIOSCOMM_INL_
#define ADIOS2_HELPER_ADIOSCOMM_INL_
#ifndef ADIOS2_HELPER_ADIOSCOMM_H_
#error "Inline file should only be included from... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX64M/RX71M/RX651/RX65N/RX66T/RX72T/RX72N/RX72M グループ・システム制御 @n
※RX24T は構成が大きく異なるので、RX24T/system_io.hpp に分離しています。@n
※ USB を使う場合:96MHz, 144MHz, 192MHz, 240MHz のいづれか @n
RX72x 系では、内部 PLL 回路... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>
#include <gloperate/stages/base/MixerStage.h>
#include <glbinding/gl/gl.h>
#include <globjects/base/File.h>
#include <globjects/base/StringTemplate.h>
#include <globjects/Framebuffer.h>
#include <globjects/VertexArray.h>
#include <globjects/VertexAttributeBinding.h>
#include <globjects/Buffer.h>
#incl... |
<commit_before>//
// PROJECT: Aspia
// FILE: client/ui/desktop_widget.cc
// LICENSE: GNU General Public License 3
// PROGRAMMERS: Dmitry Chapyshev (dmitry@aspia.ru)
//
#include "client/ui/desktop_widget.h"
#include <QDebug>
#include <QPainter>
#include <QWheelEvent>
#if defined(Q_OS_WI... |
<commit_before>#include "details/pass/build-ast-to-ir/scope.h"
#include "details/grammar/nany.h"
#include "libnanyc-config.h"
using namespace Yuni;
namespace Nany
{
namespace IR
{
namespace Producer
{
void Scope::emitDebugpos(AST::Node& node)
{
if (node.offset > 0)
{
auto it = context.offsetToLine.lower... |
<commit_before>/*
*
* GAMS - General Algebraic Modeling System C++ API
*
* Copyright (c) 2017 GAMS Software GmbH <support@gams.com>
* Copyright (c) 2017 GAMS Development Corp. <support@gams.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated do... |
<commit_before>#include <franka_hw/franka_state_controller.h>
#include <cmath>
#include <mutex>
#include <string>
#include <controller_interface/controller_base.h>
#include <hardware_interface/hardware_interface.h>
#include <pluginlib/class_list_macros.h>
#include <ros/ros.h>
#include <tf/tf.h>
#include <tf/transform... |
<commit_before>//
// main.cpp
// thermaleraser
//
// Created by Mark Larus on 9/8/12.
// Copyright (c) 2012 Kenyon College. All rights reserved.
//
#include <iostream>
#include <algorithm>
#include <math.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_sf.h>
#include <boost/program_options.hpp>
#include <boost/ti... |
<commit_before>//
// Alert system
//
#include <algorithm>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/foreach.hpp>
#include <map>
#include "alert.h"
#include "key.h"
#include "net.h"
#include "sync.h"
#include "ui_interface.h"
using namespace std... |
<commit_before>/* =======================================================================
Copyright (c) 2011, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
Vie... |
<commit_before>//
// Alert system
//
#include <algorithm>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/foreach.hpp>
#include <map>
#include "alert.h"
#include "key.h"
#include "net.h"
#include "sync.h"
#include "ui_interface.h"
using namespace std... |
<commit_before>#include <iostream>
#include <thread>
#include <chrono>
#include <atomic>
#include <string>
#include <iomanip>
#include <memory>
#include <sys/ioctl.h>
#include <linux/serial.h>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/asio/steady_timer.hpp>
void sendTest(const boost::system... |
<commit_before>/*****************************************************************************
* GATB : Genome Assembly Tool Box
* Copyright (C) 2014 INRIA
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published b... |
<commit_before>#ifndef ORIGEN_SITE_HPP_
#define ORIGEN_SITE_HPP_
#include <string>
using namespace std;
namespace Origen {
class Site {
string _lotid;
bool lotidSet;
int _wafer;
bool waferSet;
int _x;
bool xSet;
int _y;
bool ySet;
int _number;
int _bin;
int _softbin;
bool binSet;
bool softb... |
<commit_before>//=======================================================================
// Copyright 2014-2015 David Simmons-Duffin.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=============================================================... |
<commit_before>#include "../../../shared/generated/cpp/WebViewBase.h"
#include "../../../shared/System.h"
#include "common/RhodesApp.h"
#include "common/RhoConf.h"
#include "rubyext/WebView.h"
//extern "C" HWND getMainWnd();
extern "C" const wchar_t* rho_wmimpl_getNavTimeOutVal();
extern "C" const wchar_t* rho_wmimpl_... |
<commit_before>#include "../../../shared/generated/cpp/WebViewBase.h"
#include "../../../shared/System.h"
#include "common/RhodesApp.h"
#include "common/RhoConf.h"
#include "rubyext/WebView.h"
//extern "C" HWND getMainWnd();
extern "C" const wchar_t* rho_wmimpl_getNavTimeOutVal(const wchar_t* szName);
extern "C" const... |
<commit_before>#ifndef BOOST_THREAD_PTHREAD_MUTEX_HPP
#define BOOST_THREAD_PTHREAD_MUTEX_HPP
// (C) Copyright 2007-8 Anthony Williams
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <pthread.h>
#include... |
<commit_before>#include "fastlib/fastlib.h"
#define A 1
#define epsilon 1e-4
void save_correctly(const char *filename, Matrix a) {
Matrix a_transpose;
la::TransposeInit(a, &a_transpose);
data::Save(filename, a_transpose);
}
void rand_vector(Vector &v) {
index_t d = v.length();
v.SetZero();
for(ind... |
<commit_before>#pragma once
#include <memory>
#include "MatrixData.h"
namespace smurff
{
template<typename YType>
class MatrixDataTempl : public MatrixData
{
public:
MatrixDataTempl(YType Y) : Y(Y)
{
}
//init and center
void init_pre() override
{
assert(nrow(... |
<commit_before>// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include <autowiring/AutoParameter.h>
#include <limits.h>
class AutoParameterTest:
public testing::Test
{};
struct MyParamClass1 {
struct MyIntParam1 {
static constexpr int Default() { return 15; }
};
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Pattern.cxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:52:34 $
*
* The Contents of this file are made... |
<commit_before>/*
* BloscPlugin.cpp
*
* Created on: 22 Jan 2018
* Author: Ulrik Pedersen
*/
#include <cstdlib>
#include <blosc.h>
#include <version.h>
#include <BloscPlugin.h>
#include <DebugLevelLogger.h>
namespace FrameProcessor
{
/**
* cd_values[7] meaning (see blosc.h):
* 0: reserved
* 1: reser... |
<commit_before>/*=========================================================================
Program: T2 Relaxation Map
Module: Compute T2 Relaxation Map Filter
Language: C++
Copyright (c) University of North Carolina at Chapel Hill (UNC-CH) All Rights Reserved.
See License.txt for details.
========... |
<commit_before>/**
* elf_parser.cpp - Implementation of ELF binary perser
* @author Alexander Titov <alexander.igorevich.titov@gmail.com>
* Copyright 2012 uArchSim iLab project
*/
// Genereic C
#include <libelf.h>
#include <cstdio>
#include <unistd.h>
#include <cstring>
#include <fcntl.h>
#include <gelf.h>
#includ... |
<commit_before>#include "APS2.h"
#include <sstream>
using std::ostringstream;
using std::endl;
string APS2::printStatusRegisters(const APS_Status_Registers & status) {
ostringstream ret;
ret << "Host Firmware Version = " << std::hex << status.hostFirmwareVersion << endl;
ret << "User Firmware Version = " << std::... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* 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>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
*
* Condor Software Copyright Notice
* Copyright (C) 1990-2006, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* This source code is covered by the Condor Public License, which can
* be foun... |
<commit_before>
#define _ALL_SOURCE
#include <stdio.h>
#include <filehdr.h>
#include <aouthdr.h>
#include <model.h>
#include <magic.h>
#include <nlist.h>
#include "condor_debug.h"
#include "_condor_fix_resource.h"
#include "types.h"
#include "proto.h"
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
extern... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regar... |
<commit_before>/*
* REnvironmentPosix.cpp
*
* Copyright (C) 2009-11 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANT... |
<commit_before>#include <cache.h>
Cache::Cache() {
QString medusaHome = QDir::homePath() + "/.medusa/";
if (!QFile(medusaHome).exists()) {
cerr << "\x1b[31m[Medusa Error] What?! Medusa Home folder not found or unreadable. Please Reinstall.\x1b[0m" << endl;
exit(-1);
}
db = QSqlDatabas... |
<commit_before>/**
* Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io>
* Authors:
* - Paul Asmuth <paul@zscale.io>
* - Laura Schlimmer <laura@zscale.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License ("the licen... |
<commit_before>/*
* KVH 1750 IMU
* Eric L. Hahn <erichahn@vt.edu>
* 12/5/2014
* Copyright 2014. All Rights Reserved.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include <ros/ros.h>
#include <tf/tf.h>
#pragma GCC diagnostic pop
#include "kvh1750/tov_file.h"
#include <trooper_mlc_msgs/... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
using namespace std;
/**
* CChain implementa... |
<commit_before>#include "formulation/cfem_diffusion_stamper.h"
#include "cfem_diffusion_stamper.h"
namespace bart {
namespace formulation {
template<int dim>
CFEM_DiffusionStamper<dim>::CFEM_DiffusionStamper(
std::unique_ptr<formulation::scalar::CFEM_DiffusionI<dim>> diffusion_ptr,
std::unique_ptr<domain::De... |
<commit_before>#include "nysa.hpp"
#include <stdio.h>
Nysa::Nysa(bool debug) {
this->debug = debug;
this->drt = NULL;
//DRT Settings
this->num_devices = 0;
this->version = 0;
}
Nysa::~Nysa(){
if (this->drt != NULL){
delete(this->drt);
}
}
int Nysa::open(){
return 1;
}
int Nysa::close(){
return... |
<commit_before>/*
Copyright (c) 2012 Stuart Walsh
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, modify, mer... |
<commit_before>
#include "id_func.h"
#include "list_graph.h"
#include "multi_arc.h"
#include "sort_arc.h"
#include "chain.h"
#include "flow_cutter.h"
#include "greedy_order.h"
#include "node_flow_cutter.h"
#include "contraction_graph.h"
#include "cch_order.h"
#include "tree_decomposition.h"
#include "separator.h"
#in... |
<commit_before>/****************************************************************/
/* derived form NearestNodeLocator.C */
/****************************************************************/
#include "VolumeNearestNodeLocator.h"
#include "MooseMesh.h"
#include "SubProblem.h"
#include "SlaveNei... |
<commit_before>// $Id$
// -*-C++-*-
// * BeginRiceCopyright *****************************************************
//
// Copyright ((c)) 2002, Rice University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following con... |
<commit_before>#include "stdafx.h"
#include <tcp_server.h>
#include "asio_service_deamon.h"
#include "io_dispatcher.h"
AsioServiceDeamon::AsioServiceDeamon()
{
}
AsioServiceDeamon::~AsioServiceDeamon()
{
delete _service;
delete _server;
//delete _network_service;
}
void AsioServiceDeamon::start(const std... |
<commit_before>#include "pipe.hpp"
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <string>
#include <stdio.h>
Pipe::Pipe()
{}
bool Pipe::execute(const vector<string> &lhs, const vector<string> &rhs)
{
int pid1;
int status;
int pipes[2];
//int ou... |
<commit_before>//Copyright (c) 2020 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "DistributedBeadingStrategy.h"
namespace cura
{
DistributedBeadingStrategy::Beading DistributedBeadingStrategy::compute(coord_t thickness, coord_t bead_count) const
{
Beading ret;
re... |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.