<commit_before>from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter


class Command(BaseXpressDemocracyClubCsvImporter):
    council_id = "E07000125"
    addresses_name = "local.2019-05-02/Version 1/Democracy_Club__02May2019.tsv"
    stations_name = "local.2019-05-02/Version 1/Democracy_Club__02May2019.tsv"
    elections = ["local.2018-05-03"]
    csv_delimiter = "\t"

    def address_record_to_dict(self, record):
        rec = super().address_record_to_dict(record)
        uprn = record.property_urn.strip().lstrip("0")

        if uprn in [
            "10013834533",  # OL130QR -> OL138GB : 24 Deerplay Drive, Weir, Bacup, Lancs
            "10013834535",  # OL130QR -> OL138GB : 26 Deerplay Drive, Weir, Bacup, Lancs<commit_msg>fix election id for Rossendale<commit_after>from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter


class Command(BaseXpressDemocracyClubCsvImporter):
    council_id = "E07000125"
    addresses_name = "local.2019-05-02/Version 1/Democracy_Club__02May2019.tsv"
    stations_name = "local.2019-05-02/Version 1/Democracy_Club__02May2019.tsv"
    elections = ["local.2019-05-02"]
    csv_delimiter = "\t"

    def address_record_to_dict(self, record):
        rec = super().address_record_to_dict(record)
        uprn = record.property_urn.strip().lstrip("0")

        if uprn in [
            "10013834533",  # OL130QR -> OL138GB : 24 Deerplay Drive, Weir, Bacup, Lancs
            "10013834535",  # OL130QR -> OL138GB : 26 Deerplay Drive, Weir, Bacup, Lancs
{'fraction_non_alphanumeric': 0.10573823339780787, 'fraction_numerical': 0.1096067053513862, 'mean_word_length': 3.746177370030581, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1092036', 'n_tokens_mistral': 675, 'n_tokens_neox': 530, 'n_words': 95}