<commit_before>div
  button#prev Previous
  button#next Next
  | &nbsp;
  span
    | Page:&nbsp;
    span#page_num
    | &nbsp;/&nbsp;
    span#page_count
canvas#the-canvas[style="border:1px solid black;"]

javascript:
  PDFJS.workerSrc = "/assets/pdfjs-dist/build/pdf.worker.js"
  var url = "#{@presentation.pdf_file.url}";

  var pdfDoc = null,
      pageNum = 1,
      pageRendering = false,
      pageNumPending = null,
      scale = 0.8,
      canvas = document.getElementById("the-canvas"),
      ctx = canvas.getContext("2d");

  /**
   * Get page info from document, resize canvas accordingly, and render page.
   * @param num Page number.
   */
  function renderPage(num) {
    pageRendering = true;
    // Using promise to fetch the page
    pdfDoc.getPage(num).then(function(page) {
      var viewport = page.getViewport(scale);<commit_msg>テキスト情報も載せる<commit_after>div
  button#prev Previous
  button#next Next
  | &nbsp;
  span
    | Page:&nbsp;
    span#page_num
    | &nbsp;/&nbsp;
    span#page_count
canvas#the-canvas[style="border:1px solid black;"]
div
  = simple_format(@presentation.presentation_outline.try(:body))

javascript:
  PDFJS.workerSrc = "/assets/pdfjs-dist/build/pdf.worker.js"
  var url = "#{@presentation.pdf_file.url}";

  var pdfDoc = null,
      pageNum = 1,
      pageRendering = false,
      pageNumPending = null,
      scale = 0.8,
      canvas = document.getElementById("the-canvas"),
      ctx = canvas.getContext("2d");

  /**
   * Get page info from document, resize canvas accordingly, and render page.
   * @param num Page number.
   */
  function renderPage(num) {
    pageRendering = true;
    // Using promise to fetch the page
    pdfDoc.getPage(num).then(function(page) {
      var viewport = page.getViewport(scale);
{'fraction_non_alphanumeric': 0.12839366515837103, 'fraction_numerical': 0.005656108597285068, 'mean_word_length': 3.152582159624413, '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': '7134866', 'n_tokens_mistral': 590, 'n_tokens_neox': 579, 'n_words': 129}