text
stringlengths
3.08k
12.5k
/* * Copyright (c) 2019 by flomesh.io * * Unless prior written consent has been obtained from the copyright * owner, the following shall not be allowed. * * 1. The distribution of any source codes, header files, make files, * or libraries of the software. * * 2. Disclosure of any source codes pertaini...
#include "engine/engine.hpp" #include "engine/api/route_parameters.hpp" #include "engine/engine_config.hpp" #include "engine/status.hpp" #include "engine/plugins/match.hpp" #include "engine/plugins/multi_target.hpp" #include "engine/plugins/nearest.hpp" #include "engine/plugins/smooth_via.hpp" #include "engine/plugins...
#include "names.h" #include "minorGems/util/SimpleVector.h" #include "minorGems/util/StringTree.h" #include "minorGems/util/stringUtils.h" #include "minorGems/util/log/AppLog.h" #include "minorGems/io/file/File.h" #include "minorGems/util/random/JenkinsRandomSource.h" #include <stdio.h> static char *firstNames = NUL...
#include <cstring> #include "adt.h" #include "adt_modder.h" #include "fmt/core.h" #include "utils.h" class AddPropertyOp : public AdtModder::Op { public: static AddPropertyOp &GetInstance() { static AddPropertyOp op; return op; } private: AdtModder::Result Run(AdtModder::Adt adt_data, ...
// See LICENSE_CELLO file for license and copyright information /// @file problem_MethodDebug.cpp /// @author <NAME> (<EMAIL>) /// @date 2020-03-19 /// @brief Implementation of the debug method #include "problem.hpp" #include "charm_simulation.hpp" #include "test.hpp" // #define DEBUG_METHOD_DEBUG //---...
// [WriteFile Name=BrowseWfsLayers, Category=Layers] // [Legal] // Copyright 2019 Esri. // 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 // Unl...
// Created with ReClass.NET 1.1 by KN4CK3R class kbStruct { public: char pad_0000[4]; //0x0000 float health; //0x0004 float knockback; //0x0008 float stun; //0x000C char pad_0010[308]; //0x0010 }; //Size: 0x0144 static_assert(sizeof(kbStruct) == 0x144); class CDamageCalc { public: char pad_0000[4]; //0x0000 cl...
#include "stdio.h" int InBlock[81], InRow[81], InCol[81]; const int BLANK = 0; const int ONES = 0x3fe; // Binary 1111111110 int Entry[81]; // Records entries 1-9 in the grid, as the corresponding bit set to 1 int Block[9], Row[9], Col[9]; // Each int is a 9-bit array int SeqPtr = 0; int Sequence[81]; ...
#include <stdio.h> #include <string> #include <fstream> #include <sstream> #include <iostream> #include "OpenGLApplication.hpp" #include "OpenGLGraphicsManager.hpp" using namespace RTR; namespace RTR { extern IApplication* g_pApp; } extern struct gladGLversionStruct GLVersion; int RTR::OpenGLGraphicsManager::Initi...
#include "shared.h" //получение ортографической матрицы проекции math::mat4f get_ortho_proj (float left, float right, float bottom, float top, float znear, float zfar) { math::mat4f proj_matrix; float width = right - left, height = top - bottom, depth = zfar - znear; //выбрана ма...
/** \file * \brief Implementation of the FeatureDetector class. */ /* * TODO: Right now, selectionIsValid() and lookingForTarget() represent * more or less the same thing. We need to check the quality of the * computed features to get a meaningful difference. * First we check the selected area. Only when the ...
/* SIE CONFIDENTIAL PlayStation(R)4 Programmer Tool Runtime Library Release 05.008.001 * Copyright (C) 2017 Sony Interactive Entertainment Inc. * All Rights Reserved. */ #include <algorithm> #include <gnmx.h> #include "floating_point.h" #include "half.h" using namespace sce; namespace { union f32 { enum {kBias =...
#include "app.hpp" #include "applib.hpp" #include "configuration.hpp" #include "uv.hpp" #include <ircmsg.hpp> #if HAS_GEOIP #include <mygeoip.h> #endif #include <myncurses.h> extern "C" { #include "lua.h" #include "lauxlib.h" } #include <ncurses.h> #include <cstdlib> #include <cwchar> #include <locale> #include <m...
#include "ros/ros.h" #include "tf/tf.h" #include "std_msgs/String.h" #include "geometry_msgs/PoseArray.h" #include "geometry_msgs/Pose.h" #include "geometry_msgs/PoseStamped.h" #include "geometry_msgs/Quaternion.h" #include "pathfinder_ros/Path.h" #include "pathfinder_ros/PathSegment.h" #include "nav_msgs/Path.h" using...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
/* * Copyright (c) 1994 - 2017, EMC Corporation. 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. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * or in the "li...
//**************************************************** // Starter code for assignment #1. It is provided to // help get you started, but you are not obligated to // use this starter code. //**************************************************** #include <vector> #include <iostream> #include <fstream> #include <cmath> ...
/***************************************************************************** Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
/* * 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...
#include <iostream> #include <cstring> #include <vector> #include <getopt.h> #include <chrono> #include <thread> #include "deptran/s_main.h" using namespace std; void serialize_util_wrapper(size_t logs_to_commit, int thread_id, size_t par_id) { for (int i = 1; i <= logs_to_commit; i++) { std::string s = s...
/************************************************************************* * * Copyright 2016 Realm 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/lice...
#include <string> #include <vector> #include <ros/ros.h> #include <move_base_msgs/MoveBaseAction.h> #include <actionlib/client/simple_action_client.h> #include <geometry_msgs/Pose2D.h> #include <geometry_msgs/PoseArray.h> #include <geometry_msgs/Twist.h> #include <ros_helpers/ros_helpers.h> using namespace geometry...
#include "xgui.h" #include "../xcore/xcore.h" #include <QDebug> #include <QPalette> QString gethexword(int); QString gethexbyte(uchar); xHexSpin::xHexSpin(QWidget* p):QLineEdit(p) { setMinimumWidth(60); setAutoFillBackground(true); vldtr.setRegExp(QRegExp("")); min = 0x0000; max = 0xffff; value = 0x0000; hsfl...
/** @file SuitedForEnergyConfiguration.cc @ingroup EnergyProperties @brief Return the execution time of the region in thread 0 as severity. @author <NAME> @verbatim Revision: $Revision$ Revision date: $Date$ Committed by: $Author$ This file is part of the Periscope Tuning ...
/////////////////////////////////////////////////////////////////// // Example of cluster generation (related script ClusterPlot.py) // /////////////////////////////////////////////////////////////////// #include "ClusterFactory.hpp" #include "Definitions.hpp" #include "TDirectory.h" #include "TFile.h" #include "TGra...
#include "Mesh.hpp" Mesh::Mesh() { connection.first = -1 ; connection.second = -1 ; area.resize(3) ; length.resize(3) ; concentrations.resize(7) ; concentrations2.resize(7) ; diffusions.resize(7) ; degradations.resize(7) ; productions.resize(7) ; rates.resize(7) ; diffusion...
/** \file * * \author <NAME> -- INFN Bari */ #include "RPCRecHitProducer.h" #include "FWCore/Framework/interface/ESHandle.h" #include "Geometry/RPCGeometry/interface/RPCRoll.h" #include "Geometry/RPCGeometry/interface/RPCGeometry.h" #include "Geometry/Records/interface/MuonGeometryRecord.h" #include "DataFormats/...
#include "../main/ReggeWheeler.h" std::complex<double> RecurrenceHorizon(int nIn, int sIn, int lIn, double w, double M, std::complex<double> Anm1, std::complex<double> Anm2) { using namespace std::complex_literals; double l = double(lIn); double s = double(sIn); double n = double(nIn); double l2 = l * l; double...
#include "FusionEKF.h" #include <iostream> #include "Eigen/Dense" #include "tools.h" using Eigen::MatrixXd; using Eigen::VectorXd; using std::cout; using std::endl; using std::vector; /** * Constructor. */ FusionEKF::FusionEKF() { mode = BOTH_SENSORS; is_initialized_ = false; previous_timestamp_ = 0; // ...
// Advent of Code 2018 // Day 2: Inventory Management System // https://adventofcode.com/2018/day/2 #include <algorithm> #include <chrono> #include <functional> #include <iostream> #include <iterator> #include <numeric> #include <unordered_set> #include <vector> // common code (to avoid duplicate code in each solutio...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC and // UT-Battelle, LLC. // Produced at the Lawrence Livermore National Laboratory and the Oak Ridge // National Laboratory. // LLNL-CODE-743438 // All rights reserved. // This file is part of MGmol. For details, see https://github.com/llnl/mgmol. // Plea...
/* * Copyright (c) 2010-2012 <NAME> and <NAME> * * 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 fo...
/* ************************************************************************ * Copyright 2018-2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once #include "cblas_interface.hpp" #include "norm.hpp" #include "rocblas.hpp" #include "rocblas_init.hp...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
#include <vector> #include <string> #include <string_view> #include <stdio.h> #include <Lemon/System/Util.h> #include <lemon/syscall.h> #include <Lemon/GUI/WindowServer.h> const char* normalColour = "\e[0m"; const char* accentColour = "\e[0m\e[33m"; std::vector<const char*> icon { " ,g@@@@@@@@@@@@...
/* * Copyright 2015-2019 Autoware Foundation. 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 requi...
/* * PriorityResolver.cc * * Created on: Dec 23, 2015 * Author: behnamm */ #include "PriorityResolver.h" PriorityResolver::PriorityResolver(HomaConfigDepot* homaConfig, WorkloadEstimator* distEstimator) : cdf(&distEstimator->cdfFromFile) , cbf(&distEstimator->cbfFromFile) , cbfLastCapBy...
// Copyright(c) 2018, Intel Corporation // // 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 ...
// // See the file LICENSE for redistribution information. // // Copyright (c) 2002,2009 Oracle. All rights reserved. // // #include "../DbXmlInternal.hpp" #include "NsDoc.hpp" #include "NsUtil.hpp" #include "NsConstants.hpp" using namespace DbXml; using namespace std; // // NsDoc // void NsDoc::init(Transaction *...
#include "LifeBar.h" #include <libgba-sprite-engine/gba/tonc_math.h> #include <libgba-sprite-engine/gba_engine.h> #include <libgba-sprite-engine/sprites/sprite_builder.h> #include "data/content/_compiled_sprites/spr_lifebar.h" #include "gameplay/multiplayer/Syncer.h" #include "objects/ArrowInfo.h" #include "utils/Eff...
/* * ===================================================================================== * * Filename: TGM_PairAttrbt.cpp * * Description: * * Created: 05/11/2012 11:19:10 AM * Revision: none * Compiler: gcc * * Author: <NAME> (), * Inistitution: Boston Colle...
/** * <NAME> */ #include <Arduino.h> #include "PredpovedYrno.h" #include "DataAplikace.h" #include "src/fonts/fonts.h" // maximalni stari dat v sekundach #define DATA_MAX_AGE 14400 PredpovedYrno::PredpovedYrno( raLogger * logger, raConfig * config, DataAplikace * dataAplikace ) { this->logger = logger; ...
/*************************************************************************** qgsprocessingmatrixparameterdialog.cpp ------------------------------------ Date : February 2019 Copyright : (C) 2019 <NAME> Email ...
// <NAME>, 2020. // Generates the crumpled surface fractal as a .ply or .obj, with parameters passed in at the command line #include "stdafx.h" #include "PolyMesh.h" void generateCrumple(const string &fileName, int maxCorrugations, double bendAngleDegrees, int centreType, double yawAngleDegrees, double aspectRatio) {...
//Store Global summed values in a manner aligned with normal major rows/columns // Need to access these in un-aligned manner when doing decode_row //Store Local values aligned such that each major row starts with the correct offset (since Local values // are specific per-row, different rows can have different offsets ...
// @file bnorm_cpu.cpp // @brief Batch normalization implementation (CPU) // @author <NAME> /* Copyright (C) 2015 <NAME>. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "bnorm.hpp" #include "../data.hpp" #in...
/* <NAME> IIIT Bangalore */ #include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define ll long long int #define ld long double #define fi first #define se second #define pr(v) { for(int i=0;i<v.size();i++) { v[i]==INF? cout<<"INF " : co...
#include <cstdio> #include <string> #include "ppapi/cpp/completion_callback.h" #include "ppapi/cpp/graphics_2d.h" #include "ppapi/cpp/image_data.h" #include "ppapi/cpp/instance.h" #include "ppapi/cpp/module.h" #include "ppapi/cpp/var.h" #include "SampleApp.h" #include "SkApplication.h" #include "SkCanvas.h" #include ...
#include <user_config.h> #include <SmingCore/SmingCore.h> #include <Libraries/DHT/DHT.h> // If you want, you can define WiFi settings globally in Eclipse Environment Variables #ifndef WIFI_SSID //#define WIFI_SSID "PleaseEnterSSID" // Put you SSID and Password here //#define WIFI_PWD "<PASSWORD>" #endif // ... and/...
#include "THeartbeatThread.h" #include "Client.h" #include "Http.h" //#include "SocketIO.h" #include <rapidjson/document.h> #include <rapidjson/rapidjson.h> #include <sstream> namespace json = rapidjson; void THeartbeatThread::operator()() { RegisterThread("Heartbeat"); std::string Body; std::string T; ...
#include <iostream> #include "atkui/framework.h" #include "atk/toolkit.h" using namespace glm; using namespace atk; class Butterfly : public atkui::Framework { public: Butterfly() : atkui::Framework(atkui::Perspective) { } void setup() { t = 0.0; Joint* body = new Joint("Body"); body->se...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
/* Copyright (c) 2005, 2008-2009, 2015, 2017-2019, <NAME> Copyright (c) 2016, <NAME> Copyright (c) 2016, <NAME> Copyright (c) 2017, <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: * Redistri...
#include "MovesDisplay.h" MovesDisplay::MovesDisplay() { font.loadFromFile("Calibri.ttf"); assert(font.loadFromFile("Calibri.ttf") == true); text.setFont(font); text.setCharacterSize(30); text.setString("HELLO THERE"); text.setPosition(200, 200); } MovesDisplay::~MovesDisplay() { } void...
// The current file is licensed under the license terms found in the main header file "calculator.h". // For additional information refer to the file "calculator.h". #include "web_api.h" #include "json.h" #include "general_logging_global_variables.h" #include "string_constants.h" #include "calculator.h" bool WebAPIRes...
/* * * This file is part of I32CTT (Integer 32-bit Control & Telemetry Transport). * Copyright (C) 2017 <NAME>. * * I32CTT 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 the Licen...
/* Copyright 2018 <NAME> (<EMAIL>) * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. *...
/* * The MIT License (MIT) Copyright (c) 2015 Jetsonhacks 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...
#include <arrayfire.h> #include <stdio.h> #include <vector> #include <string> #include <af/utils.h> #include <math.h> #include "mnist_common.h" using namespace af; using namespace std; float accuracy(const array& predicted, const array& target) { array val, plabels, tlabels; max(val, tlabels, target, 1); ...
// SPDX-License-Identifier: BSD-2-Clause // This code is part of the sfizz library and is licensed under a BSD 2-clause // license. You should have receive a LICENSE.md file along with the code. // If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz /* Note(jpc): implementation status - [x]...
/** Ping Pong Client */ #ifndef _WIN32 #include <netinet/in.h> #include <arpa/inet.h> #include <sys/socket.h> #else # ifndef _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS # endif # ifndef _WINSOCK_DEPRECATED_NO_WARNINGS # define _WINSOCK_DEPRECATED_NO_WARNINGS # endif #include <WinSock2.h> #pragma comme...
#include <chrono> #include <fstream> #include <iostream> #include <memory> #include <numeric> #include <string> #include <vector> #include "utils.h" /* Returns how many individuals are contained in vcf_file. */ unsigned int get_individual_count(const char* vcf_path) { std::cerr << "Counting number of ...
#include <Eigen/Dense> #include <utility> #include <iostream> #include <vector> #include <cmath> #include <iomanip> #include "general_nonlinear_solver.h" // implements general_nonlinear_solver //! \brief Implements a single step of the modified newton //! \tparam argument type of argument to function f: such as doubl...
/* * Copyright (c) 2014-2022 The Voxie Authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
// // Copyright 2012 <NAME> and <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 o...
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* QM DSP Library Centre for Digital Music, Queen Mary, University of London. 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 th...
#include "rs-graphics-core/linear-map.hpp" #include "rs-unit-test.hpp" using namespace RS::Graphics::Core; namespace { constexpr double eps = 1e-10; } void test_rs_graphics_core_linear_map() { LinearMap<double> map; TEST(map.empty()); TEST_EQUAL(map.min(), 0); TEST_EQUAL(map.max(), 0); TE...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** Atari Blasteroids hardware ****************************************************************************/ #include "emu.h" #include "includes/blstroid.h" #include "cpu/m68000/m68000.h" ...
//Language: GNU C++ #include <stdio.h> #include <string.h> #include <algorithm> using namespace std; const int MAXN = 100000 + 10; struct Edge { int u,v,w,id,pre; }; Edge e[MAXN]; bool cmp(const Edge &a,const Edge &b) { return a.w<b.w; } int fa[MAXN],id[MAXN],step[MAXN]; int p[MAXN],p2[MAXN]; ...
/************************************************************************************************************************** Copyright(C) 2014-2017 www.xionggf.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
/* Copyright 2011-2021 <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 i...
/* Excited States software: KGS Contributors: See CONTRIBUTORS.txt Contact: <EMAIL> Copyright (C) 2009-2017 Stanford University 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 restrictio...
#ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #define _USE_MATH_DEFINES #include <math.h> #include <cctype> #include <model-info.h> //Global variables //Models vector<MODEL_INFO> models_list; //Translations float alfa = 0.0f, beta = 0.0f, radius = 5.0f; float camX, camY, camZ; float pos...
//Optimise #include <bits/stdc++.h> using namespace std; // #define multitest 1 #ifdef WIN32 #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, typename U> ostream &operator<<(ostream &out, const pair<T, U> &p) { out << '[' << p.first << ", " << p.secon...
#include <model/villager/guard.h> #include <model/villager/armorer.h> #include <model/villager/farmer.h> #include <model/villager/alchemist.h> #include <model/villager/cleric.h> #include "create_edit_dialog.h" CreateEditDialog::CreateEditDialog(QWidget* parent, Villager* item) : QDialog(parent), item(item) { setMi...
// $Id: CbcFullNodeInfo.cpp 1902 2013-04-10 16:58:16Z stefan $ // Copyright (C) 2002, International Business Machines // Corporation and others. All Rights Reserved. // This code is licensed under the terms of the Eclipse Public License (EPL). // Edwin 11/24/09 carved from CbcNode #if defined(_MSC_VER) // Turn off c...
// Copyright <NAME> 2020. // 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) #pragma once #include <tm/ability.hpp> #include <tm/compress.hpp> #include <tm/generation.hpp> #include <tm/operators.hpp> #include <tm/...
#include <bits/stdc++.h> #define DBG #define FAST_IO #ifdef FAST_IO const int IN_LEN = 1000000, OUT_LEN = 1000000; inline int nextChar() { static char buf[IN_LEN], *h, *t; if (h == t) { t = (h = buf) + fread(buf, 1, IN_LEN, stdin); if (h == t) return -1; } return *h++; } template <class ...
// Copyright (c) 2016, <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 ...
/** @file MODULE : RunLengthVlcDecoder TAG : RLVD FILE NAME : RunLengthVlcDecoder.cpp DESCRIPTION : A class to implement a run length vlc decoder derived from an IVlcDecoder interface. REVISION HISTORY : COPYRIGHT : RESTRICTIONS : ==============================...
#include <PDBClient.h> #include <SharedEmployee.h> #include <GenericWork.h> #include <ReadInt.h> #include <ReadStringIntPair.h> #include <SillyJoinIntString.h> #include <SillyWriteIntString.h> #include "StringIntPair.h" #include "ScanEmployeeSet.h" #include "EmployeeBuiltInIdentitySelection.h" #include "WriteBuiltinEmp...
#include <string> #include <QDebug> #include <QMainWindow> #include <QString> #include <QFile> #include "glpanel.h" std::string textContent(QString path) { QFile file(path); file.open(QFile::ReadOnly | QFile::Text); QTextStream in(&file); return in.readAll().toStdString(); } GLPanel::GLPanel(QWidget...
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
#include <iostream> #include <fstream> #include <memory> extern "C" { #include <sys/stat.h> } #include <gflags/gflags.h> #include <butil/logging.h> #include <brpc/server.h> #include <brpc/restful.h> #include <json2pb/json_to_pb.h> #include <json2pb/pb_to_json.h> #include <brpc/http2.h> #include "fileTest.pb.h" #includ...
/* Go Judge Sandbox Runner by MrOnlineCoder (github.com/MrOnlineCoder/gojudge) (c) 2019 License: see LICENSE file */ #include <Windows.h> #include <iostream> #include <string> #include <sstream> const static char* HELP_MSG = "Usage: sandbox_runner <target> <timelimit> <memlimit>\n" "Options:\n" "<target> - p...
#include <algorithm> #include <cassert> #include <fstream> #include <iostream> #include <iterator> #include <string> #include <tuple> #include <vector> namespace { /*! \brief The possible states of a cell */ enum class Cell { FLOOR, FREE, TAKEN }; std::ostream& operator<<(std::ostream& os, const Cell c) { switch (c...
//============================================================================ // Name : Class3and4_C++_IO.cpp // Author : Biplav // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //========================================================================...
#include "Mesh.hpp" #include <algorithm> #include <cstdlib> #include <vector> int usage(int argc, char * argv[]) { DGP_CONSOLE << ""; DGP_CONSOLE << "Usage: " << argv[0] << " <mesh> [vol2bbox] [d2 <#points> <#bins>]"; DGP_CONSOLE << ""; return -1; } // Computing the signed volume of a face formed by three v...
#include "hlib/image.h" #include "hlib/rt/ray.h" #include "hlib/rt/sphere.h" #include "hlib/random.h" #include "hlib/sampling.h" hstd::Float3 next_dir(float u0, float u1, const hstd::Float3& normal, const hstd::Float3& tangent, const hstd::Float3& binormal) { const float phi = u0 * 2.0f * hstd::kPI; c...
/** * Particle Mesh Sumo Bot * RC Receiver * Author: <NAME> * Date: 2019-02-08 */ #include "Particle.h" SerialLogHandler logHandler(115200, LOG_LEVEL_INFO); SYSTEM_THREAD(ENABLED); String dataString; int rcControl = 0; volatile bool parseData = false; /** * Adafruit 2448 TB6612FNG Dual H-Bridge Motor Driver...
#include <vector> #include <map> #include <fstream> #include <sstream> #include <iostream> #include <thread> #include <algorithm> #include <iomanip> #include <math.h> using namespace std; typedef vector<float> vec; vector<string> split(const string& sentence) { istringstream iss(sentence); vector<string> word...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <windows.h> #include "NvConvexDecomposition.h" #include "wavefront.h" #pragma warning(disable:4996) static bool getBool(const char *str) { bool ret = false; if ( stricmp(str,"true") == 0 || atoi(str) > 0 ) ...
#include "gtest/gtest.h" #include "gtest/gtest-death-test.h" #include "core/doop.hpp" #include "grid/grid.hpp" #include <typeinfo> // Count blocks and check their type class BlockChecker { protected: bool types_check_ = true; short_t block_count_ = 0; const std::type_info& correct_type_; public: ...
#include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <opencv2/contrib/contrib.hpp> #include "string" #include "iostream" #include "math.h" using namespace std; using namespace cv; string img_path; //图片路径 int window_size = 5; //窗口大小 const ...
#include <math.h> // for INFINITY, fabsf, floor, log10, pow #include <stddef.h> // for NULL #include <algorithm> // for max #include <stdexcept> // for runtime_error #include "SpatialMaxPooling.hpp" #include "Tensor.hpp" // for Tensor, TO_TENSOR_PTR #include "TorchData.hpp" // for TorchDat...
#include <sys/socket.h> #include <sys/uio.h> #include <unistd.h> #include <fcntl.h> #include <memory.h> #include <sysexits.h> #include <sys/types.h> #include <sys/wait.h> #include <err.h> #include <sys/procdesc.h> #include <sys/procctl.h> #include <cstdio> #include <errno.h> #include <signal.h> using namespace std; s...
/* * Copyright (C) 2018 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...
//Written and made by <NAME> #include <windows.h> #include <iostream> #include "wContext.h" #include "glContext.h" using namespace std; ///Necessary Globals!!///////////////////////////////////////////////////// ///Ugly as heck, FIX THIS SHIT int nxRez = 0, nyRez = 0; bool windowchange = false; bool ...
// initrd.cpp // Copyright (c) 2019, zhiayang // Licensed under the Apache License Version 2.0. #include "nx.h" #include "miniz.h" #define NX_BOOTINFO_VERSION NX_MAX_BOOTINFO_VERSION #include "bootinfo.h" struct gzip_header_t { uint8_t magic[2]; uint8_t compression; uint8_t flags; uint32_t timestamp; uint8_t...