<commit_before>#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-

#
module EvenDoors
    #
    class Door < Spot
        #
        def initialize n, p=nil
            super n, p
            @saved = nil
            @parent.add_spot self if @parent
        end
        #
        def require_p p_kls
            p = EvenDoors::Twirl.require_p p_kls
            p.src = self
            p
        end
        #
        def release_p p
            @saved=nil if @saved==p     # particle is released, all is good
            EvenDoors::Twirl.release_p p
        end
        #
        def process_p p
            @viewer.receive_p p if @viewer
            @saved = p
            receive_p p
            if not @saved.nil?
                puts "application didn't give that particle back #{p}" if EvenDoors::Twirl.debug
                puts "\t#{p.data EvenDoors::ERROR_FIELD}" if p.action==EvenDoors::ACT_ERROR
                release_p @saved
                @saved = nil
            end<commit_msg>door: show spot path on @saved error<commit_after>#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-

#
module EvenDoors
    #
    class Door < Spot
        #
        def initialize n, p=nil
            super n, p
            @saved = nil
            @parent.add_spot self if @parent
        end
        #
        def require_p p_kls
            p = EvenDoors::Twirl.require_p p_kls
            p.src = self
            p
        end
        #
        def release_p p
            @saved=nil if @saved==p     # particle is released, all is good
            EvenDoors::Twirl.release_p p
        end
        #
        def process_p p
            @viewer.receive_p p if @viewer
            @saved = p
            receive_p p
            if not @saved.nil?
                puts "#{path} didn't give that particle back #{p}" if EvenDoors::Twirl.debug
                puts "\t#{p.data EvenDoors::ERROR_FIELD}" if p.action==EvenDoors::ACT_ERROR
                release_p @saved
                @saved = nil
            end
{'fraction_non_alphanumeric': 0.08462694041061593, 'fraction_numerical': 0.00100150225338007, 'mean_word_length': 1.2678774120317822, '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': '3671127', 'n_tokens_mistral': 597, 'n_tokens_neox': 586, 'n_words': 171}