<commit_before><?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once('class.TicketAdminPage.php');
require_once('class.FlipsideTicketRequestPDF.php');
$page = new TicketAdminPage('Burning Flipside - Tickets');

$page->add_js_from_src('//cdn.ckeditor.com/4.4.5/full/ckeditor.js');
$page->add_js_from_src('//cdn.ckeditor.com/4.4.5/full/adapters/jquery.js');
$page->add_js_from_src('js/pdf.js');

$pdf = new FlipsideTicketRequestPDF(FALSE);

    $page->body .= '
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Request PDF</h1>
    </div>
</div>
<div class="row">
    <textarea id="pdf-source" style="width: 100%">'.$pdf->source.'</textarea>
</div>
<div class="row">
    <button onclick="gen_preview()">Preview</button><button onclick="save()">Save</button>
</div>
<div class="row">
    {$ticket_count}    => The number of tickets in the request<br/><commit_msg>Remove old class dependency from pdf.php<commit_after><?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once('class.TicketAdminPage.php');
$page = new TicketAdminPage('Burning Flipside - Tickets');

$page->add_js_from_src('//cdn.ckeditor.com/4.4.5/full/ckeditor.js', false);
$page->add_js_from_src('//cdn.ckeditor.com/4.4.5/full/adapters/jquery.js', false);
$page->add_js_from_src('js/pdf.js');


    $page->body .= '
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Request PDF</h1>
    </div>
</div>
<div class="row">
    <textarea id="pdf-source" style="width: 100%"></textarea>
</div>
<div class="row">
    <button onclick="gen_preview()">Preview</button><button onclick="save()">Save</button>
</div>
<div class="row">
    {$ticket_count}    => The number of tickets in the request<br/>
{'fraction_non_alphanumeric': 0.20974212034383954, 'fraction_numerical': 0.016045845272206302, 'mean_word_length': 5.169611307420495, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 50, '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': '3546489', 'n_tokens_mistral': 668, 'n_tokens_neox': 635, 'n_words': 102}