<commit_before>import requests
import json
from Competition import Competition
from Team import Team

def get_competitions(season=None):
    url = "http://football-data.org/v1/competitions"
    if season:
        url += "/?season=" + str(season)
    req = requests.get(url)
    data = json.loads(req.content)
    competitions = []
    for comp in data:
        competition = Competition(comp)
        competitions.append(competition)
    return competitions

def get_teams(id):
    url = "http://football-data.org/v1/competitions/" + str(id) + "/teams"
    req = requests.get(url)
    data = json.loads(req.content)
    count = data['count']
    teams = data['teams']
    return teams

cs = get_competitions()
for c in cs:
    print get_teams(c.get_id())<commit_msg>Added Lisence, Readme, and gitignore.'<commit_after>import requests
import json
from Competition import Competition
from Team import Team

def get_competitions(season=None):
    url = "http://football-data.org/v1/competitions"
    if season:
        url += "/?season=" + str(season)
    req = requests.get(url)
    data = json.loads(req.content)
    competitions = []
    for comp in data:
        competition = Competition(comp)
        competitions.append(competition)
    return competitions

def get_teams(id):
    url = "http://football-data.org/v1/competitions/" + str(id) + "/teams"
    req = requests.get(url)
    data = json.loads(req.content)
    count = data['count']
    teams = data['teams']
    return teams
{'fraction_non_alphanumeric': 0.12575655682582382, 'fraction_numerical': 0.0026899798251513113, 'mean_word_length': 3.2393162393162394, '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': '3477767', 'n_tokens_mistral': 474, 'n_tokens_neox': 480, 'n_words': 113}