<commit_before># election/models.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-

from django.db import models
from exception.models import handle_record_found_more_than_one_exception,\
    handle_record_not_found_exception, handle_record_not_saved_exception
import wevote_functions.admin
from wevote_functions.functions import positive_value_exists
from wevote_settings.models import fetch_next_we_vote_id_electoral_district_integer, fetch_site_unique_id_prefix

logger = wevote_functions.admin.get_logger(__name__)

ELECTORAL_DISTRICT_TYPE_BOROUGH = 'borough'
ELECTORAL_DISTRICT_TYPE_CITY = 'city'
ELECTORAL_DISTRICT_TYPE_CITY_COUNCIL = 'city_council'
ELECTORAL_DISTRICT_TYPE_CONGRESSIONAL = 'congressional'
ELECTORAL_DISTRICT_TYPE_COUNTY = 'county'
ELECTORAL_DISTRICT_TYPE_COUNTY_COUNCIL = 'county-council'
ELECTORAL_DISTRICT_TYPE_JUDICIAL = 'judicial'
ELECTORAL_DISTRICT_TYPE_MUNICIPALITY = 'municipality'
ELECTORAL_DISTRICT_TYPE_NATIONAL = 'national'
ELECTORAL_DISTRICT_TYPE_SCHOOL = 'school'
ELECTORAL_DISTRICT_TYPE_SPECIAL = 'special'
ELECTORAL_DISTRICT_TYPE_STATE = 'state'
ELECTORAL_DISTRICT_TYPE_STATE_HOUSE = 'state-house'<commit_msg>Update models.py<commit_after># electoral_district/models.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-

from django.db import models
from exception.models import handle_record_found_more_than_one_exception,\
    handle_record_not_found_exception, handle_record_not_saved_exception
import wevote_functions.admin
from wevote_functions.functions import positive_value_exists
from wevote_settings.models import fetch_next_we_vote_id_electoral_district_integer, fetch_site_unique_id_prefix

logger = wevote_functions.admin.get_logger(__name__)

ELECTORAL_DISTRICT_TYPE_BOROUGH = 'borough'
ELECTORAL_DISTRICT_TYPE_CITY = 'city'
ELECTORAL_DISTRICT_TYPE_CITY_COUNCIL = 'city_council'
ELECTORAL_DISTRICT_TYPE_CONGRESSIONAL = 'congressional'
ELECTORAL_DISTRICT_TYPE_COUNTY = 'county'
ELECTORAL_DISTRICT_TYPE_COUNTY_COUNCIL = 'county-council'
ELECTORAL_DISTRICT_TYPE_JUDICIAL = 'judicial'
ELECTORAL_DISTRICT_TYPE_MUNICIPALITY = 'municipality'
ELECTORAL_DISTRICT_TYPE_NATIONAL = 'national'
ELECTORAL_DISTRICT_TYPE_SCHOOL = 'school'
ELECTORAL_DISTRICT_TYPE_SPECIAL = 'special'
ELECTORAL_DISTRICT_TYPE_STATE = 'state'
ELECTORAL_DISTRICT_TYPE_STATE_HOUSE = 'state-house'
{'fraction_non_alphanumeric': 0.06290115532734275, 'fraction_numerical': 0.0008557980316645272, 'mean_word_length': 10.080568720379146, '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': '491099', 'n_tokens_mistral': 896, 'n_tokens_neox': 835, 'n_words': 122}