text
stringlengths
3.08k
12.5k
#include <cmath> #include <cstdio> #include <iostream> #include <algorithm> #include <set> #include <unordered_map> #include <string> #include <vector> using namespace std; constexpr bool debug = false; using ULInt = unsigned long int; using UInt = unsigned int; template <typename Container> void printContainer(con...
#include "gameSaver.hpp" #include <iostream> #include <fstream> #include <sstream> #include <filesystem> #include <system_error> #include "../lib/json.hpp" using json = nlohmann::json; namespace fs = std::filesystem; // Files static std::string readTextFile(const std::string &path) { std::ifstream ifs(path); ...
/** @copyright 2020 <NAME> */ #include <argp.h> #include <iostream> #include "disasm.h" #include "omf.h" #include "api.h" #include "iigs.h" const char *argp_program_version = "regs 1.1"; const char *argp_program_bug_address = "<EMAIL>"; static char doc[] = "Disassemble Apple IIgs software"; static char args_doc[] = "...
/* * Hetero-mark * * Copyright (c) 2015 Northeastern University * All rights reserved. * * Developed by: * Northeastern University Computer Architecture Research (NUCAR) Group * Northeastern University * http://www.ece.neu.edu/groups/nucar/ * * Author: <NAME> (<EMAIL>) * * Permission is hereby grante...
#include "WebServerManager.h" #include <ArduinoJson.h> static void log(String message) { Serial.println("WebServerManager: " + message); } WebServerManager::WebServerManager() : webServer(80) { log("Creating webServer path handlers"); webServer.on("/", std::bind(&WebServerManager::root, this)); we...
////////////////////////////////////////////////////////////////////////// // // ZPatcher - Patcher system - Part of the ZUpdater suite // Felipe "Zoc" Silveira - (c) 2016-2018 // ////////////////////////////////////////////////////////////////////////// // // ApplyPatch.cpp // Functions to apply the Patch data // ////...
#include <bits/stdc++.h> #include <unordered_map> using namespace std; #define PLAYER1 0 #define PLAYER2 1 typedef enum { win, moved, error } Status; typedef enum { single, multi } Mode; class Computer { public: static pair<int,int> nextMove(vector<string> const& table) { return randomMove(table); } static p...
#include <iostream> #include <unistd.h> #include <sstream> #include <fstream> #include <algorithm> #include <regex> #include <cstdlib> #include <string> #include <vector> #include <map> #include <set> bool endsWith(const std::string &mainStr, const std::string &toMatch) { if(mainStr.size() >= toMatch.size() && mai...
// // Created by genshen on 2018-12-28. // Updated by genshen on 2019-03-17 to add libcomm. // #include <cstring> #include <cassert> #include <lattice/ws_utils.h> #include <logs/logs.h> #include "atom/inter_atom_list.h" #include "inter_particle_packer.h" InterParticlePacker::InterParticlePacker(const comm::Domain &d...
// --------------------------------------------------------------------------- // // This file is part of PermLib. // // Copyright (c) 2009-2011 <NAME> <<EMAIL>> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following ...
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt // Author : <NAME> // ***Thanks to <NAME> and all DLIB contributors*** /* This example program shows how to find rear end of a airplane in an image and estimate their pose. The pose takes the form o...
/* * dht11.c: * Simple test program to test the wiringPi functions * DHT11 test */ #include <wiringPi.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <sys/types.h> #include <sys/xattr.h> #include <string> #include <iostream> #include <fstream> #define MAXTIMI...
// Copyright 2021 <NAME> <EMAIL> // Alternate: <EMAIL> & <EMAIL> // Originated Jun 7, 2021 // Developed for EC327 at Boston University // HW2 - Use SFML library to create an analog and digital clock graphic #include <chrono> #include <cmath> #include <ctime> #include <iostream> #include <string> #include <thread> #in...
#include <logging/logging.hpp> #include <gui/hud/selection_panel.hpp> #include <game/game_client.hpp> #include <gui/screen/screen.hpp> #include <assets/assets_manager.hpp> SelectionPanel::SelectionPanel(GameClient* game, Screen* screen, const Selection* selection): ScreenElement(screen), current_tab(0), game(gam...
#include "neigh.hpp" #include "utils.hpp" #include <iostream> std::vector<double> center_of_cell(std::vector<double> &box, double* tol) { if(tol == NULL) *tol = 1.0E-6; std::vector<double> center = {0.5,0.5,0.5}; return gemv(box, center); } std::vector<std::vector<int> >...
#include "test.h" #include <iostream> #include <string> #include "baldr/rapidjson_utils.h" #include "loki/worker.h" #include "midgard/logging.h" #include "midgard/util.h" #include "odin/worker.h" #include "thor/worker.h" #include <boost/property_tree/ptree.hpp> using namespace valhalla; using namespace valhalla::tho...
/*********************************************************************** * Short Title: AtomCostCrystal - atom cost calculation with PBC * * Comments: implementation of class AtomCostCrystal. * AtomCostCrystal inherits from AtomCost. * * <license text> *******************************************************...
#include <iostream> #include <cstdio> class toll_tax { unsigned int vehicleCrossedCount, carCrossedCount, bikeCrossedCount, heavyVehicleCrossedCount, govServantCrossedCount, otherCategoryCount; unsigned long int amountCollected; int rateCar; int rateBike; int rateHeavyVehicle; int rateGovServant; public: //...
/* * File: map.cpp * Author: <NAME> <<EMAIL>> * * Created on August 20, 2018, 2:54 PM */ #include <cmath> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> #include "map.h" Map::Map(const char *map_file) { std::ifstream in_map_(map_file, std::ifstream::in); std:...
#include <queue> #include <iostream> #include "../Common/Graphics.h" #include "../Common/Input.h" #include "../Common/Time.h" #include "../Common/Random.h" typedef struct Coord { int x; int y; Coord() { x = 0; y = 0; } Coord(int x, int y) { this->x = x; this->y = y; } } Coord; const int gameSize ...
/** * @author <NAME> * @file decoderstate.cc This file contains the implementation of the * DecoderState class and the functions makeEmptyState() and * extendDecoderState(). * * Canoe Decoder * * Technologies langagieres interactives / Interactive Language Technologies * Inst. de technologie de l'information ...
//------------------------------------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2021 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), t...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
#include "Application.h" #include "glew/include/glew.h" #include "Globals.h" #include "FileSystem.h" #include "parson/parson.h" Application::Application(int argc, char* args[]) : argc(argc), args(args) { window = new ModuleWindow(true); input = new ModuleInput(true); renderer3D = new ModuleRenderer3D(true); camer...
#include "StdAfx.h" #include "Projection.h" #include "ProjectionUtils.h" #include "ProjectionPolyconic.h" #define _USE_MATH_DEFINES #include <math.h> #define TOL 1e-10 CProjectionPolyconic::CProjectionPolyconic () { m_bSphere = false; } CProjectionPolyconic::~CProjectionPolyconic () { } void CProjectionPolycon...
#include "factor_graph.hpp" #include "cpp_sampling.hpp" #include "margin_metric.hpp" #include <algorithm> #include <iostream> void update_sample_rank_gradients(FactorGraph& graph, std::vector<int>& other_sample, bool other_sample_better, std::vector<int> diff_label_indices, std::map<std::string, float*>&...
#include "StdAfx.h" #include "UIProgressShape.h" #include "UIStatic.h" #include "xrRender/UIShader.h" #include "xrRender/UIRender.h" CUIProgressShape::CUIProgressShape() { m_bText = false; // m_pTexture = xr_new<CUIStatic>(); // AttachChild (m_pTexture); m_blend = true; m_angle_begin = 0.0f; ...
#include <cstddef> #include <random> #include <benchmark/benchmark.h> #include "DSP/aether_dsp.hpp" #include "truncate_denormals.hpp" struct Ports { float mix = 0.f; float dry_level = 0.f; float predelay_level = 0.f; float early_level = 0.f; float late_level = 0.f; float interpolate = 1.f; float width = 100....
/* * IntegrationMain.cpp * * Created on: Dec 28, 2015 * Author: chris */ #include <iostream> #include <string> #include <limits> #include <sstream> #include <cctype> #include "Polynomial.h" #include "Function.h" #include "Utilities.h" #include "Properties.cpp" #include "IntegrationMethods.h" #include "Integ...
/* * Copyright 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
// Reimplementation of `sample_chunked_data.py`, since I got OOM with large // corpora. #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <optional> #include <random> std::string get_file_contents(const char *filename) { std::ifstream in(filename, std::ios::in | ...
// Copyright (c) 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://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
/* Copyright 2011, <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 (at your option) any later version. This program is distributed...
/// Copyright (c) 2018 - present <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 without restriction, including without limitation the rights /// to use, copy, m...
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/debug.h" #else #define db(...) #endif #define all(v) v.begin(), v.end() #define pb push_back using ll = long long; const int NAX = 3e5 + 5, MOD = 1000000007; #include <bits/stdc++.h> using namespace std; #define f first #define s second using ll =...
#include <iostream> #include <string> #include <chrono> #include <thread> #include <fstream> #include "tins/tins.h" #include "Buffer/Packet_Buffer.hpp" using namespace Tins::Crypto; void jamm_device(int count, Tins::Dot11::address_type destination, Tins::Dot11::address_type router, std::string ssid, ...
// Klondike main.cpp #include <iostream> #include <string> #include <algorithm> // max_element() #include "Card.h" #include "Deck.h" using namespace std; //Card* dealCol(Deck deck, Card* colHead[7]); //Card* dealRemaining(Deck deck, Card* remainingHead); void dealGame(Deck deck, Card* colHead[7], Card* remainingHea...
/* * ModelPropertyTest.cpp * * Created on: 14-05-2009 * Author: jimali */ #include <vector> #include <rw/core/Log.hpp> #include <rw/common/TimerUtil.hpp> #include <rw/kinematics/MovableFrame.hpp> #include <rw/loaders/path/PathLoader.hpp> #include <rw/math/MetricUtil.hpp> #include <rw/math/Vector3D.hpp> #in...
// @@@ START COPYRIGHT @@@ // // 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 under the Apache License, Version 2...
#include "saber/core/context.h" #include "saber/funcs/slice.h" #include "test_saber_func.h" #include "test_saber_base.h" #include "saber/core/tensor_op.h" #include "saber_types.h" #include <vector> using namespace anakin::saber; template <typename dtype,typename TargetType_D,typename TargetType_H> void slice_cpu(co...
/** * Parrot Drones Awesome Video Viewer * OpenGL ES 2.0 HUD rendering library * * Copyright (c) 2018 Parrot Drones SAS * Copyright (c) 2016 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistri...
/** * LiftEndEffector.cpp * * Created on: Jan 21, 2019 * Author: <NAME>. */ #include <LiftEndEffector.h> #ifdef EDV21 WPI_VictorSPX* m_LiftMotor; #else WPI_TalonSRX* m_LiftMotor; #endif LiftEndEffector* LiftEndEffector::INSTANCE = nullptr; LiftEndEffector* liftEF; frc::DigitalInput* threadLSPlaceHolder; fr...
#include "itkRescaleIntensityImageFilter.h" #include "SpineRing.h" #include "ImageProc.h" SpeedImageType::Pointer SpCandidate::GetSpeedFunc(SpeedImageType::Pointer Spregion ) { SpeedImageType::Pointer SpeedImage; // The RescaleIntensityImageFilter type is declared below. This filter will // renormalize image t...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <cmath> struct coord { int x = 69, y = 69; }; int get_all_coord_len(const char* path); int main(int argc, char** argv) { std::fstream input; input.open(argv[1]); coord initial_coord[get_all_coord_len(argv[1])]; coord last_coord...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2011 RDK Management * * 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...
#include "RemoteServer.hpp" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "esp_http_client.h" #include "esp_log.h" #define TAG "HttpStuff" RemoteServer::RemoteServer(char * _user_name, char * _node_id) { // Create JSON Objects settings = (char *)malloc(1024); state = (char ...
#include"MiniSQL.h" #include"API.h" extern buffer buf; //处理用户输入 void handle_raw_input(); //初始欢迎界面 void welcome(); //各层级界面 void interface(); //主界面用户选择处理 int main_usr_handle(string input); //系统命令处理,要求整行输入 int command_handle(string str); //帮助显示,用于系统命令 void print_help(); int sockfd1, newfd1; void* deal_socket(); int main...
#include <cstdio> #include <cctype> #include <cstring> #include <deque> #include <vector> #include <algorithm> using namespace std; #define BUFFERSIZE 65536 static char buf[BUFFERSIZE]; static size_t pos = BUFFERSIZE; inline void _getc(char &c) { if (pos == BUFFERSIZE) { pos = 0; fread(buf, 1, B...
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <array> #include <vector> #include <deque> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <utility> #include <algorithm> #include <cstdio> #include <cstring> #include <cstdlib> #include <cstdi...
#include "Tile.h" #include "Material.h" #include "Chunk.h" #include "World.h" #include "Box2D/Box2D.h" #include "SFML/Graphics/Vertex.hpp" #include "Logger.h" #include <iostream> #include "Math.h" #include "Thor/Math/Distributions.hpp" #include "Thor/Animation/FadeAnimation.hpp" #include "Thor/Particles/Affectors.hpp" ...
#include "GXBase.h" using namespace gxbase; // This program was written to test the Image::SetPixel functions // JWW 13/10/03 // class MyWindow :public GLWindow { public: MyWindow(); void OnCreate(); void OnDisplay(); void OnMouseButton(MouseButton button, bool down); void OnMouseMove(int x, int y); void OnKeybo...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011-2015 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it ...
/** * Copyright (c) 2019 DKFZ - ODCF * * Distributed under the MIT License (license terms are at https://github.com/dkfz-odcf/FastqIndEx/blob/master/LICENSE.txt). */ #include "IndexReader.h" #include "process/index/IndexWriter.h" #include "process/io/Source.h" #include <experimental/filesystem> #include <fstream> ...
#include "Features.hpp" Features::Features(const Board& b,Board::Coord p) { size_t x,y; std::tie(x,y) = p; bool black = b.blackToPlay; Board::Cell c = b.cells[y][x]; auto myC = black ? Board::Black : Board::White; if(c == Board::Empty) { color = EMPTY; sensible = black ? b.bIsS...
#include "TimerWheel.h" #include "reactor/EventLoop.h" #include "logging/Logging.h" #include <unistd.h> /*****************************************************************/ /* Components Definition */ /*****************************************************************/ n...
#pragma once //#include <boos using namespace std; #define fwd(x) std::forward <decltype (x)> (x) namespace { template <size_t N, size_t M> consteval bool same_strings (char const(&lhs)[N], char const(&rhs)[M]) { if (N != M) return false; for (int i = 0; i < N; ++i) { if (lhs[i] != r...
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi f...
#include "game.hpp" #include <iostream> #include <ncursesw/ncurses.h> #include "alphabeta_pv.hpp" #include "position.hpp" using namespace std; enum color { null = 1, black, white }; class selection_window { WINDOW *win; const int height; public: selection_window(int rows, int cols) : win{newwin(rows -...
/* * Blues55 - use your S55 or compatible phone as a remote for your PC. * Copyright (C) 2006 * <NAME> <blues55 at florian dot loitsch dot com> * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and without fee is hereby * granted, provided that the above c...
/*++ Copyright (C) 2001 Microsoft Corporation Module Name: ErrorObj Abstract: IErrorInfo support for the standard consumers History: 07/11/2001 - creation, HHance. --*/ #include "precomp.h" //#include <stdio.h> #include <wbemutil.h> //#include <ArrTempl.h> //#include <lmaccess.h> #include <wbemdi...
// Copyright 2020 Foundry // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trade...
#include <csignal> #include <filesystem> #include <thread> #include <fmt/chrono.h> #include <spdlog/spdlog.h> #include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/sinks/systemd_sink.h> #include <ulocal/ulocal.hpp> #include "ccool_daemon.hpp" #include "daemonize.hpp" #include "device_detector.hpp" #include "l...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <iostream> #include "ps3eye.h" #include <opencv2/opencv.hpp> #define _saturate(v) static_cast<uint8_t>(static_cast<uint32_t>(v) <= 0xff ? v : v > 0 ? 0xff : 0) static void yuv422_to_gray(const uint8_t *yuv_src, const int stride, uint8_t *dst, const int width, const int height) { const int yIdx = 0; i...
#include "shc.hpp" btree * build_huff_tree(std::vector<std::pair<char, uint16_t>>& freq_map) { // Build the B-tree std::deque<btree*> all_trees; for (auto it = freq_map.begin(); it != freq_map.end(); it++) { char letter = it->first; uint32_t count = it->second; all_trees.push_back(new btree(letter, c...
// // DBScriptRunner.cpp // DNS with Benefits // // Created by <NAME> on 8/21/18. // Copyright © 2018 sorco. All rights reserved. // #include "DBScriptRunner.hpp" #include <iostream> #include <sstream> #include <sys/errno.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <poll.h> #include <si...
// affinecat // by <<EMAIL>> // // uses affine matrix transformation to blit a rotating picture of a cat // around in a perspective that is reminiscient of Super NES Mode 7 // // only external dependency is libSDL // // see Formula section at https://en.wikipedia.org/wiki/Mode_7 for details, // and that application can...
#include <SFML/Graphics.hpp> #include "stdio.h" #include <string> #include "libraries/lodepng/lodepng.h" #include "math.h" #define uint unsigned int using namespace std; struct Point { float temperature; float conductivity; }; //get index from x,y and width,height uint toCoord(uint x, uint y, uint width, uint hei...
#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> #include <algorithm> #include <omp.h> #include <ctime> #include <set> #include <iomanip> #include "Graph.h" #include "TCB.h" #define MAX_THREAD_NUM 8 using namespace std; // Array of thread control block vector<TCB*> tcb; ...
#include <simple_velocity_controller/local_controller_node.h> #include <tuw_nav_msgs/ControllerState.h> #include <tf/transform_datatypes.h> #define NSEC_2_SECS(A) ((float)A / 1000000000.0) int main(int argc, char **argv) { std::string name("pid_controller"); if (argc >= 2) { name = argv[1]; } ...
/* * trackwithcrossings.cpp * * Created on: Jan 28, 2013 * @author <NAME> */ #include "trackwithcrossings.h" #include "twcthread.h" #include "fmath.h" #include "../data/datasets/datasetscalar.h" #include "../data/datasets/datasettensor.h" #include "../gui/gl/glfunctions.h" #include <QThread> #include "time.h" ...
/*************************************************************************** * Copyright (C) 2008 by <NAME> * * <EMAIL> * * * * This program is fre...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2013 <NAME>, Amsterdam, the Netherlands. // Copyright (c) 2008-2013 <NAME>, Paris, France. // Copyright (c) 2009-2013 <NAME>, London, UK. // Copyright (c) 2013 <NAME>, Lodz, Poland. // Use, modification and distribution is subjec...
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include "DHTesp.h" #define LED D4 #define PWR D2 #define PINA D5 //4051 #define PINB D6 #define PINC D7 #define INPUTPIN A0 DHTesp dht; // Update these with values suitable for your network. const char *ssid = "********"; const char *password = "********"; const ch...
/* 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 of condit...
/* lab11.cpp Welcome to lab 11, dealing with the topic of recursion. In this lab you will take functions that work non-recursively, and you will rewrite them to work recursively. See further details below for each of the three functions. Running this program looks like: Enter the limit: 5 0 1 2 3 4 0 1 2 ...
/* Parser_Pattern.cpp -- * * Copyright (c) 2014, <NAME> <lex at chou dot it> * 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 co...
#include "FusionEKF.h" #include <iostream> #include "Eigen/Dense" #include "tools.h" using Eigen::MatrixXd; using Eigen::VectorXd; using std::cout; using std::endl; using std::vector; /** * Constructor. */ FusionEKF::FusionEKF() { is_initialized_ = false; previous_timestamp_ = 0; // initializi...
// 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 under the Apache License, Version 2.0 (the // "License"); you may...
/*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #include "language_ui.h" #include <fstream> #include <memory> #include <iostream> #include <util/namespace.h> #include <util/cmdline.h> #inclu...
#include <Arduino.h> #include <WiFi.h> #include <HTTPClient.h> #include "WiFiCredentials.h" #include "I2SMEMSSampler.h" #include "ADCSampler.h" WiFiClient *wifiClientADC = NULL; HTTPClient *httpClientADC = NULL; WiFiClient *wifiClientI2S = NULL; HTTPClient *httpClientI2S = NULL; ADCSampler *adcSampler = NULL; I2SSampl...
#include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <iostream> #include <string> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #define LL long long #define INF 1000000000 #define EPS 1e-9 #define ...
/* * 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 "kernelInit.h" #include "lib/memory.h" #include "acpi/fadt.h" #include "acpi/pci/pci.h" #include "fs/fat32/fat32.h" #include "fs/vfs.h" #include "drivers/ata/ata_device.h" #include "proc/tasking/process.h" #include "shell/shell.h" bool fromUEFI = 0; extern PageTableManager KernelDirectory; void Initiali...
#pragma once #include <painterface.hpp> #include <pulse/pulseaudio.h> #include <string> #include <vector> #include <map> #include <volumeutil.hpp> #include <memory> struct Entry; typedef std::map<uint32_t, std::unique_ptr<Entry>>::iterator pamix_entry_iter_t; class PAInterface; enum entry_type { ENTRY_SINK, ENTR...
#include <iostream> #include <string> #include <map> #include <random> #include <math.h> #include "mqttfsim_helpers/mqtt_helpers.h" #include "mqttfsim_helpers/simobject_id.h" #include "mqttfsim_client/simobject.h" #include "mqttfsim_client/simconnect_handler.h" #include "mqttfsim_client/mqttfsim_client_helpers.h" #in...
// Copyright 2020 Google LLC // // 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 writi...
#include "YOLO.h" #define OPENCV #include "../darknet/darknet.h" #define NUM_CLASSES 7 image **alphabet; char *coco_names[] = {"Construction Barrel", "One Way Left", "One Way Right", "Road Closed", "Stop Sign", "Pedestrian", "No Turns", "truck", "boat", "traffic light", "fire hydrant", "stop sign", "parking meter", "be...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012-2013, <NAME>. All rights reserved. // Copyright (c) 2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided...
/* * FileTraceLogWriter.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2018 Apple Inc. and the FoundationDB project 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 ob...
#include <iostream> #include <stdlib.h> #include <assert.h> #include "heap.h" using namespace std; #define MORINO void _build_heap(double* heap_data, enum HEAP_MODE mode, int size); void _heap_sort(double* heap_data, enum HEAP_MODE mode, int occup, double* store); void _print_heap(double* heap_data, int occup); voi...
#include "util.h" #include "sys.h" #include "ShaderUtil.h" #include "timer.h" #include "texture.h" void Timer::init() { //initText2D(); glGenVertexArrays(1, &vao); glBindVertexArray(vao); // Initialize Shader textShader.Load("vsText.glsl", "fsText.glsl"); // Initialize texture Text2DTextureID = loadDDS("cgass...
#include "ObjectHierarchyDlg2.h" #include "resources\resource.h" #include "drawobjs\FFContainer.h" #include "Windowsx.h" #include "FFDebuggerWindow.h" INT_PTR ObjectHierarchyDlg2::processMessage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { NMHDR* nmhdr; LPNMLISTVIEW lpnmlv; switch (uMsg) { case WM_N...
/* * Fast discrete cosine transform algorithms (C) * * Copyright (c) 2017 Project Nayuki. (MIT License) * https://www.nayuki.io/page/fast-discrete-cosine-transform-algorithms * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (th...
/// /// @file pi_lmo4.cpp /// @brief Implementation of the Lagarias-Miller-Odlyzko prime /// summing algorithm. This implementation uses the segmented /// sieve of Eratosthenes and a special tree data structure /// for faster summing in S2(x). /// /// Copyright (C) 2017 <NAME>, <<EMAIL>> /// /// T...
#include "cputimer.h" #include <time.h> #include <stdio.h> #ifndef WIN32 #include <sys/resource.h> #endif //*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- CPUTimer::CPUTimer() { CPUCurrSecs = 0; CPUTotalSecs = 0; CronoCurrSecs = 0; CronoTotalSecs = 0; started = false; #if defi...
/*************************************************************************** * Copyright (C) 2005 by * * <NAME> <EMAIL> * * <NAME> <EMAIL> * * ...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012...
//===-------- X86PadShortFunction.cpp - pad short functions -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------------...