text
stringlengths
8.71k
38.4k
#include <ByteBoi.h> #include <Arduino.h> #include "GameState.h" #include "Melodies/Notes.hpp" #include "bitmaps/player.hpp" #include "bitmaps/coin.hpp" #include "bitmaps/power_up.hpp" #include "bitmaps/leftWall.hpp" #include "bitmaps/rightWall.hpp" #include "bitmaps/floor.hpp" #include "bitmaps/platform1_1.hpp" #inclu...
// 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/events/x/device_data_manager_x11.h" #include <X11/extensions/XInput.h> #include <X11/extensions/XInput2.h> #include <X11/Xlib.h> #include "...
#include <argp.h> #include <assert.h> #include <inttypes.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <sstream> #include <sylvan_int.h> #include <meddly.h> #include <meddly_expert.h> /* Configuration */ static int verbose = 0; static char* model_filen...
/* * DisambigRatios.cpp * mydisambiguation * */ #include "DisambigRatios.h" #include "DisambigEngine.h" #include <cstring> const char * cRatios::primary_delim = "#"; const char * cRatios::secondary_delim = ","; const unsigned int cRatioComponent::laplace_base = 5; vector < unsigned int > get_max_similarity(...
// *********************************************************************** // // Grappolo: A C++ library for graph clustering // <NAME> (<EMAIL>) // Pacific Northwest National Laboratory // // *********************************************************************** // // Copy...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <stdint.h> #include <stdio.h> #include <signal.h> #include <sys/stat.h> #include <...
#include <cassert> #include <stdint.h> #include <iostream> #include "NetworkInterrupts.hh" #define SIM_ENHANCE #define SIM_NET_PORTS #define SIM_MEMORY //#define SIM_VISUAL_TRACE #define BUFFER_IN_CACHE #include "../Common/mf_api.hh" #include "../LCAcc/LCAccCommandListing.hh" #include "../Common/BitConverter.hh" #inclu...
/*======================================================================= Copyright 2013 <NAME>. All Rights Reserved. This software is distributed for noncommercial use only, without any warranties, and provided that all copies contain the full copyright notice licence.txt located at the base folder of the ...
/* * XRayBenchmarkFromROOTFile.cpp * * this benchmark performs an X-Ray scan of a (logical volume * in a) detector * * the benchmark stresses the distance functions of the volumes as well as * the basic higher level navigation functionality */ #include "VecGeom/management/RootGeoManager.h" #include "VecGeom/vo...
#include "my_pairing.h" // #include <gmp.h> // #include <time.h> #include <stdio.h> #include <stdint.h> uint32_t hextoui(const char * str, int len) { unsigned int i; uint32_t val = 0; char c; for (i = 0; i < len; i++) { c = *(str - i - 1); int32_t c_temp = c; if (c < 0x40) { ...
#include "VortexSheet.hpp" VortexSheet::VortexSheet() { // Don't put anything in here, it is never called } VortexSheet::VortexSheet(const XmlHandler &xml, const std::string &stamp) { m_rho = xml.getValueAttribute("constants", "density"); m_nu = xml.getValueAttribute("constants", "nu"); m_dt = xml.getValueAttribu...
#include <dmzTypesQuaternion.h> #include <dmzTypesString.h> #include <dmzTypesBase.h> #include <dmzTypesMatrix.h> #include <dmzTest.h> #include <math.h> using namespace dmz; Boolean local_equals (const Float64 Val1, const Float64 Val2) { Float64 diff = fabs (Val1 - Val2); return (diff < Epsilon64); } Boolea...
/******************************************************************************* * jlp_GsegAxes_GetPlotSettings.cpp * JLP_GsegAxes class * * JLP * Version 01/04/2017 *******************************************************************************/ #include <stdlib.h> // exit() #include <math.h> #include "jlp_gs...
#include"../../include/hsaco/generator.h" #include"../../include/hsaco/msgpack.h" #define MAX_BUF_SIZE 64 #define alignment(n,m) (((n)+(m)-1)&(~((m)-1))) #define ELF_EHDR(ptr) reinterpret_cast<elf64_ehdr*>(ptr) #define ELF_PHDR(ptr) reinterpret_cast<elf64_phdr*>(&ptr[ELF_EHDR(ptr)->phoff]) #define ELF_SHDR(ptr) ...
// Copyright (C) 2018 <NAME> // This file is part of the Yasl project // For conditions of distribution and use, see copyright notice in LICENSE #include "yasl/core/rect.h" #include "yasl/common/binding/class.h" #include "yasl/common/binding/namespace.h" #include "yasl/common/genericvarianthandler.h" #include "yasl/...
//===-- MipsISelLowering.cpp - Mips DAG Lowering Implementation -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/**************************************************************************** ** ** Copyright (C) 2020 <NAME> ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtBluetooth module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under...
// // Copyright (C) 2014, 2017 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
/* * bench_setmem_lego.cpp * * // Runs legogroth16 on JSnark * Author: <NAME> */ #include "CircuitReader.hpp" #include <libsnark/gadgetlib2/integration.hpp> #include <libsnark/gadgetlib2/adapters.hpp> #include <libsnark/zk_proof_systems/ppzksnark/r1cs_gg_ppzksnark/examples/run_lego.hpp> #include <libsnark...
// ********************************************************************* // ** // ** Informática Gráfica, curso 2019-20 // ** Declaraciones de la clase Objeto3D.hpp // ** // ********************************************************************* //#include <set> // std::set #include "ig-aux.h" #include "tuplasg.h" #in...
#include "Board.hh" #include "Action.hh" void Board::capture (int id, int pl, vector<bool>& killed) { Unit& u = unit_[id]; _my_assert(u.player != pl, "Capturing own unit."); u.player = pl; u.health = (u.type == Farmer ? farmers_health() : knights_health()); grid_[u.pos.i][u.pos.j].id = -1; killed[id] = t...
#include <stdlib.h> #include <locale.h> #ifdef __APPLE__ #include <xlocale.h> #endif #include <iostream> #include <stdlib.h> #include <string> #include <typeinfo> #include <flashlight/app/asr/criterion/AutoSegmentationCriterion.h> #include <flashlight/app/asr/criterion/ConnectionistTemporalClassificationCriterion.h> ...
// // Lol Engine — Fractal tutorial // // Copyright © 2011—2016 <NAME> <<EMAIL>> // // Lol Engine is free software. It comes without any warranty, to // the extent permitted by applicable law. You can redistribute it // and/or modify it under the terms of the Do What the Fuck You Want // to Public License, Versio...
#include <math.h> #include <stdlib.h> #include <algorithm> #include <functional> #include <iostream> #include <limits> #include "heuristics/qubo/palubeckis2004b.h" #include "util/random.h" Palubeckis2004bSolution::Palubeckis2004bSolution(const QUBOSolution &x) : QUBOSolution(x) {} void Palubeckis2004bSolution::STSM...
#include "rasterizer.h" #include <math.h> #define frac(x) ((float)(x)-floor((float)x)) #define FIXED_ONE 0x00000800 #define FIXED_HALF 0x00000400 #define FIXED_FRAC_MASK 0x000007FF #define FIXED_INT_MASK (~FIXED_FRAC_MASK) #define FIXED_EPSILON 1 #define FIXED_SCALE 2048.0f #define FIXED_SHIFT 11...
/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: eos-model-viewer.cpp * * Copyright 2017, 2018 <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 Licens...
#include "kvstore.h" #include <algorithm> #include <filesystem> #include <fstream> #include <iostream> #include <string> #include <vector> #include "common.h" #include "skiplist.h" KVStore::KVStore(const std::string &dir) : KVStoreAPI(dir), dir(dir), verbose(false), memTableSize(0), level(0) { memTable = std...
/****************************************************************************** Copyright (C) 2013 by <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2...
/** * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ...
#include <dmlc/any.h> #include <dmlc/json.h> #include <tvm/expr_operator.h> #include <tvm/relay/pass.h> #include <tvm/relay/expr_functor.h> #include <tvm/relay/op_attr_types.h> #include <list> #include <string> #include <vector> #include "utils.h" #include "../../lang/attr_functor.h" namespace tvm { namespace relay ...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2019 Couchbase, 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 * * ...
/* * Copyright (C) 2014 Team XBMC * http://xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This ...
// Created by <NAME>. // Copyright (c) 2010 Mountainstorm // // 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,...
//////////////////////////////////////////////////////////////////////// // Include files //////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <string> #include <fstream> #include "GSV/GSV.h" #include "R3Graphics...
#include <iostream> #include <math.h> #include <bitset> #include <iomanip> #include "ipv4subnetting.hpp" using std::cout; using std::cerr; using std::endl; using std::setw; using std::left; using std::setfill; using std::bitset; // Print usage information void Address::printUsage() { cout << "Usage: subcal info ...
/* * access_litho * written by <NAME> * December, 2012 * * program to access LITHO1.0 model at lat/lon pair or lat/lon/depth point */ #ifndef MODELLOC #define MODELLOC "/Users/Pasyanos/Work/LITHO1.0" #endif #ifndef TEST #define TEST 2 #endif #include <stdio.h> #include <stdlib.h> #include <math.h> #include...
#include "datahandler.h" #include "image_iterators.h" #include <algorithm> #include <iostream> #include <fstream> #include <sstream> DataHandler::DataHandler(const config::DatasetConfig& config) : preload_thread_(NULL), batch_size_(config.batch_size()), chunk_size_(config.chunk_size()), max_reuse_count_(config...
/* * Just the class to load Quake 2 .MD2 and PCX files in OpenGL/GLUT. * * * Needs A LOT OF refactoring and cleaning! * * */ #include <windows.h> #include <stdio.h> #include <string.h> #include <GL/gl.h> #include <GL/glu.h> #include <iostream> #include <sstream> #include <fstream> #include <string> #include ...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
#include <portinfo> #include "Info.hh" // implementation of class methods #include "geomodelgrids/serial/Model.hh" // USES Model #include "geomodelgrids/serial/ModelInfo.hh" // USES ModelInfo #include "geomodelgrids/serial/Block.hh" // USES Block #include "geomodelgrids/serial/Surface.hh" // USES Surface #include "ge...
// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -fsycl-is-device -emit-llvm %s -o - | FileCheck %s // Array-specific ivdep - annotate the correspondent GEPs only // // CHECK: define {{.*}}spir_func void @_Z{{[0-9]+}}ivdep_array_no_safelenv() void ivdep_array_no_safelen() { // CHECK:...
// // Created by <NAME> on 12/19/16. // #include "SiemensDWIConverter.h" SiemensDWIConverter::SiemensDWIConverter(DWIDICOMConverterBase::DCMTKFileVector & allHeaders, DWIConverter::FileNamesContainer & inputFileNames, const bool ...
/* * This file is part of the statismo library. * * Author: <NAME> (<EMAIL>) * * Copyright (c) 2011 University of Basel * 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...
/** * \file test_unauthorized_protocol_service_isolation_helpers.cpp * * Helpers for the unauthorized protocol service isolation test. * * \copyright 2019-2020 Velo-Payments, Inc. All rights reserved. */ #include <agentd/protocolservice.h> #include <agentd/protocolservice/control_api.h> #include <agentd/randoms...
#include "Builds.h" #include "clang/Frontend/FrontendActions.h" #include "clang/Tooling/CommonOptionsParser.h" #include "llvm/Support/CommandLine.h" #include "clang/Frontend/ASTConsumers.h" #include "clang/Tooling/Tooling.h" #include "utils.h" #include "Finders.h" #include "uuid.h" #include <yaml-cpp/yam...
#include "pfxobjects.h" #include <cstring> #include <cassert> #include "graphics/submesh/pfxemittermesh.h" #include "light.h" #include "particlefx.h" #include "pose.h" #include "rendererstorage.h" #include "skeleton.h" using namespace Tempest; std::mt19937 PfxObjects::rndEngine; PfxObjects::Emitter::Emitter(PfxObj...
// Palanteer viewer // Copyright (C) 2021, <NAME> <<EMAIL>> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version...
/* * Copyright (c) 2015- Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice...
#include <iostream> #include <vector> #include <cstdlib> #include <cmath> #include <chrono> #include <gflags/gflags.h> #include <glog/logging.h> #include "Maxfiles.h" DEFINE_int32(height, 514, "Height of the input feature map"); DEFINE_int32(width, 514, "Width of the input fetaure map"); DEFINE_int32(in_depth, 512, "...
#include <math.h> #include <iostream> #include "ssd_software.h" #include "ssd_interface.h" #include "detectionCom.h" #define SVP_NNIE_SSD_MAX_AR_NUM (32) /********************************************************* Function: PriorBoxForward Description: Ssd PriorBox Init ************************************************...
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * 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 mus...
// Flappy Bird Simulator for ESPresso Lite #include "FlappyBird.h" using namespace flappyBird; FlappyBird::FlappyBird() { // game gameMode = GAME_MODE_TITLE; gameOverVelocity = 0.0f; gameOverPosition = {0.0f}; isGameOver = false; isCheckHighScore = false; titleTime = 0.0f; getReadyTime = 0.0f; game...
//===-- RegisterContextPOSIXProcessMonitor_x86.cpp ------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// ########################################################## // By <NAME> | www.complexity.io | 2018 // Email: <EMAIL> // ---------------------------------------------------------- // A C++ Object Oriented Class Integrating OpenGL // // A Quadtree class managing the data structures for terrain system // Quadtree ter...
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*- /*********************************************************************** * * udptransport.cc: * message-passing network interface that uses UDP message delivery * and libasync * * Copyright 2013 <NAME> <<EMAIL>> * * Permission is hereby granted, ...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
/* https://github.com/peterix/dfhack Copyright (c) 2009-2012 <NAME> (<EMAIL>) 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 purp...
#include "../common/MiniLib/MGL/mglCollision.h" #include "retro_physics.h" retro3d::PhysicsProperties::PhysicsProperties( void ) : m_transform(), m_center_of_mass_offset(mmlVector<3>::Fill(0.0f)), m_linear_velocity(mmlVector<3>::Fill(0.0f)), m_angular_velocity(mmlVector<3>::Fill(0.0f)), m_inv_inertia_tensor(mmlMatrix<...
/*************************************************************************** Animation Sequences. Used in three areas of the game: - The sequence at the start with the Ferrari driving in from the side - Flag Waving Man - 5 x End Sequences See "oanimsprite.hpp" for the specific format u...
// Source file for the pdb viewer program // Include files namespace gaps {} using namespace gaps; #include "R3Graphics/R3Graphics.h" #include "fglut/fglut.h" // Program variables static char *grid_name = NULL; static char *image_name = NULL; static RNScalar background_color[3] = { 1, 1, 1 }; static int print_...
//===- SDBM.cpp - MLIR SDBM implementation --------------------------------===// // // 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 // // http://www....
/* * Copyright (C) 2011-2017 Intel Corporation. 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 li...
/* Copyright (c) <2009> <<NAME>> * * 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, * including commercia...
/// /// @file /// /// This program analyses antenna layout (written to investigate snap-shot imaging limitations) /// /// @copyright (c) 2007 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// <EMA...
#include "ripples.hpp" #include "src/mutation_annotated_tree.hpp" #include <algorithm> #include <cassert> #include <stdio.h> #include <emmintrin.h> #include <vector> typedef unsigned short __v8hu __attribute__((__vector_size__(16))); typedef short __v8h __attribute__((__vector_size__(16))); typedef int __v4i __attrib...
#include <math.h> #include <random> #include <thread> #include "assimp/Importer.hpp" #include "assimp/postprocess.h" #include "assimp/scene.h" #include "a_geom.h" #include "a_image.h" #include "a_material.h" struct Light { uint32_t triangle_index; uint32_t triangle_count; }; struct Scene { ...
/* * Copyright (c) 2015, Nagoya University * 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 ...
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
#include "DSSD.h" #include <TString.h> #include <TH2F.h> #include <TCut.h> #include <TGraph.h> #include <TF1.h> #include <TFitResult.h> using std::string; using std::vector; DSSD::DSSD(TTree *iipt, const char *nn, int xs, int ys) { ipt = iipt; Name = string(nn); XStrip = xs; YStrip = ys; LogFil...
#include <stdlib.h> #include <algorithm> #include <iostream> #include <vector> #include <TString.h> #include "CPAnalysisExamples/errorcheck.h" #include "MonoJet/OutputTreeMan.h" #include "MonoJet/Helper.h" #include "MonoJet/dbg.h" #include "MyXAODTools/CPToolsHelper.h" OutputTreeMan::OutputTreeMan(bool with_sys) { ...
/* ----------------------------------------------------------------------------- * Programmer(s): <NAME> @ UIUC/LLNL * ----------------------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2021, Lawrence Livermore National Security * and Southern Methodist Un...
// #include "sat_verifier.h" #include "verifier.h" #include "pdt.h" #include "Model.h" #include "ProgressionNetwork.h" #include <fstream> #include <string.h> #include <unordered_map> #include <iostream> #include <stdlib.h> #include <getopt.h> #include <unordered_set> #include <algorithm> #include <assert.h> SATVerifie...
#include "ModuleParticles.h" #include "Application.h" #include "ModuleTextures.h" #include "ModuleRender.h" #include "ModuleCollisions.h" #include "SDL/include/SDL_timer.h" ModuleParticles::ModuleParticles(bool startEnabled) : Module(startEnabled) { for(uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) particles[i] = n...
/** * Servos.cpp */ #include <Arduino.h> #include <FS.h> #include <SPIFFS.h> #include <Servo.h> #include <ESP32AnalogRead.h> #include "servos.h" extern FS* filesystem; #define FileFS SPIFFS #define MAX_REQUEST_QUEUE_SZ 16 // Number of Request that can be queued static const int servosPwmPins[MAX_SERVOS...
/* Copyright (c) 2003 - 2014 <NAME> 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, including commercial applic...
#pragma once #include <EGL/egl.h> #include <GLES2/gl2.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <thread> #include <mutex> #include <string> #include <queue> #include <sstream> #include <cassert> #include <algorithm> #include <condition_variable> #include <sched.h> #include <android/config...
#include "FeatureFunctions.h" #include "include/NFIQException.h" #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/core.hpp> #define _USE_MATH_DEFINES #include <math.h> #include <limits> #include <iostream> #include <cstring> static const int maxSampleCount = 50; using namespace NFIQ; using namespace cv...
/* ----------------------------------------------------------------------------- Software License for The Fraunhofer FDK AAC Codec Library for Android © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. All rights reserved. 1. INTRODUCTION The Fraunhofer FDK AAC Codec Lib...
int LbE0hY, XZu ,U, sQ,S8o0S ,ug,go7096 , HY , //NI v,Yt8 ,/*3*/BL0,//hM Ov0, kw,XYt8A ,//QaJZ dvTQC,R , OfMl , f , mi ,jnp , mqAVZa,HMK , Z,IGLo ,QNv3 ,NZL6U, V8C8uF , qF9 , at,dQ1I , Tpct , e , Un4 , v5fhFi, w , bJa ,vSp,//UX uu ,vxYpBT , //F bS , C ,ndZ,l , PRnR , H ,N7 ,PCoX; void f_f0/*sIBAK...
#include "Menu.h" // Window WndProc hooking WNDPROC original_WndProc; LRESULT __stdcall WndProc(const HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { // If the menu is hidden, then pass the event to the original window WndProc. if (!menu->isShown()) { // Weirdly it doesn't work if I don't do "this->bShow = !...
// // SodaIntrinsics.cpp // This module adds all the MiniScript APIs that users use to interface with Soda // to create games. That includes defining intrinsic classes like Display, Sound, // file, etc. // // Created by <NAME> on 7/29/21. // #include "SodaIntrinsics.h" #include "SdlGlue.h" #include "TextDisplay.h"...
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/EbfWriter/src/EbfWriter.cxx,v 1.28 2011/05/20 15:01:26 heather Exp $ /* * HISTORY * * DATE WHO WHAT * 5/13/05 winer Changes to bring the Ebf file in line with the current * hardware configuration. In addition, provide...
#include <fstream> #include <data/list.hpp> #include "yaml-cpp/yaml.h" #include "ProcessingChain.hpp" #include "logging.hpp" using namespace std; using namespace uipf; // loads a configuration from a given .yaml file /* filename the path to the .yaml file */ void ProcessingChain::load(std::string filename){ //ba...
/* Copyright 2020 D-Wave Systems 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 i...
#include "Arduino.h" #include "protocentralAds1292r.h" #include "ecgRespirationAlgo.h" #include <SPI.h> unsigned char Start_Sample_Count_Flag = 0; unsigned char first_peak_detect = FALSE ; unsigned int sample_count = 0 ; /* Variable which will hold the calculated heart rate */ unsigned int sample_index[MAX_PEAK_TO_SE...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using ...
int Gs4E0 , /*tNL*/gC9C , hFy, cG0L ,//k AIsW//BIb ,T , eC, fj,QlN , /*J*/hYG , Ql ,EsF ,wH , OaQ//2Kt , K ,yiriT ,//xy Mcv , Ec,uGW, TayTX0 , jcP , EzNI , Vyo, VK, tT8n ,/*9*/ KPG/**/, M8v , YU , igb, jBZLY , aO /**/,khFUy ,//n r2,/*V*/ M ,DQ , ldUz /*3O0*/, Dh ,IH9, T6l4 ,iieAL//V5C ,ghuA, KV, KoD...
int b , RA4, iS , BPUd ,// LW73/*T9*/ ,JN, S1ws, CV, WEL , nlv ,si , oTouG , g ,W ,/*J*/ OnIY ,//ZP jh , kp , GpA , VYf , q0yc,A ,pQ ,//v X , GcL ,fxEuq ,zL , SqN , Yx3 ,RNE55, cIa90,/*A*/L5 , TBN ,ReU ,Oq5s ,/*00o*/UkjuIF ,Svd,W9v ,//o8r bqFhlCI, Ib, TjE, ynz ,//k0 zX , QFU , xWu ,...
/* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
/* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * 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 you unde...
#define _USE_MATH_DEFINES #include <cmath> #include <iostream> #include <fstream> #include <cassert> #include <string> #include "xmmintrin.h" #include "immintrin.h" typedef float Vec3[3]; void vecSub(Vec3 & D, const Vec3& A, const Vec3& B) { D[0] = A[0] - B[0]; D[1] = A[1] - B[1]; D[2] = A[2] - B[2]; } void v...
#include "stratum.h" void coind_getauxblock(YAAMP_COIND *coind) { if(!coind->isaux) return; json_value *json = rpc_call(&coind->rpc, "getauxblock", "[]"); if(!json) { coind_error(coind, "coind_getauxblock"); return; } json_value *json_result = json_get_object(json, "result"); if(!json_result) { coind_...
#include "ClientConnection.h" #include "Bitrate.h" ClientConnection::ClientConnection() : m_bExiting(false) , m_Enabled(false) , m_Connected(false) , m_Streaming(false) , m_LastSeen(0) { memset(&m_TrackingInfo, 0, sizeof(m_TrackingInfo)); InitializeCriticalSection(&m_CS); m_Statistics = std::make_shared<Sta...
//===-- Subprocess.cpp ----------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.t...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // this include is necessary to get MPI included before anything else to support intel MPI #include "hoomd/ExecutionConfiguration.h" #include <fstream> #include...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Resources.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkCodec.h" #include "SkColorSpacePriv.h" #include "SkColorSpace_A2B.h" #include "SkColorSpace_XYZ...
#include <algorithm> #include "collision/ChCCollisionModel.h" #include "chrono_parallel/math/ChParallelMath.h" #include "chrono_parallel/collision/ChCNarrowphaseMPR.h" #include <chrono_parallel/collision/ChCNarrowphaseUtils.h> using namespace chrono; using namespace chrono::collision; #define MPR_TOLERANCE ZERO_EPSI...
#include "bitmap.h" #include <library/unittest/registar.h> #define INIT_BITMAP(bitmap, bits) \ for (size_t i = 0; i < sizeof(bits) / sizeof(size_t); ++i) { \ bitmap.Set(bits[i]); \ } #define CHECK_BITMAP(bitmap, bits) ...
/* ApproxMC Copyright (c) 2009-2018, <NAME>. All rights reserved. Copyright (c) 2015, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> Copyright (c) 2014, <NAME>, <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...