text stringlengths 54 60.6k |
|---|
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Image Engine Design 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:... |
<commit_before>/***************************************************************************
* Copyright (c) 2008 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/inotify.h>
#include <set>
#include <iostream>
#include <boost/log/trivial.hpp>
#include <boost/log/core.hpp>
#include <boost/log/expressions.hpp>
#include "InotifyFileWatcher.hpp"
#include "../common/FormattedException.hpp"
using... |
<commit_before>#include "Input/FPGAReceiver.h"
FPGAReceiver::FPGAReceiver(QObject * receiver, QObject * parent) : QObject(parent), m_indexRead(-1), m_lastCommandSent(None), m_receiver(receiver)
{
m_updateTimer.setInterval(8);
connect(&m_updateTimer, &QTimer::timeout, this, &FPGAReceiver::updateFPGA);
m_updateTim... |
<commit_before>/**
* @file ModeledReferencePR.hpp
* Class to compute modeled pseudoranges using a reference station
*/
#ifndef GPSTK_MODELEDREFERENCEPR_HPP
#define GPSTK_MODELEDREFERENCEPR_HPP
//============================================================================
//
// This file is part of GPSTk, the GPS ... |
<commit_before>
#include <Onsang/asio.hpp>
#include <Onsang/Log.hpp>
#include <Onsang/init.hpp>
#include <Onsang/Client/Unit.hpp>
#include <duct/debug.hpp>
#include <duct/Args.hpp>
#include <duct/ScriptParser.hpp>
#include <duct/ScriptWriter.hpp>
#include <Beard/tty/Defs.hpp>
#include <Beard/tty/Ops.hpp>
#include <Be... |
<commit_before>#include "OverworldGameState.h"
#include "irrlicht.h"
#include "ChunkNode.h"
#include "Chunk.h"
#include <iostream>
using namespace irr;
OverworldGameState::OverworldGameState(irr::IrrlichtDevice *irrlicht)
: GameState::GameState(irrlicht) {
device = irrlicht;
driver = irrlicht->getVideoDriver();
s... |
<commit_before>#include "Players/Genetic_AI.h"
#include <iostream>
#include <fstream>
#include <cmath>
#include <algorithm>
#include "Moves/Move.h"
#include "Game/Board.h"
#include "Game/Clock.h"
#include "Exceptions/Checkmate_Exception.h"
#include "Exceptions/Game_Ending_Exception.h"
#include "Utility.h"
int Gene... |
<commit_before>#include "Players/Minimax_AI.h"
#include <iostream>
#include "Players/Game_Tree_Node_Result.h"
#include "Game/Board.h"
#include "Game/Clock.h"
#include "Utility.h"
const Move& Minimax_AI::choose_move(const Board& board, const Clock& clock) const
{
// Erase data from previous board when starting ne... |
<commit_before>/*
* MIT License
*
* Copyright (c) 2016-2019 xiongziliang <771730766@qq.com>
*
* 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 li... |
<commit_before>#include "stdafx.h"
#include "unzip.h"
#include "Resource.h"
#include "UpdateRunner.h"
#include <vector>
void CUpdateRunner::DisplayErrorMessage(CString& errorMessage, wchar_t* logFile)
{
CTaskDialog dlg;
TASKDIALOG_BUTTON buttons[] = {
{ 1, L"Open Setup Log", },
{ 2, L"Close", },
};
// TODO: S... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* Project */
#include "../include/stateval/StateMachineThread.h"
#include "../include/stateval/StateMachine.h"
/* STD */
#include <iostream>
#include <string>
#include <map>
#include <cassert>
using namespace std;
StateMachineThread::StateMachineThread... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2011 Francois Beaune
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... |
<commit_before>/********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn'... |
<commit_before>// Copyright (c) 2015 The Brick Authors.
#include "brick/window/accounts_window.h"
#include "include/base/cef_logging.h"
#include "brick/client_handler.h"
#include "brick/window/edit_account_window.h"
extern char _binary_window_accounts_glade_start;
extern char _binary_window_accounts_glade_size;
nam... |
<commit_before>// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published... |
<commit_before>/*
* fits.cpp
*
* Created on: Jun 19, 2012
* Author: mpetkova
*/
#include "MOKAlens.h"
#include <fstream>
#ifdef ENABLE_FITS
#include <CCfits/CCfits>
using namespace CCfits;
#endif
void LensHaloMOKA::getDims(){
#ifdef ENABLE_FITS
try{
std::auto_ptr<FITS> ff(new FITS (MOKA_input_file, R... |
<commit_before>#include <gmock/gmock.h>
#include <set>
#include "oddlib/stream.hpp"
#include <jsonxx/jsonxx.h>
#include "logger.hpp"
#include "resourcemapper.hpp"
using namespace ::testing;
class MockFileSystem : public IFileSystem
{
public:
virtual std::unique_ptr<Oddlib::IStream> Open(const char* fileName) over... |
<commit_before>/* Copyright (c) 2010-2012, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QtCore>
#include <QtSql>
#include "tableschema.h"
QSettings *dbSettings = 0;
T... |
<commit_before>#include<stdio.h>
#include<stdlib.h>
typedef struct stu{
long num;
float scr;
} stu;
stu a[100];
void sort(int left,int right){
if(left >= right) return;
int i = left,j = right;
stu t = a[left];
while(i<j){
while((i<j)&&(a[j].scr >= t.scr))j--;
a[i] = a[j]... |
<commit_before>/**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software packa... |
<commit_before>#include <types.h>
#include <isa/vexISA.h>
#include <string.h>
#include <iomanip>
#include <sstream>
#ifndef __NIOS
#include <strings.h>
uint32 assembleIInstruction(uint7 opcode, uint19 imm19, uint6 regA){
ac_int<32, false> result = 0;
result.set_slc(0, opcode);
result.set_slc(7, imm19);
result.s... |
<commit_before>/**
* \file
* \remark This file is part of VITA.
*
* \copyright Copyright (C) 2011-2016 EOS di Manlio Morini.
*
* \license
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one... |
<commit_before>/* This file is part of nSkinz by namazso, licensed under the MIT license:
*
* MIT License
*
* Copyright (c) namazso 2018
*
* 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 with... |
<commit_before>/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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... |
<commit_before>#include "BedShapeDialog.hpp"
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/wx.h>
#include "Polygon.hpp"
#include "BoundingBox.hpp"
#include <wx/numformatter.h>
#include "Model.hpp"
#include "boost/nowide/iostream.hpp"
namespace Slic3r {
namespace GUI {
void BedShapeDialog::build_dialog(... |
<commit_before>/*
* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc.
*
* 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,
* thi... |
<commit_before>// Copyright (c) 2018 ASMlover. 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 o... |
<commit_before>// torBlock.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include <string>
#include <algorithm>
#include <sstream>
#include <stdarg.h>
#include <vector>
#include <stdio.h>
#include <assert.h>
#include <map>
#include <vector>
inline std::string tolower(const std::string... |
<commit_before>//******************************************************************************
//*
//* FULLNAME: Single-Chip Microcontroller Real-Time Operating System
//*
//* NICKNAME: scmRTOS
//*
//* PROCESSOR: MSP430 (Texas Instruments)
//*
//* TOOLKIT: EW430 (IAR Systems)
//*
//*... |
<commit_before>#include <iostream>
using namespace std;
int flip(int a, int pos);
void flip(int* a, int pos);
void print(int a);
int solve(int a, int tgt);
int main() {
int a = 0;
for (int i = 0; i < 4; i++) {
string line;
cin >> line;
for (int j = 0; j < 4; j++) {
char c = line[j];
in... |
<commit_before>/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2016 Liviu Ionescu.
*
* 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 Sof... |
<commit_before>/*
*
* Copyright 2016-2017 gRPC 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
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 condi... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>#include "mainwindow.h"
#include "note.h"
#include "filesystemmodel.h"
#include "preferences.h"
#include <QTextStream>
#include <QFile>
#include <QModelIndex>
#include <QInputDialog>
#include <QMouseEvent>
#include <QDesktopServices>
#include <QtConcurrentRun>
#include <QSettings>
#include <QMessageBox>
... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cassert>
#include <visionaray/math/math.h>
#include <gtest/gtest.h>
using namespace visionaray;
//-------------------------------------------------------------------------------------------------
// He... |
<commit_before>#pragma once
#include "problem.hpp"
#include "lsearch_types.h"
#include "batch_types.h"
#include "batch/gd.hpp"
#include "batch/cgd.hpp"
#include "batch/lbfgs.hpp"
namespace nano
{
///
/// \brief batch optimization (can detail the line-search parameters)
///
template
... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// mutate_test.cpp
//
// Identification: tests/executor/mutate_test.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===---------------------------------... |
<commit_before>#include "common_inductives.hh"
/*-------------------------------------------------------------------------------------------*/
const SDD one = sdd::one<conf>();
const hom id = sdd::hom::Id<conf>();
/*-------------------------------------------------------------------------------------------*/
target... |
<commit_before>
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2015 Igor Mironchik
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
re... |
<commit_before>/*
* Copyright (C) 2008-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <li... |
<commit_before>/*
* Copyright (c) 2017 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>// Copyright (c) 2014 The ShadowCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "spectregui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include ... |
<commit_before>#include "lexer.h"
#include "parser.h"
#include "binary.h"
#include "constants.h"
#include "semantics.h"
#include "options.h"
#include "trace.h"
#include <iostream>
#include <fstream>
#include <llvm/PassManager.h>
#include <llvm/Support/raw_os_ostream.h>
#include <llvm/Analysis/Passes.h>
#include <llvm/I... |
<commit_before>#include "kwm.h"
extern std::vector<spaces_info> SpacesLst;
extern std::vector<screen_info> DisplayLst;
extern std::vector<window_info> WindowLst;
extern std::vector<screen_layout> ScreenLayoutLst;
extern std::vector<window_layout> LayoutLst;
extern uint32_t MaxDisplayCount;
extern ProcessSerialNumber ... |
<commit_before>/*
* Copyright (c) 2015, Rémi Bazin <bazin.remi@gmail.com>
* All rights reserved.
* See LICENSE for licensing details.
*/
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
#include <time.h>
#include <limits.h>
#include <qglobal.h>
#include "simplif... |
<commit_before>/*
* Copyright 2007-2017 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include "dom.hpp"
#include <pugixml.hpp>
#include <map>
using namespace svgdom;
namespace{
enum class EXmlNamespace{
UNKNOWN,
SVG,
XLINK
};
const char* DSvgNamespace = "http://www.w3.org/2000/svg";
const char* DXlinkNamespace = "http://www.w3.org/1999/xlink";
struct Parser{
std::map<std::st... |
<commit_before>#ifndef SYS_BUFFER_HPP
#define SYS_BUFFER_HPP
#include <stdlib.h>
#include <memory>
class Buffer;
/* Ignore the "BufferRef" class. */
class BufferRef {
public:
BufferRef(Buffer *b) throw() : p_(b) { }
Buffer &ref() throw() { return *p_; }
private:
Buffer *p_;
};
/* Memory buffer. Like au... |
<commit_before>#include <cassert>
#include <iostream>
#include "service.h"
// Test 1: starting a service starts dependencies; stopping the service releases and
// stops dependencies.
void test1()
{
service_set sset;
service_record *s1 = new service_record(&sset, "test-service-1", service_type::INTERNAL, {}, ... |
<commit_before>#ifndef UTF8_TYPES_HPP_INCLUDED
#define UTF8_TYPES_HPP_INCLUDED
typedef unsigned char byte_t;
typedef size_t utf8_len_t;
#endif // UTF8_TYPES_HPP_INCLUDED
<commit_msg>Fixed clang warning<commit_after>#ifndef UTF8_TYPES_HPP_INCLUDED
#define UTF8_TYPES_HPP_INCLUDED
typedef char byte_t;
typedef size_t ut... |
<commit_before>#ifndef UTIL_HPP
#define UTIL_HPP
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <set>
#include <memory>
#include <typeinfo>
#include <functional>
#include <cxxabi.h>
#include "suppressWarnings.hpp"
#define abs(x) (x < 0 ? -x : x)
#define UNUSED(expr) (void)(expr)
... |
<commit_before>#include "ghost/densemat_cm.h"
#include "ghost/util.h"
#include "ghost/locality.h"
#include <complex>
template<typename T>
static ghost_error ghost_densemat_cm_averagehalo_tmpl(ghost_densemat *vec)
{
#ifdef GHOST_HAVE_MPI
GHOST_FUNC_ENTER(GHOST_FUNCTYPE_COMMUNICATION);
ghost_error ret = GHOST_SU... |
<commit_before>/**
* Copyright (c) 2007-2012, Timothy Stack
*
* 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, t... |
<commit_before>//*********************
// Divers
//*********************
void notifyServQuit(JsonValue * json, UserHandler * thread){
char * reponse;
}
void checkChallenge(JsonValue * json, UserHandler * thread){
char * reponse;
} //bool
void getChallengerInfo(JsonValue * json, UserHandler * thread){
cha... |
<commit_before>#ifndef QTL_ESTIMATOR_CONFIG_HPP_
#define QTL_ESTIMATOR_CONFIG_HPP_
#include <boost/mpl/aux_/na.hpp>
#ifdef USE_VECTOR_SUBSET
#include "clotho/powerset/vector_subset.hpp"
#define SUBSETTYPE clotho::powersets::vector_subset
#include "clotho/recombination/inspect_methods.hpp"
#define RECOMBINE_INSPECT_... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <stdlib.h... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
* Copyright (C) 2005 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it u... |
<commit_before>/*
* Copyright 2017 resin.io
*
* 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... |
<commit_before>/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file is part of zmqpp.
* Copyright (c) 2011-2015 Contributors as noted in the AUTHORS fi... |
<commit_before>// Copyright (c) 2015-2018, LAAS-CNRS
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of gepetto-viewer.
// gepetto-viewer 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 Softwar... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
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 condi... |
<commit_before>// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "..\StdAfx.h"
#include "..\BatchEncoder.h"
#include "Hyperlink.h"
IMPLEMENT_DYNAMIC(CHyperlink, CStatic)
CHyperlink::CHyperlink()
{
m... |
<commit_before>#ifndef ANIMATEDGROUP_HPP_
#define ANIMATEDGROUP_HPP_
#include <tuple>
#include <core/animated.hpp>
template <typename ...Tp>
using AnimatedTuple = std::tuple<Animated<Tp>...>;
template<std::size_t I = 0, typename... Tp>
inline typename std::enable_if<I == sizeof...(Tp), void>::type
iterateTick(Animat... |
<commit_before>/* junctions_main.cc -- handle the 'junction' commands
Copyright (c) 2015, The Griffith Lab
Author: Avinash Ramu <aramu@genome.wustl.edu>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... |
<commit_before>#include "layers/loss.h"
namespace marian {
// @TODO, simplify this. Currently here for back-compat
Ptr<LabelwiseLoss> newLoss(Ptr<Options> options, bool inference) {
float smoothing = inference ? 0.f : options->get<float>("label-smoothing");
std::string costType = options->get<std::string>("cost-t... |
<commit_before>/******************************************************************************
* Main script for the 2017 RoboFishy Scripps AUV
******************************************************************************/
#include "Mapper.h"
// Multithreading
#include <pthread.h>
#include <sched.h>
#include <unistd... |
<commit_before><commit_msg>Planning: bug fixes in open_sapce_roi_decider for PardAndGo scenario<commit_after><|endoftext|> |
<commit_before>
#include "cmdline/cmdline.h"
#include "mhap/overlap.h"
#include "mhap/parser.h"
#include "ra/include/ra/ra.hpp"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
// trimming params
int READ_LEN_THRESHOLD = 100000;
// BFS params in bubble popping
size_t MAX_NODES = 750;
int ... |
<commit_before><commit_msg>Planning: code clean for ROI decider.<commit_after><|endoftext|> |
<commit_before>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2012, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>#include <bits/stdc++.h>
#include <iostream>
#include <string>
/*add the header if you need*/
using namespace std;
//Abstract base class for Dessert Item hierarchy
class DessertItem
{
private:
//Name of the DessertItem object
string name;
public:
DessertItem(){}
DessertItem(string name)... |
<commit_before><commit_msg>Updated tests for DirectXHelpers<commit_after><|endoftext|> |
<commit_before>#include "config.h"
#include <iostream>
#include <cstring>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include "hash.hh"
#include "archive.hh"
#include "util.hh"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
namespace nix {
Hash::Hash()
{
type = htUnknown;
hashSiz... |
<commit_before>#include <map>
#include <llvm/IR/Value.h>
#include <llvm/IR/Instruction.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Constants.h>
#include <llvm/IR/GlobalVariable.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/raw_ostream.h>
#include "LLVMNode.h"
#include "LLVMDependenceGraph.h"
#inclu... |
<commit_before>using namespace std;
#include "ui.h"
int WIDTH = 600; // width of the user window
int HEIGHT = 480; // height of the user window
char programName[] = "scheduler";
// button info
vector<Button> buttons;
vector<TextBox> textboxes;
vector<Label> labels;
void drawWindow() {
// clear the buffer
glClea... |
<commit_before>
#include "ExecutionEngine.h"
#include <csetjmp>
#include <chrono>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/ADT/Triple.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
#include <llvm/ExecutionEngine/GenericVal... |
<commit_before>/* created by fbellini@cern.ch on 14/09/2010 */
/* last modified by fbellini on 08/03/2010 */
#include "AliAnalysisTaskTOFqa.h"
AliAnalysisTaskSE * AddTaskTOFQA()
{
// Task for checking TOF QA
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Error("AddTa... |
<commit_before>#include "pin_mesh_base.hpp"
#include <iostream>
#include "error.hpp"
namespace mocc {
PinMesh::PinMesh( const pugi::xml_node &input ) {
// Extract pin id
id_ = input.attribute( "id" ).as_int(-1);
if(id_ < 0) {
throw EXCEPT( "Failed to read pin ID." );
... |
<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
*
*... |
<commit_before>/**
* @file Walk.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich, Mellmann</a>
* @author <a href="mailto:kaden@informatik.hu-berlin.de">Steffen, Kaden</a>
*
*/
#include "Walk2018.h"
#include "../Walk/FootTrajec... |
<commit_before>//@author A0094446X
#include "stdafx.h"
#include <QApplication>
#include <QList>
#include "task_panel_manager.h"
using Task = You::Controller::Task;
const QString MainWindow::TaskPanelManager::TASK_COLUMN_1 = "Hidden ID Column";
const QString MainWindow::TaskPanelManager::TASK_COLUMN_2 = "Index";
const... |
<commit_before>// Read a file and parse each line according to the format file.
// Output integer matrices with lookup maps in either ascii text
// or matlab binary form.
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <limits>
#include "utils.h"
#include "gzstream.h"
#define BUFSIZE 10... |
<commit_before>#pragma once
#include <unordered_map>
namespace ln {
namespace detail {
class ShaderManager;
}
}
class FxcCommand
{
public:
ln::Path outputFile;
bool saveCodes = true;
int execute(const ln::Path& inputFile);
private:
bool generate(const ln::Path& inputFile);
ln::Re... |
<commit_before>/* detectMotionObject.cpp */
//-----------------------------------------------------------------------
// include files
//-----------------------------------------------------------------------
#include <vector>
#include <opencv2/opencv.hpp>
#include "detectMotionObject.h"
#include "optFlow2RGB.h"
//---... |
<commit_before>//===- tools/dsymutil/DwarfLinker.cpp - Dwarf debug info linker -----------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>#include <fstream>
#include <iomanip>
#include <iostream>
#include <prjxray/xilinx/xc7series/frame_address.h>
namespace xc7series = prjxray::xilinx::xc7series;
void frame_address_decode(std::istream * input_stream) {
for (uint32_t frame_address_raw;
(*input_stream) >> std::setbase(0) >> frame_a... |
<commit_before>/*
contact: Boris.Polishchuk@cern.ch
link: see comments in the $ALICE_ROOT/PHOS/AliPHOSRcuDA1.cxx
reference run: /castor/cern.ch/alice/phos/2007/10/04/18/07000008249001.1000.root
run type: STANDALONE
DA type: MON
number of events needed: 1000
input files: RCU0.data RCU1.data RCU2.data RCU3.data
Outpu... |
<commit_before>/**
* Copyright (c) 2016 DeepCortex GmbH <legal@eventql.io>
* Authors:
* - Laura Schlimmer <laura@eventql.io>
* - Christian Parpart <christianparpart@gmail.com>
* - Paul Asmuth <paul@eventql.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of... |
<commit_before>/**
* @file Singleton.hpp
* @brief Singleton class prototype.
* @author zer0
* @date 2016-04-04
*
* @remarks
* Singleton with double-checked locking pattern.
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_PATTERN_SINGLETON_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_PATTERN_SINGLETON_HPP__
// MS comp... |
<commit_before>/** @file
*
* @ingroup dspLibrary
*
* @brief Container object that holds some audio in a chunk of memory.
*
* @see TTMatrix, TTAudioSignal
*
* @authors Timothy Place & Nathan Wolek
*
* @copyright Copyright © 2003-2012, Timothy Place & Nathan Wolek @n
* This code is licensed under the terms ... |
<commit_before>/**
* @file opencv_sanity.cpp
* @brief Sanity test for the OpenCV libraries
* @author Paolo D'Apice
*/
#define BOOST_TEST_MODULE sanity
#include <boost/test/unit_test.hpp>
#include "utils/matrix.hpp"
#include <opencv2/opencv.hpp>
#include <iostream>
#define argc boost::unit_test::framework::master... |
<commit_before>#include <graphics/gltexture.h>
#include <graphics/exceptions.h>
namespace graphics {
GLuint GLTexture::activeTexture = 0;
GLTexture::GLTexture(const std::string &fname) : id(0) {
std::vector<unsigned char> image_data;
unsigned int width, height;
if (unsigned int error =... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp... |
<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 distributed WIT... |
<commit_before>/**
* Copyright (C) 2016 3D Repo Ltd
*
* 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 by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
... |
<commit_before>// Copyright 2008, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.