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

import time
from urllib2 import Request, urlopen
from bs4 import BeautifulSoup

s1  = time.time()
req = Request("http://xml.buienradar.nl/")
print s1 - time.time()
s2 = time.time()
response = urlopen(req)
print s2 - time.time()
s3 = time.time()
output = response.read()
print s3 - time.time()
s4 = time.time()
soup = BeautifulSoup(output)
print s4 - time.time()
s5 = time.time()

MSwind = str(soup.buienradarnl.weergegevens.actueel_weer.weerstations.find(id=6350).windsnelheidms)
GRwind = str(soup.buienradarnl.weergegevens.actueel_weer.weerstations.find(id=6350).windrichtinggr)
ms = MSwind.replace("<"," ").replace(">"," ").split()[1]
gr = GRwind.replace("<"," ").replace(">"," ").split()[1]
print s5 - time.time()

print = 'speed: {0} m/s, direction: {1} deg, processing time: {2} s'.format(ms, gr, s1 - time.time())<commit_msg>20150516.1615<commit_after>#!/usr/bin/env python

import time
from urllib2 import Request, urlopen
from bs4 import BeautifulSoup

s1  = time.time()
req = Request("http://xml.buienradar.nl/")
print s1 - time.time()
s2 = time.time()
response = urlopen(req)
print s2 - time.time()
s3 = time.time()
output = response.read()
print s3 - time.time()
s4 = time.time()
soup = BeautifulSoup(output)
print s4 - time.time()
s5 = time.time()

MSwind = str(soup.buienradarnl.weergegevens.actueel_weer.weerstations.find(id=6350).windsnelheidms)
GRwind = str(soup.buienradarnl.weergegevens.actueel_weer.weerstations.find(id=6350).windrichtinggr)
ms = MSwind.replace("<"," ").replace(">"," ").split()[1]
gr = GRwind.replace("<"," ").replace(">"," ").split()[1]
print s5 - time.time()

print 'speed: {0} m/s, direction: {1} deg, processing time: {2} s'.format(ms, gr, s1 - time.time())
{'fraction_non_alphanumeric': 0.1912442396313364, 'fraction_numerical': 0.03686635944700461, 'mean_word_length': 5.094736842105263, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3566338', 'n_tokens_mistral': 710, 'n_tokens_neox': 688, 'n_words': 143}