<commit_before>/// <reference path="../typings/index.d.ts" />
declare namespace JSX {
	interface IntrinsicElements {
		'iron-a11y-announcer': any,
		'iron-a11y-keys-behavior': any,
		'iron-autogrow-textarea': any,
		'iron-behaviors': any,
		'iron-checked-element-behavior': any,
		'iron-collapse': any,
		'iron-dropdown': any,
		'iron-fit-behavior': any,
		'iron-flex-layout': any,
		'iron-form-element-behavior': any,
		'iron-icon': any,
		'iron-icons': any,
		'iron-iconset-svg': any,
		'iron-input': any,
		'iron-media-query': any,
		'iron-menu-behavior': any,
		'iron-meta': any,
		'iron-overlay-behavior': any,
		'iron-range-behavior': any,
		'iron-resizable-behavior': any,
		'iron-selector': any,
		'iron-validatable-behavior': any,
		'neon-animation': any,
		'paper-badge': any,
		'paper-behaviors': any,
		'paper-button': any,
		'paper-card': any,
		'paper-checkbox': any,
		'paper-dialog': any,
		'paper-dialog-behavior': any,
		'paper-dialog-scrollable': any,
		'paper-drawer-panel': any,
		'paper-dropdown-menu': any,
		'paper-elements': any,
		'paper-fab': any,
		'paper-header-panel': any,
		'paper-icon-button': any,
		'paper-input': any,
		'paper-item': any,
		'paper-material': any,
		'paper-menu': any,
		'paper-menu-button': any,
		'paper-progress': any,
		'paper-radio-button': any,
		'paper-radio-group': any,
		'paper-ripple': any,
		'paper-scroll-header-panel': any,
		'paper-slider': any,
		'paper-spinner': any,
		'paper-styles': any,
		'paper-tabs': any,
		'paper-toast': any,
		'paper-toggle-button': any,
		'paper-toolbar': any,
		'paper-tooltip': any,
		'google-analytics': any,
		'google-analytics-chart': any,
		'google-analytics-dashboard': any,
		'google-analytics-date-selector': any,
		'google-analytics-loader': any,
		'google-analytics-query': any,
		'google-analytics-view-selector': any,
		'google-calendar': any,
		'google-castable-video': any,
		'google-chart': any,
		'google-feeds': any,
		'google-hangout-button': any,
		'google-map': any,
		'google-map-directions': any,
		'google-map-elements': any,
		'google-map-marker': any,
		'google-map-point': any,
		'google-map-poly': any,
		'google-map-search': any,
		'google-sheets': any,
		'google-signin': any,
		'google-streetview-pano': any,
		'google-youtube': any,
		'google-youtube-upload': any,
		're-captcha': any,
	}
}

declare module "events" {
    type EventType = Symbol;

    interface EventListener {
        (...args: any[]): void;
    }

    class EventEmitter {
        static defaultMaxListeners: number;
        static listenerCount(emitter: EventEmitter, type: EventType): number;

        constructor();

        setMaxListeners(n: number): EventEmitter;

        emit(type: EventType, ...args: any[]): boolean;

        addListener(type: EventType, listener: EventListener): EventEmitter;

        on(type: EventType, listener: EventListener): EventEmitter;

        once(type: EventType, listener: EventListener): EventEmitter;

        removeListener(type: EventType, listener: EventListener): EventEmitter;

        removeAllListeners(type: EventType): EventEmitter;

        listeners(type: EventType): EventListener[];

        listenerCount(type: EventType): number;
    }

    export default EventEmitter
}

declare module 'chartjs' {
	class Chart {
		constructor(ctx: CanvasRenderingContext2D, options?: any);

