<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { QueryRenderer, graphql } from 'react-relay/compat';
import { FormattedMessage } from 'react-intl';
import Relay from 'react-relay/classic';
import { browserHistory } from 'react-router';
import DynamicFeedIcon from '@material-ui/icons/DynamicFeed';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import ErrorBoundary from '../error/ErrorBoundary';
import FeedSharingSwitch from './FeedSharingSwitch';
import Search from '../search/Search';
import { safelyParseJSON } from '../../helpers';

// Used in unit test
// eslint-disable-next-line import/no-unused-modules
export const FeedComponent = ({ routeParams, ...props }) => {
  const { team } = props;
  const { feed } = team;
  const { tab } = routeParams;

  if (!feed) {
    browserHistory.push('/check/not-found');
    return null;
  }

  const feedTeam = feed.current_feed_team;

  // This component is displayed on top of the search filters
  const topBar = (query) => {<commit_msg>Remove unneeded eslint directive<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { QueryRenderer, graphql } from 'react-relay/compat';
import { FormattedMessage } from 'react-intl';
import Relay from 'react-relay/classic';
import { browserHistory } from 'react-router';
import DynamicFeedIcon from '@material-ui/icons/DynamicFeed';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import ErrorBoundary from '../error/ErrorBoundary';
import FeedSharingSwitch from './FeedSharingSwitch';
import Search from '../search/Search';
import { safelyParseJSON } from '../../helpers';

export const FeedComponent = ({ routeParams, ...props }) => {
  const { team } = props;
  const { feed } = team;
  const { tab } = routeParams;

  if (!feed) {
    browserHistory.push('/check/not-found');
    return null;
  }

  const feedTeam = feed.current_feed_team;

  // This component is displayed on top of the search filters
  const topBar = (query) => {
{'fraction_non_alphanumeric': 0.1362977283711938, 'fraction_numerical': 0.0, 'mean_word_length': 4.253807106598985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5426788', 'n_tokens_mistral': 605, 'n_tokens_neox': 597, 'n_words': 185}