<commit_before>#!/usr/bin/env python

#############################################################
#				@author: <NAME>					#
#				 MedicalBox IOT Project						#
#				 		  Data								#
 ###########################################################

#hold some data and statics for the program
#can be accessed from all modules
#used also to sync threads


#Enumerators
warehouseCount = 4
#Delay
notificationDelay = 2
syncDelay = 10
osDelay = 1000
mainLoopDelay = 1 #can't be more as it does other work like updateLCD

#SQLite database
dbName = "../box.db"

#threads synchronization
schedulerCheck = False #to check if the scheduler finishes
scheduleChanged = True #to stop the tread 'scheduler' and start again if user changed the schedule or dispense completed
emptyTimetable = False #check if the table is empty
waitForDispense = False #to stop scheduler until dispensing process finishes "added to complete other tasks while dispensing process is running"
schedulerAlive = False #is_alive isn't working

waitForSync = False #to stop main until db is updated
waitForCmd = False #to stop main until commands are executed


###Tokens
#mobile token
mobileToken = ""
#watch token
watchToken = ""

###Firebase real-time database paths
rootURL = "medox-f7251.firebaseio.com"
messagesURL = rootURL + "/messages/.json"
UID = "Vbxp1DKBbMckkknNyDW0c0IGEYa2"
userURL = rootURL + "/users/" + UID
commandURL = userURL + "/command/" + ".json"
timetableURL = userURL + "/timetable/" + ".json"
warehouseURL = userURL + "/warehouse/" + ".json"
tokenURL = userURL + "/token/" + ".json"<commit_msg>data.py add switch, sensor URLs, and sensor delay<commit_after>#!/usr/bin/env python

#############################################################
#				@author: <NAME>					#
#				 MedicalBox IOT Project						#
#				 		  Data								#
 ###########################################################

#hold some data and statics for the program
#can be accessed from all modules
#used also to sync threads


#Enumerators
warehouseCount = 4
#Delay
notificationDelay = 2
syncDelay = 10
osDelay = 1000
mainLoopDelay = 1 #can't be more as it does other work like updateLCD
sensorDelay = 10 #update sensor values in db every 10 seconds

#SQLite database
dbName = "../box.db"

#threads synchronization
schedulerCheck = False #to check if the scheduler finishes
scheduleChanged = True #to stop the tread 'scheduler' and start again if user changed the schedule or dispense completed
emptyTimetable = False #check if the table is empty
waitForDispense = False #to stop scheduler until dispensing process finishes "added to complete other tasks while dispensing process is running"
schedulerAlive = False #is_alive isn't working

waitForSync = False #to stop main until db is updated
waitForCmd = False #to stop main until commands are executed


###Tokens
#mobile token
mobileToken = ""
#watch token
watchToken = ""

###Firebase real-time database paths
rootURL = "medox-f7251.firebaseio.com"
messagesURL = rootURL + "/messages/.json"
UID = "Vbxp1DKBbMckkknNyDW0c0IGEYa2"
userURL = rootURL + "/users/" + UID
commandURL = userURL + "/command/" + ".json"
sensorURL = userURL + "/iot/sensor/" + ".json"
switchURL = userURL + "/iot/switch/" + ".json"
timetableURL = userURL + "/timetable/" + ".json"
warehouseURL = userURL + "/warehouse/" + ".json"
tokenURL = userURL + "/token/" + ".json"
{'fraction_non_alphanumeric': 0.16070363744782348, 'fraction_numerical': 0.011329755515802028, 'mean_word_length': 4.536303630363037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3464462', 'n_tokens_mistral': 1055, 'n_tokens_neox': 951, 'n_words': 362}