original_docstring: 
      Function used to parse the statistical information from the ping response.
      Example: "Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms"
      Returns the percent of packet loss, received packets, transmitted packets, and RTT dict.
      
docstring: Function used to parse the statistical information from the ping response.
docstring_tokens: Function used to parse the statistical information from the ping response .
code: def parse_ping(ping_stats):
      """
      Function used to parse the statistical information from the ping response.
      Example: "Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms"
      Returns the percent of packet loss, received packets, transmitted packets, and RTT dict.
      """
      rate_re = re.compile(
          "^\\w+\\s+\\w+\\s+\\w+\\s+(?P<pct>\\d+)\\s+\\w+\\s+\\((?P<rx>\\d+)/(?P<tx>\\d+)\\)"
      )
      rtt_re = re.compile(
          ".*,\\s+\\S+\\s+\\S+\\s+=\\s+(?P<min>\\d+)/(?P<avg>\\d+)/(?P<max>\\d+)\\s+\\w+\\s*$|.*\\s*$"
      )
      rate = rate_re.match(ping_stats)
      rtt = rtt_re.match(ping_stats)
      return (
          rate.group("pct"),
          rate.group("rx"),
          rate.group("tx"),
          rtt.groupdict(),
      )
code_tokens: def parse_ping ( ping_stats ) : rate_re = re . compile ( "^\\w+\\s+\\w+\\s+\\w+\\s+(?P<pct>\\d+)\\s+\\w+\\s+\\((?P<rx>\\d+)/(?P<tx>\\d+)\\)" ) rtt_re = re . compile ( ".*,\\s+\\S+\\s+\\S+\\s+=\\s+(?P<min>\\d+)/(?P<avg>\\d+)/(?P<max>\\d+)\\s+\\w+\\s*$|.*\\s*$" ) rate = rate_re . match ( ping_stats ) rtt = rtt_re . match ( ping_stats ) return ( rate . group ( "pct" ) , rate . group ( "rx" ) , rate . group ( "tx" ) , rtt . groupdict ( ) , )
short_docstring: Function used to parse the statistical information from the ping response.
short_docstring_tokens: Function used to parse the statistical information from the ping response .
comment: """
      Function used to parse the statistical information from the ping response.
      Example: "Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms"
      Returns the percent of packet loss, received packets, transmitted packets, and RTT dict.
      """