<commit_before># -*- encoding : utf-8 -*-
# models/about_me_validator.rb:
# Validates editing about me text on user profile pages.
#
# Copyright (c) 2010 UK Citizens Online Democracy. All rights reserved.
# Email: <EMAIL>; WWW: http://www.mysociety.org/

class AboutMeValidator
    include ActiveModel::Validations

    attr_accessor :about_me

    validates_length_of :about_me, maximum: 500, message: _("Please keep it shorter than 500 characters")

    def initialize(attributes = {})
        attributes.each do |name, value|
            send("#{name}=", value)
        end
    end
end<commit_msg>Support old hash syntax<commit_after># -*- encoding : utf-8 -*-
# models/about_me_validator.rb:
# Validates editing about me text on user profile pages.
#
# Copyright (c) 2010 UK Citizens Online Democracy. All rights reserved.
# Email: <EMAIL>; WWW: http://www.mysociety.org/

class AboutMeValidator
    include ActiveModel::Validations

    attr_accessor :about_me

    validates_length_of :about_me, :maximum => 500, :message => _("Please keep it shorter than 500 characters")

    def initialize(attributes = {})
        attributes.each do |name, value|
            send("#{name}=", value)
        end
    end
end
{'fraction_non_alphanumeric': 0.1118421052631579, 'fraction_numerical': 0.018092105263157895, 'mean_word_length': 3.474264705882353, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4603686', 'n_tokens_mistral': 379, 'n_tokens_neox': 349, 'n_words': 114}