text
stringlengths
3.08k
22k
/* * 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...
#include "global.h" #include "DateTime.h" #include "RageUtil.h" #include "EnumHelper.h" #include "LuaManager.h" #include "LocalizedString.h" DateTime::DateTime() { Init(); } void DateTime::Init() { ZERO( *this ); } bool DateTime::operator<( const DateTime& other ) const { #define COMPARE( v ) if(v!=other.v) return...
#include "opengl/opengl.hpp" #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 auto VideoGLX_X11ErrorHandler(Display*, XErrorEvent*) -> int { return 0; //suppress errors } struct VideoGLX : VideoDriver, OpenGL { VideoGLX& self = *this; VideoGLX(Video& super) : VideoDriv...
#include "RecoTracker/SpecialSeedGenerators/interface/GenericTripletGenerator.h" #include "RecoTracker/TkSeedGenerator/interface/FastCircle.h" typedef SeedingHitSet::ConstRecHitPointer SeedingHit; #include "FWCore/Framework/interface/ConsumesCollector.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #inclu...
/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** v4l2compress_x264.cpp ** ** Read YUYV from a V4L2 capture ->...
namespace { char const* bleu_usage_name="BLEUModel"; char const* bleu_usage_short="[-o 3|4]"; char const* bleu_usage_verbose="Uses feature id 0! Make sure there are no other features whose weights aren't specified or there may be conflicts. Computes oracle with weighted combination of BLEU and model score (from previ...
//***************************************************************************** // Copyright 2017-2019 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://w...
#include <exception> #include <string> #include <regex> #include <iostream> #include <fstream> #include <chrono> #include "cpu.hpp" #include "sys.hpp" #include "timers.hpp" #include "gpio.hpp" #include "screen.hpp" #include "spi.hpp" #include "sd.hpp" #include "sct.hpp" #include "initerror.hpp" #includ...
#include <vector> #include <stack> #include "ext/from_chars.hh" #include "ext/lexy.hh" #include "utils/timeit.hh" #include "tree/newick.hh" #include "tree/tree.hh" // https://en.wikipedia.org/wiki/Newick_format // ====================================================================== namespace ae::tree::newick { ...
/* GCE.cpp * * Created on: 06.05.2013 * Author: cls */ #include <networkit/scd/GCE.hpp> #include <unordered_map> namespace { template <bool> struct ConditionalCount { void increaseNumBoundaryNeighbors() {} void decreaseNumBoundaryNeighbors() {} NetworKit::count getNumBoundaryNeighbors() { throw std::lo...
#include <stdlib.h> #include <typeinfo> #include <unordered_map> #include <math.h> #include "mog/core/opengl.h" #include "mog/core/Engine.h" #include "mog/core/opengl.h" #include "mog/base/Scene.h" #include "mog/base/AppBase.h" #include "mog/core/Device.h" #include "mog/core/AudioPlayer.h" #include "mog/core/DataStore....
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2017 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
// // groupForest.cpp // Forest // // Created by <NAME> // Copyright © 2020 <NAME>. All rights reserved. // // Parallel version of Forest - a green cellular automata // Which implements groups and group communicators // Programmed in C++ using MPI libraries // // There are two automatas running in parallel // ...
#include <assembly_dual_controllers/servers/task_space_move_action_server.h> #define EYE(X) Eigen::Matrix<double, X, X>::Identity() TaskSpaceMoveActionServer::TaskSpaceMoveActionServer(std::string name, ros::NodeHandle &nh, std::map<std::string, std::shared_ptr<FrankaModelUpdater> > &...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright 2021- The GROMACS Authors * and the project initiators <NAME>, <NAME> and <NAME>. * Consult the AUTHORS/COPYING files and https://www.gromacs.org for details. * * GROMACS is free software; you can redistribute it and/or * modify i...
#include "pch.h" #include "Bezier.h" #include <ctime> UniEngine::BezierCubic2D::BezierCubic2D() { m_controlPoints[0] = glm::vec2(0); m_controlPoints[1] = glm::vec2(0.5f, 0.0f); m_controlPoints[2] = glm::vec2(0.5f, 1.0f); m_controlPoints[3] = glm::vec2(1, 1); } glm::vec2 UniEngine::BezierCubic2D::GetPo...
/* @@@LICENSE * * Copyright (c) 2008-2013 LG Electronics, 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 appli...
#include <dis6/GriddedDataPdu.h> using namespace DIS; GriddedDataPdu::GriddedDataPdu() : SyntheticEnvironmentFamilyPdu(), _environmentalSimulationApplicationID(), _fieldNumber(0), _pduNumber(0), _pduTotal(0), _coordinateSystem(0), _numberOfGridAxes(0), _constantGrid(0), _environmentTyp...
#include <iostream> #include <sstream> #include <fstream> #include <array> #include <unordered_map> #include <numeric> #include <fmt/format.h> #include <dstr/string.h> #include "../days.h" // ----- PART 1 ----- struct Player { int32_t position; int32_t score; }; class DeterministicDice { public: DeterministicDice(...
/*======================================================================= * File name: IVBlockManager.cpp * Author: <NAME> * Mail: <EMAIL> * Last Modified: 2018-02-08 * Description: * Implementation of class IVBlockManager * ======================================================================*/ #include "IVBl...
///////////////////////////////////////////////////////////////////////// /// /// /// YARP - Yet Another Robotic Platform (c) 2001-2004 /// /// /// /// #...
/************************************************************************ * Copyright 2013 <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...
// Copyright (c) 2003-2021 Xsens Technologies B.V. or subsidiaries worldwide. // All rights reserved. // // 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 ...
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology, * Brandeis University, Brown University, and University of Massachusetts * Boston. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/******************************************************************************* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ #include "wrap_image.h" #include "inference_backend/logger.h" #include "utils...
/* Copyright 2016-2017 <NAME> * * Use of this software is governed by the MIT license * * Written by <NAME>, Weststrasse 47, CH-8003, Zurich */ #ifndef IS_TRUE #define IS_TRUE(b) (b) #endif /* Test the pointer interface for interaction between isl C and C++ types. * * This tests: * - construction from an isl ...
#include "Ball.h" #include "Files.h" #include <vector> using namespace kmd; using namespace kake; namespace { const int iconHeaderSize = 6; const int iconDirEntrySize = 16; const int bmpHeaderSize = 40; Ball* instance = nullptr; /*int convertByteArrayToInt(std::vector<byte> buffer) { if (buffer....
//---------------------------------------------------------------------------- /** @file GoSafetySolver.cpp See GoSafetySolver.h. */ //---------------------------------------------------------------------------- #include "SgSystem.h" #include "GoSafetySolver.h" #include "GoBlock.h" #include "GoChain.h" #include "...
#include "stdafx.h" #include "Profiler.h" #include "ConstantBuffer.h" #include "ShaderVariation.h" #include "Shader.h" #include "Texture.h" #include "JSONFile.h" #include "ResourceCache.h" #include "Material.h" #include "Engine/DebugNew.h" SharedPtr<Material> Material::defaultMaterial; HashMap<String, unsigned char> M...
#include "hydra_imgui.h" #include "hydra_lib.h" #include "ShaderCodeGenerator.h" #include "Lexer.h" // Hydra Graphics Data static hydra::graphics::TextureHandle g_font_texture; static hydra::graphics::PipelineHandle g_imgui_pipeline; static hydra::graphics::BufferHandle g_vb, g_ib; static hydra::graphics::BufferHandl...
#include "vertexrecorder.h" #include <cassert> #include <cstdint> #include "gl.h" #ifndef M_PIf #define M_PIf 3.141592f #endif VertexRecorder::VertexRecorder() :m_nverts(0) { } void VertexRecorder::record(Vector3f pos, Vector3f normal) { record(pos, normal, Vector3f(1, 1, 1)); } void VertexRecorder::record_...
// -------------------- <NAME> (on/off swith) -------------------- // #include <Arduino.h> #include <VirtualWire.h> #include <Keypad.h> #include <Password.h> // Pattes du Arduino : const byte SWITCH = 13; const byte LASER = 2; const int VW_TRANSMIT_PIN = 12; const byte LIGHT_SENSOR = A5; // Capteur de lumière : cons...
#include "Grid.h" #include <iostream> Grid::Grid(GetFromFile &dataFilePar) : dataFile(dataFilePar), gridFile(dataFile.getWord<std::string>("GRID_FILE")), poro(gridFile.getWord<double>("PORO")), perm(gr...
#include "erm/loaders/collada/ColladaGeometriesLoader.h" #include "erm/loaders/collada/ColladaLoaderUtils.h" #include "erm/rendering/data_structs/IndexData.h" #include "erm/rendering/data_structs/Mesh.h" #include "erm/rendering/data_structs/Model.h" #include "erm/rendering/data_structs/VertexData.h" #include "erm/ut...
/* Copyright (c) 2019, <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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions ...
/****************************************************************************** * * Copyright (C) 2012 Broadcom 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: * * h...
#include "MSN.h" /* Written by Michael "slaad" Davidson based off docs from http://www.hypothetic.org/docs/msn/ */ #include <libim/Constants.h> #include <libim/Helpers.h> #include <openssl/rand.h> #include <UTF8.h> const char *kProtocolName = "msn"; const char *kThreadName = "IMKit: MSN Protocol"; extern "C" { ...
#include <iostream> #include <vector> #include <memory> #include <random> #include <map> #include <chrono> #include <numeric> #include <functional> #include <cmath> void test_height_gen(uint16_t num_iter); static inline std::vector<int> *random_integers(int low, int high, uint size); template<typename T> struct ski...
#include<bits/stdc++.h> //#include<iostream> //#include<cstring> using namespace std; //coordinates within 8x8 are valid bool valid(int x, int y){ return (x >= 0) && (x < 8) && (y >= 0) && (y < 8); } void printhash(){ cout<<"\033[1;35m"<<'#'<<"\033[0m"<<" "; } void printx(){ cout<<"\033[1;31m"<<'x'<<"\033[...
/* Copyright (c) 2010-2011 mbed.org, MIT License * * 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, pu...
// AGPLv3 License // Copyright (c) 2019 <NAME> #include "ui.h" #include "gfx.h" #include "imgui/imgui.h" #include "imgui/imgui_impl_sdl.h" #include "imgui/IconsForkAwesomeData.h" #if defined(USE_GL3) #include "imgui/imgui_impl_opengl3.h" #elif defined(USE_GL2) #include "imgui/imgui_impl_opengl2.h" #elif defined(USE_...
#include <Validation/HcalDigis/interface/HcalDigisClient.h> // -*- C++ -*- // // Package: HcalDigisClient // Class: HcalDigisClient // /**\class HcalDigisClient HcalDigisClient.cc Validation/HcalDigisClient/src/HcalDigisClient.cc Description: [one line class summary] Implementation: [Notes on implement...
/* * Nlp.cpp * * Created on: 2018-04-23 * Author: <NAME> (<EMAIL>) */ #include "Nlp.h" #include <cstddef> #include <fstream> #include <csv/csv.h> /*********************************** NLP FstLoader class start ************************************/ NlpFstLoader::NlpFstLoader(std::vector<RawNlpRecord> &r...
/* ooo, .---. ____ ____ ___ _ ____ _____ ____ ____ _ ____ _ _ _____ _ _____ _____ * o` o / |\________________ / _\/ __\\ \/// __\/__ __\/ _ \ / _\/ \ /|/ _ \/ \ / \ / __// \ /|/ __// __/ * o` 'oooo() | ________ _ _) | / | \/...
#include <string> #include <tuple> #include <vector> #include <iostream> #include <optional> #include "tarantool-cpp.hpp" using namespace tarantool; //void test1() { // // int ox = -3; // unsigned oy = 10; // std::string oa = "STRING1"; // std::string ob = "S2"; // // std::vector<char> data(4096, '\...
/* cis_splice_effects_identifier.cc -- 'cis-splice-effects identify' methods Copyright (c) 2015, The Griffith Lab Author: <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 Softwar...
#include "core.h" #include "wbactionrosacheckcone.h" #include "configmanager.h" #include "Components/wbcomprosatransform.h" #include "Components/wbcomprosacollision.h" #include "Components/wbcomprosacamera.h" #include "Components/wbcomprosaheadtracker.h" #include "Components/wbcomprosamesh.h" #include "Components/wbcom...
/*! \file fighter.cpp * \brief * \author <NAME> < kevin @ somervill dot org > * \date 2018-07-29 */ #include <cstdio> #include "fighter.h" #include <iostream> using std::cerr; using std::endl; //#include "mine_controller.h" fighter::fighter() { _lives = DEFAULT_LIVES; _max_health = 100; _health = _max_he...
/* * 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...
/** * Author: <NAME> (<EMAIL>) * * 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 o...
/* PARSER.H VAMPIRE: Variation-Aware model of Memory Power Informed by Real Experiments https://github.com/CMU-SAFARI/VAMPIRE Copyright (c) SAFARI Research Group at Carnegie Mellon University and ETH Zürich Released under the MIT License */ #include <assert.h> #include "parser.h" /******************/ /* Class : P...
/* * Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates * * 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 req...
/** XR Vessel add-ons for OpenOrbiter Space Flight Simulator Copyright (C) 2006-2021 <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 Software Foundation, either version 3 of the License, or any later v...
// // The MIT License (MIT) // // Copyright (c) 2013 <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,...
//$Id$ //------------------------------------------------------------------------------ // RungeKuttaFehlberg56 //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Copyright (c) 2002 - 2017 United States Government as...
//===-- R600TextureIntrinsicsReplacer.cpp ---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // $Id: Rect.cpp 5027 2010-02-18 19:41:48Z rares $ // // RETree.cpp : Defines the entry point for the console application. // // Copyright (C) 2004 - 2007 by The Regents of the University of // California // // Redistribution of this file is permitted under the terms of the // BSD license // // Date: October, 2...
#include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <list> #include <thread> #include <tuple> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/Dense" #include "Eigen-3.3/Eigen/QR" #include "MPC.h" #include "json.hpp" #include "tools.h" using std::list; using...
#include "bird/WizardNode.h" #include "bird/CommonUtils.h" using namespace bird; #include "SixCatsLogger.h" #include "SixCatsLoggerMacro.h" #include <sstream> USING_NS_CC; using namespace std; static const float downStepDuration = 0.5; // time to go down for one step static const float upStepDuration = 0.5; // stati...
// // circular_array.cpp // kssutil // // Created by <NAME> on 2014-12-18. // Copyright (c) 2014 Klassen Software Solutions. All rights reserved. // Licensing follows the MIT License. // #include <iostream> #include <string> #include <vector> #include <kss/test/all.h> #include <kss/util/circular_array.hpp> usin...
// homework_planner.cpp // <NAME> // 1/1/2017 // Keeps track of homework #include <iostream> using std::cout; using std::cin; using std::endl; #include <string> using std::string; using std::getline; #include <map> using std::map; #include <tuple> using std::tuple; using std::make_tuple; using std::get; #include <sstr...
#include "mainwindow.h" #include "ui_mainwindow.h" #include "qpainter.h" #include <QThread> #include <QLabel> #include <QMovie> #include <QTime> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); movie = new QMovie("source/dice.gif");...
/* * Example.cpp (Example_MultiThreading) * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>) * See "LICENSE.txt" for license information. */ #include <ExampleBase.h> #include <thread> #include <mutex> #include <chrono> #include <iomanip> // Enables/disables the use of two secondary ...
#include "landmarked_neighbors.cpp" #include "msams_converge_core.h" //#include <pthread.h> #include <string.h> #include <assert.h> // Copyright 2006-2008 by <NAME> // This is the function that is called by pthread // It just casts the void* to an appropriate pointer type template <class Tdata,class Tint> void *msams...
/* * Copyright (c) 2016-2019 <NAME> https://irlanrobson.github.io * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose...
#include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<vector> #include<iostream> using namespace std; typedef long long ll; typedef pair<ll,ll> PLL; #define sqr(x) ((x)*(x)) #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) const int maxN=505000; const int maxM=maxN<<1; const ll INF=1e18; PLL o...
/* Copyright 2011 AIT Austrian Institute of Technology * * This file is part of OpenTLD. * * OpenTLD 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 License, or * (at your o...
// // Project for course Computer Graphics (PGR) // Faculty of Information Technology, Brno University of Technology // // Authors: <NAME>, <EMAIL> // <NAME>, <EMAIL> // <NAME>, <EMAIL> // Date: December 2014 // #include "pgr.h" #include "water.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_tran...
/* * Fadecandy driver for the APA102/APA102C/SK9822 via SPI. * * Copyright (c) 2013 <NAME> * Copyright (c) 2017 <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 with...
#include "common.h" #include <cstdio> #include <cstring> #include <cstdlib> /* Reads in a 4 byte int for the number of elements then reads that much elem_size byte * sized data from the same file */ void readData(FILE* in, unsigned int* num_elems, void** data, size_t elem_size,const char* filename) { free(*data); ...
/* Copyright (c) 2014, Trail of Bits All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
/* * Copyright (c) 2014, The Linux Foundation. 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 ...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#include <vector> #include "saber/core/context.h" #include "saber/funcs/reshape.h" #include "test_saber_func_conv_act_x86.h" #include "saber/core/tensor_op.h" #include "saber/saber_types.h" #include "saber/funcs/conv_act.h" #include "x86_test_common.h" #include "utils/logger/logger.h" using namespace anakin::saber; ...
// // Created by pengpeng on 1/11/21. // #include <ros/ros.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/TwistStamped.h> #include <mavros_msgs/CommandBool.h> #include <mavros_msgs/SetMode.h> #include <mavros_msgs/State.h> #include <mavros_msgs/AttitudeTarget.h> #include <mavros_msgs/OpticalFlowRad...
#include <functional> #include <queue> #include <algorithm> #include <stdio.h> #include <string.h> #include <stdint.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/fcntl.h> #include <unistd.h> #include <omp.h> #include <cstdlib> #include <arpa/inet.h> #define IGNORE_PRINTF #ifdef IGNORE_PRINTF #define pr...
// Copyright (c) 2018-2019 Tkeycoin Dao // Copyright (c) 2020 TKEY DMCC LLC & Tkeycoin Dao. All rights reserved. // Website: www.tkeycoin.com // // 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 Licen...
#include "RecoVertex/KinematicFit/interface/PointingKinematicConstraint.h" #include "RecoVertex/VertexPrimitives/interface/VertexException.h" std::pair<AlgebraicVector, AlgebraicVector> PointingKinematicConstraint::value(const AlgebraicVector& exPoint) const { if (exPoint.num_row() == 0) throw VertexException("P...
// Copyright 2014 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 "ui/gl/gl_version_info.h" #include "base/check_op.h" #include "base/notreached.h" #include "base/stl_util.h" #include "base/strings/strcat.h" #i...
/* * Demonstrate external client inputing and receiving outputs from a SPDZ process, * following the protocol described in https://eprint.iacr.org/2015/1006.pdf. * * Provides a client to bankers_bonus.mpc program to calculate which banker pays for lunch based on * the private value annual bonus. Up to 8 clients ca...
#include "Process.h" #include <sys/types.h> //#include <dirent.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <string> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include "board.h" #include "section.h" #include "optionssection.h" #include "...
/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2004 <NAME>, <<EMAIL>>, et al. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * versi...
#include "simlib/string_transform.hh" #include <gtest/gtest.h> // NOLINTNEXTLINE TEST(string_traits, has_prefix) { EXPECT_EQ(true, has_prefix("", "")); EXPECT_EQ(true, has_prefix("abc", "")); EXPECT_EQ(true, has_prefix("abc", "a")); EXPECT_EQ(true, has_prefix("abc", "ab")); EXPECT_EQ(true, has_pre...
#include "platform.h" #include "debug.h" #include "settings.h" EmulatorSettings nesSettings; struct SettingInfo { SettingType type; SettingGroup group; bool available; int defaultValue; int numValues; const char* name; const char** values; const char* help; }; /* System Autosave - Whether the game auto s...
/* ** Copyright 2015 Centreon ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in ...
#include "events.h" #include "../misc/misc.h" #include "../ragebot/ragebot.h" #pragma comment( lib, "Winmm.lib" ) c_event_listener g_events; c_event_listener::c_event_listener( ) { } c_event_listener::~c_event_listener( ) { if( !m_eventlistener ) return; //g_csgo.m_game_event->RemoveListener( thi...
#include "Translator/include/FileHandler.h" // Location of VMX-pi override maps const constexpr char CHANNEL_MAP_JSON[] = "/usr/local/frc/third-party/lib/Maps/ChannelMap.json"; static constexpr char DEFAULT_CHANNEL_MAP_JSON[] = "\ {\ \"DIO\": {\ \"EnumValue\":1,\ \"ReferenceTo\":\"VMXChannel\",\ \"Coun...
#include "Hero.h" #include <unordered_map> #include <unordered_set> #include "DataSet.h" #include "Endgame.h" #include "GameScene.h" #include "Interaction.h" #include "Item.h" #include "cocos2d.h" #include "ui.h" using namespace cocos2d; bool Hero::init() { if (!Mob::init(kShapeMaskHero)) return false; scheduleUp...
/* * @brief sim_loc_pointcloud_converts sim_loc_driver messages (type sick_lidar_localization::SickLocResultPortTelegramMsg), * to PointCloud2 messages and publishes PointCloud2 messages on topic "/cloud". * * The vehicle poses (PoseX, PoseY, PoseYaw of result port telegrams) are transformed and published * by tf-...
/* The code is still buggy. I wrote this quite a while ago and will have to dig a lot fix the bug. The program takes a black image with starting positions of cue ball and the stick direction. The ball then proceeds to move and collide with the walls. 1.png is working 2.png is buggy 3.png is working */ #include "op...
#pragma once #include <cfloat> #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <string> #include <vector> #include <chrono> #include <mpi.h> #define USE_FLOATS 1 #if USE_FLOATS const float REAL_MAX = FLT_MAX; typedef float Real; #define VORTIGEN_MPI_REAL MPI_FLOAT #else const...
#include "opencv2/opencv.hpp" #include "opencv2/core/ocl.hpp" #include <iostream> #include <deque> #include "profile.h" using namespace cv; using namespace std; struct TrackerCamShift { int smin, smax, vmin, vmax; Mat hue, mask, hist; Rect box; TrackerCamShift(int smin=30, int smax=256, int vmin=10,...
/* GyroGlove.cpp - Library for interfacing with a gyro glove https://github.com/Lumorti/gyroGlove */ #include <Arduino.h> #include <Wire.h> #include "GyroGlove.h" // Class constructor GyroGlove::GyroGlove() { } // Wake up all the gyros void GyroGlove::init() { Wire.begin(); // Go through all th...
// // Created by <NAME> on 10/6/20. // #include <opencv2/opencv.hpp> #include "imgproc/graph_cut.h" #include "math/GaussianMixture.h" /*#include <boost/filesystem.hpp> #include <boost/regex.hpp>*/ #include "utils/timingMacros.h" //#define WIDTH 64 //#define HEIGHT 64 #define MIN_PROB 1e-11f const std::vector<std::ve...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * Copyright (c) 2022, <NAME> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Format.h> #include <AK/String.h> #include <AK/StringBuilder.h> #include <LibCore/ArgsParser.h> #include <LibCore/File.h> #include <LibCore/StandardPaths.h> #include <LibLine/Editor.h> #...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
//****************************************************************** // // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
#include "oauth24d_provider.h" namespace { // null deleter to conform rtc::Thread* to std::shared_ptr interface safely struct NullDeleter { template<typename T> void operator()(T*) {} }; } OAuth24DProvider::OAuth24DProvider(const std::string& codeUri, const std::string& pollUri) : code_uri_(codeUri), poll_u...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* A simple program to provide intro help to the icommands */ #include "rodsClient.hpp" #include "parseCommandLine.hpp" char *icmds[] = { "iadmin", "ibun"...