<commit_before>import React from "react";
import crypto from "crypto";

const URL = 'http://www.gravatar.com/avatar/';

export default class Gravatar extends React.Component {
    constructor(props) {
        super(props);

        this.email = props.children.trim().toLowerCase();
        this.size = props.size || 80;

        this.url = URL + crypto.createHash('md5').update(this.email).digest("hex") + "?s=" + this.size;
    }

    render() {
        return (
            <img src={this.url} alt={this.email}/>
        );
    }
}<commit_msg>fix gravatar component<commit_after>import React from "react";
import crypto from "crypto";

const URL = 'http://www.gravatar.com/avatar/';

export default class Gravatar extends React.Component {
    render() {
        let email = this.props.children.trim().toLowerCase();
        let size = this.props.size || 80;

        let url = URL + crypto.createHash('md5').update(email).digest("hex") + "?s=" + size;

        return <img src={url} alt={email}/>;
    }
}
{'fraction_non_alphanumeric': 0.1626984126984127, 'fraction_numerical': 0.005952380952380952, 'mean_word_length': 2.851145038167939, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3086771', 'n_tokens_mistral': 317, 'n_tokens_neox': 306, 'n_words': 71}