<commit_before>import React from 'react';
import md5 from 'md5';

import UserAvatar from 'react-user-avatar';
import SmartTimeAgo from 'react-smart-time-ago';

export default class TagHeader extends React.Component {
  static propTypes = {
    project: React.PropTypes.object,
    tag: React.PropTypes.object
  };
  render() {
    const repoName = this.props.project.repo.split('/')[1];
    if (!this.props.tag) {
      return <div className="repo">{repoName}</div>
    }
    const tag = this.props.tag;
    const avatarUrl = `http://www.gravatar.com/avatar/${md5(tag.tagger.email)}`;
    return (
      <div>
        <UserAvatar size='60' name={tag.tagger.name} src={avatarUrl} className="avatar" />
        <div className="repo">{repoName}</div>
        <span className="ago"><SmartTimeAgo value={new Date(tag.tagger.date)} /></span><commit_msg>load gravatars on the same scheme<commit_after>import React from 'react';
import md5 from 'md5';

import UserAvatar from 'react-user-avatar';
import SmartTimeAgo from 'react-smart-time-ago';

export default class TagHeader extends React.Component {
  static propTypes = {
    project: React.PropTypes.object,
    tag: React.PropTypes.object
  };
  render() {
    const repoName = this.props.project.repo.split('/')[1];
    if (!this.props.tag) {
      return <div className="repo">{repoName}</div>
    }
    const tag = this.props.tag;
    const avatarUrl = `//www.gravatar.com/avatar/${md5(tag.tagger.email)}`;
    return (
      <div>
        <UserAvatar size='60' name={tag.tagger.name} src={avatarUrl} className="avatar" />
        <div className="repo">{repoName}</div>
        <span className="ago"><SmartTimeAgo value={new Date(tag.tagger.date)} /></span>
{'fraction_non_alphanumeric': 0.1585722644821533, 'fraction_numerical': 0.007021650087770626, 'mean_word_length': 3.6721311475409837, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1339207', 'n_tokens_mistral': 562, 'n_tokens_neox': 555, 'n_words': 118}