text stringlengths 54 60.6k |
|---|
<commit_before>/*************************************************************************
*
* $RCSfile: document.hxx,v $
*
* $Revision: 1.19 $
*
* last change: $Author: kz $ $Date: 2004-10-04 18:02:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before><commit_msg>Sequence24 targeted.<commit_after><|endoftext|> |
<commit_before>// $Author: afinit $
// $Date$
// $Log$
// Contains the Process class for afin
#include "process.hpp"
#include <thread>
int max_search_loops;
int contig_sub_len;
int extend_len;
int max_sort_char;
int min_cov;
int min_overlap;
int max_threads;
int initial_trim;
int max_missed;
double stop_ext;
bool tes... |
<commit_before>#include "FileIO.h"
#include "Symbol.h"
#include "Sprite.h"
#include "ChangeWindowViewSizeSJ.h"
#include <ee/FileHelper.h>
#include <ee/SymbolSearcher.h>
#include <ee/SymbolMgr.h>
#include <ee/SpriteFactory.h>
#include <ee/FetchAllVisitor.h>
#include <ee/Exception.h>
#include <easycomplex.h>
#include ... |
<commit_before><commit_msg>Added noexcept example.<commit_after><|endoftext|> |
<commit_before>#include "binary_data_figures_reader.h"
namespace data_source {
using namespace dom::figures;
bool BinaryDataFiguresReader::isFigureQueueEmpty() {
std::lock_guard<std::mutex> lock(m_queue_mutex);
return m_figure_queue.empty();
}
std::shared_ptr<Figure> BinaryDataFiguresReader::popFigure() {
st... |
<commit_before>/*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/****************************************************************************************************/
#include ... |
<commit_before>#include <ir/index_manager/index/OutputDescriptor.h>
#include <cassert>
using namespace izenelib::ir::indexmanager;
OutputDescriptor::OutputDescriptor()
:pVocOutput_(NULL)
,pDPostingOutput_(NULL)
,pPPostingOutput_(NULL)
,bDestroy_(false)
,pDirectory_(... |
<commit_before>#include "problemes.h"
#include "utilitaires.h"
#include "combinatoire.h"
typedef boost::multiprecision::cpp_int nombre;
namespace {
struct noeud {
noeud(long double x1_, long double y1_, long double x2_, long double y2_) :
x1(x1_), y1(y1_), x2(x2_), y2(y2_) {}
long... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute... |
<commit_before>#include "SolidMaterialProperties.h"
registerMooseObject("THMApp", SolidMaterialProperties);
template <>
InputParameters
validParams<SolidMaterialProperties>()
{
InputParameters params = validParams<GeneralUserObject>();
params.addRequiredParam<FunctionName>("k", "Thermal conductivity");
params.a... |
<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 "zbase/An... |
<commit_before>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#ifndef __BSE_ITEM_H__
#define __BSE_ITEM_H__
#include <bse/bseobject.hh>
#include <bse/bseundostack.hh>
/* --- object type macros --- */
#define BSE_TYPE_ITEM (BSE_TYPE_ID (BseItem))
#define BSE_ITEM(object) ... |
<commit_before>#include "Level.h"
#include "Player.h"
#include "FoodSpawner.h"
//Initialize all static variables.
bool Level::m_initialized = false;
Player* Level::m_player = nullptr;
FoodSpawner* Level::m_foodSpawner = nullptr;
MapTile*** Level::m_MapArray = nullptr;
MapTile** Level::m_MapTiles = nullptr;
int Level::... |
<commit_before>// Copyright (c) 2021 Ultimaker B.V.
// CuraEngine is released under the terms of the AGPLv3 or higher.
#include <numeric>
#include "DistributedBeadingStrategy.h"
namespace cura
{
DistributedBeadingStrategy::DistributedBeadingStrategy(const coord_t optimal_width,
const c... |
<commit_before>//
// CodeGenerator.cpp
// Emojicode
//
// Created by Theo Weidmann on 19/09/16.
// Copyright © 2016 Theo Weidmann. All rights reserved.
//
#include <cstring>
#include <vector>
#include "CodeGenerator.hpp"
#include "CallableParserAndGenerator.hpp"
#include "Protocol.hpp"
#include "CallableScoper.hpp... |
<commit_before>//
// Object.c
// Emojicode
//
// Created by Theo Weidmann on 01.03.15.
// Copyright (c) 2015 Theo Weidmann. All rights reserved.
//
#include "Memory.hpp"
#include "Class.hpp"
#include "Engine.hpp"
#include "Thread.hpp"
#include <algorithm>
#include <condition_variable>
#include <cstdlib>
#include <... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: ClusterImageStatistics.cxx,v $
Language: C++
Date: $Date: 2008/12/15 16:35:13 $
Version: $Revision: 1.20 $
Copyright (c) 2002 Insig... |
<commit_before>#include "Exception.h"
#include "BackTrace.h"
#include "Demangling.h"
#include "StackAddressLoader.h"
#include "DebugSymbolLoader.h"
#include <algorithm>
#include <cstddef>
#include <exception>
#include <fstream>
#include <iterator>
#include <limits>
#include <memory>
#include <sstream>
#include <stdex... |
<commit_before>/*$Id$
*
* This source file is a part of the Berlin Project.
* Copyright (C) 1999 Stefan Seefeld <seefelds@magellan.umontreal.ca>
* http://www.berlin-consortium.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* L... |
<commit_before>#ifndef CLUSTERING_GENERIC_MULTI_THROTTLING_SERVER_HPP_
#define CLUSTERING_GENERIC_MULTI_THROTTLING_SERVER_HPP_
#include "arch/timing.hpp"
#include "clustering/generic/multi_throttling_metadata.hpp"
#include "clustering/generic/registrar.hpp"
#include "rpc/mailbox/typed.hpp"
template <class request_typ... |
<commit_before>/*
The MIT License(MIT)
Copyright(c) 2016 Joss Whittle
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>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* https://lxqt.org
*
* Copyright: 2012 Razor team
* 2014 LXQt team
* Authors:
* Kuzma Shapran <kuzma.shapran@gmail.com>
*
* This program or library is free software; you can redistribu... |
<commit_before>
#include <tiramisu/tiramisu.h>
#include "benchmarks.h"
#include "math.h"
/*
IMPLEMENTATION OF THE NMR2 FUNCTION IN TIRAMISU
out =
where :
A : is a NxM matrix
x : is a size N vector
y : is a size M vector ( y**T : transpose of y)
a : scalar
THE C CODE OF THIS FUNCTIO... |
<commit_before>/*
* Copyright (C) 2006-2021 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>// @(#) $Id$
// Original: AliHLTTrackMerger.cxx,v 1.12 2005/06/14 10:55:21 cvetan
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. ... |
<commit_before>/*********************************************************************************
* Copyright (c) 2010-2011, Elliott Cooper-Balis
* Paul Rosenfeld
* Bruce Jacob
* University of Maryland
* dr... |
<commit_before>#include "rice/Array.hpp"
#include "rice/Constructor.hpp"
#include "rice/Object.hpp"
#include "config.h"
#include "generator.h"
#include "question.h"
#include "topic.h"
using namespace ailab;
template<>
question_t from_ruby<question_t>(Rice::Object obj) {
size_t qid = from_ruby<size_t>(obj.call("que... |
<commit_before>/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain ... |
<commit_before>#ifndef _HASHTABLE_HPP_
#define _HASHTABLE_HPP_
#include <iostream>
using namespace std;
template <typename Key>
class Hashtable {
private:
struct Hash_node {
Key _k;
Hash_node *_next;
Hash_node(const Key &k, Hash_node *next = NULL);
};
Hash_node **_table;
unsigned int _table_size;... |
<commit_before>/*-----------------------------------------------------------------------------
Copyright 2017 Hopsan Group
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version... |
<commit_before>/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
**********************... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkExtractSelectedGraph.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detail... |
<commit_before>/*************************************************************************
*
* $RCSfile: syslocale.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-06-16 10:30:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: connpoolsettings.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2006-09-17 04:13:13 $
*
* The Contents of this file ... |
<commit_before>/*
* Copyright (C) 2004-2012 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <znc/Buffer.h>
#include <znc/znc.h>
... |
<commit_before>// model.cpp : interface of the CModel class
//
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CModel
#include <string>
#include <vector>
#include "copasi.h"
#include "CGlobals.h"
#include "... |
<commit_before>#include "proclist.h"
// PDTK
#include <cxxutils/posix_helpers.h>
#if defined(__linux__) // Linux
#include <dirent.h>
#include <cstdlib>
int proclist(pid_t* list, size_t max_length)
{
DIR* dirp = ::opendir("/proc");
if(dirp == nullptr)
return posix::error_response;
struct dirent* entry;
... |
<commit_before>/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of c... |
<commit_before>/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is d... |
<commit_before>//
// Camera.cpp
// Cinder-EDSDK
//
// Created by Jean-Pierre Mouilleseaux on 08 Dec 2013.
// Copyright 2013-2015 Chorded Constructions. All rights reserved.
//
#include "Camera.h"
#include "CameraBrowser.h"
using namespace ci;
using namespace ci::app;
namespace Cinder { namespace EDSDK {
#pragma... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QSerialPortInfo>
#include <QSerialPort>
#include "../arduino_st/simple_comm.h"
#include <thread>
#include <chrono>
#include "union_cast.h"
#include <QDebug>
#include <QTcpServer>
#include <QTcpSocket>
#include "stell_msg.h"
#include "star_math.... |
<commit_before>/*-------------------------------------------------------------------------
*
* merge_join.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /peloton/src/executor/merge_join_executor.cpp
*
*-------------------------------------------------------------------------
*/
#include <vector>
#inc... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Publ... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016
Vladimír Vondruš <mosra@centrum.cz>
Copyright © 2016 Alice Margatroid <loveoverwhelming@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this ... |
<commit_before>#include "r_functionwhitelist.h"
#include "stringutils.h"
//The following functions (and keywords that can be followed by a '(') will be allowed in user-entered R-code, such as filters or computed columns. This is for security because otherwise JASP-files could become a vector of attack and that doesn'... |
<commit_before>#include "IPAddress.h"
#include "InternetAddress.h"
#include "Util.h"
#include <iostream>
#include <fstream>
#include <iomanip>
void displayHelp ();
int main () {
// Indicates whether the program should exit
bool exit = false;
std::string option;
std::cout << "IP Calculator v1.0" << ... |
<commit_before>// Test for cross-vendor C++ ABI's __cxa_demangle function.
#include <cxxabi.h>
#include <cstdlib>
#include <cstring>
#include <stdexcept>
#include <typeinfo>
int main()
{
int status = 0;
char *name = abi::__cxa_demangle(
typeid(10).name(), nullptr, nullptr, &status);
if (status != 0)
throw s... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/browser/chromeos/offline/offline_load_page.h"
#include "chrome/... |
<commit_before>// Copyright (c) 2011 - 2015, GS Group, https://github.com/GSGroup
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permission notice appear in all copies.
// THE SOFTWARE IS PRO... |
<commit_before>/*
* Using Sundaram' sieve, print the first 2,000,000 numbers
* darkturo 2014
*/
#include <iostream>
#include <fstream>
#include <bitset>
#include <ctime>
#include <limits>
#include <boost/spirit/include/karma.hpp>
#define TIMEDIFF(start, stop) 1000.0 * (stop - start)/CLOCKS_PER_SEC
#define MAX 32452... |
<commit_before>//===-- WatchpointLocation.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- PythonDataObjects.cpp ------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... |
<commit_before>//
// JSONEventSerializer.h
//
// $Id: //poco/1.4/JS/Bridge/src/JSONEventSerializer.cpp#3 $
//
// Library: JSBridge
// Package: Bridge
// Module: JSONEventSerializer
//
// Definition of the JSONEventSerializser class.
//
// Copyright (c) 2013-2014, Applied Informatics Software Engineering GmbH.
// All r... |
<commit_before>//! \file
//! \brief GPIO device interface for STM32 platform
//! \todo Detailed explanation.
#ifndef PLATFORM_GPIO_DEVICE_HPP
#define PLATFORM_GPIO_DEVICE_HPP
namespace ecl
{
// GPIO numbers
enum class gpio_num
{
pin0,
pin1,
pin2,
pin3,
pin4,
pin5,
pin6,
pin7,
pin8,... |
<commit_before>#ifndef DOUBLE_HPP
#define DOUBLE_HPP
#include <cmath>
static const double EPS = 1.0e-9;
template<int PRECISION>
static inline bool
eq(double a, double b)
{
return std::abs(a - b) < std::pow(10.0, -PRECISION);
}
static inline bool
eq(double a, double b)
{
return std::abs(a - b) < EPS;
}
templa... |
<commit_before>/*
* EDeNseq.cc
*
* Created on: 26.02.2015
* Author: heyne
*/
#include <iostream>
#include "BaseManager.h"
#include "Data.h"
#include "Parameters.h"
#include "SeqClusterManager.h"
#include "SeqClassifyManager.h"
#include "MinHashEncoder.h"
using namespace std;
class Dispatcher {
protected:... |
<commit_before>#include "Editor.h"
Editor::Editor() {
mode_ = MODE_NOTHING;
floors_.push_back(Floor(Vector(0, 0), Vector(3, 0)));
}
void Editor::DrawHandle() {
glBegin(GL_POLYGON);
for(float ang = 0; ang < 2*M_PI; ang += M_PI/8) {
glVertex2f(0.03 * cos(ang), 0.03 * sin(ang));
}
glEnd();
glBegin(GL_LINE_... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_... |
<commit_before>// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple x86_64-linux-gnu | FileCheck %s
int f();
int g();
// CHECK: @a = thread_local global i32 0
thread_local int a = f();
extern thread_local int b;
// CHECK: @c = global i32 0
int c = b;
// CHECK: @_ZL1d = internal thread_local global i32 0
static th... |
<commit_before>#include <glowutils/AdaptiveGrid.h>
#include <cmath>
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glow/Program.h>
#include <glow/Shader.h>
#include <glow/Buffer.h>
#include <glow/VertexArrayObject.h>
#include <... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
int main(){
int hrs,min,sec;
int time1,time2;
char c;
cout<<"Enter railway time in Format:\n h:m:s (eg:15:23:59)\n";
cout<<"Enter Time 1: ";
cin>>hrs>>c>>min>>c>>sec;
assert(hrs<25 && hrs>=0);
assert(min<61 && min>=0);
assert(sec<61 && sec>=0);
ti... |
<commit_before>/*
* Copyright (c) 2016 Inria and University Pierre and Marie Curie
*/
/**
* \file mylibm.hpp
* \brief Provides a set of auxiliary functions to superaccumulation.
* For internal use
*
* \authors
* Developers : \n
* Roman Iakymchuk -- roman.iakymchuk@lip6.fr \n
* S... |
<commit_before>//////////////////////////////////
//
// Compile: g++ -std=c++14 -O3 ex5.cxx -o ex5 -lboost_timer
//
//////////////////////////////////
#include <iostream> // std::cout
#include <fstream> // std::ifsteam
#include <utility> // std::pair
#include <vector> // std::vector
#include <boost/graph/graph_tra... |
<commit_before>#include "testdriver_comparator.h"
// used for Canonical XML
#define LIBXML_C14N_ENABLED
#define LIBXML_OUTPUT_ENABLED
#include <libxml/c14n.h>
#include <libxml/tree.h>
#include <sstream>
#include <iostream>
#include <fstream>
#include <cassert>
namespace zorba {
/***********************************... |
<commit_before>/*
*
* Copyright 2014, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextMasterPageContext.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-09-09 15:24:04 $
*
* The Contents of th... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007, 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>#ifndef __AMUSE_AUDIOGROUPPOOL_HPP__
#define __AMUSE_AUDIOGROUPPOOL_HPP__
#include <stdint.h>
#include <vector>
#include <cmath>
#include <unordered_map>
#include "Entity.hpp"
#include "Common.hpp"
namespace amuse
{
/** Converts time-cents representation to seconds */
static inline double TimeCentsToS... |
<commit_before>#pragma once
#include <utility>
#include <type_traits>
#include <archie/meta/static_constexpr_storage.hpp>
namespace archie {
namespace detail {
template <typename...>
struct to_function_pointer_;
template <typename R, typename... Args>
struct to_function_pointer_<R(Args...)> {
using type =... |
<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>#pragma once
/*
* Factories for variable names.
*/
#include <crab/common/types.hpp>
#include <boost/optional.hpp>
#include <boost/range/iterator_range.hpp>
#include <limits>
#include <unordered_map>
#include <vector>
#include <functional>
namespace crab {
namespace cfg {
namespace var_factory_i... |
<commit_before>/**
* \file
* \brief ThreadBase class header
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par 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
* distribute... |
<commit_before>/*
* @file stream_encoder.hpp
*
* @brief Ellis TBD C++ header.
*/
#pragma once
#ifndef ELLIS_STREAM_ENCODER_HPP_
#define ELLIS_STREAM_ENCODER_HPP_
#include <ellis/defs.hpp>
#include <ellis/err.hpp>
#include <ellis/node.hpp>
#include <memory>
namespace ellis {
enum class encoding_status {
CONTI... |
<commit_before>#ifndef MATCH_HPP
#define MATCH_HPP
#include "engine/plugins/plugin_base.hpp"
#include "engine/map_matching/bayes_classifier.hpp"
#include "engine/object_encoder.hpp"
#include "engine/search_engine.hpp"
#include "engine/guidance/textual_route_annotation.hpp"
#include "engine/guidance/segment_list.hpp"
... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#include "DistormHelper.hpp"
#include <distorm.h>
#include <mnemonics.h>
extern "C"
{
#include <../src/instructions.h>
}
bool AreOperandsStatic(const _DInst &instruction, const int prefixLength)
{
const auto fc = META_GET_FC(instruction.meta);
if (fc == FC_UNC_BRANCH || fc == FC_CND_BRANCH)
{
if (... |
<commit_before>/**
* @file directed_graph.tcc
* @author Sean Massung
*/
namespace meta
{
namespace graph
{
template <class Node, class Edge>
auto directed_graph
<Node, Edge>::outgoing(node_id id) const -> const adjacency_list &
{
if (id >= size())
throw directed_graph_exception{"node_id out of range... |
<commit_before>/*
* Copyright (C) 2019 ScyllaDB
*/
#include "build_id.hh"
#include <fmt/printf.h>
#include <link.h>
#include <seastar/core/align.hh>
#include <sstream>
using namespace seastar;
static const Elf64_Nhdr* get_nt_build_id(dl_phdr_info* info) {
auto base = info->dlpi_addr;
const auto* h = info->... |
<commit_before>#include <iostream>
#include <iterator>
#include <vector>
#include <string>
#include <algorithm>
class MessageAssembler
{
public:
virtual void createHeader() = 0;
virtual void createBody() = 0;
virtual void createFooter() = 0;
const std::vector<std::string>& getMessage() const {return... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:BS... |
<commit_before>
#include <iostream>
#include "parser/parser.h"
using namespace std;
using namespace lars;
int main(int argc, char ** argv){
parsing_expression_grammar_builder<double> g;
using expression = expression<double>;
g["Expression"] << "Sum" << [](expression e){ e.value()... |
<commit_before>/*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation
*
* 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
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE... |
<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>#include <cmath>
#include <cstddef>
#include <iostream>
#include <vector>
#include <algorithm>
#include "../test_helpers.h"
template<class T, class ArrayLike>
void sort_insertion(ArrayLike& v) {
for(std::size_t k = 1; k < v.size(); ++k) {
// invariant: v[0..k) is sorted
for(std::size_t i = k; ... |
<commit_before>// IconBar.hh for Fluxbox Window Manager
// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
//
// 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 rest... |
<commit_before>/*
cmdline.cpp
ப
*/
/* Revision: 1.02 13.09.2000 $ */
/*
Modify:
13.09.2000 tran 1.02
+ COL_COMMANDLINEPREFIX
02.08.2000 tran 1.01
- 䨪 - 室 CtrlF10, 䠩 ᬮ
Alt-F11, keybar
ᥣ CtrlObject->Redraw()
25.06.2000 SVS
! ⮢ Master Copy
! 뤥 ⢥ ᠬ⥫쭮
*/
#include "hea... |
<commit_before>/* Copyright (c) 2014 Quanta Research Cambridge, Inc
*
* 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 us... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Ruben Dörfel <ruben.doerfel@tu-ilmenau.de>;
* @version dev
* @date January, 2020
*
* @section LICENSE
*
* Copyright (C) 2020, Ruben Dörfel. Al... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by FThauer FHammer *
* f.thauer@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
*... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "Foundation.h"
#include "OgreRenderingModule.h"
#include "Renderer.h"
#include "EC_OgrePlaceable.h"
#include "EC_OgreMesh.h"
#include <Ogre.h>
namespace OgreRenderer
{
EC... |
<commit_before>#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"
//========================================================================
int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024 ,768, OF_WINDOW); // <-------- setup the GL context
//for having 100% full screen ... |
<commit_before>#include <iostream.h>
#include <string.h>
#include "dhash_common.h"
#include "dhash.h"
#include "dhashclient.h"
#include "mud.h"
ptr<dhashclient> dhash;
game_engine *mud;
void done_insert (ptr<avatar> a, int, mud_stat stat);
void really_done (ref<avatar> a, int, mud_stat);
void play (ref<avatar> a);
vo... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_HDD_LINEARELLIPTIC_TESTCASES_BASE_HH
#define DUNE_HDD_LINEARELLIPTIC_TESTCAS... |
<commit_before>/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
<commit_before>#include "thrusttest/testframework.h"
#include "thrusttest/exceptions.h"
#include <cuda_runtime.h>
#include <iostream>
#include <cstdlib>
#include <algorithm>
void UnitTestDriver::register_test(UnitTest *test)
{
UnitTestDriver::s_driver()._test_list.push_back(test);
}
UnitTest::UnitTest(const char... |
<commit_before>#include "bodyParts.hpp"
#include "creature.hpp"
#include "world.hpp"
#include "pheromoneMap.hpp"
#include "ant.hpp"
AntLegs::AntLegs(World* w, Creature* owner) : BodyPart(w,owner)
{
targetPos_=owner->getPos();
}
void AntLegs::goToPos(const Point& p){
targetPos_=p;
}
void AntLegs::step(int del... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.