<commit_before>$(function() {
  if ($(".paper.scrollprinter")) {
    $(".paper.scrollprinter").after('<div class="printerfront"><div class="drawing"><canvas></canvas></div></div>');

    var back = $(".printerfront canvas")[0]
    var ctx = back.getContext("2d");

    ctx.fillStyle = "rgb(40,40,40)";
    ctx.fillRect (0, 20, 300, 200);
    ctx.beginPath();
    ctx.moveTo(0, 20);
    ctx.lineTo(10, 10);
    ctx.lineTo(290, 10);
    ctx.lineTo(300, 20);
    ctx.closePath();
    ctx.fill();

    ctx.beginPath();
    ctx.moveTo(10, 10);
    ctx.lineTo(0, 20);
    ctx.lineTo(300, 20);
    ctx.lineTo(290, 10);
    ctx.lineWidth = 2;<commit_msg>This returns an array, which is always truthy.<commit_after>$(function() {
  if ($(".paper.scrollprinter")[0]) {
    $(".paper.scrollprinter").after('<div class="printerfront"><div class="drawing"><canvas></canvas></div></div>');

    var back = $(".printerfront canvas")[0]
    var ctx = back.getContext("2d");

    ctx.fillStyle = "rgb(40,40,40)";
    ctx.fillRect (0, 20, 300, 200);
    ctx.beginPath();
    ctx.moveTo(0, 20);
    ctx.lineTo(10, 10);
    ctx.lineTo(290, 10);
    ctx.lineTo(300, 20);
    ctx.closePath();
    ctx.fill();

    ctx.beginPath();
    ctx.moveTo(10, 10);
    ctx.lineTo(0, 20);
    ctx.lineTo(300, 20);
    ctx.lineTo(290, 10);
    ctx.lineWidth = 2;
{'fraction_non_alphanumeric': 0.2183734939759036, 'fraction_numerical': 0.07906626506024096, 'mean_word_length': 3.3289902280130295, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3608374', 'n_tokens_mistral': 577, 'n_tokens_neox': 496, 'n_words': 90}