<commit_before>- children = []
- d ||= nil
- a ||= nil
-if d.nil?
  - unless a.nil?
    - if a.is_a?(Hash)
      - link = (l = a[:link]).nil? ? "#{a[:param]}/dashboard": "/#{l[:rel]}"
      - options = {url: link, name: a[:label], icon: a[:icon], subgroup: true}
      = render partial: 'rails_admin/main/dashboard/monitor', locals: {options: options}
    - else
      - am = (model = RailsAdmin::Config.model(a)).abstract_model
      - m = wrap_model_for_dashboard(am)
      = render partial: 'rails_admin/main/dashboard/monitor', locals: {options: model_monitor_data(m)}
- else
  - stack = d[:stack]
  -stack.each do |s|
    - if s.is_a?(Array)
      -children.concat(s)
    - else
      -children << s
  - children.each do |m|
    = render partial: 'rails_admin/main/dashboard/monitor', locals: {options: model_monitor_data(m)}<commit_msg>Fixing nil abstract models (maybe for a non shared mongoff model)<commit_after>- children = []
- d ||= nil
- a ||= nil
-if d.nil?
  - unless a.nil?
    - if a.is_a?(Hash)
      - link = (l = a[:link]).nil? ? "#{a[:param]}/dashboard": "/#{l[:rel]}"
      - options = {url: link, name: a[:label], icon: a[:icon], subgroup: true}
      = render partial: 'rails_admin/main/dashboard/monitor', locals: {options: options}
    - elsif (am = RailsAdmin::Config.model(a).abstract_model)
      - m = wrap_model_for_dashboard(am)
      = render partial: 'rails_admin/main/dashboard/monitor', locals: {options: model_monitor_data(m)}
- else
  - stack = d[:stack]
  -stack.each do |s|
    - if s.is_a?(Array)
      -children.concat(s)
    - else
      -children << s
  - children.each do |m|
    = render partial: 'rails_admin/main/dashboard/monitor', locals: {options: model_monitor_data(m)}
{'fraction_non_alphanumeric': 0.1812899477048228, 'fraction_numerical': 0.0, 'mean_word_length': 3.0902612826603324, 'pattern_counts': {'":': 2, '<': 7, '<?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': '7057959', 'n_tokens_mistral': 610, 'n_tokens_neox': 613, 'n_words': 138}