<commit_before>// Type definitions for jQuery contextMenu 1.5.25
// Project: http://medialize.github.com/jQuery-contextMenu/
// Definitions by: <NAME> <https://github.com/nvivo/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

/// <reference path="../jquery/jquery.d.ts" />

interface JQueryContextMenuOptions {
    selector: string;
    appendTo?: string;
    trigger?: string;
    autoHide?: boolean;
    delay?: number;
    determinePosition?: (menu) => void;
    position?: (opt, x, y) => void;
    positionSubmenu?: (menu) => void;
    zIndex?: number;
    animation?: {
        duration?: number;
        show?: string;
        hide?: string;
    };
    events?: {
        show?: () => void;
        hide?: () => void;
    };
    callback?: (...args: any[]) => any;
    items: any;
}

interface JQueryStatic {
    contextMenu(options?: JQueryContextMenuOptions): JQuery;<commit_msg>jquery.ContextMenu - Fixed signature for callback option<commit_after>// Type definitions for jQuery contextMenu 1.5.25
// Project: http://medialize.github.com/jQuery-contextMenu/
// Definitions by: <NAME> <https://github.com/nvivo/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

/// <reference path="../jquery/jquery.d.ts" />

interface JQueryContextMenuOptions {
    selector: string;
    appendTo?: string;
    trigger?: string;
    autoHide?: boolean;
    delay?: number;
    determinePosition?: (menu) => void;
    position?: (opt, x, y) => void;
    positionSubmenu?: (menu) => void;
    zIndex?: number;
    animation?: {
        duration?: number;
        show?: string;
        hide?: string;
    };
    events?: {
        show?: () => void;
        hide?: () => void;
    };
    callback?: (key: any, options: any) => any;
    items: any;
}

interface JQueryStatic {
    contextMenu(options?: JQueryContextMenuOptions): JQuery;
{'fraction_non_alphanumeric': 0.1629908552985476, 'fraction_numerical': 0.004303388918773534, 'mean_word_length': 2.9574468085106385, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, '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': '5552165', 'n_tokens_mistral': 560, 'n_tokens_neox': 557, 'n_words': 136}