<commit_before>import React from 'react'
import ReactDOM from 'react-dom'


class List extends React.Component{

  editNote(note){
    this.props.onFoodEdit(note)
  }
  render(){
    console.log(this.props, 'props from List.js')
    return (
        <ul className="foodList">
          {this.props.foodnotes.map((note,index)=>{
            return (
              <li key={index}>
                <div className="hov">
                  <div className="x">
                    <p className="fooditem"> {note} </p>
                    <p className="remove" onClick={this.props.onFoodDelete.bind(index,note)}> Delete </p>
                    <i className="fa fa-trash-o" aria-hidden="true"></i><commit_msg>filter out note[0] in the list<commit_after>import React from 'react'
import ReactDOM from 'react-dom'


class List extends React.Component{

  editNote(note){
    this.props.onFoodEdit(note)
  }
  render(){
    console.log(this.props, 'props from List.js')
    return (
        <ul className="foodList">
          {this.props.foodnotes.map((note,index)=>{
            return (
              <li key={index}>
                <div className="hov">
                  <div className="x">
                    <p className="fooditem"> {note[0].length > 0 ? note[0] : 'undefined'} </p>
                    <p className="remove" onClick={this.props.onFoodDelete.bind(index,note)}> Delete </p>
                    <i className="fa fa-trash-o" aria-hidden="true"></i>
{'fraction_non_alphanumeric': 0.14921286789869953, 'fraction_numerical': 0.0027378507871321013, 'mean_word_length': 2.185185185185185, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 26, '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': '2388477', 'n_tokens_mistral': 445, 'n_tokens_neox': 421, 'n_words': 93}