<commit_before>import { defineMessages } from 'react-intl';

export const messages = defineMessages({
  maxValue: {
    id: 'reduxForm.validations.maxValue',
    defaultMessage: 'Maximum value is {max}.'
  },
  minValue: {
    id: 'reduxForm.validations.minValue',
    defaultMessage: 'Minimum value is {min}.'
  },
  number: {
    id: 'reduxForm.validations.number',
    defaultMessage: 'Value needs to be a number.'
  }
});

export const minValue = (min, message) => value =>
  value && value < min ? message : undefined;

export const maxValue = (max, message) => value =>
  value && value > max ? message : undefined;

export const number = message => value =>
  value && isNaN(Number(value)) ? message : undefined;
<commit_msg>Fix reduxForm validation messages<commit_after>import { defineMessages } from 'react-intl';

export const messages = defineMessages({
  maxValue: {
    id: 'reduxForm.validations.maxValue',
    defaultMessage: 'Maximum value is {max, number}.'
  },
  minValue: {
    id: 'reduxForm.validations.minValue',
    defaultMessage: 'Minimum value is {min, number}.'
  },
  number: {
    id: 'reduxForm.validations.number',
    defaultMessage: 'Value needs to be a number.'
  }
});

export const minValue = (min, message) => value =>
  value && value < min ? message : undefined;

export const maxValue = (max, message) => value =>
  value && value > max ? message : undefined;

export const number = message => value =>
  value && isNaN(Number(value)) ? message : undefined;

{'fraction_non_alphanumeric': 0.13733333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 3.8733766233766236, 'pattern_counts': {'":': 0, '<': 5, '<?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': '244568', 'n_tokens_mistral': 456, 'n_tokens_neox': 451, 'n_words': 135}