<commit_before>= content_for :h1 do
  = text("pages.global_settings")

= content_for :sidebar do
  = render("admin/shared/sidenav_global", sidenav_tab: "log_events")

%h2= text("pages.event_log")

= form_tag(log_events_path, method: :get) do

  .row
    .span3
      = label_tag(text(:query))
      = text_field_tag(:query, params[:query])

    .span3
      = label_tag(text(:start_date))
      = text_field_tag(:start_date, params[:start_date], class: :datepicker__data)

  .row
    .span3
      = label_tag(text(:event_filter))
      - option_list = LogEvent::LogEventSearcher::ALLOWED_EVENTS.map { |event| [text(event), event] }
      = select_tag(:events,
        options_for_select(option_list, params[:events]),
        multiple: true,
        class: "js--chosen",
        data: { placeholder: text(:event_placeholder) })

    .span3
      = label_tag(text(:end_date))
      = text_field_tag(:end_date, params[:end_date], class: :datepicker__data)

  .row
    .span3
      = submit_tag(text(:filter), class: "btn")


= will_paginate(@log_events)

%table.table.table-striped.table-hover
  %thead
    %tr
      %th= text("event_time")
      %th= text("event")
      %th= text("object")
      %th= text("user_label")
<commit_msg>[#150534] Fix reference to LogEventSearcher, it is not in LogEvent (#2045)<commit_after>= content_for :h1 do
  = text("pages.global_settings")

= content_for :sidebar do
  = render("admin/shared/sidenav_global", sidenav_tab: "log_events")

%h2= text("pages.event_log")

= form_tag(log_events_path, method: :get) do

  .row
    .span3
      = label_tag(text(:query))
      = text_field_tag(:query, params[:query])

    .span3
      = label_tag(text(:start_date))
      = text_field_tag(:start_date, params[:start_date], class: :datepicker__data)

  .row
    .span3
      = label_tag(text(:event_filter))
      - option_list = LogEventSearcher::ALLOWED_EVENTS.map { |event| [text(event), event] }
      = select_tag(:events,
        options_for_select(option_list, params[:events]),
        multiple: true,
        class: "js--chosen",
        data: { placeholder: text(:event_placeholder) })

    .span3
      = label_tag(text(:end_date))
      = text_field_tag(:end_date, params[:end_date], class: :datepicker__data)

  .row
    .span3
      = submit_tag(text(:filter), class: "btn")


= will_paginate(@log_events)

%table.table.table-striped.table-hover
  %thead
    %tr
      %th= text("event_time")
      %th= text("event")
      %th= text("object")
      %th= text("user_label")

{'fraction_non_alphanumeric': 0.15149105367793242, 'fraction_numerical': 0.009542743538767396, 'mean_word_length': 3.5170556552962298, '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': '1768972', 'n_tokens_mistral': 905, 'n_tokens_neox': 881, 'n_words': 148}