<commit_before>import React from 'react';
import glassDetails from './../../glassDetails.js';
import beerPair from './../../pairList.js';

class Details extends React.Component {
  constructor(props){
  	super(props);
  }

  render(){
  	return(
  	  <div>
        {this.props.updateGlass ? `${glassDetails[this.props.updateGlass]}` : ''}
  	  </div>
  	)
  }
}


export default Details;<commit_msg>Refactor details component to stateless component<commit_after>import React from 'react';
import glassDetails from './../../glassDetails.js';
import beerPair from './../../pairList.js';

const Details = (props) => {
  return (
    <div>
      {props.updateGlass ? `${glassDetails[props.updateGlass]}` : ''}
    </div>  
  );
}

export default Details;
{'fraction_non_alphanumeric': 0.17333333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 3.2429378531073447, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '7460975', 'n_tokens_mistral': 235, 'n_tokens_neox': 233, 'n_words': 54}