<commit_before>declare module 'resin-components' {
	import { Component } from 'react';

	interface DefaultProps {
		width?: number;
		w?: number;
		fontSize?: number;
		f?: number;
		color?: string;
		bg?: string;
		m?: number;
		mt?: number;
		mr?: number;
		mb?: number;
		ml?: number;
		mx?: number;
		my?: number;
		p?: number;
		pt?: number;
		pr?: number;
		pb?: number;
		pl?: number;
		px?: number;
		py?: number;
		className?: string;
	}

	type PineDataType =
		| 'Boolean'
		| 'Case Insensitive Text'
		| 'Date Time'
		| 'Date'
		| 'Integer'
		| 'Real'
		| 'Short Text'
		| 'Text'
		| 'Time'
		| 'Semver Range'
		| 'Semver';

	interface Schema {
		[key: string]: {
			type: PineDataType;
			label?: string;
		};
	}

	interface FilterRule {
		availableOperators: string[];
		id: string;
		label: string;
		name: string;
		operator: string;
		type: string;
		value: any;
	}

	interface SingleFilterView {
		id: string;
		name: string;
		scopeKey: string;
		rules: FilterRule[];
	}

	interface FilterViewScope {
		key: string;
		scopeLabel?: string;
		title?: string;
		data: SingleFilterView[];
	}

	class RenderableElementWithProps<PropsType, StateType> extends Component<
		PropsType,
		StateType
	> {
		refs: any;
		render(): JSX.Element | null;
	}

	interface CodeWithCopyProps extends DefaultProps {
		copy: string;
		text: string;
	}

	class CodeWithCopy extends RenderableElementWithProps<
		CodeWithCopyProps,
		any
	> {
		refs: any;
		render(): JSX.Element | null;
	}

	interface DeviceStatusGaugeProps extends DefaultProps {
		devices: any[];
	}

	class DeviceStatusGauge extends RenderableElementWithProps<
		DeviceStatusGaugeProps,
		any
	> {
		refs: any;
		render(): JSX.Element | null;
	}

	interface FiltersProps extends DefaultProps {
		rules: FilterRule[];
		views: FilterViewScope[];
		schema: Schema;
		setViews(views: SingleFilterView[]): void;
		setRules(rules: FilterRule[]): void;
	}

	class Filters extends RenderableElementWithProps<FiltersProps, any> {
		refs: any;
		render(): JSX.Element | null;
	}

	interface ProgressBarProps extends DefaultProps {
		value: number;
		info?: boolean;
	}

	class ProgressBar extends RenderableElementWithProps<ProgressBarProps, any> {
		refs: any;
		render(): JSX.Element | null;
	}

	class Provider extends Component<any, any> {
		refs: any;
		render(): JSX.Element | null;
	}

	class SchemaSieveClass {
		filter<T>(items: T[], rule: FilterRule): T[];
	}

	function SchemaSieve(): SchemaSieveClass;
}<commit_msg>Improve bundled typings<commit_after>declare module 'resin-components' {
	import { Component } from 'react';

	interface StyledSystemProps {
		width?: number;
		w?: string | number;
		fontSize?: number;
		f?: number;
		color?: string;
		bg?: string;
		m?: string | number;
		mt?: string | number;
		mr?: string | number;
		mb?: string | number;
		ml?: string | number;
		mx?: string | number;
		my?: string | number;
		p?: string | number;
		pt?: string | number;
		pr?: string | number;
		pb?: string | number;
		pl?: string | number;
		px?: string | number;
		py?: string | number;
	}

	interface DefaultProps extends StyledSystemProps, React.HTMLAttributes<HTMLElement> {}

	type PineDataType =
		| 'Boolean'
		| 'Case Insensitive Text'
		| 'Date Time'
		| 'Date'
		| 'Integer'
		| 'Real'
		| 'Short Text'
		| 'Text'
		| 'Time'
		| 'Semver Range'
		| 'Semver';

	interface SchemaEntry {
		type: PineDataType;
		values?: string[];
		label?: string;
	}

	interface Schema {
		[key: string]: SchemaEntry;
	}

	interface FilterRule {
		availableOperators: string[];
		id: string;
		label: string;
		name: string;
		operator: string;
		type: string;
		value: any;
	}

	interface SingleFilterView {
		id: string;
		name: string;
		scopeKey: string;
		rules: FilterRule[];
	}

	interface FilterViewScope {
		key: string;
		scopeLabel?: string;
		title?: string;
		data: SingleFilterView[];
	}

	class RenderableElementWithProps<PropsType, StateType> extends Component<
		PropsType,
		StateType
	> {}

	interface Coloring {
		primary?: boolean;
		secondary?: boolean;
		tertiary?: boolean;
		quartenary?: boolean;
		danger?: boolean;
		warning?: boolean;
		success?: boolean;
		info?: boolean;
	}

	interface Sizing {
		emphasized?: boolean;
	}

	interface BannerProps extends DefaultProps {
		backgroundImage?: string;
	}

	class BannerProps extends RenderableElementWithProps<BoxProps, any> {}

	interface BoxProps extends DefaultProps {
		flex?: string | string[];
		order?: number | string | Array<number | string>;
	}

	class Box extends RenderableElementWithProps<BoxProps, any> {}

	interface ButtonProps extends DefaultProps, Coloring, Sizing {
		square?: boolean;
		disabled?: boolean;
		outline?: boolean;
		underline?: boolean;
	}

	class Button extends RenderableElementWithProps<ButtonProps, any> {}

	interface CodeWithCopyProps extends DefaultProps {
		copy: string;
		text: string;
	}

	class CodeWithCopy extends RenderableElementWithProps<
		CodeWithCopyProps,
		any
	> {}

	class Container extends RenderableElementWithProps<DefaultProps, any> {}

	class DeleteButton extends RenderableElementWithProps<DefaultProps, any> {}

	interface DeviceStatusGaugeProps extends DefaultProps {
		devices: any[];
	}

	class DeviceStatusGauge extends RenderableElementWithProps<
		DeviceStatusGaugeProps,
		any
	> {}

	class Divider extends RenderableElementWithProps<DefaultProps, any> {}

	interface DropDownButtonProps extends DefaultProps, Coloring {
		label?: JSX.Element;
		border?: boolean;
		joined?: boolean;
		alignRight?: boolean;
		noListFormat?: boolean;
	}

	class DropDownButton extends RenderableElementWithProps<
		DropDownButtonProps,
		any
	> {}

	interface FiltersProps extends DefaultProps {
		rules: FilterRule[];
		views: FilterViewScope[];
		schema: Schema;
		setViews(views: SingleFilterView[]): void;
		setRules(rules: FilterRule[]): void;
	}

	class Filters extends RenderableElementWithProps<FiltersProps, any> {}

	class Fixed extends RenderableElementWithProps<DefaultProps, any> {}

	interface FlexProps extends BoxProps {
		align?: string | string[];
		justify?: string | string[];
		direction?: string | string[];
		wrap?: boolean | boolean[] | string;
		column?: boolean;
	}

	class Flex extends RenderableElementWithProps<FlexProps, any> {}

	namespace Heading {
		class h4 extends RenderableElementWithProps<FlexProps, any> {}
	}

	interface LinkProps
		extends DefaultProps,
			React.AnchorHTMLAttributes<HTMLElement> {
		blank?: boolean;
		disabled?: boolean;
	}

	class Link extends RenderableElementWithProps<LinkProps, any> {}

	interface InputProps extends DefaultProps, Sizing {}

	class Input extends RenderableElementWithProps<InputProps, any> {}

	class Image extends RenderableElementWithProps<
		DefaultProps & React.ImgHTMLAttributes<HTMLImageElement>,
		any
	> {}

	class Modal extends RenderableElementWithProps<
		DefaultProps & {
			title: string;
			action: string;
			cancel: () => any;
			done: () => any;
		},
		any
	> {}

	class Navbar extends RenderableElementWithProps<
		DefaultProps & {
			brand: JSX.Element;
		},
		any
	> {}

	interface PineTypeModule {
		rules: {
			[key: string]: (target: any, value?: any) => boolean
		};
		validate: (value: any) => boolean;
		Edit: (props: any) => JSX.Element;
		Display: (props: any) => JSX.Element;
	}

	var PineTypes: { [K in PineDataType]: PineTypeModule }

	class Provider extends Component<any, any> {}

	interface ProgressBarProps extends DefaultProps, Coloring {
		value: number;
	}

	class ProgressBar extends RenderableElementWithProps<ProgressBarProps, any> {}

	class SchemaSieveClass {
		filter<T>(items: T[], rule: FilterRule): T[];
	}

	function SchemaSieve(): SchemaSieveClass;

	interface SelectProps extends DefaultProps, Sizing {}

	class Select extends RenderableElementWithProps<SelectProps, any> {}

	class Text extends RenderableElementWithProps<DefaultProps, any> {}

	interface TextareaProps extends StyledSystemProps, React.TextareaHTMLAttributes<HTMLTextAreaElement> {}

	class Textarea extends RenderableElementWithProps<TextareaProps, any> {}

	interface TooltipProps extends DefaultProps {
		message?: string;
		eventType: string;
	}

	class Tooltip extends RenderableElementWithProps<TooltipProps, any> {}
}
{'fraction_non_alphanumeric': 0.11258358662613982, 'fraction_numerical': 0.00012158054711246201, 'mean_word_length': 4.4189723320158105, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 49, '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': '2676519', 'n_tokens_mistral': 2834, 'n_tokens_neox': 2583, 'n_words': 704}