<commit_before>import React, { Component } from 'react';

import ThreadingRow from '../ThreadingRow';
import './style.css';

class Threading extends Component {
  /*
  rowNumber(n) {
    return (this.props.currentState.numberOfWeaves <= n)
      ? n
      : this.props.currentState.numberOfWeaves
  }*/

  render() {
    const {threadingsState, settingsState, onClick, offClick} = this.props;
    const indents = [];

    for (
      let i = (settingsState.threadingSize ? settingsState.threadingSize : 8);
      i > /*this.rowNumber(4)*/0;
      i--) {
      indents.push(<ThreadingRow
          key={i}
          threadingsState={threadingsState}
          settingsState={settingsState}
          onClick={onClick}
          offClick={offClick}
          row={i}
        />);
    }

    return (
      <div className='Threading'>
        {indents}
      </div>
    );
  }
}

export default Threading;
<commit_msg>removed old code<commit_after>import React, { Component } from 'react';

import ThreadingRow from '../ThreadingRow';
import './style.css';

class Threading extends Component {
  render() {
    const {threadingsState, settingsState, onClick, offClick} = this.props;
    const indents = [];

    for (
      let i = (settingsState.threadingSize ? settingsState.threadingSize : 8);
      i > 0;
      i--) {
      indents.push(<ThreadingRow
          key={i}
          threadingsState={threadingsState}
          settingsState={settingsState}
          onClick={onClick}
          offClick={offClick}
          row={i}
        />);
    }

    return (
      <div className='Threading'>
        {indents}
      </div>
    );
  }
}

export default Threading;

{'fraction_non_alphanumeric': 0.1288196524865189, 'fraction_numerical': 0.0029958058717795086, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, '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': '1071774', 'n_tokens_mistral': 501, 'n_tokens_neox': 501, 'n_words': 104}