<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import PushJobs from './PushJobs';
import PushHeader from './PushHeader';
import { RevisionList } from './RevisionList';
import { getPushTableId } from '../../helpers/aggregateId';
import { thEvents } from '../../js/constants';

const watchCycleStates = [
  'none',
  'push',
  'job',
  'none',
];

export default class Push extends React.Component {
  constructor(props) {
    super(props);
    const { $injector, repoName, push } = props;
    const { id: pushId, revision, job_counts } = push;

    this.$rootScope = $injector.get('$rootScope');
    this.ThResultSetStore = $injector.get('ThResultSetStore');

    this.aggregateId = getPushTableId(repoName, pushId, revision);

    this.state = {
      runnableVisible: false,
      watched: 'none',

      // props.push isn't actually immutable due to the way it hooks up to angular, therefore we
      // need to keep the previous value in the state.
      last_job_counts: job_counts ? { ...job_counts } : null,
      hasBoundaryError: false,
      boundaryError: '',
    };
  }
  componentDidMount() {
    this.showRunnableJobs = this.showRunnableJobs.bind(this);
    this.hideRunnableJobs = this.hideRunnableJobs.bind(this);
  }

  UNSAFE_componentWillReceiveProps(nextProps) {<commit_msg>Cleanup Push dead code<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import PushJobs from './PushJobs';
import PushHeader from './PushHeader';
import { RevisionList } from './RevisionList';
import { thEvents } from '../../js/constants';

const watchCycleStates = [
  'none',
  'push',
  'job',
  'none',
];

export default class Push extends React.Component {
  constructor(props) {
    super(props);
    const { $injector, push } = props;
    const { job_counts } = push;

    this.$rootScope = $injector.get('$rootScope');
    this.ThResultSetStore = $injector.get('ThResultSetStore');

    this.state = {
      runnableVisible: false,
      watched: 'none',

      // props.push isn't actually immutable due to the way it hooks up to angular, therefore we
      // need to keep the previous value in the state.
      last_job_counts: job_counts ? { ...job_counts } : null,
      hasBoundaryError: false,
      boundaryError: '',
    };
  }
  componentDidMount() {
    this.showRunnableJobs = this.showRunnableJobs.bind(this);
    this.hideRunnableJobs = this.hideRunnableJobs.bind(this);
  }

  UNSAFE_componentWillReceiveProps(nextProps) {
{'fraction_non_alphanumeric': 0.12855426511814178, 'fraction_numerical': 0.0, 'mean_word_length': 3.5253623188405796, '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': '7631066', 'n_tokens_mistral': 798, 'n_tokens_neox': 773, 'n_words': 197}