<commit_before>import urllib2

from bs4 import BeautifulSoup

url = "http://www.mapsofworld.com/usa/states/california/map-of-northern-
        california.html"
        
page = urllib2.urlopen(url)       
soup = BeautifulSoup(page)

tables = soup.findAll("table")
tables[3].find_all('td')

for td in tables[3].find_all('td'):
    print td.text<commit_msg>script refactored<commit_after>import urllib2

from bs4 import BeautifulSoup

url = ("http://www.mapsofworld.com/usa/states/california/"
       "map-of-northern-california.html")

page = urllib2.urlopen(url)
soup = BeautifulSoup(page)

tables = soup.findAll("table")
tables[3].find_all('td')

counties = [td.text for td in tables[3].find_all('td')]
{'fraction_non_alphanumeric': 0.1452991452991453, 'fraction_numerical': 0.014245014245014245, 'mean_word_length': 4.366412213740458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4249488', 'n_tokens_mistral': 263, 'n_tokens_neox': 260, 'n_words': 44}