<commit_before>'use strict';

var React = require('react');
var merge = require('lodash.merge');
var StyleMixin = require('../../lib/StyleMixin');
var css = require('./index.styl');

var DOM = React.DOM;
var PropTypes = React.PropTypes;

module.exports = React.createClass({
  displayName: 'UserImage',
  mixins: [StyleMixin],
  css: css,
  propTypes: {
    src: PropTypes.string
  },
  getDefaultProps: function() {
    return {
      style: {},
      src: 'http://www.gravatar.com/avatar/0?d=mm&s=300'
    };
  },
  render: function() {
    return DOM.div({
      className: 'user-image-component',
      style: merge(this.props.style, {
        background: 'url(' + this.props.src + ')',
        backgroundSize: 'contain',
        backgroundPosition: 'center center',
        backgroundRepeat: 'no-repeat'
      })
    });
  }
});
<commit_msg>revert cover to contain due to max width contain<commit_after>'use strict';

var React = require('react');
var merge = require('lodash.merge');
var StyleMixin = require('../../lib/StyleMixin');
var css = require('./index.styl');

var DOM = React.DOM;
var PropTypes = React.PropTypes;

module.exports = React.createClass({
  displayName: 'UserImage',
  mixins: [StyleMixin],
  css: css,
  propTypes: {
    src: PropTypes.string
  },
  getDefaultProps: function() {
    return {
      style: {},
      src: 'http://www.gravatar.com/avatar/0?d=mm&s=300'
    };
  },
  render: function() {
    return DOM.div({
      className: 'user-image-component',
      style: merge(this.props.style, {
        background: 'url(' + this.props.src + ')',
        backgroundSize: 'cover',
        backgroundPosition: 'center center',
        backgroundRepeat: 'no-repeat'
      })
    });
  }
});

{'fraction_non_alphanumeric': 0.17043478260869566, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 3.0046403712296983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5082653', 'n_tokens_mistral': 561, 'n_tokens_neox': 558, 'n_words': 118}