<commit_before>.c-library-work.c-library-work--small.container-fluid
  .row.pl-1
    - works.each do |work|
      .col-3.p-0.pr-1.mb-1
        .c-card.p-1
          .row
            .col-5
              = link_to work_path(work) do
                = ann_image_tag work.work_image, :attachment, size: "140x140", class: "img-fluid rounded"
            .col-7.pl-0
              = link_to work.decorate.local_title, work_path(work), title: work.decorate.local_title, class: "d-inline-block mb-zp5"
              = render "application/components/work_action", work_id: work.id, size: "small"
              c-work-tags :work-id="#{work.id}" :init-tags="#{build_work_tags_json(user, work)}"<commit_msg>Display work action component if the page is own library<commit_after>.c-library-work.c-library-work--small.container-fluid
  .row.pl-1
    - works.each do |work|
      .col-3.p-0.pr-1.mb-1
        .c-card.p-1
          .row
            .col-5
              = link_to work_path(work) do
                = ann_image_tag work.work_image, :attachment, size: "140x140", class: "img-fluid rounded"
            .col-7.pl-0
              = link_to work.decorate.local_title, work_path(work), title: work.decorate.local_title, class: "d-inline-block"
              - if !user_signed_in? || current_user.id == user.id
                .mt-zp5
                  = render "application/components/work_action", work_id: work.id, size: "small"
              c-work-tags :work-id="#{work.id}" :init-tags="#{build_work_tags_json(user, work)}"
{'fraction_non_alphanumeric': 0.14586070959264127, 'fraction_numerical': 0.02102496714848883, 'mean_word_length': 2.076767676767677, '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': '4133455', 'n_tokens_mistral': 538, 'n_tokens_neox': 521, 'n_words': 90}