<commit_before><!--
  Copyright 2013,2014 IBM Corp.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<!-- <script type="text/x-red" data-template-name="i2c-scan">
    <div class="form-row">
        <label for="node-input-i2cdevice"><i class="fa fa-globe"></i> I2C Device</label>
        <input type="text" id="node-input-i2cdevice">
    </div>

    <div class="form-row">
        <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
	<div class="form-tips">Scan for connected devices on I2C.</div>
</script>

<script type="text/x-red" data-help-name="i2c-scan">
    <p>Reads data from a local I2C port (default 0x2A)</p>
    <p>Shows a list of connected I2C devices at their numeric address.</p>
    <hr>
    <p>Input can be anything, it is not used, the setup i2c device is all that is used.</p>
    <p>Output 1, msg.payload is an Array of numeric ports that are currently connected to I2C.</p>
    <p>Output 2, msg is sent for each of Output 1's arrays. msg.payload is the numeric port address, msg.address is also the numeric port address.</p>

</script>

<script type="text/javascript">
    RED.nodes.registerType('i2c-scan',{
        category: 'input',
        defaults: {
		    i2cdevice: {type:"i2c-device-pecmac125a", required:true},
            name: {name:""}
        },
        color:"#00e66c",
        inputs:1,
        outputs:2,
        icon: "serial.png",
        label: function() {
            var I2CNode = RED.nodes.node(this.i2cdevice);
            return this.name||('Scan '+(I2CNode?I2CNode.label().split("/")[2]:"i2c-?"));
        },
        labelStyle: function() {
            return this.name?"node_label_italic":"";
        }
    });
</script> -->

<!-- Input Amps -->
<script type="text/x-red" data-template-name="i2c-current-amps-pecmac125a">
    <div class="form-row">
        <label for="node-input-i2cdevice"><i class="fa fa-globe"></i> I2C Device</label>
        <input type="text" id="node-input-i2cdevice">
    </div>

    <div class="form-row">
        <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
	<div class="form-tips">Get PECMAC125A Board Current via I2C.</div>
</script>

<script type="text/x-red" data-help-name="i2c-current-amps-pecmac125a">
    <p>Reads data from a local I2C PECMAC125A board on defined port (default 0x2A)</p>
</script>

<script type="text/javascript">
    RED.nodes.registerType('i2c-current-amps-pecmac125a',{
        category: 'input',
        defaults: {
		    i2cdevice: {type:"i2c-device-pecmac125a", required:true},
            name: {name:""}
        },
        color:"#00e66c",
        inputs:1,
        outputs:1,
        icon: "serial.png",
        label: function() {
            var I2CNode = RED.nodes.node(this.i2cdevice);
            return this.name||('Read Current From '+(I2CNode?I2CNode.label().split("/")[2]:"i2c-?"));
        },<commit_msg>display update<commit_after><!--
  Copyright 2013,2014 IBM Corp.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<!-- <script type="text/x-red" data-template-name="i2c-scan">
    <div class="form-row">
        <label for="node-input-i2cdevice"><i class="fa fa-globe"></i> I2C Device</label>
        <input type="text" id="node-input-i2cdevice">
    </div>

    <div class="form-row">
        <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
	<div class="form-tips">Scan for connected devices on I2C.</div>
</script>

<script type="text/x-red" data-help-name="i2c-scan">
    <p>Reads data from a local I2C port (default 0x2A)</p>
    <p>Shows a list of connected I2C devices at their numeric address.</p>
    <hr>
    <p>Input can be anything, it is not used, the setup i2c device is all that is used.</p>
    <p>Output 1, msg.payload is an Array of numeric ports that are currently connected to I2C.</p>
    <p>Output 2, msg is sent for each of Output 1's arrays. msg.payload is the numeric port address, msg.address is also the numeric port address.</p>

</script>

<script type="text/javascript">
    RED.nodes.registerType('i2c-scan',{
        category: 'input',
        defaults: {
		    i2cdevice: {type:"i2c-device-pecmac125a", required:true},
            name: {name:""}
        },
        color:"#00e66c",
        inputs:1,
        outputs:2,
        icon: "serial.png",
        label: function() {
            var I2CNode = RED.nodes.node(this.i2cdevice);
            return this.name||('Scan '+(I2CNode?I2CNode.label().split("/")[2]:"i2c-?"));
        },
        labelStyle: function() {
            return this.name?"node_label_italic":"";
        }
    });
</script> -->

<!-- Input Amps -->
<script type="text/x-red" data-template-name="i2c-current-amps-pecmac125a">
    <div class="form-row">
        <label for="node-input-i2cdevice"><i class="fa fa-globe"></i> I2C Device</label>
        <input type="text" id="node-input-i2cdevice">
    </div>

    <div class="form-row">
        <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
	<div class="form-tips">Get PECMAC125A Board Current via I2C.</div>
</script>

<script type="text/x-red" data-help-name="i2c-current-amps-pecmac125a">
    <p>Reads data from a local I2C PECMAC125A board on defined port (default 0x2A)</p>
</script>

<script type="text/javascript">
    RED.nodes.registerType('i2c-current-amps-pecmac125a',{
        category: 'input',
        defaults: {
		    i2cdevice: {type:"i2c-device-pecmac125a", required:true},
            name: {name:""}
        },
        color:"#00e66c",
        inputs:0,
        outputs:1,
        icon: "serial.png",
        label: function() {
            var I2CNode = RED.nodes.node(this.i2cdevice);
            return this.name||('Read Current From '+(I2CNode?I2CNode.label().split("/")[2]:"i2c-?"));
        },
{'fraction_non_alphanumeric': 0.15787227990328545, 'fraction_numerical': 0.024747546579433937, 'mean_word_length': 2.928491620111732, 'pattern_counts': {'":': 2, '<': 121, '<?xml version=': 0, '>': 121, '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': '1037388', 'n_tokens_mistral': 2404, 'n_tokens_neox': 2305, 'n_words': 617}