<commit_before>export const amountToCents = amount => {
  if (amount) {
    return Math.round(Number(amount) * 100);
  }
  return 0;
};

export const amountFromCents = amount => {
  if (amount) {
    return amount / 100;
  }<commit_msg>Typed amount conversion utils<commit_after>// @flow

export const amountToCents = (amount: number) => {
  if (amount) {
    return Math.round(Number(amount) * 100);
  }
  return 0;
};

export const amountFromCents = (amount: number) => {
  if (amount) {
    return amount / 100;
  }
{'fraction_non_alphanumeric': 0.13706563706563707, 'fraction_numerical': 0.02702702702702703, 'mean_word_length': 3.4358974358974357, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5589060', 'n_tokens_mistral': 187, 'n_tokens_neox': 173, 'n_words': 47}