<commit_before>import React from 'react'
import PropTypes from 'prop-types'

import SvgIcon from 'src/components/common/SvgIcon.jsx'
import BallotPrecinct from './BallotPrecinct.jsx'
import EmbeddedMap from './EmbeddedMap.jsx'

import YourIcon from 'src/assets/icon_yourpowerballot-10.svg'

import styles from './ballot-header.scss'

import { YEAR } from './../../services/dates'

export default class BallotHeader extends React.Component {
  state = {
    showEmbeddedMap: false,
  }

  _toggleEmbeddedMap = () => {
    this.setState((state) => {
      return {
        showEmbeddedMap: !state.showEmbeddedMap,
      }
    })
  }

  render () {
    const { address, ballot, coordinates, precinct } = this.props
    const { showEmbeddedMap } = this.state

    return (
      <div className={styles['container']}>
        <div className={styles['header']}>
          <SvgIcon className={styles['icon']} icon={YourIcon} width='77px' height='65px' />

          <div className={styles['title-container']}>
            <span className={styles['title']}>
              Your Power Ballot
            </span>
            <span className={styles['sub-title']}>
              General Election {YEAR}
            </span>
          </div>
        </div>
        <div className={styles['contents']}>
          <BallotPrecinct
            address={address}
            pollingPlace={ballot.pollingPlace}
            precinct={precinct}
          />
          <a className={styles['toggle-map-link']} onClick={this._toggleEmbeddedMap}>Map</a>
          {showEmbeddedMap
            ? <EmbeddedMap latitude={coordinates.latitude} longitude={coordinates.longitude} />
            : null}
        </div>
      </div>
    )
  }
}

BallotHeader.propTypes = {
  address: PropTypes.string,
  coordinates: PropTypes.object,
  ballot: PropTypes.object,
  precinct: PropTypes.string,
}
<commit_msg>Temporarily hide embedded map<commit_after>import React from 'react'
import PropTypes from 'prop-types'

import SvgIcon from 'src/components/common/SvgIcon.jsx'
import BallotPrecinct from './BallotPrecinct.jsx'
import EmbeddedMap from './EmbeddedMap.jsx'

import YourIcon from 'src/assets/icon_yourpowerballot-10.svg'

import styles from './ballot-header.scss'

import { YEAR } from './../../services/dates'

export default class BallotHeader extends React.Component {
  state = {
    showEmbeddedMap: false,
  }

  _toggleEmbeddedMap = () => {
    this.setState((state) => {
      return {
        showEmbeddedMap: !state.showEmbeddedMap,
      }
    })
  }

  render () {
    const { address, ballot, coordinates, precinct } = this.props
    const { showEmbeddedMap } = this.state

    return (
      <div className={styles['container']}>
        <div className={styles['header']}>
          <SvgIcon className={styles['icon']} icon={YourIcon} width='77px' height='65px' />

          <div className={styles['title-container']}>
            <span className={styles['title']}>
              Your Power Ballot
            </span>
            <span className={styles['sub-title']}>
              General Election {YEAR}
            </span>
          </div>
        </div>
        <div className={styles['contents']}>
          <BallotPrecinct
            address={address}
            pollingPlace={ballot.pollingPlace}
            precinct={precinct}
          />
          {/*
          <a className={styles['toggle-map-link']} onClick={this._toggleEmbeddedMap}>Map</a>
          {showEmbeddedMap
            ? <EmbeddedMap latitude={coordinates.latitude} longitude={coordinates.longitude} />
            : null}
          */}
        </div>
      </div>
    )
  }
}

BallotHeader.propTypes = {
  address: PropTypes.string,
  coordinates: PropTypes.object,
  ballot: PropTypes.object,
  precinct: PropTypes.string,
}

{'fraction_non_alphanumeric': 0.1350210970464135, 'fraction_numerical': 0.0031645569620253164, 'mean_word_length': 2.5055452865064693, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 41, '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': '3732775', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1111, 'n_words': 217}