<commit_before>- content_for :header do
  %h1.page-header
    = @database_memo.name
    = link_to edit_database_memo_path(@database_memo) do
      %i.fa.fa-edit

  - unless @database_memo.linked?
    .box.box-warning
      .box-header
        %h4
          %i.fa.fa-warning= t("unlinked_database")
      .box-body
        = link_to "Delete database information", @database_memo,
          method: :delete,
          class: "btn btn-lg btn-danger",
          data: { confirm: "Delete database #{@database_memo.name} information?" }

  %ol.breadcrumb
    %li
      = link_to root_path do
        %i.fa.fa-home
        Home
    %li.active
      = @database_memo.name

.memo-block.box.box-info.with-border
  .box-body
    .markdown-block
      - if @database_memo.description.present?
        = @database_memo.description_html
      - else
        = t("no_description")
  .box-footer
    = l(@database_memo.updated_at)
    - if @database_memo.logs.exists?
      = link_to database_memo_logs_path(@database_memo.id) do
        %i.fa.fa-clock-o

.box
  .box-header.with-border
    %h2.box-title Tables

  .box-body
    %table.table.table-hover.table-bordered.table-striped{ role: "grid" }
      %tr
        %th Name
        %th Description
        %th Columns
      = render partial: "table_memo", collection: @database_memo.table_memos<commit_msg>Sorts tables in the alphabetical order.<commit_after>- content_for :header do
  %h1.page-header
    = @database_memo.name
    = link_to edit_database_memo_path(@database_memo) do
      %i.fa.fa-edit

  - unless @database_memo.linked?
    .box.box-warning
      .box-header
        %h4
          %i.fa.fa-warning= t("unlinked_database")
      .box-body
        = link_to "Delete database information", @database_memo,
          method: :delete,
          class: "btn btn-lg btn-danger",
          data: { confirm: "Delete database #{@database_memo.name} information?" }

  %ol.breadcrumb
    %li
      = link_to root_path do
        %i.fa.fa-home
        Home
    %li.active
      = @database_memo.name

.memo-block.box.box-info.with-border
  .box-body
    .markdown-block
      - if @database_memo.description.present?
        = @database_memo.description_html
      - else
        = t("no_description")
  .box-footer
    = l(@database_memo.updated_at)
    - if @database_memo.logs.exists?
      = link_to database_memo_logs_path(@database_memo.id) do
        %i.fa.fa-clock-o

.box
  .box-header.with-border
    %h2.box-title Tables

  .box-body
    %table.table.table-hover.table-bordered.table-striped{ role: "grid" }
      %tr
        %th Name
        %th Description
        %th Columns
      = render partial: "table_memo", collection: @database_memo.table_memos.sort_by(&:name)
{'fraction_non_alphanumeric': 0.1210564930300807, 'fraction_numerical': 0.0022010271460014674, 'mean_word_length': 2.3175182481751824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4138198', 'n_tokens_mistral': 965, 'n_tokens_neox': 949, 'n_words': 164}