<commit_before>'use strict'
import React from 'react'
import PropTypes from 'prop-types'

const AuthorRow = (props) => {
  const {name, email, last_logged, pic,} = props.author
  const date = new Date(last_logged * 1000)
  const months = [
    'Jan',
    'Feb',
    'Mar',
    'Apr',
    'May',
    'Jun',
    'Jul',
    'Aug',
    'Sep',
    'Oct',
    'Nov',
    'Dec',
  ]
  const lastLogged = `${months[date.getMonth()]}. ${date.getDate()}, ${date.getFullYear()}`
  const noPic = {
    fontSize: '12px',
    lineHeight: '0px',
    fontFamily: 'sans',
    position: 'relative',
    top: '-10px'
  }
  let picture = (
    <div className="text-center" onClick={props.thumbnail}>
      <div>
        <i className="fas fa-camera fa-2x text-muted"></i>
      </div>
      <span style={noPic}>No picture</span>
    </div>
  )
  if (pic != null) {
    picture = (<div className="circle-frame pointer"><img src={pic} onClick={props.thumbnail} /></div>)
  }
  return (
    <tr className="align-items-center">
      <td className="align-middle">
        <button className="btn btn-primary btn-sm" onClick={props.update}>
          <i className="fas fa-edit"></i>
        </button>
      </td>
      <td className="align-middle">{picture}</td>
      <td className="align-middle">{name}</td>
      <td className="align-middle">{email}</td>
      <td className="align-middle">{lastLogged}</td><commit_msg>Centering author picture<commit_after>'use strict'
import React from 'react'
import PropTypes from 'prop-types'

const AuthorRow = (props) => {
  const {name, email, last_logged, pic,} = props.author
  const date = new Date(last_logged * 1000)
  const months = [
    'Jan',
    'Feb',
    'Mar',
    'Apr',
    'May',
    'Jun',
    'Jul',
    'Aug',
    'Sep',
    'Oct',
    'Nov',
    'Dec',
  ]
  const lastLogged = `${months[date.getMonth()]}. ${date.getDate()}, ${date.getFullYear()}`
  const noPic = {
    fontSize: '12px',
    lineHeight: '0px',
    fontFamily: 'sans',
    position: 'relative',
    top: '-10px'
  }
  let picture = (
    <div className="text-center" onClick={props.thumbnail}>
      <div>
        <i className="fas fa-camera fa-2x text-muted"></i>
      </div>
      <span style={noPic}>No picture</span>
    </div>
  )
  if (pic != null) {
    picture = (<div className="circle-frame pointer"><img src={pic} onClick={props.thumbnail} /></div>)
  }
  return (
    <tr className="align-items-center">
      <td className="align-middle">
        <button className="btn btn-primary btn-sm" onClick={props.update}>
          <i className="fas fa-edit"></i>
        </button>
      </td>
      <td className="align-middle d-flex justify-content-center">{picture}</td>
      <td className="align-middle">{name}</td>
      <td className="align-middle"><a href={`mailto:${email}`}>{email}</a></td>
      <td className="align-middle">{lastLogged}</td>
{'fraction_non_alphanumeric': 0.1924554662940971, 'fraction_numerical': 0.006985679357317499, 'mean_word_length': 2.934065934065934, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 59, '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': '2212391', 'n_tokens_mistral': 998, 'n_tokens_neox': 978, 'n_words': 212}