<commit_before>import React, { PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Presentation.css';

function Presentation({ employee }) {
  return (
    <div className={s.pictureContainer}>
      { renderImage(employee) }
      { renderName(employee) }
    </div>
  );
}

function renderImage(employee){
  var image = "";
  if(employee){ image = (<img src={employee.picture} />); }

  return (
    <div className={s.picture}>
      { image }
    </div>
  );
}

function renderName(employee){
  var name = "";
  if(employee){ name = employee.firstname + " " + employee.lastname; }

  return (
    <p className={s.userName}>
      { name }
    </p>
  );
}

export default withStyles(s)(Presentation);
<commit_msg>re-wrote the code for profile display<commit_after>import React, { PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Presentation.css';

function Presentation({ employee }) {
  return (
    <div className={s.pictureContainer}>
      { renderImage(employee) }
      { renderName(employee) }
    </div>
  );
}

function renderImage(employee){
  var image = (employee) ? (<img src={employee.picture} />) : ""

  return (
    <div className={s.picture}>
      { image }
    </div>
  );
}

function renderName(employee){
  var name = (employee) ? (employee.firstname + " " + employee.lastname) : "";

  return (
    <p className={s.userName}>
      { name }
    </p>
  );
}

export default withStyles(s)(Presentation);

{'fraction_non_alphanumeric': 0.15953307392996108, 'fraction_numerical': 0.0, 'mean_word_length': 3.3711048158640224, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3103118', 'n_tokens_mistral': 501, 'n_tokens_neox': 486, 'n_words': 105}