text
stringlengths
3.08k
22k
#pragma once #include "mws/mws.hxx" #include "input/gesture-detectors.hxx" #include "gfx-pbo.hxx" class mws_draw_text; class mws_font; class mws_mod; class mws_vrn_main; class mws_text_vxo; class gfx_tex; class mws_vrn_kernel_pt_vect; const std::string VKB_PREFIX = "vkb-"; const std::string VKB_EXT = ".kxmd"; // ...
/** * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ // Copyright (c) 2014-2020 NetEase, Inc. // All right reserved. #include "members_model.h" #include <bitset> MembersModel::MembersModel(...
/** * Maze7/src Graph.cpp * Author: <NAME> * Date: 06/9/2019 * Description: This source file implements the methods and structures outlined for a Graph maze. */ #include "Graph.h" #include "GNode.h" #include <vector> #include <queue> #include <iostream> #include <fstream> using namespace std; void Graph::rea...
#include "ctxt.h" #pragma comment(lib, "4db") #include <iostream> #include <sstream> #include <fstream> #include <codecvt> std::unordered_map<std::wstring, std::wstring> fieldNames { { L"Track ID", L"trackId" }, { L"Size", L"sizeBytes" }, { L"Total Time", L"timeMs" }, { L"Disc Number", L"discNumber" ...
// EnterNameGfx.cpp: implementation of the EnterNameGfx class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "EnterNameGfx.h" #include "cButtonGfx.h" #include "gfx_util.h" #include "cCheckBoxGfx.h" #include "cEditGfx.h" #include "cComboGfx.h" #include "cSettin...
//===-- lib/DC/DCTranslator.cpp - DC Translation Engine ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <arm/ARMDisassembler.h> #include <arm/gen/ARMDecodingTable.h> #include <iostream> #include <limits> #include <cassert> #include <cstdio> #include <boost/algorithm/string.hpp> #include "Utilities.h" #include "test_utils.h" namespace darm { extern "C" { #include <darm.h> } } #include <capstone/capstone.h> us...
#include "GetROC.h" #include "Utility.h" #include <algorithm> #include <string> #include <cmath> void GetROC::rocResult(int colNum, int skip, const char* matchFName, const char* nonMatchFName, const char* outputFName, int pos, int index) { vector<float> match, nonMatch, newMatch...
/* * File: XMLscan.hpp * Author: <NAME> * * Created on September 17, 2013, 9:51 PM */ #include "XMLutils.hpp" #include <cctype> #include <string> #include <vector> using namespace XMLutil; using std::string; //TESTING STUFF #include <iostream> using std::cout; using std::endl; //utility functions use...
/* <NAME> Summer 2019 Lab 4 Problem 4.2 Description of problem: This program creates another class called StringOfCars which creates an array of pointers to car objects. It has a push and pop function that adds and removes a car from the string of cars. It has an output function that prints a heading for each c...
/**** EulerAngles.c - Convert Euler angles to/from matrix or quat ****/ /* <NAME>, 1993 */ // KEF 11/17/99 - Minor modifications to fit LT data types #include <math.h> #include <float.h> #include "lteulerangles.h" inline void EulGetOrd(int ord, int &i, int &j, int &k, int &h, int &n, int &s, int &f) { unsigned o=or...
/******************************************************************************/ /* Mednafen - Multi-system Emulator */ /******************************************************************************/ /* rmdui.cpp: ** Copyright (C) 2014-2017 Mednafen Team ** ** This program is...
/* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is 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://aws.amazon.com/apache2.0/ This file is dist...
#ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #include <SDL.h> #ifdef WIN32 #undef main /* avoid SDL's nasty SDLmain hack */ #endif #include <SDL_opengl.h> #include <bass.h> #include <stdio.h> #include <stdarg.h> #include <math.h> #if defined(__APPLE__) && defined(__MACH__) #include <GLKit/GLKM...
/* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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...
#include "WCSimTrajectory.hh" #include "G4TrajectoryPoint.hh" #include "G4ParticleTypes.hh" #include "G4ParticleTable.hh" #include "G4AttDefStore.hh" #include "G4AttDef.hh" #include "G4AttValue.hh" #include "G4UnitsTable.hh" #include "G4VProcess.hh" #include <sstream> //G4Allocator<WCSimTrajectory> aTrajectoryAlloca...
//======================================================================== // This is a small test application for GLFW. // The program opens a window (640x480), // and renders the specified obj file. //======================================================================== #include <fstream> #include <math.h> #inclu...
#include "Practical.h" #include <iostream> #include <stdio.h> #include <string.h> //strlen #include <cstring> #include <stdlib.h> //strlen #include <cstdlib> #include <cstdio> #include <sys/socket.h> #include <arpa/inet.h> //inet_addr #include <unistd.h> //write #include <iomanip> #include <fstream...
/*! * \file: affinesyscontrol.cpp * * \brief: Base class to represent affine systems. * This file implement method to compute the contro at each iteration of the krotov0s method. * This is a very difficult task when the numer of control is larger than 1. * In this version computeControl is just a ...
#include <string> #include <iostream> #include <map> #include <boost/tokenizer.hpp> #include <boost/shared_ptr.hpp> #include <boost/lexical_cast.hpp> // header files struct MsConsts{ enum MsType { UnknownMsType = -1, Logon, NewOrderSingle, // ... MsTypeNum }; enum FieldType { Unkn...
/* tap2cd : converts .TAP images to 22050 baud WAV files */ /* F.Frances 1999 */ #pragma warning( disable : 4996) // #define _CRT_SECURE_NO_WARNINGS #include "infos.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define FALSE 0 #define TRUE 1 FILE *in,*out; int file_size; unsigne...
/* * Copyright (C) 2002 <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 2 of the License, or * (at your option) any later version. * * This program is distributed...
#include <cmath> #include <cstdlib> #include <cstdio> #include <sched.h> //#include <omp.h> // define SIMD data type. 2 doubles are packed in 1 XMM register typedef double v2dt __attribute__((vector_size(16))); v2dt const v1 = {1.0, 1.0}; struct Param { union { double* u; // source v2dt* xm...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/autofill/phone_number_i18n.h" #include "base/basictypes.h" #include "base/logging.h" #include "base/stringprintf.h" #include...
#include <sys/socket.h> #include <sys/epoll.h> int create_and_bind_udp(uint16_t port); int create_bind_and_listen_tcp(uint16_t port); void print_addr(const sockaddr* peer_addr, socklen_t peer_addr_len); // Base class for handling notifications from epoll. class EPollHandlerInterface { protected: const int sock_; ...
/* ** Filename: test_basic.cpp ** ** Test basic Boolean expression creation and deletion */ #include "boolexprtest.hpp" TEST_F(BoolExpr_Test, CreateOperators) { BoolExpr *ys[4] = {xns[0], xs[1], xns[2], xs[3]}; ops[0] = BX_Or(4, ys); ops[1] = BX_Nor(4, ys); ops[2] = BX_And(4, ys); ops[3] = BX_N...
#include "UILoader.hpp" #include "../GUI/Menu.hpp" #include "../GUI/Window.hpp" Import::UILoader::UILoader() { errorID = 0; } /** * @brief * Loads an XML file into memory, throwing a runtime_error * if it fails to load the file. * * @param filepath * * @return */ bool Import::UILoader::loadXML(std::str...
/* * Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. 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 Software without restriction, including without limitation the righ...
#include <iostream> #include "bytegen.hpp" #include "endian.hpp" #include "VSysInstructions.hpp" #include <random> #include "CppUTest/TestHarness.h" namespace { uint8_t addOppCode(uint8_t ins, NABLA::Bytegen::ArithmaticSetup setup) { if(setup == NABLA::Bytegen::ArithmaticSetup::REG_REG){ ret...
#define _CRT_SECURE_NO_WARNINGS // c++ standard library headers #include <chrono> #include <iostream> #include <memory> #include <thread> #include <vector> // other library headers #include <GL/glew.h> #include <SDL2/SDL.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp...
// Copyright (c) 2013 Adobe Systems Inc // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publis...
#include <nanogui/layout.h> #include "common.hpp" #include "directpopup.hpp" #include "clickablelabel.hpp" #include "glshadersource.hpp" #include "glshaderobject.hpp" #include "graphnodelink.hpp" #include "connector.hpp" #include "graphnode.hpp" #include "genericgraphnode.hpp" #include "mergegraphnode.hpp" #include "ou...
// Copyright (c) 2020 PaddlePaddle Authors. 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 requir...
#include<fstream> #include "Global.h" #include "CameraModel.h" // ### CameraModel ### // Construct empty CameraModel::CameraModel(){} // Construct with a calibration file CameraModel::CameraModel(string calibration){ FileStorage fs(calibration, FileStorage::READ); fs["raw_width"] >> raw_width; fs...
/**************************************************************************** * Copyright (c) 2021, 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 must retai...
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
// This program reads a bunch of graphs from standard input, and tests the subdivision and // Brill–Noether conjectures for these graphs. // // Usage: // ./subdivision_conjecture [-gfvv] [k] < infile.in // // Numerical argument k: number of parts into which every edge must be subdivided // ...
/** * @Copyright 2015 seancode * * Handles loading and caching of texture files */ #include <QDir> #include <QStandardPaths> #include <QDebug> #include "./gltextures.h" #include "./steamconfig.h" #include "./handle.h" #include "./lzx.h" GLTextures::GLTextures() { valid = false; } void GLTextures::destroy() { ...
/***************************************************************************** * Copyright (C) 2008-2011 Massachusetts Institute of Technology * * * * Permission is hereby granted, free of charge, to any person obtaining * * ...
#include <actionlib/client/simple_action_client.h> #include <angles/angles.h> #include <costmap_2d/cost_values.h> #include "bruce_exploration/exploration_client.h" namespace bruce_exploration { ExplorationClient::ExplorationClient(ros::NodeHandle nh) : nh_(nh), move_base_client_("/move_base", true), grid_loaded_(fa...
#include "StEEmcMixEvent.h" ClassImp(StEEmcMixEvent); // ---------------------------------------------------------------------------- StEEmcMixEvent::StEEmcMixEvent() { for ( Int_t ii=0;ii<90;ii++ ) { pedEEmcDSM_HT[ii]=1; pedEEmcDSM_TP[ii]=1; } for ( Int_t ii=0;ii<10;ii++ ) { ped...
#include "llvm/Pass.h" #include "llvm/IR/Module.h" #include "llvm/IR/Function.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Dominators.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Support/raw_ostream.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/Transforms/IPO/Pas...
/* UPCxx_DepSpawn: UPC++ Data Dependent Spawn library Copyright (C) 2021-2022 <NAME>. Universidade da Coruna Distributed under the MIT License. (See accompanying file LICENSE) */ #include <cstdlib> #include <cstdio> #include <cstring> #include <cmath> #include <cctype> #include <sys/types.h> #include "upcxx_deps...
/* Copyright (c) 2003, 2020, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (includ...
/* * Copyright 2022 <NAME>, Algorithms Department, TU Braunschweig * * 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, ...
//===- CoverageExporterJson.cpp - Code coverage export --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "RushBAllocator.h" #include "RushPointer.h" #include <memory> const size_t CalculatePadding(const size_t baseAddress, const size_t alignment) { const size_t multiplier = (baseAddress / alignment) + 1; const size_t alignedAddress = multiplier * alignment; const size_t padding = alignedAddress - bas...
#include <iostream> #include <string> #include <cmath> #include <SDL.h> struct vec2_t { float x; float y; vec2_t() : x(0), y(0) {} vec2_t(float x, float y) : x(x), y(y) {} void copy(const vec2_t &vec) { this->x = vec.x; this->y = vec.y; } void advance(const float direction, const float step) {...
// --------------------------------------------------------------------------- // // The ab-initio based multiscale library // // S / P H I / n X // // Copyright: Max-Planck-Institute for Iron Research // 40237 Duesseldorf, Germany // // Contact: https://sxlib.mpie.d...
//------------------------------------------------------------------------------ // InlineArrayTest.cc //------------------------------------------------------------------------------ #include "Pre.h" #include <algorithm> #include "UnitTest++/src/UnitTest++.h" #include "Core/Containers/InlineArray.h" #include "Core/St...
/** * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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/LICE...
#include <unordered_map> #include <iostream> #include <fstream> #include <iomanip> #include "opencv2/core.hpp" #include "opencv2/core/utility.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/cudaoptflow.hpp" #include "opencv2/cudaarithm.hpp" #include "opencv2/video/tracking.hpp" us...
#include <landstalker_lib/md_tools.hpp> #include <landstalker_lib/model/world.hpp> #include <landstalker_lib/model/item.hpp> #include <landstalker_lib/model/map.hpp> #include <landstalker_lib/model/entity.hpp> #include <landstalker_lib/constants/item_codes.hpp> #include <landstalker_lib/constants/map_codes.hpp> #includ...
/*********************************************************************** Copyright (c) 2017, The OpenBRAS project authors. 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 sou...
/** @file A brief file description @section license License 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 und...
#include "CMenu.hpp" CMenu::CMenu() { initscr(); cbreak(); noecho(); curs_set(0); m_WindowsInitialized = false; //creates a menu window in the center of the screen WINDOW * win = m_WinMgr.createWindow(MENU_HEIGHT, MENU_WIDTH, (LINES - MENU_HEIGHT) / 2, (COLS - MENU_WIDTH) / 2); keypad(w...
/// \author <NAME> /// \date 2021/02/08 #include "vehicle.hpp" #include <fmt/format.h> #undef NDEBUG #include <assert.h> void TruncateStepByTime(Step &step, uint64_t time_ms) { // fmt::print("Input step, t={}, d={}, time_ms={}\n", step.duration_ms, step.distance_mm, time_ms); // fmt::print("step.poses.size({}...
#include <iostream> #include <vector> #include <functional> #include <sstream> #include <fstream> #include <algorithm> #include <random> #include <chrono> int sum(std::vector<int> input, size_t start, size_t stop) { int summation = 0; for(size_t i=start ; i<=stop ; ++i) summation...
/* --------- * Copyright 2019 <NAME> <<EMAIL>> * * This file is part of the Myokbd open-source project: github.com/lc525/myokbd * Licensed under the terms of Apache license 2.0, see the LICENSE file at the * root of the project for details. * --------- */ #include "KeyboardService.h" #include "KeyboardConfig.h" ...
#include "md2.h" static unsigned char PI_SUBSET[256] = { 41, 46, 67, 201, 162, 216, 124, 1, 61, 54, 84, 161, 236, 240, 6, 19, 98, 167, 5, 243, 192, 199, 115, 140, 152, 147, 43, 217, 188, 76, 130, 202, 30, 155, 87, 60, 253, 212, 224, 22, 103, 66, 111, 24, 138, 23, 229, 18, 190, 78, 196,...
//chtholly and emilia will carry me to cm #include <iostream> #include <cstdio> #include <cstring> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <array> #include <tuple> #define ll long long #define lb long double #define sz(vec) ((int)(vec.size())) #define all(x) x.begin(), x.e...
#include "Creature.h" int Creature::ID = 0; // CONSTRUCTOR FOR PARENTS (initial creatures) Creature::Creature(sf::Vector2u& w) : moveAction(w, position) { windowSize = &w; init(); // RANDOMIZE ATTRIBUTES size = rand()%5 + 10.f; sightRadius = size + rand()%100; position = sf::Vector2f(rand()%windowSize->x, ...
/*---------------------------------------------------------------------------- DbFMatrix is a note-grid (.fgrd) parser for chuck that produces Midi-like Msgs that represent the file contents. <NAME> Dec 2021 (same license as chuck (gpl2+)). This program is free software; you can redistribute it and/or modify it un...
/////////////////////////////////////////////////////////////////////////////// // Name: src/common/containr.cpp // Purpose: implementation of wxControlContainer // Author: <NAME> // Modified by: // Created: 06.08.01 // RCS-ID: $Id: containr.cpp,v 1.14.2.2 2002/10/29 00:34:15 VZ Exp $ // Copyri...
/// Extractor of eye regions based on OpenFACE features //////////////////// /// DEPENDENCIES /// //////////////////// // ROS 2 #include <rclcpp/rclcpp.hpp> #include <image_transport/subscriber_filter.h> #include <message_filters/subscriber.h> #include <message_filters/synchronizer.h> #include <message_filters/sync_p...
/* * Copyright 2004-2009, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> * <NAME> * <NAME> * <NAME> */ #include "debug.h" #include "DeviceWatcher.h" #include "PortDrivers.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <new> ...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list...
/* * Copyright © 2018-2020 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
// C++. #include <cassert> #include <sstream> // Infra. #include <QtCommon/Scaling/ScalingManager.h> // Local. #include <RadeonGPUAnalyzerGUI/include/qt/rgIsaDisassemblyTabView.h> #include <RadeonGPUAnalyzerGUI/include/qt/rgIsaDisassemblyTableView.h> #include <RadeonGPUAnalyzerGUI/include/rgDataTypes.h> #include <Rad...
/* * A program that calculates a Dynalign energy dot plot. * This class can write image output to Postscript or SVG. * It can also write to a dot plot text file. * * (c) 2012 Mathews Lab, University of Rochester Medical Center. * Written by <NAME>. */ #include "DynalignDotPlot.h" //////////////////////////////...
/*************************************************************************\ C O P Y R I G H T Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland. All Rights Reserved. Permission to use, copy, modify and distribute this software and its doc...
//============================================================================= // <NAME> // elliptic routines // "ellipse" here is defined as all the points (x,y) in R^2 that satisfy // x^2 y^2 // --- + --- = 1 // a^2 b^2 //============================================================================...
#include "rendering/utility/math/MathUtility.h" #include "logic/camera/Camera.h" #include "logic/camera/CameraHelpers.h" #include <glm/glm.hpp> #include <glm/vector_relational.hpp> #include <glm/gtc/epsilon.hpp> #include <glm/gtc/matrix_access.hpp> #include <glm/gtc/matrix_inverse.hpp> #include <glm/gtc/matrix_transf...
// This file is part of snark, a generic and flexible library for robotics research // Copyright (c) 2016 The University of Sydney // 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. Redistr...
/* License: Zlib see https://github.com/cam900/vgsound_emu/blob/main/LICENSE for more details Copyright holder(s): cam900 Namco 163 Sound emulation core This chip is one of NES mapper with sound expansion, This one is by Namco. It has 1 to 8 wavetable channels, All channel registers and waveforms are stored...
#include <fcntl.h> #include <pty.h> #include <unistd.h> #include <utmp.h> #include <vterm.h> #include <QtCore> #include "capture.h" class Process : public QProcess { public: void setup(int col, int row) { struct winsize s; s.ws_col = col; s.ws_row = row; s.ws_xpixel = 0; ...
#include <cstdlib> #include <iostream> #include <cstring> #include <string> #include <cctype> #include <vector> #include <limits> #include <algorithm> #include <map> #include <getopt.h> #include <common.h> #include <resolver.h> #include <md5.h> #include <redis.h> #include <json.h> const char *progname = "check_node...
// \class StFmsEventDisplay // \author <NAME> // // $Id: StFmsEventDisplay.cxx,v 1.6 2017/05/26 18:55:53 akio Exp $ // $Log: StFmsEventDisplay.cxx,v $ // Revision 1.6 2017/05/26 18:55:53 akio // added protection for a crash in MC mudst file reading // // Revision 1.5 2016/06/08 16:31:50 akio // c++11 style in...
// SW4 LICENSE // # ---------------------------------------------------------------------- // # SW4 - Seismic Waves, 4th order // # ---------------------------------------------------------------------- // # Copyright (c) 2013, Lawrence Livermore National Security, LLC. // # Produced at the Lawrence Livermore Nationa...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* This is script-generated code (for the most part). */ /* See dataObjCopy.h for a description of this API call.*/ #include "dataObjCopy.h" #include "rodsLog....
#include <set> #include <GL/glew.h> #include "SurfaceRenderer.hpp" #include <glm/gtx/string_cast.hpp> #include <glm/gtc/matrix_transform.hpp> using namespace std; // ------------------------------------------------------------------------- SurfaceRenderer::SurfaceRenderer( const SurfaceVectorData& svd ) { pre...
#include <math.h> #include <uWS/uWS.h> #include <iostream> #include <iomanip> #include <string> #include <cmath> #include <chrono> #include "json.hpp" #include "PID.h" // for convenience using nlohmann::json; using std::string; using std::min; using std::max; using std::cout; // For Twiddling constexpr bool TWIDDLE =...
/** * 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 ...
#include "EnmPgEtMixingPage.h" CEnmPgEtMixingPage::CEnmPgEtMixingPage() : CEnmBasePage( "", PID_PG_MIXING_MODE ) { SetTitle( STR_PMIXING_TITLE ); CreateControl(); } void CEnmPgEtMixingPage::CreateControl() { INT32U aStyleStatic = ENM_CTRL_NORMAL | ENM_CTRL_STATIC ; U32 aItem[] = { STR_PMIXING_K_FACTOR, S...
/* * Copyright (c) 2021 <NAME> <<EMAIL>> * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file */ #include "enumutils.hpp" #include <iostream> #include <unordered_map> using namespace Farazlib; std::set<AssetTag> EnumUtils::assetTag(const std::string& key) { ...
/* test some prime-number operations This file is part of the source code used for the calculation of the moment invariants as described in the dissertation of Max Langbein https://nbn-resolving.org/urn:nbn:de:hbz:386-kluedo-38558 Copyright (C) 2020 T<NAME>, Prof.Dr. <NAME> (AG Computergraphik und HCI) (<EMAIL>)...
// license:BSD-3-Clause // copyright-holders:<NAME> #include "verifier.h" #include "pin64.h" #include "block.h" bool pin64_verifier_t::verify(pin64_data_t* data) { if (!data) return false; if (!verify_headers(data)) return false; if (!verify_data_directory(data)) return false; std::map<uint32_t, pin64_block_t*> b...
// Layered Languages Lexical Analyzer Test Functions // // File: ll_lexeme_test.cc // Author: <NAME> (<EMAIL>) // Date: Tue Jun 6 15:13:02 EDT 2017 // // The authors have placed this program in the public // domain; they make no warranty and accept no liability // for this program. // Table of Contents // // Usage an...
// ***************************************************************************** // // Copyright (c) 2014, Southwest Research Institute® (SwRI®) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met:...
#include "matrix_vector_product.hpp" static Plaintext CreateMaskBatch(EncryptionParameters& parms) { SEALContext context(parms); BatchEncoder batch_encoder(context); Plaintext mask; size_t slot_count = batch_encoder.slot_count(); std::vector<uint64_t> pod_matrix(slot_count, 0ULL); // we only initialize...
#include "umundo.h" #include "umundo/config.h" #include "umundo/util/crypto/MD5.h" #include <iostream> #include <stdio.h> #define BUFFER_SIZE 1024 using namespace umundo; static int nrReceptions = 0; static int bytesRecvd = 0; static int nrMissing = 0; static std::string hostId; class TestReceiver : public Receiver...
#include <iostream> #include <vector> #include <string> #include <filesystem> #ifdef CLIENT_DLL #include "hud.h" #include "cl_animating.h" #include "cl_filesystem.h" #include "r_studioint.h" #include "event_api.h" extern engine_studio_api_s IEngineStudio; #else #include "extdll.h" #include "util.h" #include "cbase.h...
#pragma once #include "Source\ScoutingManager.h" ScoutingManager::ScoutingManager() : last_overlord_scout_sent_(0), last_zergling_scout_sent_(0), initial_scouts_(true), let_overlords_scout_(true), exists_overlord_scout_(false), exists_zergling_scout_(false), exists_expo_zergling_scout_(fa...
// Ambient.cpp // OpenGL SuperBible // Beginning of OpenGL lighting sample // Demonstrates Ambient Lighting // Program by <NAME>. #include "../../shared/gltools.h" // System and OpenGL Stuff // Rotation amounts static GLfloat xRot = 0.0f; static GLfloat yRot = 0.0f; // Called to draw scene void RenderScene(void) ...
#include "java_classes.hpp" // Object Object::Object(JNIEnv* env, jobject obj, bool disposeOfObj) : mEnv(env), mObj(obj), mObjDelete(disposeOfObj) {} Object::~Object() { clear(); } Object::Object(Object&& rhs) : mEnv(rhs.mEnv), mObj(rhs.mObj), mObjDelete(rhs.mObjDelete) { rhs.mObj = ...
#include "inspector.h" #include <regex> #include <wx/app.h> #include <wx/stc/stc.h> #include "guitools.h" #include "jq/filter.h" #include "kafka.h" #include "logger.h" #include "settings.h" #include "util.h" Inspector::Inspector(wxWindow* window) : InspectorPanel(window) { // Decorate gui_text_view (colors, fo...
#include "../include/glImageAbstraction.h" vec2 initialPos; vec2 nextPos; bool button_down; bool retard; float brushSize; int shader; int width; int height; void initGlfw() { if (!glfwInit()) { cout << "ERROR LOADING GLFW!" << endl; exit(3); } } void testWindow(GLFWwindow * window) { if (!wi...
//Graph code is derived from the following book: https://github.com/pearcej/cppds, sections 9.11-9.14 //Otherwise authored by <NAME> #include <map> #include <list> #include <algorithm> #include <utility> #include "CTurtle.hpp" namespace ct = cturtle; class Vertex{ public: int id = 0; bool visited = false; ...
#include "adv_bnn.h" AdvBNN::AdvBNN(string model_dir, string out_dir, string perturb_filename) { ifstream perturb_file; perturb_file.open(perturb_filename); if (perturb_file.is_open()) { int var_flipped; while (perturb_file >> var_flipped) { perturb.insert(var_flipped); } } else { cout << "Error open...
// // Created by millad on 11/28/18. // #include "geckoConfigLoader.h" #include "geckoStringUtils.h" #include <vector> #include <string> using namespace std; extern GeckoError geckoLocationtypeDeclare(char *name, GeckoLocationArchTypeEnum deviceType, const char *microArch, int numCores, const char *mem_size...