<commit_before>import * as React from "react";

export interface DecimalProps {
  /** The default value alignment on the input */
  align?: string;
  /** The decimal precision of the value in the input */
  precision?: number;
  /** The width of the input as a percentage */
  inputWidth?: number;
  /** If true, the component will be read-only */
  readOnly?: boolean;
  /** The default value of the input if it's meant to be used as an uncontrolled component */
  defaultValue?: string;
  /** The value of the input if it's used as a controlled component */
  value?: string;
  /** Handler for change event if input is meant to be used as a controlled component */
  onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
  /** Handler for blur event */
  onBlur?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
  /** Handler for key press event */
  onKeyPress?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
  /** The input name */
  name?: string;
  /** The input id */
  id?: string;
  /** Allow an empty value instead of defaulting to 0.00 */
  allowEmptyValue?: boolean;
  /** Flag to configure component as mandatory  */
  required?: boolean;
}

declare const Decimal: React.ComponentClass<DecimalProps>;

export default Decimal;<commit_msg>refactor(decimal): clean up type definitions<commit_after>import * as React from "react";
import { CommonTextboxProps } from "../textbox";

export interface DecimalProps extends CommonTextboxProps {
  /** Text alignment of the label */
  align?: "left" | "right";
  /** Allow an empty value instead of defaulting to 0.00 */
  allowEmptyValue?: boolean;
  /** The default value of the input if it's meant to be used as an uncontrolled component */
  defaultValue?: string;
  /** The input id */
  id?: string;
  /** The width of the input as a percentage */
  inputWidth?: number;
  /** Handler for change event if input is meant to be used as a controlled component */
  onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
  /** Handler for blur event */
  onBlur?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
  /** Handler for key press event */
  onKeyPress?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
  /** The input name */
  name?: string;
  /** The decimal precision of the value in the input */
  precision?: number;
  /** If true, the component will be read-only */
  readOnly?: boolean;
  /** Flag to configure component as mandatory */
  required?: boolean;
  /** The value of the input if it's used as a controlled component */
  value?: string;
}

declare const Decimal: React.ComponentClass<DecimalProps>;

export default Decimal;
{'fraction_non_alphanumeric': 0.11840607210626186, 'fraction_numerical': 0.0022770398481973433, 'mean_word_length': 3.7495495495495494, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '671803', 'n_tokens_mistral': 728, 'n_tokens_neox': 708, 'n_words': 310}