<commit_before>// Type definitions for dragster 0.1
// Project: https://github.com/bensmithett/dragster
// Definitions by: <NAME> <https://github.com/zskovacs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

// Type definitions for dragster 0.1
// Project: https://github.com/bensmithett/dragster
// Definitions by: <NAME> <https://github.com/zskovacs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace Dragster {
    interface Dragster {
        removeListeners(): void;
        reset(): void;
    }

    interface DragsterStatic {
        (elem: HTMLElement): Dragster;
        new (elem: HTMLElement): Dragster;
    }
}

// window.Dragster
declare var Dragster: Dragster.DragsterStatic;

// import Dragster = require('dragster');
declare module 'dragster' {
    interface ExportedDragster extends Dragster.Dragster {
        (elem: HTMLElement): Dragster.Dragster;
        new (elem: HTMLElement): Dragster.Dragster;
    }
    var Dragster: ExportedDragster;
    export = Dragster;
}<commit_msg>Improve exports, fix header duplication<commit_after>// Type definitions for dragster 0.1
// Project: https://github.com/bensmithett/dragster
// Definitions by: <NAME> <https://github.com/zskovacs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace Dragster {
    interface Dragster {
        removeListeners(): void;
        reset(): void;
    }

    interface DragsterStatic {
        (elem: HTMLElement): Dragster;
        new (elem: HTMLElement): Dragster;
    }
}

// Support through imports.
declare var Dragster: Dragster.DragsterStatic;
export = Dragster;

// Support as a global
export as namespace Dragster;
{'fraction_non_alphanumeric': 0.11840562719812427, 'fraction_numerical': 0.0035169988276670576, 'mean_word_length': 3.515873015873016, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 9, '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': '1635080', 'n_tokens_mistral': 517, 'n_tokens_neox': 515, 'n_words': 125}