<commit_before>import React from 'react';
import Sample from './Sample.jsx';
import Howler from 'react-howler';

class Track extends React.Component {
  render() {
    return(
      <div>
        {this.props.track.map((step, index) => 
          <Sample 
            key={[this.props.index, index]} 
            step={step} 
            data={this.props.data} 
            index={this.props.index} 
            sound={new Howl( { src: `/api/sample/${this.props.sound}`} )}
          />
        )}
      </div>
    )
  };
}
export default Track;<commit_msg>(refactor) Passing array of index for each step down as index in track jsx<commit_after>import React from 'react';
import Sample from './Sample.jsx';
import Howler from 'react-howler';

class Track extends React.Component {
  render() {
    return(
      <div>
        {this.props.track.map((step, index) => 
          <Sample 
            key={[this.props.index, index]} 
            step={step} 
            data={this.props.data} 
            index={[this.props.index, index]} 
            sound={new Howl( { src: `/api/sample/${this.props.sound}`} )}
          />
        )}
      </div>
    )
  };
}
export default Track;
{'fraction_non_alphanumeric': 0.14974619289340102, 'fraction_numerical': 0.0, 'mean_word_length': 1.9649122807017543, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3086717', 'n_tokens_mistral': 369, 'n_tokens_neox': 357, 'n_words': 83}