<commit_before>%div
  %table.full.wrap.refugee.results
    %thead
      %tr
        %th Namn
        %th Dossiernummer
        %th Personnummer
        %th Kön
        %th Land
        %th Aktuellt boenden

    %tbody
      - @refugees.each do |refugee|
        %tr
          %td= link_to refugee.name, refugee
          %td= refugee.dossier_numbers.map(&:name).join(', ')
          %td= refugee.ssns.map(&:full_ssn).join(', ')
          %td
            - if refugee.gender.present?
              = refugee.gender.name
          %td= refugee.countries.map(&:name).join(', ')
          %td
            - if refugee.placements.empty?
              = 'Ej ännu placerad'
            - elsif refugee.placements.last.moved_out_at.present?
              = 'Utskriven'
            - else
              = link_to refugee.homes.last.name, home_path(refugee.homes.last)

  - if @has_more
    .load-more
      %input.btn.btn-default{ type: "button", value: "Visa fler", "data-path" => @more_request }
<commit_msg>Fixed SSN bug<commit_after>%div
  %table.full.wrap.refugee.results
    %thead
      %tr
        %th Namn
        %th Dossiernummer
        %th Personnummer
        %th Kön
        %th Land
        %th Aktuellt boenden

    %tbody
      - @refugees.each do |refugee|
        %tr
          %td= link_to refugee.name, refugee
          %td= refugee.dossier_numbers.map(&:name).join(', ')
          %td= format_ssn refugee.primary_ssn
          %td
            - if refugee.gender.present?
              = refugee.gender.name
          %td= refugee.countries.map(&:name).join(', ')
          %td
            - if refugee.placements.empty?
              = 'Ej ännu placerad'
            - elsif refugee.placements.last.moved_out_at.present?
              = 'Utskriven'
            - else
              = link_to refugee.homes.last.name, home_path(refugee.homes.last)

  - if @has_more
    .load-more
      %input.btn.btn-default{ type: "button", value: "Visa fler", "data-path" => @more_request }

{'fraction_non_alphanumeric': 0.12393376818866031, 'fraction_numerical': 0.0, 'mean_word_length': 1.6693440428380188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5385677', 'n_tokens_mistral': 693, 'n_tokens_neox': 664, 'n_words': 123}