<commit_before><commit_msg>Example command<commit_after>package main

import (
	"fmt"
	"log"
	"os"
	"strconv"
	"time"

	"github.com/kanocz/go-fastping"
)

func main() {
	if len(os.Args) != 3 {
		fmt.Printf("Usage: %s <IP> <count>\n", os.Args[0])
		return
	}

	count, err := strconv.ParseUint(os.Args[2], 10, 64)
	if nil != err {
		log.Fatalln("Error parsing count:", err)
	}

	p := fastping.NewPinger()
	err = p.AddIP(os.Args[1])
	if nil != err {
		log.Fatalln("Error adding ip:", err)
	}

	p.MaxRTT = time.Second

	totalCount := 0
	rttSumm := time.Duration(0)

	for i := uint64(0); i < count; i++ {
		result, err := p.Run(map[string]bool{})
		if err != nil {
			log.Fatalln("Pinger error:", err)
		}
		fmt.Printf("%v ", result[os.Args[1]])
		if result[os.Args[1]] > 0 {
			totalCount++
			rttSumm += result[os.Args[1]]
		}
	}
	fmt.Println(" done!")
	fmt.Printf("Pings received %d/%d with avg rtt = %v\n", totalCount, count, rttSumm/time.Duration(totalCount))
}
{'fraction_non_alphanumeric': 0.1987513007284079, 'fraction_numerical': 0.01768990634755463, 'mean_word_length': 3.6473429951690823, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '2697366', 'n_tokens_mistral': 437, 'n_tokens_neox': 410, 'n_words': 85}