<commit_before>import * as microtome from "microtome"
import * as THREE from "three"

type PrinterScene = microtome.three_d.PrinterScene;

/**
 * The slice preview previews slices
 */
export class SlicePreview {

    private static _ORIGIN = new THREE.Vector3(0, 0, 0);

    private _pvObjectGroup = new THREE.Group();

    private _reqAnimFrameHandle: number;

    private _slicer: microtome.slicer.AdvancedSlicer 

    public disabled: boolean = false;

    public sliceAt: number;

    constructor(private _canvasHome: HTMLDivElement, private scene: PrinterScene) {
        this.attached();
        this._slicer = new microtome.slicer.AdvancedSlicer(
            this.scene, 0.1, 0.1, 1.5, 2.5, 0, _canvasHome);
    }

    public attached() {
        this._startRendering();
    }

    public detached() {
        this._stopRendering();
    }

    disabledChanged(newValue: boolean, oldValue: boolean) {
        if (!newValue) {
            this._startRendering();
        } else {
            this._stopRendering();
        }
    }


    private _stopRendering() {<commit_msg>Make raft a bit wider for previewing<commit_after>import * as microtome from "microtome"
import * as THREE from "three"

type PrinterScene = microtome.three_d.PrinterScene;

/**
 * The slice preview previews slices
 */
export class SlicePreview {

    private static _ORIGIN = new THREE.Vector3(0, 0, 0);

    private _pvObjectGroup = new THREE.Group();

    private _reqAnimFrameHandle: number;

    private _slicer: microtome.slicer.AdvancedSlicer 

    public disabled: boolean = false;

    public sliceAt: number;

    constructor(private _canvasHome: HTMLDivElement, private scene: PrinterScene) {
        this.attached();
        this._slicer = new microtome.slicer.AdvancedSlicer(
            this.scene, 0.1, 0.1, 1.5, 5, 0, _canvasHome);
    }

    public attached() {
        this._startRendering();
    }

    public detached() {
        this._stopRendering();
    }

    disabledChanged(newValue: boolean, oldValue: boolean) {
        if (!newValue) {
            this._startRendering();
        } else {
            this._stopRendering();
        }
    }


    private _stopRendering() {
{'fraction_non_alphanumeric': 0.10224667583677212, 'fraction_numerical': 0.011462631820265932, 'mean_word_length': 2.698305084745763, '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': '4358625', 'n_tokens_mistral': 703, 'n_tokens_neox': 655, 'n_words': 164}