<commit_before><?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="ntp">
        <properties>
          <help>Show peer status of NTP daemon</help>
        </properties>
        <command>if ps -C ntpd &amp;&gt;/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi</command>
        <children>
          <tagNode name="server">
            <properties>
              <help>Show date and time of specified NTP server</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_ntp_servers.sh</script>
              </completionHelp>
            </properties>
            <command>/usr/sbin/ntpdate -q "$4"</command>
          </tagNode>
          <node name="info">
            <properties>
              <help>Show NTP operational summary</help>
            </properties>
            <command>if ps -C ntpd &amp;&gt;/dev/null; then ntpdc -n -c sysinfo; ntpdc -n -c kerninfo; else echo NTP daemon disabled; fi</command>
        </node>

        </children>
      </node><commit_msg>T2188: use ntpq for query NTP daemon infos<commit_after><?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="ntp">
        <properties>
          <help>Show peer status of NTP daemon</help>
        </properties>
        <command>if ps -C ntpd &amp;&gt;/dev/null; then ntpq -n -c peers; else echo NTP daemon disabled; fi</command>
        <children>
          <tagNode name="server">
            <properties>
              <help>Show date and time of specified NTP server</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_ntp_servers.sh</script>
              </completionHelp>
            </properties>
            <command>/usr/sbin/ntpdate -q "$4"</command>
          </tagNode>
          <node name="info">
            <properties>
              <help>Show NTP operational summary</help>
            </properties>
            <command>if ps -C ntpd &amp;&gt;/dev/null; then ntpq -n -c sysinfo; ntpq -n -c kerninfo; else echo NTP daemon disabled; fi</command>
        </node>

        </children>
      </node>
{'fraction_non_alphanumeric': 0.13238007380073802, 'fraction_numerical': 0.004612546125461255, 'mean_word_length': 1.9231805929919137, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 2, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7127944', 'n_tokens_mistral': 661, 'n_tokens_neox': 646, 'n_words': 172}