		static Line(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Bar(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Bubble(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Doughnut(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static PolarArea(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Radar(ctx: CanvasRenderingContext2D, options?: any): Chart;
	}

	export interface ChartDataSet {
		label?: string;
		fillColor?: string;
		strokeColor?: string;
		borderColor?: string | string[];
		backgroundColor?: string | string[];
		borderWidth?: number;

		/* Line, Radar */
		pointColor?: string;
		pointStrokeColor?: string;
		pointHighlightFill?: string;
		pointHighlightStroke?: string;

		/* Bar */
		highlightFill?: string;
		highlightStroke?: string;
		data: number[];
	}
	export interface LinearChartData {
		labels: string[];
		datasets: ChartDataSet[];
		xAxisID?: string;
		yAxisID?: string;
		fill?: boolean;
		lineTension?: number;
		backgroundColor?: string;
		borderWidth?: number;
		borderColor?: string;
		borderCapStyle?: string;
		borderDash?: number[];
		borderDashOffset?: number;
		borderJoinStyle?: string;
		pointBorderColor?: string[];
		pointBorderWidth?: number[];
		pointRadius?: number[];
		pointHoverRadius?: number[];
		pointHitRadius?: number[];
		pointHoverBackgroundColor?: string[];
		pointHoverBorderColor?: string[];
		pointHoverBorderWidth?: number[];
		pointStyle?: any
	}

	export interface CircularChartData {
		value: number;
		color?: string;
		highlight?: string;
		label?: string;
	}

	export interface ChartSettings {
		animation?: boolean;
		animationSteps?: number;
		animationEasing?: string;
		showScale?: boolean;
		scaleOverride?: boolean;
		scaleSteps?: number;<commit_msg>Update chartjs typings<commit_after>/// <reference path="../typings/index.d.ts" />
declare namespace JSX {
	interface IntrinsicElements {
		'iron-a11y-announcer': any,
		'iron-a11y-keys-behavior': any,
		'iron-autogrow-textarea': any,
		'iron-behaviors': any,
		'iron-checked-element-behavior': any,
		'iron-collapse': any,
		'iron-dropdown': any,
		'iron-fit-behavior': any,
		'iron-flex-layout': any,
		'iron-form-element-behavior': any,
		'iron-icon': any,
		'iron-icons': any,
		'iron-iconset-svg': any,
		'iron-input': any,
		'iron-media-query': any,
		'iron-menu-behavior': any,
		'iron-meta': any,
		'iron-overlay-behavior': any,
		'iron-range-behavior': any,
		'iron-resizable-behavior': any,
		'iron-selector': any,
		'iron-validatable-behavior': any,
		'neon-animation': any,
		'paper-badge': any,
		'paper-behaviors': any,
		'paper-button': any,
		'paper-card': any,
		'paper-checkbox': any,
		'paper-dialog': any,
		'paper-dialog-behavior': any,
		'paper-dialog-scrollable': any,
		'paper-drawer-panel': any,
		'paper-dropdown-menu': any,
		'paper-elements': any,
		'paper-fab': any,
		'paper-header-panel': any,
		'paper-icon-button': any,
		'paper-input': any,
		'paper-item': any,
		'paper-material': any,
		'paper-menu': any,
		'paper-menu-button': any,
		'paper-progress': any,
		'paper-radio-button': any,
		'paper-radio-group': any,
		'paper-ripple': any,
		'paper-scroll-header-panel': any,
		'paper-slider': any,
		'paper-spinner': any,
		'paper-styles': any,
		'paper-tabs': any,
		'paper-toast': any,
		'paper-toggle-button': any,
		'paper-toolbar': any,
		'paper-tooltip': any,
		'google-analytics': any,
		'google-analytics-chart': any,
		'google-analytics-dashboard': any,
		'google-analytics-date-selector': any,
		'google-analytics-loader': any,
		'google-analytics-query': any,
		'google-analytics-view-selector': any,
		'google-calendar': any,
		'google-castable-video': any,
		'google-chart': any,
		'google-feeds': any,
		'google-hangout-button': any,
		'google-map': any,
		'google-map-directions': any,
		'google-map-elements': any,
		'google-map-marker': any,
		'google-map-point': any,
		'google-map-poly': any,
		'google-map-search': any,
		'google-sheets': any,
		'google-signin': any,
		'google-streetview-pano': any,
		'google-youtube': any,
		'google-youtube-upload': any,
		're-captcha': any,
	}
}

declare module "events" {
    type EventType = Symbol;

    interface EventListener {
        (...args: any[]): void;
    }

    class EventEmitter {
        static defaultMaxListeners: number;
        static listenerCount(emitter: EventEmitter, type: EventType): number;

        constructor();

        setMaxListeners(n: number): EventEmitter;

        emit(type: EventType, ...args: any[]): boolean;

        addListener(type: EventType, listener: EventListener): EventEmitter;

        on(type: EventType, listener: EventListener): EventEmitter;

        once(type: EventType, listener: EventListener): EventEmitter;

        removeListener(type: EventType, listener: EventListener): EventEmitter;

        removeAllListeners(type: EventType): EventEmitter;

        listeners(type: EventType): EventListener[];

        listenerCount(type: EventType): number;
    }

    export default EventEmitter
}

declare module 'chartjs' {
	class Chart {
		constructor(ctx: CanvasRenderingContext2D, options?: any);

		static Line(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Bar(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Bubble(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Doughnut(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static PolarArea(ctx: CanvasRenderingContext2D, options?: any): Chart;

		static Radar(ctx: CanvasRenderingContext2D, options?: any): Chart;
	}

	export interface LinearChartData {
		labels: string[];
		datasets: ChartDataSet[];
		xAxisID?: string;
		yAxisID?: string;
		fill?: boolean;
		lineTension?: number;
		backgroundColor?: string;
		borderWidth?: number;
		borderColor?: string;
		borderCapStyle?: string;
		borderDash?: number[];
		borderDashOffset?: number;
		borderJoinStyle?: string;
		pointBorderColor?: string[];
		pointBorderWidth?: number[];
		pointRadius?: number[];
		pointHoverRadius?: number[];
		pointHitRadius?: number[];
		pointHoverBackgroundColor?: string[];
		pointHoverBorderColor?: string[];
		pointHoverBorderWidth?: number[];
		pointStyle?: any;
	}

	export interface CircularChartData {
		value: number;
		color?: string;
		highlight?: string;
		label?: string;
	}

	export interface ChartDataSet {
		label?: string;
		fillColor?: string;
		strokeColor?: string;
		borderColor?: string | string[];
		backgroundColor?: string | string[];
		borderWidth?: number;
		pointColor?: string;
		pointStrokeColor?: string;
		pointHighlightFill?: string;
		pointHighlightStroke?: string;
		highlightFill?: string;
		highlightStroke?: string;
		data: number[];
	}

	export interface ChartSettings {
		animation?: boolean;
		animationSteps?: number;
		animationEasing?: string;
		showScale?: boolean;
		scaleOverride?: boolean;
		scaleSteps?: number;
{'fraction_non_alphanumeric': 0.1554100283452253, 'fraction_numerical': 0.002150327436223243, 'mean_word_length': 4.201830198271479, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3783346', 'n_tokens_mistral': 3698, 'n_tokens_neox': 3401, 'n_words': 764}