<commit_before>// Type definitions for iScroll 4.2
// Project: http://cubiq.org/iscroll-4
// Definitions by: <NAME> <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped


interface iScrollEvent {
    (e: Event): void;
}

interface iScrollOptions {
    hScroll?: bool;
    vScroll?: bool;
    x?: number;
    y?: number;
    bounce?: bool;
    bounceLock?: bool;
    momentum?: bool;
    lockDirection?: bool;
    useTransform?: bool;
    useTransition?: bool;
    topOffset?: number;
    checkDOMChanges?: bool;
    handleClick?: bool;

    // Scrollbar
    hScrollbar?: bool;
    vScrollbar?: bool;
    fixedScrollbar?: bool;
    hideScrollbar?: bool;
    fadeScrollbar?: bool;
    scrollbarClass?: string;

    // Zoom
    zoom?: bool;
    zoomMin?: number;
    zoomMax?: number;
    doubleTapZoom?: number;
    wheelAction?: string;

    // Snap
    snap?: bool;
    snapThreshold?: number;

    // Events
    onRefresh?: iScrollEvent;
    onBeforeScrollStart?: iScrollEvent;
    onScrollStart?: iScrollEvent;
    onBeforeScrollMove?: iScrollEvent;
    onScrollMove?: iScrollEvent;
    onBeforeScrollEnd?: iScrollEvent;
    onScrollEnd?: iScrollEvent;
    onTouchEnd?: iScrollEvent;
    onDestroy?: iScrollEvent;
    onZoomStart?: iScrollEvent;
    onZoom?: iScrollEvent;
    onZoomEnd?: iScrollEvent;
}

class iScroll {

    constructor (element: string);
    constructor (element: string, options: iScrollOptions);

    destroy(): void;
    refresh(): void;
    scrollTo(x: number, y: number, time: number, relative: bool): void;
    scrollToElement(element: string, time: number): void;
    scrollToPage(pageX: number, pageY: number, time: number): void;
    disable(): void;
    enalbe(): void;<commit_msg>Fix iScroll options definitions<commit_after>// Type definitions for iScroll 4.2
// Project: http://cubiq.org/iscroll-4
// Definitions by: <NAME> <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped


interface iScrollEvent {
    (e: Event): void;
}

interface iScrollOptions {
    hScroll?: bool;
    vScroll?: bool;
    x?: number;
    y?: number;
    bounce?: bool;
    bounceLock?: bool;
    momentum?: bool;
    lockDirection?: bool;
    useTransform?: bool;
    useTransition?: bool;
    topOffset?: number;
    checkDOMChanges?: bool;
    handleClick?: bool;

    // Scrollbar
    hScrollbar?: bool;
    vScrollbar?: bool;
    fixedScrollbar?: bool;
    hideScrollbar?: bool;
    fadeScrollbar?: bool;
    scrollbarClass?: string;

    // Zoom
    zoom?: bool;
    zoomMin?: number;
    zoomMax?: number;
    doubleTapZoom?: number;
    wheelAction?: string;

    // Snap
    snap?: any;
    snapThreshold?: number;

    // Events
    onRefresh?: iScrollEvent;
    onBeforeScrollStart?: iScrollEvent;
    onScrollStart?: iScrollEvent;
    onBeforeScrollMove?: iScrollEvent;
    onScrollMove?: iScrollEvent;
    onBeforeScrollEnd?: iScrollEvent;
    onScrollEnd?: iScrollEvent;
    onTouchEnd?: iScrollEvent;
    onDestroy?: iScrollEvent;
    onZoomStart?: iScrollEvent;
    onZoom?: iScrollEvent;
    onZoomEnd?: iScrollEvent;
}

class iScroll {

    constructor (element: string);
    constructor (element: string, options: iScrollOptions);

    destroy(): void;
    refresh(): void;
    scrollTo(x: number, y: number, time: number, relative: bool): void;
    scrollToElement(element: string, time: number): void;
    scrollToPage(pageX: number, pageY: number, time: number): void;
    disable(): void;
    enalbe(): void;
{'fraction_non_alphanumeric': 0.12574341546304163, 'fraction_numerical': 0.0016992353440951572, 'mean_word_length': 3.3821339950372207, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '5414931', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1085, 'n_words': 282}