<commit_before>#!/usr/bin/env python
import rospy
from std_msgs.msg import String
from nav_msgs.msg import Odometry
from geometry_msgs.msg import Pose
from sendemailscript import sendmail 
import time


class stateChecker:
	def __init__(self):
		self.start_time = time.time()
		self.prevPose = Pose()
		self.emailSent = False
	
    		rospy.init_node('state_checker', anonymous=True)

		self.sender = rospy.get_param('~sender')
		self.sender_password = rospy.get_param('~password')
		self.receiver = rospy.get_param('~receiver')
		self.email_title = rospy.get_param('~email_title')
		self.email_body = rospy.get_param('~email_body')
		self.email_attachment= rospy.get_param('~email_attachment','')
		self.odometry_timeout = float(rospy.get_param('~timeout',10.0)) # seconds

		rospy.Subscriber("odom", Odometry, self.callback)
		print self.sender, self.sender_password, self.receiver, self.email_title, self.email_body<commit_msg>changed the default timeout to 90 seconds<commit_after>#!/usr/bin/env python
import rospy
from std_msgs.msg import String
from nav_msgs.msg import Odometry
from geometry_msgs.msg import Pose
from sendemailscript import sendmail 
import time


class stateChecker:
	def __init__(self):
		self.start_time = time.time()
		self.prevPose = Pose()
		self.emailSent = False
	
    		rospy.init_node('state_checker', anonymous=True)

		self.sender = rospy.get_param('~sender')
		self.sender_password = rospy.get_param('~password')
		self.receiver = rospy.get_param('~receiver')
		self.email_title = rospy.get_param('~email_title')
		self.email_body = rospy.get_param('~email_body')
		self.email_attachment= rospy.get_param('~email_attachment','')
		self.odometry_timeout = float(rospy.get_param('~timeout',90.0)) # seconds

		rospy.Subscriber("odom", Odometry, self.callback)
		print self.sender, self.sender_password, self.receiver, self.email_title, self.email_body
{'fraction_non_alphanumeric': 0.12089077412513255, 'fraction_numerical': 0.0042417815482502655, 'mean_word_length': 5.667844522968198, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '779871', 'n_tokens_mistral': 703, 'n_tokens_neox': 658, 'n_words': 121}