<commit_before>// @flow

import jsYaml from 'js-yaml'
import type {BuildingType} from '../types'
import {email} from 'react-native-communications'
import dedent from 'dedent'

export function submitReport(current: BuildingType, suggestion: BuildingType) {
  const before = stringifyBuilding(current)
  const after = stringifyBuilding(suggestion)

  const body = makeEmailBody(before, after, current.name)

  return email(
    ['<EMAIL>'],
    [],
    [],
    `[building] Suggestion for ${current.name}`,
    body,
  )
}


function makeEmailBody(before: string, after: string, title: string): string {
  return dedent`
    Hi! Thanks for letting us know about an hour change.

    Please do not change anything below this line.

    ------------

    Project maintainers: ${makeIssueLink(before, after, title)}

    ${makeBody(before, after)}
  `
}<commit_msg>make prettier happy<commit_after>// @flow

import jsYaml from 'js-yaml'
import type {BuildingType} from '../types'
import {email} from 'react-native-communications'
import dedent from 'dedent'

export function submitReport(current: BuildingType, suggestion: BuildingType) {
  const before = stringifyBuilding(current)
  const after = stringifyBuilding(suggestion)

  const body = makeEmailBody(before, after, current.name)

  return email(
    ['<EMAIL>'],
    [],
    [],
    `[building] Suggestion for ${current.name}`,
    body,
  )
}

function makeEmailBody(before: string, after: string, title: string): string {
  return dedent`
    Hi! Thanks for letting us know about an hour change.

    Please do not change anything below this line.

    ------------

    Project maintainers: ${makeIssueLink(before, after, title)}

    ${makeBody(before, after)}
  `
}
{'fraction_non_alphanumeric': 0.126523505513639, 'fraction_numerical': 0.0, 'mean_word_length': 3.815642458100559, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2548913', 'n_tokens_mistral': 520, 'n_tokens_neox': 497, 'n_words': 160}