<commit_before>!!! XML
!!!
%html{ xmlns: 'http://www.w3.org/1999/xhtml'  }
  %head
    %title Locomotive

    = csrf_meta_tag

    - key = Rails.application.config.session_options[:key]

    %meta{ name: 'key-param', content: Rails.application.config.session_options[:key] }
    %meta{ name: 'key-token', content: cookies[key] }

    %script{ type: 'text/javascript' }
      :plain
        window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' }

    = stylesheet_link_tag     'locomotive/inline_editor', media: 'screen'
    = javascript_include_tag  'locomotive/inline_editor'

    %script{ type: 'text/javascript' }
      :plain
        window.locale                     = '#{I18n.locale}';
        window.content_locale             = '#{::Mongoid::Fields::I18n.locale}';

        window.Locomotive.current_site    = new Locomotive.Models.Site(#{escape_json to_json(current_site)});
        window.Locomotive.current_account = new Locomotive.Models.Account(#{escape_json to_json(current_locomotive_account)});

        $(document).ready(function() {

          window.application_view = new Locomotive.Views.InlineEditor.ApplicationView();
          window.application_view.render();

        });

    = render '/locomotive/content_assets/picker'

  %body
    #page
      %iframe{ src: request.fullpath.gsub('_admin', '_edit'), scrolling: 'no', frameborder: '0' }

    #toolbar
      .background
      .inner
        %h1{ class: 'loading', :'data-disabled-status' => t('.statuses.disabled'), :'data-loading-status' => t('.statuses.loading') }= t('.statuses.loading')

        .back.col
          = link_to_icon :home, '#', class: 'button back', title: t('.buttons.back'), alt: t('.buttons.back')

        - if current_site.locales.size > 1
          .lang.col
            %label= t('.labels.lang')
            = render '/locomotive/shared/locale_picker_link'

        .editing-mode.col
          %label= t('.labels.editing_mode')
          = check_box_tag 'edit', '1', false

        .element-actions.col{ style: 'display: none' }<commit_msg>Enabled scrolling in iframe<commit_after>!!! XML
!!!
%html{ xmlns: 'http://www.w3.org/1999/xhtml'  }
  %head
    %title Locomotive

    = csrf_meta_tag

    - key = Rails.application.config.session_options[:key]

    %meta{ name: 'key-param', content: Rails.application.config.session_options[:key] }
    %meta{ name: 'key-token', content: cookies[key] }

    %script{ type: 'text/javascript' }
      :plain
        window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' }

    = stylesheet_link_tag     'locomotive/inline_editor', media: 'screen'
    = javascript_include_tag  'locomotive/inline_editor'

    %script{ type: 'text/javascript' }
      :plain
        window.locale                     = '#{I18n.locale}';
        window.content_locale             = '#{::Mongoid::Fields::I18n.locale}';

        window.Locomotive.current_site    = new Locomotive.Models.Site(#{escape_json to_json(current_site)});
        window.Locomotive.current_account = new Locomotive.Models.Account(#{escape_json to_json(current_locomotive_account)});

        $(document).ready(function() {

          window.application_view = new Locomotive.Views.InlineEditor.ApplicationView();
          window.application_view.render();

        });

    = render '/locomotive/content_assets/picker'

  %body
    #page
      %iframe{ src: request.fullpath.gsub('_admin', '_edit'), frameborder: '0' }

    #toolbar
      .background
      .inner
        %h1{ class: 'loading', :'data-disabled-status' => t('.statuses.disabled'), :'data-loading-status' => t('.statuses.loading') }= t('.statuses.loading')

        .back.col
          = link_to_icon :home, '#', class: 'button back', title: t('.buttons.back'), alt: t('.buttons.back')

        - if current_site.locales.size > 1
          .lang.col
            %label= t('.labels.lang')
            = render '/locomotive/shared/locale_picker_link'

        .editing-mode.col
          %label= t('.labels.editing_mode')
          = check_box_tag 'edit', '1', false

        .element-actions.col{ style: 'display: none' }
{'fraction_non_alphanumeric': 0.15515979507196878, 'fraction_numerical': 0.006343010490363503, 'mean_word_length': 2.789279112754159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3431977', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1281, 'n_words': 215}