<commit_before>export function transformStringToObject(value: string | Object) {
  if (typeof value === 'string') {
    return null;
  }
  return value;
}
export function transformStringToDate(value: string) {
  return value && value.substring ? new Date(value.substring(0, 10)) : value;
}
export function transformDateToString(value: Date) {
  if (value) {
    const curr_date = value.getDate();<commit_msg>fix(custom-transforms): Update "transformDateToString", add check exists "value.getDate" in convert date to string<commit_after>export function transformStringToObject(value: string | Object) {
  if (typeof value === 'string') {
    return null;
  }
  return value;
}
export function transformStringToDate(value: string) {
  return value && value.substring ? new Date(value.substring(0, 10)) : value;
}
export function transformDateToString(value: Date) {
  if (value && value.getDate && value.getMonth && value.getFullYear) {
    const curr_date = value.getDate();
{'fraction_non_alphanumeric': 0.12024665981500514, 'fraction_numerical': 0.006166495375128468, 'mean_word_length': 5.203821656050955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3398172', 'n_tokens_mistral': 281, 'n_tokens_neox': 278, 'n_words': 79}