text stringlengths 5.71k 33.7k |
|---|
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <boost/timer.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <sophus/se3.h>
/* parameters */
const int boa... |
/**
* @file
* @brief Implements the Geant4 geometry construction process
* @remarks Code is based on code from <NAME>
* @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying... |
#include "test.hpp"
/*--------------------------------{ Controller }------------------------------*/
#define MAJOR_TEST true
#define ENABLE_PRINT_LSM false
#define ITER_DEBUG false
#define WRITE_FOREVER false
#define MIN_REP false
/*------------------------------{ Global Variable }---------------------------*/
volati... |
/*******************************************************************************
This is Delysynth, a simple and tiny additive synthesizer.
Written by <NAME> 2014
*******************************************************************************/
#include "del.synth.h"
#include "del.types.h"
#include "del.generators.h... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "SDL_utils.h"
#include "Draw.h"
#include "Draw3D.h"
#include "Solids.h"
#include "fastmath.h"
#include "Vec3.h"
#include "Mat3.h"
#include "quaternion.h"
#includ... |
#include "OpenCvWrapper.h"
#include <QtGui>
#include <vector>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
#ifdef USE_DLIB_DETECTOR
#include <dlib/image_processing/frontal_face_detector.h>
//#include <dlib/image_processing/render_face_detections.h>
#include <dlib/image_processing.h>
#includ... |
// Copyright (c) Prevail Verifier contributors.
// SPDX-License-Identifier: MIT
#include <cassert>
#include <cstring> // memcmp
#include <iostream>
#include <string>
#include <vector>
#include "ebpf_vm_isa.hpp"
#include "asm_unmarshal.hpp"
using std::string;
using std::vector;
int opcode_to_width(uint8_t opcode) {
... |
//
// ofxLaserZoneTransform.cpp
// ofxLaser
//
// Created by <NAME> on 07/02/2018.
//
//
#include "ofxLaserZoneTransform.h"
using namespace ofxLaser;
// static property / method
ZoneTransform::ZoneTransform() {
scale = 1;
offset.set(0,0);
initListeners();
editable = true;
isDirty = true;
selected = f... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <tuple>
#include <string>
#include <memory>
#include <utility>
#include <map>
#include <vector>
#include <ngraph/op/util/attr_types.hpp>
#include <gpu/gpu_config.hpp>
#include <transformations/control_flow/unroll_tensor_iterator... |
/* ###
* IP: GHIDRA
*
* 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 writin... |
#include "stdafx.h"
#include "SMTPEventConsumer.h"
#include "Hashing.h"
const wchar_t SMTPEventConsumerClass::CONSUMER_NAME[] = L"SMTPEventConsumer";
const ConsumerDataType SMTPEventConsumerClass::ConsumerDataTypes[ConsumerDataTypesSize] = { // the order on disk
{ TS_STRING, 4, L"MachineName" },
{ TS_UI... |
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
#include "SineSweepGenerator.h"
#include <algorithm>
#include <string>
#include <iostream>
#include <fstream>
#include "Convert.h"
#include "CrossoverType.h"
#include "DSP.h"
#include "File.h"
#include "Audioclient.h" //WAVE_FORMAT_PCM, WAVE_FORMAT_IEEE_FLOAT
#include "Error.h"
using std::ofstream;
using std::to_stri... |
/*
The MIT License (MIT)
This file is part of the Phoenard Bootloader (phoenboot)
Copyright (c) 2015 Phoenard
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 withou... |
/*
* This initialises the device after a reset or
* the first power up.
*
*/
#include <msp430.h>
#include "header.h"
void patWatchdog(void) {
/* Watchdog Timer+ Register settings:
* WDTPW - Must preface any write to WDTCTL with this password
* WDTCNTCL - Might as well take the opportunity to cl... |
#include "interface.h"
#include "interface_internal.h"
#include <syslog.h>
#include <assert.h>
#include <event2/event.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <time.h>
#include <sys/stat.h>
/**
* Writes PEAK CAN interface status to system log.
... |
/*
* @file compare_ada_files.cpp
* @date 21 May 2022
* @author <NAME>
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <set>
#include <string>
#include <limits.h>
#include <ftw.h>
/* Used to contain the relative paths of all source files from one directory root to be com... |
/*
Copyright 2014 <NAME>, SAP AG
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 writing, software
... |
// 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... |
/*
* Component of the D-ITG 2.8.1 (r1023) platform (http://traffic.comics.unina.it/software/ITG)
*
* Copyright : (C) 2004-2013 by <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>' (PI)
* COMICS (COMputer for Interaction and CommunicationS) G... |
//-----------------------------------------------------------------------------
// Copyright 2012-2016 <NAME>. All Rights Reserved.
// Author: mmorise [at] yamanashi.ac.jp (<NAME>)
//
// Band-aperiodicity estimation on the basis of the idea of D4C.
//---------------------------------------------------------------------... |
#include "rocket_engine.h"
void RocketEngine::imgui_draw()
{
if (ui_manager.de_laval_nozzle)
{
if (ImGui::Begin("De-Laval Nozzle", &ui_manager.de_laval_nozzle))
{
ImGui::Text("Radius:");
ImGui::Columns(3);
ImGui::SliderFloat("Inlet", &nozzle.inlet_radius, 0.1f, 100.0f);
ImGui::NextColumn();
Im... |
#include "renderlayer.h"
#include <QRandomGenerator>
#include "openglwindow.h"
#include "ui_openglwindow.h"
RenderLayer::~RenderLayer() {
for (OGRFeature *feature : features) {
delete feature;
}
delete[] gridArray;
delete layer;
}
RenderLayer::RenderLayer(OGRLayer *layer, int indexGrid)
: layer(lay... |
/* Copyright 2013 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
Istituto Nazionale di Geofisica e Vulcanologia
Sezione di Catania, Catania, Italy
Università di Catania, Catania, Italy
Johns Hopkins University, Baltimore, MD
This file is part of GPUSPH.
GPUSPH is free software: you can redistr... |
/*
* Copyright 2019 <NAME>
*
* All Rights Reserved.
*
* 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, modi... |
#include <algorithm>
#include <exception>
#include <fstream>
#include <iostream>
#include <istream>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <tclap/CmdLine.h>
#include <json/json.hpp>
#include <util/meta.hpp>
#include <util/optional.hpp>
#include <util/strprintf.hpp>
#in... |
#include "RC522.h"
RC522::RC522() {
this->select(false);
}
/* Chip Select on D10 */
void RC522::select(bool on) {
if (!on) PORTB |= 0b000100;
else PORTB &= 0b111011;
}
void RC522::beginTransaction() {
/*
SPISettings in a nutshell:
Clock: 4MHz
MSBFIRST
SPI_MODE0
*/
SPCR = _BV(SPE) | _BV(MS... |
#include "steppr_interface.h"
#include "wandrr.h"
#include "joint_state.h"
#include <ros/console.h>
#include <ifaddrs.h>
#include <unistd.h>
#include <arpa/inet.h>
using namespace wandrr;
StepprInterface::StepprInterface(const char *iface)
: tx_count_(0)
{
const char *robot_mcast_addr = "172.16.31.10"; // parameteri... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
/*******************************************************************************
* Copyright 2016-2018 Intel 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.apa... |
//=---------------------------------------------------------------------=
//
// $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... |
#include "nex_display.h"
NexDisplay nexdisp;
#include "pits_burner.h"
extern PitsBurner burner;
#include "burner_config.h"
extern BurnerConfig cfg;
static uint32_t _rv[15]; //packet of numbers read buffer
#define nexSerial Serial
void NexDisplay::init() {
//nexSerial.begin(115200); //already set earlier
... |
// Copyright (c) 2020-2021 AVME Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#include <qmlwrap/QmlSystem.h>
QString QmlSystem::getCurrentAccount() {
if (!this->ledgerFlag) {
return QString::fromStdString... |
/** @file Manager.cpp
* @author <NAME>
* */
#include "Manager.h"
void mlm::ErrorAndExit(std::string const& error){
std::cerr << error << std::endl;
exit(EXIT_FAILURE);
}
void mlm::WriteHeader(fs::ofstream & file){
file << "# File generated using ML Project Manager\n";
file << "# DO NOT MODIFY THI... |
/**
* Copyright 2019, The Jelly Bean World 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... |
#include "Reader.h"
#include <iostream>
#include "Database.h"
#include "Display.h"
Reader::Reader(): //Reader default is the same as student default
User(),
term(30), //by default max borrow period is <=30
max(5), //by default max 5 books can be borrowed
borrowed(vector<Copy*>()),
penalties(0),
reserved(vector<C... |
/*
* VS_BuiltInFont.cpp
* VectorStorm
*
* Created by <NAME> on 15/03/2014
* Copyright 2014 <NAME>. All rights reserved.
*
*/
#include "VS_BuiltInFont.h"
#include "VS_DisplayList.h"
#include "VS_Fragment.h"
static float GetDisplayListWidth( vsDisplayList *list )
{
vsVector2D topLeft, bottomRight;
list->... |
/*
* Copyright (c) 2017 <NAME>. All rights reserved.
*
* Licensed under the MIT License. See License.md file in the
* project root for full license information.
*
* Author: <NAME> (@sclark39)
* Website: http://skylerclark.com
*
* Github: https://github.com/sclark39/UE-VR-Code-Sample/
*/
#include "V... |
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "src/definitions.h"
#include "src/window/window.h"
#include "src/utils/command_parser.h"
#include "src/shader/shader_program.h"
#include "src/model/mesh/vertex.h"
#include "src/model/mesh/mesh.h"
#include "src/model/model.h"
#include "src/camera/camera.h"
#inclu... |
#include "SystemComponents/WaterSources/Base/WaterSource.h"
#include "Utils/QPSolver/QuadProg++.h"
#include "Utils/Solutions.h"
#include "Problem/PaperTestProblem.h"
//#include "Problem/Triangle.h"
#include "Utils/Utils.h"
#ifdef PARALLEL
#include "../Borg/borgms.h"
#include <mpi.h>
#endif
#include <sys/... |
/* FILE: threevector.cc -*-Mode: c++-*-
*
* Simple 3D vector class. *All* client code should use the
* ThreeVector typedef in case this class gets moved into an
* OOMMF extension library.
*
*/
#include "nb.h"
#include "threevector.h"
OC_USE_STD_NAMESPACE; // Specify std namespace, if supported.
/// For... |
#include "../TEMLogger.h"
#include "BgcData.h"
extern src::severity_logger< severity_level > glg;
BgcData::BgcData() {};
BgcData::~BgcData() {};
// re-initialize BgcData class explicitly
void BgcData::clear() {
cd->clear();
//monthly
m_vegs = vegstate_bgc();
m_sois = soistate_bgc();
m_vegd ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "fastmath.h"
#include "Vec2.h"
#include "Vec3.h"
#include "Solids.h"
#include "Noise.h"
#include "SphereSampling.h"
#include "Draw.h"
#include "Draw3D.h"
#includ... |
/**
* @file test.cpp
* @author <NAME>
* @date Tue 08 June 2021
*
* @brief 这是个抛物型方程的例子,非常简单,中间就没有解释太多了
*
*/
#include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
#include <base/exceptions.h>
#include <lac/full_matrix.h>
#include <lac/sparsity_pattern.h>
#include <lac/sparse_matrix... |
/* The MIT License (MIT)
*
* Copyright (c) 2014-2018 <NAME> and <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
* ... |
/*
* Project 25 IMBE Encoder/Decoder Fixed-Point implementation
* Developed by <NAME> E-mail: <EMAIL>
* Version 1.0 (c) Copyright 2009
*
* This 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 ve... |
#include "HuffmanTree.h"
#include "HuffmanSymbol.h"
#include "HuffmanNumberCode.h"
/* a symbol value too big to represent any valid symbol, to indicate reading disallowed huffman bits combination,
which is possible in case of only 0 or 1 present symbols. */
#define INVALIDSYMBOL 65535u
#define NUM_DEFLATE_CODE_SYMBO... |
#include "picking.h"
#include "editor.h"
#include "engine/input.h"
#include "graphics/rhi/draw.h"
#include "core/memory/linear_allocator.h"
#include <glm/mat4x4.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "graphics/assets/shader.h"
#include "core/memory/linear_allocator.h"
#include "core/io/logger.h"
#include... |
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2016 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include "jpeg.hpp"
// ----------------------------------------------------------------------------------------------------
// Generic C++ implementation
// -------------------------------------... |
/*
Copyright (c) 2003, <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 and the following disc... |
#include <RandomForest.h>
/**
* @brief Set the node object设置节点参数
*
* @param parent
* @param left
* @param right
* @param depth
* @param sample_count
* @param split_feature
* @param split_threshold
* @param result
*/
void Node::set_node(int parent, //父节点索引
int left, //... |
extern "C" {
#include <base/log.h>
}
#include "workload.h"
#include "cluster.h"
#include <algorithm>
#include <random>
#include <stdexcept>
/**
* Zipf (Zeta) random distribution.
*
* Implementation taken from drobilla's May 24, 2017 answer to
* https://stackoverflow.com/questions/9983239/how-to-generate-zipf-dis... |
/************************************************************************************
* @file aaNetwork.cpp
* @author theAgingApprentice
* @brief Handle all of the networking logic required by the robot.
* @details Manages TCP/IP, HTTP server, OTA firmware loading and MQTT messaging.
* See https://lastm... |
// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000098.cpp,v $
// $Revision: 1.2 $
// $Name: $
// $Author: shoops $
// $Date: 2011/05/24 16:32:32 $
// End CVS Header
// Copyright (C) 2011 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., Universit... |
// Copyright 2016 Google 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 in ... |
/* Portions copyright (c) 2006-2009 Stanford University and Simbios.
* Contributors: <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 l... |
/*
* Copyright (c) 2011 <NAME> and <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 ... |
/*
* Copyright (c) 2020, NVIDIA 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 ... |
/**
* \file EcalDigiDisplay.cc
* dummy module for the test of DaqFileInputService
*
*
* \author <NAME>
* \author <NAME>
*
*/
#include <FWCore/Framework/interface/EDAnalyzer.h>
#include <FWCore/Framework/interface/Event.h>
#include <FWCore/Framework/interface/MakerMacros.h>
#include <FWCore/Framework/int... |
/*******************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 <NAME> (<EMAIL>) and
<NAME> (<EMAIL>)
(c) Copyright 2001 - 2004 <NAME> (<EMAIL>)
(c) Copyright 2002 - 20... |
#include <iostream>
#include <array>
/* SCOTS header */
#include "scots.hh"
/* ode solver */
#include "RungeKutta4.hh"
#include "Simpson3.hh"
#include "MatrixExp.hh"
/* time profiling */
#include "TicToc.hh"
/* memory profiling */
#include <sys/time.h>
#include <sys/resource.h>
struct rusage usage;
const double al... |
#include "State_Viewer.h"
#include <LWVideo/LWVideoDriver.h>
#include "App.h"
#include "Light.h"
#include "Logger.h"
#include "UICameraControls.h"
#include "UILightingProps.h"
#include <LWEJson.h>
const char8_t *State_Viewer::RenderPathNames[] = { "", "_Emissions", "_Normals", "_Albedo", "_MetallicRough" };
const cha... |
#include "tracker_run.hpp"
#include <iostream>
#include <string>
#include <ctype.h>
#include <math_helper.hpp>
#include <numeric>
#include <fstream>
#include "init_box_selector.hpp"
#include "cf_tracker.hpp"
#include "dskcf_tracker.hpp"
using namespace cv;
using namespace std;
using namespace TCLAP;
#define SCALE 2
... |
/*
* Copyright (C) 2010 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 app... |
// CD->26.10.2009
// LC->27.06.2012
#include <lem/oformatter.h>
#include <lem/solarix/la_autom.h>
#include <lem/solarix/CoordList.h>
#include <lem/solarix/dictionary.h>
#include <lem/solarix/res_pack.h>
#include <lem/solarix/sg_autom.h>
#include <lem/solarix/WordEntry.h>
#include <lem/solarix/PartOfSpeech.h>... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "seal/seal.h"
#include "bench.h"
#include <iomanip>
using namespace benchmark;
using namespace seal;
using namespace sealbench;
using namespace std;
namespace sealbench
{
/**
Wraps benchmark::RegisterBenc... |
/* Copyright 2009 Uppsala 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 by applicable law or agreed... |
//===- ASTDependenceAnalysis.cpp - Dependence Analyzer - (Clang) -*- C++ -*===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2020 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licen... |
// Dear ImGui: standalone example application for GLFW + OpenGL 3, using programmable pipeline
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.)
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top ... |
#include <GLFW/glfw3.h>
#include <glad/glad.h>
#include <iostream>
#include <OpenGLHeaders/Shader.h>
#include <OpenGLHeaders/texture.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#define STB_IMAGE_IMPLEMENTATION
#define ARRAY_SIZE(array) (sizeof((array)) / sizeof((arr... |
/* ----------------------------------------------------------------------
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 San... |
/***************************************************************************
file : engine.cpp
created : Sun Mar 19 00:06:55 CET 2000
copyright : (C) 2000 by <NAME>
email : <EMAIL>
version : $Id: engine.cpp 4786 2012-07-01 18:26:31... |
// Copyright 2018-2020 <NAME> (Falcons)
// SPDX-License-Identifier: Apache-2.0
// Copyright 2014-2019 <NAME>
// SPDX-License-Identifier: Apache-2.0
#include "configurator.hpp"
#include "falconsCommonDirs.hpp"
#include <unistd.h>
#include <pwd.h>
using namespace cv;
using namespace std;
configurator::configurator(i... |
#include "CIS3DRegions.h"
#include <QChar>
#include <QDebug>
#include <QFile>
#include <QIODevice>
#include <QString>
#include <QStringList>
#include <QTextStream>
#include <stdexcept>
/**
Constructor. Initializes default model of rat vS1.
*/
Regions::Regions() {
mPropsMap.insert(0, RegionProperties(0, "Brain"... |
/*
*
* File: 04-reading-from-srt.cpp
*
* Author: <NAME>
* Repo: https://github.com/tinybit/ffmpeg_code_examples
*
* advanced libav remuxing example.
* receive live video stream from SRT client, write data into memory buffer, configure AVFormatContext
* to read from memory buffer, remux to FLV and write result to a file... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <cmath>
#include <vector>
#include <map>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <shader.h>
#include <camera.h>
#include <stb_image.h>
using namespace std;
unsigned int colorI... |
/*
** Copyright (C) 1998-2011 <NAME> <<EMAIL>>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program... |
/* Fl_NSlider for WidgetSet, Copyright (c) 1998 <NAME> (<EMAIL>)
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both the
* copyright notice and this pe... |
// (C) Copyright 2006-2009 Hewlett-Packard Development Company, L.P.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR C... |
#include "application.h"
#include "logger.h"
#include "encodeUtil.h"
// dongle response
constexpr uint16_t CODE_SUCCESS = 0x9000;
constexpr uint16_t CODE_USER_REJECTED = 0x6985;
constexpr uint16_t CODE_INVALID_PARAM = 0x6b01;
constexpr uint16_t CODE_NO_STATUS_RESULT = CODE_SUCCESS + 1;
// nist256
constexpr uint8_t S... |
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/url_request/url_request_job.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "googleurl/src/gurl.h"
#inclu... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "NativeBaseCharacter.h"
#include "coopgame.h"
#include "Components/CapsuleComponent.h"
#include "NativeCoopGameMode.h"
#include "NativeCoopCharacter.h"
#include "NativeCoopPlayerController.h"
#include "components/CoopCharac... |
#include "sha2.hpp"
/*
* Initialize array of round constants:
* (first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311):
*/
static const uint32_t k[] = {
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x2... |
#include "game.hpp"
SDL_Texture *Game::mapTexture, *Game::tile, *Game::wall, *Game::bullet, *Game::bomb, *Game::health, *Game::flag;
SDL_Renderer *Game::renderer;
SDL_Rect Game::mapRect;
bool Game::isServer;
Player Game::me(2), Game::opponent(0);
int Game::reloadTime;
int Game::renderInit()
{
initTextures(renderer);... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
// Parameters
params1.setName("paramsGroup1");
params1.add(bPrevious.set("<", false));
params1.add(bNext.set(">", false));
params1.add(bEnable.set("Enable", false));
params1.add(lineWid... |
//-*-mode:c++; mode:font-lock;-*-
/**
* \class toffset.cpp
* \ingroup tools
* \brief Calculate timing offsets
*
* Calculate channel-to-channel timing offsets for any (one) telescope
* in the file.
*
* Original Author: <NAME>
* $Author: sfegan $
* $Date: 2007/12/04 18:05:04 $
* $Revision: 3.2 $
* $Tag$
*
... |
/* Copyright © 2019-2020 <NAME>. */
/* This code is licensed under the 3-Clause BSD License. */
/* See: LICENSE.md */
/* Durand's Amazing Super Duper Memory functions. */
#i... |
#include <stdafx.h>
#include <RED4ext/Types/TweakDB.hpp>
#include <reverse/WeakReference.h>
#include <reverse/StrongReference.h>
#include <scripting/Scripting.h>
#include "TweakDB.h"
struct FlatValuePool
{
using HashType = uint32_t;
enum class Type
{
Unknown = -1,
ArrayTweakDBID,
... |
#include <tuple>
#include "chart/v3/serum-circles.hh"
// ----------------------------------------------------------------------
namespace ae::chart::v3
{
static void set_theoretical(serum_circles_for_serum_t& serum_data);
static void set_empirical(serum_circles_for_serum_t& serum_data, const Layout& layout, ... |
#include "stdafx.h"
#include "Renderer.h" // Vertex (might be moved laer on)
#include "Model.h"
#include <vector>
#include <assimp\Importer.hpp>
#include <assimp\scene.h>
#include <assimp\postprocess.h>
#include <iostream>
#include "glm/gtx/transform.hpp"
#include "glm/gtx/euler_angles.hpp"
bool Model::Create(const... |
#include <assert.h>
#include <cuda_runtime_api.h>
#include <sys/stat.h>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include "NvInfer.h"
#include "NvOnnxParser.h"
#include <opencv2/opencv.hpp>
#include "image.h"
#include <sys/time.h>
#include <iter... |
/*
Copyright 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 without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, ... |
// Copyright (C) 2010 - 2013 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2008 - 2009 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, University of Heidelberg,
// and Th... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <utility> // std::pair, std::make_pair
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
// #include "helpers.h"
#include "json.hpp"
#include "spline.h"
#include "trajectory.h"
#in... |
//
// Paragraph.cpp
// lanUI
//
// Created by <NAME> on 27/08/21.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include "Paragraph.hpp"
#include "../Theme/Theme.hpp"
#include <iostream>
#include <regex>
Text * BSParagraph::operator[](std::string id){
if(identifiableWords.empty())
Core::log(Core... |
/*****************************************************************************
* Markerless AR desktop application.
******************************************************************************
* by <NAME>, 5th Dec 2012
* http://computer-vision-talks.com
**********************************************************... |
#include "fast_double_parser.h"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
static inline uint64_t rng(uint64_t h) {
h ^= h >> 33;
h *= UINT64_C(0xff51afd7ed558ccd);
h ^= h >> 33;
h *= UINT64_C(0xc4ceb9fe1a85ec53);
h ^= h >> 33;
return h;
}
enum {
FAST_... |
/*
* 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 ... |
/*
* Copyright (c) 2010-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 property relating
* to a hardware implementation of the ... |
#include <sstream>
#include <util/system.h>
#include <validation.h>
#include <chainparams.h>
#include <script/script.h>
#include <xray/xraystate.h>
#include <libevm/VMFace.h>
using namespace std;
using namespace dev;
using namespace dev::eth;
XrayState::XrayState(u256 const& _accountStartNonce, OverlayDB const& _db, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.