<commit_before><%= jquery do %>
    Gws_Monitor_Topic.render();

    switch ("<%= @item[:state_of_the_answers_hash]["#{@cur_group.id}"] %>"){
      case "public":
        $('.public').hide();
        $('.preparation').show();
        $('.primary').show();
        break;
      case "answered":
        $('.public').show();
        $('.preparation').show();
        $('.primary').hide();
        break;
      case "preparation":
        $('.public').show();
        $('.preparation').hide();
        $('.primary').hide();
        break;
      case "question_not_applicable":
        $('.public').show();
        $('.preparation').hide();
        $('.primary').hide();
        break;
    }
<% end %>

<div class="gws-board gws-board-thread">
  <article class="topic" id="post-<%= @item.id %>">
    <header>
      <h2>
        <span class="name"><%= @item.name %></span>
        <span class="categories">
          <% @item.categories.each do |category| %>
            <%= link_to category.trailing_name, gws_monitor_category_topics_path(category: category.id),
                        class: "gws-category-label", style: category_label_css(category) %>
          <% end %>
        </span>
      </h2>
      <nav class="meta">
        <span class="user"><%= @item.contributor_name.presence || @item.user_long_name %></span>
        <span class="datetime"><%= @item.updated.strftime("%Y/%m/%d %H:%M") %></span>
      </nav>
    </header>

    <div class="body markdown-body">
      <%= @item.html %>
    </div>

    <% if @item.files.present? %>
    <div class="files">
      <% @item.files.each do |file| %>
        <span id="file-<%= file.id %>">
          <img src="/assets/img/gws/ic-file.png" alt="" />
          <%= link_to file.humanized_name, file.url, class: "icon-#{file.extname}", target: '_blank' %>
        </span>
      <% end %>
    </div>
    <% end %>

    <% if @item.severity.present? %>
    <div class="status">
      <span class="severity">
        <label><%= @model.t(:severity) %></label>: <%= @item.label(:severity) %>
      </span>
    </div>
    <% end %>

    <% if @item.permit_comment? && @model.allowed?(:edit, @cur_user, site: @cur_site) && @item.comment(@cur_group.id).blank && !@item.closed? && ( !@item.readable_group_ids.include?(@cur_group.id) && @item.attend_group_ids.include?(@cur_group.id) ) %>
    <div class="menu">
      <%= hidden_field_tag "item_id", @item.id %>
      <button class="public btn"><%= t 'gws/monitor.links.public' %></button>
      <button class="preparation btn"><%= t 'gws/monitor.links.preparation' %></button>
      <%= link_to(t('gws/monitor.links.comment'), @category.present? ? new_gws_monitor_category_topic_parent_comment_path(topic_id: @item.id, parent_id: @item.id) : new_gws_monitor_topic_parent_comment_path(topic_id: @item.id, parent_id: @item.id),
        class: "btn primary") %>
    </div>
    <% end %>
  </article>

  <% if @item.children.present? %>
  <div class="comments">
    <%= render partial: 'gws/monitor/comments/comment', collection: @item.descendants, locals: { parent: @item, recursion: false } %>
  </div>
  <% end %>

  <% if @item.subscribed_groups.present? %>
  <%= render partial: 'gws/monitor/main/subscribed_groups' %>
  <% end %>

  <% if controller_path == "gws/monitor/management/topics" %>
  <article class="topic">
    <header>
      <h2><%= t('gws/monitor.topic.export_csv') %></h2>
    </header>
    <div class="menu"><commit_msg>[modify] modify blank method<commit_after><%= jquery do %>
    Gws_Monitor_Topic.render();

    switch ("<%= @item[:state_of_the_answers_hash]["#{@cur_group.id}"] %>"){
      case "public":
        $('.public').hide();
        $('.preparation').show();
        $('.primary').show();
        break;
      case "answered":
        $('.public').show();
        $('.preparation').show();
        $('.primary').hide();
        break;
      case "preparation":
        $('.public').show();
        $('.preparation').hide();
        $('.primary').hide();
        break;
      case "question_not_applicable":
        $('.public').show();
        $('.preparation').hide();
        $('.primary').hide();
        break;
    }
<% end %>

<div class="gws-board gws-board-thread">
  <article class="topic" id="post-<%= @item.id %>">
    <header>
      <h2>
        <span class="name"><%= @item.name %></span>
        <span class="categories">
          <% @item.categories.each do |category| %>
            <%= link_to category.trailing_name, gws_monitor_category_topics_path(category: category.id),
                        class: "gws-category-label", style: category_label_css(category) %>
          <% end %>
        </span>
      </h2>
      <nav class="meta">
        <span class="user"><%= @item.contributor_name.presence || @item.user_long_name %></span>
        <span class="datetime"><%= @item.updated.strftime("%Y/%m/%d %H:%M") %></span>
      </nav>
    </header>

    <div class="body markdown-body">
      <%= @item.html %>
    </div>

    <% if @item.files.present? %>
    <div class="files">
      <% @item.files.each do |file| %>
        <span id="file-<%= file.id %>">
          <img src="/assets/img/gws/ic-file.png" alt="" />
          <%= link_to file.humanized_name, file.url, class: "icon-#{file.extname}", target: '_blank' %>
        </span>
      <% end %>
    </div>
    <% end %>

    <% if @item.severity.present? %>
    <div class="status">
      <span class="severity">
        <label><%= @model.t(:severity) %></label>: <%= @item.label(:severity) %>
      </span>
    </div>
    <% end %>

    <% if @item.permit_comment? && @model.allowed?(:edit, @cur_user, site: @cur_site) && @item.comment(@cur_group.id).blank? && !@item.closed? && ( !@item.readable_group_ids.include?(@cur_group.id) && @item.attend_group_ids.include?(@cur_group.id) ) %>
    <div class="menu">
      <%= hidden_field_tag "item_id", @item.id %>
      <button class="public btn"><%= t 'gws/monitor.links.public' %></button>
      <button class="preparation btn"><%= t 'gws/monitor.links.preparation' %></button>
      <%= link_to(t('gws/monitor.links.comment'), @category.present? ? new_gws_monitor_category_topic_parent_comment_path(topic_id: @item.id, parent_id: @item.id) : new_gws_monitor_topic_parent_comment_path(topic_id: @item.id, parent_id: @item.id),
        class: "btn primary") %>
    </div>
    <% end %>
  </article>

  <% if @item.children.present? %>
  <div class="comments">
    <%= render partial: 'gws/monitor/comments/comment', collection: @item.descendants, locals: { parent: @item, recursion: false } %>
  </div>
  <% end %>

  <% if @item.subscribed_groups.present? %>
  <%= render partial: 'gws/monitor/main/subscribed_groups' %>
  <% end %>

  <% if controller_path == "gws/monitor/management/topics" %>
  <article class="topic">
    <header>
      <h2><%= t('gws/monitor.topic.export_csv') %></h2>
    </header>
    <div class="menu">
{'fraction_non_alphanumeric': 0.2176504797906368, 'fraction_numerical': 0.0011631288165164292, 'mean_word_length': 2.8174250832408436, 'pattern_counts': {'":': 8, '<': 161, '<?xml version=': 0, '>': 161, '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': '6194244', 'n_tokens_mistral': 2485, 'n_tokens_neox': 2297, 'n_words': 388}