<commit_before>import React, { PropTypes } from 'react';
import CSSModules from 'react-css-modules';
import styles from './styles.css';
import { Rating } from 'belle';
const starStyle = {
  opacity: 1,
  marginBottom: 15,
  fontSize: 40,
};

class Info extends React.Component {
  constructor(props) {
    super(props);
    this.displayName = 'Info';
  }
  render() {
    const { good } = this.props;
    const higestBidding = good.allBiddings.biddings[good.allBiddings.biddings.length - 1];
    return (
      <div styleName="good-info">
        <img src={good.image} alt="not found" />
        <div styleName="word-intro">
          <h2>{good.title}</h2>
          <Rating defaultValue={2} disabled disabledStyle={starStyle}>star</Rating>
          <label>Description</label>
          <p>{good.description}</p>
          <label>Highest Bidder</label>
          <p>{higestBidding.user.fakeName}</p>
          <label>Highest Amount</label>
          <p>NTD {higestBidding.amount}</p>
          <label>Created At</label>
          <p>{good.createdAt}</p>
          <label>Updated At</label>
          <p>{good.updatedAt}</p>
          <label>Good ID</label>
          <p>{good.id}</p>
          <label>Time of Closing</label><commit_msg>Bugfix: higestBidding.user.fakeName<commit_after>import React, { PropTypes } from 'react';
import CSSModules from 'react-css-modules';
import styles from './styles.css';
import { Rating } from 'belle';
const starStyle = {
  opacity: 1,
  marginBottom: 15,
  fontSize: 40,
};

class Info extends React.Component {
  constructor(props) {
    super(props);
    this.displayName = 'Info';
  }
  render() {
    const { good } = this.props;
    const higestBidding = good.allBiddings.biddings[good.allBiddings.biddings.length - 1];
    return (
      <div styleName="good-info">
        <img src={good.image} alt="not found" />
        <div styleName="word-intro">
          <h2>{good.title}</h2>
          <Rating defaultValue={2} disabled disabledStyle={starStyle}>star</Rating>
          <label>Description</label>
          <p>{good.description}</p>
          <label>Highest Bidder</label>
          <p>{higestBidding && higestBidding.user && higestBidding.user.fakeName || 'None of above'}</p>
          <label>Highest Amount</label>
          <p>NTD {higestBidding && higestBidding.amount || 0}</p>
          <label>Created At</label>
          <p>{good.createdAt}</p>
          <label>Updated At</label>
          <p>{good.updatedAt}</p>
          <label>Good ID</label>
          <p>{good.id}</p>
          <label>Time of Closing</label>
{'fraction_non_alphanumeric': 0.15605590062111802, 'fraction_numerical': 0.007375776397515528, 'mean_word_length': 2.697274031563845, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '5922594', 'n_tokens_mistral': 850, 'n_tokens_neox': 825, 'n_words': 159}