<commit_before>import Message    from "./Message";
import Actions    from "../Actions";
import { DONATE } from "../constants/URLs";
import V          from "../constants/PanelView";
import i18n       from "../i18n";

const t = (key) => {
  return i18n.t("modal." + key);
}

module.exports = ({view, dispatch}) => {

  switch (view.modal) {

    case V.LOCATE:
      return (
        <div className= 'modal'>
          <Message
            iconClass = "fa fa-spinner fa-pulse"
            message = {"  " + t("locate.inProgress")}
            cancelButtonLabel = {t("locate.cancel")}
            onCancel = { () => dispatch(Actions.cancelOwnPosition()) }<commit_msg>fix(Modal): import react to fix error<commit_after>import Message    from "./Message";
import Actions    from "../Actions";
import { DONATE } from "../constants/URLs";
import V          from "../constants/PanelView";
import i18n       from "../i18n";
import React      from "react";

const t = (key) => {
  return i18n.t("modal." + key);
}

module.exports = ({view, dispatch}) => {

  switch (view.modal) {

    case V.LOCATE:
      return (
        <div className= 'modal'>
          <Message
            iconClass = "fa fa-spinner fa-pulse"
            message = {"  " + t("locate.inProgress")}
            cancelButtonLabel = {t("locate.cancel")}
            onCancel = { () => dispatch(Actions.cancelOwnPosition()) }
{'fraction_non_alphanumeric': 0.16329479768786126, 'fraction_numerical': 0.008670520231213872, 'mean_word_length': 2.305489260143198, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '4705792', 'n_tokens_mistral': 425, 'n_tokens_neox': 412, 'n_words': 105}