text stringlengths 5.71k 33.7k |
|---|
#include <systems/CollisionSystem.hpp>
#include <components/Body.hpp>
#include <Scene.hpp>
#include <Event.hpp>
using namespace std::placeholders;
CollisionSystem::CollisionSystem(Scene& scene):
_scene{scene} {
}
void CollisionSystem::update() {
auto polygonView = _scene.view<Body, PolygonBody>();
auto c... |
/**
* @author stablestud
* @date 21.04.2018
*/
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
using std::getline;
using std::cerr;
struct STRING_STRUCT {
char* string = nullptr;
unsigned length = 0U;
};
struct PARAM {
STRING_STRUCT* param = new STRING_STRUCT;
... |
//===--- AnalysisConsumer.cpp - ASTConsumer for running Analyses ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#include <algorithm>
#include <cassert>
#include <cmath>
#include <exception>
#include <fstream>
#include <iomanip>
#include <random>
#include <poplibs_support/Algorithm.hpp>
#include <poplibs_support/CTCInferenceDefs.hpp>
#include <poplibs_support/LogArithmeti... |
/*
--------------------------------------------------------------------------------
ESPDustLogger
ESP32 based IoT Device for air quality logging featuring an MQTT client and
REST API acess. Works in conjunction with a VINDRIKTNING air sensor from IKEA.
----------------------------... |
/**********
Copyright (c) 2017, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the follo... |
#pragma once
#include <memory>
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <tsduck/tsduck.h>
#include "base.hh"
#include "jsonl_source.hh"
#include "logging.hh"
#include "packet_sink.hh"
#include "tsduck_helper.hh"
#define MIRAKC_ARIB_SERVICE_RECORDER_T... |
#include "RecoMuon/TrackingTools/interface/MuonErrorMatrix.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "TROOT.h"
#include "TString.h"
#include "TRandom2.h"
#include "TMath.h"
#include <sstream>
#include <atomic>
using namespace std;
con... |
#include <math.h>
#include <iostream>
#include <map>
#include <Eigen/Dense>
#include "visualization/opengl.hh"
#include "sensing/belief.hh"
#include "sensing/rendering.hh"
#include "geometry/circle.hh"
#include "geometry/geometry.hh"
#include "geometry/line.hh"
#include "geometry/plane.hh"
#include "types.hh"
#incl... |
/* -*- Mode: c++; -*- */
// copyright (c) 2010 by <NAME> <<EMAIL>>
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the ter... |
#include "CExpressionParser.h"
int Modulo(int num, int div) {
int mod = num % div;
return ( num >= 0 || mod == 0) ? mod : div + mod;
}
unsigned int OpArgCount(const std::string& s) {
unsigned int val = 1;
if (s == "*" || s == "/" || s == "%" || s == "+" || s == "-" || s == "="
|| s == "^" || s == ... |
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <vector>
#include <map>
#include <iostream>
#include <algorithm>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_TRUETYPE_TABLES_H
#include FT_TRUETYPE_TAGS_H
#ifdef _WIN64
#include <fcntl.h>
#include <io.h>
#endif
uint16_t read_uint16(FT_Byt... |
#include "RMGMaterialTable.hh"
#include "globals.hh"
#include "G4UnitsTable.hh"
#include "G4Material.hh"
#include "G4NistManager.hh"
#include "G4MaterialPropertiesTable.hh"
#include "RMGLog.hh"
#include "RMGManagementDetectorConstruction.hh"
namespace u = CLHEP;
std::map<G4String, G4String> RMGMaterialTable::fMater... |
/* Copyright (c) 2015 Convey Computer Corporation
*
* This file is part of the OpenHT toolset located at:
*
* https://github.com/TonyBrewer/OpenHT
*
* Use and distribution licensed under the BSD 3-clause license.
* See the LICENSE file for the complete license text.
*/
// SequenceRules.cpp: Check variable assig... |
// Copyright (c) 2018 the Cargo authors
//
// 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, publ... |
#include <onion-i2c.h>
#include <iostream>
#include <fstream>
#include <ctime>
#include <cmath>
#define NEOPIXEL_I2C_DEVICE_NUM 0
#define DEV_ADDRESS 0x08
// Abstract Sensor class
class Sensor {
public:
// Pure virtual functions to get x, y, and z accelerations
virtual int get_x_value() = 0;
... |
// Copyright (c) 2017-2019 The Khronos Group Inc.
// Copyright (c) 2017-2019 Valve Corporation
// Copyright (c) 2017-2019 LunarG, 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
//
/... |
/***********************************************************************************
* Revised BSD License *
* Copyright (c) 2014-2015, <NAME> <<EMAIL>> *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms... |
/* This is a wordbrain puzzle solver.
*
* Create a compiled dictionary first. You will have to find your own word
* list, I can't distribute any. It must be sorted and not contain any
* duplicates.
*
* $wordbrain -c word_list.txt words.tree
*
* Now solve puzzles:
*
* $wordbrain -d words.tree geto at... |
#define OLC_PGE_APPLICATION
#include "lib/olcPixelGameEngine.h"
#include "BinaryTree.h"
#include <stdio.h>
#define NORTH 0
#define SOUTH 1
#define WEST 2
#define EAST 3
#define INDEX(X, Y, STEP) (((Y) * (STEP)) + (X))
#define NORTH_NEIGBOR(X, Y, STEP) (INDEX(X, Y - 1, STEP))
#define SOUTH_NEIGBOR(X, Y... |
#include <gl/glew.h>
#include "Canvas.h"
#include <gl/glut.h>
#include <QKeyEvent>
#include <QMessageBox>
#include <rt/rt.h>
#include <rtu/float3.h>
#include <rtu/quat.h>
#include <rtut/rtut.h>
#include <rtl/Headlight.h>
#include <rtl/DepthMaterial.h>
#include <rtl/SimplePointLight.h>
#include <rtl/SimpleAreaLigh... |
#include <iostream>
#include <fstream>
#include <vector>
#include <bitset>
#include <ctime>
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <sys/stat.h>
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
#ifdef WITH_BOINC
#include "boinc_api.h"
#endif
using std::vector;
using... |
// <NAME>, 2018
// License: pick one - UNLICENSE (www.unlicense.org) / MIT (opensource.org/licenses/MIT).
#include "renderer.h"
#include "world.h"
#include "jello.h"
Renderer::Renderer() {
camera_x = 5;
camera_y = 2; // meters high
debug_show_invisible_springs = false;
_scaler = ImVec2(1,1);
}
void Renderer::_... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include "gromacs/commandline/filenm.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/domdec/domdec_struct.h"
#include "gromacs/mdlib/stat.h"
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/mdtypes/inputrec.h"... |
#include <iostream>
#include <boost/regex.hpp>
#include <boost/program_options.hpp>
#include <string>
#include <fstream>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <iomanip>
namespace po = boost::program_options;
class metrics_gen {
public:
void print_help();
... |
/*
Copyright (c) 2007 <NAME>. 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 require... |
int
//
Zzuf,//x
pW,ql ,c0XND,Jg/*cAq*/ ,clO , /*l4ey*/ozK
,v0O3//lITVc
,R ,va70vy,K,roUG, Kz6 ,
PN ,KDB
, dF2h,
lCTZlB
,GlqJ/*j*/,
hdHK, rlf,XPv ,/*wB64cn*/Z,
V7k
,zWp//onC
/*O*/,s
,Ow,R1HG, jfCY ,
yYdXZp
,
YU /*n*/; void
f_f0(){
volatile int p2 , cyO
,lX ,
KCIS//
,
/*M*/Km9, I, X7 ,
A0... |
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
#include "TMatrixF.h"
#include "TMatrixD.h"
#include "TMatrixDSym.h"
#include "TMatrixDSymEigen.h"
#include "TVectorF.h"
#include "TRandom3.h"
#include "TH1D.h"
#include "TFile.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TApplicat... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include <math.h>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignore... |
// Copyright (c) 2014-2015 <NAME>
//
// <NAME>, <NAME>
// "Dependency Recurrent Neural Language Models for Sentence Completion"
// ACL 2015
// Based on code by <NAME> and <NAME>
// for the Feature-Augmented RNN Tool Kit
// http://research.microsoft.com/en-us/projects/rnn/
/*
This file is based on or incorporates mat... |
#include "simulation/ElementCommon.h"
//#include <iostream>
//#include <time.h>
#include <stdlib.h>
static int update(UPDATE_FUNC_ARGS);
static int graphics(GRAPHICS_FUNC_ARGS);
int Element_FLSH_update(UPDATE_FUNC_ARGS);
void Element::Element_BVSL() {
Identifier = "DEFAULT_PT_BVSL";
Name = "BVSL";
Colour = PIXPACK... |
/***************************************************************************
vidhrdw.c
Generic functions used by the Cinematronics Vector games
***************************************************************************/
#include "driver.h"
#include "vector.h"
#include "cpu/ccpu/ccpu.h"
#define VEC... |
#include "scene_gameplay.hpp"
#include "scene_mainmenu.hpp"
#include "components.hpp"
#include "meshes.hpp"
#include "animations/default.hpp"
#include "animations/player.hpp"
#include "animations/red_beetle.hpp"
#include "animations/defensivePlant.hpp"
#include "animations/valuablePlant.hpp"
#include "animations/proj... |
/*
* Copyright (c) 2020, Robobrain.
* 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 co... |
// Local headers
#include "program.hpp"
#include "gloom/gloom.hpp"
#include "gloom/shader.hpp"
#include "OBJLoader.hpp"
#include "sceneGraph.hpp"
#include "toolbox.hpp"
#include <iostream>
#include <string>
#include <iterator>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cmath>
#include <glm/gtc/matrix_tr... |
/* md5.c - MD5 Message-Digest Algorithm
* Copyright (C) 1995,1996,1998,1999,2001,2002,
* 2003 Free Software Foundation, Inc.
*
* This file is part of Libgcrypt.
*
* Libgcrypt is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
*... |
#include "DQMOffline/PFTau/interface/Matchers.h"
#include "DataFormats/METReco/interface/MET.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DQMOffline/PFTau/interface/PFMETMonitor.h"
#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TROOT.h>
#include <TProfile.h>
//
// -- Construc... |
//
// Created by <NAME> on 2015/05/29
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "OpenGLDisplayPlugin.h"
#include <condition_variable>
#include <QtCore/QCoreAppli... |
// Copyright (c) 2019 The Bitcoin SV developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txn_validator.h"
#include "txn_validation_config.h"
#include "config.h"
#include "net_processing.h"
/** Constructor */
CT... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
#include <vector>
#include <pybind11/stl.h>
#include <pybind11/complex.h>
#include <pybind11/numpy.h>
namespace py = pybind11;
double l2_norm(const std::array<double, 3> &u) {
double accum = 0.;
for (int i = 0; i < 3; ++i) {
accum += u[i] * u[i];
}
return sqrt(accum);
}
std::array<double, 3> ... |
//
// Created by david on 2020-05-12.
//
#include "class_env_base.h"
#include <config/debug.h>
#include <general/nmspc_tensor_extra.h>
#include <general/nmspc_tensor_omp.h>
#include <math/hash.h>
#include <math/num.h>
#include <tensors/model/class_mpo_site.h>
#include <tensors/state/class_mps_site.h>
#include <tools/c... |
#include <stdio.h>
#include <math.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_spiffs.h"
#include "hal.h"
#include "lcd.h"
#include "control.h"
enum RootMode{
RootMode_Reflow,
RootMode_Baking,
RootMode_EditReflowProfile,
RootMode_Setting,
RootMode_Boot
};
enum SubMo... |
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include <set>
#include <map>
#include <ctime>
#include <thread>
#include <mutex>
#include <atomic>
#include <chrono>
#include <memory>
#include <cctype>
#include <cstdlib>... |
/**
* One of motivations of CommonVisulizer is to visualize result of other
* programs in a convenient way, for example bullet physics engine, whose
* visualization requires self implemeted drawLine... why bother doing it
*
* This scene is about boxes falling into a crate, which was part of my old code
* about cr... |
#include <QDebug>
#include "PixmapData.hpp"
#include "TFTools.hpp"
TFTools::
TFTools(QString const &graph_fn, QString const &checkpoint_fn)
: _graph_fn(graph_fn), _checkpoint_fn(checkpoint_fn)
{
// prepare session
tensorflow::SessionOptions options;
TF_CHECK_OK(tensorflow::NewSession(options, &_sess));... |
//
// Integer representation of floating point arithmetic suitable for FPGA designs
//
// Author: <NAME>
// Date: March 2018
//
#include "L1Trigger/TrackFindingTracklet/interface/imath.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cmath>
using namespace trklet;
std::string VarBase::itos(... |
#define UNIX_BUILD
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
//#include "string.h"
#include "IFWD_StringList.h"
#include "Control.h"
//#include "Interpret.h"
#include "PrgSequencer.h"
#include "coverage.h"
#if defined(UNIX_BUILD)
char* extractfilename_unix(const char*path, char* f... |
/* micropolis.cpp
*
* Micropolis, Unix Version. This game was released for the Unix platform
* in or about 1990 and has been modified for inclusion in the One Laptop
* Per Child program. Copyright (C) 1989 - 2007 Electronic Arts Inc. If
* you need assistance with this program, you may contact:
* http://wiki.... |
/*
* Hough Algorithm
* <NAME> SDCS SYSU 2017
*/
#include "headers.h"
#include "Hough_transform.h"
#include <float.h>
using namespace cimg_library;
using namespace std;
int min4(double a, double b, double c, double d) {
double m = a;
int mi = 0;
if (b < m) {
m = b;
mi = 1;
}
if (c < m) {
m = c;
mi = ... |
#include "PSOEncryption.hh"
#include <stdio.h>
#include <string.h>
#include <stdexcept>
#include <string>
#include <phosg/Encoding.hh>
#include <phosg/Strings.hh>
using namespace std;
// TODO: fix style in this file, especially in psobb functions
// most ciphers used by pso are symmetric; ali... |
/*=============================================================================
* parser for CSP instances represented in XCSP3 Format
*
* Copyright (c) 2015 xcsp.org (contact <at> xcsp.org)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated document... |
#include <QFileInfo>
#include <QUrlQuery>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QSqlError>
#include "kernel.h"
#include "connectorinterface.h"
#include "ilwiscontext.h"
#include "catalog.h"
#include "mastercatalog.h"
#include "proj4parameters.h"
#include "oshelper.h"
using namespace Ilwis;
uint Ilwis... |
#include "include/command.h"
#include <unistd.h> // UNIX standard function definitions
#include <fcntl.h> // File control definitions
#include <errno.h> // Error number definitions
#include <termios.h> // POSIX terminal control definitions
#include <sys/time.h>
#define Kp_roll 1
#define Kd_rol... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
/*
* Copyright (C) 2002-2015 The DOSBox Team
*
* 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.
*
*... |
/*
* Copyright 2005-2010, <NAME> <<EMAIL>>
* Distributed under the terms of the MIT License.
*/
#include "dbeacon.h"
#include "protocol.h"
#include <math.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <cstdlib>
using namespace std;
/* Helper method to write a TLV wit... |
/////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2017 by The University of Queensland //
// Centre for Geoscience Computing //
// http://earth.uq.edu.au/centre-geoscience-computing //
// ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Portions of this code based on Mozilla:
// (netwerk/cookie/src/nsCookieService.cpp)
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.... |
/// Copyright 2009 Google Inc. All Rights Reserved.
#include "s2geo/s2edgeindex.h"
#include <set>
using std::set;
using std::multiset;
#include <string>
using std::string;
#include <vector>
using std::vector;
#include "s2geo/base/commandlineflags.h"
#include "s2geo/base/stringprintf.h"
#include "s2geo/base/loggin... |
/* MIT License
Copyright (c) 2020 <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, distrib... |
#include <Arduino.h>
#include <UIPEthernet.h>
#include <PubSubClient.h>
#include <OneWire.h>
#include <EEPROM.h>
#define ONEWIRE_PIN (8)
#define DS2413_FAMILY_ID 0xBA //0x3A у китайского 0x85 //BA 35 D4 73 50 05 10 76
#define DS2413_ACCESS_READ 0xF5
#define DS2413_ACCESS_WRITE 0x5A
#define DS2413_ACK_SUCCESS ... |
// Copyright 2014 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 <clocale>
#include <memory>
#include <sstream>
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#include "chrome/brows... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2017 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
ThreadInstrument: Library to monitor thread activity
Copyright (C) 2012-2022 <NAME>. Universidade da Coruna
Distributed under the MIT License. (See accompanying file LICENSE)
*/
///
/// \file thread_instrument.cpp
/// \brief Library implementation
/// \author <NAME> <basilio.fraguela@udc.es>
///
#inc... |
//===-- asan_interface_test.cc --------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* 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... |
#include "mtcnn.h"
//#include "det1.h"
//#include "det1.id.h"
//#include "det2.h"
//#include "det2.id.h"
//#include "det3.h"
//#include "det3.id.h"
//#include "det4.h"
//#include "det4.id.h"
MtcnnDetector::MtcnnDetector(ncnn::Net &pnet, ncnn::Net &rnet, ncnn::Net &onet, ncnn::Net &lnet){
this->Pnet = pnet;
thi... |
//
// Created by cristobal, 2019
//
#include <iostream>
#include <utility>
#include <cmath>
#include <algorithm>
#include <opencv2/core/mat.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "SequentialHOG.h"
#include "../hostGPP/ImageHandler.h"
#in... |
#include <ros/ros.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <sensor_msgs/PointCloud.h>
#include <sensor_msgs/ChannelFloat32.h>
#include <geometry_msgs/Point32.h>
#include <image_transport/image_transport.h>
#... |
// $Id: Service.cpp 91825 2010-09-17 09:10:22Z johnnyw $
#include "orbsvcs/Sched/Reconfig_Scheduler.h"
#include "orbsvcs/Runtime_Scheduler.h"
//#include "orbsvcs/Event/Module_Factory.h"
//#include "orbsvcs/Event/Event_Channel.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "orbsvcs/Event_Utilities.h"
#include... |
#include "TiePHistorical.h"
void Write3DCoor(std::string aNameSaveL, std::vector<Pt3dr> Pt3dL)
{
FILE * fpOutput = fopen((aNameSaveL).c_str(), "w");
for(unsigned int i=0; i<Pt3dL.size(); i++)
{
fprintf(fpOutput, "%lf %lf %lf\n", Pt3dL[i].x, Pt3dL[i].y, Pt3dL[i].z);
}
fclose(fpOutput);
}
i... |
#include "DQMServices/Diagnostic/interface/HDQMfitUtilities.h"
namespace HDQMUtil{
//-----------------------------------------------------------------------------------------------
double langaufun(double *x, double *par){
//Fit parameters:
//par[0]=Width (scale) parameter of Landau density
//par[1]=Mo... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBlitter.h"
#include "SkColor.h"
#include "SkColorFilter.h"
#include "SkHalf.h"
#include "SkPM4f.h"
#include "SkRasterPipeline.h"
#include "SkShader.h"
#include "Sk... |
// $Id: hical.cpp 6715 2016-04-28 17:58:43Z <EMAIL> $
#include "Isis.h"
#include <cstdio>
#include <QString>
#include <vector>
#include <algorithm>
#include <sstream>
#include <iostream>
#include "FileName.h"
#include "ProcessByLine.h"
#include "UserInterface.h"
#include "Pvl.h"
#include "PvlGroup.h"
#include "IStri... |
/**
* * Copyright (c) 2019 Horizon Robotics. All rights reserved.
* @File: media_codec_test.cpp
* @Author: yong.wu
* @Email: <EMAIL>
* @Date: 2020-07-15
* @Version: v0.0.2
* @Brief: media codec unit test
*/
#include <stdio.h>
#include <string.h>
#include <gtest/gtest.h>
#include <iostream>
#include "hobotlog/h... |
/*
Modified version of designer's implementation
*/
// CRAFT Cipher
//#include "stdafx.h"
#include "stdio.h"
#include "stdlib.h"
#include "stdint.h"
#include <time.h>
#include <string.h>
#include <math.h>
#include <omp.h>
#include <iostream>
using namespace std;
#define Nthreads 16
typedef unsigned long long int UINT64... |
/**
* Copyright (c) 2013, <NAME>
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* @file
* @brief Implementation of a Raft server
* @author <NAME>
* @version 0.1
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <... |
/*
QTFFmpegWrapper - QT FFmpeg Wrapper Class
Copyright (C) 2009,2010:
<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 the a... |
/*
Copyright (c) 2012, Lunar Workshop, Inc.
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 following disclaimer.
2. R... |
#include "loki/node_search.h"
#include "baldr/tilehierarchy.h"
#include "midgard/logging.h"
#include "midgard/pointll.h"
#include "midgard/tiles.h"
#include <cmath>
namespace vm = valhalla::midgard;
namespace vb = valhalla::baldr;
namespace {
struct tile_cache {
tile_cache(vb::GraphReader& reader)
: m_reader... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <random>
#include "beanmachine/graph/graph.h"
using namespace beanmachine::graph;
TEST(testn... |
//***************************************************************************
//
// Matlab C routine file: skelgrad.cpp
//
// Written 8/04 by <NAME>
//
// Input:
// img: binary silhouette image
//
// Output:
// skg: skeleton gradient transform
// skr: skeleton radius
//
//************************... |
#include <pxtone/pxtn.h>
#include <pxtone/pxtnMem.h>
#include <pxtone/pxtnPulse_Noise.h>
void pxtnPulse_Noise::set_smp_num_44k( int32_t num )
{
_smp_num_44k = num;
}
int32_t pxtnPulse_Noise::get_unit_num() const
{
return _unit_num;
}
int32_t pxtnPulse_Noise::get_smp_num_44k() const
{
return _smp_num_44k;
}
fl... |
/*
* Copyright (C) 2008 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... |
/*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
#include "../interface/ModuleClusterPlot.h"
constexpr std::array<const char*, 11> ModuleClusterPlot::histogramTypePrefixes;
std::vector<ModuleClusterPlot*> ModuleClusterPlot::moduleClusterPlotCollection;
bool areModulesSame(const ModuleData& t_lhs, const ModuleData& t_rhs)
{
return
t_lhs.layer == t_rhs.layer &&
... |
/***************************************************************************
In-Game Statistics.
- Stage Timers
- Route Info
- Speed to Score Conversion
- Bonus Time Increment
Copyright <NAME>.
See license.txt for more details.
***********************************************************... |
//OpenGL Stuff
#include <GL/glew.h>
#include <GL/glut.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
//My includes
#include <SOIL.h>
#include "myDataStructures.h"
#include "initShaders.h"
#include "rply.h"
#include "rplyfile.h"
GLvoid reshape(GLint x, GLint y);
GLb... |
//
// Created by <NAME> on 08/06/2018.
//
#include "Evaluation.h"
#include <fstream>
#include <chrono>
#include <set>
using namespace std;
class InputParser {
private:
ifstream fin;
vector<Point> points;
int num_classes;
int num_attributes;
int num_points;
string option;
string dataset;
... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
#include "GAMER.h"
#include "TestProb.h"
// problem-specific global variables
// =======================================================================================
static double Jeans_Rho0; // background density
static double Jeans_Rho1; // amplitude of the density perturbation
static double... |
#include "vtkbestcircle.h"
#include "circleMean.h"
#include "vtkSmartPointer.h"
#include "vtkCellArray.h"
#include "vtkVertex.h"
#include "vtkLine.h"
#include "vtkInformationVector.h"
#include "vtkInformation.h"
#include "vnl/vnl_least_squares_function.h"
#include "vnl/vnl_cross.h"
#include "vnl/vnl_inverse.h"
#i... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
// Copyright (c) 2021 LibreSprite Authors (cf. AUTHORS.md)
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#pragma once
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#elif defined(__WINDOWS__)
#include <windef.h>
#include <GL/glew.h>
#include <GL/gl.h>
#else
... |
#include "altruct/algorithm/math/modulos.h"
#include "altruct/algorithm/math/ranges.h"
#include "altruct/algorithm/collections/collections.h"
#include "gtest/gtest.h"
#include <unordered_map>
#include <vector>
using namespace std;
using namespace altruct::math;
void crt_test_impl(int a1, int n1, int a2,... |
/*
* Copyright (c) 2008 <NAME>, <NAME>, <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. 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,... |
//////////////////////////////////////////////////////////////////////////////
//
// Triangles.cpp
//
//////////////////////////////////////////////////////////////////////////////
#include "GL/glew.h"
#include "GL/freeglut.h"
#include "GLFW/glfw3.h"
#include "LoadShaders.h"
#include <glm/glm.hpp> //includes GLM
#inc... |
// 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 may... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.