<commit_before>/* global document:true */

import { connect } from 'react-redux'
import { isEmpty } from 'ramda'
import React, {Component, PropTypes} from 'react'


class Loading extends Component {
    constructor(props) {
        super(props);
        this.state = {
            initialTitle: document.title
        };
    }

    componentWillReceiveProps(props) {
        if (!isEmpty(props.requestQueue)) {
            document.title = 'Updating...';
        } else {
            document.title = this.state.initialTitle;
        }
    }

    shouldComponentUpdate() {
        return false;
    }<commit_msg>React import isn't needed<commit_after>/* global document:true */

import { connect } from 'react-redux'
import { isEmpty } from 'ramda'
import {Component, PropTypes} from 'react'

class Loading extends Component {
    constructor(props) {
        super(props);
        this.state = {
            initialTitle: document.title
        };
    }

    componentWillReceiveProps(props) {
        if (!isEmpty(props.requestQueue)) {
            document.title = 'Updating...';
        } else {
            document.title = this.state.initialTitle;
        }
    }

    shouldComponentUpdate() {
        return false;
    }
{'fraction_non_alphanumeric': 0.11400651465798045, 'fraction_numerical': 0.0, 'mean_word_length': 2.2005208333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1992967', 'n_tokens_mistral': 341, 'n_tokens_neox': 332, 'n_words': 76}