text stringlengths 5.71k 33.7k |
|---|
//!
//! This piece of code is obsolete and completely unused. It is kept as an
//! example to show how to access certain geometry information.
//!
#include <cassert>
#include <cmath>
#include <memory>
#include <vector>
#include <fstream>
#include <iostream>
#include "TFile.h"
#include "TTree.h"
#include "FWCore/Fram... |
/// @file FringeRotationTask.cc
///
/// @copyright (c) 2010 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// <EMAIL>
///
/// This file is part of the ASKAP software distribution.
///
/// The ASKA... |
/*
* Copyright Information Systems Group, Saarland University
*
* 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 b... |
// -*- C++ -*-
//
// Package: PhotonIDSimpleAnalyzer
// Class: PhotonIDSimpleAnalyzer
//
/**\class PhotonIDSimpleAnalyzer PhotonIDSimpleAnalyzer.cc RecoEgamma/PhotonIdentification/test/PhotonIDSimpleAnalyzer.cc
Description: Generate various histograms for cuts and important
photon ID parameters... |
/*
* MIT License
*
* Copyright (c) 2021 <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, m... |
//
// Copyright (C) 2006 Institut fuer Telematik, Universitaet Karlsruhe (TH)
//
// 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 la... |
//(c) 2016 by Authors
//This file is a part of ABruijn program.
//Released under the BSD license (see LICENSE file)
#include <limits>
#include <algorithm>
#include <iomanip>
#include <stack>
#include "../common/config.h"
#include "../common/logger.h"
#include "../common/parallel.h"
#include "extender.h"
Extender::E... |
#define _CRT_SECURE_NO_WARNINGS (1)
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <vector>
#include <array>
#include <unordered_map>
#pragma pack(push)
#pragma pack(1)
struct DDS_PIXELFORMAT
{
uint32_t size;
uint32_t flags;
uint32_t fourCC;
uint32_t rgbBitCount;
uint32_t rBit... |
/* PROJECT: Medo
* AUTHORS: <NAME>, Melbourne Australia
* COPYRIGHT: Zen Yes Pty Ltd, 2019-2021
* DESCRIPTION: Effect / Text
*/
#include <cstdio>
#include <InterfaceKit.h>
#include <interface/ChannelSlider.h>
#include <translation/TranslationUtils.h>
#include <support/StringList.h>
#include "Yarra/Render/Font... |
#include <iostream>
#include <cmath>
using namespace std;
int main2() {
for (int a = 1; a <= 200; a++) {
for (int b = 2; b <= 200; b++) {
if (b >= a) break;
int a3 = a*a*a, b3 = b*b*b;
int val = a3 - b3;
for (int c = b + 1; c <= 200; c++) {
in... |
/*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include "font.h"
#include "../macros.h"
#include "../simdebug.h"
#include "../sys/simsys.h"
#include "../simtypes.h"
#include "../utils/simstring.h"
#ifdef USE_FREETYPE
#include "../dataobj/environment.h"
#endif
#... |
// File: StartingAngle.cpp
// Purpose: calculate initial half angle fluxes needed for
// approximation of the angular redistribution term of the
// neutron transport equation in RZ geometry
// Date: October 28, 2019
#include "StartingAngle.h"
using namespace std;
//=================================================... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corpor... |
#include <armadillo>
#include <iostream>
#include <cmath>
#include "LowPassFilter.hpp"
#include "LowPassFilter.cpp"
#include <ros/ros.h>
#include "std_msgs/String.h"
#include <sigproc_lib/sigproc_lib.h>
#include "sigproc_lib/sigproc.h"
using namespace arma;
using namespace as64_;
class GDMP
{
public:
int BFs, NSam... |
#include "ObjLoader.h"
#include<iostream>
#include<fstream>
#include<sstream>
#include<istream>
#include<streambuf>
#include<iomanip>
#include<algorithm> // string replace()
ObjLoader::ObjLoader()
{
}
bool ObjLoader::parseObjFile(string fileName)
{
bool parseCompleted = true;
m_objFileName = fileNa... |
#include "mode_arena.h"
#include "arena_ai_controller.h"
#include "bdg_car.h"
#include "bdg_math.h"
#include "bdg_random.h"
#include "carswithguns.h"
void ArenaGameMode::init(olc::Sprite* car_00_Sprite,
olc::Sprite* car_01_Sprite,
olc::Sprite* car_02_Sprite,
olc::Sprite* car_03_Sprite,
olc::Sprite* c... |
/*
These are the general control functions
setDial - go to a given dial position (0 to 99)
resetDial - spin the dial twice to move reset discs A, B, and C. Stop at 0.
findFlag - tell dial to return to where the flag interruts the photogate. Depending on how the robot is attached to dial, this may be true zero ... |
#include <math.h> /* Needed for the ceil() prototype */
#include "mex.h"
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <vector>
#include "fibheap.h"
using namespace std;
#define PI 3.1415926
class HeapNode : public FibHeapNode {
double N;
long int In... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
/*<std-header orig-src='shore'>
$Id: file_scan.cpp,v 3.0 2000/09/18 21:05:19 natassa Exp $
SHORE -- Scalable Heterogeneous Object REpository
Copyright (c) 1994-99 Computer Sciences Department, University of
Wisconsin -- Madison
All Rights Reserved.
Permission to use, copy, modify and distribute th... |
/*******************************************************
* *
* volInt.c *
* *
* This code computes volume integrals needed for *
* determining mass properties of p... |
#pragma once
#include "spine/src/resmgr.hpp"
#include "spine/src/optional.hpp"
#include "broad_collision/getbv.hpp"
#include "narrow.hpp"
#include <vector>
namespace cereal {
template <class T>
class construct;
class access;
}
namespace beat {
using CMask = uint32_t;
using Time_t = uint64_t;
using Int_OP = spi::... |
#include "Peephole.h"
#include "../InstructionWalker.h"
#include "../Locals.h"
#include "../Method.h"
#include "../Profiler.h"
#include "../Values.h"
#include "../intermediate/Helper.h"
#include "../intermediate/IntermediateInstruction.h"
#include "Combiner.h"
#include "log.h"
using namespace vc4c;
using namespace v... |
// This file contains the routines
#include "functions.h"
// overload out
ostream &operator<<(ostream &os, VECTOR3D vec) {
os << vec.x << setw(15) << vec.y << setw(15) << vec.z;
return os;
}
// initialize velocities of particles to start simulation
void initialize_particle_velocities(vector<PARTICLE> &ion, ... |
// ===============================================================================================
#include <limits.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <sys/time.h>
#include <string.h>
#include <list>
#include <map>
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <pth... |
/*
* Copyright 2019 Xilinx 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 ... |
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... |
/*! @brief This file have the implementation for Session class.
@file session.cc
@author <NAME> <<EMAIL>>
@date 6/29/2019
@copyright
@attention <h1><center><strong>COPYRIGHT © 2019 </strong>
[<strong>denisacostaq</strong>][denisacostaq-URL].
All rights reserved.</center></h1>
@atte... |
#include "base/glfw_base.h"
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "common/shader.h"
// settings
const unsigned int SCR_WIDTH = ... |
//===- SubtargetEmitter.cpp - Generate subtarget enumerations -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "RecoEgamma/PhotonIdentification/plugins/PhotonMVAEstimatorRun2Spring16NonTrig.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "TMVA/MethodBDT.h"
#include <vector>
PhotonMVAEstimatorRun2Spring16NonTrig::PhotonMVAEstimatorRun2Spring16NonTrig(const edm::ParameterSet& conf):
AnyMVAEstimatorRu... |
#include "SphereSphereConstraint.h"
#include "FrictionUtilities.h"
#ifndef NDEBUG
#include "scisim/Math/MathUtilities.h"
#endif
bool SphereSphereConstraint::isActive( const Vector3s& x0, const Vector3s& x1, const scalar& r0, const scalar& r1 )
{
return ( x0 - x1 ).squaredNorm() <= ( r0 + r1 ) * ( r0 + r1 );
}
Sph... |
/*
* Program for reading, filtering and writing data in reverse order
* Author: <NAME>
* Date: Oct. 12, 2018
* Version: 1.0
* Purpose:
* 1. Use C++ file I/O to read and write files while using C++ standard I/O (cin/cout) for user interaction,
* using appropriate exception handling.
* ... |
#include <queue>
#include "../civetweb/include/civetweb.h"
#include "../include/libRR.h"
#include "../cdl/mustache.hpp"
#include "../cdl/CDL.hpp"
#include "../cdl/CDL_FileWriting.hpp"
#include "./CommonSourceExport.h"
#ifdef _WIN32
#include <windows.h>
#include <shellapi.h>
#endif
#include <unistd.h>
using namespace ka... |
/**
* @file video_rxtx/ultragrid_rtp.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2013-2021 CESNET z.s.p.o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Redistr... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2021, <NAME> <<EMAIL>>
// Copyri... |
/*
Copyright (c) 2015 <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, distribute, sublicen... |
/* Created by exoticorn ( http://talk.maemo.org/showthread.php?t=37356 )
* edited and commented by <NAME> [endboss]
*
* libraries needed: libx11-dev, libgles2-dev
*
* compile with: g++ -lX11 -lEGL -lGLESv2 egl-example.cpp
*/
#include <iostream>
using namespace std;
#include <cstdlib>
#include <cstring>... |
#include "def.h"
#include <cctype>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
using namespace std;
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/convenience.hpp>
namespac... |
//GRAVITY
#include <time.h> /* time */
#include <string> /*strings*/
#include <stdio.h> /* printf, scanf, puts, NULL */
#include <stdlib.h> /* srand, rand */
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include "button.h"
#include "Portada.hpp"
#include "TextScreen.hpp"
#include "MenuS... |
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include "terrain.cpp"
#include "top.cpp"
#include "target.cpp"
#include "imageloader.h"
#include "vec3f.h"
using namespace std;
#define PI... |
#include "config.h"
#include "..\json.h"
#include <filesystem>
nlohmann::json json;
void assign_item( item &item ) {
if( json[ item.name.c_str() ].empty( ) )
return;
if( item.type == "float" )
*reinterpret_cast< float* >( item.value ) = json[ item.name.c_str( ) ].get< float >( );
if( item.type == "int" )
*r... |
#include "software_renderer.h"
#include "stb_image_write.h"
Renderer::Renderer(int width, int height, ers::IAllocator* alloc)
:
m_width(width),
m_height(height),
m_colorBuffer(nullptr),
m_zBuffer(nullptr),
m_state(State::DEFAULT),
m_alloc(alloc),
m_shader(nullptr)
{
ER... |
//#include <algorithm>
//#include <iostream>
#include <iterator> // required for PathRemoveFileSpec()
#include "Warnings.h"
#include "FBX.h"
#include "Debug.h"
#include "Console.h"
#include "CConvertions.h"
#include "Path.h"
#define FBXSDK_SHARED
#if _WIN32 || _WIN64
#if _WIN64
#define ENVIRONMENT64
#else
#d... |
#include "Grid.hpp"
#include "MeshTriangle.hpp"
#include "FlatMeshTriangle.hpp"
#include "SmoothMeshTriangle.hpp"
#include "Triangle.hpp"
typedef enum {
flat,
smooth
} TriangleType;
Grid::Grid()
: Compound()
, bbox()
, nx(1)
, ny(1)
, nz(1)
, mesh_ptr(new Mesh)
, reverse_normal(false)
{}
Gr... |
// DaSiamRPN tracker.
// Original paper: https://arxiv.org/abs/1808.06048
// Link to original repo: https://github.com/foolwood/DaSiamRPN
// Links to onnx models:
// - network: https://www.dropbox.com/s/rr1lk9355vzolqv/dasiamrpn_model.onnx?dl=0
// - kernel_r1: https://www.dropbox.com/s/999cqx5zrfi7w4p/dasiamrpn_k... |
#include <iostream>
#include <fstream>
#include <iterator>
#include <chrono>
#include <iterator>
#include "palisade.h"
#include "cryptocontexthelper.h"
#include "cryptocontextgen.h"
#include "encoding/byteplaintextencoding.h"
#include "encoding/signedintplaintextencoding.h"
#include "utils/debug.h"
#include "utils/se... |
#include "iridium_manager.h"
unsigned long millis_last_callback {0};
unsigned long millis_iridium_callback_reset {0};
constexpr unsigned long callback_printout_freq_ms {2000UL};
void IridiumManager::clear_buffers(void){
iridium_rx_buffer.clear();
iridium_tx_buffer.clear();
rx_message_available = false;
}
... |
#include <SecondModelDynamicLexicalMatrix.hpp>
#include <algorithm>
#include <cassert>
inline long double SecondModelDynamicLexicalMatrix::calculate_xs(unsigned mu, long double chi) const {
long double x = std::pow(mu, phi) * chi;
if (std::abs(x) < std::numeric_limits<long double>::epsilon()) {
return ... |
//
// Main demo program for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2020 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
/... |
/*********************************************************************
* Copyright (c) 2022, YujinRobot Corp.
*
* <NAME>, <EMAIL>
*
* Software License Agreement (BSD License)
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
/*
* ur_driver.cpp
*
* Copyright 2015 <NAME>
*
* 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 la... |
/*
* MyPathPlanning.cpp
*
* Created on: 22/giu/2016
* Author: gabrielefcg
*/
#include "MyPathPlanning.h"
MyPathPlanning::MyPathPlanning(int unit, Mappa* mappa, ArRobot* robot) {
// TODO Auto-generated constructor stub
this->unit=unit;
this->mappa=mappa;
this->robot=robot;
this->num_cell = 1;
this->du... |
#include "paths_rollout.h"
using namespace srrg_core;
using namespace srrg_scan_matcher;
using namespace Eigen;
PathsRollout::PathsRollout(cv::Mat* costMap, MoveBaseClient *ac, FakeProjector *projector, Vector2f laserOffset, int maxCentroidsNumber, int regionSize, float nearCentroidsThreshold, float farCentroidsTh... |
/*
reverb.c
Midi Wavetable Processing library
Copyright (C) <NAME> 2001-2011
Copyright (C) <NAME> 2013-2014
This file is part of WildMIDI.
WildMIDI is free software: you can redistribute and/or modify the player
under the terms of the GNU General Public License and you can redistribute
and/or modify the li... |
#include "Mask.h"
#include "Grid.h"
#include "fft_vec_to_mat.h"
#include "audio_loader.h"
#include "FFT.h"
#include "pWavData.h"
#include "dlib/image_transforms.h"
#include "dlib/threads.h"
#include "dlib/image_io.h"
using namespace std;
using dlib::rectangle;
using dlib::thread_function;
void Mask::foreach_worke... |
/*
* $Id: foe.cc,v 1.6 2003/08/15 07:06:51 kenta Exp $
*
* Copyright 2003 <NAME>. All rights reserved.
*/
/**
* Handle batteries/bullets.
*
* @version $Revision: 1.6 $
*/
#include "barragemanager.h"
#include "foe.h"
extern "C" {
#include "SDL.h"
#include <stdlib.h>
#include <stdio.h>
#incl... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
/*
* Copyright 2019 Xilinx, 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) 2019, 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain s... |
//
// Copyright (c) 2019 <NAME>
// 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 conditions an... |
//
// Created by lllll on 9/16/2021.
//
#include "SorghumField.hpp"
#include "SorghumData.hpp"
#include "SorghumLayer.hpp"
#include "SorghumStateGenerator.hpp"
#include "TransformLayer.hpp"
#include <SorghumField.hpp>
using namespace SorghumFactory;
void RectangularSorghumFieldPattern::GenerateField(
std::vector<s... |
#include "octree.h"
void octree::build(tree_structure &tree,
my_dev::dev_mem<float4> &bodies_pos,
int n_bodies) {
int level = 0;
int validCount = 0;
int offset = 0;
/******** create memory buffers **********/
//Make sure that buffers that rely on the n_bodies count have ... |
//===-- PlatformFreeBSD.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
This file is part of the package TMR for adaptive mesh refinement.
Copyright (C) 2015 Georgia Tech Research Corporation.
Additional copyright (C) 2015 <NAME>.
All rights reserved.
TMR is licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance w... |
/* FreeCT_ICD is MBIR CT reconstruction Software */
/* Copyright (C) 2018 <NAME>, <NAME>, <NAME> */
/* 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 Licen... |
#include "third-party/CLI11.hpp"
#include "common/log/log.h"
#include "common/util/FileUtil.h"
#include "decompiler/Disasm/OpcodeInfo.h"
#include "decompiler/ObjectFile/ObjectFileDB.h"
#include "decompiler/level_extractor/extract_level.h"
#include "decompiler/config.h"
#include "goalc/compiler/Compiler.h"
#include "com... |
/****************************************************************************
** Copyright (c) 2017 <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... |
// $Id: featurize.cc 1174 2011-10-28 00:56:50Z mikewong899 $
// Copyright (c) 2004 <NAME>. All rights reserved.
/**
* \page featurize featurize
*
* Generates feature vectors at given Cartesian points in or near one or more proteins
*
* \htmlinclude featurize_concept.html
*
* \section featurize_input Input
*
... |
#include "Cell.h"
#include "config.h"
#include "program_constants.h"
#include <algorithm>
using namespace std;
#define LONGSIM true
#define GNUPLOT_PIPE false
#define DEBUGGING false
// Function implementations
void LoadAndInitPos(std::string file_path, std::vector<cellPtr> &a, double d)
{
// printf("... |
//! \file
// e_float_test.cpp
// Copyright <NAME> 2011.
// Copyright <NAME> 2011.
// 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)
// Test of using e_float and Boost.Check mac... |
#include "v8pp/convert.hpp"
#include "v8pp/class.hpp"
#include "test.hpp"
#include <cmath>
#include <list>
#include <vector>
#include <map>
template<typename T, typename U>
void test_conv(v8::Isolate* isolate, T value, U expected)
{
auto const obtained = v8pp::from_v8<U>(isolate, v8pp::to_v8(isolate, value));
chec... |
////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2019 <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... |
/***************************************************************
** DLSTORM Deadline's Code Storm Library
** /\
** ---- D/L \----
** \/
** License: BSD
** Copyright: 2013
** File: c_glmouse.cpp
** Class: C_Mouse
** C_MouseCursor
** Descript... |
#include "frame/manager.hpp"
#include "frame/scheduler.hpp"
#include "frame/aio/aioselector.hpp"
#include "frame/aio/aioobject.hpp"
//#include "foundation/aio/openssl/opensslsocket.hpp"
#include "frame/ipc/ipcservice.hpp"
#include "frame/ipc/ipcmessage.hpp"
//#include "system/thread.hpp"
#include "system/mutex.hpp"
... |
#include "stdafx.h"
#include "Server.h"
Server::Server(bool graphical) :
m_bGraphical(graphical),
m_FPS(30),
m_Latency(15),
m_FrameCounter(0),
m_FrameCounterFPS(0),
m_TimeOffset(0),
m_InfoText(),
m_LocalSequence(0),
m_RemoteSequence(0),
m_ClientConnectionManager(Settings::TIMEOUT_VAL),
m_ServerConnectionMan... |
// =============================================================================
// MIT License
//
// Copyright (c) 2017-2018 <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 wit... |
#include "State.h"
State::State() { initialTable(); initialize(); }
string State::Problem;
unordered_map<char, pair<int, int>> State::location;
MoveHistory State::MH;
vector<vector<char>> State::board;
//unordered_map<int, tuple<int,int,int, int,string>> State::H;
vector<MoveHistory> State::history;
bool St... |
/**********************************************************************
Audacity: A Digital Audio Editor
Dither.cpp
<NAME>
<NAME>
*******************************************************************//*!
\class Dither
\brief
This class implements various functions for dithering and is derived
from the d... |
/*
* Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual proper... |
/*
* Copyright (c) 2003-2010, <NAME>. All rights reserved.
* This file is part of KISS FFT - https://github.com/mborgerding/kissfft
*
* SPDX-License-Identifier: BSD-3-Clause
* See COPYING file for more information.
*/
#include "_kiss_fft_guts.h"
/* The guts header contains all the multiplication and additio... |
//===- ExternalASTMerger.cpp - Merging External AST Interface ---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* 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
* not... |
// Copyright (c) 2021 CINN Authors. All Rights Reserved.
//
// 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 appl... |
// Copyright 2017 The Bazel Authors. All rights reserved.
//
// 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 appl... |
#include <cstdio>
#include <cmath>
#include <sys/time.h>
#include <cfloat>
#include <vector>
#include <list>
#include <algorithm>
#include <TFile.h>
#include <TTree.h>
#include <TSystem.h>
#include <iostream>
//#define HI_TREE "hiEvtAnalyzer/HiTree"
#define HI_TREE "AliAnalysisTaskNTGJ/_tree_event"
namespace {
ty... |
#include <vector>
#include <iostream>
#include <ostream>
#include <stdint.h>
/** \class DetId
Parent class for all detector ids in CMS. The DetId is a 32-bit
unsigned integer. The four most significant bits ([31:28]) identify
the large-scale detector (e.g. Tracker or Ecal) while the next three
bits ([27:25]) ident... |
#include "session.h"
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <errno.h>
#include <random>
#include <chrono>
#include <string.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <netdb.h>
#include <poll.h>
#include <signal.h>
#include <iostream>
#include "woot... |
// Many thanks to <NAME> for his work in analyzing the playstation SPU.
// Most of the code below is based on his work.
// Also, thanks to Antires for his ADPCM decompression routine.
#include "pch.h"
#include "PSXSPU.h"
#include <utility>
#include "PS1Format.h"
using namespace std;
// ***********
// PSXSampColl
... |
#include "offset_hud_elements.h"
#include "../halo_data/table.h"
#include "../hooks/map_load.h"
#include "../hooks/tick.h"
#include "../messaging/messaging.h"
#include <vector>
#include <string.h>
#include <math.h>
struct OriginalHudValue {
HUDAnchor anchor;
AnchorOffset *address;
AnchorOffse... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include <cstdio>
#include <iostream>
#include <fstream>
#include <vector>
#include <array>
#include <algorithm>
#include <stack>
#include <stapl/utility/tuple.hpp>
#include <stapl/domains/indexed.hpp>
#include <stapl/domains/continuous.hpp>
#include <stapl/views/vector_view.hpp>
#include <stapl/containers/vector/ve... |
/**
* ScriptDev3 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
* Copyright (C) 2014-2017 MaNGOS <https://get... |
// Copyright (c) 2008, <NAME> (<EMAIL>)
//
// This file is part of CREST, which is distributed under the revised
// BSD license. A copy of this license can be found in the file LICENSE.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty ... |
#include "../../BenchmarkNode.h"
#include <stdint.h>
#include <iostream>
#include <cmath>
#define ITER_COUNT 2
class SW_Registration : public BenchmarkNode
{
int dataSize;
float* u1;
float* u2;
float* u3;
float* v1;
float* v2;
float* v3;
public:
SW_Registration... |
#include <matrix.h>
#include "mex.h"
#include <cmath>
#include <omp.h>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <iterator>
#include <unordered_map>
using namespace std;
inline int index(int i, int j, int numRows) // 2D 0-indexed to C
{
return j*numRows + i;
}
i... |
/*
* Copyright (c) 2012-2014, <NAME>
* 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... |
#include "XrdChecksum.hh"
#include <sstream>
#include <algorithm>
#include <arpa/inet.h>
#include <zlib.h>
#include <openssl/evp.h>
#include "XrdOss/XrdOss.hh"
#include "XrdSfs/XrdSfsInterface.hh"
#include "XrdSys/XrdSysXAttr.hh"
extern XrdSysXAttr *XrdSysXAttrActive;
typedef std::pair<std::string, std::string> C... |
/*
* Copyright 2008 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkMathPriv.h"
#include "SkCordic.h"
#include "SkFloatBits.h"
#include "SkFloatingPoint.h"
#include "Sk64.h"
#include "SkScalar.h"
#ifdef SK_SCAL... |
/******************************************************************************
* Copyright (c) 2013-2015 thundernet development group, inc.
* http://thundernet.com
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Softwa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.