<commit_before>(ns ontrail.user
  (:use [ontrail crypto mongodb utils emails])
  (:require [monger.collection :as mc]
            [monger.query :as mq]
            [monger.result :as mr]
            [postal.core :as postal]))

(def #^{:private true} logger (org.slf4j.LoggerFactory/getLogger (str *ns*)))

(defn as-gravatar [user]
  (let [gravatar? (get user :gravatar)
        email (.toLowerCase (get user :email))
        gravatar-md5-hash (md5 email)]
    (if gravatar?
      (str "http://www.gravatar.com/avatar/" gravatar-md5-hash "?d=monsterid")<commit_msg>identicons instead of monsters<commit_after>(ns ontrail.user
  (:use [ontrail crypto mongodb utils emails])
  (:require [monger.collection :as mc]
            [monger.query :as mq]
            [monger.result :as mr]
            [postal.core :as postal]))

(def #^{:private true} logger (org.slf4j.LoggerFactory/getLogger (str *ns*)))

(defn as-gravatar [user]
  (let [gravatar? (get user :gravatar)
        email (.toLowerCase (get user :email))
        gravatar-md5-hash (md5 email)]
    (if gravatar?
      (str "http://www.gravatar.com/avatar/" gravatar-md5-hash "?d=identicon&r=x")
{'fraction_non_alphanumeric': 0.1514360313315927, 'fraction_numerical': 0.006962576153176675, 'mean_word_length': 3.078014184397163, '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': '618630', 'n_tokens_mistral': 415, 'n_tokens_neox': 407, 'n_words': 102}