<commit_before>/**
 * @namespace JCL.canvas
 */

JCL.Canvas = function Canvas(canvasId, options) {

    this.dom = document.getElementById(canvasId);
    this.ctx = this.dom.getContext("2d");
    this.enabled = (this.ctx !== undefined);

    if (this.enabled) {

        // Handle Manual Height/Width Options
        if (options.width) { this.dom.width = window.innerWidth; }
        if (options.height) { this.dom.height = window.innerHeight; }

        // Handle Full Screen Option
        if (options.fullscreen) {
            this.dom.width = window.innerWidth;
            this.dom.height = window.innerHeight;
        }

        // Handle Z-Index Option
        if (options.zindex) {
            this.dom.style.zIndex = options.zindex;<commit_msg>Fixed issue with manual canvas sizing.<commit_after>/**
 * @namespace JCL.canvas
 */

JCL.Canvas = function Canvas(canvasId, options) {

    this.dom = document.getElementById(canvasId);
    this.ctx = this.dom.getContext("2d");
    this.enabled = (this.ctx !== undefined);

    if (this.enabled) {

        // Handle Manual Height/Width Options
        if (options.width) { this.dom.width = options.width; }
        if (options.height) { this.dom.height = options.height; }

        // Handle Full Screen Option
        if (options.fullscreen) {
            this.dom.width = window.innerWidth;
            this.dom.height = window.innerHeight;
        }

        // Handle Z-Index Option
        if (options.zindex) {
            this.dom.style.zIndex = options.zindex;
{'fraction_non_alphanumeric': 0.1293499671700591, 'fraction_numerical': 0.0013131976362442547, 'mean_word_length': 2.2356687898089174, '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': '1308279', 'n_tokens_mistral': 453, 'n_tokens_neox': 439, 'n_words': 94}