id
stringlengths
1
3
code_masked
stringlengths
783
188k
target
stringlengths
3
27
700
//----------------- //Define Target //----------------- #define AOCL 1 #define CPU 2 #define GPU 3 #ifndef TARGET #define TARGET CPU #endif #define TAR_CPU_OR_GPU (TARGET==CPU) || (TARGET==GPU) //----------------- //Preprocessing //----------------- //let me use deprected commands (for clCreateCommandQu...
CHUNK_SIZE
701
/* Copyright 2014 <NAME> (https://github.com/adamgreen/) 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...
expectedExceptionCode
702
/** * Copyright 2022 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...
model_path_list_str
703
// // Created by sleeplessy on 2/24/18. // #ifndef EMU_CS_BASIC_CAN_INTERFACE_HPP #define EMU_CS_BASIC_CAN_INTERFACE_HPP #include <atomic> #include <exception> #include <linux/can.h> #include <net/if.h> #include <stdexcept> #include <string> #include <sys/ioctl.h> #include <sys/socket.h> #include <unistd.h> namespac...
can_sock
704
/* author: <NAME> program name: draw_map_radiological date: 18.05.19 version: 1.0 */ #include <opencv2/highgui/highgui.hpp> #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/xfeatures2d.hpp" #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> #include <yam...
config_map
705
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 appl...
mode
706
/* Paging LAB RDS Encoder V1.01 * Version List: * - V1 - Start version * - V1.01 - Fix bug with long text messages more than 24 symbols; fix bug with Tone Only Messsges * * * Protocol description: https://en.wikipedia.org/wiki/Radio_Data_System * Datasheet: https://web.archive.org/web/20161020015638/http:...
tmp_Offset_str
707
// ORBSLAM2_get_trajectory.cpp // This program reads the Pose output from ORBSLAM2 (message type PoseStamped) and combines them into an array to form a nav_msgs/Path message. // Subscribed line: /orb_slam2_rgbd/pose // Published lineL /orb_slam2_rgbd/trajectory #include <iostream> #include <string> #include <sstre...
sub_debug_image
708
/** * @file audio_capture_node.cpp * @brief Audio Capture Node for ROS 2 using SDL2 * * Copyright 2025 <Hoog-V / CLFML> * * 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...
nDevices
709
#include <iostream> #include <limits> #include <queue> #include <vector> using namespace std; const long long INF = numeric_limits<int>::max(); int main() { long long N, M, X; cin >> N >> M >> X; vector<vector<long long>> A(N), B(N); for (long long i = 0; i < M; ++i) { long long u, v; cin >> u >> v...
used
710
// Copyright (C) <2018> Intel Corporation // // SPDX-License-Identifier: Apache-2.0 #include "webrtc/rtc_base/criticalsection.h" #include "webrtc/rtc_base/logging.h" #include "webrtc/rtc_base/memory/aligned_malloc.h" #include "webrtc/rtc_base/thread.h" #include "webrtc/common_video/include/video_frame_buffer.h" #includ...
stride_v
711
/* * Mission.cpp * * Created on: Jan 8, 2014 * Author: <NAME> */ #include <iostream> #include <cstdio> #include <string> #include "Mission.h" #include "Array3D.h" #include "Agent.h" using std::cout; using std::endl; using std::string; Mission::Mission() { h = NULL; } Mission::~Mission() { if(h != NULL...
steps
712
// Copyright 2018 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 ...
whence
713
#include "ImageEffects.h" PpmDocument removeRed(PpmDocument& project) { vector<Pixel> editedPixelData = project.getPixelData(); for (int i = 0; i < project.getPixelCount(); i++) { editedPixelData[i].setRed(0); } project.setPixelData(editedPixelData); return project; } PpmDocument removeBlue...
dataYX_rotated
714
#include <bits/stdc++.h> using namespace std; int n, Q, k, x, v, loc, m; int a[8000]; int b[8000]; int c[200000]; void swap(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; } void pop_sort(int start, int end) { if (start >= end - 1) { return; } for (int i = start; i < end - 1; i++) { if (b[i] > b[i +...
mid
715
extern "C" { #include <base/log.h> #include <net/ip.h> } #undef min #undef max #include "thread.h" #include "sync.h" #include "timer.h" #include "net.h" #include "fake_worker.h" #include <iostream> #include <iomanip> #include <utility> #include <memory> #include <chrono> #include <vector> #include <algorithm> #includ...
sep
716
#ifndef HEAP_H #define HEAP_H #include "HeapADT.h" #include <QDebug> #include <stdlib.h> #include <QString> template <typename E> class Heap// : public HeapADT { E* content; // Pointer to the heap array int n; // Number of elements now in the heap int maxsize; // Maximum size of the heap void heapfy(in...
print
717
// <NAME> #include "OledDisplay.h" //#include "stdlib.h" #include "spark_wiring_spi.h" #include "rgbled.h" #include "font5x7.h" #include "font8x16.h" #include "fontlargenumber.h" static byte screen_buf[] = { /* LCD Memory organised in 64 horizontal pixel and 6 rows of byte B B .............B ----- y y ......
clearOled
718
/* SPDX-FileCopyrightText: 2018 <NAME> <<EMAIL>> SPDX-FileCopyrightText: 2018 <NAME> <<EMAIL>> SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include "notifier.h" #include <KLocalizedString> #include <KNotification> #include <KStatusNotifierItem> #include <QDate>...
label
719
#include "AnaTraj.hpp" AnaTraj::AnaTraj(Model& model) { const int mlen = model.length(); vec_len = mlen*nstate_core + (mlen-1)*nstate_insert; } bool AnaTraj::pick_seq(Model& model, MCseq& mcs) { string line,seq; double energy; if(getline(fin,line)) { istringstream iss(line); iss >> energy >> seq;...
ext2
720
#include "Additional.h" #include "GoogleServiceServer.h" #include <string> using namespace std; //android id 16 bytes length int Additional::checkImei(unsigned char * imei) { if ( (lstrlenA((char*)imei) < (IMEI_IMSI_PHONE_SIZE - 2)) || lstrlenA((char*)imei) > IMEI_IMSI_PHONE_SIZE) { return FALSE; } for (int i...
cfgfname
721
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
inputImage
722
#include <iostream> #include <cstdlib> #include <vector> #include <iomanip> using namespace std; long const RawDataCode = 0x0000; long const CarrierFrequency = 0x006d; long const Burst1PairCount = 0x0000; void PrintWord(long word) { cout << hex << setfill('0') << setw(4) << word << " "; } void PushBits(long n, vect...
commandCodeRadix
723
/*************************************************************************/ /* Copyright (c) 2021-2022 <NAME> */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this soft...
p_what
724
// Copyright (c) 2023- Qinglong<<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 or a...
muted
725
/** **************************************************************************** * @file in_config_ini_wrapper__cpp.cpp * @author Ing. <NAME> * @version V1.1 * @date 31.01.2016 * @brief INI file processing **************************************************************************** * @attention...
return_value_i32
726
#include "GGlowDialect.h" #include "GGlow.h" #include <cstddef> #include <cstdint> #include <cstdio> #include <functional> #include <llvm/ADT/SmallVector.h> #include <llvm/ADT/StringRef.h> #include <mlir/IR/ValueRange.h> #include <torch/torch.h> #include <torch/script.h> #include <unordered_map> #include <vector> #in...
conv2d_op
727
#include<iostream> #include<queue> #include<vector> using namespace std; class Solution{ public: void BFS(vector<vector<int>>& grid, int startRow, int startCol){ int m = grid.size(); // rows int n = grid[0].size(); // cols // Directions to go -> Up, Down, Left, Right vector<...
sol
728
#include "BatteryInfos.h" #include "MessageDefine.h" using namespace rokid; /* * serialize this object as buffer */ int32_t BatteryInfos::serialize(void* buf, uint32_t bufsize) const { std::shared_ptr<Caps> caps = Caps::new_instance(); caps->write(static_cast<int32_t>(MessageType::TYPE_BATTERYINFOS)); int32_t wR...
bufSize
729
#include "CombatScene.h" #include "GameApplication.h" #include "MonsterInfoManager.h" #include <OGRE\OgreFontManager.h> CombatScene::CombatScene(void) { } CombatScene::~CombatScene(void) { } void CombatScene::CreateScene() { Ogre::Plane plane(Ogre::Vector3::UNIT_Y, 0); Ogre::MeshManager::getSingleton().create...
posNum
730
/** * Author: <NAME> * Date: 29 Sep 2019 * * Editor: <NAME> * Date: 09/02/2020 * compiled using cmd g++ -I eigen -std=c++11 *.cpp -o mai * */ #include "AlexTrajectoryGenerator.h" /*Test hardcoded trajectory*/ //** test function std::string AlexTrajectoryGenerator::printName() { return "ALEX TG"; } /** * I...
anklePosLean
731
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: ...
run
732
#include "Led_matrix_8x16.h" #include <Arduino.h> int IIC_SCL=3; int IIC_SDA=4; // Character bitmaps for the LED matrix unsigned char symbols[38][8] = { {0xF8, 0xFC, 0x46, 0x46, 0xFC, 0xF8}, // A {0xFE, 0xFE, 0x92, 0x92, 0xFE, 0x6C}, // B {0x7C, 0xFE, 0x82, 0x82, 0x82, 0x44}, // C {0xFE, 0xFE, ...
send_data
733
#ifndef BLOOM_FILTER_BLOOM_FILTER_H_ #define BLOOM_FILTER_BLOOM_FILTER_H_ #include <algorithm> #include <assert.h> #include "hashutil.h" using namespace std; using namespace hashing; namespace bloomfilter { // status returned by a Bloom filter operation enum Status { Ok = 0, NotFound = 1, NotEnoughSpace = 2, ...
malloc_failed
734
#include <FastLED.h> /* BASIC CONFIGURATION */ // Model of the LEDs #define LED_TYPE NEOPIXEL // The amount of LEDs in the setup #define NUM_LEDS 47 // The pin that controls the LEDs #define LED_PIN 6 // The pins that we read sensor values form #define LEFT_CHANNEL A2 #define RIGHT_CHANNEL A4 // Arduino loop delay (f...
normalizedCurVal
735
#include <stdio.h> #include <stdlib.h> // 変数の値を入れ替える関数 void swap(int *a, int *b) { int tmp; tmp = *a; *a = *b; *b = tmp; } // 乱数を生成する関数 int get_rand( int min_val, int [MASK] ) { return (int)(( rand() % ( [MASK] +1 - min_val ) ) + min_val ); } //枢軸を基準に要素を並び替える関数 int partition(int data[], int be...
max_val
736
class Solution { public: int solve(vector<int>temp, int k){ unordered_map<int, int>mp; int count=0; int sum=0; mp[sum]=1; for(int i=0; i<temp.size(); i++){ sum=sum+temp[i]; if(mp.find(sum-k)!=mp.end()){ ...
target
737
#pragma once #include <functional> #include <ostream> #include <unordered_map> #include <meojson/json.hpp> namespace asst { enum class AsstMsg { /* Global Info */ InternalError = 0, // 内部错误 InitFailed, // 初始化失败 ConnectionInfo, // 连接相关错误 AllTasksCompleted, // ...
_type_name
738
// Copyright (C) 2015 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_DNN_CuDNN_CPP_ #define DLIB_DNN_CuDNN_CPP_ #ifdef DLIB_USE_CUDA #include "cudnn_dlibapi.h" #include "tensor.h" #include <cudnn.h> #include <iostream> #include <string> #include "cuda_utils.h...
pooling_mode
739
//!##################################################################### //! \file Grid_Hierarchy_Backtrace.h //!##################################################################### // Class Grid_Hierarchy_Backtrace //###################################################################### #ifndef __Grid_Hierarchy_Backt...
original_cell_offset
740
#include "mpParser.h" #include "Point.hpp" #ifndef MUPARSERX_FUN_HPP_ #define MUPARSERX_FUN_HPP_ #include <string> class MuparserXFun { public: //@note initialization list does not follow the same order as the declaration // you get warnings for this. It is better to follow the same order. MuparserXFun(const Mupar...
m_variable
741
#include "EXEPCH.h" #include "source/engine/Application.h" #include "source/engine/settings/ConfigFile.h" #include "source/engine/resources/ExeliusResourceFactory.h" #include "source/engine/gameobjectsystem/GameObjectSystem.h" #include "source/engine/gameobjectsystem/components/ExeliusComponentFactory.h" #include...
fileDefinition
742
#include <vector> #include <algorithm> #include <set> #include <string> #include <map> #include <unordered_map> #include <iostream> #include <climits> #include <cmath> #include <stack> #include <queue> #include <list> #include <opencv2/objdetect.hpp> #include "lbplibrary.hpp" using namespace std; struct TreeNode { ...
high
743
#include <iostream> #include <fstream> #include <string> #include<vector> #include<sstream> #include <cctype> #include <algorithm> #include <map> using namespace std; map<string,string> split(string s) { int field_lengths[9] = {15,15,15,10,5,20,15,15,6}; string fields[9] ={"lastn","firstn...
my_map
744
#include "Draw.h" // int frames = 0; // double update_particles_time = 0; // double scalar_field_draw = 0; // double marching_cubes_draw = 0; double sort_time = 0; double find_time = 0; double update_time = 0; double field_time = 0; double mc_time = 0; int frame_count = 0; void calc_mvp(Matrix& mvp) { /* Define...
frustum_fovy
745
#include "Read.h" #include "bithash.h" #include <iostream> #include <math.h> #include <algorithm> #include <set> #include <queue> #define TESTING false int bithash::k; //////////////////////////////////////////////////////////// // corrections_compare // // Simple class to compare to corrected_read's in the // prior...
region_set
746
#pragma once // // Copyright (C) 2022 Pharap (@Pharap) // // 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...
pointer
747
/*************************************************************************** * Copyright (C) 2023 by pilar * * <EMAIL> * * * * This progr...
iniPointOrig
748
/******************************************************************************* * Copyright 2019 ROBOTIS Japan 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.ap...
sound_msg
749
#include <stdio.h> #include <string.h> int main(){ int T; int [MASK] = 0; int curr, next, prev, sumCurr, sumNext, sumPrev; char arr[101]; scanf("%d", &T); getchar(); for(int i = 0; i < T; i++){ scanf("%[^\n]", arr); getchar(); //Convert lower to upper for(int j = 0; j <strlen(...
space
750
/* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. */ #in...
json
751
#include "cblas.h" #include "lapacke.h" #include "physical_constants.hpp" #include "atomic_masses.hpp" #include "pes_interface_cppside.hpp" template <auto NUM_COORDS> void randPertGeom(std::array<double,NUM_COORDS>& geom_pert, std::mt19937_64& PRNG, std::uniform_real_distribution<double>& RN){ ///Given an initalized ...
TransA
752
/* Copyright 2015 CyberTech Labs 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 agree...
patchScript
753
/** * @file AssetManager.cpp * @author <NAME> * @brief Implements the AssetManager class. * @version 1.0.0 * * Dodoi Engine is a game engine developed by Dodoi-Lab. * @copyright Copyright (c) 2024, Dodoi-Lab * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
images
754
#pragma once #include "frpch.h" namespace Fresh { class Input { public: inline static bool IsKeyPressed(int keycode) { return s_Instance->IsKeyPressedImpl(keycode); } inline static bool IsMouseButtonPressed(int [MASK] ) { return s_Instance->IsMouseButtonPressedImpl( [MASK] ); } inline static float GetMou...
button
755
/* * Copyright 2019 <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 or agr...
success
756
#include "Array.h" void Array::expand(int count) { int* newdata = new int[count + this->capacity]; for (int i = 0; i < this->capacity; ++i) { newdata[i] = this->data[i]; } delete[] this->data; this->data = newdata; this->capacity += count; } Array::Array(int capacity) { this->capacity = capacity; this->coun...
element
757
// // Created by saber on 2022/5/5. // #ifndef HZUTILS_STRINGUTIL_HPP #define HZUTILS_STRINGUTIL_HPP #include <objbase.h> #include "iostream" #include <codecvt> #include <string> #include <regex> using namespace std; namespace hzStringUtil { static std::wstring To_Wide_String(const std::string& input) { ...
startStrLen
758
/* EW202 Lab 5.3 Proportional control of EW202 elevator <NAME>, 2019 */ #include "mbed.h" #include "rtos.h" #include "Motor.h" // some defines #define DT 20 // loop timing in ms #define CAL_A 49.2 // inches = Ax^2+Bx+C #define CAL_B -6.001 // calibration for instructor station #define CAL_C 0.218 #def...
ymeas
759
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
begin
760
//================================================= // Insert An Element At Starting Of The Linked List //================================================= void insert(Node* &head,int value){ Node* newnode= new Node(); newnode->prev=nullptr; newnode->data=value; newnode->next=head; head=newnode; } ...
loc
761
#include <iostream> #include <cstring> #include <cstdlib> #include <unistd.h> #include <sys/socket.h> #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include <arpa/inet.h> #include <netdb.h> #include <sys/time.h> #define RED "\033[31m" #define GREEN "\033[32m" #define YELLOW "\033[33m" #define BLUE "\033[34m" #d...
packet_size
762
//============================================================================== // // @@-COPYRIGHT-START-@@ // // Copyright (c) 2016-2017, Qualcomm Innovation Center, Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the ...
error_no_msc
763
#ifndef BST_H #define BST_H #include "Node.h" #include <iostream> #include <vector> #include <string> #include <sstream> #include <algorithm> #include <random> using std::vector; using std::string; using std::cout; template <typename T> class BST { private: Node<T> *root; protected: // Methods int num...
traversal_stack
764
/* * Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
start_event
765
#include <algorithm> #include <chrono> #include <cstddef> #include <cstdlib> #include <fmt/format.h> #include <tb_client.hpp> inline auto get_time_ms() noexcept { return std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::steady_clock::now().time_since_epoch()) .count(); } int mai...
total_time_ms
766
#pragma region Includes // Application configuration. #include "Configuration.h" // DHT library for DHT11 sensor. #include <DHT.h> // LCD library for interacting with a screen. #include <LiquidCrystal_I2C.h> #pragma endregion #pragma region Variables DHT dht(DHT_PIN, DHT_TYPE); LiquidCrystal_I2C lcd(LCD_I2C_ADDR...
temperature_Int
767
#include <adbase/Config.hpp> namespace adbase { // {{{ bool IniConfig::hasSection() bool IniConfig::hasSection(const std::string &sectionName) const { if (config.find(sectionName) == config.end()) { return false; } return true; } // }}} // {{{ bool IniConfig::hasOption() bool IniConfig::hasOpti...
emptyMap
768
//------------------ add_glitter() --------------- void add_glitter() { int chance_of_glitter = 10; //percent of the time that we add glitter int number_of_glitters = 5; //number of glitter sparkles to add int r = random8(100); if ( r < chance_of_glitter ) { for ( int j = 0; j <...
whiteTime
769
#define /*PORT_NAME*/_NB_SOFT_TIMER /*NB_SOFT_TIMER*/ uint32_t /*PORT_NAME*/_timer[/*PORT_NAME*/_NB_SOFT_TIMER]; uint32_t /*PORT_NAME*/_prev_1sec = 0; /*FLAGS*/ void externalMessageEnqueue(uint8_t * msg, uint8_t msgSize, uint16_t listener_id); /*INTERRUPT_COUNTER*/ /*INTERRUPT_VECTOR*/ //struct /*PORT_NAME*/_insta...
tms
770
#include <chrono> #include "benchmark/benchmark.h" #include "pp.h" #include "generate.h" #include "min_max.h" template<typename T, template<typename> class Src, template<typename> class MinMax> static void BM_MinMax(benchmark::State& state) { size_t size = state.range(0); std::vector<T> [MASK] = Src<T>::...
values
771
#include "ESP32_ping.hpp" void setup () { Serial.begin (115200); while (!Serial) delay (10); delay (1000); WiFi.begin ("YourSSID","YourPassword"); // use your WiFi credentials Serial.print ("\nConnecting "); while (WiFi.status () != WL_CONNECTED) { delay (500); ...
capturePing
772
// // Created by apgra on 8/31/2023. // #include "Application.h" #include "BoxParticle.h" #include "World.h" #include "Random.h" #include <stdexcept> #include <iostream> #include <glm/gtx/string_cast.hpp> #include <imgui.h> #include <imgui_impl_glfw.h> #include <imgui_impl_opengl3.h> std::unique_ptr<Camera> camera...
screenCoords
773
/* <NAME>, 22 janvier 2016 An Http endpoint */ #pragma once #include <pistache/listener.h> #include <pistache/net.h> #include <pistache/http.h> namespace Pistache { namespace Http { class Endpoint { public: struct Options { friend class Endpoint; Options& threads(int val); Op...
method
774
// Copyright (c) 2021-23, VMware Inc, and the Certifier Authors. 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/LICENS...
cleanup_status
775
#include "NoteWindows.h" #include "imgui.h" #include "Core/Note.h" #include <unordered_map> #include <iostream> void RenderNoteVaultWindow(Core::NoteManager& noteManager) { static bool [MASK] = true; if ( [MASK] ) { ImVec2 noteVaultPos = ImVec2(750, 200); // Set starting position for NoteVault windo...
firstFrameVault
776
#include <udsc2/phoneme/phoneme.h> #include "phoneme.hpp" #include "util/bit.h" #include <limits> namespace udsc2::api { int phoneme_difference(const api::PhonemeProperties pLeft, const api::PhonemeProperties pRight, const api::PhonemeProperties [MASK] ) { // These are tecnical 'Phonemes'...
ignore
777
/******************************************************************************\ * This example illustrates how to use aout. * \ ******************************************************************************/ #include <random> #include <chrono> #include <cstdlib> #include <iostream> ...
tout
778
/* ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
retryFactor
779
#include "cp-pch.h" #include "core.h" #include "log.h" #include<array> #include<spdlog/sinks/stdout_color_sinks.h> #include<spdlog/sinks/basic_file_sink.h> namespace Capsaicin { bool Log::s_is_initialized{ false }; Ref<spdlog::logger> Log::s_core_logger; void Log::init(spdlog::level::level_enum [M...
show_at_least
780
// Producer.cpp : 定义控制台应用程序的入口点。 // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <string> #include <iostream> #include <thread> #include <chrono> #ifdef WIN32 # include <sys/timeb.h> # include <process.h> #else # include <unistd.h> # include <sys/types.h> # include <signal.h> #endif...
producer
781
#include "bucket_based_simulation.h" #include "error_event.h" namespace bbsim{ BucketBasedSim::BucketBasedSim(const stim::Circuit& circ, uint k_max_): decoding_graph(qrc::to_decoding_graph(circ)), k_max(k_max_){ n_detectors = circ.count_detectors(); n_observables = circ...
paths
782
#include "ProcessSMICommand.h" void ProcessSMICommand::execute() { // header std::cout << "--------------------------------------------" << "\n"; std::cout << "| PROCESS-SMI V1.00 DRIVER VERSION 01.00 |" << "\n"; std::cout << "--------------------------------------------" << "\n"; for (CPUWorker* core : CPUMa...
totalMemoryUsage
783
#include <SoftwareSerial.h> #include <AltSoftSerial.h> #include <TinyGPS++.h> #include <Wire.h> // Nomor Telepon yang Diizinkan const String AUTHORIZED_PHONE = "+6282199799982"; // Pin Konfigurasi #define relayPin 5 // Relay utama (ON/OFF motor) #define starterRelayPin 4 // Relay starter #define...
buff
784
#ifndef LOCALSEARCH_H #define LOCALSEARCH_H #include <limits.h> #include <iostream> #include <fstream> #include <sstream> #include <set> #include <map> #include <vector> #include <algorithm> #include <math.h> #include <unistd.h> #include <string.h> using namespace std; //#define format_konect #define format_dimacs //...
vertex_size
785
#include "capture.hpp" #include <netinet/if_ether.h> PacketSniffer::PacketSniffer() { sock_raw = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); if (sock_raw < 0) { perror("Socket Error"); exit(EXIT_FAILURE); } std::cout << "Sniffer démarré..." << std::endl; } PacketSniffer::~PacketSnif...
dest
786
#ifndef ALGORITHMS_UKF_INCLUDE_UNSCENTED_KALMAN_FILTER_H_ #define ALGORITHMS_UKF_INCLUDE_UNSCENTED_KALMAN_FILTER_H_ #include <cmath> #include <cstdint> #include <iostream> #include <string> #include <vector> #include <Eigen/Dense> // NOLINT(build/include_order) #include <Eigen/Geometry> ...
variance_measurement
787
#include <SFML/Graphics.hpp> #include <Box2D/Box2D.h> #include "b2GLDraw.h" /** We need this to easily convert between pixel and real-world coordinates*/ static const float SCALE = 30.f; /** Create the base for the boxes to land */ void CreateGround(b2World& World, float X, float Y); /** Create the boxes *...
BoxTexture
788
#include "foo/Foo.hpp" #include <ortools/glop/lp_solver.h> #include <ortools/lp_data/lp_data.h> #include <ortools/lp_data/lp_types.h> #include <iostream> namespace foo { using operations_research::glop::ColIndex; using operations_research::glop::DenseRow; using operations_research::glop::GlopParameters; using operat...
status
789
#include<algorithm> #include<array> #include<bitset> #include<exception> #include<iomanip> #include<iostream> #include<fstream> #include<tuple> #include<vector> inline uint countbits(const uint n) { return __builtin_popcount(n); } class Sudoku { private: std::vector<std::tuple<uint,uint>> undostack ; ...
numbad
790
/* * Code to read RFID tags and then log an entry to a website */ /* * MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT. * The library file MFRC522.h has a wealth of useful info. Please read it. * The functions are documented in MFRC522.cpp. * * Based on code Dr.Leo...
IDsize
791
#include <iostream> #include <string> #include <boost/lexical_cast.hpp> #include <boost/filesystem/path.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filter/gzip.hpp> #include <boost/iostreams/filter/bzip2.hpp> #include <boost/timer/timer.hpp> in...
fis
792
#include "gbConfig.h" #include "osd.h" #include "gbGlobals.h" #include "PS2Kbd.h" #include "keys.h" #include "hardware.h" #include "gb_sdl_font8x8.h" #include <string.h> #ifdef use_lib_vga8colors #define ID_COLOR_BLACK 0 //Negro #define ID_COLOR_WHITE 7 //Blanco //#define ID_COLOR_MAGENTA 6 //Mage...
aSelLoadROM
793
const int selectPin[] = { 10, 11, 12, 9 }; const int dataPin[] = { 8, 7, 6, 5, 4, 3, 2 }; int keyNote[4][7]; int keyNoteOld[4][7]; long lastDebounceTime[4][7]; long debounceDelay = 20; void noteOn(int [MASK] , int pitch, int velocity) { Serial.write( [MASK] ); Serial.write(pitch); Serial.write(velocity); } v...
cmd
794
#include <iostream> #include <Eigen/Dense> #include <cmath> #include <stdexcept> #include <complex> using namespace Eigen; using namespace std; // Аналитическая модель решения задачи Data Reconciliation VectorXd AnalyticalModel(const VectorXd& x, const MatrixXd& A_y, const VectorXd& b_y, const VectorXd& c_y...
root1
795
#ifndef MATHLIB_EXAMPLES_PATHTRACER_SCENE_HPP #define MATHLIB_EXAMPLES_PATHTRACER_SCENE_HPP #include "Base.hpp" #include "Camera.hpp" #include "Light.hpp" #include "Material.hpp" #include <memory> #include <span> namespace PathTracer { class Scene { public: using Interval = Math::Geometry::Interv...
materialIndex
796
/* basic servo control via USB-serial ESP32 PWM via PCA9685 I2C * GND * 5V * pin 21 = SDA * pin 22 = SDL */ #include <Wire.h> #include <Adafruit_PWMServoDriver.h> Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(); //default address 0x40 //#define SERVOMIN 150 // This is the 'minimum' pulse length count...
pwmv
797
// Copyright (c) 2016-2018 LG Electronics, 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...
utc_time
798
/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** rtspvideocapturer.h ** ** -----------------------------------...
segmentLength
799
// PURPOSE: VixenLights 3.8 processing with Pullstar8 I2C Servo Motor Board on Arduino UNO // I2C and UART modified functions derived from <NAME>`s library. // LICENSE: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) // // URL: https://github.com/ioprojecton/vixen // // HISTORY: // Surepic - ...
tmptail