<commit_before>class HushCmsAdminController < ApplicationController
  layout 'hush_cms_admin'
  before_filter :authenticate
  helper :hush_cms_admin
  
  uses_tiny_mce(:options => {:theme => 'advanced',
    :theme_advanced_toolbar_location => "top",
    :theme_advanced_toolbar_align => "center",
    :theme_advanced_resizing => true,
    :theme_advanced_resize_horizontal => false,
    :paste_auto_cleanup_on_paste => true,
    :theme_advanced_blockformats => %w{h1 h2 h3},
    :theme_advanced_buttons1 => %w{code formatselect bold italic underline strikethrough separator justifyleft justifycenter justifyright indent outdent separator bullist numlist forecolor backcolor separator link unlink image},
    :theme_advanced_buttons2 => %w{tablecontrols},
    :theme_advanced_buttons3 => [],
    :plugins => %w{contextmenu paste table},
    :relative_urls => false,
    :external_image_list_url => ActionController::Routing::Routes.named_routes['images_hush_cms_admin_files'].segments.map(&:to_s).join.gsub(/:format/, 'js'),
    :external_link_list_url => ActionController::Routing::Routes.named_routes['non_images_hush_cms_admin_files'].segments.map(&:to_s).join.gsub(/:format/, 'js')},
    :only => [:new, :create, :edit, :update])<commit_msg>changed regex to fix url<commit_after>class HushCmsAdminController < ApplicationController
  layout 'hush_cms_admin'
  before_filter :authenticate
  helper :hush_cms_admin
  
  uses_tiny_mce(:options => {:theme => 'advanced',
    :theme_advanced_toolbar_location => "top",
    :theme_advanced_toolbar_align => "center",
    :theme_advanced_resizing => true,
    :theme_advanced_resize_horizontal => false,
    :paste_auto_cleanup_on_paste => true,
    :theme_advanced_blockformats => %w{h1 h2 h3},
    :theme_advanced_buttons1 => %w{code formatselect bold italic underline strikethrough separator justifyleft justifycenter justifyright indent outdent separator bullist numlist forecolor backcolor separator link unlink image},
    :theme_advanced_buttons2 => %w{tablecontrols},
    :theme_advanced_buttons3 => [],
    :plugins => %w{contextmenu paste table},
    :relative_urls => false,
    :external_image_list_url => ActionController::Routing::Routes.named_routes['images_hush_cms_admin_files'].segments.map(&:to_s).join.gsub(/\(.:format\)\?/, '.js'),
    :external_link_list_url => ActionController::Routing::Routes.named_routes['non_images_hush_cms_admin_files'].segments.map(&:to_s).join.gsub(/\(.:format\)\?/, '.js')},
    :only => [:new, :create, :edit, :update])
{'fraction_non_alphanumeric': 0.12803180914512924, 'fraction_numerical': 0.004771371769383698, 'mean_word_length': 6.250720461095101, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '1449987', 'n_tokens_mistral': 831, 'n_tokens_neox': 794, 'n_words': 139}