<commit_before>import datetime
import requests
from flask import Flask
from flask_restful import Resource, Api

app = Flask(__name__)
api = Api(app)

class Train(Resource):	
	def get(self):
                currentHour = datetime.datetime.now().strftime("%H")
                print(currentHour)
		        # If after 12 noon DC time
                if(int(datetime.datetime.now().strftime("%H")) >= 16):
                    my_stop = 'B35' #Noma
                else:
                    my_stop = 'B11' # Glenmont station
                # Request headers
                headers = {'api_key': '<KEY>'}
		
                url = 'https://api.wmata.com/StationPrediction.svc/json/GetPrediction/%s' % my_stop                
                r = requests.get(url, headers=headers) 
                print(r.json())         
                return(r.json())

api.add_resource(Train, '/')
if __name__=='__main__':
	app.run(host='0.0.0.0', port=80, debug=True)<commit_msg>Update train.py<commit_after>import datetime
import requests
from flask import Flask
from flask_restful import Resource, Api

app = Flask(__name__)
api = Api(app)

class Train(Resource):	
	def get(self):
                currentHour = datetime.datetime.now().strftime("%H")
                print(currentHour)
		        # If before 12 noon DC time
                if(int(datetime.datetime.now().strftime("%H")) <= 16):
                    my_stop = 'B11' # Glenmont station
                else:
                    my_stop = 'B35' #Noma
                
		# Request headers
                headers = {'api_key': '<KEY>'}
		
                url = 'https://api.wmata.com/StationPrediction.svc/json/GetPrediction/%s' % my_stop                
                r = requests.get(url, headers=headers) 
                print(r.json())         
                return(r.json())

api.add_resource(Train, '/')
if __name__=='__main__':
	app.run(host='0.0.0.0', port=80, debug=True)
{'fraction_non_alphanumeric': 0.12784679089026915, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 1.809593023255814, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4689299', 'n_tokens_mistral': 616, 'n_tokens_neox': 558, 'n_words': 118}