text
stringlengths
5.71k
33.7k
#include <iostream> #include <map> #include <string> static const std::map<std::string, std::string> companies = { {"01", "Nintendo"}, {"02", "Nintendo"}, {"08", "Capcom"}, {"0A", "Jaleco / Jaleco Entertainment"}, {"0L", "Warashi"}, {"0M", "Entertainment Software Publishing"}, {"0Q", "IE In...
// MIT License // Copyright (c) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmOutputConverter.h" #include <algorithm> #include <assert.h> #include <ctype.h> #include <set> #include <sstream> #include <vector> #include "cmAlgorithms.h" #...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) a...
/** * @file WebSockets.cpp * @date 20.05.2015 * @author <NAME> * * Copyright (c) 2015 <NAME>. All rights reserved. * This file is part of the WebSockets for Arduino. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publ...
#include "ParametersSolo.h" #include "Parameters.h" #include "ErrorWarning.h" #include "streamFuns.h" #include "SequenceFuns.h" #include "serviceFuns.cpp" #include <stdlib.h> void ParametersSolo::initialize(Parameters *pPin) { pP=pPin; barcodeStart=barcodeEnd=0; //this means that the entire barcodeRead is co...
#include "inspect.h" #include <elf.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <cstdint> #include <iostream> #include <fstream> #include <map> #include <set> #include <sstream> #include <string> #include <system_error> #include <unordered_map> #i...
/***************************************************************************** * * * PLAST : Parallel Local Alignment Search Tool * * Version 2.3, released November 2015 * * ...
//MIT License // //Copyright (c) 2018 <NAME>-Scarzanella // //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...
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
// license:BSD-3-Clause // copyright-holders:<NAME>, <NAME>, <NAME>,<NAME> /*************************************************************************** machine.c Functions to emulate general aspects of the machine (RAM, ROM, interrupts, I/O ports) The I8742 MCU takes care of handling the coin inputs and the ...
// CS448F final project // Implementation of PatchMatch algorithm and its applications // <NAME> (<EMAIL>) #include "main.h" #include "File.h" #include "Geometry.h" #include "PatchMatch.h" #include "Arithmetic.h" #include "Calculus.h" #include "Statistics.h" #include "Filter.h" #include "Paint.h" #include "Display.h...
// // Created by fcx on 2020/5/7. // #include <log.h> #include <wvr/wvr_render.h> #include <wvr/wvr_device.h> #include "wvr/wvr_projection.h" #include <utils.h> #include <ui/component/base.h> #include "wvr_scene.h" #include "wvr_utils.h" static void dumpMatrix(const char * name, const glm::mat4& mat) { LOGV("%s =...
/** * NDPluginTimeSeries.cpp * * Plugin that creates time-series arrays from callback data. * * @author <NAME> * @date February 2016 */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <math.h> #include <epicsTypes.h> #include <epicsMessageQueue.h> #include <epicsThread.h> #include <epicsE...
#include <uWS/uWS.h> #include <iostream> #include "json.hpp" #include "PID.h" #include <math.h> // for convenience using json = nlohmann::json; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double deg2rad(double x) { return x * pi() / 180; } double rad2deg(double...
// Copyright 2018 <NAME> // // Using boost with using-declarations seems almost impossible to me. Therefore // disable the cpplint error. // // cpplint: --filter=-build/namespaces #include <sqlite3.h> #include <cmath> #include <fstream> #include <iostream> #include <string> #include <vector> #include <boost/date_tim...
/*, * WidgetPicking_gl.cpp * * Copyright (C) 2020 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "WidgetPicking_gl.h" using namespace megamol; using namespace megamol::gui; megamol::gui::PickingBuffer::PickingBuffer(void) : cursor_x(0.0) , cursor_y(0.0) ...
/* * NDPluginBadPixel.cpp * * Bad pixel processing plugin * Author: <NAME> * * Created April 20, 2021 */ #include <iostream> #include <fstream> #include <iomanip> #include <algorithm> #include <json.hpp> using nlohmann::json; #include <iocsh.h> #include "NDPluginBadPixel.h" #include <epicsExport.h> static c...
/* * Copyright (C) 2021 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
/* * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. You may obtain a copy of the License at * * http://www.apache.org/li...
//*************************************************************************** // // Copyright (c) 1999 - 2006 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 // // ...
#ifndef SWC_RADIUS #define SWC_RADIUS 5 #endif #include "shift_mask2D.h" #ifndef MIN_DIST #define MIN_DIST 0.0000001 #endif double marker_dist(MyMarker a, MyMarker b) { return sqrt((a.x - b.x)*(a.x - b.x) + (a.y - b.y)*(a.y - b.y) + (a.z - b.z)*(a.z - b.z)); } double node_dist(NeuronSWC a, NeuronSWC b) { r...
// // citrus.cpp // orangedetect-xc // // Created by <NAME> on 5/13/21. // #include "citrus.hpp" //**//**//**//**//**//**//**//**// // CONSTRUCTORS & DESTRUCTORS // //**//**//**//**//**//**//**//**// CitrusDetector::CitrusDetector(bool scaleInput){ // Save whether or not to scale image m_scaleInput = s...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Copyright (c) 2017 The Placeholder Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "repositorydialog.h" #include "sendcoinsdialog.h" #include "ui...
#include "CommonTools/PileupAlgos/interface/PuppiContainer.h" #include "DataFormats/Math/interface/deltaR.h" #include "Math/ProbFunc.h" #include "TMath.h" #include <iostream> #include <cmath> #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Utilities/interface/isFinite.h" #include "fastjet/Ps...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "EdgeWalker_Test.h" #include "Intersection_Tests.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkStream.h" #include <algorithm> #inclu...
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
#include "stdafx.h" #include <GWCA/Constants/Constants.h> #include <GWCA/Constants/Skills.h> #include <GWCA/Context/GameContext.h> #include <GWCA/Context/WorldContext.h> #include <GWCA/Packets/StoC.h> #include <GWCA/GameEntities/Skill.h> #include <GWCA/Managers/AgentMgr.h> #include <GWCA/Managers/EffectMgr.h> #inc...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <arith_uint256.h> #include <chain.h> #include <primitives/block....
/* ---------------------------------------------------------------------- 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: Cube.cpp */ /* Date: 24-10-07 */ /* ...
/* BSD 3-Clause License Copyright (c) 2018, KORG 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: * Redistributions of source code must retain the above copyright notice, this list of cond...
#include <string> #include <stdexcept> #include <fstream> #include <vector> #include <ctime> #include "SFML/Graphics.hpp" #include "SFML/Audio.hpp" #include "chip8.hpp" #include "cpu.hpp" // 0x0NNN #define ADDR (opcode & 0x0FFF) // 0x000N #define N (opcode & 0x000F) // 0x0X00 #define X ((opcode & 0x0F00) >> 8) // 0x00...
/// \author <NAME> /// \date 2021/02/02 #pragma once #include "dispatch.hpp" #include "platform.hpp" #include <fmt/format.h> template <typename RouterFunc, typename DemandGeneratorFunc> Platform<RouterFunc, DemandGeneratorFunc>::Platform(PlatformConfig _platform_config, ...
/* Copyright 2013 Yahoo! Inc. */ /* See LICENSE in the root of the distribution for licensing details. */ // Unit Tests for mdbm_get_limit_size #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <...
/*=========================================================================* | | | | Copyright 1995 by Microsoft Corporation | | KevinGj - January 1997 | ...
#include "smiley.h" #include "molecule.h" #include "test.h" #include <cassert> using namespace Smiley; MoleculeSmilesCallback callback; const Molecule &mol = callback.molecule; PrintCallback smartscallback; const std::string &primitives = smartscallback.str; typedef Parser<PrintCallback> ParserType; ParserType::Mo...
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // <NAME>, November 2011 #include "helmsman/test_controller.h" #include <stdio.h> #include <string.h> #include <sys/time.h> #include "common/ar...
#include "amulet.h" static double total_texture_memory = 0.0; static int create_texture2d(lua_State *L) { if (!am_gl_is_initialized()) { return luaL_error(L, "you need to create a window before creating a texture"); } int width = 0; int height = 0; am_texture_min_filter minfilter = AM_MIN_...
/**************************************************************************** * Authors: * <NAME> (<EMAIL>) ****************************************************************************/ #include "CalibPPS/AlignmentRelative/interface/Utilities.h" #include "DataFormats/CTPPSDetId/interface/CTPPSDetId.h" #include "Da...
#include "renderer.h" #include "dxutil.h" #include "apputil.h" #include "scene.h" #include "imgui.h" #include "imgui_impl_dx11.h" #include <d3dcompiler.h> #include <vector> static const D3D_FEATURE_LEVEL kMinFeatureLevel = D3D_FEATURE_LEVEL_11_0; static const int kSwapChainBufferCount = 3; static const DXGI_FORMA...
// vowel_recognition.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <cstring> #include <limits> #include "stdlib.h" #include "math.h" #include "ctype.h" #define N 320 //total sample in one frame #define P 12 #define F 5 // count of stable frames #define ...
/* * $Id: driver.c,v 1.7 2008/09/24 22:35:21 jms Exp $ * * Revision History * =================== * $Log: driver.c,v $ * Revision 1.7 2008/09/24 22:35:21 jms * remove build number header * * Revision 1.6 2008/09/24 22:30:29 jms * remove build number from default header * * Revision 1.5 2008/03/21 17:38...
// ImGui GLFW binding with OpenGL3 + shaders // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives...
//#include <stb_image.h> #include <glm/gtc/matrix_transform.hpp> #include <learnopengl/filesystem.h> #include <learnopengl/shader.h> #include <iostream> #include <ctime> #include "Cube.h" #include "Plane.h" #include "Sphere.h" #include "EmptyModel.h" #include "ModelHandler.h" #include "PhysicsHandler.h" #...
// Written: <NAME> (<EMAIL>) // Advisor: Prof. <NAME> // Stanford University // Created: 12/1998 // Revised: 12/2001 // // Description: This file contains the class definition for // SymSparseinSolver. It solves the SymSparseLinSOEobject by calling // some "C" functions. The solver used here is a sy...
#include <iostream> #include <vector> #include <string> #include <memory> #include <map> #include <fstream> #include <algorithm> #include <set> #include <iterator> #include <unordered_set> #include <unistd.h> #include <ios> #include <ctime> #include <sys/time.h> #include <sys/resource.h> #include <getopt.h> #includ...
/******************************************************************************* INTEL CORPORATION PROPRIETARY INFORMATION This software is supplied under the terms of a license agreement or nondisclosure agreement with Intel Corporation and may not be copied or disclosed except in accordance with the terms of th...
// Integrantes del Equipo: // <NAME> / A01024927 // <NAME> / A01025303 #include <iostream> #include <string> #include <fstream> #include <vector> #include <sstream> using namespace std; class Record{ public: // Atributos string fecha; string hora; string ipFuente; int puertoFuente;...
#include <glad/glad.h> #ifdef WIN32 #include <GLFW/glfw3.h> #else #include <GLFW/glfw3.h> #endif #include <cmath> #include <iostream> #include <stb_image.h> #include <glm/vec2.hpp> #include <glm/geometric.hpp> #include <arguments.hpp> #include <engine/map.hpp> #include <opengl/shader-program.hpp> #include <opengl/buffe...
// 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 "chrome/browser/dom_ui/chrome_url_data_manager.h" #include "app/l10n_util.h" #include "base/file_util.h" #include "base/message_loop.h"...
/* Copyright (c) 2002, <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 discla...
// Copyright (c) 2007-2009, Google Inc. // Author: <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, // ...
// cmd_combine_bf.cc-- combine several bloom filters into a single file #include <string> #include <cstdlib> #include <cstdint> #include <iostream> #include <vector> #include "utilities.h" #include "bloom_tree.h" #include "file_manager.h" #include "support.h" #include "commands.h" #include "cmd_combine_bf.h" using ...
/* * Copyright (c) 2020 Sprint * * 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...
#include <iostream> #include <string> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <ctype.h> #include <assert.h> #include <vector> #include <algorithm> #include <chrono> using namespace std; // This program scans its input for forward k-3 mers ending with ...
#define STB_IMAGE_IMPLEMENTATION #include <stdio.h> #include <string.h> #include <cmath> #include <vector> #include <GL\glew.h> #include <GLFW\glfw3.h> #include <glm\glm.hpp> #include <glm\gtc\matrix_transform.hpp> #include <glm\gtc\type_ptr.hpp> #include "Window.h" #include "Mesh.h" #include "Shade...
#include <iostream> #include <string> #include <vector> #include <map> #include <queue> #include <chrono> // std::chrono::microseconds #include <thread> // std::this_thread::sleep_for; using namespace std; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////...
/* wsserver.cpp ol.wsserver embedded websocket/http server for max based on civetweb v 0.1 -- licence -- ol.wsserver Copyright (c) 2014 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
/* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
#include "json.hpp" #include <map> #include <string> #include <string_view> using namespace Json; static int main_ret = 0; static int test_count = 0; static int test_pass = 0; #define EXPECT_EQ_BASE(equality, expect, actual, format) \ do ...
#include "hf-problem.hpp" #include <scip/scip.h> #include <unordered_map> #include <sstream> #include <scip/scipdefplugins.h> #define SCIP_CHK(x) do \ { ...
#include "../include/cpp_lane_line_detection.h" using std::placeholders::_1; LaneLineDetection::LaneLineDetection() : Node("cpp_lane_line_detection") { loadParam(); initNode(); get_M_Minv(); } void LaneLineDetection::loadParam() { this->declare_parameter<string>("image_sub_topic_name", "/camera/image_raw...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
// Copyright 2020, General Electric Company. All rights reserved. See https://github.com/xcist/code/blob/master/LICENSE #include <math.h> // fabs(), sqrt(), sin(), cos() #include <stdlib.h> // malloc(), free() #include <stdio.h> #include <string.h> #include "DD3_roi_notrans_mm.hpp" //Version 1.0 , mask, and no tran...
// // Created by kellerberrin on 20/6/21. // #include "kgl_analysis_mutation_gene_allele.h" #include "kgl_variant_db_freq.h" #include "kgl_variant_sort.h" #include "kgl_variant_factory_vcf_evidence_analysis.h" #include "kel_distribution.h" #include <fstream> namespace kgl = kellerberrin::genome; void kgl::Generate...
#include "OpenVSLAMStereoTracker.h" #include "Utils/TimeMeasurement.h" #include "Utils/Math.h" #include "Utils/StringHelper.h" #include "Utils/Transformations.h" #include "Utils/CustomConfig.h" #include "InterfaceImpl/LpSlamConversion.h" #include <openvslam/publish/map_publisher.h> #include <opencv2/imgproc/imgproc....
/* * Copyright (c) 2006-2007 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * inclu...
/** \class SETPatternRecognition <NAME>, <NAME>, <NAME> */ #include "RecoMuon/MuonSeedGenerator/src/SETPatternRecognition.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/Event.h" #include "RecoMuon/TrackingTools/interface/MuonPatternRecoDumper.h" #include "FWCore/Me...
// Copyright 2012 the V8 project authors. 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 ...
/*************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* University of Edinburgh, UK */ /* ...
/* ******************************************************************************* * Copyright (C) 2014, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * icuapps/webdemo/collation/sortcgi.cpp * * created on:...
// =============================================================================== // NVIDIA PHYSX SDK TRAINING PROGRAMS // LESSON 804: USER CONTROLLED THREADS // // Written by <NAME>, 5-1-06 // Updated by <NAME>, 7-1-08 // =====================================================================...
#include "mfem.hpp" #include "object.h" #include "object_cc.hh" #include "ddcMalloc.h" #include "pio.h" #include "pioFixedRecordHelper.h" #include "units.h" #include <fstream> #include <iostream> #include <sstream> #include <unordered_map> #include <cassert> #include <memory> #include <set> #include <dirent.h> #include...
/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * not...
#include <limits> // for std::numeric_limits #include <vector> #include <functional> #include "fmt/core.h" #include "i_resolve_header.hpp" #include "hier_tree.hpp" std::pair<int, int> Hier_tree::min_wire_cut(Graph_info<g_type>& info, int cut_set) { auto& g = info.al; set_vec_t& sets = info.sets; auto...
#include "base/glfw_base.h" #include "common/camera.h" #include "common/shader.h" #include "common/texture.h" #include "common/model.h" // settings const unsigned int SCR_WIDTH = 1280; const unsigned int SCR_HEIGHT = 720; class GlfwBaseCallbackImpl : public GlfwBaseCallback { public: GlfwBaseCallbackImpl() { }...
/*! \class VGrIsuAnalyzer \brief analysis routines from GrIsu package this code is copied from the GrIsu Package, see http://www.physcis.utah.edu/gammaray/GrISU/GrISU/Documentation/grisu.html */ #include "VGrIsuAnalyzer.h" VGrIsuAnalyzer::VGrIsuAnalyzer() { fGrIsuVersion = "3.0.0"; } VGrIsuAnalyze...
#include "FWCore/Framework/interface/global/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Utilities/interface/do_nothing_deleter.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/SiPixelDetId/interface/Pi...
/******************************************************************************* * Copyright (C) 2020 <NAME>, University of Lausanne * Copyright (C) 2020 <NAME>, University of Lausanne * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation f...
/** * \file QryWdbeCprList.cpp * job handler for job QryWdbeCprList (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WDBECMBD #include <Wdbecmbd.h> #else #include <Wdbed.h> #endif #include "QryWd...
#include "HPack.h" #include <utility> using namespace Net::Http::V2; const std::pair<std::string_view, std::string_view> HPack::StaticTable[61] = { { ":authority", "" }, { ":method","GET" }, { ":method","POST" }, { ":path","/" }, { ":path","/index.html" }, { ":scheme","http" }, { ":scheme","https" ...
/* * BSD 3-Clause License * * This file is part of the CameraLidarCalibrator distribution (https://github.com/LRMPUT/CameraLidarCalibrator). * Copyright (c) 2020, <NAME> (<EMAIL>) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided...
//////////////////////////////////////////////////////////////////////////////// /// /// Beats-per-minute (BPM) detection routine. /// /// The beat detection algorithm works as follows: /// - Use function 'inputSamples' to input a chunks of samples to the class for /// analysis. It's a good idea to enter a larg...
#include "dlr_tensorflow/dlr_tensorflow.h" #include <cstring> #include <fstream> #include <numeric> #include <regex> using namespace dlr; std::string dlr::GetTensorflowFile(const std::string& dirname) { // Support the case where user provides full path to .pb file. if (EndsWith(dirname, ".pb")) { return dirn...
// Copyright (c) 2019 The Khronos Group Inc. // Copyright (c) 2019 Valve Corporation // Copyright (c) 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 // // http://www...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
// Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #include "ActiveForceCompute.h" #include "hoomd/Saru.h" #include <vector> using namespace std; using namespace hoomd; namespace py =...
/* Mednafen - Multi-system Emulator * * 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 is distrib...
/**************************************************************************** ** ** Copyright (C) 2017 TU Wien, ACIN, Vision 4 Robotics (V4R) group ** Contact: v4r.acin.tuwien.ac.at ** ** This file is part of V4R ** ** V4R is distributed under dual licenses - GPLv3 or closed source. ** ** GNU General Public License Usa...
/* * Generate the validation_data.* files for the zones given on the STDIN. The * transition time and UTC offsets are calculated using Howard Hinnant's date.h * and tz.h library. * * Usage: * $ ./test_data_generator.out \ * --scope (basic | extended) \ * --tz_version {version} \ * [--db_namespace {db}...
#include "5point.h" #include "Polynomial.h" #include "Rpoly.h" // Enable this for a more robust test against outliers //#ifdef ROBUST_TEST using namespace std; using namespace Eigen; static void ProjectionsFromEssential(const EMatrix &E, PMatrix &P1, PMatrix &P2, PMatrix &P3, PMatrix &P4); static Vector4d Triangulat...
#include <ctype.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "vpparser.h" struct _opcode { const char *mnemonic; u32 opcode; s32 src_slots[3]; u32 nr_src; bool is_imm; } vp_opcodes[] = { { "NOP", OPCODE_NOP,{-1,-1,-1},0,false }, { "ABS", OPCODE_ABS,{ 0,-1,-1},1,false }...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2021 HPCC Systems®. 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 a...
/* Copyright © 2015 by The qTox Project Contributors This file is part of qTox, a Qt-based graphical interface for Tox. qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
#include <internet/pop3Lib.h> /*---------------------------------------------------------------------------*/ EXC_TYPE EncodePOP3ExtAcc (const POP3ACCOUNTDEF *pAccDef, LPTSTR lpszEnc, const UINT32 ulMaxLen) { LPTSTR lsp=lpszEnc; UINT32 ulRemLen=ulMaxLen; EXC_TYPE exc=EOK; if ((NULL == pAc...
/*************************************************************************** * * unique.cpp - test exercising 25.2.8 [lib.alg.unique] * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor lic...
/*===============================================================*/ /* */ /* face_detect.cpp */ /* */ /* Main host function for the Face Detection...
#include <xenos/xe.h> #include <stdio.h> #include "gfx.h" extern "C" void do_edram_foo(struct XenosDevice *xe, int complete); struct XenosSurface *gfxplane; struct XenosDevice _xe, *xe; struct XenosShader *sh_ps, *sh_vs; struct XenosVertexBuffer *vb; struct XenosIndexBuffer *ib; static unsigned char content_datapsp...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...