<commit_before>
#*****************************************************************************************
#							M2M TRAFFIC CORRIDOR FOR EMERGENCY
#*****************************************************************************************

#!usr/bin/python

import os
import sys
from pubnub import Pubnub
from traffic_calc.distance_calculation	import dis_calc
from traffic_calc.bearing import bearng
import math
import time
import random
													# publish and subscribe keys
pubnub = Pubnub(publish_key="demo",       
				subscribe_key="demo")   
g_NAS = int(1)  					# Next Approaching Signal 
g_PASA =str('167')      	# Present Approaching Signal Angle
g_approachingFlag = True	# status flag 
g_count = int(0)					# count variable
g_random1 = random.randrange(2,4,1)	#random number generation
g_random2 = random.randrange(5,7,1)	#random number generation
g_flag  = True	#status flag

								# vehicle starting and destination place names
vehicle_starting_place 	= "UCSF Medical Center at Mount Zion"
vehicle_destination_place = "SF General Hospital"
def main_function(lat,lng):
  	global g_flag,g_PASA,g_NAS,g_count,g_random1,g_random2,g_approachingFlag
	
	L_list1 = ["37.786188 -122.440033","37.787237 -122.431801",
				"37.785359 -122.424704","37.778739 -122.423349",
				"37.776381 -122.419514","37.772811 -122.412835",
		   		"37.765782 -122.407557","37.756809 -122.406781",
				"37.756930 -122.405238"]
	L_signal = ["Divisaderostreet",
				"Websterstreet",
				"Goughstreet",
				"Fultonstreet",
				"Fellstreet",
				"FolsomStreet",<commit_msg>Update traffic_server.py<commit_after>
#*****************************************************************************************
#			M2M TRAFFIC CORRIDOR FOR EMERGENCY
#*****************************************************************************************

#!usr/bin/python

import os
import sys
from pubnub import Pubnub
from traffic_calc.distance_calculation	import dis_calc
from traffic_calc.bearing import bearng
import math
import time
import random
					# publish and subscribe keys
pubnub = Pubnub(publish_key="demo",       
				subscribe_key="demo")   
g_NAS = int(1)  		# Next Approaching Signal 
g_PASA =str('167')      	# Present Approaching Signal Angle
g_approachingFlag = True	# status flag 
g_count = int(0)		# count variable
g_random1 = random.randrange(2,4,1)	#random number generation
g_random2 = random.randrange(5,7,1)	#random number generation
g_flag  = True	#status flag

								# vehicle starting and destination place names
vehicle_starting_place 	= "UCSF Medical Center at Mount Zion"
vehicle_destination_place = "SF General Hospital"
def main_function(lat,lng):
  	global g_flag,g_PASA,g_NAS,g_count,g_random1,g_random2,g_approachingFlag
	
	L_list1 = ["37.786188 -122.440033","37.787237 -122.431801",
				"37.785359 -122.424704","37.778739 -122.423349",
				"37.776381 -122.419514","37.772811 -122.412835",
		   		"37.765782 -122.407557","37.756809 -122.406781",
				"37.756930 -122.405238"]
	L_signal = ["Divisaderostreet",
				"Websterstreet",
				"Goughstreet",
				"Fultonstreet",
				"Fellstreet",
				"FolsomStreet",
{'fraction_non_alphanumeric': 0.20976549951814968, 'fraction_numerical': 0.1092194025056216, 'mean_word_length': 4.842401500938086, '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': '4005058', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1028, 'n_words': 224}