<commit_before>require 'digest/md5'

class ApplicationController < ActionController::Base
  # This is a proxy class to make various nil checks unnecessary
  class AnonymousUser
    def id
      nil
    end

    def level
      0
    end

    def name
      "Anonymous"<commit_msg>Whoever made this AnonymousUser class missed one '"%i" % nil' conversion. Worked in 1.8 but not anymore in 1.9.<commit_after>require 'digest/md5'

class ApplicationController < ActionController::Base
  # This is a proxy class to make various nil checks unnecessary
  class AnonymousUser
    def id
      0
    end

    def level
      0
    end

    def name
      "Anonymous"
{'fraction_non_alphanumeric': 0.051829268292682924, 'fraction_numerical': 0.013719512195121951, 'mean_word_length': 2.7542857142857144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1446430', 'n_tokens_mistral': 190, 'n_tokens_neox': 176, 'n_words': 74}