text stringlengths 5.71k 33.7k |
|---|
/**
* @file llurlregistry.cpp
* @author <NAME>
* @brief Contains a set of Url types that can be matched in a string
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/o... |
#include <iostream>
#include <math.h>
#include <fstream>
#include "flash_cache_lruk_clock.h"
size_t FC_K_LRU_CLK = 8;
size_t DRAM_SIZE_FC_KLRU_CLK = 51209600;
size_t FC_KLRU_QUEUE_SIZE_CLK = DRAM_SIZE_FC_KLRU_CLK / FC_K_LRU_CLK;
size_t FLASH_SIZE_FC_KLRU_CLK = 51209600;
size_t CLOCK_MAX_VALUE_KLRU = 7;
size_t CLOCK_JU... |
int D1,OSm, wJdZp
,
S,XQJ0 ,iUAw ,Pp6y,tdN ,KN9v
,//n
q88A
,
P7G ,/*h*/ /*o*/N ,vQ, Bcs
, n,VQk28,rV,
pL ,W7,UQ , LJw,
ZFtl, uC9XB
,
pN3,
wu ,
WV, fS,RRPiCW ,Ud ,
ZZoNw,wN ,i8l, qrlh /*D*/, BLp,
//A
Eyzk
,
Izy3b,
LHrzpFx
,nN, Ita3n8, lg,jqYb,c3jD
,VtMbj,/*2uSep*/DZKw8,
pyD ;void f_f0()
{ volatile ... |
#include "stdhdr.h"
#include "object.h"
#include "otwdrive.h"
#include "missile.h"
#include "radar.h"
#include "simveh.h"
#include "fcc.h"
#include "BeamRider.h"
#define MANEUVER_DEBUG
#ifdef MANEUVER_DEBUG
#include "Graphics/include/drawbsp.h"
extern int g_nShowDebugLabels;
#endif
extern int g_nMissileFix;
extern fl... |
// Copyright <NAME> 2006
// Copyright <NAME> 2006, 2007
// Copyright <NAME> 2007
// Use, modification and distribution are subject to 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 <pch.hpp>
#ifdef _MSC_VER
# prag... |
#include <string.h>
#include "grader.h"
#include "u_algorithm.h"
#include "m_const.h"
ColorGrader::ColorGrader() {
reset();
generateTexture();
auto f1 = [](double x) {
return 1.075 - 1.0/(x/16.0 + 1);
};
auto f2 = [](double x) {
return 0.667 * (1.0 - u::square((x - 127.0) / 12... |
// ------------------------------------ //
#include "Downloader.h"
#include "components/DLListItem.h"
#include "resources/Collection.h"
#include "resources/Image.h"
#include "resources/NetGallery.h"
#include "resources/Tags.h"
#include "ChangeEvents.h"
#include "Database.h"
#include "DownloadManager.h"
#include "Dua... |
// <NAME>
#include <stdio.h>
#include <stdlib.h>
#include "pbrt.h"
#include "reflection.h"
#include "montecarlo.h"
#include "memory.h"
#include "api.h"
#include "paramset.h"
#include "shapes/disk.h"
static MemoryArena arena;
static RNG rng;
// extract the red channel from a Spectrum class
double spectrumRedValue(co... |
//
// begin license header
//
// This file is part of Pixy CMUcam5 or "Pixy" for short
//
// All Pixy source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Pixy source code, software and/or
// technologies under different lice... |
#include "Validation/MuonRPCDigis/interface/RPCDigiValid.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "SimDataFormats/CrossingFrame/interface/MixCollection.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#include "Geometry/RPCGeometry/interface/RPCGeometry.h"
#include "Geometry/CommonTopo... |
/*
* tinyTest.c
* BEAGLE
*
* Created by <NAME> on 20/03/2009.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <iostream>
//#define JC
#ifdef _WIN32
#include <vector>
#endif
#include "libhmsbeagle/beagle.h"
char *human = (c... |
#include "stdafx.h"
// true if the fxb tables are initialized
int CCapsImage::fb_init = 0;
// position of the first 0 bit in a byte value starting from bit position 0 to 7 where position#0 is bit#7
int8_t CCapsImage::f0b_table[8][256];
// position of the first 1 bit in a byte value starting from bit position 0 to 7 ... |
//Kabir ,<NAME> 12-21557-2
//Rashid,Rezwana 12-21461-2
//press 1 boat 1 move and press2 boat 1 stop
//press 3 boat 2 move and press 4 boat 2 stop
//press C cloud start and press E cloud stop
//press s sun start and press n sun stop
#include <stdio.h>
#include <iostream>
#include <GL/glut.h>
#include <mat... |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2021, <NAME> (SavaLione)
* 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 th... |
// Copyright © 2017 by <NAME> <<EMAIL>>
// Available under the MIT License. See LICENSE for details.
#include "base/time/zone.h"
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#inclu... |
//
// LULC.cpp
// read a LULC GIRAS file
//
// Copyright (c) 2001-2006 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include <string.h>
#include <stdlib.h>
#include "LULC.h"
#include "FilePath.h"
///////////////////////////////////
//
// helpers
//
int geti5(const char *buf)
{
char ... |
// ***********************************************************************
//
// Grappolo: A C++ library for graph clustering
// <NAME> (<EMAIL>)
// Pacific Northwest National Laboratory
//
// ***********************************************************************
//
// ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iomanip>
#include <sstream>
#include "utility_funcs.h"
#include "ZeroRKCFDPluginTesterIFP.h"
#include "zerork/mechanism.h"
#include "zerork_cfd_plugin.h"
#ifdef USE_MPI
#include "mpi.h"
#endif
template <typename T>
static std::vector<T> linspace(... |
/**
* This file is part of the CernVM File System.
*/
#define __STDC_FORMAT_MACROS
#include "cvmfs_config.h"
#include "sqlitemem.h"
#include <cassert>
#include <cstddef>
#include <cstring>
#include <new>
#include "smalloc.h"
#include "util_concurrency.h"
using namespace std; // NOLINT
/**
* Walks through the... |
#include "linear.hpp"
/*
Summary:
Takes a sample in Matrix form and converts it into a nMoment x 1 moment vector.
Input:
sample - matrix of cell abundances
nMoments - number of moments (i.e 9 moments for 3 proteins, means, var, covars)
Output:
moment vector - nMoments x 1 s... |
/*
Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
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; version 2 of
the License.
This program is distributed in... |
//=============================================================================
// This file is part of VTKEdge. See vtkedge.org for more information.
//
// Copyright (c) 2010 Kitware, Inc.
//
// VTKEdge may be used under the terms of the BSD License
// Please see the file Copyright.txt in the root directory of... |
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <algorithm>
#include <cassert>
#include <regex>
#include <unordered_map>
#include <vector>
#include "pgm_index.hpp"
namespace py = pybind11;
using namespace pybind11::literals;
template <class InputIt1, class InputIt2,... |
#include "BALinearAlgebra.hpp"
using namespace std;
//#define PIPSPROF
BALinearAlgebra::BALinearAlgebra(const BAData& d) : data(d),
regions(d.dims.numScenarios()) {
// strange stuff happens with copy constructors if we have
// vector<CoinBALPFactorization>
int nscen = d.dims.numScenarios();
f.resize(nscen);
f... |
//%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... |
/* _________________________________________________________________________
*
* TEVA-SPOT Toolkit: Tools for Designing Contaminant Warning Systems
* Copyright (c) 2008 Sandia Corporation.
* This software is distributed under the LGPL License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corpor... |
#include "raylib.h"
#include <string>
#include <sstream>
#include <iomanip>
#include <vector>
#include <deque>
#include "pystring.hpp"
/*
*
* Ported from JS to C++ by vortetty
* Original code can be found here: https://github.com/Silverfeelin/Starbound-Hatter/blob/master/scripts/drawables.js
*
* function getSig... |
/** \file SerialDevice.cc
* \author Robotnik Automation S.L.L.
* \version 2.0
* \date 2010
*
* \brief SerialDevice Class
* (C) 2009 Robotnik Automation, SLL
* Class to manage a serial connection
*/
#include <guardian_node/SerialDevice.h>
#include <time.h>
#include <string.h>
#include <fcntl.h>
#include <unis... |
#include "surfacerender.h"
#include <Tempest/Surface>
#include <Tempest/Sprite>
#include <Tempest/Font>
#include <Tempest/Log>
#include <Tempest/Window>
#include <functional>
using namespace Tempest;
SurfaceRender::SurfaceRender(ShaderProgramHolder &sh):shH(sh) {
cpuGm.reserve(8096);
udecl.add("brush_texture", ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#pragma once
#include <algorithm>
#include <array>
#include <cassert>
#include <climits>
#include <cstring>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <limits>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#inc... |
#include <string>
#include <stdexcept>
#include <list>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <boost/filesystem.hpp>
#include <elf.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <e... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of the Microsoft .NET Micro Framework Porting Kit Code Samples and is unsupported.
// Copyright... |
#include <iostream>
#include <sstream>
#include <vector>
#include <random>
#include <atomic>
#include <thread>
#include <mutex>
#include <chrono>
#include <condition_variable>
#include <cassert>
#include <queue>
#include <signal.h>
#include <boost/lockfree/queue.hpp>
#include <boost/program_options.hpp>
#include "lo... |
#include "nrav.h"
// Sets all the fields of information for the rushing play.
RushPlay::RushPlay(string rusher, int year, int week, vector<string> &row)
{
this->rusher = rusher;
this->year = year;
this->week = week;
posteam = row[POSTEAM];
posteam_type = row[POSTEAM_TYPE].compare("home") == 0 ? "vs... |
#include "Precomp.h"
#include "UMesh.h"
#include "UTexture.h"
void UPrimitive::Load(ObjectStream* stream)
{
UObject::Load(stream);
BoundingBox.min.x = stream->ReadFloat();
BoundingBox.min.y = stream->ReadFloat();
BoundingBox.min.z = stream->ReadFloat();
BoundingBox.max.x = stream->ReadFloat();
BoundingBox.max.... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include "sim.h"
#include "laplace.h"
#include "reg.h"
#include "rob.h"
#include "noe.h"
#include "bra.h"
#include "kai.h"
#include "flt.h"
#include "mmu.h"
cdbT cdb;
uint64_t clk;
registerFile greg,fre... |
/*!
@file Settings.cpp
@brief Save all the settings for the programme in the right place.
@author <NAME>
Copyright (c) 2008-2013, <NAME>, all rights reserved
This file is part of the PianoBooster application
PianoBooster is free software: you can redistribute it... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
#include "stdafx.h"
#include "hack.h"
#include "defines.h"
#include "unhack.h"
#define STRUCTURES_ONLY 1
#include "raytracer.br"
#include "raytracer.h"
t_voxel* scene_voxels;
t_trilist* scene_trilist;
t_triinfo* scene_triinfos;
t_camera* scene_camera;
t_light* scene_lights;
t_rayinfo* input_rayinfo;
t_raystate* inp... |
#include <cv.h>
#include <vector>
#include <opencv2/opencv.hpp>
#include "ipoint.h"
//! Populate IpPairVec with matched ipts
void getMatches(IpVec &ipts1, IpVec &ipts2, IpPairVec &matches)
{
float dist, d1, d2;
Ipoint *match;
matches.clear();
for(unsigned int i = 0; i < ipts1.size(); ... |
//
// AnimSplineIK.cpp
//
// Created by <NAME> on 1/7/19.
// Copyright (c) 2019 High Fidelity, Inc. All rights reserved.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AnimSplineIK.h"
#include "Animation... |
#include "vehicle.h"
Vehicle::Vehicle(){}
Vehicle::~Vehicle() {}
void Vehicle::setWaypoints(const vector<double> &map_waypoints_x, const vector<double> &map_waypoints_y, const vector<double> &map_waypoints_s,
const vector<double> &map_waypoints_dx, const vector<double> &map_waypoints_dy){
... |
#include "PMDisplay.h"
/////////---Display Module---//////////
#define PIN_DISP_SEG_A 11
#define PIN_DISP_SEG_B 12
#define PIN_DISP_SEG_C 2
#define PIN_DISP_SEG_D 3
#define PIN_DISP_SEG_E 4
#define PIN_DISP_SEG_F 5
#define PIN_DISP_SEG_G 6
#define PIN_DISP_SEG_DP 7
#define PIN_DISP_SPECIAL 8
#d... |
/*
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditions are met:
1. Redistributions of source code must retain the above c... |
// *****************************************************************************
/*!
\file src/Inciter/DistFCT.cpp
\copyright 2012-2015 <NAME>,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file for d... |
#include <string_view>
#include <type_traits>
#include <utility>
namespace typeindex::detail{
/// \brief constexpr string length
constexpr std::size_t strlen(char const* const str)noexcept{
auto iter = str;
while(*iter != '\0') ++iter;
return static_cast< std::size_t >(iter - str);
}
/// \brief A simple ... |
/* Copyright (c) <2003-2021> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... |
/***********************************************************************\
*
* File: RngStream.cpp for multiple streams of Random Numbers
* Language: C++ (ISO 1998)
* Copyright: <NAME>, University of Montreal
* Notice: This code can be used freely for personal, academic,
* ... |
#include <math.h>
#include <float.h>
#include "Array.h"
#include "Cell.h"
#include "Constants.h"
#include "Forces.h"
#include "tools.h"
#include "Neighbours.h"
// Cell-cell forces
// returns force F, position of the contact force r, and distance between cells d
void F_cc(const Cell& cell1, const Cell& cell2, DoubleCo... |
#include "glwidget.h"
#include <QMouseEvent>
#include <QWheelEvent>
#include <QTimer>
#include <QApplication>
#include <QKeyEvent>
GLWidget::GLWidget(QWidget *parent)
: QGLWidget(QGLFormat(), parent)
, frames(0)
{
alpha = 25;
beta = -25;
distance = 2.5;
lightAngle = 0;
QTimer *timer = ... |
// WARNING: this sample is under construction! Use it on your own risk.
#if defined _MSC_VER && _MSC_VER >= 1400
#pragma warning(disable : 4100)
#endif
#include <iostream>
#include <iomanip>
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#incl... |
#include <cslibs_kdl/external_forces.h>
#include <cslibs_kdl/kdl_conversion.h>
#include <Eigen/Jacobi>
using namespace cslibs_kdl;
ExternalForcesSerialChain::ExternalForcesSerialChain() :
use_fingers_(false),
set_model_(false),
init_sensor_mat_(false),
n_joints_(0),
end_eff_frame_("")//,
{
}
bool... |
/****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* 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 mus... |
//---------------------------------------------------------------------------//
// //
// PDFR Dictionary implementation file //
// //
... |
#include <algorithm>
#include "ns3/core-module.h"
#include "ns3/applications-module.h"
#include <cstring>
#include "ns3/energy-module.h"
#include <fstream>
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/lr-wpan-module.h"
#include "ns3/mobility-module.h"
#include "ns3/netanim-... |
#include "events.h"
#include "gt.hpp"
#include "proton/hash.hpp"
#include "proton/rtparam.hpp"
#include "proton/variant.hpp"
#include "server.h"
#include "utils.h"
#include <thread>
#include <limits.h>
bool events::out::variantlist(gameupdatepacket_t* packet) {
variantlist_t varlist{};
varlist.serialize_from_m... |
#include "Track.hpp"
#include <iostream>
#include <QDebug>
bool trackLog = false;
using namespace aurals;
Track::Track() : _pan(0), _drums(false), _status(0), _timeLoop(),
_cursor(0),_cursorBeat(0),_stringCursor(0), _displayIndex(0),
_lastSeen(0),_selectCursor(-1), _digitPress(-1)
{
_midiInfo[3]=24;... |
// author: <NAME>
#include <opencv/cv.hpp>
#include <iostream>
#include <exception>
#include <cmath>
#include <vector>
#include <algorithm>
#include <random>
#include <chrono>
using namespace cv;
using namespace std;
Mat drawHistogram(const Mat& img) {
Mat hist(256, 256, CV_8UC1, Scalar(255));
vector<int> count(25... |
#include "ObstacleSimulation.hpp"
/**
* \file ObstacleSimulation.cpp
* \ingroup lcc
*/
ObstacleSimulation::ObstacleSimulation(ObstacleSimulationData _trajectory, int _id)
:
trajectory(_trajectory)
{
obstacle_id = static_cast<uint8_t>(_id % 256);
//We do not accept empty trajectories
assert(trajectory.... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
//
// Created by markus on 23.04.21.
//
#include <random>
#include <boost/math/distributions/exponential.hpp>
#include "ParticleFilter.h"
#include "../Simulator/world/world.h"
#include "../Simulator/interactive_objects/DistanceSensor.h"
#include "helpers.h"
#include "DummyRobot.h"
ParticleFilter::ParticleFilter(Robot... |
/* junctions_annotator.cc -- class methods for `junctions annotate`
Copyright (c) 2015, The Griffith Lab
Author: <NAME> <<EMAIL>>
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... |
//===--- ConcreteContraction.cpp - Preprocessing concrete conformances ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2022 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/* $Id: tstRTDigest.cpp 69111 2017-10-17 14:26:02Z vboxsync $ */
/** @file
* IPRT Testcase - RTSha*, RTMd5, RTCrc*.
*/
/*
* Copyright (C) 2009-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you c... |
/*
* Copyright 2015 Facebook, 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 a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/>
*
* This program is free software; you ca... |
/*
SoftwareSerial.cpp (formerly NewSoftSerial.cpp) -
Multi-instance software serial library for Arduino/Wiring
-- Interrupt-driven receive and other improvements by ladyada
(http://ladyada.net)
-- Tuning, circular buffer, derivation from class Print/Stream,
multi-instance support, porting to 8MHz processors,
... |
/********************************************************************
* gBase.cpp
* Implementation of the class gBase
*
********************************************************************/
#pragma warning (disable:4786 4018 4267)
#include <iostream>
#include <fstream>
#include <assert.h>
#include <vector>
#include... |
#include <stdio.h>
#include <Windows.h>
#include <assert.h>
#include <vector>
#include <cstdarg>
// Herp, avoid some silly compiler warnings
#define stricmp _stricmp
// Some stuff about .lin.bf that I know so far:
// - Starts with linheader, bunch of dummy data
// - 200 byte file records begin, header has the file co... |
#include "uncertainty.hpp"
std::vector<MAT::Node*> get_common_nodes (std::vector<std::vector<MAT::Node*>> nodepaths) {
//to identify common nodes, perform pairwise set intersections repeatedly for all path node vectors
std::vector<MAT::Node*> common_nodes = nodepaths[0];
//needs to be sorted for inter... |
// $Id: StFtpcSlowSimField.cc,v 1.16 2007/05/15 14:35:18 jcs Exp $
// $Log: StFtpcSlowSimField.cc,v $
// Revision 1.16 2007/05/15 14:35:18 jcs
// update to be compatible with changes made to StFtpcTrackParams.cc
// use default microsecondsPerTimebin value from database if no RHIC clock info available
//
// Revision 1... |
//**************************************
//*New calibration code for increase the accuracy
//*by using multi images from the support camera.
//*Input: intrinsic matrix of target camera
//* intrinsic matrix of support camera
//* image list from target camera
//* image list from supprot camera
//*Output: "marker to... |
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Bologna
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
*
*/
// This class header
#include "DQM/DTMonitorClient/src/DTLocalTriggerEfficiencyTest.h"
// Framework headers
#include "FWCore/Framework/interface/... |
//
// appFaultManager.cpp
// HandArtwork
//
// Created by chris on 1/10/14.
//
//
#include "AppFaultManager.h"
void AppFaultManager::setup(){
timeHasFault[FAULT_NOTHING_WRONG] = 0;
timeHasFault[FAULT_NO_USER_PRESENT_BRIEF] = 0;
timeHasFault[FAULT_NO_USER_PRESENT_LONG] = 0;
timeHasFault[F... |
#include "percemon/topo.hpp"
#include "percemon/exception.hh"
#include <cassert>
#include <cmath>
#include <vector>
#include <itertools.hpp>
#include "percemon/utils.hpp"
using percemon::utils::overloaded;
namespace {
using namespace percemon::topo;
constexpr double TOP = std::numeric_limits<double>::infinity(... |
/*
Video Core
Copyright (c) 2014 <NAME>
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, merge, publish, di... |
/*=auto=========================================================================
Portions (c) Copyright 2010 Brigham and Women's Hospital (BWH)
All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
========================================... |
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <math.h>
#include <iostream>
using namespace std;
#define ELEMENTOS 44
typedef struct idh_sub{
string pais[ELEMENTOS];
int pos[ELEMENTOS], mepercentil, percmedian, mamediana, classes, fi[50], fac[50], fa;
float idh[ELEMENTO... |
#include <cstdio>
#include <stl/set>
#include <stl/string>
#include <xtl/bind.h>
#include <xtl/common_exceptions.h>
#include <xtl/ref.h>
#include <xtl/uninitialized_storage.h>
#include <common/command_line.h>
#include <common/file.h>
#include <common/log.h>
#include <common/strconv.h>
#include <common/... |
/* risk.cpp
* opens a risk board and places soldier items on each country.
* Not a fully functional game, but demonstrates how
* any item can be checked for a click,
* how to use the and was used in
* testing a button class which is now functional.
* Was written before items could load their own
* images, so ... |
#include "camera.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_access.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/quaternion.hpp"
#include "glm/gtx/quaternion.hpp"
#include <glm/gtc/type_ptr.hpp>
#include <algorithm>
#include <cmath>
float lerp(const float &a, const float &b, const float &f)
... |
#include <iosfwd>
#include <iostream>
#include <ostream>
#include <sstream>
#include "ocl_args.h"
#include <stdlib.h>
#include <tchar.h>
#include <thread>
#include <vector>
#include "CL/cl.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <Windows.h>
#inclu... |
#include <iostream>
#include <mutex>
#include <queue>
// #include <code_utils/ros_utils.h>
// #include <geometry_msgs/Vector3Stamped.h>
#include <opencv2/opencv.hpp>
#include <glog/logging.h>
#include <yaml-cpp/yaml.h>
#include "acc_lib/allan_acc.h"
#include "acc_lib/fitallan_acc.h"
#include "gyr_lib/allan_gyr.h"
#inc... |
//
// This is a modified version of jhead 2.97, which is a
// public domain Exif manipulation tool.
//
// The original files can be found at http://www.sentex.net/~mwandel/jhead/
//
// A good resource for exif tags is
// http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html
// Functions modified to out... |
#include <list>
#include <sstream>
#include <opus/opus.h>
#include <iostream>
#include <thread>
#include <boost/asio/ip/address.hpp>
#include <streamsome/pulseaudio.hh>
#include <streamsome/enet.hh>
#include <streamsome/utils.hh>
using namespace std;
using SAMPLE = opus_int16;
constexpr size_t SAMPLE_RATE = 48000;
... |
// Ultra fast anagram generator
#include <algorithm>
#include <bitset>
#include <cassert>
#include <codecvt>
#include <fstream>
#include <ios>
#include <iostream>
#include <limits>
#include <locale>
#include <numeric>
#include <optional>
#include <sstream>
#include <string>
#include <tuple>
#include <unordered_map>
#i... |
/**
The MIT License (MIT)
Copyright (c) 2014 The authors of ceps
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... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* 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;
*
* This program is distributed in the hope that it will be us... |
///////////////////////////////////////////////////////////////////////////////
//
// Pascal Parser Grammar for Spirit (http://spirit.sourceforge.net/)
//
// Adapted from,
// Pascal User Manual And Report (Second Edition-1978)
// <NAME> - <NAME>
//
// Written by: <NAME> <EMAIL>
// Adapted by <NAME> <EMAI... |
/** \file shock_cloud.cc
*
* File for setting up shock-cloud interaction problems.
* */
/// - 2015.01.15 JM: Added new include statements for new PION version.
#include "defines/functionality_flags.h"
#include "defines/testing_flags.h"
#include "tools/reporting.h"
#include "tools/mem_manage.h"
#ifdef TESTING
#incl... |
/* Copyright (c) <2009> <<NAME>>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercia... |
/*
Copyright (c) 2010 University of Illinois
All rights reserved.
Developed by: DeNovo group, Graph<EMAIL>
University of Illinois
http://denovo.cs.illinois.edu
http://graphics.cs.illinois.edu
Permission is hereby gr... |
/*****************************************Problem Four*******************************************/
char MostFrequentCharacter(ifstream & inputStream, int & numOccurrences);
void AskUserForInputFile(string prompt, ifstream & infile);
void MapTheCharacters(ifstream & inputStream, Map<int> & characterFrequency);
char Find... |
#include "ReflectionDataGenerator.h"
#include <unordered_map>
#include <string_view>
#include <map>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <experimental/filesystem>
#include <clang/Basic/OperatorKinds.h>
#include <clang/Basic/SourceManager.h>
#include <iostream>
#pragma warning(push, 0)
#pragma wa... |
/***********************************************************************
Copyright (c) 2008, 2009, <NAME>, www.memo.tv
*** The Mega Super Awesome Visuals Company ***
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.