<commit_before>from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter

class Command(BaseXpressDemocracyClubCsvImporter):
    council_id = 'E06000041'
    addresses_name = 'local.2018-05-03/Version 1/Democracy_Club__03May2018 (1) Wokingham.csv'
    stations_name = 'local.2018-05-03/Version 1/Democracy_Club__03May2018 (1) Wokingham.csv'
    elections = ['local.2018-05-03']
    csv_delimiter = ','<commit_msg>Wokingham postcode corrections<commit_after>from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter

class Command(BaseXpressDemocracyClubCsvImporter):
    council_id = 'E06000041'
    addresses_name = 'local.2018-05-03/Version 1/Democracy_Club__03May2018 (1) Wokingham.csv'
    stations_name = 'local.2018-05-03/Version 1/Democracy_Club__03May2018 (1) Wokingham.csv'
    elections = ['local.2018-05-03']
    csv_delimiter = ','

    def station_record_to_dict(self, record):

        if record.polling_place_id == '1347':
            record = record._replace(polling_place_postcode = 'RG6 3HE')

        if record.polling_place_id == '1371':
            record = record._replace(polling_place_postcode = 'RG40 1XS')

        return super().station_record_to_dict(record)
{'fraction_non_alphanumeric': 0.1011326860841424, 'fraction_numerical': 0.08818770226537216, 'mean_word_length': 4.700460829493087, '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': '985226', 'n_tokens_mistral': 496, 'n_tokens_neox': 412, 'n_words': 63}