text stringlengths 3.08k 22k |
|---|
#include "Geometry/HcalTowerAlgo/interface/HcalTrigTowerGeometry.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include <iostream>
#include <cassert>
HcalTrigTowerGeometry::HcalTrigTowerGeometry( const HcalTopology* topology )
: th... |
/*!
* \file Test.cpp
* \brief CSV文件管理类 测试代码
* \details CSV文件管理类 测试代码,对CSVManage类的方法进行测试
* \author 陈小伟
* \version 1.0
* \date 2012-7-10
* \bug 报告BUG,请联系 <EMAIL>
* \copyright free
*/
#include <iostream>
#include <fstream>
#include "CSVManage.h"
using namespace std;
void newFileTest(CX... |
/** This file is engine code of CPSim-ROS2
* @file main.cpp
* @brief Codes for Engine-Main
* @page Simulator
* @author <NAME>
* @date 2020-08-18
* @section Simulator Logic
* Abstraction for Main Code Logic is as below algorithm,
* 1. Execute Initializer
* 2. Check all the informations for running simulator
... |
// Copyright (c) 2011-2013, Pacific Biosciences of California, Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted (subject to the limitations in the
// disclaimer below) provided that the following conditions are met:
//
// * Redistri... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
/**
* @file Shtc3_Sensor.cpp
* @author Gustice
* @brief SHTC3-Sensor (Sensirion) implementation
* @details This Sensor Read humidity and temperature and provides data via I2C-interface.
* @version 0.1
* @date 2021-01-01
*
* @copyright Copyright (c) 2021
*/
#include <sys/unistd.h> // for usleepCommand
#includ... |
/*
Author: <NAME>
Created Date: February 3 2016
Description: Class for controlling a 4X5 led matrix using charlieplexing.
*/
#include <avr/io.h>
#include <util/delay.h>
#define LINEA PA0
#define LINEB PA1
#define LINEC PA2
#define LINED PA3
#define LINEE PA4
#define LINEF PA5
#define LINEG PA6
#d... |
/*
This file is part of ethminer.
ethminer 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 3 of the License, or
(at your option) any later version.
ethminer is distributed in the hope that it will... |
/**
* Copyright (c) 2018 along All rights reserved.
**/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <libnet.h>
#include <unistd.h>
#include <errno.h>
#include <boost/... |
// Copyright 2018 ADLINK Technology, Inc.
// Developer: <NAME> (<EMAIL>)
// Developer: <NAME> (<EMAIL>)
//
// 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/lic... |
#include "terraintiler/Clipmap.h"
#include <SM_Vector.h>
#include <heightfield/HeightField.h>
#ifdef HEIGHT_MAP_PCG
#include <terraingraph/device/CellularNoise.h>
#else
#include <unirender/Device.h>
#include <unirender/VertexArray.h>
#include <unirender/IndexBuffer.h>
#include <unirender/VertexBuffer.h>
#include <clip... |
#include "TitleScreen.h"
#include "AboutWindow.h"
#include "WorldSelector.h"
#include "ServerSelector.h"
#include "PlasmaRenderer.h"
#include "gui/GameUI.h"
#include "gui/MainWindow.h"
#include "gui/PreferencesWindow.h"
#include "render/WorldRenderer.h"
#include "util/Easing.h"
#include "gfx/gl/buffer/Buffer.h"
#incl... |
/**
* Copyright (c) <NAME>
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
#include "object_position_extractor.h"
#include <array>
#include <ros/ros.h>
#include "opengl_context.h"
#include "gl/gl.h"
using namespace cgs;
struct Vertex
{
float x, y, z;
constexpr Vertex(float x, float y, float z) :
x(x), y(y), z(z)
{}
};
struct ObjectPositionExtractor::Impl
{
Open... |
#include "ThroughputCL4.h"
//#include "cstdlib"
//#include "time.h"
#include "Basic802154Control_m.h"
Define_Module(ThroughputCL4);
void ThroughputCL4::startup()
{
taxa = par("taxa");
isSink = par("isSink");
CCAthreshold = par("CCAthreshold");
CCAthreshold2 = par("CCAthreshold2");
potencia1 = par("potencia1... |
//
// Created by Link on 2022/1/24.
//
#include "HypersphereManifold.h"
#include <cmath>
// g = [[r, 0, 0], [0, r * powf(cos(x), 2), 0], [0, 0, r * cos(x) ** 2 * cos(y) ** 2]]
void HypersphereManifold::Metric(glm::mat3x3& g, float x, float y, float z) {
g[0][0] = r * r;
g[1][1] = r * r * powf(cos(x), 2);
... |
/*---------------------------------------------------------------------------*\
Copyright (C) 2011-2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... |
#include<bits/stdc++.h>
#include <cstdlib>
#include<fstream>
#include <ctime>
using namespace std;
static int treap_comparisons = 0; //total no. key comparisions done
static int treap_rotations = 0 ; //total no. of rotations done
static int node_id = 0;
class TreapNode{
private:
int key... |
#include "CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h"
#include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h"
#include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
class L1GctJetFinderParamsOnlineProd : public L1ConfigOnlineProdBase<L1GctJetFinderParamsRcd, L1GctJetFinderParams> ... |
#include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/mat/fun/expect_matrix_eq.hpp>
#include <test/unit/math/rev/mat/fun/util.hpp>
#include <cstdlib>
#include <ctime>
#include <algorithm>
#include <vector>
TEST(MathMatrix, matrix_exp_1x1) {
stan::math::matrix_v m1(1, 1), m2(1, 1), m1... |
// BEGIN CUT HERE
#pragma warning(disable:4018) // signed/unsigned mistatch
#pragma warning(disable:4244) // w64 to int cast
#pragma warning(disable:4267) // big to small -- possible loss of data
#pragma warning(disable:4786) // long identifiers
#pragma warning(disable:4800) // forcing int to bool
#pragma ... |
#include "audio_stream_ram.h"
#include "core/os/file_access.h"
#define WAVE_UINT32_RIFF 1179011410
#define WAVE_UINT32_WAVE 1163280727
#define WAVE_UINT32_FMT 544501094
#define WAVE_UINT32_FACT 1952670054
#define WAVE_UINT32_DATA 1635017060
#define WAVE_FORMAT_PCM 0x1
#define WAVE_FORMAT_IEEE 0x3
#define WAVE_FORMAT_... |
/*
* Copyright (c) CERN 2020
*
* 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 in w... |
//=---------------------------------------------------------------------=
//
// $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 AAFS... |
//---------------------------------------------------------------------------\
//
// (C) copyright Fraunhofer - IIS (2000)
// All Rights Reserved
//
// filename: CVbriHeader.cpp
// MPEG Layer-3 Audio Decoder
// author : <NAME> <EMAIL>
// date : 2000-02-11
// ... |
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") //prevents the console from opening
#include<SFML\Graphics.hpp>
#include <SFML\Audio.hpp>
#define PI 3.14159265359
typedef uint8_t byte;
byte grid[20][12];
byte colliders[20][12];
struct Vec2
{
byte y, x;
Vec2(){}
Vec2(byte dy, by... |
/******************************************************************************
* @domain Data Structure
* @title Indexed Priority Queue
* @link https://algs4.cs.princeton.edu/24pq/IndexMinPQ.java.html
* @link https://github.com/Mr-Awakened/algorithmcpp/blob/master/algorithm/indexed_priorit... |
#include "MSufSort.h"
#include "stdio.h"
#include "time.h"
#include "string.h"
//=============================================================================
// MSufSort.
//=============================================================================
SYMBOL_TYPE MSufSort::m_reverseAltSortOrder[256];
MSufSort::MSuf... |
#include "renderframeimpl_win32.h"
// project headers
#include "basegl/hdc_wrap.h"
// other projects
#include "error/ft_assert.h"
// Class name to use
const char g_window_class_name[] = "ft_rf_window_class_name";
// Constructor
ft::rf::render_frame_impl::render_frame_impl(const t_render_frame_params & p_params) :
... |
#include "temp0.h"
// Global variables.
hdc1080 sensor; // Initialise an hdc1080 sensor called "sensor". Refer "hdc1080.h".
ssd1306 display; // Initialise an oled display with ssd1306 driver called "display". Refer "ssd1306.h"
// Configure the timer interrupt (for LED pulsing).
void led_pulse_init(void)
{
TCCR2B... |
// SAR stereo processor which generates backplanes needed for SAR stereo processing
#include <string.h>
#include <iostream>
#include <stdlib.h>
#include "Config.h"
#include "Io.h"
#include "Units.h"
#include "Error.h"
#include "Sab.h"
#include "Config.h"
#include "L1I.h"
#include "L1B.h"
#include "config_keywords.h"
#i... |
#include <cstddef>
#include <glm/ext.hpp>
#include <glm/glm.hpp>
#include <optional>
#include "constants.hpp"
#include "importer.hpp"
#include "logger.hpp"
#include "model.hpp"
using namespace engine;
using namespace std;
GltfImporter::GltfImporter(const std::filesystem::path &path,
Render... |
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#define _CRT_SECURE_NO_WARNINGS
#include <strf/to_cfile.hpp>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <locale>
#include <fstream>
#include <... |
/*
* TickHandler.cpp
*
* Class to which TickObserver objects can register to be triggered
* on a certain interval.
* TickObserver with the same interval are grouped to the same timer
* and triggered in sequence per timer interrupt.
*
* NOTE: The initialize() method must be called before a observer is registered... |
// Copyright(c) 2019, 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 notice,
// this list of conditions and the ... |
/** @example format.cc
*
* An example of using the string formatting system, including various
* differences from C such as user defined type and range formatting.
*/
#include <unordered_map>
#include <vector>
#include <tuple>
#include <clocale>
#include <ostd/algorithm.hh>
#include <ostd/range.hh>
#include <ostd... |
/****************************************************************************
**
** The MIT License (MIT)
**
** Copyright (c) 2016 The University of Sheffield (www.sheffield.ac.uk)
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (... |
#include <algorithm> // std::find, std::min
#include "raptor.hpp"
// Check if stop1 comes before/after stop2 in the route
bool Raptor::check_stops_order(const route_id_t& route_id, const node_id_t& stop1, const node_id_t& stop2) {
#ifdef PROFILE
Profiler prof {__func__};
#endif
const auto& route = m... |
//====== Copyright (c) 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose: Implementation of China Government Censorship enforced on all user-generated strings
//
//=============================================================================
//
// Pre-compiled header (cbase.h in the game branch;... |
/*
DropView.cpp
2000 <NAME>
*/
#include "DropView.h"
#include "MainWindow.h"
DropView::DropView(BRect frame, const char *name, BBitmap *icon, uint32 what, int32 type, int32 _id)
: BView(frame, name, B_FOLLOW_LEFT|B_FOLLOW_TOP, B_WILL_DRAW),
highlightRect(Bounds()), mouseDownPt(0.0f,0.0f)
{
// construct and init t... |
/*
Copyright [2017-2019] [IBM Corporation]
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 in wri... |
/*! \license
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dist... |
#include "Matcher.h"
#include "../Common.h"
#include "../PerformanceMonitor.h"
#include <opencv2/features2d.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <opencv2/xfeatures2d/nonfree.hpp>
#include <opencv2/cudafeatures2d.hpp>
#include <opencv2/cudaimgproc.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgu... |
/*
* Copyright (c) 2020 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <iostream>
#include <cmath>
#include "delfem2/noise.h"
#include "delfem2/primitive.h"
#if defined(_MSC_VER)
#include <windows.h>
#endif
#incl... |
//===---------------------- ProcessImplicitDefs.cpp -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright (c) 2020 Open Mobile Platform LLC.
*
* You may use this file under the terms of the BSD license as follows:
*
* "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 ... |
//Copyright (C) 2010-2012 by <NAME>
//This file is licensed under the MIT License.
#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <glload/gl_3_3.h>
#include <GL/freeglut.h>
#include "../framework/framework.h"
#include "RubiksCub... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (C) 2013-2018 The Monacoin Core developers
// Copyright (c) 2017-2021 The c0ban Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*
* FIG : Facility for Interactive Generation of figures
* Copyright (c) 1985-1988 by <NAME>
* Parts Copyright (c) 1989-2002 by <NAME>
* Parts Copyright (c) 1991 by <NAME>
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalt... |
#include "metaprop.hpp"
#define MPD_IMPL
#include "metaprop.mpd.hpp"
mpd_StringView OptPos::getTypeString() const
{
return mpd_StringView::create( mpd_Value2Name( type ) );
}
void OptPos::setTypeFromString( mpd_StringView name )
{
type = mpd_Name2Value( name, Unknown );
}
int main()
{
puts( "--- basic info dum... |
/**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any p... |
/*
* DEBUG: section 28 Access Control
* AUTHOR: <NAME>
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Internet community; see the CONTRIBUTORS file for full
* ... |
/*
Copyright (c) 2019, Xilinx
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... |
//
// yl_context.cpp
//
// Created by <NAME> on 03/03/2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include "yl_context.h"
#include <assert.h>
#include "yl_context.h"
#include "yl_cothread.h"
#include "yl_array.h"
#include "yl_table.h"
#include "yl_object.h"
#include "yl_upval.h"
#include "yl_functi... |
#include "hand.h"
#include "PARAM_def.h"
#include "debug.h"
static float stashed_gyro[ 3 ];
static MX_HAND_Instance_t instance;
/**
* @brief hasMainPower 检测某个轴(如x)是否具有绝大部分的分量
* @param x 单轴分量
* @param scalar 整体值
* @return 是否占有绝大部分值
* @note 按照方向半径45°判断是否为绝大部分分量
*/
inline static bool has... |
// From https://docs.microsoft.com/en-us/windows/win32/api/wlanapi/nf-wlanapi-wlanqueryinterface
#include <windows.h>
#include <wlanapi.h>
#include <Windot11.h> // for DOT11_SSID struct
#include <objbase.h>
#include <wtypes.h>
//#include <wchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <utility>
... |
#include "Lexer.h"
#include <iostream>
#include <fstream>
#include <regex>
#include <string>
#include "../lib/Token.h"
Lexer::Lexer(const std::string& program, bool inVerbose = false): source(program, std::fstream::in), lineNumber(1), done(false), verbose_(inVerbose),
reservedWords({
{".", TokenType::TPeriod},... |
/*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute,... |
#include "number_cheater.h"
#include <QElapsedTimer>
Number_Cheater::Number_Cheater(QObject *parent) : QObject(parent)
{
//find wanted number using numbers
use_fractions=false;
val_is_correct=false;
counter=0;
equations.clear();
time_taken_in_mili_seconds=-1;
}
QString Number_Chea... |
#include <torch/torch.h>
#include <algorithm>
#include <random>
#include <iostream>
#include <cstddef>
#include <iostream>
#include <string>
#include <vector>
#include <kaldi-io.h>
#include <thxx/net.hpp>
#include <thxx/chrono.hpp>
#include <thxx/optim.hpp>
#include <thxx/dataset.hpp>
#include <typed_argparser.hpp>
... |
// Copyright 2018-2020 <NAME> (Falcons)
// SPDX-License-Identifier: Apache-2.0
// Copyright 2014-2019 <NAME>
// SPDX-License-Identifier: Apache-2.0
#include "multiCam.hpp"
#include "tracing.hpp"
#include <cerrno>
#include <fcntl.h> /* For O_RDWR */
#include <pwd.h>
#include <unistd.h>
using namespace std;
using n... |
/* Copyright 2020 The TensorFlow 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 applicable law or a... |
#include <sstream>
#include <vector>
#include <math.h>
#include <iostream>
#include <assert.h>
#include "benchmarking.h"
#include "utility.h"
/*
* Function: evaluate
* --------------------
* Evaluate the results of a dataset using various metrics, prints the result
*
* returns: nothing
*/
void evaluate (
unsigned i... |
/**
* Rvalue Reference
*
* 1. Moving Semantics
* 2. Perfect Forwarding
*
* Prerequisite: understanding rvalue and lvalue
*/
#include <iostream>
#include <cassert>
#include <vector>
#include <typeinfo>
using namespace std;
/**
* Usage 1: Moving Semantics
*/
// lvalue reference and rvalue refere... |
/**
* Copyright (C) 2021-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
#include <iostream>
#include <assert.h>
#include <stdlib.h>
#include "map.h"
float PRECISION = 0.0001;
void basicTests() {
// Scale of 1 cm
ProbabilityMap map(100);
// default map should be completely blank
assert((map.width() == map.widtha() * 100) && (map.width() == 0));
assert((map.height() == ... |
/**
@file PerformanceCounters.cc
@ingroup PerformanceCounters
@brief Performance counters as program signature
@author <NAME>
@verbatim
Revision: $Revision$
Revision date: $Date$
Committed by: $Author$
This file is part of the Periscope Tuning Framework.
See http://www... |
#include "ofApp.h"
using namespace cv;
using namespace ofxCv;
float ofApp::_(string name) {
return panel.getValueF(name);
}
void ofApp::_(string name, float x) {
panel.setValueF(name, x);
}
void ofApp::setup() {
ofSetDataPathRoot("../../../../../SharedData/");
ofSetVerticalSync(true);
ofSetFrameRate(60);
lo... |
#include <vi_ekf/ValidationGuard.h>
ValidationGuard::ValidationGuard(KalmanFilter10* mainFilter, ros::Publisher* resetPublisher, ros::Publisher* indivPublisher) :
vision_initialised_(15), // 15 continuous reading means a reliable initialiation
auto_reinit_sec_(1.0), // allow 2 second visual lost before c... |
// BSD 3-Clause License
//
// Copyright (c) 2018, <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
// ... |
// © 2013 the Search Authors under the MIT license. See AUTHORS for the list of authors.
#include "../graphics/ui.hpp"
#include "../utils/utils.hpp"
#include "plat2d.hpp"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <vector>
#include <limits>
#include <SDL/SDL_opengl.h>
static un... |
#include "Engine.h"
#include "Physical.h"
#include "Level1.h"
#include "Level2.h"
#include "Level3.h"
#include "Level4.h"
#include "Level5.h"
#include "Level6.h"
#if defined(_WIN32)
#include <GL/wglew.h>
#else
#include <GL/glew.h>
#endif
#include <cmath>
#include <iostream>
#include <algorithm>
Engine* GH_ENGINE =... |
#include "testApp.h"
#include "ofxSimpleGuiToo.h"
#include "RamVideo.h"
void testApp::setupGraphics() {
ofSetFrameRate(30);
ofSetVerticalSync(true);
ofEnableAlphaBlending();
frame.loadImage("frame.png");
}
//--------------------------------------------------------------
void testApp::setup(){
setupGrap... |
////////////////////////////////////////////////////////////
// //
// This file is part of the VRPH software package for //
// generating solutions to vehicle routing problems. //
// VRPH was developed by <NAME> (<EMAIL>). //
// ... |
/***************************************************************************
* The yarrow pseudo-randomness genrator *
* extracted from nettle, the low-level cryptographics library *
* *
* Copyrig... |
#include <opencv2/opencv.hpp>
#include <iostream>
#include "cuda_utils.h"
#include "logging.h"
#include "common.hpp"
#include "utils.h"
#include "calibrator.h"
using namespace cv;
using namespace std;
#define NMS_THRESH 0.4
#define CONF_THRESH 0.5
#define BATCH_SIZE 1
// stuff we know about the network and the inpu... |
#include "manager.hh"
Manager::Manager(Settings *settings,
QGraphicsScene *scene,
Random &rand):
settings_(settings),
scene_(scene),
rand_(rand),
random_point_(0,0)
{
primaryTarget_ = nullptr;
secondaryTarget_ = nullptr;
tertiaryTarget_ = nullptr;
mouse... |
/****************************************************************************
Copyright 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 ... |
#include <array>
#include <atomic>
#include <csignal>
#include <cstring>
#include <mutex>
#include <thread>
#include <unordered_map>
#include <unordered_set>
#include <bits/signum.h>
#include <dirent.h>
#include <netinet/in.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
#include <unistd.h>
... |
/************************************************************************
* "jlp_raptor_cam1_acqui.cpp"
* JLP_RaptorCam1 class : single acquisition and setup for acquisition
*
* JLP
* Version 17/08/2015
*************************************************************************/
#include <stdio.h>
#include <string.h>
#in... |
#include "precomp.h"
#include "intersav.h"
extern ofstream clogf;
extern "C" void dftridag(DVECTOR a, DVECTOR b, DVECTOR c,DVECTOR r, DVECTOR bet, DVECTOR gam, DVECTOR dfa,DVECTOR dfb,DVECTOR dfc,DVECTOR dfr, DVECTOR dfbet, DVECTOR dfgam, DVECTOR u, DVECTOR dfu, int n1, int n2, intersavetype *savefile, DVECTOR v, DVEC... |
#include <cstddef>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <limits>
#include <memory>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <boost/program_options.hpp>
#include <univalue.h>
#include <insertionfinder/fallbacks/filesystem.hpp>
#include <inse... |
#include "node_ast.h"
#include <btc.h>
#include <nan.h>
using v8::String;
using v8::FunctionTemplate;
using v8::Function;
using v8::Array;
using v8::Number;
namespace Btc {
namespace Syntax {
const char* String = "String";
const char* ContainerDeclaration = "ContainerDeclaration";
const c... |
/* ////////////////////////////////////////////////////////////
File Name: ysthreadpool.cpp
Copyright (c) 2017 <NAME>. All rights reserved.
http://www.ysflight.com
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redis... |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
* Copyright (c) 2019-2020, <NAME> <<EMAIL>>
* 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... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
* Copyright (c) 2019-2020, <NAME> <<EMAIL>>
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "Track.h"
#include <AK/Math.h>
#include <AK/NumericLimits.h>
#include <LibAudio/Loader.h>
#include <math.h>
Track::Track(const u... |
#include <miner.h>
#include <memory.h>
#include "oaes_lib.h"
#include "cryptonight.h"
extern "C" {
#include <sph/sph_blake.h>
#include <sph/sph_groestl.h>
#include <sph/sph_jh.h>
#include <sph/sph_skein.h>
#include "cpu/c_keccak.h"
}
#define VARIANT1_1(p) \
do if (variant > 0) \
{ \
const uint8_t tmp = ((const... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, <NAME> & Freie Universität Berlin
// Copyright (c) 2016-2019, <NAME> & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of the 3-clause B... |
/*############################################################################
# Copyright (C) 2005 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#include "base_allocator.h"
#include <assert.h>
#include <algorithm>
#include "vm... |
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=4:tabstop=4:smarttab:
*
* Copyright (c) 2010, 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 Li... |
//
// Created by loheac on 11/9/19.
//
#include <sstream>
#include <algorithm>
#include "Engine.h"
using namespace std;
/**********************************************************************************************************************
* Engine Class Implementation
*********************************************... |
#include <Alert.h>
#include <Button.h>
#include <Font.h>
#include <StatusBar.h>
#include <TextControl.h>
#include <StringView.h>
#include "ColumnListView.h"
#include "globals.h"
#include "smsview.h"
#include <stdio.h>
#define SMS_MAIL_PATH "mail/SMS"
const uint32 SMSLIST_INV = 'SL00';
const uint32 SMSLIST_SEL = 'SL... |
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. 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 copyr... |
/*
PicoPicoGames
Copyright (c) 2009, <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:
1. Redistributions of source code must retain the above copyright notice,
this list of conditi... |
// Copyright 2014 <NAME> <<EMAIL>>
//
// 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 t... |
/*
* Copyright 2011-2012, The Android Open Source Project
*
* 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 ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.