<commit_before>class NovaScotia
  def scrape_people
    party_ids = {}
    { 'Liberal' => 'Nova Scotia Liberal Party',
      'NDP' => 'Nova Scotia New Democratic Party',
      'PC' => 'Progressive Conservative Association of Nova Scotia',
      'I' => 'Independent',
    }.each do |abbreviation,name|
      organization = Pupa::Organization.new({
        name: name,
        classification: 'political party',
      })
      organization.add_name(abbreviation)
      organization.add_source('http://electionsnovascotia.ca/candidates-and-parties/registered-parties', note: 'Elections Nova Scotia')
      dispatch(organization)
      party_ids[abbreviation] = organization._id
    end

    legislature = Pupa::Organization.new({
      _id: 'ocd-organization/country:ca/province:ns/legislature',
      name: 'Nova Scotia House of Assembly',<commit_msg>add new independent abbreviation<commit_after>class NovaScotia
  def scrape_people
    party_ids = {}
    { 'Nova Scotia Liberal Party' => ['Liberal'],
      'Nova Scotia New Democratic Party' => ['NDP'],
      'Progressive Conservative Association of Nova Scotia' => ['PC'],
      'Independent' => ['I', 'Ind'],
    }.each do |name,abbreviations|
      organization = Pupa::Organization.new({
        name: name,
        classification: 'political party',
      })
      organization.add_source('http://electionsnovascotia.ca/candidates-and-parties/registered-parties', note: 'Elections Nova Scotia')
      abbreviations.each do |abbreviation|
        organization.add_name(abbreviation)
      end
      dispatch(organization)
      abbreviations.each do |abbreviation|
        party_ids[abbreviation] = organization._id
      end
    end

    legislature = Pupa::Organization.new({
      _id: 'ocd-organization/country:ca/province:ns/legislature',
      name: 'Nova Scotia House of Assembly',
{'fraction_non_alphanumeric': 0.11882799782962561, 'fraction_numerical': 0.0, 'mean_word_length': 3.4009546539379474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3254423', 'n_tokens_mistral': 578, 'n_tokens_neox': 534, 'n_words': 121}