id
stringlengths
1
3
code_masked
stringlengths
783
188k
target
stringlengths
3
27
500
#include <iostream> #include <boost/asio/io_context.hpp> #include <boost/asio/strand.hpp> #include <boost/asio/write.hpp> #include <boost/asio/random_access_file.hpp> int main() { boost::asio::io_context io_context; boost::asio::random_access_file file(io_context); file.open("test.txt", boos...
length
501
// Copyright <NAME>, 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include "meridian/core/event_source_registry.hpp" namespace meridian { namespace core { event_source_registry::event_source_registry(siz...
bucket_count
502
#include "user_api.hpp" #include <glm/gtc/matrix_inverse.hpp> #include <imgui.h> #include <stdio.h> constexpr vec4 RED = { 1, 0, 0, 1 }; constexpr vec4 GREEN = {0, 1, 0, 1}; constexpr vec4 BLUE = {0, 0, 1, 1}; struct Vert_pos_normal { glm::vec3 pos, normal; }; void createCylinderMeshData(u32& numVerts, u32& numInds...
resolution
503
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright 2023 XIA LLC, 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/LICE...
page
504
// EchoAnonymousePipe.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다. // #include "stdafx.h" #include <stdio.h> #include <Windows.h> //------------------------------------------------------------------------------ // 전역 상수 정의 //------------------------------------------------------------------------------ static const int MAX_LINE...
StartupInfo
505
#include<iostream> //#include<vector> //#include<string> #include<cstdio> #include<cmath> using namespace std; //HDU 2001 int main() { double x_1, [MASK] ,x_2,y_2; while(cin>>x_1>> [MASK] >>x_2>>y_2) { printf("%.2f\n",sqrt(pow((x_1-x_2),2)+pow(( [MASK] -y_2),2))); } return 0; } // void ...
y_1
506
#include <iostream> #include<opencv2/opencv.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "add_frame.h" #include <QtCore> #include <QWidget> using namespace std; using namespace cv; Mat QImage2cvMatframe(QImage image) { cv::Mat mat; cv::Mat dst; switch(image.format()) { case QImage::Format...
parameter
507
#include "external/ppp2code/file/std_lib_facilities.h" int main() { string [MASK] = ""; string recipient_name = "???"; string friend_name = "???"; char friend_gender = 0; int recipient_age = -1; cout << "Enter your name" << endl; cin >> [MASK] ; cout << "Enter the name of the person you want to wri...
writer_name
508
//Nome completo: <NAME> //Matrícula: UC20100728 //Curso: Engenharia de Software #include <stdio.h> //BIBLIOTECA PARA SCANF, PRINTF... #include <locale.h> //BIBLIOTECA PARA PRINTAR CARACTERES ESPECIAIS #include <stdlib.h> //BIBLIOTECA PARA O SYSTEM("CLS") #include <string.h> //BIBLIOTECA PARA STRING #include<wi...
iColor
509
#pragma once #include "Engine3D.h" #include <glm\glm.hpp> #include <glm\gtc\matrix_transform.hpp> #include <glm\gtc\quaternion.hpp> #include <glm\gtx\quaternion.hpp> namespace E3D { class Player : public ScriptableEntity { public: glm::quat GetOrientation() { return glm::normalize(glm::angleAxis(GetCompone...
rotation
510
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // This testbench offers partial testing of the simumated memory controller // response banks: // * Response integrity. // * Response ordering per AXI identifier. // /...
iteration_announced
511
/**************************************************************************** * Copyright (C) 2021 <NAME>. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at https://mozilla.org/MPL/2.0/. *****...
eyawo
512
// vim: sta:et:sw=4:ts=4:sts=4 // https://www.seeedstudio.com/Seeeduino-Lotus-V1-1-ATMega328-Board-with-Grove-Interface.html // Seeeduino Lotus V1.1 #include <Arduino.h> // https://github.com/GreyGnome/EnableInterrupt/wiki/Usage#Fast_Start // https://github.com/ppedro74/Arduino-SerialCommands //#define EI_NOTPORTB //#...
nextPtime
513
// Copyright (C) 2019 Moxa Inc. All rights reserved. // SPDX-License-Identifier: Apache-2.0 #include <iothinx/iothinxio.h> #include "util/logging/ConsoleLogSystem.hpp" #include "util/logging/Logging.hpp" #include "util/logging/LogMacros.hpp" #include "ConfigCommon.hpp" #include "OpenSSLConnection.hpp" #include "moxa...
p_sub_handler
514
#include "plugin.hpp" struct Bypass : Module { /* START GENERATED - DO NOT EDIT: Enums */ enum InputIds { IN1, IN2, IN3, IN4, IN5, IN6, IN7, RETURN1, RETURN2, RETURN3, RETURN4, RETURN5, RETURN6, RETURN7, RETURN8, NUM_INPUTS }; enum OutputIds { O...
NUM_RETURN_BUTTON_MAPPING
515
/* HITIComm examples: Grove / 4_Grove_SmartPlantCareKit This sketch shows how to use HITIPanel to: => control and monitor a plant watering system based on sensors feedback - Grove OLED Display 0.96" I2C - Grove Sunlight Sensor v1.0 I2C - Grove Water flow sensor on pin 2 - Grove Encoder ...
volume_perDay
516
// Fill out your copyright notice in the Description page of Project Settings. #include "Widgets/EnhancedBoundActionBar.h" #include "CommonUITypes.h" #include "Input/CommonUIActionRouterBase.h" #include "Utilities/EnhancedActionBarSubsystem.h" #include "Widgets/EnhancedBoundActionButton.h" void UEnhancedBoundActio...
bReleaseChildren
517
// This file is part of The New Aspell // Copyright (C) 2001 by <NAME> under the GNU LGPL license // version 2.0 or 2.1. You should have received a copy of the LGPL // license along with this library if you did not you can find // it at http://www.gnu.org/. #ifndef autil__block_slist_t_hh #define autil__block_slist_t...
num
518
/* z80stb.c * Zilog Z80 processor emulator in C. Modified to be API compliant with Neil * Bradley's MZ80 (for ported projects) * Ported to 'C' by <NAME>; original copyright follows: * * Abstract: * Internal declarations for Zilog Z80 emulator. * * Revisions: * 18-Apr-97 EAM Created * ??-???-97...
wVal
519
//================================================================================================= // 1. ФУНКЦИЯ ПОЛУЧЕНИЯ ИМЕН ПИНОВ (ESP8266,ESP32 и др.) //================================================================================================= String getNamePin(uint8_t pin){ //==Возвращает н...
chr
520
#include <numbers> #include <cmath> #include <complex> #include <boost/multiprecision/mpc.hpp> #include <boost/math/distributions/normal.hpp> #include <algorithm> using namespace boost::multiprecision; using namespace boost::math::constants; namespace zeta { mpc_complex zetafast(mpc_complex s, mpfr_float accuracy);...
tolerance
521
/* * Copyright 2015-2019 Autoware Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
velocity_max_kph
522
#include <WiFi.h> #include <PubSubClient.h> #include <ArduinoJson.h> // constant const char* ssid = "WiFi's Name"; const char* password = "<PASSWORD>"; const char* mqtt_server = "betterlight.local"; const int mqtt_port = 1883; const char* mqtt_username = ""; const char* mqtt_password = ""; const char* client_name = "e...
json_doc
523
#include "mlp/mlp.h" #include "mlp/activation.h" #include "genetic/individual.h" #include "genetic/genetic.h" #include "utils/utils.h" #include "utils/point2d.h" #include <vector> #include <iostream> #include <thread> #include <random> #include <algorithm> #include <GL/gl.h> #include <GL/freeglut.h> #include <omp.h> ...
error
524
/* * Copyright (C) 2024 RealAhani - All Rights Reserved * You may use, distribute and modify this code under the * terms of the MIT license, which unfortunately won't be * written for another century. * You should have received a copy of the MIT license with * this file. */ int main([[maybe_unused]] int argc, [...
groundDef2
525
#ifndef CURVES_HPP #define CURVES_HPP template<typename T1, typename T2> constexpr T1 Linear(T1 first, T1 last, T2 t) { return (last - first) * t + first; } template<typename T1, typename T2> T1 Overshoot( T1 first, T1 last, T2 [MASK] , T2 t) { auto difference = last - first; return differen...
magnitude
526
// // main.cpp // yt8m_add_pred // #include <iostream> #include <thread> #include "pred.hpp" #include "utils.hpp" int main(int argc, const char * argv[]) { std::string fn1, fn2, fn3, [MASK] = "/tmp/combo.csv"; double w1=0.333, w2=0.334, w3 =0.333; if (argc < 4) { std::cout<<"Usage:\n "<<ar...
fout
527
#pragma once #include "global.hpp" class Tank { private: const double levelSensorHeight = 70.0; const int index; double volume; bool wasBelowLevelSensor = false; public: Tank(int index) : index(index), volume(this->levelSensorHeight) {} double canFill(double [MASK] ) const ...
desiredVolume
528
#include "pch.h" #include "TicTacToe/AI.h" #include "TicTacToe/Board.h" namespace TicTacToe { Difficulty AI::s_Difficulty = Difficulty::Impossible; void AI::SetDifficulty(Difficulty difficulty) { s_Difficulty = difficulty; } Board AI::MakeMove(Board board, Team playingTeam) { switch (s_Difficulty) { ...
alpha
529
// Copyright 2017 Google Inc. 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 required by applicable...
key
530
#include <stdio.h> #include "pico/stdlib.h" #include "hardware/spi.h" #include "hardware/i2c.h" #include "hardware/dma.h" #include "hardware/clocks.h" // SPI Defines // We are going to use SPI 0, and allocate it to the following GPIO pins // Pins can be changed, see the GPIO function select table in the datasheet for ...
delay
531
#include "Polygon.h" #include "math/ColorT.h" std::vector<Vector2f> Polygon::getDrawablePoints(const Transform& transform) { std::vector<Vector2f> ret; for (auto p : points) { auto scaled = Vector2f(transform.scale.x * p.x, transform.scale.y * p.y); auto rotated = scaled.Rotate(transform.rotation.getAngleD...
drawablePoints
532
#include <bits/stdc++.h> using namespace std; int n, W, K; int w[1001], p[1001]; // dp int dp[101][1001][101]; int rec(int i, int w_taken, int k_taken){ // pruning // base case if (i==n) { return 0; } // cache check if (dp[i][w_taken][k_taken] != -1) { return dp[i][w_taken][k...
best
533
#include <iostream> #include <wf700tk/device.hpp> namespace net = boost::asio; int main(int argc, char **argv) { if (argc != 2) { std::cerr << "usage: example_wf700tk [serialport]\n"; return 1; } using boost::system::error_code; net::io_context [MASK] ; wf700tk::device dev(net:...
ioc
534
#include "log.h" #include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/daily_file_sink.h" namespace rl_opt { std::shared_ptr<spdlog::logger> Log::MakeLogger(const std::string [MASK] ) { auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>(); console_sink->set_level...
filename
535
/* Automate your coffee machine using esp8266 */ #include <ESP8266WiFi.h> const char* ssid = "YOUR WIFI SSID"; const char* password = "<PASSWORD>"; const int POWER_BUTTON = 0; const int COFFEE_BUTTON = 2; const int PENDING_ACTION = 0; const int POWER_ACTION = 1; const int COFFEE_ACTION = 2; const int SMALL_ACT...
timetowait
536
#include <iostream> #include <string> #include <cpr/cpr.h> #include <windows.h> #include <lmcons.h> #include <fstream> #include <cstdlib> #include <iterator> #include <clocale> #include <stdio.h> #include <json/value.h> #include <conio.h> using namespace std; #pragma region Requests add Computer void RequestStatusCod...
VSNumber
537
#include <cstddef> #include <cstdint> #include <cstdio> #include <cstdlib> #include <vector> #include <FreeImage.h> namespace { // Returns true if the format should be attempted to loaded from memory. bool SafeToLoadFromMemory(FREE_IMAGE_FORMAT fif) { // For now, just load if it is a TIFF. Future heuristics may nee...
fsize
538
#include <OneWire.h> /*-----( Import needed libraries )-----*/ #include <Wire.h> // Comes with Arduino IDE // Get the LCD I2C Library here: // https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads // Move any other LCD libraries to another folder or delete them // See Library "Docs" folder for possible comma...
minutesStr
539
// Ryu - generator of Ninja files for Modern C++ projects. // #include <deque> #include <fstream> #include <iostream> #include <regex> #include <sstream> #include <string> #include <unordered_map> #include <vector> #include <google/protobuf/text_format.h> #include <ryu.pb.h> using namespace std; using namespace goog...
objs
540
/* * mqttserver.c * * Created on: Jan 21, 2017 * Author: francispapineau */ //! Includes #include "mqttserver.hpp" #include "wificontroller.hpp" #include "ircontroller.hpp" #include <stdlib.h> #include <stdbool.h> #include <stdint.h> #include <strings.h> #include <Energia.h> #include "configs.hpp" /// /// ...
size
541
/* MIT License Copyright (c) 2019 Micro:bit Educational Foundation 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, modif...
arg2
542
#include "d3d11_decoder_configurator.hpp" #include <d3d11.h> #include <d3d9.h> #include <dxva2api.h> #include <iostream> #include "size.hpp" D3D11DecoderConfigurator::D3D11DecoderConfigurator( DXGI_FORMAT [MASK] , GUID decoder_guid, Size coded_size, bool supports_swap_chain) : dx...
decoder_output_dxgifmt
543
#include "SPI.h" #include "Arduino.h" #include "DriverControl.h" DriverControl::DriverControl(){} DriverControl::DriverControl(ShiftRegister* reg, uint8_t [MASK] , uint8_t enable, uint8_t stepPin, uint8_t dirPin){ this->_reg = reg; this->_cs = [MASK] ; this->_en = enable; this->_stepPin = stepPin; this->_...
chipSelect
544
#include "DiabloUI/art.h" #include <cstddef> #include <cstdint> #include <memory> #include "storm/storm.h" #include "utils/display.h" #include "utils/log.hpp" #include "utils/sdl_compat.h" namespace devilution { namespace { constexpr unsigned PcxHeaderSize = 128; constexpr unsigned NumPaletteColors = 2...
xSkip
545
//FILE: Assignment 4.cpp //PROGRAMMER: <NAME> //PURPOSE: Allows user to buy tickets, by picking a seat directly, or by ticket price #include <iostream> #include <string> #include <iomanip> using namespace std; // globar variables const int NUM_ROW = 11; // number of rows in price array const int NUM_AISL...
seatPrice
546
//version for openTank #include <IBusBM.h> //https://github.com/bmellink/IBusBM #include "GyverPWM.h" //https://alexgyver.ru/gyverpwm/ #define LEFT_MOTOR 0 #define RIGHT_MOTOR 1 IBusBM IBus; // IBus object int LeftValue = 0; //left motor int RightValue = 0; //right motor void setMotors(int leftMotorValue, int [M...
rightMotorValue
547
#include "MemoryBlock.h" namespace Core { MemoryBlock::MemoryBlock() : data(nullptr), usedSize(0), totalSize(0), isInited(false) { } MemoryBlock::~MemoryBlock() { clean(); } bool MemoryBlock::canAllocate(const Core::uint64& requiredSize) { ASSERT(isInited); if (!isInited) { return false;...
isThereAvailableSize
548
#include <SFML/Graphics.hpp> #include <iostream> #include <stdexcept> #include <iomanip> // std::setprecision #include <iostream> // std::cout, std::fixed #include <sstream> #include <string> using namespace sf; using namespace std; template <typename T> std::string toStrDecPt(const uint16_t& dp, const T& i) { ...
clock
549
/** * Copyright 2013-2022 Software Radio Systems Limited * * This file is part of srsRAN. * * srsRAN 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 you...
max_num_samples
550
#include <fstream> #include <iostream> #include <signal.h> #include <cstring> #include <iostream> #include <algorithm> #include <cstdlib> #include <vector> #include <assert.h> #define _USE_MATH_DEFINES #include <math.h> #include <map> #include "tiny_opengl3_app.h" #include "tiny_clock.h" #include "tiny_chrome_trace_ut...
keycode
551
#ifndef _STOCKREPOSITORY_H #define _STOCKREPOSITORY_H #include <string> #include <Wt/Json/Array> #include <Wt/Json/Parser> #include <Wt/Json/Serializer> #include <Wt/Json/Object> #include <Wt/WDateTime> #include "../webApiAccess/StockWebApiAccess.h" #include "../../common/StringHelper.h" //#include "../.....
resultArray
552
#ifndef OGRREADER_H #define OGRREADER_H #include <vector> #include <iostream> #include <list> #include <ogrsf_frmts.h> #include "VectorLayerShapeType.h" #include "ComponentNT.h" #include "stringsplit.h" #ifndef LOG4CPLUS_ERROR #define LOG4CPLUS_ERROR(L,M) std::cout << "ERROR: " << M << std::endl; #endif #ifndef LO...
epsg
553
// // Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/telegram/MessageEntity.h" #include "td/telegram/ContactsManager.h" #include "td/telegr...
new_text
554
#ifndef DETECTOR_H #define DETECTOR_H #include <cmath> #include <iostream> #include <stdexcept> #include <string> #include <vector> #include "particle.h" // Beginning of detector class class detector { private: std::string detector_type; // "tr" for tracker, "cr" for calorimeter, "mc" for muon chamber bool status...
detector_status
555
#include "CyclicPolinomialRHashStorage.h" #include "InputInterface.h" #include <iostream> void CyclicPolinomialRHashStorage::addHash(HashGeneratorInterface* h) { CyclicPolinomialRHash* h2 = h->cyclicPolinomialRHash(); signatureStorage_.emplace(h2->hashValue(), signatureStorage_.size()); } bool CyclicPolinomia...
pos
556
#include <iostream> #include <fstream> #include "alias.h" using namespace std; const char *filename = "commands.json"; string read_file(const char *name) { string line; string [MASK] ; ifstream file(name); if (file.is_open()) { while (getline(file, line)) { [MASK] += line; ...
lines
557
#include <iostream> #include <fstream> #include <cmath> #include <iomanip> #include <list> #include "Rider.h" #include "Driver.h" //By making a function to print out every drivers for output1, it saves a lot of space void PrintForOutput1(std::list<Driver>& drivers, std::list<Driver>::iterator itrDriver, std::ofstream&...
Lat_Pickup
558
#include "xv3cart_firmware_mock/xv3cart_firmware_mock.hpp" int main(int argc, char ** argv) { if (argc < 2) { std::cerr << "Usage: " << argv[0] << " <port>" << std::endl; return 1; } std::string port = argv[1]; auto [MASK] = std::make_shared<xv3cart_firmware_mock::Xv3CartFirmwareMock>(port, 115200);...
interface
559
#include "AStar.h" #include <algorithm> #include <cmath> #include <limits> #include <set> #include "World/World.h" #include <iomanip> #include <iostream> #include "PrintUtils.h" AStar::AStar() {} Path AStar::find_path( sf::Vector2<int> start, sf::Vector2<int> end, const World& world) { m_parents = std...
first_point
560
// C++ Tic Tac Toe game by <NAME> // https://github.com/salar90/Tic-Tac-Toe #include <iostream.h> #include <conio.h> #include <stdlib.h> struct player { char *name; int wins; }; void disp(int a[3][3]) { clrscr(); char s[7][7]; int i,j; s[0][0]=201; s[0][1]=205; s[0][2]=203; s[0][3]=205; ...
haswon
561
#include "jbd_bms.h" #include "esphome/core/log.h" #include "esphome/core/helpers.h" namespace esphome { namespace jbd_bms { static const char *const TAG = "jbd_bms"; static const uint8_t MAX_NO_RESPONSE_COUNT = 5; static const uint8_t JBD_PKT_START = 0xDD; static const uint8_t JBD_PKT_END = 0x77; static const uint...
computed_crc
562
#include "algo.hpp" #include "mgp.hpp" Algo::PathFinder::PathFinder(const mgp::Node &start_node, const mgp::Node &end_node, int64_t max_length, const mgp::List &rel_types, const mgp::RecordFactory &record_factory) : start_node_(start_node), end_node_id_(end_node.Id()), max_length_(max...
dLat
563
/******************************************************************************* * Copyright 2025 ROBOTIS CO., LTD. * 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 o...
completed_msg
564
#include <iostream> using namespace std; class BankAccount { public: BankAccount(int dollars, int cents, double rate){ if ((dollars < 0) || (cents < 0) || (rate < 0)) { cout << "Illegal values for money or interest rate.\n"; exit(1); } dollarsPart = dollars; ...
fractionValue
565
// 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...
in_ptr_u64
566
#include "stdafx.h" #include <iostream> #include <cmath> #include <cstdio> #include <fstream> using namespace std; #define N 3 //粒子个数 #define DIM 2 //问题维数 #define MAX_STEP 10000000 //最大迭代步数 double* pos; //存储位置 double* pre_pos; //存储上一步位置 double* velocity; //存储速度(暂未使用) double* force; //...
time_step
567
#include "MainWindow.hpp" #include <QFileDialog> #include <QMessageBox> #include "ui_MainWindow.h" #include "TinDataLoader.hpp" #include "TinDataSaver.hpp" MainWindow::MainWindow(QWidget * aParent): QMainWindow(aParent), mUI(new Ui::MainWindow) { mUI->setupUi(this); mUI->gvMain->setScene(&mGraphicsScene); m...
minX
568
#include "socketcan_cpp/socketcan_cpp.h" #include <string> #include <iostream> int main() { scpp::SocketCan [MASK] ; if ( [MASK] .open("can0") == scpp::STATUS_OK) { for (int j = 0; j < 20000; ++j) { scpp::CanFrame fr; while( [MASK] .read(fr) == scpp::STATUS_OK) ...
sockat_can
569
#include "stdafx.hpp" #include "hud.hpp" #ifdef SPT_HUD_ENABLED #include "..\feature.hpp" #include "convar.hpp" #include "interfaces.hpp" #include "playerio.hpp" #include "signals.hpp" #include "game_detection.hpp" #include "visualizations\imgui\imgui_interface.hpp" ConVar y_spt_hud_edgebug("y_spt_hud_edgebug", ...
boogHooked
570
#include "Generator.hpp" void GenCFG::data_seg() { asm_.push_back("# Beginning of the data section\n"); asm_.push_back(".data"); std::vector<std::string> [MASK] ; std::vector<std::string> data_word; std::set<std::string> labels; for (auto& line : ir_) { if (line.find(":") != std::string::npos) { ...
data_float
571
#include "choose_file_controller.h" #include "application.h" #include "io_task.h" #include "path.h" #include "text_list_model.h" #include "view_system.h" #define LOG() qDebug() << "[ChooseFileController]" ChooseFileController::ChooseFileController(QObject* parent) : QObject(parent), suggestions(new FileSuggestio...
old_folder
572
/* * main.cpp */ #include "libpfc/include/libpfc.h" #include <string> #include <chrono> #include <x86intrin.h> #include <stdio.h> #include <stdexcept> #define CALIBRATION_LOOPS (300 * 1000 * 1000) #define CPU_W "%4" #define REF_W "%8" #define TSC_W "%8" #define MHZ_W "%8" int64_t nanos() { auto t = std::chr...
sink
573
#include "LevelsetOpenCL.h" #include <agtkIO.h> #include "itkImage.h" #include <chrono> #include <functional> int main(int argc, char *argv[]) { LevelSetOpenCL::staticConstructor(); //sizes agtk::Image3DSize m_Size9x, m_Size3x, m_Size1x; m_Size9x.Fill(10); m_Size3x[0] = m_Size3x[1] = m_Size9x[0] * 3; ...
imageItk
574
// // rfnoc-hls-neuralnet: Vivado HLS code for neural-net building blocks // // Copyright (C) 2017 <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...
size_out
575
#pragma once #define VOCLIB_IMPLEMENTATION #include <voclib.h> #include <exception> #include <vector> class Vocoder { public: Vocoder(unsigned char bands, unsigned char filters_per_band, unsigned int [MASK] ) { if (!voclib_initialize(this->voc_instance, bands, filters_per_band, [MASK] )) { throw std::runtime_error("...
sample_rate
576
#include "custom_tree_widget.h" #include <QByteArray> #include <QDebug> #include <QDrag> #include <QDragEnterEvent> #include <QDropEvent> #include <QImage> #include <QLabel> #include <QMimeData> #include <QMouseEvent> #include <QPainter> #include <QPixmap> #include "glog/logging.h" CustomTreeWidget::CustomTreeWidget(Q...
listText
577
#include "../common/platform.h" #include "theater.h" #include "../common/file_system.h" #include "../common/xml.h" #include "../display/text_edit.h" #include "bitmap.h" #include "engine.h" #include "global.h" namespace engine { static BadgeRole stringToRole(const xml::saxString& role); class UnitsFile...
location
578
// // Copyright 2017 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
event_cb
579
// // Created by foxfire on 1/20/18. // #include "gfx_opengl.hpp" #include <cstdio> #include <string> #ifdef __APPLE__ #include <OpenGL/glu.h> #else #include <GL/glu.h> #endif #include "fox/counter.hpp" #include "fox/gfx/eigen_opengl.hpp" #include "fox/obj_model_loader.h" #ifdef __ANDROID__ std::string data_root =...
fsize
580
#include <iostream> #include <vector> #include <stdint.h> #include <stdio.h> #include <cstring> #include <cstdlib> #include <algorithm> #define MEMSIZE 1024 inline bool matches(const char* program, std::vector<int8_t> seq) { if(seq.size()==0) { return true; } std::vector<int8_t>::iterator seqhead=s...
sequence
581
#include <SimpleDHT.h> const int pinInside = 3; const int pinOutside = 5; const int pinRelais = 10; const int pinLED = 12; float absHum[] = {0,0}; SimpleDHT11 sensor; SimpleDHT11 sensorInside(pinInside); // Model: DHT11 SimpleDHT11 sensorOutside(pinOutside); // Modell: DHT11 SimpleDHT11 sensors[] = {sens...
expo
582
#include "Sandbox2D.h" #include "backends/imgui_impl_opengl3.h" #include "imgui_internal.h" Sandbox2D::Sandbox2D() : m_CameraController(Zero::OrthographicCameraController(16.0f/9.0f,false,-1000.0f,1000.0f)) { Zero::Renderer::Init(); Zero::Renderer2D::Init(); m_MainWindowClearColor.r = 1.0f; m_MainWindow...
dockspaceID
583
#include <stdio.h> #include <stdlib.h> #include <string.h> #define _CRT_SECURE_NO_WARNINGS #include <fstream> #include <iostream> using namespace std; typedef unsigned char BYTE; typedef unsigned short WORD; typedef unsigned int DWORD; typedef int LONG; #define BITS_PER_PIXCEL 24 #define FO...
bytesPerLine
584
#include <string> #include <sstream> #include <fstream> #include <vector> #include <algorithm> #include <cctype> #include <locale> #ifndef STRING_UTILS_H #define STRING_UTILS_H static inline std::vector<std::string> Compact(const std::vector<std::string> &tokens){ std::vector<std::string> compacted; for(size_t ...
times
585
#include <iostream> #include <string> #include <regex> // #include <cmath> #include <complex> #include "ThreeVector.hpp" #include "FourVector.hpp" #include "pp6day1.hpp" #include "pp6day2.hpp" // std::ostream& operator<<(std::ostream& s, const ThreeVector& c) // { // /// // /// Print a ThreeVector in the form (x,...
decision
586
#pragma once #include <array> constexpr const std::array<short, 26> _make_letter_points() { std::array<short, 26> _letter_points{}; _letter_points[ 0] = 1; // A _letter_points[ 1] = 3; // B _letter_points[ 2] = 3; // C _letter_points[ 3] = 2; // D _letter_points[ 4] = 1; // E _letter_p...
index
587
#ifndef VIEWPORT_PANEL_H #define VIEWPORT_PANEL_H #include "Theme/EditorResources.h" #include <Engine.h> #include <imgui/imgui.h> namespace Cober { class ViewportPanel { public: ViewportPanel(); ~ViewportPanel(); static ViewportPanel& Get() { return *m_Instance; } // void RenderSkybox(); void Crea...
attachmentIndex
588
#ifdef GRAPHQL_JSON_HPP__ #include <json/json.h> #include <json/writer.h> #include <memory> #include <sstream> #include <iostream> namespace GraphQL::Json { bool CJsonSerializer::Serialize(IJsonSerializable* pObj, std::string& output ) { if (pObj == NULL) return false; //...
deserializeRoot
589
#include <unistd.h> #include <sys/wait.h> #ifdef __linux__ #include <sys/prctl.h> #endif #include <fcntl.h> #include <execinfo.h> #include <chrono> #include <thread> #include <algorithm> #include <regex> #include "app.h" #include "utils.h" namespace leaf { void SignalManager::installHandler() { struct sigaction ...
sig_handler
590
#include <SDL.h> #include <Windows.h> #include <gl/GL.h> #include <gl/GLU.h> #include <cmath> #include <iostream> #include <fstream> void loadPerspective(float fov, float aspect, float znear, float zfar) { float ymax = znear * (float)tan(fov * (M_PI / 360)); float ymin = -ymax; float xmax = ymax * asp...
scaledHeight
591
#include "Worker.h" void Worker::ReadFile() { // snprintf(fileName,sizeof(fileName),"%s",a); // strcat(fileName,Name); if ((fd=fopen(fileName, "rb")) == NULL) { printf("Achtung: Open file error or file not found!\n"); FileIsSet = 0; sSizeOfFile = 0; } else { FileIsSe...
extChannel
592
#include <cpu.hpp> #include <emulator.hpp> #define CPU_DEBUG 0 register_type rt_lookup[] = {RT_B, RT_C, RT_D, RT_E, RT_H, RT_L, RT_HL, RT_A}; void CPU::cpu_init() { cpu_context.registers.pc = 0x100; cpu_context.registers.sp = 0xFFFE; cpu_context.registers.a = 0x01; cpu_context.registers.f = 0xB0; cpu_conte...
reg_val
593
// Copyright 2021 University of Nottingham Ningbo China // Author: <NAME> <<EMAIL>> // // 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 //...
cond
594
#pragma hdrstop // // 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...
alto
595
#include "MacLeaderboardManager.h" namespace linguine::alfredo { void MacLeaderboardManager::getHighScores(std::function<void(std::vector<Record> results)> onSuccess, std::function<void(std::string reason)> onError) { auto highScore = 1'000'000; auto [MASK] = std::strin...
alphabet
596
/* * Copyright (c) 2012 <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, d...
time_limit
597
#include <mutex> #include <memory> #include <rclcpp/rclcpp.hpp> #include <yaml-cpp/yaml.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/msg/image.hpp> #include <sensor_msgs/msg/point_cloud.hpp> #include <geometry_msgs/msg/point32.hpp> #include <builtin_interfaces/msg/time.hpp> #include <filesystem> #include...
cv_image
598
/* * ---------------------------------------------------------------------------- * Copyright 2018 ARM Ltd. * * 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 th...
bd_size
599
#include "LevelSystem.h" #include <fstream> #include <iostream> using namespace std; using namespace sf; std::unique_ptr<LevelSystem::TILE[]> LevelSystem::_tiles; size_t LevelSystem::_width; size_t LevelSystem::_height; Vector2f LevelSystem::_offset(0.0f, 0.0f); float LevelSystem::_tileSize(100.f); vector<std::uniqu...
temp_tiles