<commit_before>/*
 * HomePage
 *
 * This is the first thing users see of our App, at the '/' route
 *
 * NOTE: while this component should technically be a stateless functional
 * component (SFC), hot reloading does not currently support SFCs. If hot
 * reloading is not a necessity for you then you can refactor it and remove
 * the linting exception.
 */

import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { Glyphicon, Jumbotron, Alert, Button } from 'react-bootstrap';

import Spinner from 'components/Spinner';
import ListItem from './components/ListItem';
import Modal from './components/Modal';
import messages from './messages';
import {
  loadDoctors,
  openModal,
  closeModal,
  submitBooking,
  changeStatus,
  displayError,
} from './actions';
import {
  getDoctorSelected,
  getDoctors,
  getStatus,
  getIsModalOpen,
  getIsSubmitted,
  getBookingNumber,
  getError,
} from './selectors';
import {
  INITIAL,
  LOCATING,
  FETCHING,
  LOADED,
} from './constants';

class HomePage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
  componentDidMount() {
    mixpanel.track('home_page_landed');
    throw new TypeError;
  }
  storePosition = (position) => {
    this.lat = position.coords.latitude;
    this.lng = position.coords.longitude;

    const params = { lat: this.lat, lng: this.lng };

    this.props.handleLoadDoctors(params);
  }<commit_msg>Remove error<commit_after>/*
 * HomePage
 *
 * This is the first thing users see of our App, at the '/' route
 *
 * NOTE: while this component should technically be a stateless functional
 * component (SFC), hot reloading does not currently support SFCs. If hot
 * reloading is not a necessity for you then you can refactor it and remove
 * the linting exception.
 */

import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { Glyphicon, Jumbotron, Alert, Button } from 'react-bootstrap';

import Spinner from 'components/Spinner';
import ListItem from './components/ListItem';
import Modal from './components/Modal';
import messages from './messages';
import {
  loadDoctors,
  openModal,
  closeModal,
  submitBooking,
  changeStatus,
  displayError,
} from './actions';
import {
  getDoctorSelected,
  getDoctors,
  getStatus,
  getIsModalOpen,
  getIsSubmitted,
  getBookingNumber,
  getError,
} from './selectors';
import {
  INITIAL,
  LOCATING,
  FETCHING,
  LOADED,
} from './constants';

class HomePage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
  componentDidMount() {
    mixpanel.track('home_page_landed');
  }
  storePosition = (position) => {
    this.lat = position.coords.latitude;
    this.lng = position.coords.longitude;

    const params = { lat: this.lat, lng: this.lng };

    this.props.handleLoadDoctors(params);
  }
{'fraction_non_alphanumeric': 0.10846905537459284, 'fraction_numerical': 0.0, 'mean_word_length': 4.092868988391376, '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': '3690987', 'n_tokens_mistral': 953, 'n_tokens_neox': 933, 'n_words': 290}