<commit_before># -*- coding: utf-8 -*-

from datetime import date

ELECTIONS = {
    # Party primaries for the chamber of deputies:
    'diputados-argentina-paso-2015': {
        'for_post_role': 'Diputado Nacional',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME> PASO 2015',
        'current': True,
        'use_for_candidate_suggestions': False,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'hcdn',
        'organization_name': 'Cámara de Diputados',
        'post_id_format': 'dip-{area_id}',
    },
    # Party primaries for governors of provinces
    'gobernadores-argentina-paso-2015': {
        'for_post_role': 'Gobernador',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME> 2015',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'gobernador',
        'organization_name': 'Gobernador',
        'post_id_format': 'gob-{area_id}',
    },
    # Party primaries for national senators
    'senadores-argentina-paso-2015': {
        'for_post_role': 'Senador Nacional',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME> PASO 2015',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'hcsn',
        'organization_name': 'Senado de la Nación',
        'post_id_format': 'sen-{area_id}',
    },
    # Presidential candidates
    'presidentes-argentina-paso-2015': {
        'for_post_role': 'Presidente',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'organization_id': 'pen',
        'organization_name': 'Presidencia de la Nación Argentina',
        'name': '<NAME>',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['NAT'], # The national level...
        'mapit_generation': 1,
        # There's only one such post:
        'post_id_format': 'pres',
    },
}

MAPIT_BASE_URL = 'http://argentina.mapit.staging.mysociety.org/'<commit_msg>Adding posts for mercosur parliament<commit_after># -*- coding: utf-8 -*-

from datetime import date

ELECTIONS = {
    # Party primaries for the chamber of deputies:
    'diputados-argentina-paso-2015': {
        'for_post_role': 'Diputado Nacional',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME>',
        'current': True,
        'use_for_candidate_suggestions': False,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'hcdn',
        'organization_name': 'Cámara de Diputados',
        'post_id_format': 'dip-{area_id}',
    },
    # Party primaries for governors of provinces
    'gobernadores-argentina-paso-2015': {
        'for_post_role': 'Gobernador',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME>',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'gobernador',
        'organization_name': 'Gobernador',
        'post_id_format': 'gob-{area_id}',
    },
    # Party primaries for national senators
    'senadores-argentina-paso-2015': {
        'for_post_role': 'Senador Nacional',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME>015',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'hcsn',
        'organization_name': 'Senado de la Nación',
        'post_id_format': 'sen-{area_id}',
    },
    # Presidential candidates
    'presidentes-argentina-paso-2015': {
        'for_post_role': 'Presidente',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'organization_id': 'pen',
        'organization_name': 'Presidencia de la Nación Argentina',
        'name': '<NAME>',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['NAT'], # The national level...
        'mapit_generation': 1,
        # There's only one such post:
        'post_id_format': 'pres',
    },

    # Party primaries for national senators
    'parlamentarios-mercosur-regional-paso-2015': {
        'for_post_role': 'Par<NAME>',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME> PASO 2015',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['PRV'],
        'mapit_generation': 1,
        'organization_id': 'parlmercosur',
        'organization_name': 'Parlamento del Mercosur',
        'post_id_format': 'pmer-{area_id}',
    },

    'parlamentarios-mercosur-unico-paso-2015': {
        'for_post_role': 'Par<NAME>',
        'candidate_membership_role': 'Primary Candidate',
        'winner_membership_role': 'Candidate',
        'election_date': date(2015, 8, 9),
        'candidacy_start_date': date(2015, 6, 22),
        'name': '<NAME> PASO 2015',
        'current': True,
        'party_membership_start_date': date(2015, 6, 22),
        'party_membership_end_date': date(9999, 12, 31),
        'mapit_types': ['NAT'], # The national level...
        'mapit_generation': 1,
        'organization_id': 'parlmercosur',
        'organization_name': 'Parlamento del Mercosur',
        # There's only one such post:
        'post_id_format': 'pmeu',
    },    
}

MAPIT_BASE_URL = 'http://argentina.mapit.staging.mysociety.org/'
{'fraction_non_alphanumeric': 0.14898390076537346, 'fraction_numerical': 0.046846133544470835, 'mean_word_length': 2.951511991657977, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4612143', 'n_tokens_mistral': 2869, 'n_tokens_neox': 2504, 'n_words': 511}