<commit_before>import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import * as selectors from '../../selectors';
import styles from './style.css';

const FetchInfo = ({ status, refresh }) => {
  if (status === 'fetching')
    return (
      <div className="notification is-warning">
        <div className="level is-mobile">
          <div className="level-left">
            Please wait, we are fetching your pages and categories.
          </div>
          <div className="level-right is-marginless">
            <button className="button is-loading is-warning" onClick={refresh} />
          </div>
        </div>
      </div>
    );
  else if (status === 'succeed')
    return (
      <div className="notification">
        <div className="level is-mobile">
          <div className="level-left">
            Succeed! We have successfully fetched your pages and categories.
          </div>
          <div className="level-right is-marginless">
            <button className="button is-light" onClick={refresh}>
              <span className={`icon ${styles.fetchInfoButtons}`}>
                <i className="fa fa-refresh" />
              </span>
            </button>
          </div>
        </div>
      </div>
    );
  else if (status === 'error')
    return (
      <div className="notification is-danger">
        <div className="level">
          <div className="level-left">
            <span>
              Something went wrong while fetching your pages and categories. Please contact with
              {' '}
              <a
                href="https://www.worona.org/get-help"
                target="_blank"
                rel="noopener noreferrer"
                style={{ color: 'white', fontWeight: 'bold' }}
              >
                Worona support.
              </a>
            </span>
          </div>
          <div className="level-right is-marginless">
            <button className="button is-danger" onClick={refresh}>
              <span className={`icon ${styles.fetchInfoButtons}`}>
                <i className="fa fa-refresh" />
              </span>
            </button>
          </div>
        </div>
      </div>
    );
  return null;<commit_msg>Change fetch for synchronize in texts.<commit_after>import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import * as selectors from '../../selectors';
import styles from './style.css';

const FetchInfo = ({ status, refresh }) => {
  if (status === 'fetching')
    return (
      <div className="notification is-warning">
        <div className="level is-mobile">
          <div className="level-left">
            Please wait, we are synchronizing your pages and categories.
          </div>
          <div className="level-right is-marginless">
            <button className="button is-loading is-warning" onClick={refresh} />
          </div>
        </div>
      </div>
    );
  else if (status === 'succeed')
    return (
      <div className="notification">
        <div className="level is-mobile">
          <div className="level-left">
            Succeed! We have successfully synchronized your pages and categories.
          </div>
          <div className="level-right is-marginless">
            <button className="button is-light" onClick={refresh}>
              <span className={`icon ${styles.fetchInfoButtons}`}>
                <i className="fa fa-refresh" />
              </span>
            </button>
          </div>
        </div>
      </div>
    );
  else if (status === 'error')
    return (
      <div className="notification is-danger">
        <div className="level">
          <div className="level-left">
            <span>
              Something went wrong while synchronizing your pages and categories.
              Please contact with {' '}
              <a
                href="https://www.worona.org/get-help"
                target="_blank"
                rel="noopener noreferrer"
                style={{ color: 'white', fontWeight: 'bold' }}
              >
                Worona support.
              </a>
            </span>
          </div>
          <div className="level-right is-marginless">
            <button className="button is-danger" onClick={refresh}>
              <span className={`icon ${styles.fetchInfoButtons}`}>
                <i className="fa fa-refresh" />
              </span>
            </button>
          </div>
        </div>
      </div>
    );
  return null;
{'fraction_non_alphanumeric': 0.13748350197976242, 'fraction_numerical': 0.0, 'mean_word_length': 1.7146268656716417, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 83, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3620707', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1164, 'n_words': 322}