<commit_before>Lalala::Markdown::Preview.hookup

ActiveAdmin.setup do |config|

  # Set a default site title
  config.site_title = [
    "Lalala",
    Rails.application.class.name.sub(/^Client/, '').split("::").first.titlecase,
  ].join(' - ')

  if !Rails.env.production?
    config.site_title += " (#{Rails.env.to_s.titlecase})"
  end

  # Set the root namespace to /lalala
  config.default_namespace = :lalala

  # Disable the comments
  config.allow_comments = false

  # Set the custom views
  config.view_factory.register :title_bar => Lalala::Views::TitleBar

end
<commit_msg>Prevent double asset loading<commit_after>Lalala::Markdown::Preview.hookup

ActiveAdmin.setup do |config|

  # Set a default site title
  config.site_title = [
    "Lalala",
    Rails.application.class.name.sub(/^Client/, '').split("::").first.titlecase,
  ].join(' - ')

  if !Rails.env.production?
    config.site_title += " (#{Rails.env.to_s.titlecase})"
  end

  # Set the root namespace to /lalala
  config.default_namespace = :lalala

  # Disable the comments
  config.allow_comments = false

  # Set the custom views
  config.view_factory.register :title_bar => Lalala::Views::TitleBar

  # reset default_assets to prevent double loading
  config.clear_stylesheets!
  config.clear_javascripts!

end

{'fraction_non_alphanumeric': 0.13110938712179984, 'fraction_numerical': 0.0, 'mean_word_length': 3.9615384615384617, 'pattern_counts': {'":': 2, '<': 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': '347190', 'n_tokens_mistral': 442, 'n_tokens_neox': 429, 'n_words': 91}