<commit_before>const crypto = require('crypto')

const getHash = str => crypto.createHash('md5').update(str).digest('hex')

const gravatarUrl = 'http://www.gravatar.com/avatar/'
const gravatarSize = 150

const getGravatarUrl = email =>
  `${gravatarUrl}${getHash(email)}?s=${gravatarSize}`

module.exports = { getGravatarUrl }<commit_msg>fix(api-helpers): provide default value for email parameter in getGravatarUrl<commit_after>const crypto = require('crypto')

const getHash = str => crypto.createHash('md5').update(str).digest('hex')

const gravatarUrl = 'http://www.gravatar.com/avatar/'
const gravatarSize = 150

const getGravatarUrl = (email = '') => `${gravatarUrl}${getHash(email)}?s=${gravatarSize}`

module.exports = { getGravatarUrl }
{'fraction_non_alphanumeric': 0.1651006711409396, 'fraction_numerical': 0.010738255033557046, 'mean_word_length': 6.612244897959184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3381859', 'n_tokens_mistral': 247, 'n_tokens_neox': 238, 'n_words': 46}