text
stringlengths
3.08k
12.5k
#include <iostream> #include "ukf.h" using Eigen::MatrixXd; using Eigen::VectorXd; UKF::UKF() { Init(); } UKF::~UKF() { } void UKF::Init() { } /** * Programming assignment functions: */ void UKF::SigmaPointPrediction(MatrixXd* Xsig_out) { // set state dimension int n_x = 5; // set augmented dimens...
#include <libgraphic/Painter.h> #include <libsystem/Logger.h> #include <libsystem/process/Launchpad.h> #include <libwidget/Event.h> #include <libwidget/Window.h> #include "terminal/Common.h" #include "terminal/TerminalWidget.h" #define TERMINAL_IO_BUFFER_SIZE 4096 void terminal_widget_server_callback(TerminalWidget ...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
/* Copyright (c) 2013, Project OSRM, <NAME>, others 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 th...
/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] 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, me...
/****************************************************************************************** Copyright : 2002-2003, FXL Technology (Shenzhen) Company Limited. FileName : zce_os_adapt_layer.h Author : Sail (ZENGXING)/Author name here Version : Date Of Creation : 2011-5-1 D...
#include "GameManager_3D.h" #include "Camera.h" #include "ShaderLoader.h" #include "FileWriting.h" #include "Utility.h" #include "Input.h" // not used // Physics Test #include "Capsule.h" #pragma comment(lib, "Ws2_32.lib") GameManager_3D * GameManager_3D::instance = NULL; GameManager_3D::GameManag...
#include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <string> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "MPC.h" // for convenience using nlohmann::json; using std::string; using st...
#include "icospheremesh.h" #include <cmath> #include <iostream> #include <iomanip> #include "../math/vec3.h" using namespace mesh; IcoSphereMesh::IcoSphereMesh(int recursionLevel) { std::vector<math::Vec3> vertices; // http://blog.andreaskahler.com/2009/06/creating-icosphere-mesh-in-code.html // create 12 vertic...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "ametsuchi/impl/postgres_block_storage.hpp" #include "common/hexutils.hpp" #include "logger/logger.hpp" using namespace iroha::ametsuchi; PostgresBlockStorage::PostgresBlockStorage( std::shared_ptr<Pool...
/** * Copyright (c) 2014, Ford Motor Company * 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 condi...
#include "gtest/gtest.h" #include "common.h" #include "c8.h" TEST(common_test, bit_defines) { auto number = 0xBB2f56; auto number_2 = 0xFF0081; EXPECT_EQ(0x0f56, BIT_LO_12(number)); EXPECT_EQ(0x0056, BIT_LO_8 (number)); EXPECT_EQ(0x0006, BIT_LO_4 (number)); EXPECT_EQ( 0x2, BIT_HI_4 (number...
#include <memory> #include "binary.h" #include <iostream> #include <string> #include "../../../bson-cxx/src/bson/json.h" #include "../../../bson-cxx/src/bson/bsonobjbuilder.h" #include "cmdline.h" #include "parse_types.h" using namespace std; using namespace _bson; bool header = false; const char QUOTE = '"'; char C...
// Copyright 2013 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/chrome_process_finder_win.h" #include <shellapi.h> #include <string> #include "base/command_line.h" #include "base/files/file_p...
// Copyright (c) 2009-2021 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 <policy/policy.h> #include <pubkey.h> #include <secp256k1.h> #include <secp256k1_schnorrsig.h> #include <script/inte...
#include <netinet/in.h> #include <poll.h> #include <set> #include "controller.hpp" #include "Drp.pb.h" #include "RemoteWorker.hpp" #include "Parameters.hpp" // Returns any idle worker, or null if none is idle. static RemoteWorker *get_idle_worker(const std::vector<RemoteWorker *> &remote_workers) { for (RemoteWo...
/* * Copyright 2009 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #import "cubic_clipper.h" #include "SkGeometry.h" CubicClipper create_cubic_clipper() { CubicClipper clipper = (CubicClipper*)malloc(sizeof(CubicClippe...
/* * Copyright (c) 2017 <NAME> * * wampcc is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include "wampcc/kernel.h" #include "wampcc/data_model.h" #include "wampcc/tcp_socket.h" #include "wampcc/wamp_session.h" #include "wampcc/rawsocke...
#include "stroke.h" #include <cmath> const double stroke_infinity = 0.2; #define EPS 0.000001 inline double angle_difference(double alpha, double beta) { double d = alpha - beta; if (d < -1.0) d += 2.0; else if (d > 1.0) d -= 2.0; return d; } Stroke::Stroke(const std::vector<CursorPos...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodSimilarityOrderer.h" #include "DexInstruction.h" #include "Show.h" #include "Trace.h" void MethodSimilarityOrdere...
#include "TFMiniS.h" bool TFMiniS::begin(Stream* _streamPtr) { streamPtr = _streamPtr; } Measurement TFMiniS::triggerMeasurement() { uint8_t command[] = {0x5A, 0x04, 0x04, 0x62}; writeFrame(command, sizeof(command)); return getMeasurement(); } Measurement TFMiniS::getMeasurement() { uint8_t fra...
#include "RecoPixelVertexing/PixelTrackFitting/interface/FitUtils.h" #include <cmath> using Rfit::Matrix5d; using Rfit::Vector5d; #include "TrackingTools/AnalyticalJacobians/interface/JacobianLocalToCurvilinear.h" #include "DataFormats/GeometrySurface/interface/Surface.h" #include "DataFormats/TrajectoryState/interf...
/* * CometOS --- a component-based, extensible, tiny operating system * for wireless networks * * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | | | Cop...
// SerialPanel.cpp #include <stdio.h> #include <Beep.h> #include <Screen.h> #include <String.h> #include <HGroup.h> #include <MBorder.h> #include <MButton.h> #include <MStringView.h> #include <MTextControl.h> #include <Space.h> #include <VGroup.h> #include "support.h" #include "GlobalFunctions.h" #include "Languag...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2019 SIGNET Lab, Department of Information Engineering, * University of Padova * * 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 * publish...
/* Copyright (c) 2018, Google Inc. * * Permission to use, copy, modify, and/or 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 DISCLAIMS...
#include <cfenv> #include <iostream> #include <iomanip> #include <mpfr.h> #include <cfloat> #include "igen_lib.h" #include "igen_dd_lib.h" #include "util.h" #include "parse_mnist_nn.h" #include "write_csv.h" using namespace std; const string accuracy_file_name = "../results/accuracy_ffnn200.csv"; #define MPFR_HIGH_P...
#include "FinishObject.h" FinishObject::FinishObject(float x, float y, is::GameDisplay *scene): MainObject(x, y), Step(0), m_scene(scene), addScore(0) { m_strName = "FinishObject"; setRectangleMask(32, 32); is::createSprite(m_scene->GRMgetTexture("tileset"), m_sprCastleFlag, sf::IntRect(160...
/* * 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...
/*********************************************************************************************** Hombre ------ VCV Rack module based on Hombre by <NAME> from Airwindows <www.airwindows.com> Ported and designed by <NAME> Changes/Additions: - mono - CV inputs for voicing and intensity - polyphonic See ./L...
#include <chrono> #include <exception> #include <iomanip> #include <iostream> #include <served/methods.hpp> #include <served/request.hpp> #include <served/response.hpp> #include <served/served.hpp> #include <boost/log/core.hpp> #include <boost/log/trivial.hpp> #include <boost/log/sinks/text_file_backend.hpp> #include <...
// coding: utf-8 /* Copyright (c) 2016, <NAME> e.V. * All Rights Reserved. * * The file is part of the xpcc library and is released under the 3-clause BSD * license. See the file `LICENSE` for the full license governing this code. */ // ---------------------------------------------------------------------------- ...
/*=========================================================================== _____ _____ _____ _____ ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______ | \ / | || \ || | || |/ / ||___ | | \/ | || \ || \ || \ ||___ | |__/\__...
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <ctranslate2/translator_pool.h> namespace py = pybind11; #if PY_MAJOR_VERSION < 3 # define STR_TYPE py::bytes #else # define STR_TYPE py::str #endif template <typename T> py::list std_vector_to_py_list(const std::vector<T>& v) { py::list l; for...
/// \author : <NAME> /// date : October 2010 #include "Geometry/CommonTopologies/interface/TwoBowedSurfacesDeformation.h" #include "Geometry/CommonTopologies/interface/SurfaceDeformationFactory.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" // already included via header: // #include <vector...
/** * Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Computabilidad y Algoritmia * * @file Functions.cc * @author <NAME> <EMAIL> * @date 04 March 2022. * @brief fichero que contiene la implementación de las distintas funciones usadas en el pr...
#include <stdio.h> #include "ali_api_core.h" #include "ali_string_utils.h" #include "ali_bss.h" #include "json/value.h" #include "json/reader.h" using namespace aliyun; namespace { void Json2Type(const Json::Value& value, std::string* item); void Json2Type(const Json::Value& value, BssDescribeCouponListCoupon...
#include "../base/oz.h" #include "ozDummyInput.h" #include "../base/ozFfmpeg.h" #include "../libgen/libgenDebug.h" DummyInput::DummyInput( const std::string &name, const Options &options ) : VideoProvider( cClass(), name ), Thread( identity() ), mOptions( options ) //mWidth( 0 ), //mHeight( 0 ), ...
#include <vif.hpp> using namespace vif; namespace speed_test { template<std::size_t Dim, typename Type> vec<Dim-1,rtype_t<Type>> median1(const vec<Dim,Type>& v, uint_t dim) { using fptr = rtype_t<Type> (*)(vec<1,rtype_t<Type>>); return run_index_<fptr, &median<1,rtype_t<Type>>>(v, dim); } ...
// atb_base.cc // 10.1.2006 #include <unistd.h> #include <stdio.h> #include "system.h" #include "altera_avalon_pio_regs.h" #include "alt_types.h" #include "dtb_hal.h" // === DAQ ================================================================== // *3SDATA const unsigned int DAQ_DMA_BASE[6] = { DAQ...
// Copyright 2020 The Fuchsia 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 "ti-ina231.h" #include <endian.h> #include <lib/ddk/debug.h> #include <lib/ddk/metadata.h> #include <ddktl/fidl.h> #include "src/devices/power/...
#include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <unordered_map> #include <regex> #include <memory> #include <get_input.hpp> // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // I avoided making this a class for so long. Got part 1 done without it bu...
#include "Globals.h" #include "Application.h" #include "imgui_dock.h" #include "ModuleWindow.h" #include "mmgr\mmgr.h" #include "ModuleResources.h" #include "Material.h" ModuleWindow::ModuleWindow(bool start_enabled) { window = NULL; screen_surface = NULL; name = "Window"; } // Destructor ModuleWindow::~ModuleW...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2016-2018 The PIVX developers // Copyright (c) 2019 The ION Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. ...
#include <cassert> #include <ctime> #include <cstdlib> #include <cctype> #include <string> #include <random> #include <chrono> #include <vector> #include <iostream> #include <filesystem> #include <algorithm> #include <type_alias.h> #include <types.h> #include <go_types.h> #include <splitmix.h> #include <dirichlet_dist...
/*================================================================ * Copyright (C)2019 All rights reserved. * FileName : SimpleMapWindow.cc * Author : elonkou * Email : <EMAIL> * Date : 2019年12月29日 星期日 13时21分39秒 ================================================================*/ #include "SimpleMapWindow....
/* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996,1999 by Internet Software Consortium. * * 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 ...
#include "mouse_tracker.h" #include <cgv/base/find_action.h> #include <cgv/gui/key_event.h> #include <cgv/gui/mouse_event.h> #include <sstream> using namespace cgv::gui; using namespace cgv::render; /// construct from name which is necessary construction argument to node mouse_tracker::mouse_tracker(const char* name)...
/* Haiku ATI video driver adapted from the X.org ATI driver which has the following copyright: Copyright 2003 through 2004 by <NAME>, <EMAIL> Copyright 2011 Haiku, Inc. All rights reserved. Distributed under the terms of the MIT license. Authors: <NAME> */ #include "accelerant.h" #include "mach64.h" bool...
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // Example of a clock. This is very similar to the text-example, // except that it shows the time :) // // This code is public domain // (but note, that the led-matrix library this depends on is GPL v2) #include "led-matrix.h" #include "graphics.h" #incl...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
/* ** Copyright(C) 2017, StepToSky ** ** 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 di...
#include "renderer/audio_renderer.h" #include "timer/timer.h" #include <iostream> using std::cerr; using std::cout; using std::endl; #define SDL_AUDIO_MIN_BUFFER_SIZE 512 #define SDL_AUDIO_BUFFER_SIZE 1024 #define MAX_AUDIO_FRAME_SIZE 192000 int64_t audio_time = 0; static void audio_callback(void *userdata, Uint8 ...
#pragma once #include "error.hpp" #include "expression.hpp" /// visitor base class /// The visitors for all AST nodes throw an exception /// by default, with node types calling the default visitor for a parent /// For example, all BinaryExpression types call the visitor defined for /// BinaryExpression, so by overrid...
// ============================================================================= // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Permission is hereby grante...
#include "DQMServices/Core/interface/DQMStore.h" #include "DQMServices/Core/interface/LegacyIOHelper.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/LuminosityBlock.h" #include "FWCore/Framework/interface/Run.h" #include "FWCore/MessageLogger/interface/JobReport.h" #include "FWCore...
/** Copyright (c) 2012-2014, <NAME> and <NAME> All rights reserved. This file is part of MRTSQR and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ /** * @file colsums.cc * Check how long it takes ...
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
#include "AutIncludes.h" #include "AutMain.h" void FindAndCheckUris(Seq text, Seq prefixes, ParseTree::Storage* storage, Vec<Seq>& foundUris, Vec<Seq> const& expectUris, Display display) { foundUris.ReserveExact(expectUris.Len()); foundUris.Clear(); Uri::FindUrisInText(text, prefixes, foundUris, storage)...
// -*- coding:utf-8; mode:c++; mode:auto-fill; fill-column:80; -*- /// @file program.cpp /// @brief Implementation of program.hpp. /// @author <NAME> <<EMAIL>> /// @date November 27, 2018 /// @copyright (C) 2018 Nabla Zero Labs // Related mxd header #include "program.hpp" // C++ Standard Library #in...
/* 2014.11.1-------------------------------- 考えること 1.d_idごとにヒストグラムを作るか 2.それともtracking_idごとにヒストグラムを作るか たぶん、1のほうがいいと思う なぜなら、めんどくさい設定がいらない ただし、すべてのd_idについてのヒストグラムを持っているわけにはいかないので、 どのタイミングでfreeにするか考える //逆に、どのd_idが呼ばれなかったかもチェックする //そうすれば、終わったあとにそのtracking_id_bufを初期化すればよい とりあえず作ってみよう tracking_id = 0 のときは動かないようにする アルゴ...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
#include "NiTypes.h" NiPoint3::NiPoint3() { x = 0.0f; y = 0.0f; z = 0.0f; } NiPoint3 NiPoint3::operator- () const { return NiPoint3(-x, -y, -z); } NiPoint3 NiPoint3::operator+ (const NiPoint3& pt) const { return NiPoint3(x + pt.x, y + pt.y, z + pt.z); } NiPoint3 NiPoint3::operator- (const NiPoint3& pt) const {...
/*---------------------------------------------------------------------- Toy EDAnalyzer for testing purposes only. ----------------------------------------------------------------------*/ #include <math.h> #include <stdexcept> #include <string> #include <iostream> #include <fstream> #include <sstream> #include <map...
#include <ctype.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "libpng/png.h" #include "lz4/lz4.h" #include "Bitmap.hpp" #include "Debug.hpp" Bitmap::Bitmap( const char* fn, unsigned int lines, bool bgr ) : m_block( nullptr ) , m_lines( lines ) , m_alpha( true ) , m_sema( 0 )...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "lexer.h" Lexer::Lexer(Allocator _allocator, char *_file, char *_source) : allocator(_allocator), file(_file), source(_source), start(0), curr(0) { length = strlen(_source); scan_next(); } bool Lexer::more() { return curr < le...
#include "../example_common.h" using namespace put; using namespace ecs; namespace pen { pen_creation_params pen_entry(int argc, char** argv) { pen::pen_creation_params p; p.window_width = 1280; p.window_height = 720; p.window_title = "vertex_stream_out"; p.window_sampl...
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~// // Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames // Copyright (C) 2015 Faust Logic, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and ...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* User command to change their password. */ #include "rods.hpp" #include "rodsClient.hpp" #include <unistd.h> #include <termios.h> #include "irods_client_api_t...
#include "lsq_Bounds.h" #include "lsq_Globals.h" #include "lsq_MPI.h" #include "EZThreads.h" #include "TAffine.h" #include "THmgphy.h" #include "Timer.h" #include <stdlib.h> #include <string.h> /* --------------------------------------------------------------- */ /* Constants -------------------------------------...
/* ID: felikju1 PROG: cryptcow LANG: C++ */ #include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make...
// Mesh.cpp // Dominicus #include "geometry/Mesh.h" #include <cstdlib> #include <fstream> #include "core/GameSystem.h" #include "platform/Platform.h" extern GameSystem* gameSystem; extern Platform* platform; Mesh::Mesh(std::string filename) { std::ifstream objFile; std::string line; std::string groupName = "de...
#include <random> #include <cassandra.h> #include <stdio.h> #include <unistd.h> //#include "ModelOutputInfo.h" #include "ArrayDataStore.h" #include "SpaceFillingCurve.h" #include "StorageInterface.h" #define NPY_ARRAY_C_CONTIGUOUS 0x0001 #define NPY_ARRAY_F_CONTIGUOUS 0x0002 #define NPY_ARRAY_OWNDATA 0...
#include "temperature_dependence.h" #include "utils_ch_implicit.h" double convert_temperature_to_flory_huggins( const double T , const double X_min , const double X_max , const double T_min , const double T_max ) { const double dX_dTinv = ( X_max - X_min ) / ( 1.0 / T_min ...
#include "hough.h" #include <libutils/rasserts.h> #define _USE_MATH_DEFINES #include <math.h> #include <set> #include <random> #include <opencv2/imgproc.hpp> bool operator<(const PolarLineExtremum &a, const PolarLineExtremum &b) { return a.votes > b.votes; }; cv::Mat buildHough(cv::Mat sobel) { rassert(sobel.ty...
#include "visualizer.hpp" #include <future> #include <fstream> #include <sstream> #include <SDL.h> #include <imgui.h> #include <imgui_impl_sdl.h> #include <imgui_impl_sdlrenderer.h> #include <imfilebrowser.h> namespace fabtextool { visualizer& visualizer::instance() noexcept { static visualizer ins; ...
/******************************************************************************* * Copyright 2021 Intel Corporation * * Licensed under the BSD-2-Clause Plus Patent License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource...
// // Compare two files of histograms and report if // they are consistent. For Validation procedures. // #include "TFile.h" #include <iostream> #include <string> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "Offline/Validation/inc/TValCompare.hh" void valCompare_usage() {...
#include "Header.h" #include <ctime> #include <fstream> static string AddChar(size_t value, size_t minCount = 10, char returnValue = ' '); static void TxtBench(const size_t& n, size_t& sizeInBytes, size_t& timeInMilisec); static void BinBench(const size_t& n, size_t& sizeInBytes, size_t& timeInMilisec); static void V...
/* * Abuse - dark 2D side-scrolling platform game * Copyright (c) 1995 Crack dot Com * Copyright (c) 2005-2011 <NAME> <<EMAIL>> * * This software was released into the Public Domain. As with most public * domain software, no warranty is made or implied by Crack dot Com, by * <NAME>, or by <NAME>. */ #if ...
/* * JobBase.cpp * * Created on: 2018年7月23日 * Author: peter */ #include "JobBase.hpp" #include "logger.hpp" #include "boost_format_suffix.hpp" #include "redis_conn_factory.hpp" #include <fstream> #include <algorithm> #include <kerbal/redis/operation.hpp> #include <kerbal/redis/redis_type_cast.hpp> #incl...
/* Fake pinentry program for the OpenPGP test suite. * * Copyright (C) 2016 g10 code GmbH * * This file is part of GnuPG. * * GnuPG 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 3 of t...
/* * File: AnEnISMPI.cpp * Author: <NAME> <<EMAIL>> * * Created on March, 2020, 11:10 AM */ #include "AnEnISMPI.h" #include "Functions.h" #include "FunctionsMPI.h" #include "ForecastsPointer.h" #include "ObservationsPointer.h" #if defined(_OPENMP) #include <omp.h> #endif using namespace std; AnEnISMPI::AnE...
/****************************************************************************** * Author: <NAME> <<EMAIL>> * * Copyright (C) 2014 <NAME> <<EMAIL>> * * Licensed according to the included 'LICENSE' document * * This file is part of lua-lcurl library. ***************************************************************...
/* * rai_.hpp * * Created on: Jan 9, 2018 * Author: newworld */ #pragma once #include <string> #include <vector> #include <Python.h> using namespace std; namespace rai { class node; class pyrai { public: pyrai(); virtual PyObject* account_balance (string& account_text); virtual int account_bloc...
/* Copyright (c) 2018-2020 Skyward Experimental Rocketry * Authors: <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...
//---------------------------------------------------------------------------// //! //! \file tstRay.cpp //! \author <NAME> //! \brief Ray unit tests //! //---------------------------------------------------------------------------// // Std Lib Includes #include <iostream> // FRENSIE Includes #include "Geometry_Ra...
#include <fstream> #include <vector> #include <queue> #include <map> #include <set> using namespace std; struct vertex { int index; bool accept, reach, second_reach; map<char, int> transitions; map<char, set<int>> back; vertex() : accept(false), reach(false), second_reach(false)...
/** * \file src/serialization/impl/opr_shallow_copy.cpp * * This file is part of MegBrain, a deep learning framework developed by Megvii. * * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. * */ #include "megbrain/serialization/opr_shallow_copy.h" #include "megbrain/gopt/basic_arith.h" #inc...
#include "LiveDataManager.h" #include "HistDataManager.h" #include "VolumeTracker.h" #include <tael/Log.h> #include <tael/FdLogger.h> #include <string> #include <vector> using namespace std; class DayPlotter : public UpdateListener { public: DataManager &dm; VolumeTracker vol; tael::Logger plotlo...
/* 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...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
#define TINYOBJLOADER_IMPLEMENTATION #include "model.h" #include "utils/error_handler.h" #include <linalg.h> using namespace linalg::aliases; using namespace cg::world; cg::world::model::model() {} cg::world::model::~model() {} void cg::world::model::load_obj(const std::filesystem::path& model_path) { using t...
//===- ConvertStandardToSPIRV.cpp - Standard to SPIR-V dialect conversion--===// // // Copyright 2019 The MLIR Authors. // // 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 // // htt...
/* ============================================================================ ** ** Demonstration of rendering to texture ** Copyright (C) 2005 <NAME> ** ** 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 Softwar...
// Author: <NAME> // Copyright (c) 2021 #include "dtx/dtx.h" DTX::DTX(MetaManager* meta_man, QPManager* qp_man, t_id_t tid, coro_id_t coroid, CoroutineScheduler* sched, RDMABufferAllocator* rdma_buffer_allocator, LogOffsetAllocator* remote_log_offset_allocator, ...
/* SISL - SINTEF Spline Library version 4.4. */ /* Definition and interrogation of NURBS curves and surface. */ /* Copyright (C) 1978-2005, SINTEF ICT, Applied Mathematics, Norway. */ /* This program is free software; you can redistribute it and/or */ /* modify i...
/* * Copyright (c) 2013-2014,2016 - Adjacent Link LLC, Bridgewater, * New Jersey * Copyright (c) 2008 - DRS CenGen, LLC, Columbia, Maryland * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met...
#include <glutil.h> using namespace glm; using namespace std; const u32 FSIZE = sizeof(f32); const u32 SCR_WIDTH = 960; const u32 SCR_HEIGHT = 540; const f32 ASPECT = 16.0f / 9.0f; /** * keyboard input processing **/ void processInput(GLFWwindow* window) { if (glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS) {...