<commit_before>import { assert } from "chai";

import { Utility } from "../../tests/utility";
import { Drawing, IDrawingOptions, PlacementPosition } from "./";

function createDrawing(drawingOptions?: IDrawingOptions): Drawing {
    const path = "./demo/images/image1.jpeg";
    return new Drawing(
        {
            fileName: "test.jpg",
            referenceId: 1,
            path: path,
            dimensions: {
                pixels: {
                    x: 100,
                    y: 100,
                },
                emus: {
                    x: 100 * 9525,
                    y: 100 * 9525,
                },
            },
        },
        drawingOptions,
    );
}

describe("Drawing", () => {
    let currentBreak: Drawing;

    describe("#constructor()", () => {<commit_msg>Revert test changes<commit_after>import { assert } from "chai";
import * as fs from "fs";

import { Utility } from "../../tests/utility";
import { Drawing, IDrawingOptions, PlacementPosition } from "./";

function createDrawing(drawingOptions?: IDrawingOptions): Drawing {
    const path = "./demo/images/image1.jpeg";
    return new Drawing(
        {
            fileName: "test.jpg",
            referenceId: 1,
            stream: fs.createReadStream(path),
            path: path,
            dimensions: {
                pixels: {
                    x: 100,
                    y: 100,
                },
                emus: {
                    x: 100 * 9525,
                    y: 100 * 9525,
                },
            },
        },
        drawingOptions,
    );
}

describe("Drawing", () => {
    let currentBreak: Drawing;

    describe("#constructor()", () => {
{'fraction_non_alphanumeric': 0.13084665482534044, 'fraction_numerical': 0.02605091770278271, 'mean_word_length': 1.3937677053824362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5194994', 'n_tokens_mistral': 506, 'n_tokens_neox': 453, 'n_words': 105}