<commit_before>import rentme_web.models as models
import trademe.api as api


def load_trademe_locality_information():
    session = api.API()
    ## Array
    localities = session.get_localities()
    for locality in localities:
        l_name = locality["Name"]
        l_id = locality["LocalityId"]
        for districts in locality["Districts"]:
            d_name = districts["Name"]
            d_id = districts["DistrictId"]
            for suburb in districts["Suburbs"]:
                s_name = suburb["Name"]
                s_id = suburb["SuburbId"]
                for adj_suburb_id in districts["AdjacentSuburbs"]:



<commit_msg>Loops correctly.<commit_after>import rentme_web.models as models
import trademe.api as api


def load_trademe_locality_information():
    session = api.API()
    ## Array
    localities = session.get_localities()
    for locality in localities:
        l_name = locality["Name"]
        l_id = locality["LocalityId"]
        for districts in locality["Districts"]:
            d_name = districts["Name"]
            d_id = districts["DistrictId"]
            for suburb in districts["Suburbs"]:
                s_name = suburb["Name"]
                s_id = suburb["SuburbId"]
                for adj_suburb_id in suburb.get("AdjacentSuburbs", []):
                    pass



{'fraction_non_alphanumeric': 0.10075757575757575, 'fraction_numerical': 0.0, 'mean_word_length': 2.3443037974683545, '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': '1601778', 'n_tokens_mistral': 402, 'n_tokens_neox': 363, 'n_words': 88}