<commit_before>'use babel'

import {React} from 'react-for-atom';
import Convert from 'ansi-to-html';
import child_process from 'child_process';
import {fromJS} from 'immutable';

export default React.createClass({
  getInitialState: function() {
    return {};
  },
  getDefaultProps: function() {
    return {
      output: [],
      filters: [],
      reload: function() {

      },
      stop: function() {

      }
    };
  },
  componentDidMount: function() {

  },
  componentDidUpdate: function(prevProps) {
    if (prevProps.filters != this.props.filters) {
      this.forceUpdate(() => {
        this.manageScroll();
      });
    } else {
      this.manageScroll();
    }
  },
  componentWillUpdate: function() {
    this.scrolledDown = this.isScrolledDown();
  },
  isFiltered: function(line) {
    if (this.props.filters.length == 0)<commit_msg>Force scrollDown when filters change<commit_after>'use babel'

import {React} from 'react-for-atom';
import Convert from 'ansi-to-html';
import child_process from 'child_process';
import {fromJS} from 'immutable';

export default React.createClass({
  getInitialState: function() {
    return {};
  },
  getDefaultProps: function() {
    return {
      output: [],
      filters: [],
      reload: function() {

      },
      stop: function() {

      }
    };
  },
  componentDidMount: function() {

  },
  componentDidUpdate: function(prevProps) {
    if (prevProps.filters != this.props.filters) {
      this.forceUpdate(() => {
        this.scrollDown();
      });
    } else {
      this.manageScroll();
    }
  },
  componentWillUpdate: function() {
    this.scrolledDown = this.isScrolledDown();
  },
  isFiltered: function(line) {
    if (this.props.filters.length == 0)
{'fraction_non_alphanumeric': 0.14853195164075994, 'fraction_numerical': 0.0011514104778353484, 'mean_word_length': 2.9232505643340856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3195311', 'n_tokens_mistral': 545, 'n_tokens_neox': 534, 'n_words': 109}