<commit_before>.humpyard-dialog-title
  = I18n.t 'humpyard_cms.pages.edit.title'
.dialog-columns
  .left-dialog-column.with-toolbar.with-search
    .dialog-pane
      #hy-page-treeview
      = render :partial => 'tree', :locals => {:pages => @pages, :page => @page}
      #humpyard-page-types-menu.dialog-menu
        - Humpyard::config.page_types.each do |name, type|
          = link_to I18n.t('humpyard_cms.pages.edit.add', :page_type => type.model_name.human), new_humpyard_page_path(:type => name), :'data-dialog-link' => true
    .dialog-search
      Pages
    .dialog-buttons.humpyard-form-buttons
      %a{:'data-icon' => "ui-icon-circle-plus", :'data-dialog-menu' => '#humpyard-page-types-menu'} 
        = I18n.t('humpyard_cms.pages.edit.add', :page_type => Humpyard::Page.model_name.human)
  .right-dialog-column.with-toolbar.with-search
    - if @page
      = render :partial => 'edit', :locals => {:page => @page}
    - else
      .dialog-pane
        Nothing selected
.humpyard-dialog-buttons
<commit_msg>Fix page dialog tree markup<commit_after>.humpyard-dialog-title
  = I18n.t 'humpyard_cms.pages.edit.title'
.dialog-columns
  .left-dialog-column.with-toolbar.with-search
    .dialog-pane
      #hy-page-treeview
        = render :partial => 'tree', :locals => {:pages => @pages, :page => @page}
      #humpyard-page-types-menu.dialog-menu
        - Humpyard::config.page_types.each do |name, type|
          = link_to I18n.t('humpyard_cms.pages.edit.add', :page_type => type.model_name.human), new_humpyard_page_path(:type => name), :'data-dialog-link' => true
    .dialog-search
      Pages
    .dialog-buttons.humpyard-form-buttons
      %a{:'data-icon' => "ui-icon-circle-plus", :'data-dialog-menu' => '#humpyard-page-types-menu'} 
        = I18n.t('humpyard_cms.pages.edit.add', :page_type => Humpyard::Page.model_name.human)
  .right-dialog-column.with-toolbar.with-search
    - if @page
      = render :partial => 'edit', :locals => {:page => @page}
    - else
      .dialog-pane
        Nothing selected
.humpyard-dialog-buttons

{'fraction_non_alphanumeric': 0.1694255111976631, 'fraction_numerical': 0.005842259006815969, 'mean_word_length': 3.085487077534791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '2260192', 'n_tokens_mistral': 754, 'n_tokens_neox': 732, 'n_words': 108}