<commit_before>import React from 'react'
import Restaurant from './Restaurant'
import RestaurantModel from './RestaurantModel'

class RestaurantList extends React.Component {
  constructor(props) {
    super(props)
    this.displayName = "RestaurantList"
    this.state = {
      selectedRestaurant : 0
    }
  }

  handleSelectedRestaurant(restaurant, i) {
    console.log('selected restaurant ' + i)
    this.setState({ selectedRestaurant: i });
  }

  render() {
    var restaurants = this.props.restaurants.map(
              function(restaurant, i) {
                var selected = (this.state.selectedRestaurant == i)
                return (<Restaurant
                  onClick={this.handleSelectedRestaurant.bind(this, restaurant, i)}
                  model={restaurant}
                  key={i}
                  selected={selected} />)
              }, this)
                            
    return (<commit_msg>Keep the fat this happe<commit_after>import React from 'react'
import Restaurant from './Restaurant'
import RestaurantModel from './RestaurantModel'

class RestaurantList extends React.Component {
  constructor(props) {
    super(props)
    this.displayName = "RestaurantList"
    this.state = {
      selectedRestaurant : 0
    }
  }

  handleSelectedRestaurant(restaurant, i) {
    console.log('selected restaurant ' + i)
    this.setState({ selectedRestaurant: i });
  }

  render() {
    var restaurants = this.props.restaurants.map(
              (restaurant, i) => {
                var selected = (this.state.selectedRestaurant == i)
                return (<Restaurant
                  onClick={this.handleSelectedRestaurant.bind(this, restaurant, i)}
                  model={restaurant}
                  key={i}
                  selected={selected} />)
              })
                            
    return (
{'fraction_non_alphanumeric': 0.10221741481882099, 'fraction_numerical': 0.001081665765278529, 'mean_word_length': 2.0578512396694215, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1826941', 'n_tokens_mistral': 516, 'n_tokens_neox': 469, 'n_words': 105}