id
stringlengths
1
3
code_masked
stringlengths
783
188k
target
stringlengths
3
27
300
#include "bootloader.h" using namespace bootloader::architecture; namespace bootloader { void Bootloader::run() { m_metadataInterface.init(); size_t [MASK] = selectImageSlot(); // Update Metadata const GlobalImageMetadata* globalImageMetadata = m_metadataInterface.getGlobalImageMetadata(); m_me...
selectedImage
301
#include <iostream> #include <string> #include "gms_matcher.h" #include "ORB_modify.h" #include "ORBextractor.h" #include <opencv2/opencv.hpp> #include "opencv2/imgcodecs/legacy/constants_c.h" using namespace std; using namespace cv; //extern double ORBextractor::ORBextractorDescriptorsTime; //计算均匀度Uniformity double...
matched_pts3
302
#include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include <iostream> #include "map.h" #include <sstream> using namespace sf; using namespace std; float offsetX = 0, offsetY = 0; String TileMap[HEIGHT_MAP]; class PLAYER { public: short countApple = 0; float dx, dy; FloatRect coordinate, firstCoordinateTp, s...
textBackToMainMenu
303
#include <Arduino.h> #include <LoRa.h> #include <WiFi.h> #include <HTTPClient.h> #include <Firebase_ESP_Client.h> #include <PubSubClient.h> #include <config.h> #define LORA_SS 18 #define LORA_RST 14 #define LORA_DI0 26 #define BAND 915E6 const char* mqttServer = "demo.thingsboard.io"; WiFiClient espClient; PubSubCli...
mockAxisZ
304
const int buttonPin1 = 4; const int buttonPin2 = 5; const int buttonPin3 = 6; const int buttonPin4 = 7; // Button states and debounce variables for Button1 and Button2 int buttonState1 = 0; int lastButtonState1 = 0; int buttonState2 = 0; int lastButtonState2 = 0; unsigned long lastDebounceTime1 = 0; unsigned lo...
reading2
305
// compiler parameter: g++ -O4 name.cpp -lgmpxx -lgmp -pthread -std=c++11 #include <math.h> #include <iostream> #include <ctime> #include <vector> #include <string> #include <iostream> #include <gmpxx.h> #include <fstream> #include <algorithm> #include <stdio.h> #include <thread> #include <future> using namespace std;...
potolok
306
/* Copyright 2011 <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 wr...
attributeName
307
#include "IO.h" #include <fstream> namespace { auto isFinite(glm::vec3 v) -> bool { return std::isfinite(v.x) || std::isfinite(v.y) || std::isfinite(v.z); } auto isFinite(const Triangle& t) -> bool { return isFinite(t[0]) || isFinite(t[1]) || isFinite(t[2]); } } void saveTriangles(std::filesystem::path path...
attributeCount
308
#ifdef _WIN32 # include <io.h> # include <winsock2.h> # include <ws2tcpip.h> # pragma comment(lib, "ws2_32.lib") # include "stdint_msvc.h" #else # define _BSD_SOURCE 1 # define _DEFAULT_SOURCE 1 # include <sys/socket.h> # include <netinet/in.h> # include <netdb.h> # include <unistd.h> # include <sys/mman.h>...
initial_files_capacity
309
/** * Eggs.SQLite <eggs/sqlite/error.hpp> * * Copyright <NAME>, Fusion Fenix 2012 * * 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) * * Library home page: http://github.com/eggs-cpp/eggs-sqlite */ #ifndef...
category_instance
310
#include <DHT.h> #include <PubSubClient.h> #include <ESP8266WiFi.h> // Replace these with your WiFi and MQTT credentials const char* ssid = "Seline"; const char* password = "<PASSWORD>"; const char* mqtt_server = "172.16.31.10"; const int mqtt_port = 1883; const char* mqtt_topic_temperature = "DT/temperature"; const ...
gasValue
311
#include "donewdialog.h" #include "ui_donewdialog.h" DoNewDialog::DoNewDialog(QWidget *parent) : QDialog(parent), ui(new Ui::DoNewDialog) { ui->setupUi(this); backColor=Qt::white; } DoNewDialog::~DoNewDialog() { delete ui; } double DoNewDialog::getWidth() { return ui->widthSpinBox->text().toD...
newColor
312
// // Created by 李卫东 on 2019-02-18. // #include <boost/filesystem/operations.hpp> #include <boost/filesystem/path.hpp> #include "appbase/application.hpp" #include "hb/log_plugin/log_plugin.h" #include "hb/qdii_monitor_plugin/qdii_monitor_plugin.h" using namespace appbase; using namespace hb::plugin; int main(int arg...
exePath
313
#include "PlayerController_InGame.h" #include "EnhancedInputSubsystems.h" #include "EnhancedInputComponent.h" #include "Logging/LogMacros.h" DEFINE_LOG_CATEGORY(TEST); APlayerController_InGame::APlayerController_InGame() { } void APlayerController_InGame::BeginPlay() { Super::BeginPlay(); FInputModeGameOn...
Delta
314
#include <bits/stdc++.h> using namespace std; /************************************************************************************************************* * * Link : https://practice.geeksforgeeks.org/problems/max-rectangle/1 * Description: * Given a binary matrix....
max_area
315
#include <iostream> #include <vector> #include <spdlog/spdlog.h> #include <fmt/format.h> #include <docopt/docopt.h> #include <imgui.h> #include <imgui-SFML.h> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/System/Clock.hpp> #include <SFML/Window/Event.hpp> #include <SFML/Graphics/CircleShape.hpp> #include ...
deltaClock
316
#include "AppComponent.hpp" #include "DatabaseComponent.hpp" #include "ServiceComponent.hpp" #include "controller/PasteController.hpp" #include "oatpp/network/Server.hpp" #include <iostream> void run(const oatpp::base::CommandLineArguments &args) { AppComponent appComponent(args); ServiceComponent [MASK] ; ...
serviceComponent
317
#include "GameLayer.h" #include "Hero.h" #include "PlaneEnemy.h" #include "CombatManager.h" #include "Bullet.h" GameLayer::GameLayer() : m_pHero(NULL), m_nKeyPressed(0), m_bIsPressed(false), m_nbgSpeed(1) { } GameLayer::~GameLayer() { } bool GameLayer::init() { if (!Layer::init()) { retur...
heroSize
318
//===-- ARMBaseInstrInfo.cpp - ARM Instruction Information ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
DefOpc
319
/* * File: Game.cpp * Author: <NAME> * * Created on November 26, 2017, 1:59 PM * Purpose: Game Class Implementation */ #include "Game.h" #include <fcntl.h> // File descriptor manipulator //Constructor Game::Game() { base.size = 20; base.x = base.size / 2; base.y = base.size /...
beg
320
#include <arrow/api.h> #include <arrow/ipc/api.h> #include <arrow/io/api.h> #include <fletcher/api.h> #include <fletcher/common.h> #include <malloc.h> #include <unistd.h> #include <memory> #include <iostream> #include <bitset> #define AFU_GUID "3d5ee416-6f30-42d1-8109-a453b5b8e29d"; #ifdef NDEBUG #define PLATFORM "...
input_batch
321
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; using ll = long long; int main(){ int [MASK] = 0; string s1, s2, s3; while(cin >> s1 >> s2 >> s3){ vector <int> value_1(52); vector <int> value_2(52); vector <int> value_3(52); ...
ans
322
#include "Board.h" #include "board_def.h" #include "make_ref.h" #include <cassert> #include <osg/ShapeDrawable> #include <osg/Geode> #include <osg/MatrixTransform> #include <osg/Fog> #include <osg/Geometry> #include <osg/ShadeModel> #include <osg/Material> #include <osg/Texture2D> #include <osg/TexEnv> #include <osgDB...
RootSizeX
323
/* * Copyright 2023 Babit Authors * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This file is distr...
read_samples
324
#include "rest_client_test.h" #include <QtTest/QtTest> #include <QDebug> #include <QFuture> #include <QtConcurrent> #include <QList> RestClientTest::RestClientTest() { } void RestClientTest::initTestCase() { } void RestClientTest::testSingleThreadWork() { QEventLoop loop; HttpRequestInput* request = new Ht...
threadCount
325
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <vector> #include <set> #include <algorithm> #include <random> namespace py = pybind11; std::vector<std::vector<int>> generate_negative_samples(const std::vector<std::vector<int>>& edge_index, co...
adj_list
326
#include <iostream> #include <fstream> #include <stdio.h> #include <cstdlib> #include <deque> #include <iostream> #include <deque> #include <algorithm> #include <queue> using namespace std; int R,C,F,N,B,T; int dist(int x1,int y1,int x2,int y2){ return abs(x1-x2)+abs(y1-y2); } class ride { public: int a,b,x,y,s,f...
total
327
#include "fat.hpp" #include <cstring> #include <locale> namespace fat { BPB *boot_volume_image; unsigned long bytes_per_cluster; void Initialize(void *volume_image) { boot_volume_image = reinterpret_cast<fat::BPB *>(volume_image); bytes_per_cluster = static_cast<unsigned long>(boot_vo...
fat_offset
328
#pragma once #include <HardwareSerial.h> #include <Arduino.h> #include <BLEServer.h> #include <BLEService.h> #include <BLEUtils.h> #include <forward_list> #include "usfl.h" #include "configuration.h" #include "ByteData.hpp" struct BTServerCallbacks { virtual void onWriteMode(unsigned int mode); virtual void ...
instance
329
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tensors
330
#include <Arduino.h> #include <Wire.h> #include <SoftwareSerial.h> #include <MeMCore.h> #define MOVE_FORWARD 1 #define MOVE_LEFT 2 #define MOVE_RIGHT 3 #define MOVE_REVERSE 4 #define MOVE_DANCE 7 #define MOVE_STAR_WARS 8 #define MOVE_STOP 6 #define SLOW_SPEED 100 #define DEFAULT_SPEED 200 //Definition of the notes' ...
command
331
#include <iostream> #include <string> #include "person.hpp" using namespace LCppIYM; bool Person::isValidName(std::string name) { return name.size() > 0 && name.find(" ") == std::string::npos; } Person::Person(std::string fname, std::string lname) { if (! Person::isValidName(fname)) throw std::runtime_error("...
quote
332
#include "box.hh" #include "debug.hh" #include "keyboard.hh" namespace Box { Box::Box() { if (tb_init() < 0) { exit(1); } this->Clear(); } Box::~Box() { tb_shutdown(); } void Box::SetClearAttributes(color_t fg, color_t bg) { tb_set_clear_attributes(fg, bg); } void Box::Clear() { tb_clear(); } vo...
timeout
333
/* Copyright 2022 Total Pave 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 law or agreed ...
childDepth
334
#include <algorithm> #include <assert.h> #include <chrono> #include <fstream> #include <functional> #include <iostream> #include <limits> #include <mpi.h> #include <omp.h> #include <random> #include <vector> #ifndef ITER_MAX #define ITER_MAX 5000 #endif // Communicator for a Pair of rank // Useful for measuring Bi-So...
mpi_errors
335
#include <array> #include <cassert> #include <cstdint> #include <iostream> #include <vector> #include <SDL.h> #include <SDL_image.h> #include "glad/glad.h" static const std::array<float, 16> s_vertices = { -0.5f, -0.5f, 0.0f, 0.0f, // Bottom left -0.5f, 0.5f, 0.0f, 1.0f, // Top left 0.5f, -0.5f, 1.0f, ...
vertex_buffer
336
#include <iostream> #include <cstddef> #include <cstring> #include <string_view> #include <cassert> #include <iomanip> #define FUSE_USE_VERSION 31 #include <fuse.h> #include "ini.cc" using namespace std::string_view_literals; static struct options { char const* ini_filename; int show_help; } options; #define OPT...
d_split
337
#include <stdio.h> #include <string.h> #include "windows.h" #include <time.h> #include <array> #include <cstdint> #include <cstdio> #include <cstring> #include <ctime> #include <format> #include <iostream> #include <random> #include <string> #include <thread> #include <vector> #include <sstream> #include <sys/timeb.h> ...
words
338
template <typename T> inline g2d::animation::bazier<T>::bazier() : _running(false) , _time(0) , _node(0) , _speed(0.001) , _vector(std::vector<g2d::math::point3d<T>>()) { } template <typename T> inline g2d::animation::bazier<T>::~bazier() { this->_vector.clear(); } template <typename T> inline void g2d::animati...
muk
339
#include <Wire.h> #include <DS3231.h> #include <Adafruit_NeoPixel.h> #include <avr/power.h> // pins for leds #define PIN_SWITCH 4 #define PIN_PIXELS 6 #define PIN_SWITCH_PULL_UP 7 #define NUMPIXELS 6 #define PIN_LATCH 11 #define PIN_CLOCK 12 #define PIN_DATA 10 // ...
GotString
340
#include "floor_object_detection.h" #include <iostream> #include <cstdlib> #include <memory> #include <vector> #include <android/log.h> #include <assert.h> #include <jni.h> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/hi...
max_threshold
341
#include "ContentReader.hpp" ContentReader::ContentReader( ContentSettings& contentSetting ){ contentInit(std::forward<ContentSettings>(contentSetting)); } ContentReader::ContentReader( ContentSettings&& contentSetting ){ contentInit(std::forward<ContentSettings>(contentSetting)); } void ContentReade...
new_pos
342
#include "json_helper.hpp" cJSON* root = 0; /** * @brief 文本转键值对 * * @param name 文本 * @param mod 功能键 * @param vk 按键 * @return true * @return false **/ bool string2key (string name, char& mod, char& vk) { int mod_pos[3] = { -1, -1, -1, }; int [MASK] = -1; mod = 0; vk = 0; /* 转大写 */ fo...
vk_pos
343
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, <NAME...
enclosingChar
344
/** * In this demo we use TCP/IP to communicate. This is a little bit more difficult then the other demos because we need to * setup up a server that is managing the connections first before we get the a Client - which is the Stream that we need to * use in our SimpleMavlinkDrone. */ #include "WiFi.h" // ESP32...
client
345
#include "rmw_wasm_cpp/rmw_wasm_validation.hpp" #include "rmw/types.h" #include "rmw/validate_full_topic_name.h" #include "rmw/error_handling.h" #include "rcutils/error_handling.h" #include "rcutils/logging_macros.h" #include "rosidl_runtime_c/message_type_support_struct.h" #include "rosidl_runtime_c/service_type_su...
validation_result
346
#include <stdarg.h> #define LIGHTS_SIZE 20 #define GROUPS_SIZE 5 #define PHASE_HIGH_AMBIENT_LIGHT 0 #define PHASE_MEDIUM_AMBIENT_LIGHT 1 #define PHASE_LOW_AMBIENT_LIGHT 2 void p(char *fmt, ... ) { char tmp[128]; va_list args; va_start(args, fmt); vsnprintf(tmp, 128, fmt, args); va_end(args); S...
any_lit
347
// // Created by david on 5/18/2016. // // Copyright <NAME> 2016 - 2020. // 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 IPASS_NFC_H #define IPASS_NFC_H #ifndef HWLIB_H #ifndef _SPI...
length
348
// // MakeMacRom - Helps build a custom ROM file for an emulated 68k Mac // // Written in 2017 by <NAME> <<EMAIL>> // // To the extent possible under law, the author(s) have dedicated all copyright // and related and neighboring rights to this software to the public domain // worldwide. This software is distributed wi...
numBytes
349
#include <iostream> #include <iomanip> #include <string> #include <openssl/conf.h> #include <openssl/evp.h> #include <openssl/err.h> #include <openssl/aes.h> void handleErrors(void) { ERR_print_errors_fp(stderr); abort(); } int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *k...
input
350
// #include <iostream> // #include <fstream> // #include <string.h> // #include <unistd.h> // #include <sys/stat.h> // #include <dirent.h> // #include <ctime> // #include <cstdlib> // #include <random> // #include <math.h> // #include <iostream> // #include <set> // #include <map> // #include <string> // #include <algo...
extractLine
351
// src/Bird.cpp #include "../include/Bird.h" Bird::Bird(const float startX, const float startY, const float birdSpeed, const std::vector<Texture2D>& frames) : position({startX, startY}), speed(birdSpeed), collisionRect({startX, startY, 30, 20}), flyFrames(frames), currentFrame(0), fra...
newSpeed
352
#include "Paystation.h" #include <sstream> Paystation::Paystation(PayStrategy *ps, std::string ap) { state_ = new PaystationState{0, 0}; pay_strategy_ = ps; pin_ = ap; } int Paystation::insertCoin(const int &coin) { switch (coin) { case 1: case 5: case 10: case 25: case 100: state_->balance += c...
old
353
#include "NN.h" NN::NN(const int a, const int b, const int c): NumOfInputNodes(a), NumOfHiddenNodes(b), NumOfOutputNodes(c), weightsIH(new Matrix(NumOfHiddenNodes, NumOfInputNodes)), weightsHO(new Matrix(NumOfOutputNodes, NumOfHiddenNodes)), biasH(new Matrix(NumOfHiddenNodes, 1)), biasO(new Matrix(NumOfOutputNodes, 1...
hiddenTranpose
354
#include <iostream> // The lexer returns tokens [0-255] if it is an unknown character, otherwise one // of these for known things. enum Token { tok_eof = -1, // EOF tok_def = -2, // Function definition ("def") tok_extern = -3, // External prototype definition ("extern") tok_identifier = -4, // String identifi...
currChar
355
/*************************************************** This is an example for the AHT10 Humidity & Temp Sensor Designed specifically to work with the AHT10, modified using library from: Source: https://github.com/enjoyneering/ These displays use I2C to communicate, 2 pins are required to interface **********...
rel_hum
356
// // 2017 writen by <EMAIL> // #include "node_binder/base/message_pump_node.h" #include <algorithm> #include <set> #include "base/lazy_instance.h" #include "base/logging.h" #include "base/threading/thread_local.h" #include "node/uv.h" #include "base/debug/stack_trace.h" namespace base { namespace { base::LazyIns...
flags
357
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int diagSum(int n, vector<vector<int>> a){ int [MASK] = 0; int sum_secdry = 0; for (int i = 0; i < n; i++){ for (int j = 0; j < n; j++){ if (i == j){ [M...
sum_prmry
358
// <NAME> - <EMAIL> #include <iostream> #include "Tas.h" #include "At.h" using namespace std; At::At(takim renk, int x, int y): Tas(renk, "At", x, y){} bool At::yolKntrl(vector<Tas*> taslar, pair <int, int> [MASK] ){ // Gittigi yerde tas olma : for(int i = 0; i < taslar.size(); i++){ ...
gidilecekyer
359
#include "InputHelper.h" static const char* styleNames[] = { "Pro Controller", "Joy-Con controller in handheld mode", "Joy-Con controller in dual mode", "Joy-Con left controller in single mode", "Joy-Con right controller in single mode", "GameCube controller", "Poké Ball Plus controller", ...
index
360
#include <signal.h> #include <cstring> #include <iostream> #include <memory> #include <string> #include "FreeRTOS.h" #include "boost/program_options.hpp" #include "bootloader/core/message_handler.h" #include "bootloader/core/node_id.h" #include "can/core/ids.hpp" #include "can/simlib/sim_canbus.hpp" #include "common/...
handle_message_return
361
#include <SFML/Graphics.hpp> #include <iostream> #include <fstream> #include <sstream> struct RGB { public: int red; int green; int blue; public: RGB() = default; RGB(int r, int g, int b) : red(r), green(g), blue(b) {} ~RGB() {} }; class AShape { public: sf::Shape* shape; st...
windowElements
362
//-------------------------------------- // File: QueueClass.h // Class Queue // Functions: //// queue() : CDLList() {}; // queue(listelem* hd, listelem* tl, unsigned size) : // CDLLList(hd, tl, size) {}; // queue(const queue& qu) : CDLList(qu) {}; // queue(iterator b, iterator e) : CDLList(b, e) {}; ...
qsize
363
#include "string_util.h" #include <stdio.h> void string_util::vector2str(const std::vector<std::string>& vec, std::string& desc, const std::string& seq) { if (vec.size() <= 0) return; auto iter = vec.begin(); if (iter != vec.end()) { desc.append(*iter); ++iter; } while (iter != ve...
seq_s
364
#include <emscripten.h> #include <GDX/gdx2d/gdx2d.h> class Gdx { // Emscripten webidl don't support binding methods without a class so we need to create a wrapper public: static void* g2d_get_pixels(const gdx2d_pixmap* pixmap) { return (void*)pixmap->pixels; } static gdx2d_pixmap* g2d_load(void...
src_width
365
// Implementation of the acquisition module. It uses the ADC/DMA // interrupts to process the ADC sampling. // TODO: convert const naming style to kCammelCase. #include "acquisition.h" #include <stdio.h> #include <string.h> #include "filters.h" #include "hal/adc.h" #include "hal/dma.h" #include "hal/gpio.h" namesp...
bucket_index
366
#include <Arduino.h> #include <ArduinoJson.h> #include <ESP8266WiFi.h> #include <WiFiClientSecure.h> /* 1. Set up your firebase project, enable authentication through Google 2. Create a Oauth2.0-Client-ID in developers console and copy Client-ID and Client-Secret into this sketch. 3. Replace "<your_client_id>" in this...
sendTime
367
#include <iostream.h> #include <conio.h> #include <fstream.h> #include <time.h> #include <stdio.h> #include <dir.h> void setDarkBlueColor() { textcolor(RED); textbackground(BLUE); } void resetColor() { textcolor(RED); textbackground(BLUE); } void displayMenu() { clrscr(); s...
outputFile
368
#include "connectdialog.h" #include "ui_connectdialog.h" #include <QSignalMapper> #include <QString> ConnectDialog::ConnectDialog(QWidget *parent) : QDialog(parent), ui(new Ui::ConnectDialog) { ui->setupUi(this); QSignalMapper *mapper = new QSignalMapper(this); for(int i=0; i<10; i++){ QPu...
temp
369
#include "encoder_funcs.hpp" #include <Arduino.h> namespace enc_f { // Teensy has its own version of pi in its libraries. // const int PI = numbers::pi_v; /** * @brief Get ticks elapsed from an encoder read * * @param e Encoder object to read * @param d Time to read encoder * @retu...
in_speed
370
// // Created by zheng on 2020/4/8. // #include <unistd.h> #include <netdb.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <sys/socket.h> #include <arpa/inet.h> #include <cassert> #include "SocketClient.h" #define SA struct sockaddr SocketClient::SocketClient(char *addr, int port) { int ret; ...
servaddr
371
#pragma once #include <string> #include <fstream> #include <sstream> #include <regex> #include <vector> #include <unordered_set> #include <filesystem> #include "Logger.h" #include "Utility.h" #include "Signature.h" namespace _gem { class File { public: File(std::filesystem::path path, std::string source) : p...
toSearchInclude
372
/* * @lc app=leetcode id=119 lang=cpp * * [119] Pascal's Triangle II * * https://leetcode.com/problems/pascals-triangle-ii/description/ * * algorithms * Easy (48.78%) * Likes: 987 * Dislikes: 201 * Total Accepted: 316.3K * Total Submissions: 626.2K * Testcase Example: '3' * * Given a non-negative ...
rowIndex
373
#include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <netinet/in.h> #include <arpa/inet.h> bool g_continue = true; int sighandler(int [MASK] ) { (void) [MASK] ; g_continue = false; return 1; } void fatal(const char* msg...
signum
374
#pragma once #ifdef _WIN32 #include "Core/Platform/Windows/WindowsHandles.h" #include "Core/Graphics/GraphicsRenderer.h" #include "DX12_Handles.h" #include <vector> #ifdef new #pragma push_macro("new") #undef new #endif #pragma warning( push ) #pragma warning( disable : 4244 ) // conversion from 'wchar_t' to 'c...
cpuDesc
375
//Written by <NAME> and <NAME> //Created on January 16 at 9:40am PST //This program has a handful of fun short games to play #include <algorithm> #include <cstdlib> #include <ctime> #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <random> #include <string> #include <vector> us...
numberOfTeams
376
// // Created by  <NAME> on 22.10.2024. // #include <iostream> #include <fstream> #include "magma.hpp" using namespace std; int main(int argc, const char *argv[]) { ifstream envs("../.env"); if (!envs.is_open()) { cout << "Error opening envs file" << endl; } auto *key_name = new char[4]; auto *key = new...
dec_file
377
#include "ContentBrowserPanel.h" #include "Mirage/Definitions/FileExtensions.h" #include "Mirage/Definitions/DragnDropPayloads.h" #include "Mirage/Definitions/Icons.h" #include "ImGui/imgui.h" #include "ImGui/imgui_internal.h" #include "Mirage/Core/Log.h" #include "Mirage/Core/Time.h" #include "Mirage/ImGui/Extension...
columnCount
378
#include <torch/extension.h> #include <iostream> #include <queue> #include <unordered_map> #include <unordered_set> #include <vector> std::pair<torch::Tensor, torch::Tensor> select_by_index( const torch::Tensor &vertices, const torch::Tensor &triangles, const std::vector<int64_t> &vertex_indic...
cpu_triangles
379
#include "AdresatMenedzer.h" Adresat AdresatMenedzer::podajDaneNowegoAdresata() { Adresat adresat; if (plikZAdresatami.pobierzIdOstatniegoAdresata() == 0 && plikZAdresatami.pobierzIdUsunietegoAdresata() == 0) { adresat.ustawId(1); } else if (plikZAdresatami.pobierzIdUsunietegoAdresata() == plikZAd...
tekst
380
#include <algorithm> #include <iostream> #include <vector> std::vector<std::vector<unsigned int>> matrixMult2D(const std::vector<std::vector<unsigned int>>& A, const std::vector<std::vector<unsigned int>>& B) { // Check if the matrices have compatible dimensions if (A[0].size() != B.size()) { return {}; } ...
fibn_basis
381
// ====================================================================== // \title Main.cpp // \brief main program for the F' application. // // ====================================================================== // Used to access topology functions #include <BaremetalReference/Top/BaremetalReferenceTopologyAc.hpp...
inputs
382
#include <iostream> #include <fstream> #include <string> #include <vector> #include <algorithm> std::vector<std::string> ip_adress(const std::string& ip_str) { std::vector<std::string> ip; size_t start = 0; size_t end = ip_str.find('.'); while (end != std::string::npos) { ip.push_back(ip_str.s...
comp
383
#include "pcbm.h" /************************************************************************************************ * PCBMotor::PCBMotor * ************************************************************************************************/ PCBMo...
c_vec
384
#include <iostream> #include <vector> #include <array> #include <chrono> #include <random> #include <algorithm> #include "stopwatch.h" std::uniform_int_distribution<unsigned> ud; std::default_random_engine re{ static_cast<unsigned>(std::chrono::steady_clock::now().time_since_epoch().count()) }; template<type...
iters
385
#include "MyDatatables.h" /************************************************ * @brief My Datatables Constructor. * MyDatatables ***********************************************/ MyDatatables::MyDatatables(MyLanguageModel *thisLanguageModel, MyConstants *thisConstant, QObject *parent) : QObject(parent), myLanguageMode...
thisState
386
#include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <nav_msgs/Odometry.h> int main(int argc, char** argv){ ros::init(argc, argv, "odometry_publisher"); ros::NodeHandle n; ros::Publisher odom_pub = n.advertise<nav_msgs::Odometry>("odom", 50); tf::TransformBroadcaster odom_broadcaster; // ...
vth
387
#include "recast-sys/include/detour.h" #include "recast-sys/src/lib.rs.h" std::unique_ptr<dtNavMesh> newDtNavMesh() { return std::make_unique<dtNavMesh>(); } std::unique_ptr<dtNavMeshQuery> newDtNavMeshQuery() { return std::make_unique<dtNavMeshQuery>(); } std::unique_ptr<dtQueryFilter> newDtQueryFilter() {...
dtParams
388
/** Copyright 2024 Sil3ntStorm https://github.com/sil3ntstorm 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 ag...
fs_count
389
// Copyright 2016 <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 // // Unless required by applicable law...
radians
390
/* Copyright 2015 Concurrent Computer Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
timeo
391
#include <iostream> #include "../include/ptx_builder.h" // Build a simple AXPY kernel using the PTX builder API. // The kernel performs: y = a * x + y for a single element. // This example generates PTX text and prints it to stdout. std::string build_axpy_kernel() { using namespace ptx; Builder b; Reg rA(...
oss
392
#ifndef _ADX_NET_H_ #define _ADX_NET_H_ #include "net.h" #include "util.h" #include "message_types.h" #include <map> #define SELLER_IDX 0 #define ALL_BIDDERS -1 // Macro that simplifies writing read_cb() functions #define PROCESS_REQ(type_name) \ do { \ type_name req; \ ret = parse_message(data, &req); \ ...
send_data
393
/* Copyright Acrolinx GmbH */ // CheckOptions.cpp : Implementation of CCheckOptions #include "stdafx.h" #include "CheckOptions.h" // CCheckOptions using namespace Acrolinx_Sdk_Sidebar_Util; STDMETHODIMP CCheckOptions::GetSelection(VARIANT_BOOL* selection) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); ACRO...
retVal
394
#include"misc.h" /* for version-control appl'n: binary to hex.. .. ideally would use stdin instead of file for version control: generate hexdiffs so we don't lose any special characters, etc. */ int main(int argc, char ** argv){ str fn; str fnf_fn("./.b2h"); str fnf_fnp(fnf_fn + str("p")); unsigned...
f_s
395
/* * Copyright (C) 2024 Microchip Technology Inc. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __MAINWIN_H__ #define __MAINWIN_H__ #include <egt/ui> #include <egt/window.h> #include "version.h" #include "libconfig.h++" #include "libuboot.h" using namespace std; using namespace egt; us...
countdown
396
#include "GameChat.h" #include "Hooks.h" #include "Debug.h" void (__fastcall *addrChatHandler)(void *This, int EDX, void *MsgObject); void (__fastcall *origChatHandler)(void *This, int EDX, void *MsgObject); const char *getMessage(DWORD This) { return *(const char **) (This + 20); } const char *getFrom(DWORD This...
msgs
397
#ifndef DEBUG_HPP #define DEBUG_HPP #include <stdio.h> #include <stdarg.h> #include <sys/time.h> #include <assert.h> #include <random> #define rand() better_rand() std::mt19937_64 _rand_gen(0); int better_rand() { static std::uniform_int_distribution<int> dist{0, std::numeric_limits<int>::max()}; return dist(_ra...
args
398
/* * gCanvas.cpp * * Edited on : 16.02.2023 * Author: <NAME> */ #include "gCanvas.h" gCanvas::gCanvas(gApp* root) : gBaseCanvas(root) { this->root = root; } gCanvas::~gCanvas() { gBulletObj->clean(); } void gCanvas::setup() { gBulletObj = new gipBulletPhysics(gipBulletPhysics::WORLDCOORDINATETYPE::WORL...
pointb
399
#include <sstream> #include "communication_exception.h" CommunicationException::CommunicationException(const std::string message, const int result_code, const char *file_name, c...
oss