<commit_before><?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="network"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
        xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"><!--Network Binding-->
    <thing-type id="device">
        <label>Network Device</label>
        <description>Device which must be connected to the same network</description>

        <channels>
            <channel id="online" typeId="online"></channel>
            <channel id="time" typeId="time"></channel>
        </channels>
        <config-description>
			<parameter name="hostname" type="text" required="true">
				<label>Hostname or IP</label>
				<description>Hostname or IP of the device</description>
			</parameter>

			<parameter name="port" type="integer">
				<label>Port</label>
				<description>The port on which the device can be accessed</description>
				<default>0</default>
			</parameter>

			<parameter name="retry" type="integer">
				<label>Retry</label>
				<description>Defines how many times a ping shall occur, before the device is stated as offline</description>
				<default>1</default>
			</parameter>

			<parameter name="timeout" type="integer">
				<label>Timeout</label>
				<description>States how long to wait (in ms), if a connection can not be established. If system ping is used, only full seconds are valid.</description>
				<default>5000</default>
			</parameter>

			<parameter name="refresh_interval" type="integer">
				<label>Refresh Interval</label>
				<description>States how often a refresh shall occur (in ms)</description>
				<default>60000</default>
			</parameter>	
			
			<parameter name="use_system_ping" type="boolean">
				<label>Use System Ping</label>
				<description>Uses the ping program from the system</description>
				<default>false</default>
			</parameter>		

		</config-description>
    </thing-type>
    <channel-type id="online">
        <item-type>Switch</item-type>
        <label>Online</label>
        <description>States whether a device is online or not</description>
        <category>Switch</category>
	    <state readOnly="true"></state>
    </channel-type>
    <channel-type id="time">
        <item-type>Number</item-type>
        <label>Time</label>
        <description>States the Ping time</description>
        <category>Number</category>
	    <state readOnly="true"></state>
    </channel-type>

</thing:thing-descriptions><commit_msg>expose "dhcplisten" parameter to Paper UI (#1645)<commit_after><?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="network"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
        xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"><!--Network Binding-->
    <thing-type id="device">
        <label>Network Device</label>
        <description>Device which must be connected to the same network</description>

        <channels>
            <channel id="online" typeId="online"></channel>
            <channel id="time" typeId="time"></channel>
        </channels>
        <config-description>
			<parameter name="hostname" type="text" required="true">
				<label>Hostname or IP</label>
				<description>Hostname or IP of the device</description>
			</parameter>

			<parameter name="port" type="integer">
				<label>Port</label>
				<description>The port on which the device can be accessed</description>
				<default>0</default>
			</parameter>

			<parameter name="retry" type="integer">
				<label>Retry</label>
				<description>Defines how many times a ping shall occur, before the device is stated as offline</description>
				<default>1</default>
			</parameter>

			<parameter name="timeout" type="integer">
				<label>Timeout</label>
				<description>States how long to wait (in ms), if a connection can not be established. If system ping is used, only full seconds are valid.</description>
				<default>5000</default>
			</parameter>

			<parameter name="refresh_interval" type="integer">
				<label>Refresh Interval</label>
				<description>States how often a refresh shall occur (in ms)</description>
				<default>60000</default>
			</parameter>	
			
			<parameter name="use_system_ping" type="boolean">
				<label>Use System Ping</label>
				<description>Uses the ping program from the system</description>
				<default>false</default>
			</parameter>		

            <parameter name="dhcplisten" type="boolean">
                <label>Listen for DHCP requests</label>
                <description>Whether to use DHCP listen or not (may require running as root)</description>
                <default>false</default>
            </parameter>

		</config-description>
    </thing-type>
    <channel-type id="online">
        <item-type>Switch</item-type>
        <label>Online</label>
        <description>States whether a device is online or not</description>
        <category>Switch</category>
	    <state readOnly="true"></state>
    </channel-type>
    <channel-type id="time">
        <item-type>Number</item-type>
        <label>Time</label>
        <description>States the Ping time</description>
        <category>Number</category>
	    <state readOnly="true"></state>
    </channel-type>

</thing:thing-descriptions>
{'fraction_non_alphanumeric': 0.14377797672336615, 'fraction_numerical': 0.010743061772605193, 'mean_word_length': 3.4018912529550827, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 2, '>': 187, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '7591530', 'n_tokens_mistral': 1807, 'n_tokens_neox': 1587, 'n_words': 374}