id
stringlengths
1
3
code_masked
stringlengths
783
188k
target
stringlengths
3
27
400
#include "Adafruit_BMP581.h" #include "metadata.h" #include <Arduino.h> #include <FIR.h> #include <Notecard.h> #include <Wire.h> #include <floor_tracker.h> // Uncomment to use a connected SSD1306 Display // #define USE_DISPLAY // Uncomment to rotate the connected display 180 degrees // #define DISPLAY_ROTATE_180 // ...
filteredFloor
401
/* * layer.cpp * * * Created by <NAME> on Tue Sep 23 2003. * Copyright (c) 2003 <NAME>. All rights reserved. * */ #include "layer.h" Layer::Layer(int _numNeurons, int _numInputs, double _learningRate, Function* _activationFunction) : numNeurons(_numNeurons), numInputs(_numInputs), learningRate(_learn...
newLearningRate
402
#include "cpu/attention.h" #include "cpu/math_utils.h" #include <cassert> Tensor Attention<BackendType::CPU>::forward( const Tensor& input, const Tensor& rope_cost, const Tensor& rope_sint, int start_pos, bool mask, Tensor* residual) { int batch = input.shape()[0]; int seqlen = input.shape()[...
scale
403
#include <iostream> #include <thread> #include <vector> #include <memory> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <errno.h> #include <string.h> #include <string> #include <unistd.h> #include <chrono> #include <poll.h> #include <mutex> #include <queue> #include <unordered_set> #include...
optval
404
/********************************** * FILE NAME: MP1Node.cpp * * DESCRIPTION: Membership protocol run by this Node. * Definition of MP1Node class functions. **********************************/ #include "MP1Node.h" /* * Note: You can change/add any functions in MP1Node.{h,cpp} */ /** * Overl...
gList
405
#include <Windows.h> #include <stdio.h> #include <iostream> #include <TlHelp32.h> #include <conio.h> #define SE_DELEGATE_SESSION_USER_IMPERSONATE_NAME TEXT("SeDelegateSessionUserImpersonatePrivilege") bool EnableDebugPrivilege() { HANDLE hToken; LUID sedebugnameValue; TOKEN_PRIVILEGES tkp;...
tokenIntegrityLevel
406
/* * Copyright (C) 2012-2013 <NAME>, ASL, ETH Zurich, Switzerland * You can contact the author at <slynen at ethz dot ch> * Copyright (C) 2011-2012 <NAME>, ASL, ETH Zurich, Switzerland * You can contact the author at <stephan dot weiss at ieee dot org> * * Licensed under the Apache License, Version 2.0 (the "Lice...
rangemsg
407
//DYNINST_ROOT = /home/liuweijie/ShadowGuard/thirdparty/dyninst-10.1.0/install //CFLAGS = -g -O2 -std=c++11 //INC = -I$(DYNINST_ROOT)/include //LIB = -L$(DYNINST_ROOT)/lib //DEP = -linstructionAPI -lelf -ldynDwarf -ldw -lelf -ldynElf -lcommon -lboost_system //testget: get_instruction_details.cpp // g++ $(CFLAGS) $(INC...
regStr
408
//***************************************************************************** // // Copyright 2015 Microsoft 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 ://w...
files
409
/* * 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 ...
options
410
#include "raylib.h" #include "random" #include "time.h" #include <iostream> #include <string> #include <vector> int Clamp(float num, float min, float max) { if (num > max) { return max; } if (num < min) { return min; } return num; } int main() { const int sc...
screenHeight
411
#include <EQLNES_SDCard.h> #include <Arduino.h> #include <SdFat.h> #include <String.h> void EQLNES_SDCard::begin() { _sd.begin(_csPin, SPI_FULL_SPEED); } bool EQLNES_SDCard::writeFile(char *filename, char *data) { if (_file.open(filename, O_RDWR | O_CREAT | O_AT_END)) { _file.println(data); ...
buffer
412
#include "Battle.h" /** * Default Constructor */ Battle::Battle() { } /** * A new instance of a battle must have a pointer to the current players SharShip and the enemy being engaged * * @param *ship a pointer to the current player's StarShip * @param *enemy a pointer to the PVEEntity currently being engaged * @r...
randdmg
413
#include "pch.h" #include "Input.h" #include "Application.h" #include <GLFW/glfw3.h> namespace Doge { bool Input::IsKeyPressed(int keycode) { int state = glfwGetKey(Application::GetActiveWindow()->GetNativeWindow(), keycode); return state == GLFW_PRESS; } bool Input::IsKeyReleased(int keycode) ...
ypos
414
#include "MainScene.h" #include "SimpleAudioEngine.h" USING_NS_CC; Scene* MainScene::createScene() { return MainScene::create(); } // Print useful error message instead of segfaulting when files are not there. static void problemLoading(const char* filename) { printf("Error while loading: %s\n", filename); ...
backGround
415
#include <cstdlib> #include <filesystem> #include <iostream> #include <libenvpp/env.hpp> std::filesystem::path path_parser_and_validator(const std::string_view str) { const auto log_path = std::filesystem::path(str); if (!std::filesystem::exists(log_path)) { if (!std::filesystem::create_directory(log_path)) { ...
path_id
416
#include "CRegex.h" CRegex::CRegex() : _state_count(0) {} CNFA CRegex::compile(std::string regex) { if (!regex.size()) { throw std::invalid_argument("Empty regex"); } auto begin = regex.begin(); return compileIter(begin, regex.end()); } CNFA CRegex::compileIter(std::string::iterator &begin, const std::string...
alt1
417
/********************************************************************* This is a library for Chinese LED matrix displays Written by <NAME>. BSD license, check license.txt for more information *********************************************************************/ #ifndef _PxMATRIX_H #define _PxMATRIX_H // This is ho...
base_offset
418
#include <iostream> #include "glad/glad.h" #include "GLFW/glfw3.h" using namespace std; // 窗口大小改变回调函数 static void window_size_changed(GLFWwindow* window, int width, int height) { glViewport(0, 0, width, height); } // 处理用户输入 static void process_input(GLFWwindow* window) { if (glfwGetKey(window, GLFW_KEY...
EBO
419
#include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP085_U.h> #include <BH1750.h> #include <DHT.h> #include <DHT_U.h> #include <ESP8266WiFi.h> #include <WebSocketsServer.h> #include "arduino_secrets.h" // Include the header for WiFi credentials // BMP180 Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Un...
response
420
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <bangtal> #include <cstdlib> #include <string> #include <ctime> using namespace bangtal; ObjectPtr rule[6], rule_image[6], start[6]; ObjectPtr challenge_button, practice_button, off, info, back, mode_info; ScenePtr practice_scene = Scene::create...
end_chall
421
#ifndef STDEX_CONFIG_H_ #define STDEX_CONFIG_H_ #include "stdex/stdcc.h" #include "stdex/string.h" #include "stdex/crypt.h" #include "stdex/base64.h" #include "stdex/file.h" namespace stdex { class Config { public: int load(const string &path, const string &pem="") { std::vector<string> lines; ...
sep
422
/* coding=utf-8 * Copyright (c) 2023, SUGON CORPORATION. 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 * * ...
tensor_grad_out
423
#include "AStar.h" AStar::AStar(void){ currentPoint = NULL; } AStar::~AStar(void){} std::list<Point> AStar::GetResultList(){ return result; } void AStar::Init(Map* map){ m_map = map; } void AStar::Calculate(bool isIgnoreCornor){ //将起点加入open表 Point start(m_map->x_start,m_map->y_start); openlist.push_back(&start);...
cost1
424
// // Created by <NAME> on 13/08/2024. // #include "gipZstd.h" #include "zstd.h" gipZstd::gipZstd() { } gipZstd::~gipZstd() { } void gipZstd::update() { } std::vector<uint8_t> gipZstd::compressString(const std::string& input, int [MASK] , bool* outSuccess) { size_t maxdistsize = ZSTD_compressBound(input.size()...
compresssionLevel
425
// System includes #include <iostream> #include <stdexcept> #include <sys/ioctl.h> #include <fcntl.h> #include <termios.h> #include <unistd.h> // Personal includes #include "../includes/Game.hpp" #include "../includes/Constants.hpp" #include "../includes/Piece.hpp" namespace Tetris { Game::Game() : gameOver{false}, ...
oldFlags
426
#include "../Library/ds3231.hpp" int main( void ){ WDT->WDT_MR = WDT_MR_WDDIS; //Kill the watch dog namespace target = hwlib::target; const char *states[6] = {"Minutes", "Hours", "Day", "Date", "Month", "Year"}; //Array with all the states the user can choose to change const char *days[7] = {"Mon...
clock
427
/* * Copyright (c) 2021 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 or a...
completeFuncRef
428
/* This file is part of distributed Structured Prediction (dSP) - http://www.alexander-schwing.de/ * * distributed Structured Prediction (dSP) 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...
time_span
429
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- /*! * Copyright (C) 2020, SICK AG, Waldkirch * Copyright (C) 2020, FZI Forschungszentrum Informatik, Karlsruhe, Germany * * * Licensed under the Apache License, Versio...
config_data
430
#include "wave7i5.h" #include <stdio.h> #include <stdlib.h> #include "esp_log.h" #include "freertos/task.h" #define GDEW075T7_PU_DELAY 100 // Constructor Wave7i5::Wave7i5(EpdSpi &dio) : Adafruit_GFX(GDEW075T7_WIDTH, GDEW075T7_HEIGHT), Epd(GDEW075T7_WIDTH, GDEW075T7_HEIGHT), IO(dio)...
startTime
431
#pragma once #include "Vector3.h" #include "Ray.h" class Camera { public: Camera(Vector3& position, Vector3& lookAt, Vector3& up, float vfov, float aspect) { Vector3 u, v, w; float [MASK] = vfov * M_PI / 180; float half_height = tan( [MASK] / 2); float half_width = aspect * half_height; origin = posit...
theta
432
/*********************************************************************** Vczh Library++ 3.0 Developer: <NAME>(vczh) Database::Utility ***********************************************************************/ #ifndef VCZH_DATABASE_UTILITY_COMMON #define VCZH_DATABASE_UTILITY_COMMON #include "../DatabaseVlppReferences....
size
433
#include<cstdio> #include<cstring> using namespace std; typedef unsigned short int uint16; /* a=target variable, b=bit number to act upon 0-n */ #define BIT_SET(a,b) ((a) |= (1<<(b))) #define BIT_CLEAR(a,b) ((a) &= ~(1<<(b))) #define BIT_CHECK(a,b) (!!((a) & (1<<(b)))) // '!!' to make sure this returns 0 or 1 #defi...
CARRY
434
#define _CRT_SECURE_NO_WARNINGS #include "AidMan.h" #include <iostream> #include <fstream> #include <iomanip> #include <cstring> #include <ctime> #include <algorithm> #include "Menu.h" namespace sdds { AidMan::AidMan() { m_productCount = 0; m_filename = nullptr; } AidMan::AidMan(const c...
printedCount
435
// g++ ./c++/error.cc -o ./build/error && ./build/error #include <iostream> #include <stdint.h> #include <string.h> #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <unistd.h...
SYS_WRITE
436
//------------------------------------------------------------------------------------------- // INCLUDES //------------------------------------------------------------------------------------------- // MQTT Includes #include <WiFi.h> #include <PubSubClient.h> #include <Wire.h> // OLED Includes #include <Wi...
equal
437
/* 扩展以使用质心偏移检测连续图像中的运动。 该技术减少了虚假的运动变化: -相机噪点,特别是在弱光下 -微小的运动,例如树叶沙沙作响,下雨 -短暂的运动,例如鸟类飞过 -照明水平的变化,例如过云 图像之间的变化量将取决于帧频。 更快的帧速率将需要更高的灵敏度 更改帧大小时,OV2640会输出一些毛刺的帧 进行过渡。这些可以解释为虚假运动。 s60sc 2020 */ #include "motionDetect.h" #include "esp_camera.h" #include "esp_jpg_decode.h" #include <SD_MMC.h> // 用于校准运动检测的用户配置参...
nightCnt
438
// // Created by zhangws on 2024/3/7. // #include <android/log.h> //加载着色器 GLuint LoadShader(GLenum type,const char * shaderSrc){ GLuint shader; GLint [MASK] ; shader=glCreateShader(type); if(shader==0){ return 0; } glShaderSource(shader,1,&shaderSrc,NULL); glCompileShader(shader);...
compiled
439
#define TINYGLTF_IMPLEMENTATION #define TINYGLTF_NO_STB_IMAGE_WRITE #define TINYGLTF_NO_STB_IMAGE #define TINYGLTF_NO_EXTERNAL_IMAGE #include "tiny_gltf.h" #include "Globals.h" #include "Model.h" #include "Mesh.h" #include "Application.h" #include "ModuleTexture.h" #include "ModuleCamera.h" #include "ModuleEditor.h" #...
wrapT
440
#include "mainwindow.h" #include "ui_mainwindow.h" #include <stdlib.h> #include <time.h> #include <QMessageBox> void inicializarListaDeImagenes(ListaCircular<QPixmap> *col) { QPixmap pix0("/home/emanuel/Facultad/programación orientada a objeto/2018/practica/tp14/tragaMonedas/TragaMonedas/img/imagen(0).ICO"); ...
pix3
441
// Copyright 2024 SkynetScout // // 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 ...
isDetected
442
#include <iostream> #include <string> using namespace std; // Function to calculate grade from marks char calculateGrade(int marks) { if (marks >= 90 && marks <= 100) { return 'A'; } else if (marks >= 80 && marks < 90) { return 'B'; } else if (marks >= 70 && marks < 80) { r...
studentName
443
#include "edgeDetectionPendantDrop.h" #include <fstream> #include <cmath> #define TRESHHOLD 120 using namespace std; vector<Point> readPendantDrop(string FILENAME_INPUT) { vector <Point> coords; unsigned char red , green , blue; string [MASK] = "res\\pics\\EXP_PROFILES\\"; string DER_DIRECTO...
EXP_DIRECTORY
444
#include "configurephasedialog.h" #include "ui_configurephasedialog.h" #include <QMessageBox> ConfigurePhaseDialog::ConfigurePhaseDialog(QWidget *parent, heatRampPhase_t* _phase, bool [MASK] ) : QDialog(parent), ui(new Ui::ConfigurePhaseDialog) { ui->setupUi(this); phaseWasDeleted = false; phase = _phas...
_isNew
445
// Copyright (C) 2018-2023 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "ngraph/op/scatter_update.hpp" #include "bound_evaluate.hpp" #include "itt.hpp" #include "ngraph/runtime/reference/scatter_update.hpp" #include "ngraph/shape.hpp" #include "ngraph/type/element_type.hpp" #include "ngraph/ty...
updates_in_idx
446
#include <iostream> class Foo { private: int m_value; public: Foo(int value = 0): m_value(value) {} ~Foo() {} Foo operator+(const Foo& other) { return Foo(m_value + other.m_value); } Foo operator-(const Foo& other) { return Foo(m_value - other.m_value); } Fo...
foo3
447
#pragma once #include <cstdint> namespace Tree { // Return pointer to the first item in the tree (the first file on the volume) template<class NODE> NODE *smallest(NODE *top) { if (top == nullptr) return nullptr; while (top->smaller_ != nullptr) top = top->smaller_; return top; ...
step_direction
448
// ////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////// // C++ Support Library Include File // ////////////////////////////////////////////////////////////////////////// /* File Name : %M% File Version : %I% Last...
out_string
449
/* Copyright 2018 Intel * * 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...
begin
450
// SPDX-License-Identifier: Apache-2.0 // Original (Public Domain): https://github.com/espressif/esp-idf/blob/b310c062cd25f249e00dd03dd27baed783921630/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/ble_hidd_demo_main.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include "freertos/FreeRTOS.h"...
modifier
451
#include "idocr.h" using namespace cv; using namespace std; string idOCR::cutoutPath = ""; idOCR::idOCR() { tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI(); } idOCR::~idOCR() { } void idOCR::saveImage(string [MASK] , const Mat & image){ if ( [MASK] .length() < 1) return; imwrite( [MA...
fileName
452
#ifndef ALIENS_INVASION__ALIEN_H #define ALIENS_INVASION__ALIEN_H #include <memory> #include <cassert> #include "city.h" namespace aliens_invasion { class Alien : public std::enable_shared_from_this<Alien> { public: explicit Alien(int id, std::shared_ptr<City> position) : m_id(id), m_a...
moveTo
453
#include<iostream> #include<fstream> #include<vector> #include<string> #include<cstdio> #include<stdio.h> #include<iomanip> #include<sstream> using namespace std; int main(); void Edit(); void edit_item(string); void is_existed(); void read_all_record(); float netamt,grand_total=0; float calculate(float [MASK] ,floa...
price
454
#include "common/stdafx.h" #include "display/display.h" Display::Display(Renderer *r) : renderer(r) { } Display::~Display() { } void Display::render() { unsigned int [MASK] , y_end, x_start, x_end; [MASK] = (renderer->height / 2) - (144 / 2); y_end = (renderer->height / 2) + (144 / 2); ...
y_start
455
/////////////////////////////////// ////// DO NOT EDIT THIS FILE ////// /////////////////////////////////// // // Johnny705 robot simulator for TU705 Engineering Computing 2.1 // Written by <NAME> - last updated 17-Oct-2021 // arduino.cpp - mainly simulated Arduino functions // #include <thread> #include "...
seed
456
// Copyright 2022 ByteDance Ltd. and/or its affiliates. /* * 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 ...
first
457
#include <PID_v1.h> #include <Ultrasonic.h> const int SERVO_PIN = 9; const int ULTRASONIC_TRIG_PIN = 10; const int ULTRASONIC_ECHO_PIN = 11; const float KP = 2.0; const float KI = 0.0; const float KD = 0.0; // Create the PID controller PID myPID(&distance, &servoPosition, &setpoint, KP, KI, KD, DIRECT); ...
echo_time
458
/* * \file Profiler.h * \copyright (C) 2021 Special Technological Center Ltd * \author : <NAME>. * \date : 16.01.2021 * \time : 20:29 */ #pragma once #include <chrono> #include <fstream> #include <iomanip> #include <string> #include <thread> #include <mutex> #include <sstream> #include <bard/core/logging/Logge...
endTimepoint
459
// Managers.cpp: implementation of the CManagers class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "Legend.h" #include "Managers.h" #include "player.h" #include"People.h" #include"Sign.h" #ifdef _DEBUG #undef THIS_FILE #define new DEBUG_NEW #en...
sign
460
#include "object_arena.h" #include "../2D_tools/tools.h" #include <iostream> using namespace std; // função que irá criar/ler a arena void object_arena::ReadArena(GLfloat a_x, GLfloat a_y, GLfloat a_z, GLfloat a_height, GLfloat a_width) { // dimensões arena_x = a_x; arena_y = a_y; arena_z = a_z; ...
t2j
461
#include "./LinearSystemSolver.hpp" namespace ConsensusProblem { template <typename DT, typename MTRX> std::vector<Rule*> LinearSystemSolver<DT, MTRX>::findApplicableRules( const std::vector<short> states, const short rulesCount, Rule* const* rules ) const { std::vector<Rule*> applicableRules; for (short...
startingStatesVariableId
462
#include <cmath> #include <iostream> using namespace std; // Global variables #define NMAX 100 #define TOLERANCE 0.00001 #define EXACTITUDEC 0.00005 // Actual Function to use double F(double x) { return 3 * pow(x, 3) - 2 * x - 5; } /* * Bisection method * a -> lower end * b -> upper end * MAXIT -> maximum numb...
test
463
#include "Application.h" int Application::getEncryptionChoice() { int choice = 0; print("Which cipher do you want now ? "); std::cin >> choice; if (isWithInTheRange(choice, 1, 7)) { return choice; } return 0; } int Application::getMainMenuChoice() { int choice = 0; print("What are you abou...
menuChoice
464
/* opengametools vox file reader/writer/merger - v0.997 - MIT license - <NAME>, Oct 2019 This is a single-header-file library that provides easy-to-use support for reading MagicaVoxel .vox files into structures that are easy to dereference and extract information from. It also supports writing back...
first_shape_node_id
465
#include <iostream> #include <sstream> #include <memory> #include <list> #include "scheduler.h" #include "network.h" #include "lattice.h" #include "MRMeldBlockCode.h" #include "meldInterpretEvents.h" #include "meldInterpretMessages.h" #include "meldInterpretVM.h" #include "trace.h" using namespace std; using names...
pev
466
/** * Copyright 2023 Huawei Technologies 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...
old_name
467
#include "kspch.h" #include "Log.h" #include "Application.h" #include "Input.h" #include "Kenshin/Renderer/Renderer.h" #include <GLFW/glfw3.h> namespace Kenshin { Application* Application::s_Instance = nullptr; Application::Application() { KS_CORE_ASSET(!s_Instance, "application has already exits!"); s_Instanc...
width
468
#pragma once #include <GL/glew.h> #include <span> namespace GlWrapper { template <class T> class Buffer { public: Buffer(const std::span<T> buffer) { // check lib types match inbuilt types static_assert(sizeof(uint32_t) == sizeof(GLuint), "GLuint is expected to be 32bits in size"); glGenBuffers(1, ...
location
469
#include "Particles.h" /************************************************************/ ParticleSystem::ParticleSystem(sf::Vector2u canvasSize) : m_dissolve(false), m_particleSpeed(50.0f), m_transparent(sf::Color(0, 0, 0, 0)), m_dissolutionRate(4), m_shape(Shape::CIRCLE), m_gravity(sf::Vector2f(0.0f, 0.0f)), ...
deltaTime
470
// // Created by hanm on 22-6-15. // #include "KDLineTree.h" Point KDLineTree::max_point() { Point tmpPoint; float max_distance = 0; for(const auto& bucket : KDNode_list){ if(bucket->max_point.dis > max_distance){ max_distance = bucket->max_point.dis; tmpPoint = bucket->max...
pre_memory_ops
471
//Copyright 2021 KonstantIMP // //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,...
fout
472
#include <iostream> #include <fstream> #include <cstring> #include <cstdlib> #include <locale.h> //AD SOYAD:<NAME> NO:2412721029 KONU:HEDİYELİK EŞYA OTOMASYONU using namespace std; struct HediyelikEya { char ad[80]; char kategori[50]; float fiyat; int miktar; }; void urunEkle(); void urunListele(); v...
yaz
473
#include <LiquidCrystal_I2C.h> #include <Servo.h> Servo myServo; // Objek servo pertama Servo myServo2; // Objek servo kedua // Initialize the LCD LiquidCrystal_I2C lcd(0x27, 16, 2); // Define the pin connected to the sensor const int sensorPin = A4; // Analog pin A0 void setup() { Serial.begin(9600); pinMode(...
moisturePercentage
474
/*Given an array arr[] of size N of positive integers which may have duplicates. The task is to find the maximum and second maximum from the array, and both of them should be distinct, so If no second max exists, then the second max will be -1. Constraints: 1 <= T <= 100 1 <= N <= 106 1 <= arr[i] <= 106 Example: Inp...
smax
475
#include <cstdio> #include <cstring> #include <pthread.h> #include "IThread.hpp" #define INVALID_TID 0UL #define THREAD_NAME_LEN 16 namespace alf { struct IThread::ThreadImpl { pthread_mutex_t state_mutex; pthread_mutex_t event_mutex; pthread_cond_t signal_cond; ThreadImpl() : state_mut...
newSignal
476
// Copyright 2015, <NAME> and the FunctionalPlus contributors. // https://github.com/Dobiasd/FunctionalPlus // 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 <fplus/fplus.hpp> #include <atomic> #include...
cuteness
477
/* * Copyright (c) 2022 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 or a...
pinToken
478
/* ### * IP: GHIDRA * * 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...
looffset
479
#include <pch.h> #include "Renderer.h" #include "VertexBuffer.h" #include "VertexBufferLayout.h" #include "VertexArray.h" #include "IndexBuffer.h" #include "Shader.h" #include "Texture.h" #include "CPU.h" #include "UI/RenderControls.h" int main() { GLFWwindow* window; if (!glfwInit()) { std::cout << "[-] ...
windowWidth
480
#include "buffer/stream_buffer.h" #include <algorithm> #include <cstdint> #include <stdexcept> using namespace std; StreamBuffer::StreamBuffer(uint64_t capacity) : capacity_(capacity) {} void Writer::push(string [MASK] ) { const auto write_num = min(available_capacity(), [MASK] .size()); if (!write_num) { ...
data
481
#include <cassert> #include <iostream> #include <string> #include "libseqiter/seqiter.h" using namespace std::literals; bool test1() { auto [MASK] = std::array{3,1,4,1,5}; auto in2 = std::array{9,2,6,5}; auto in3 = std::array{3,5,8}; auto in = sequential_iterators<int const &>(it_pair{ [MASK] }, it_pair{in...
in1
482
#include <iostream> #include "myclasses.h" using namespace std; int main() { // Создаем переменную myClass типа класса MyClass, // она будет автоматически удалена при завершении программы // И так лучше не создавать объекты !!! MyClass myClass; cout << myClass.get_time() << endl; cout << myC...
myClass3
483
#include "Bus.h" #include "cartridge.h" Bus::Bus() { //clear ram content on startup for (auto& loc : ram) loc = 0x00; //connect cpu to bus cpu.connectBus(this); } Bus::~Bus() { } void Bus::CpuWrite(uint16_t addr, uint8_t data) { if (_currentCart->CpuWrite(addr, data)) { //when bus is written to the cpu the ...
readOnly
484
#include "DNAData.h" TypeHandle DNAData::_type_handle; DNAData::DNAData(const std::string& name) : DNAGroup(m_name) { m_cur_store = nullptr; cord_system = get_default_coordinate_system(); } DNAData::~DNAData() { } void DNAData::pre_write() { } void DNAData::set_coordinate_system(CoordinateSystem ...
nbyte
485
#ifndef PINGCAP_MUTEX_H #define PINGCAP_MUTEX_H #include <pthread.h> #include <assert.h> #include "PingCAP_define.h" namespace pingcap { namespace common { class PingCAPMutex { public: PingCAPMutex() { const int [MASK] = pthread_mutex_init(&mutex_, NULL); (void)...
iRet
486
#include "widget.h" #include "./ui_widget.h" Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this); ui->copyName->setVisible(false); QStandardItemModel* model = new QStandardItemModel(ui->treeView); model->setHorizontalHeaderLabels(QStringList()<<"名称"<<"类型")...
myDisks
487
#include <iostream> #include <fstream> #include <string> #include <unordered_map> #include <vector> #include <algorithm> #include <ctime> #include <iomanip> using namespace std; // Utility Functions void printDivider() { cout << "-------------------------------------------\n"; } string getCurrentTimestamp() { ...
inputItem
488
#include "ButtonTest.h" volatile bool bt_ButtonHit; void bt_ButtonInterrupt() { bt_ButtonHit = true; } void ButtonTest::begin(Adafruit_RGBLCDShield _lcd) { this->lcd = _lcd; bt_ButtonHit = false; } void ButtonTest::RunTest() { int Button_Wait = 10000; long timer = 0; uint8_t [MASK] = 0; digitalWrit...
btns
489
#include "Graph.h" #include "Line.h" #include <cmath> #include "Global.h" namespace ui { Graph::Graph(const std::string& id) : UIObject(id) , m_pos(0, 0) , m_size(100, 100) , m_backColor(sf::Color::White) , m_axisColor({ 10, 10, 10 }) , m_axisWidth(2) , m_gridWidth(1) { } void Graph::SetPosition(c...
axisX1
490
/* -------------------------------------------------------------------------- * * Simbody(tm): SimTKcommon * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
diagValue
491
#pragma once #include "Utils.h" #include <SFML/Graphics.hpp> #include "../../../library/src/header/LoadImage.h" #include "player/MainCharacter.h" #include "game/GameMap.h" using namespace sf; class App { #define WindowX 800 #define WindowY 500 public: App() { mLoadImage = new LoadImage(); c...
eventN
492
#pragma once #include <async/completes_synchronously.hpp> #include <async/completion_tags.hpp> #include <async/compose.hpp> #include <async/concepts.hpp> #include <async/debug.hpp> #include <async/env.hpp> #include <async/schedulers/get_expiration.hpp> #include <async/schedulers/timer_manager_interface.hpp> #include <...
dur
493
#include "connection.h" unsigned int Connection::counter = 0; Connection::Connection(int descriptor, QObject *parent) : QTcpSocket(parent), key(0), descriptor(descriptor)/*, socket(tcpSocket)*/ { /* First we havet to set the descriptor for socket. * It is very important because we are reaching to socketE...
hash
494
#include <iostream> #include <iomanip> #include <ctime> #include <cstdlib> #include <stdlib.h> #include <cstring> using namespace std; int boardsize = 6; char temp[11][10]; void WelcomeMessage() { // show welcome message cout << "________ __________.__ __ ________ ...
dbcount
495
#ifndef COSTMAP_TOOLS_H_ #define COSTMAP_TOOLS_H_ #include <costmap_2d/costmap_2d.h> #include <geometry_msgs/PointStamped.h> #include <geometry_msgs/PolygonStamped.h> #include <ros/ros.h> namespace frontier_exploration { /** * @brief Determine 4-connected neighbourhood of an input cell, checking for map edg...
bfs
496
// Copyright (c) 2016-2017 Anyar, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
direction
497
// SPDX-FileCopyrightText: 2023 <NAME> <<EMAIL>> // SPDX-License-Identifier: Apache-2.0 #include <chrono> #include <iostream> #include <memory> #include <utility> #include <yaml-cpp/yaml.h> #include "ament_index_cpp/get_package_share_directory.hpp" #include "rclcpp/node_impl.hpp" #include "rclcpp/rclcpp.hpp" #includ...
unsub_topics
498
#include <windows.h> #include <tlhelp32.h> #include <iostream> #include <string> DWORD GetProcessIdByName(const std::wstring& processName) { DWORD processId = 0; HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if (snapshot == INVALID_HANDLE_VALUE) { std::wcerr << L"Fehler beim E...
targetAddress
499
/*All right reserved © copyrighted code by bytecoders. Complied by Nirmalram @ Pineapplem3 Inc. * the code is open source you can make any changes according to your wish. This code only for * educational purpose. copying of this code in any means is strictly prohibited without prior * permission of developers. * ...
originalrs