<commit_before>- countries  = %w[nl de uk ro pl tr]
- show_all   = session[:show_municipalities] || session[:show_all_countries] 
- countries += ["za", "be-vlg"] if session[:show_all_countries]
- nl_regions = %w[nl-drenthe nl-flevoland nl-friesland nl-gelderland nl-groningen nl-limburg nl-noord-brabant nl-noord-holland nl-overijssel nl-utrecht nl-zeeland nl-zuid-holland]

%li
  %h3 
    = I18n.t("Choose country")
  %select{:name => "region"}  
    - countries.each do |code|
      %option{:value => code, :selected => Current.setting.region == code}
        = raw t(code)
        - if code == 'nl'
          %optgroup{:label => "Provinces of the Netherlands"}
            - nl_regions.each do |region|
              %option{:value => region, :selected => Current.setting.region == region}= t(region)
            - if show_all
              %option{:value => "nl-noord", :selected => Current.setting.region == "nl-noord"}= t("nl-noord")
              %optgroup{:label => "Municipalities of the Netherlands"}
                - %w[grs ame ams].each do |region|
                  %option{:value => region, :selected => Current.setting.region == region}= t(region)
        - else
          %small (test)
<commit_msg>included all the areas in the selects<commit_after>- countries = %w[nl de uk ro pl tr]
- nl_regions = %w[nl-drenthe nl-flevoland nl-friesland nl-gelderland nl-groningen nl-limburg nl-noord-brabant nl-noord-holland nl-overijssel nl-utrecht nl-zeeland nl-zuid-holland]
- show_all   = session[:show_municipalities] || session[:show_all_countries] 
- countries += ["za", "be-vlg"] if session[:show_all_countries]

%li
  %h3 
    = I18n.t("Choose country")
  %select{:name => "region"}  
    - countries.each do |code|
      %option{:value => code, :selected => Current.setting.region == code}
        = t(code).html_safe
        - if code == 'nl'
          %optgroup{:label => "Provinces of the Netherlands"}
            - nl_regions.each do |region|
              %option{:value => region, :selected => Current.setting.region == region}= t(region)
            - nl_munici = ["ame"]
            - nl_munici << "ams" if (current_user.andand.email == "<EMAIL>"|| session[:show_all_countries])
            - if show_all
              - nl_munici << "grs"
              %option{:value => "nl-noord", :selected => Current.setting.region == "nl-noord"}= t("nl-noord")
            %optgroup{:label => "Municipalities of the Netherlands"}
              - nl_munici.each do |region|
                %option{:value => region, :selected => Current.setting.region == region}= t(region)
        - if code == 'de' and (current_user.andand.email == "<EMAIL>" || session[:show_all_countries])
          %optgroup{:label => "Provinces of Germany"}
            - %w[br].each do |region|
              %option{:value => region, :selected => Current.setting.region == region}
                = t(region)
                %small (test)
        - unless %w[nl].include?(code)
          %small (test)

{'fraction_non_alphanumeric': 0.15495314591700135, 'fraction_numerical': 0.002008032128514056, 'mean_word_length': 2.562574493444577, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 30, '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': '5316722', 'n_tokens_mistral': 990, 'n_tokens_neox': 991, 'n_words': 214}