<commit_before># HTML writer
# sensor information

# History:
# 	<NAME> 2015-08-21 original script

module ADIWG
    module Mdtranslator
        module Writers
            module Html

                class MdHtmlSensorInfo
                    def initialize(html)
                        @html = html
                    end

                    def writeHtml(hSensor)

                        # sensor information - tone gradations
                        s = hSensor[:toneGradations]
                        if !s.nil?
                            @html.em('Number of tone gradations: ')
                            @html.text!(s.to_s)
                            @html.br
                        end

                        # sensor information - sensor min
                        s = hSensor[:sensorMix]
                        if !s.nil?
                            @html.em('Sensor lower limit: ')
                            @html.text!(s.to_s)
                            @html.br
                        end

                        # sensor information - sensor max
                        s = hSensor[:sensorMax]
                        if !s.nil?
                            @html.em('Sensor upper limit: ')
                            @html.text!(s.to_s)
                            @html.br
                        end<commit_msg>- patch sensor min bug<commit_after># HTML writer
# sensor information

# History:
# 	<NAME> 2015-08-21 original script

module ADIWG
    module Mdtranslator
        module Writers
            module Html

                class MdHtmlSensorInfo
                    def initialize(html)
                        @html = html
                    end

                    def writeHtml(hSensor)

                        # sensor information - tone gradations
                        s = hSensor[:toneGradations]
                        if !s.nil?
                            @html.em('Number of tone gradations: ')
                            @html.text!(s.to_s)
                            @html.br
                        end

                        # sensor information - sensor min
                        s = hSensor[:sensorMin]
                        if !s.nil?
                            @html.em('Sensor lower limit: ')
                            @html.text!(s.to_s)
                            @html.br
                        end

                        # sensor information - sensor max
                        s = hSensor[:sensorMax]
                        if !s.nil?
                            @html.em('Sensor upper limit: ')
                            @html.text!(s.to_s)
                            @html.br
                        end
{'fraction_non_alphanumeric': 0.0670122176971492, 'fraction_numerical': 0.005923731951129212, 'mean_word_length': 0.732051282051282, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6271382', 'n_tokens_mistral': 631, 'n_tokens_neox': 579, 'n_words': 143}