<commit_before>module Spider; module Forms
    
    class Password < Input
        tag 'password'
        is_attr_accessor :size, :type => Fixnum, :default => 25

        def start
            @modified = false
            if (params['pwd1'] && !params['pwd1'].empty? && params['pwd2'] && !params['pwd2'].empty?)
                if (params['pwd1'] != params['pwd2'])
                    add_error("Le due password non corrispondono")
                else
                    @value = params['pwd1']
                    @modified = true
                end
            end
        end
        
        def value=(val)
        end

    end
    
end; end<commit_msg>Renamed start in prepare; fixed password match check<commit_after>module Spider; module Forms
    
    class Password < Input
        tag 'password'
        is_attr_accessor :size, :type => Fixnum, :default => 25

        def prepare
            @modified = false
            if (params['pwd1'] && !params['pwd1'].empty? && params['pwd2'])
                if (params['pwd1'] != params['pwd2'])
                    add_error("Le due password non corrispondono")
                else
                    @value = params['pwd1']
                    @modified = true
                end
            end
        end
        
        def value=(val)
        end

    end
    
end; end
{'fraction_non_alphanumeric': 0.10738255033557047, 'fraction_numerical': 0.01267710663683818, 'mean_word_length': 1.392156862745098, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2974807', 'n_tokens_mistral': 381, 'n_tokens_neox': 355, 'n_words': 97}