<commit_before><commit_msg>Relatorio Pesquisa<commit_after>class ReporAllResearchPdf < Prawn::Document
  def initialize(params)
     super(:top_margin => 110, :page_layout => :landscape, :pagesize => "A4")
    #super()
    @report_all_research = params[:report_all_research]
    #header
    repeat(:all) do
      title
      stroke_horizontal_line 0, 720, :at => 485
      logo
    end
    corpo
    foot
  end
  
  def title
     font_size 24
     draw_text [[I18n.t('selecao_admin.links.enrollments.research_report'), I18n.t('selecao_admin.links.enrollments.title_search')]], :at => [150, 520], :style => :bold
     
  end
  
  def foot
      page_count.times do |i|
      go_to_page(i+1)
      # draw_text "Brasília, #{I18n.l Time.now, :format => '%d de %B de %Y'}", :at => [10, -10]     
      #draw_text "ACADEMICO - IFB", :at => [350, -10], :style => :bold
      draw_text "Página #{i+1} de #{page_count}", :at => [645, -10]
    end
  end
  
  def logo
    image "engines/selecao_admin/app/assets/images/selecao_admin/logo-if.png", :at => [0,570], :width => 55, :height => 70
    
  end
  
  def corpo
    font_size 12
    tabela = [[I18n.t('activerecord.attributes.selecao_admin/pdfs.reserve_report'), I18n.t('activerecord.attributes.selecao_admin/pdfs.full_number')]]
    SelecaoAdmin::EnrollmentEnrolled.new.number_of_quotas.each do |dado|
      tabela << ["#{dado.title}", "#{dado.count}"]
    end 
    
    table(tabela, :header => true, :row_colors => ["CCCCCC", "FFFFFF"])
  end
end
{'fraction_non_alphanumeric': 0.15585284280936454, 'fraction_numerical': 0.03678929765886288, 'mean_word_length': 3.262108262108262, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 19, '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': '1767427', 'n_tokens_mistral': 623, 'n_tokens_neox': 574, 'n_words': 112}