<commit_before>require 'HDLRuby'
require 'HDLRuby/hruby_tools'
require 'HDLRuby/hruby_low_resolve'
require 'HDLRuby/hruby_low_mutable'


module HDLRuby::Low


##
# Convert the connections to transmit statement within a behavior.
# Used by the HDLRuby simulator.
#
########################################################################
    

    ## Extends the SystemT class with functionality for breaking assingments
    #  to concats.
    class SystemT

        ## Remove the connections and replace them by behaviors.
        #  NOTE: one behavior is created for input connections and
        #        one for output ones while inout/inner-only connections
        #        are copied in both behaviors.
        def connections_to_behaviors!
            # Process the connections: create a behavior containing
            # them all within a par block.
            self.scope.each_scope_deep do |scope|
                if scope.each_connection.to_a.any? then
                    inputs_blk = Block.new(:par)
                    outputs_blk = Block.new(:par)
                    timed_blk = TimeBlock.new(:seq)
                    scope.each_connection do |connection|
                        # Check the left and right of the connection<commit_msg>Minor trace addition.<commit_after>require 'HDLRuby'
require 'HDLRuby/hruby_tools'
require 'HDLRuby/hruby_low_resolve'
require 'HDLRuby/hruby_low_mutable'


module HDLRuby::Low


##
# Convert the connections to transmit statement within a behavior.
# Used by the HDLRuby simulator.
#
########################################################################
    

    ## Extends the SystemT class with functionality for breaking assingments
    #  to concats.
    class SystemT

        ## Remove the connections and replace them by behaviors.
        #  NOTE: one behavior is created for input connections and
        #        one for output ones while inout/inner-only connections
        #        are copied in both behaviors.
        def connections_to_behaviors!
            # Process the connections: create a behavior containing
            # them all within a par block.
            self.scope.each_scope_deep do |scope|
                if scope.each_connection.to_a.any? then
                    inputs_blk = Block.new(:par)
                    outputs_blk = Block.new(:par)
                    timed_blk = TimeBlock.new(:seq)
                    scope.each_connection do |connection|
                        # puts "For connection: #{connection}"
                        # Check the left and right of the connection
{'fraction_non_alphanumeric': 0.11253395421032208, 'fraction_numerical': 0.0, 'mean_word_length': 2.292464878671775, 'pattern_counts': {'":': 0, '<': 3, '<?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': '517210', 'n_tokens_mistral': 670, 'n_tokens_neox': 608, 'n_words': 213}