<commit_before>.xhtml.authorable_xhtml
  .embeddable_tools
    .drag_handle ≣
    = link_to "edit", edit_embeddable_xhtml_path(embeddable), :remote => true
    |
    = link_to "remove", page_remove_embeddable_path(page, embeddable), :method => :post, :data => {:confirm => 'Are you sure?'}
  - if embeddable.content.blank?
    .xhtml
      Embeddable text will go here.
  - else
    .xhtml= embeddable.content.html_safe<commit_msg>Open the edit modal for XHTML embeddable if blank<commit_after>.xhtml.authorable_xhtml
  .embeddable_tools
    .drag_handle ≣
    = link_to "edit", edit_embeddable_xhtml_path(embeddable), :remote => true, :id => "edit-embed-xhtml-#{embeddable.id}"
    |
    = link_to "remove", page_remove_embeddable_path(page, embeddable), :method => :post, :data => {:confirm => 'Are you sure?'}
    - if embeddable.content.blank?
      :javascript
        $("a[id^=edit-embed-xhtml-#{embeddable.id}]").click()
  - if embeddable.content.blank?
    .xhtml
      Embeddable text will go here.
  - else
    .xhtml= embeddable.content.html_safe
{'fraction_non_alphanumeric': 0.13718070009460737, 'fraction_numerical': 0.0, 'mean_word_length': 3.7443946188340806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '6122942', 'n_tokens_mistral': 385, 'n_tokens_neox': 366, 'n_words': 75}