<commit_before>// @flow

import {getGtfsPlusSpec} from '../../common/util/config'

export function constructNewGtfsPlusRow (tableId: string): any {
  const table = getGtfsPlusSpec()
    .find(t => t.id === tableId)
  if (typeof table === 'undefined') {
    throw new Error(`Could not find table '${tableId}' in GTFS+ spec`)
  }
  const rowData = {}
  for (const field of table.fields) {
    rowData[field.name] = null
  }
  return rowData
}<commit_msg>style(flow): fix return type for constructNewGtfsPlusRow util<commit_after>// @flow

import {getGtfsPlusSpec} from '../../common/util/config'

export function constructNewGtfsPlusRow (tableId: string): { [string]: null } {
  const table = getGtfsPlusSpec()
    .find(t => t.id === tableId)
  if (typeof table === 'undefined') {
    throw new Error(`Could not find table '${tableId}' in GTFS+ spec`)
  }
  const rowData = {}
  for (const field of table.fields) {
    rowData[field.name] = null
  }
  return rowData
}
{'fraction_non_alphanumeric': 0.1468459152016546, 'fraction_numerical': 0.0, 'mean_word_length': 3.7450980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1848989', 'n_tokens_mistral': 321, 'n_tokens_neox': 321, 'n_words': 93}