id
stringlengths
1
3
code_masked
stringlengths
783
188k
target
stringlengths
3
27
100
#include <algorithm> #include <iostream> #include <string> #include <tuple> #include <vector> #include "backend.h" #include "status.h" namespace mlperf_bench { Backend::Backend() { allocator_ = allocator_info_; }; Status Backend::LoadModel(std::string path, std::vector<std::string> outputs) { #ifdef _WIN32 ...
results
101
#include <Arduino.h> #include <OneWire.h> #include <DallasTemperature.h> // Data wire is plugged into pin 2 on the Arduino #define ONE_WIRE_BUS D4 // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) OneWire oneWire(ONE_WIRE_BUS); // Pass our oneWire reference to ...
address
102
// ===================================================== // ___ ___ // | |__| |__ // | | | |___ // // ___ __ __ __ __ __ // | |__| / \ |\/| /__` / \ |\ | |\/| / \ /__ // | | | \__/ | | .__/ \__/ | \| | | \__/ .__) // // __ __ __ __ __ _...
trigger
103
// // Created by AYL_iwalk on 21/6/15. // #include "mp3_encoder.h" int Mp3Encoder::Init(const char *pcmFilePath, const char *mp3FilePath, int sampleRate, int channels, int bitRate) { int ret = -1; pcmFile = fopen(pcmFilePath,"rb"); if (pcmFile) { mp3File = fopen(mp3FilePath,"wb"); if (mp3...
readBufferSize
104
#define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" // for stbi_image_free, stbi_load #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" // for stbi_write_png #include <algorithm> // for for_each #include <cstddef> // for size_t #include <cstdint> // for uint8_t #include <execution> // for ex...
idx
105
#pragma once #include <assimp/vector3.h> enum class EAxis { PositiveX, NegativeX, PositiveY, NegativeY, PositiveZ, NegativeZ, }; inline aiVector3D Vec3ConvertUp(const aiVector3D& _v, EAxis _up) { aiVector3D res; if (_up == EAxis::NegativeY) { res.x = _v.x; res.y = -_v.y; res.z = -_v.z; } else //if (...
dot
106
#include "gen_exported.h" namespace gen_exported { /******************************************************************************************************************* Cycling '74 License for Max-Generated Code for Export Copyright (c) 2022 Cycling '74 The code that Max generates automatically and that end users are ...
index_ignore_18
107
#include "../../config.hpp" #if ESTRATEGIA == STRAT_BLUETOOTH #include "../estrategia.hpp" #include "../../motores/motores.hpp" #include "strat.hpp" #include <SoftwareSerial.h> //SoftwareSerial BT(1,0); #define BT Serial1 void setupEstrategia() { BT.begin(115200); } void loopEstrategia(uint16_t distanciaIzqui...
porcentaje
108
/*! * @file Adafruit_SPITFT.cpp * * @mainpage Adafruit SPI TFT Displays (and some others) * * @section intro_sec Introduction * * Part of Adafruit's GFX graphics library. Originally this class was * written to handle a range of color TFT displays connected via SPI, * but over time this library and some display...
spiConfig
109
#include "include/Vigener.h" int threshold; int keyLength; int maxKeyLength; std::string alphabet; void checkFile(std::string fileName) { std::ifstream temp(fileName); if (!temp.is_open()) { std::cout << "Невозможно открыть файл '" << fileName << "'\n"; exit(0); } else { std::string tmp; while (temp) ...
maxGroup
110
#include <vector> #include <chrono> #include <iostream> #include <cmath> #include <bitset> #include <ctime> #include <omp.h> #include "NTL/ZZX.h" #include "helib/FHE.h" #include "helib/EncryptedArray.h" // ! Note: HElib pre 1.0.0 uses findBaseLevel and HElib 1.0.0 uses capacity #define new_simd 0 NTL::ZZX long2Po...
invertSelection
111
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* PhoneBook.cpp :+: :+: :+: ...
queryStr
112
/* * @author 707<<EMAIL>> * This program searches the shortest path. */ #include <vector> #include <cctype> #include <iostream> #include <cstdlib> #include <cstring> #include "short_path.h" int main(int argc, char const *argv[]) { const char *topo[5000] = { // "0,0,1,1\n", // "2,0,3,1\n", ...
found
113
// Compile with // cd demos/ // g++ -std=c++14 -Iinclude demo_simple.cpp -o demo_simple // // Edit and compile this file without installing anything at // https://gitpod.io/#https://github.com/pthom/cleantype/blob/master/demos/demo_simple.cpp // #include <map> #include <vector> #include <cleantype/cleantype.hpp> #defi...
squares_take_10
114
#ifndef EXPERIMENTS_ANODEIMPL_H #define EXPERIMENTS_ANODEIMPL_H #include "ANodeDecl.h" #include "BuilderDecl.h" template<class T, size_t MAX_COUNT, size_t SIZE, template<class, size_t> class ADAPTER> ANode<T, MAX_COUNT, SIZE, ADAPTER>::ANode(const ANode &otherNode) : childrenCount_(otherNode.childrenCount_), ...
newCount
115
#include "application.h" #include "constants.h" cm::application::application(std::shared_ptr<cm::config_map> map, std::shared_ptr<cm::logger> log) : map(map), kill_timer(ios), signal_set(ios), completed_apps(0), log(log), shutdown_running(false) { setup_signal_set(); } void cm::application::run() { s...
exit_code
116
#include "AppDelegate.h" #include "HelloWorldScene.h" #include "scene\GameScene.h" #include "scene\FightScene.h" #include "scene\LoginScene.h" #include "util\MyProtoSocket.h" USING_NS_CC; AppDelegate::AppDelegate() { } AppDelegate::~AppDelegate() { } //if you want a different context,just modify the value of glC...
glview
117
// Copyright (C) 2009 The Libphonenumber Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
premium_number
118
#include "precomp.h" #include "gtools.h" #include "stdarg.h" PList::PList() { m_pHead = m_pTail = 0; m_lCount = 0; } PList::~PList() { DeleteContents(); } bool PList::DeleteContents() { while( m_pHead ) { PNode* pNext = m_pHead->m_pNext; m_pHead->m_pNext = 0; ...
bSuccess
119
// // Created by rcala on 24-07-2023. // #include <iostream> #include "../include/main_window.h" #include <unistd.h> using namespace Gtk; MainWindow::MainWindow() { error = 0; set_size_request(500, 500); set_resizable(false); set_border_width(10); set_position(WIN_POS_CENTER); set_title("Hot...
input_file
120
#include <iostream> #include <string> #include <fstream> using namespace std; #include "admin.h" #include "../../Core/Source/Core/Core.h" #include "../../Core/Utils/utils.h" void Admin::clients() { bool running = true; while (running) { ui.clearScreen(); ui.displayHeader("Admin Clients ...
loggedIn
121
#include "App.h" using namespace std; App *app; App::App(QObject *parent) : QObject(parent) { connect(this, &App::error, this, &App::errorSlot); connect(this, &App::reportError, this, &App::showErrorDilogSlot); connect(this, &App::reportErrorMsg, this, &App::errorMsgSlot); ioThread_.setObjectName("io thread");...
msgBox
122
// // Created by Ruslan on 08.04.2024. // // TODO: remove '#include <iostream>' #include <iostream> #include <optional> class ErrorData__ { public: std::string name; std::string message; std::string filename; std::string filepath; int line; ErrorData__(std::string const message, std::string co...
mapCode_
123
//------------------------------------------------------------------------------ //! \file AudioFiles.cpp //! classes representing audio files //! \project ARA SDK Examples //! \copyright Copyright (c) 2018-2025, Celemony Software GmbH, All Rights Reserved. //! \license Licensed under the Apach...
duration
124
#include "Grove_I2C_Motor_Driver.h" #define I2C_ADDRESS 0x0f int echo = 0; int echodroit = 0; int echogauche = 0; long readUltrasonicDistance(int triggerPin, int [MASK] ) { pinMode(triggerPin, OUTPUT); // Clear the trigger digitalWrite(triggerPin, LOW); delayMicroseconds(2); digitalWrite(triggerPin, HIGH)...
echoPin
125
// // Created by 21911 on 24-8-20. // // // Created by 21911 on 2024/8/13. // #include <bits/stdc++.h> #define eps 1e-8 //多2 #define inf 0x3f3f3f3f #define PI acos(-1) //π #define f0n(i,n) for (int (i)=0;(i)< (n);(i)++) #define f1n(i,n) for (int (i)=1;(i)<=(n);(i)++) using namespace std; // unordered_map HASH...
FIXED_RANDOM
126
// Copyright 2021 Metromotive #include "HX711.hpp" namespace metromotive { // Creates a new HX711 object with the default gain. HX711::HX711(DigitalOut *clockPin, InterruptIn *dataPin, void (*onRead)(int32_t reading)) : clockPin(clockPin), dataPin(dataPin), onRead(onRead) { lastSampleGain = x128...
count
127
#include"stdio.h" #include"stdlib.h" #include"string.h" #include"Define.h" //建立先序二叉树 Status CreateBiTree(BiTree &T) { TElemType ch; scanf("%c",&ch); if(ch=='#') T=NULL; else{ if(!(T=(BiTNode *)malloc(sizeof(BiTNode)))) exit(OVERFLOW); T->data=ch; CreateBiTree(T->lchild); CreateBiTree(T->rchild); } retur...
depthleft
128
#ifndef CAMERA_H #define CAMERA_H #include "rtweekend.h" #include "hittable.h" #include "material.h" class camera { public: double aspect_ratio = 1.0; // 渲染图宽高比 int image_width = 100; // 渲染图像素宽度 int image_height; // 渲染图高度 int samples_per_pixel = 10; //每采样点随机采样点数 int max_de...
defocus_radius
129
#include "ccontroller.hpp" #include <Arduino.h> #include <cmath> CController::CController(int pin_num, float threshold_percent, int midi_cc_num) { pin = pin_num; pinMode(pin, INPUT); _last_reading = analogRead(pin); _delta_threshold = round(4096*threshold_percent/100); _midi_cc_num = midi_cc_num...
cur_reading
130
#include "DFA.hpp" DFA::DFA() { /* Initial DFA state */ this->s_state = make_vertex(); this->state = s_state; this->invalid = false; } bool DFA::set_start(int [MASK] ) { if(!valid( [MASK] )) return false; if(state != s_state) return false; s_state = [MASK] ; state = [MASK] ; return true; } bool ...
n_start
131
#include <iostream> #include "AIEngine.hh" AiEngine::AiEngine(ConfigEngine *data) : _ID(0), _data(data), _updateTime(50), _reactionTime(50) { } AiEngine::AiEngine(const AiEngine &other) { this->setID(other.getID()); this->setData(getData()); this->setUpdateTime(other.getUpdateTime()); this->setR...
dir
132
#include <ostream> #include <stdexcept> #include <gtest/gtest.h> #include "DeltaBuffer.hpp" using namespace org_pqrs_Karabiner; TEST(DeltaBuffer, push) { DeltaBuffer [MASK] ; EXPECT_EQ(0, [MASK] .sum()); [MASK] .push(-1); EXPECT_EQ(-1, [MASK] .sum()); // fill buffer EXPECT_TRUE(! [MASK] .isFull());...
deltaBuffer
133
#include <algorithm> #include <iostream> #include <sstream> #include <dlib/cmd_line_parser.h> #include <dlib/image_io.h> #include <dlib/gui_widgets.h> #include <dlib/dir_nav.h> #include <dlib/image_transforms.h> int main(int argc, char** argv) try { dlib::command_line_parser cmd_parser; cmd_parser.add_option(...
scaling_factor
134
// // ycsbc.cc // YCSB-C // // Created by <NAME> on 12/19/14. // Copyright (c) 2014 <NAME> <<EMAIL>>. // #include "ycsbc.h" #include <cstring> #include <future> #include <iostream> #include <string> #include <vector> #include "core/client.h" #include "core/core_workload.h" #include "core/timer.h" #include "core/u...
timer_us
135
/* * Copyright (c) 2024 Huawei Device Co., Ltd. * 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 ...
runtimeType
136
/****************************************************************************** * Copyright 2021 <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/...
_base_type
137
#ifndef NIGIRI_STATEMACHINE_H #define NIGIRI_STATEMACHINE_H #include <condition_variable> #include <initializer_list> #include <iostream> #include <thread> #include <mutex> #include <map> #include <type_traits> namespace nigiri { // #define LOG_NIGIRI_STATEMACHINE template<typename TState, typename TEvent, ...
fromState
138
#include "accelerometer.h" Accelerometer::Accelerometer(short x, short y, short z) { axis_.x = x; axis_.y = y; axis_.z = z; is_empty_ = false; } Accelerometer::Accelerometer(bool is_empty): is_empty_(is_empty) { // } Accelerometer* Accelerometer::Create(short x, short y, short z) { bool are_different = x...
is_y_pin_valid
139
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "Apartment.h" #include "ApartmentHUD.h" #include "Engine/Canvas.h" #include "TextureResource.h" #include "CanvasItem.h" AApartmentHUD::AApartmentHUD() { // Set the crosshair texture static ConstructorHelpers::FObjectFinder<UTexture2D> [MASK] (TE...
CrosshiarTexObj
140
#include "fauve.h" #include "joueur.h" #include "piege.h" #include "AireDeJeu.h" #include "Afficheur.h" #include <iostream> #include <vector> bool gameOver; bool menu = true; void ajoutEdit(AireDeJeu& e, afficheConsole& a) { bool ajouter=true; while(ajouter) { std::string nom; ...
typeAdJ
141
#include <iostream> #include <vector> using namespace std; int knapsack(vector<int>& weights, vector<int>& profits, int capacity) { int n = weights.size(); vector<vector<int>> T(n + 1, vector<int>(capacity + 1, 0)); for (int i = 1; i <= n; ++i) { for (int j = 1; j <= capacity; ++j) { ...
result
142
/*!************************************************************************** ** ** Copyright (C) 2009 TECHNOGERMA Systems France and/or its subsidiary(-ies). ** Contact: Technogerma Systems France Information (<EMAIL>) ** ** This file is part of the GICS library. ** ** Commercial Usage ** Licensees holding valid GICS ...
arg3
143
#include <iostream> #include "NLPReg.h" //未在头文件包含 #include "../../../tensor/function/FHeader.h" namespace nlpreg { float learningRate = 0.3F; // learning rate int nEpoch = 100; // 训练次数 float minmax = 0.01F; // range [-p,p] for parameter initialization void Init(NLP...
lossGrad
144
// ************************************************** // Copyright (c) 2025, <NAME> // ************************************************** #include <algorithm> #include <iostream> #include <limits> #include <vector> #include "dtypes.h" namespace cute_kernels { template <typename T> struct ChunkedArray { ...
num_elements_per_chunk
145
/* * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * 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...
serviceFlags
146
// Copyright 2010-2021 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...
kDemandMax
147
// // Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2023 // // 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/GiveawayParameters.h" #include "td/telegram/AccessRights.h" #include "td/tele...
additional_input_peers
148
/* author: skottZy date: 2020/11/23 sumarry: test1.cpp version: 2020/11/23 v1 */ #include <iostream> #include <cmath> #include <ctime> using namespace std; const uint32_t n = 1e8; uint32_t sum1(uint32_t n){ uint32_t sum = 0; for (uint32_t i = 1; i <= n; i++) sum += pow(-1, i); return sum; } uin...
res1
149
/* * RC-S620/S sample library for Arduino * * Copyright 2010 Sony Corporation */ #include <stdio.h> #include <string.h> #include <inttypes.h> #include "RCS620S.h" /* -------------------------------- * Constant * -------------------------------- */ #define RCS620S_DEFAULT_TIMEOUT 1000 /* --------------------...
sum
150
#include"DxLib.h" #include"main.h" #include"brast.h" //プレイヤー int playerbakuImage[BAKU_ANI]; //爆発画像格納用 XY playerbakuPos; //爆発画像の位置 int playerbakuAni; //爆発のアニメーション用 bool playerbakuFlag; //爆発画像の状態 //敵 int enemybakuImage[BAKU_ANI]; //爆発画像格納用 XY enemybakuPos; //爆発画像の位置 int enemybakuAni; //爆発のアニメーション用 bool enemybakuFlag;...
playerPos
151
/* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "...
KWDMetadata
152
#include "PixelEngine.h" void PixelEngine::Reset() { MGravity = 0; MBouncefactor = 0; MUsedPixels = 0; MCollisionDetection = false; MScreen.Clear(); } void PixelEngine::AddPixel(int x, int y, const CRGB& _color, int [MASK] , int _yspeed) { if ( MUsedPixels < MAX_PIXELS ) { PEPixel& pixel = MPixels[...
_xspeed
153
#define EIGEN_USE_THREADS #include <limits> #include "../util/ctc_ext_beam_search_decoder.h" #include "tensorflow/core/framework/op_kernel.h" namespace tensorflow { template <typename T> class CTCExtBeamSearchDecoderOp : public OpKernel { public: explicit CTCExtBeamSearchDecoderOp(OpKernelConstruction *ctx) : ...
num_entries_ali
154
#include <iostream> #include <vector> #include <random> #include <algorithm> #include <queue> #include <limits> void printVector(std::vector<int> array){ for (auto v:array){ std::cout << v << " "; } std::cout << std::endl; } int next_power_of_two(int v){ v--; v |= v >> 1; v |= v >> 2; ...
sizeModified
155
/*************************************************** Library for SensorBoard Feel free to use the code as it is. <NAME>, <EMAIL> Embedded Systems University of Freiburg, Institute of Computer Science ****************************************************/ #include "SensorBoard.h" SensorBoard::SensorBoard(Stream...
theFGColor
156
/* * Copyright <NAME>. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #ifndef ALDDB_H #define ALDDB_H #include <map> #include <memory> #include <string> #include <nlohmann/json.hpp> #include <aws/core/Aws.h> #include <aws/core/auth/AWSCredentials.h> #include <aws/core/auth/AWSCredentialsProvider.h...
outcome
157
#include <iostream> #include <libfp/retry_me.h> bool func_success() { return true; } bool func_fail() { return false; } int32_t ok() { return 0; } int32_t not_ok() { return 1; } int main() { libfp::RetryMe retry; bool suceeded = retry.ExpectTrue(func_success); std::cout << "func_succes...
lambda_failed
158
#include <memory> #include <chrono> #include "rclcpp/rclcpp.hpp" #include "keyboard_teleop/KeyboardTeleop.hpp" using namespace std::chrono_literals; using std::placeholders::_1; KeyboardTeleop::KeyboardTeleop() : Node("keyboard_teleop") { RCLCPP_INFO(this->get_logger(), "Keyboard Teleop node initialized"); _v...
slow_pressed
159
#include "VRT.h" #include "3rd/glew-2.1.0/GL/glew.h" #include <iostream> #define INTENSITY 0.05 const float vertices[] = { -1.0,-1.0,0.0, 1.0,-1.0,0.0, 1.0,1.0,0.0, -1.0,1.0,0.0, }; const UInt indices[] = { 0,1,2, 0,2,3 }; UInt imageSize[] = { 3, 3, 3 }; fl...
vaoAttributeSlot
160
#include <iostream> using namespace std; int main() { double num1, [MASK] ; //Varibles declaration char op,op2; cout<<"\n\n\t\t\t\"CALCULATOR\"\n\n"; do //Starting point of loop for another calcultion { cout<<"\n\n\t\tEnter First number: "; cin>>num1; //first input number from user cout<<"\n...
num2
161
#include "gl_buffer_objects.h" VertexBuffer::VertexBuffer(const void* data, uint32_t size, GLenum drawMode) { glCreateBuffers(1, &mID); glBindBuffer(GL_ARRAY_BUFFER, mID); glBufferData(GL_ARRAY_BUFFER, size, data, drawMode); } VertexBuffer::VertexBuffer(uint32_t size) { glCreateBuffers(1, &mID); glBindBuffer(GL...
offset
162
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <WinSock2.h> #include "..\XMSocket\XMSocket.h" #pragma comment(lib,"ws2_32.lib") /* typedef struct _OVERLAPPEDExt{ OVERLAPPED ol; char data[1024]; int iotype; //0, read, 1, write }OVERLAPPEDExt, *LPOVERLAPPEDExt; DWORD WINAPI serverThr...
client
163
// The author disclaims copyright to this source code. #include "Debug.h" Debug* Debug::instance = NULL; Debug* Debug::createInstance(Clock* clk) { if (!instance) { instance = new Debug(clk); } return instance; } Debug* Debug::getInstance() { return instance; } Debug::Debug(Clock* clk) { clock = clk; previo...
padding
164
// SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>> // // SPDX-License-Identifier: MIT #include <iostream> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> int main() { // Read an image cv::Mat [MASK] = cv::imread("../index.jpg", cv::IMREAD_COLOR); if ( [MASK] .empt...
input_image
165
#include "MainWindow.h" #include <QStyleOption> #include <QStylePainter> MainWindow::MainWindow(QWidget* parent) : QWidget(parent) { this->setStyleSheet("QWidget { background: #222244; color: #cccc00; }"); } void MainWindow::paintEvent(QPaintEvent* event) { QStylePainter paint(this); paint.setPen(Qt:...
qtSpecific
166
/*------------------------------------------------------------------------- * * orc_wrapper.cpp * An encapsulator for ORC file reader/write functions * * 2020, <NAME>. * * Contains functions that wrap Apache ORC library functions to be used * by ORC FDW. * * Copyright (c) 2020, Highgo Software Inc. * * I...
file_pathname
167
#include "SelectAminoAcidDialog.h" #include "AminoAcidList.h" #include <StudyOptionsDialog.h> #include <QuizOptionsDialog.h> #include "quizapp.h" #include <sysfolders.h> #include <sysscale.h> #include <QDebug> //Text for property type labels const char *propertyTypeLabel[MAX_PROPERTY_TYPES] = { "Acidic / Basic / ...
inFile
168
#include "datastore.h" #include <QFile> #include <QJsonArray> #include <QJsonDocument> #include <QMessageBox> #include <QString> DataStore::DataStore() { } DataStore::~DataStore() { } bool DataStore::read(QString filePath) { issues.clear(); QFile loadFile(filePath); if (!loadFile.open(QIODevice::ReadOn...
jsonArray
169
#include <Time.h> #include <ESP8266WiFi.h> #include <WiFiUdp.h> const byte sinArray[60] = {83, 101, 119, 136, 153, 169, 184, 198, 211, 222, 232, 240, 247, 251, 254, 255, 254, 251, 247, 240, 232, 222, 211, 198, 184, 169, 153, 136, 119, 101, 83, 65, 47, 30, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
beginWait
170
//Hello!, this is a sketch to get remote control to your dragino device by bridge mode //The original source and Pubsubclient code comes from: //https://github.com/knolleary/pubsubclient //this is a modified sketch from those repository // //Hola ! Este es un sketch de prueba para tomar control remoto de su dispositiv...
msgString
171
/* Copyright 2016 Codependable, LLC and <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 writ...
pix
172
#pragma once namespace cfa { using namespace std; int CFA::compute_next_vertex() { int vertex; if (mission[id_task].trail.size() - 1 == id_vertex) { vertex = mission[id_task].trail[id_vertex]; if (mission[id_task].take) { request_Mission(); } else { // pubblico un messaggi...
mb_string
173
#pragma once #include <stdint.h> #include <algorithm> #include <map> class StreamUtilities { public: enum class EncodingTypes : u_int8_t { VARINT = 0, I64 = 1, LEN = 2, I32 = 5, INVALID = 10 }; static uint8_t parseVarint(uint8_t* buffer, size_t& result); static size_t getFieldNumber(const size_t field...
encodingTypeMap
174
#ifndef __OCR_UTILS_H__ #define __OCR_UTILS_H__ #include <opencv2/core.hpp> #include "OcrStruct.h" #include "onnxruntime/core/session/onnxruntime_cxx_api.h" #include <android/log.h> #include <android/asset_manager.h> #include <android/asset_manager_jni.h> #define TAG "OcrLite" #define LOGV(...) __android_log_print(AN...
min
175
/* Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) 2022 <NAME> https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode You are free to: Share — copy and redistribute the material in any medium or format Adapt — remix, transform, and build upon the material ...
jsonDataHeader
176
#include<iostream> #include<conio.h> #include<fstream> #include<windows.h> using namespace std; struct node { string data; node * next; }*start[52]; class linked_Dic { private: node *head, *tail; char words[50]; public: linked_Dic();//for Linked List Creatio...
choice
177
// Copyright 2016 <NAME> <<EMAIL>> // Apache License Version 2.0. See LICENSE file // Most Servo Sweep code by BARRAGAN <http://barraganstudio.com> and <NAME> http://www.arduino.cc/en/Tutorial/Sweep // Heart pulse code by Sparkfun https://www.sparkfun.com/tutorials/329 #include <Servo.h> const int buttonPin = 2; cons...
heartOut
178
// Copyright <NAME> 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <fmidi/fmidi.h> #include <getopt.h> #if defined(FMIDI_GREP_HAVE_FTS) #include <fts.h> #else #include <filesystem...
num_inputs
179
#include "Ledstrip.h" uint8_t redValue, blueValue, greenValue = 0; CRGB leds[NUM_LEDS]; void setupLedstrip() { LEDS.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS); LEDS.setBrightness(50); Serial.println("Ledstrip initialized"); powerOffLedstrip(); updateLedstrip(); } void updateBrigtness(double [MASK] ) {...
brightness
180
/* Copyright 2019 <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 writing, software distribut...
offset
181
#include <iostream> #include <array> #include <vector> #include <iomanip> #include <map> #include <random> #include <cmath> #include "src/Ckmeans.1d.dp.h" template <int N, int K> struct cluster { std::array<int,N> clusters; std::array<double,N> centers; std::array<double,N> withinss; std::array<double,...
beats
182
#include "Ellipse.h" // Constructeur par défaut : Centre à (0,0), a = 1 et b = 0.5 par défaut. Ellipse::Ellipse() : h(0), k(0), a(1), b(0.5), orientation('X') { if (a <= b) { std::swap(a, b); } } Ellipse::Ellipse(double h, double k, double a, double b, char orientation) : h(h), k(k), a(a...
givenValue
183
//Copyright (c) 2006-2008 <NAME> and <NAME>, Inc. //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) #ifndef UUID_0552D49838DD11DD90146B8956D89593 #define UUID_0552D49838DD11DD90146B8956D89593 #include <boost/exceptio...
tmp
184
/*--- FIRST VERSION: COPY this into a main.cpp in a NetBeans C++ Application Project (replace the given contents) improved 2019-03-30 with comment with ready-for-test-expression cout for easier test call setup (thanks <NAME>!) ---*/ /*--- by: <NAME> & <NAME> last mod...
inside_outside_cat
185
#include "Application.h" #include "ECS/ECS.h" #include "Log.h" #include "Renderer.h" #include "InputManager.h" #include "SDL.h" #include "SDL_ttf.h" #include "SDL_image.h" #include "SDL_mixer.h" namespace DrEngine { Renderer* Application::renderer = nullptr; SDL_Event Application::event; float Application::Delta...
width
186
#include "BasicCamera.h" #include <GLFW\glfw3.h> #include <glm\glm.hpp> #include <glm\gtc\matrix_transform.hpp> #include "Input.h" using namespace glm; BasicCamera::BasicCamera() : BasicCamera(vec3(0, 0, 0)) { } BasicCamera::BasicCamera(vec3 [MASK] ) { _pos = [MASK] ; _front_vec = glm::vec3(0, 0, 1)...
starting_pos
187
#include "./downloader.hpp" #include "./strategy.hpp" #include "cryptoconnect/structs/events.hpp" #include "cryptoconnect/structs/universe.hpp" #include <boost/asio/thread_pool.hpp> CBProDownloader::CBProDownloader(CBProStrategy *strategy) : strategy_(strategy){}; void CBProDownloader::downloadLatestBars( Univ...
queryEndTime
188
#include <atomic> #include <iostream> #include <typeinfo> #include <cxxabi.h> #include <memory> #include <string> #include <vector> template<typename T> void is_lock_free(std::atomic<T>& a); std::string demangle(const char* name) { int status = -1; std::unique_ptr<char, void(*)(void*)> [MASK] { abi:...
res
189
/*! * @copyright This example code is in the Public Domain (or CC0 licensed, at your option.) * Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "app_priv.h" exter...
now
190
#pragma once #include <cassert> #include <utility> #include <algorithm> #include <memory> #include <new> namespace nonstd { namespace Detail { template <typename T> [[nodiscard]] T* allocate_uninit(size_t count) { return reinterpret_cast<T*>(::operator new[](sizeof(T)* count, std::al...
num_elements
191
//Card.cpp : Contains all card related functions. //Authors : <NAME> (<EMAIL>) //#include "stdafx.h" //INCLUDE FOR VISUAL STUDIO #include "Card.h" using namespace std; Card::Card() :cardRank(TWO), cardSuit(CLUBS) {} Card::Card(int r, int s) : cardRank((Card::rank)r), cardSuit((Card::suit)s) {} in...
handSize
192
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -*- Mode: C++ -*- // // Copyright (C) 2021 Oracle, Inc. // // Author: <NAME> /// @file /// /// This file implement the CTF testsuite. It reads ELF binaries /// containing CTF, save them in XML corpus files and diff the /// corpus files against reference XML...
opts
193
#include <SFML/Graphics.hpp> #include <ctime> #include <cstdlib> //PLAYING FIELD DIMENSIONS// const int H = 4; // HIGHT const int W = 4; // WEIGHT int field[H+2][W+2] = { {-1, -1, -1, -1, -1, -1}, {-1, 0, 1, 2, 3, -1}, {-1, 4, 5, 6, 7, -1}, {-1, 8, 9, 10, 11, -1}, {-1, 12, 13, 14, 15, -1}, {-1...
window
194
#ifndef MATH_ANGLE_H #define MATH_ANGLE_H #include "math_Rational.h" #include "math_Vector.h" namespace math { // Return sin(x) Taylor series to order x^(2n+1). Rational sin(const Rational& x, Unsigned n) { Rational x2 = -x * x; Rational term = x; Rational series = ter...
invert
195
// // KittyMemory.cpp // // Created by MJ (Ruit) on 1/1/19. // #include <src/Includes/obfuscate.h> #include "KittyMemory.h" #include <iostream> #include <string> #include <src/Includes/Logger.h> #include <fstream> #include <src/Includes/Utils.h> using KittyMemory::Memory_Status; using KittyMemory::ProcMap; struct...
targetAddr
196
#include <iostream> #include <string> int main() { std::string input; // Manter essa linha sob observação int [MASK] = 0; // Solicita ao usuário para inserir uma string std::cout << "Digite uma string: "; std::getline(std::cin, input); // Lê a string completa, incluindo espaços /...
count
197
// Button int buttonPin = 34; // Motor DC int motor1Pin1 = 27; int motor1Pin2 = 26; int enable1Pin = 14; // Setting PWM properties const int freq = 30000; const int pwmChannel = 0; const int resolution = 8; int dutyCycle = 200; void setup() { // sets the pins as outputs: pinMode(motor1Pin1, OUTPUT); pinMode...
buttonValue
198
#pragma once #include <iostream> #include <memory> #include <sstream> #include <vector> #include "magic_enum.hpp" enum class SymbolType { Program, ExtDefList, ExtDef, ExtDecList, Specifier, StructSpecifier, OptTag, Tag, VarDec, FunDec, VarList, ParamDec, CompSt, ...
buf
199
#pragma once #include <memory> #include <type_traits> #include <systemd/sd-bus.h> #include <sdbusplus/message/append.hpp> #include <sdbusplus/message/read.hpp> #include <sdbusplus/message/native_types.hpp> namespace sdbusplus { // Forward declare sdbusplus::bus::bus for 'friend'ship. namespace bus { struct bus; }; ...
reply