text
stringlengths
3.08k
22k
#include "OccupancyGrid/loadData.h" #include "OccupancyGrid/cvmat_serialization.h" #include <boost/typeof/typeof.hpp> #include <cstdio> using namespace std; using namespace gtsam; void loadDataFromTxt(const std::string& odometry_fname, const std::string& snapshot_fname, vector<Pose2>& allposes, vector<dou...
/* * (c) Copyright 2011-2014, Hewlett-Packard Development Company, LP */ #include "bf_tree_cleaner.h" #include "sm_base.h" #include "bf_tree.h" #include "generic_page.h" #include "fixable_page_h.h" #include "log_core.h" #include "alloc_cache.h" #include "stnode_page.h" #include "vol.h" #include "xct_logger.h" #inclu...
/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ #include <ctype.h> #include <rapidjson/document.h> #include <sstream> #include <fstream> #include <boost/uuid/uuid.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include "base/logging.h" #include "base/task.h" #include "base/s...
/* print files * rrvt 11/4/90 * Copyright (C) 1991 by Software Design & Engineering, All rights reserved. */ // This version is written for Windows NT DOS box. #include "stdafx.h" #include "iniFile.h" #include "blkdpo.h" #include "printer.h" #include <Winspool.h> Printer printer; Printer::Printer() : opened...
// With USE_PHOTOSHOP_GAMMA pngtopdf just assumes gamma value of 2.2 // when cHRM chunk exists but gAMA does not exist. #define USE_DEFAULT_GAMMA_22 #include <math.h> #include <cassert> #include <fstream> #include "PNGImage.hh" #include "ColorSpace.hh" // Approximated sRGB QPDFObjectHandle ColorSpace::createsRG...
#include "stdhdr.h" #include "simmath.h" #include "hdigi.h" #include "simveh.h" #include "campwp.h" #include "object.h" #include "otwdrive.h" float HeliBrain::VectorTrack(float, int) { return( 0.0f ); } float HeliBrain::AutoTrack(float) { float rng, desHeading; float rollLoad; float rollDir; float desSpeed; // O...
/* * fram.cpp * * Created on: 23 Apr 2020 * Author: slee */ #include "fram.h" #include "lcd_ui.h" #include "serial_fram_api.h" Status status; /* QSPI HAL object */ cyhal_qspi_t qspi_host_fram_obj; fram_bus_type_t access_mode; /*************************************************************************...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
// // Mist. // #include <fallen/game.h> #include <mfstdlib/mfstdlib.h> #ifndef PSX #include <math.h> #endif #include <fallen/mist.h> #include <fallen/pap.h> // // Messages drawn straight to the screen. // //void MSG_add(CBYTE *message, ...); // // This function returns the height of the floor at (x,z). // It is de...
#include "oscillator.hpp" Oscillator::Oscillator(){ nlevels = 0; Tfinal = 0; basisfunctions = NULL; ground_freq = 0.0; } Oscillator::Oscillator(int id, std::vector<int> nlevels_all_, int nbasis_, double ground_freq_, double selfkerr_, double rotational_freq_, double decay_time_, double dephase_time_, std::vec...
// Copyright (c) 2013, <NAME>, <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 con...
#include <errno.h> #include <string.h> #include <unistd.h> #include <sys/resource.h> #include <sys/time.h> #include <stdio.h> #include <math.h> #include <pthread.h> #include <cstring> #include <jni.h> #include <android/log.h> #include <EGL/egl.h> #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> #include "...
#include <binproffile.h> #include <logging.hpp> #include <limits> #include <assert.h> #include <vector> #include <partitioning_1d.h> BinProfFile::BinProfFile(const std::string& path, const MPI_Comm comm, const MPI_Info& fileinfo) : BinIOBase(path, comm, fileinfo), _requested_chunksize(0) { // Initialize the MPI ...
/*eLiSe06/05/99 Copyright (C) 1999 <NAME> eLiSe : Elements of a Linux Image Software Environment 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 yo...
/* * Copyright (c) 2017 <NAME>. * Copyright (c) 2017 Digiverse d.o.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. The * license should be included in the source distribution of the Software; * if not, you may obtain a copy...
// MinOverlapPlacement.cc // Copyright (c) 2007 Fluxbox Team (fluxgen at fluxbox dot org) // // 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 limitati...
#include <numeric> #include <vector> #include <algorithm> #include <functional> #if defined (STLPORT) && defined (_STLP_DEBUG) && defined (_STLP_DEBUG_MODE_THROWS) # define _STLP_DO_CHECK_BAD_PREDICATE # include <stdexcept> #endif #include "iota.h" #include "cppunit/cppunit_proxy.h" #if !defined (STLPORT) || defin...
#include "GameLevel.h" #include "GameResource.h" #include "GameHelper.h" using namespace cocos2d; using namespace std; using namespace tudo_push_box; Node *GameLevel::InitLevelWithN(int _n) { m_objects.clear(); m_objects.reserve(300); json_object_type jo = GameResource::Instance()->GetLevelData(_n); level = _n;...
#include "luanics/logging/Contract.hpp" #include "luanics/utility/Herald.hpp" #include <cassert> #include <iostream> //******************************************************************* // Selection //******************************************************************* bool isOn() { return true; } void turnOff() {...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Copyright (c) 2021-2021 The Smileycoin 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...
/******************************************************************************\ | OpenGL 4 Example Code. | | Accompanies written series "Anton's OpenGL 4 Tutorials" | | Email: anton at antongerdelan dot <EMAIL> | | First version 27 Jan 2014 ...
/******************************************************************************* * * MIT License * * Copyright (c) 2019 Advanced Micro Devices, 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 * ...
// Copyright (c) 2017 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <hpx/hpx_main.hpp> #include <hpx/include/iostreams.hpp> #include <hpx/lcos/future.hpp> #include "examples/opencl/bench...
// Copyright 2005,2006,2007 <NAME>, <NAME> // $Id: generate.c++,v 1.6 2008-11-04 10:04:27 gergo Exp $ #include <fstream> #include <vector> #include <cstdlib> #include "spec.h" #include "Rule.h" #include "generate.h" void printRuledefs(std::vector<std::vector<RuleDef *> *> &rules, std::ofstream &h, std::ofstr...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
#include "Terrain.h" Terrain::Terrain(const std::string& filename, const int& w, const float& rFactor): Object(filename, 0.0f, 0.0f, 0.0f) { width = w; scanDepth = WORLD_VIEW; terrainMul = 50.0f; textureMul = 0.25f; heightMul = WORLD_CEILING - 25.0f; size = std::sqrt(width * terrainMul * width * terrain...
/* https://www.geeksforgeeks.org/assembly-line-scheduling-dp-34/ A car factory has two assembly lines, each with n stations. A station is denoted by Si,j where i is either 1 or 2 and indicates the assembly line the station is on, and j indicates the number of the station. The time taken per station is denoted by ai,j...
#include <iostream> #include <vector> #include <set> #include <iterator> #include <math.h> #include <chrono> #include <exception> #include <stdexcept> #include <queue> #include <boost/math/distributions/normal.hpp> #include <sys/time.h> #include "ptss_dse.hpp" #include "ptss_config.hpp" #include "ptss_pkmin.hpp" #inclu...
#include "imu.h" //g++ imu.cpp logger.cpp utility.cpp -I ../include -std=c++11 int Imu::get_imu_calibrated_data_ns(State& imu_data) { //identical to get_imu__data, but return calibrated values instead //get_raw_data imu_data.succ_read = -1; imu_data.succ_read = get_imu_data_ns(imu_data); if(...
#include <algorithm> #include <array> #include <cmath> #include <concepts> #include <deque> #include <fmt/core.h> #include <functional> #include <glog/logging.h> #include <iostream> #include <map> #include <memory> #include <optional> #include <queue> #include <range/v3/action.hpp> #include <range/v3/algorithm.hpp> #in...
#pragma once /* Copyright (c) 2019 <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 deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
#pragma once #include <string> #include <deque> #include <cmds.h> #include <debug.h> #include <plugin.h> #include <prpl.h> #include "constants.hpp" #include "thriftclient.hpp" #include "httpclient.hpp" #include "poller.hpp" #include "pinverifier.hpp" #define LINEPRPL_ID "prpl-mvirkkunen-line" class ThriftClient; ...
// Simple Masc example: integer multiplication #include <systemc.h> #include <masc.h> using namespace std; // Masc begin // This Masc code describes a 32x32 -> 64 unsigned integer multiplier // Adapted from significand_multiplier_r4_param in <NAME>'s // library of Verilog reference models. typedef sc_uint<32> ui32...
/* * Copyright (C) 2020 Trinity. All rights reserved. * Copyright (C) 2020 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
#include "EasyUI.h" #include "HTML_PAGE.h" // Added HTML Index Page #include "CSS_STYLE.h" // Added Main CSS Style #include "CSS_NORMALIZE.h" // Added Normalize CSS #include "JS_JQUERY.h" #include <functional> using namespace std; using namespace std::placeholders; // Generate Websockets Script for Webpa...
// Copyright 2020 <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 // or in the the file LICENSE-2.0.txt in the ...
// // antplus : ANT+ Utilities // // 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 ri...
/*! \file optimize_msc.cpp Test a set of cuts, calculated with optimize_msc or otherwise, on a bunch of files \author <NAME> \n UCLA \n <EMAIL> \n \version 1.0 \date 11/06/2007 $Id: test_msc.cpp,v 1.10 2008/02/24 17:40...
/* * (c) Copyright 2019 Xilinx, 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 required by ap...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #include "stdafx.h" #include "HTKDataDeserializer.h" #include "ConfigHelper.h" #include "Basics.h" #include <numeric> // TODO: This will be removed when depen...
/******************************************************************************* * examples/bfs/bfs.cpp * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2017 <NAME> <<EMAIL>> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. *********************************...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2021 <NAME> // // This file is part of `chat-lib`. // // Changelog: // 2021.12.27 Initial version. //////////////////////////////////////////////////////////////////////////////// #include "ContactManagerBuilder.hpp" ...
#include "particle_filter.h" #include <omp.h> /// /// generate a particle filter with /// given nr of particles /// and state space dimension /// particle_filter::particle_filter(int population_size, int state_space_dimension) { // 1. save infos about nr of particles to generate // & dimension of the state s...
#include <iostream> #include "Sales_item.h" using namespace std; void size_of_types() { std::cout << "example size_of_types" << std::endl; std::cout << "size of 'bool' : " << sizeof(bool) << std::endl; std::cout << "size of 'char' : " << sizeof(char) << std::endl; std::cout << "size of 'short' : " << sizeof(s...
#include "ofApp.h" //-------------------------------------------------------------- float ofApp::ease(float p) { return 3 * p * p - 2 * p * p * p; } //-------------------------------------------------------------- ofVec2f ofApp::circle(float n) { return ofVec2f(glm::cos(n), glm::sin(n)); } //----------------------...
/** @defgroup MleDWPAccess Magic Lantern Digital Workprint Library API - Base */ /** * @file DwpInclude.cpp * @ingroup MleDWPAccess * * This file implements the file inclusion used by the Magic Lantern Digital * Workprint Library API. */ // COPYRIGHT_BEGIN // // The MIT License (MIT) // // Copyright (c) 2020 Wi...
// // OCCAM // // Copyright (c) 2011-2018, SRI International // // 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, ...
// 8 september 2015 #include "uipriv_windows.hpp" #include "area.hpp" #include "keyboard.hpp" // TODO https://github.com/Microsoft/Windows-classic-samples/blob/master/Samples/Win7Samples/multimedia/DirectWrite/PadWrite/TextEditor.cpp notes on explicit RTL handling under MirrorXCoordinate(); also in areadraw.cpp too? ...
#include "machine.hpp" // should only be included once #define IOHANDLER(off, x) new (&iologic.at(off - 0xff00)) iowrite_t{iowrite_##x, ioread_##x}; namespace gbc { struct iowrite_t { using write_handler_t = void (*)(IO&, uint16_t, uint8_t); using read_handler_t = uint8_t (*)(IO&, uint16_t); const write_ha...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; static vector<string> rotate_tile(const vector<string>& tile) { vector<string> rotated; for (ull col = 0u; col < tile[0].size(); ++col) { stringstream ss; for (ll row = tile.size() - 1; row >= 0; --row) { ss <...
// System #include <sstream> #include <string> #include <vector> //ROS #include <ros/ros.h> #include <std_msgs/String.h> #include <tf/transform_listener.h> #include <sensor_msgs/PointCloud2.h> #include <pcl_conversions/pcl_conversions.h> // Custom #include <gpg/candidates_generator.h> #include <gpg/hand_search.h> #inc...
#include "game.h" void WindowResize(GLFWwindow* a_window, int a_width, int a_height); Game::Game(int a_width, int a_height, const char* a_windowName) { this->screenWidth = a_width; this->screenHeight = a_height; this->windowName = a_windowName; } int Game::Initialize() { // --- // Initialize GLFW...
/* * * Copyright 2015 gRPC authors. * Copyright 2019 The Alcor Authors - file modified. * * 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...
#include "GrayscaleContour.h" #include <sstream> GrayscaleContour::GrayscaleContour(ros::NodeHandle& nh) : DockShapeVision(nh) { // Set ros params nh.param<int>("grayscale/canny/thresh1", cannyParams.thresh1, 60); nh.param<int>("grayscale/canny/thresh2", cannyParams.thresh2, 100); nh.param<int>("grayscale/blur_...
// Generated from /POI/java/org/apache/poi/hssf/record/UnknownRecord.java #include <org/apache/poi/hssf/record/UnknownRecord.hpp> #include <java/lang/Integer.hpp> #include <java/lang/NullPointerException.hpp> #include <java/lang/String.hpp> #include <java/lang/StringBuffer.hpp> #include <java/lang/StringBuilder.hpp> #...
#include <math/matrix44.hpp> matrix44::matrix44(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33) { /*xAxis = vector3(m00, m01, m02); wx = m03; yAxis = vector3(m10, m11...
#include "RecoEgamma/ElectronIdentification/interface/SoftElectronMVAEstimator.h" #include "DataFormats/TrackReco/interface/Track.h" #include "DataFormats/TrackReco/interface/TrackFwd.h" #include "DataFormats/GsfTrackReco/interface/GsfTrack.h" #include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h" #include "FWCore...
// // Created by <NAME> on 29/12/2017. // #include <cmath> #include <cassert> #include "RRRSequence.h" // MARK: - Constructors - RRRSequence::RRRSequence(block_vector_t const &sequence, uint8_t blocks_in_superblock, block_size_t block_size, R...
#include "stdafx.h" #include <atlexcept.h> #include <list> #include "test/testvars.h" #pragma pack( push,4 ) const unsigned long g_constNumValue = 0x5555; const bool g_constBoolValue = true; unsigned char ucharVar = 10; unsigned short ushortVar = 1020; unsigned long ulongVar = 10002000; unsigned long long ulonglon...
/* For more information on multithreading, see the PDF titled "POSIX Threading Programming Resource" in this folder. */ #include <iostream> #include "GcsServerThread.h" using namespace std; // Global Variable Mutex Definition pthread_mutex_t gcs_server_mutex; // Constructor GcsServerThread::GcsSer...
#include "InterUserState.hpp" #include <fstream> void make_states_unique(std::vector<std::shared_ptr<const data::IntraUserState> >& vector) { // Collect indices to be deleted std::set<int> to_delete; for (int i = 0; i < (int)vector.size(); ++i) { for (int j = i - 1; j >= 0; --j) { if (vector.at(i).get() == ...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et cindent: */ /* 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....
auto YM2612::Channel::Operator::trigger(bool state) -> void { if(keyOn == state) return; //no change keyOn = state; envelope.state = Release; updateEnvelope(); if(keyOn) { //restart phase and envelope generators phase.value = 0; ssg.invert = false; envelope.state = Attack; updateEnvelop...
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
#include "socket.h" #include <stdio.h> #include <iostream> #include <stdlib.h> // Debug print options #define DP 0 //#define DPS " " #define DPS "" bool g_sockets_initialized = false; void sockets_init() { #ifdef _WIN32 WSADATA WsaData; if(WSAStartup( MAKEWORD(2,2), &WsaData ) != NO_ERROR) throw SocketExcepti...
// Copyright (c) 2015 The Brick Authors. #include "brick/platform_util.h" #include <sys/stat.h> #include <glib.h> #include <gio/gio.h> #include <string> #include <fstream> #include "include/wrapper/cef_helpers.h" #include "brick/helper.h" namespace { // The KDE session version environment variable used in KDE 4...
/* Copyright (c) 2007 <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 deal ** in the Software without restriction, including without limitation the rights ** to use, copy, modify, merge, publish...
/* MikMod sound library (c) 1998, 1999, 2000, 2001, 2002 <NAME> and others - see file AUTHORS for complete list. 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...
/****************************************************************************** * Fake Frog * * An Arduino-based project to build a frog-shaped temperature logger. * * Author: <NAME>. Copyright 2017. * *******...
#include "settings.hpp" #include "stdio.h" #include "string.h" Settings::Settings() : trajectoryFileName_("trajectory.csv"), loggingFileName_("logging.txt"), loggingLevel_(Logger::Level::VERBOSE), baudRate_(115200), samplingFreq_(100.0), timeInterval_(0.0), mpuAccelerometerRange_(mpu6050_range_t::MPU60...
#include "terrainvolume.h" #include "gmpfinitedifferencevolume.h" #include "transferfunction.h" #include <QDebug> #include <cmath> #include <random> TerrainVolume::TerrainVolume(GMlib::Vector<int, 3> dim) : GMlib::PFiniteDifferenceVolume<float, 3>() { _dim = dim; data = GMlib::DVectorN<GMlib::CFDCel...
/* _ _ * | | (_) * | | __ _ _ _ _ * | | / _` || | | || | * | || (_| || |_| || | * |_| \__, | \__,_||_| * __/ | * |___/ * * Copyright (c) 2015-22 frank256 * * License (BSD): * * Redistribution and use in source and binary forms, with or without modification, * ar...
// Geodesy.cpp // created by Kuangdai on 15-May-2017 // geodetic tools #include "Geodesy.h" double Geodesy::sFlattening = 0.; double Geodesy::sROuter = 6371e3; RDColX Geodesy::sEllipKnots = RDColX::Zero(0); RDColX Geodesy::sEllipCoeffs = RDColX::Zero(0); void Geodesy::rtheta(const RDCol2 &sz, double &r, double &th...
/****************************************************************************** Copyright (c) <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 limit...
#include "stdafx.h" #include "XRenderRayTrace.h" double unit_limiter1(double vUnitDouble) { double result = vUnitDouble; if (result < 0.0) { result = 0.0; } else if (result > 1.0) { result = 1.0; } return result; } void XRenderRayTrace::SetTargetRect(CRect nRect) { TargetRect = n...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <vector> #include <math.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include "Vec3.h" #include "Mat3.h" #include "Draw2D.h" #include "Draw3D.h" //#include "DynamicOpt.h" #include "spline_hermite.h" #include "CubicBSpline.h" #include "ODE...
// Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
#include "subsystems/VisionSubsystem.h" #include <iostream> #include <vector> #include <photonlib/PhotonUtils.h> VisionSubsystem::VisionSubsystem(Team1259::Gyro *gyro) : m_dashboard (nt::NetworkTableInstance::GetDefault().GetTable("SmartDashboard")) , m_networktable(nt::NetworkTableInstance::GetDefault().GetTab...
#include "functions.h" #include "gpuarray.h" #include "multirankSimulation.h" #include "simulation.h" #include "qTensorLatticeModel.h" #include "landauDeGennesLC.h" #include "energyMinimizerFIRE.h" #include "energyMinimizerGradientDescent.h" #include "noiseSource.h" #include "indexer.h" #include "qTensorFunctions.h" #i...
/* *Copyright 2002 *Center for Biological and Computational Learning at MIT and MIT *All rights reserved. *Permission to copy this software, and its documentation only for internal *research use in your organization is hereby granted, provided that this *notice is retained thereon and on all copies. A patent prot...
/* * Copyright 2016-2021 Arm Limited. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* Copyright (C) 2017 IBM Corp. * 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 writ...
/* * Copyright 2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
#include "kcf_tracker.hpp" KcfParameters::KcfParameters() { this->padding = 2.5; this->lambda = 0.0001; this->outputSigmaFactor = 0.05; this->interpFactor = 0.02; this->cellSize = 4; } KcfTracker::KcfTracker(KcfParameters paras, std::shared_ptr<Kernel> kernel) : m_xf(nullptr), m_kernel(kernel) { m_is...
/* * kernel-fuzzing.git * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. * * Licensed under the Universal Permissive License v1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #include <arpa/inet.h> #include <sys/epoll.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/...
/* * Copyright (c) 2015 The <EMAIL> project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribu...
template<class T> void rsLanden(T k, int M, T* v) { // performs M iterations of the Landen transformation of an elliptic modulus k and returns the // results in the array v which must be of length M+1 int n; if(k == 0.0 || k == 1.0) { v[0] = k; for(n=1; n<M; n++) v[n] = 0.0; return; } e...
/* SPD game library version 0.1. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
/* * Copyright 2016-2018 FlexRAN Authors, Eurecom and The University of Edinburgh * 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 * * U...
/* * Copyright 2020 <NAME> * * 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 writi...
#include "pch.h" // LOL C++ #include <vector> #include <intrin.h> // for __nop() #include <direct.h> // for _mkdir #include <stdio.h> #include <Psapi.h> #include <forklib.h> extern "C" { #include <libipt.h> #include <ipttool.h> #include <intel-pt.h> #include <internal/pt_cpu.h> } #include "debug.h" #include "ptde...
// -*- mode: C++; c-file-style: "cc-mode" -*- //************************************************************************* // DESCRIPTION: Verilator: Hashed common code into functions // // Code available from: http://www.veripool.org/verilator // //***********************************************************************...
// HID // https://www.usb.org/document-library/hid-usage-tables-112 // clang++ main.cpp -std=c++17 -O2 -lwooting_analog_sdk -framework ApplicationServices -o main.out -Wall #include <iostream> #include <thread> #include <mutex> #include <unistd.h> #include <cstring> using namespace std; #include <ApplicationServices...
/***************************************************************************************** * * * GHOUL * * General Helpful Open Utility Library ...
#define VERBOSE #include <stdio.h> #include <string.h> #include <math.h> #include <stddef.h> #include <stdlib.h> #include <float.h> #include <time.h> #include "fctn.h" // These are all of the global variables used during accretion: float anum; planet_pointer planet_head; double stellar_mass_ratio, stellar_luminosit...
/*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 "includes.h" std::map<std::string, SavedData> Threads::BestPrices = {}; std::map<std::string, std::map<std::string, bool>> all_combination = {}; using namespace rapidjson; namespace Threads { inline void Setup() { srand(time(NULL)); for (const auto& entry : std::filesystem::directory_iterat...
#ifdef NDEBUG // Removes cmd window in non debug builds #pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") #endif #include <glad/glad.h> #include <GLFW/glfw3.h> #include <vector> #include <map> // todo/note area // // NOTE: __declspec(deprecated("Message here")) int function() {} for deprecating fun...
//////////////////////////////////////////////////////////////////////////////// // // // This file is part of NCrystal (see https://mctools.github.io/ncrystal/) // // ...
#include "WavFile.h" #include "System/Console/Trace.h" #include "Foundation/Types/Types.h" #include "Services/Time/TimeService.h" #include "Application/Model/Config.h" #include <stdlib.h> int WavFile::bufferChunkSize_=-1 ; bool WavFile::initChunkSize_=true ; short Swap16 (short from) { #ifdef __ppc__ short result; ...