seed
stringlengths
16
5.99k
id
int64
0
213
void setup(void) { //////////STILL TRYING TO GET ZULU WITH A DIFFERENT LIBRARY setSyncProvider(RTC.get); // the function to get the time from the RTC //////////END STILL TRYING TO GET ZULU WITH A DIFFERENT LIBRARY Serial.begin(115200); dht.begin(); P.begin(2); P.setInvert(false);...
200
int main() { std::cout << "starting" << std::endl; hfu::find_nth_index_test(); std::cout << "find_nth_index_test passed" << std::endl; hfu::extract_airline_test(); std::cout << "find_airline_test passed" << std::endl; hfu::create_frequencies_test(); std::cout << "create_frequencies_test pas...
201
void c_p_c() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #ifndef ONLINE_JUDGE freopen("/Users/ishan/Desktop/fuzzy-chainsaw-algo/input.txt", "r", stdin); freopen("/Users/ishan/Desktop/fuzzy-chainsaw-algo/output.txt", "w", stdout); #endif }
202
void loop() { timer.run(); if (Blynk.connected()) { // If connected run as normal Blynk.run(); } else if (ReCnctFlag == 0) { // If NOT connected and not already trying to reconnect, set timer to try to reconn...
203
void fpcM_Init(void) { fpcLy_Create(&rootlayer, NULL, queue, 10); fpcLn_Create(); }
204
inline bool e_game_state_Parse( const ::std::string& name, e_game_state* value) { return ::google::protobuf::internal::ParseNamedEnum<e_game_state>( e_game_state_descriptor(), name, value); }
205
void checkforupdate() { Serial.println( "OTA Update Request Received" ); Serial.print( "Firmware URL: " ); Serial.println( FIRMWARE_URL ); HTTPClient httpClient; httpClient.begin( FIRMWARE_URL ); int httpCode = httpClient.GET(); if( httpCode == 200 ) { Serial.println( "Update file found, starting upda...
206
int main() { int i, j, n, fake; for (cin >> n; n; n--) { for (i = 0; i < COIN; i++) ox[i] = coin[i] = 0; for (i = 0; i < TIME; i++) { for (j = 0; j < 3; j++) cin >> s[j]; if (s[2] == "even") setStatus(0, 1); else if (s[2] == "up") setCoin(1); else setCoin(-1); } ...
207
void auto_mode() // Function to check if auto mode is ON and all voltage value is greater than voltage cutoff value, then turn on 2 relays { if(auto_mode_state_1 == LOW && lowvoltageflag == false && highvoltageflag == false && phasefailureflag == false){ //checks if auto mode...
208
void setStatus(int Scoin, int Sox) { int i, j; for (i = 0; i < 2; i++) for (j = 0; j < s[i].size(); j++) { coin[s[i][j] - 'A'] = Scoin; ox[s[i][j] - 'A'] = Sox; } return ; }
209
void expand_data(float *data, float *data2, int Nx, int Ny, int Lx) { // expand data to 2N + 2 length #pragma acc parallel loop independent present(data[0:Nx*Ny],data2[0:Lx*Ny]) for(int i=0;i<Ny;i++) { data2[Lx*i] = data2[Lx*i+Nx+1] = 0.0; #pragma acc loop independent for(int j=0;j<Nx;j++) { da...
210
void loop(){ //update VCC VCC.update(); }
211
void DiscreteMasterProperty__float4__OnComplete(DiscreteMasterProperty__float4* __this) { ::app::Uno::Float4 nv = __this->RestValue(); float str = 0.5f; for (::app::Uno::Collections::List1_Enumerator__Fuse_Animations_MixerHandle_float4_ enum_123 = ::uPtr< ::app::Uno::Collections::List__Fuse_Animations_Mixe...
212
void p14(Node *h, char *c, int l, int s){ Node *p = h; Node *pn[15]; while(p){ int i; for(i = 0; i < l; i ++){ if( i == 0) pn[i] = p->next; else pn[i] = pn[i-1]->next; if(pn[i] == NULL || pn[i]->c != c[i]){ break; } } if(i != l) { p = p->next; continue; } // cout<<"p14"<<endl; Nod...
213