text stringlengths 5.71k 33.7k |
|---|
// This code was largely copied from an early implementation by UPenn. The author
// does not know what the hard-coded values below mean.
#include "quori_face/transform.hpp"
#include "quori_face/Cache.hpp"
#include <cmath>
#include <complex>
#include <thread>
#include <memory>
#include <vector>
#include <cstring>
us... |
//============================================================================
// Name :
// Author : Avi
// Revision : $Revision: #35 $
//
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licen... |
#include "PCE.h"
#include "GeomCommonFunctions.h"
#include <Gui/Application.h>
#include <BRepBuilderAPI_GTransform.hxx>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <tchar.h>
#include <iostream>
using namespace PartDesignGui;
//WL
////////////////////////////////////////////////////////////////////////////... |
/*
car.cpp
<NAME>, 2012
Vehicle simulation example using btosg abstraction layer.
Can use a Z pointing up (default) or Y pointing (-D_UP_=0,1,0) up world coordinates reference.
Vehicle can be interactively controlled from the keyboard:
up: positive acceleration
... |
/*
SHA-1 in C
By <NAME> <<EMAIL>>
100% Public Domain
-----------------
Modified 7/98
By <NAME> <<EMAIL>>
Still 100% Public Domain
Corrected a problem which generated improper hash values on 16 bit machines
Routine SHA1Update changed from
void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int
len)
to
voi... |
#include <UGL/UGL>
#include <UGM/UGM>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
#include "../../tool/Camera.h"
#include "../../tool/SimpleLoader.h"
#include <iostream>
using namespace Ubpa;
void framebuffer_... |
#include "filter.h"
//float PI2 = 2.0*PI;
float rad2deg = 180.0/PI;
void norm(float &x, float &y, float &z){
const float mag = sqrtf(x*x + y*y + z*z);
const float inorm = 1.0/mag;
x *= inorm;
y *= inorm;
z *= inorm;
}
void norm4(float &x, float &y, float &z, float &w){
const float mag = sqr... |
//
// Copyright (c) 2008-2014 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... |
/*
* =====================================================================================
*
* Filename: TGM_Parameters.cpp
*
* Description: Set the parameters with arguments from the command line
*
* Created: 07/28/2012 01:55:55 PM
* Revision: none
* Compiler: g++
*
* ... |
/* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... |
#include <SFML/Graphics.hpp>
#include <cstdlib> //for rand
#include <iostream>
#include <sstream> //converttostring
#include "ResourcePath.h"
#include "Overlap.h"
#include "main.h"
#include "OpeningScreen.h"
#include "GameoverScreen.h"
#include "VictoryScreen.h"
#include "CreditScreen.h"
#include "Draw.h"
void findC... |
/*
* Copyright (C) 2013 by <NAME> (<EMAIL>)
* Copyright (C) 2012-2019 by UCSC Computational Genomics Lab
*
* Released under the MIT license, see LICENSE.txt
*/
#include "halBlockMapper.h"
#include "hal.h"
#include "halSegmentMapper.h"
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <v... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
/*
* Mathlib : A C Library of Special Functions
* Copyright (C) 1998-2015 <NAME> and the R Core 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... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/**
--------------------------------------------------------------------------------
- Module : decoder_code39.cpp
- Description : 1D and 2D C++ Barcode Library
- Author : <NAME>, 5-AUG-2016
--------------------------------------------------------------------------------
*/
#include <iostream>
#... |
/*
* Copyright (c) 2016, 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* r... |
#pragma once
#include"Essentials.h"
#include "Triangle.h"
int ClipAgainstPlane(Vec3 planeP, Vec3 planeN, Triangle& in, Triangle& out1, Triangle& out2) {
//Make plane Normal normal
planeN.normalize();
//Return signed shortest distance from point to plane
auto d = [&](Vec3& p) {
Vec3 n = Vec3::normalize(p);
... |
#include "../config.h"
#include <stdio.h>
#ifdef WIN32
#include <direct.h>
#else
#include <unistd.h>
#endif
#include <iostream>
#include <math.h>
#include "Mesh.h"
#include "GeometryNode.h"
#include "GeometryEdge.h"
#include "Connect.h"
#include "BoundaryLayer.h"
#include "VoronoiVertex.h"
#include "VoronoiSegment.h"
... |
/* ************************************************************************
* Copyright 2020-2021 Advanced Micro Devices, Inc.
* ************************************************************************ */
#pragma once
#include "clientcommon.hpp"
template <bool FORTRAN, typename T, typename U>
void orgbr_ungbr_chec... |
#include "common.h"
#include "compress.h"
#include "stdafx.h"
#include "tls.h"
#include "server.h"
#include "epollsocket.h"
using namespace std;
namespace fs = std::filesystem;
bool checkSubstring(const string in, const string &needle)
{
bool Enable = true;
auto it = std::search(in.begin(), in.end(), needle.begin... |
#include <iostream>
#include <chrono>
#include <stdio.h>
#include <dirent.h>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <time.h>
#include <stdio.h>
#include <opencv2/core/core.hpp>
// #include <opencv2/core/eigen.hpp>
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Geometry>
#include <eigen... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
/*******************************************************************************
Copyright 2016-2018 anxzhu (github.com/anxzhu)
Copyright 2018 <NAME> (github.com/5N44P) (changes)
Based on segment-lcd-with-ht1621 from anxzhu (2016-2018)
(https://github.com/anxzhu/segment-lcd-with-ht1621)
Partially rewritten and extende... |
//===--- Utils.cpp ------ Utilities To Examine Clang AST -------*- C++ -*-===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2018 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
/*
Copyright 2020, <NAME>
fpsieve is free source code, under the MIT license (see LICENSE). You can redistribute, use and/or modify it.
Please give feedback to the authors if improvement is realized. It is distributed in the hope that it will be useful.
*/
#include <cstdint>
#define _USE_MATH_DEFINES
#include <cmath>... |
/*
* geco.hpp
* geco - the gene coverage evaluator
*
* Created by <NAME> on 03.02.10.
* Copyright 2010 UNIL. All rights reserved.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <map>
#include <assert.h>
#inclu... |
/**********************************************************************************
* mergeSNPlogs.cpp *
* Written by <NAME> *
* Version 1.0 written 2017/01/16 ... |
//
// file amtec.cc
// <NAME>
// AstraZeneca
// 14th May 2007
//
// Takes an existing set of clusters, with fingerprints, and drops new
// fingerprints/molecules into those clusters, adding them to the cluster whose
// seed they are nearest. Can overwrite existing cluster file, or write a new one.
#include <fstream>
#... |
#include "RobotAutomaton.h"
#include "core/math/random/Random.h"
#include "core-ext/animation/CAnimAction.h"
#include "core-ext/animation/CAnimation.h"
#include "engine/physics/motion/CRigidbody.h"
#include "engine/physics/collider/types/CCapsuleCollider.h"
#include "engine/physics/raycast/Raycaster.h"
#include "r... |
#include <iostream>
#include <string>
#include <cstdlib>
#include <random>
#include <omp.h>
#include <math.h>
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
namespace py = pybind11;
typedef int NodeIDType;
typedef int EdgeIDType;
typedef float TimeStampType;
class TemporalGraphB... |
/**
* Copyright (C) 2020-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... |
/********************************************************************
Written by <NAME>
Please see the file HEART_LICENSE.txt in the source's root directory.
*********************************************************************/
#include "rapidjson/rapidjson.h"
#include "rapidjson/document.h"
#include "rapidjs... |
#include "ofApp.h"
#include <map>
// member identity
#define ID_BAG (0x1D00 + 0x10)
#define ID_BELL (0x1D00 + 0x20)
#define ID_CONDUCTOR (0x1D00 + 0x30)
#define ID_DISTANCE (0x1D00 + 0x40)
// #define ID_DOOR (0x1D00 + 0x50)
#define ID_FLOAT (0x1D00 + 0x60)
#define ID_FUR ... |
// 实验二.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include"common.h"
#include<windows.h>
#include<string.h>
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include <sstream>
#include <algorithm>
#include<gl/glui.h>
#include<gl/glut.h>
#include<vector>
int g_xform_mode = TRANSFORM_NONE;
int g... |
#include "CondTools/Ecal/interface/EcalLaserHandler.h"
#include "CondTools/Ecal/interface/EcalTPGTPModeHandler.h"
#include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
#include "OnlineDB/EcalCondDB/interface/RunTPGConfigDat.h"
#include "OnlineDB/EcalCondDB/interface/FEConfigMainInfo.h"
#include "OnlineDB/EcalCondDB/i... |
#include "OscillatorExperiments.h"
/** Morph between saw-down (p = -1), triangle (p = 0), saw-up (p = +1). A bit care is to be taken
for p = -1, because there's a potential division by zero in this case (it actually mostly ends
up in the branch where ther is no such division but i'm not totally sure if there can't be... |
//-----------------------------------------------------------------------------------
//
// SAFECASS: Safety Architecture For Engineering Computer-Assisted Surgical Systems
//
// Copyright (C) 2012-2016 <NAME> and <NAME>
//
//-----------------------------------------------------------------------------------
//
// Crea... |
/* -----------------------------------------------------------------------------
The copyright in this software is being made available under the BSD
License, included below. No patent rights, trademark rights and/or
other Intellectual Property Rights other than the copyrights concerning
the Software are granted unde... |
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <atomic>
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/math/fwd-POI.hpp>
#include <java/lang/Number.hpp>
#include <java/lang/Comparable.hpp>
... |
/***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
//---------------------------------------------------------------------------//
//!
//! \file tstModuleInterface.cpp
//! \author <NAME>
//! \brief Collision module interface unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#include <iostream>
// Tri... |
//========================================================================
// Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
//
// Author: The ALICE Off-line Project.
// Contributors are ... |
#include <stdlib.h>
#include <stdio.h>
#include <GL/glew.h>
//#define GL3_PROTOTYPES 1
//#define GL_GLEXT_PROTOTYPES
//#include <GL/gl.h>
#include <SDL2/SDL.h>
#include "Vec2.h"
#include "Vec3.h"
#include "GLObject.h"
#include "Shader.h"
#include "GLfunctions.h"
#include "GLobjects.h"
#include "GLInstances.h"
#incl... |
#include "wanglandau.h"
#include "stdio.h"
extern Topo topo;
long WangLandau::meshOrderMoveMolecule(Molecule &target, Particle chorig[], Mesh *mesh, int wli) {
assert(target.size() > 0);
int change;
if(target.size() == 1) { // single particle
int nx,ny,ox,oy; // position in mesh
... |
/**
*
* @author <NAME>
* @copyright 2016 <NAME>, <EMAIL>
* @date 25.07.2015, 02.04.2016, 04.05.2016, 25.09.2016
* @name pirate_teensy_control.cpp
* @description (Arduino Nano) Teensy Controller for the IR, PIR, RELAY and MD25 Motors
* 01.10.2016: Switched to Teensy because Nano has only 2K RAM but Teensy has 64K... |
/* MPU6050 Library
*
* @author: <NAME>
* @date: July 16, 2015
* @license: MIT license
*
* Copyright (c) 2015, <NAME>, <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... |
#include "shape_dialog.h"
#include "v3d_message.h"
#include <vector>
#include <math.h>
#include "string"
#include "sstream"
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <algorithm>
#include <basic_landmark.h>
#include <map>
shape_dialog::shape_dialog(V3DPluginCallback2 *cb)
{
... |
#include <math.h>
#include <string.h>
extern "C" {
#include "mwtypes.h"
PMWIMAGEHDR CannyEdgeDetect(PMWIMAGEHDR pimage);
};
/**
* This software has been released into the public domain.
* Please read the notes in this source file for additional information.
*
* This class provides a configurable implementation ... |
#include <cmath>
#include "common/String.h"
#include <string>
#include <cstring>
//Kelvin to Joule Scale
static int KtoJS = 1000000;
//from nuclear-power.net
static float aV = 15.76f;
static float aS = 17.81f;
static float aC = 0.711f;
static float aA = 23.7f;
static float aP = 34.4f; //34.4 for (3 / 4), 11.18 for (... |
/* WS2812Serial - Non-blocking WS2812 LED Display Library
https://github.com/PaulStoffregen/WS2812Serial
Copyright (c) 2017 <NAME>, PJRC.COM, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... |
/*******************************************************************************
* Copyright 2021-2022 Intel Corporation
* Copyright 2022 FUJITSU LIMITED
*
* 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 ... |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/**
* Copyright (c) 2019 DKFZ - ODCF
*
* Distributed under the MIT License (license terms are at https://github.com/dkfz-odcf/FastqIndEx/blob/master/LICENSE.txt).
*/
#include "common/StringHelper.h"
#include "process/extract/Extractor.h"
#include "process/index/Indexer.h"
#include "process/io/FileSink.h"
#include ... |
#include <ros/ros.h>
#include <boost/make_shared.hpp>
#include <cstdlib>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/client/terminal_state.h>
#include "dji_auto_search/searchers.h"
using namespace DJI::onboardSDK;
using namespace cv;
std::vector<PotentialArea> path_points;
std::vector<Potent... |
//
// Created by hpeng on 2/1/18.
//
#include <src/util/AlgUtils.h>
#include "SemanticParser.h"
void SemanticParser::InitParams(ParameterCollection *model) {
// shared
BiLSTM::InitParams(model);
// concate head to words after lstm
params_ = {
{"pred_w1_self_", model->add_parameters({MLP_DIM, 2 * LSTM_DIM})},
... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "LevelFluxRegisterEdge.H"
#include "LayoutIterator.H"
#include "Debu... |
int
Jt/*AX*/
,
Hv
,/*9E*/ yQ
,EHR
,
IA //5pu
,
YKf
, I, Y6d
, XAO ,//
aM,cv,/*8*/
SuW, yTr , HO1b7,
RRkv,cwHo
//MsD1b
,R4uX,FWQ3 ,
zY
,FQ
, wuN, HO9Py
,
gBBZ ,
dqiQ ,
YtL
; void f_f0 (){ volatile int v8//8Rf
, /*Vy*/Z
, Cw
,K48, OZ,n ,L
;
{ volatile int u , H6
, oR ,An5,
BU, q85i ,SKB
;... |
/*
* VCFPrinter.cpp
*
* Created on: Aug 24, 2015
* Author: fsedlaze
*/
#include "VCFPrinter.h"
void VCFPrinter::print_header() {
fprintf(file, "%s", "##fileformat=VCFv4.1\n");
fprintf(file, "%s", "##source=Sniffles\n");
string time = currentDateTime();
fprintf(file, "%s", "##fileDate=");
fprintf(file,... |
// 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.
#include <sstream>
#include <gtest/gtest.h>
#include "files/file_path.h"
#include "macros.h"
// This macro helps avoid wrapped lines in the test st... |
//
// editor.cpp
// CodeEditor
//
// Created by <NAME> on 26/09/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include "editor.h"
#include "stdio.h"
#include "lexer.h"
#include "file.h"
#include <math.h>
#include <curses.h>
#include "helper.h"
#define ctrl(x) ((x) & 0x1f)
namespace top {
... |
//
// Copyright (C) 2013 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 "glDrawControl.h"
//#include <gl/gl.h>
/*
float vertPosTri_1[9] = { 0.0f, 0.0f, -5.0f, 2.0f, 0.0f, -5.0f, 0.0f, 2.0f, -5.0f };
// fixed to be counter wise order two :
float vertPosTri_2[9] = { -3.0f, -3.0f, -8.0f, 0.0f, -3.0f, -8.0f, -3.0f, 1.0f, -8.0f };
// Blue :
float vertColTri_1[9] = { ... |
/*
* IGC file downloader
*/
#include <iostream>
#include <sstream>
#include <math.h>
#include <string>
#include <time.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_CRYPTO
# ifdef CRYPTPP
# include <cryptopp/default.h>
# include <cryptopp/rsa.h>
# include <cryptopp/base64.h>
# include <cryptopp/hex.h>
#... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
constexpr double pi() { return M_PI; }
double deg2rad(double x) { retu... |
// SPDX-FileCopyrightText: 2021 CERN
// SPDX-License-Identifier: Apache-2.0
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "example13.h"
#include "example13.dp.h"
#include <AdePT/Atomic.h>
//#include <AdePT/BVHNavigator.h>
#include <AdePT/MParray.h>
#include <CopCore/Global.h>
#include <CopCore/PhysicalCon... |
#pragma comment( lib, "..\\..\\Lib\\Win32\\Debug\\AppFramework.lib" )
#include "../include/App.h"
#include "../../SkyEngine/include/SkyEngine.h"
bool App::CreateWorld()
{
mixValue = 0.5f;
glDisable(GL_CULL_FACE);
lampProgram = new ShaderProgram("./assets/lamp.vert", "./assets/lamp.frag");
lightingProgram = new S... |
#include "processor/Symmetrizer.hpp"
#include "terms/BinaryTerm.hpp"
#include "terms/GeneralTerm.hpp"
#include "terms/Tensor.hpp"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "IndexHelper.hpp"
namespace cp = Contractor::Processor;
namespace ct = Contractor::Terms;
template< typename term_t > void anti... |
/**
* @file P1Meter.cpp
* @author <NAME> (<EMAIL>)
* @brief P1 Meter class to retrieve and parse the P1 telegram
* @version 0.1
* @date 2021-12-28
*
* @copyright Copyright (c) 2021
*
*/
#include "P1MeterParser.h"
#include "CRC16.h"
/**
* @brief Basic constructor with only a serial object. Make sure that t... |
#include <SFML/Graphics.hpp>
#include<SFML/Audio.hpp>
#include"button.h"
#include"entity.h"
#include<iostream>
#include<fstream>
#include<vector>
#include<algorithm>
#include<string>
extern bool gameclear;
extern bool menumode;
extern int mapstate;
extern bool reset;
extern int testtime;
extern int second;
//class but... |
//
// Copyright (C) 2009 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
/*
* global.cxx
*
* Created on: 16 дек. 2018 г.
* Author: root
*/
#include "global.h"
#include "engine/proto/json_proto.h"
#include "engine/settings_adm.h"
eErrorTp CpuInfo::init(){
cpu_result=Json::Value(Json::arrayValue);
FILE *cpuinfo = fopen("/proc/cpuinfo", "r");
if (cpuinfo==NULL)
return ERR... |
#include <algorithm>
#include <assert.h>
#include "Segments.h"
#include "Utils.h"
extern GeneralData* genData;
extern Config* conf;
void Segments::get_from_file() {
FILE* infile = fopen(conf->segmentfile.c_str(), "r");
if (!infile){
fprintf(stderr, "Could not open file %s for reading!\n", conf->segmentfile.c... |
#include "imexport.h"
#include <fstream>
//#include "../../../../share/include/scenedata.h"
#include "../../../../share/include/useshare.h"
#include "../../../../utility/include/useutility.h"
bool ImExport::load(const std::string& strInFile, const std::string& strFormat, const std::string& strContent, const std::strin... |
// tweakseq - provides an editor for and interface to various sequence alignment tools
//
// The MIT License (MIT)
//
// Copyright (c) 2000-2018 <NAME>, <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
/*
Copyright (c) 2018, <NAME>. (<EMAIL>)
All rights reserved.
This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
Dynacoe was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated doc... |
// Copyright (c) 2013 University of Pennsylvania
//
// 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, modif... |
/*
Copyright 2015 University of Rochester
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 wr... |
#include <stdio.h>
#include <semaphore.h>
#include <opencv2/opencv.hpp>
#include <dlib/image_io.h>
#include <dlib/opencv/cv_image.h>
#define OPENCV_DISPLAY 0
#define DETECTOR_RATE 2
#if !OPENCV_DISPLAY
#include <dlib/gui_widgets.h>
#endif
#include <dlib/image_processing/render_face_detections.h>
using namespace cv;
... |
/*
100% free public domain implementation of the SHA-1 algorithm
by <NAME> <<EMAIL>>
Web: http://www.dominik-reichl.de/
See header file for version history and test vectors.
*/
// If compiling with MFC, you might want to add #include "StdAfx.h"
#define _CRT_SECURE_NO_WARNINGS
#include "SHA1.h"
#define SHA1_... |
//
// stable.cpp
// SLAM_VO_ORB
//
// Created by ALXD on 10/25/18.
// Copyright © 2018 ALXD. All rights reserved.
// The codes are extended from the sample codes of SLAM book of GaoBo
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgu... |
/**
* mexFelzenSegmentIndexFeatures.cpp
*
* A modified version of the modified version of the Felzenszwalb algorithm
* found in Jasper Uijlings Selective Search code to interface with Matlab.
*
* Generalized to handle images where the third dimension is an arbitrary
* length feature vector for each pixel.... |
#include "squid.h"
#include "acl/Gadgets.h"
#include "cache_cf.h"
#include "comm/Connection.h"
#include "ConfigParser.h"
#include "fde.h"
#include "globals.h"
#include "hier_code.h"
#include "ip/tools.h"
#include "ip/QosConfig.h"
#include "Parsing.h"
#if HAVE_ERRNO_H
#include <errno.h>
#endif
/* Qos namespace */
vo... |
/**********
Wifi Display Source
**********/
#include "WifiDisplaySource.hh"
#include "RTSPCommon.hh"
#include <liveMedia.hh>
#include <string.h>
#include <GroupsockHelper.hh>
enum {
STATE_INITIALIZED,
STATE_AWAITING_CLIENT_CONNECTION,
STATE_AWAITING_CLIENT_SETUP,
STATE_AWAITING_CLIENT_PLAY,
STATE... |
#include <stdlib.h>
#include <cstdio>
#include <cstring>
#include <vector>
#include <stack>
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif // _MSC_VER
#include <math.h>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#define GL_GLEXT_PROTOTYPES
#define EGL_EGLEXT_PROTOTYPES
#else
//#include <glad/glad.h>
#include <GL/g... |
//
// Copyright (c) 2016 - 2017 Mesh Consultants Inc.
// 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, ... |
#include "tiger/regalloc/regalloc.h"
#include "tiger/output/logger.h"
#include <sstream>
extern frame::RegManager *reg_manager;
namespace ra {
RegAllocator::RegAllocator(frame::Frame *frame, std::unique_ptr<cg::AssemInstr> assem_instr)
: frame_(frame), assem_instr_(std::move(assem_instr)) {
global_map_ = temp:... |
#include <QtGui/QScreen>
#include <QtGui/QKeyEvent>
#include <string>
#include "util.h"
#include "mesh.h"
#include "simwindow.h"
#include "glpointcloud.h"
#include "sphgrid.h"
#include "types.h"
SimWindow::SimWindow()
: m_show_shortcuts(true) // immediately toggled below
, m_dynamics(false)
, m_show_bbox(true)
... |
// license:BSD-3-Clause
// copyright-holders:Farfetch'd, <NAME>
/*
Intel i960 disassembler
By Farfetch'd and <NAME>
*/
#include "emu.h"
#include "i960dis.h"
const i960_disassembler::mnemonic_t i960_disassembler::mnemonic[256] = {
{ "?", 0 }, { "?", 0 }, { "?", 0 }, { "?", 0 }, { "?", 0 }, { "?", 0 }, { "?"... |
#include "regex_tree.h"
RegexTree::RegexTree(const char *str) {
root = new tree_node;
root->c = CAT;
root->right = new tree_node;
root->right->c = ACCEPT;
int len = static_cast<int>(strlen(str));
root->left = build_block(str, len);
root->left = clean_block(root->left);
}
tree_node *RegexT... |
#include <vector>
#include <memory>
#include "protontrajsim.hpp"
using namespace s13::common;
using namespace s13::sim;
s13::sim::MaterialManager s13::sim::g_material_manager;
std::shared_ptr<s13::sim::Material> s13::sim::g_default_material = LoadMaterial("vacuum", "data/p_in_vacuum.csv");
s13::sim::RunManager s1... |
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DynaMap: A non-Rigid SLAM implementation %
% by: <NAME> %
% University of Bonn- MSc Robotics & Geodetic Engineering %
% <EMAIL> %
% AlirezaAhmadi.xyz ... |
#include "app.hxx"
#include "env.hxx"
#include "tracerxml.hxx"
#include "tracergraph.hxx"
#include "amr/boxtree_boxlib.hxx"
#ifdef KNOB_MOTA
#include "amr/mota/mota.hxx"
#endif
#include <fstream>
#include <tuple>
#include <string>
#include <chrono>
using namespace std;
using namespace programr;
using namespace progr... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <learnopengl/shader.h>
#include <learnopengl/camera.h>
#include <learnopengl/model.h>
#include <LearnOpenGL/assets_directory.h>
#include <LearnOp... |
// Copyright 2017 Akamai Technologies, Inc. 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 requir... |
#include <emscripten/bind.h>
#include "replayviewer.hpp"
void ReplayViewer::open(std::string path) {
p.open(path);
p.generateFullPacketCache();
p.readHeader();
}
void ReplayViewer::setTick(int tick) {
p.skipTo(tick);
replayTick = tick;
isPaused = false;
}
int ReplayViewer::skipToNextFullPacket(int direct... |
#include "stdafx.h"
#pragma hdrstop
#include "Exporter.h"
#include "MeshExpUtility.h"
// ================================================== FindPhysiqueModifier()
// Find if a given node contains a Physique Modifier
// DerivedObjectPtr requires you include "modstack.h" from the MAX SDK
Modifier* FindPhysiqueModifier ... |
#include "NvInfer.h"
#include "cuda_runtime_api.h"
#include "logging.h"
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <vector>
#include <chrono>
#include <cmath>
#define CHECK(status) \
do\
{\
auto ret = (status);\
if (ret != 0)\
{\
std::c... |
#include "src/dimacsparser.h"
//#include <boost/lexical_cast.hpp>
#include "sampler.h"
#include <iostream>
#include <sys/types.h>
#include <unistd.h>
#include <unordered_map>
vector<Lit> Sampler::AddVariableDiffHelper(SATSolver *solver2,
map<string, vector<Lit>> &all_vars) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.