<commit_before>import spacePen = require("atom-space-pen-views");
import $ = require('jquery');

interface Rect {
    left: number;
    right: number;
    top: number;
    bottom: number;
}

class TooltipView extends spacePen.View {

    constructor(public rect: Rect) {
        super();
        $(document.body).append(this[0]);
        this.updatePosition();
    }

    private inner: JQuery;
    static content() {
        return this.div({ class: 'atom-typescript-tooltip tooltip' }, () => {
            this.div({ class: 'tooltip-inner', outlet: 'inner' })
        });
    }

    updateText(text: string) {
        this.inner.html(text);<commit_msg>Fix issue where space pen would throw when it shouldnt (require was getting eatin by compiler?)<commit_after>import spacePen = require('atom-space-pen-views');
var $ = spacePen.jQuery;

interface Rect {
    left: number;
    right: number;
    top: number;
    bottom: number;
}

class TooltipView extends spacePen.View {

    constructor(public rect: Rect) {
        super();
        $(document.body).append(this[0]);
        this.updatePosition();
    }

    private inner: JQuery;

    static content() {
        return this.div({ class: 'atom-typescript-tooltip tooltip' }, () => {
            this.div({ class: 'tooltip-inner', outlet: 'inner' })
        });
    }

    updateText(text: string) {
        this.inner.html(text);
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.001443001443001443, 'mean_word_length': 2.7085561497326203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '963103', 'n_tokens_mistral': 414, 'n_tokens_neox': 404, 'n_words': 100}