<commit_before>class Xlsx::ThesesList < Xlsx::XlsxStub

  def initialize(theses)
    super()

    @theses = theses

  end

  protected
  def xlsx_content
    sheet.page_setup.set(:orientation => :landscape, :paper_size => 10)

    sheet.add_row [I18n.t(:label_thesis_singular), I18n.t(:label_department_singular),
      I18n.t(:label_field_of_study_plural), I18n.t(:label_supervisor_singular),
      I18n.t(:label_thesis_degree_candidate), I18n.t(:label_status)], :style => styles[:header]
    @theses.each do |thesis|
      sheet.add_row [thesis.title.to_s, thesis.department.name.to_s,
        thesis.courses.collect{|c| c.name }.join(", ").to_s,
        thesis.supervisor.full_name.to_s,
        thesis.accepted_students.collect{|s| s.surname_name }.join(", ").to_s,
        I18n.t("label_status_#{thesis.state}").to_s]
    end
    sheet.auto_filter = "A1:F#{@theses.length}"
    sheet.column_widths 40

  end

end<commit_msg>Fix theses XLS table filters<commit_after>class Xlsx::ThesesList < Xlsx::XlsxStub

  def initialize(theses)
    super()

    @theses = theses

  end

  protected
  def xlsx_content
    sheet.page_setup.set(:orientation => :landscape, :paper_size => 10)

    sheet.add_row [I18n.t(:label_thesis_singular), I18n.t(:label_department_singular),
      I18n.t(:label_field_of_study_plural), I18n.t(:label_supervisor_singular),
      I18n.t(:label_thesis_degree_candidate), I18n.t(:label_status)], :style => styles[:header]
    @theses.each do |thesis|
      sheet.add_row [thesis.title.to_s, thesis.department.name.to_s,
        thesis.courses.collect{|c| c.name }.join(", ").to_s,
        thesis.supervisor.full_name.to_s,
        thesis.accepted_students.collect{|s| s.surname_name }.join(", ").to_s,
        I18n.t("label_status_#{thesis.state}").to_s]
    end

    sheet.add_table "A1:F#{@theses.length}", :name => I18n.t(:label_thesis_list)
    sheet.column_widths 40

  end

end
{'fraction_non_alphanumeric': 0.14420555846879915, 'fraction_numerical': 0.02097535395909806, 'mean_word_length': 3.9817232375979112, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '4202712', 'n_tokens_mistral': 786, 'n_tokens_neox': 743, 'n_words': 101}