<commit_before>package main
 
import (
	"os"
	"fmt"
	"net"
	"time"
	"strconv"
	"math/rand"
)
 
func CheckError(err error) {
    if err  != nil {
        fmt.Println("Error: " , err)
    }
}

 //order of cl-arguments: 1. target ip address, 2. monitored item
func main() {
	ServerAddr,err := net.ResolveUDPAddr("udp",os.Args[1])
	CheckError(err)

	LocalAddr, err := net.ResolveUDPAddr("udp", "127.0.0.1:0")
	CheckError(err)

	Conn, err := net.DialUDP("udp", LocalAddr, ServerAddr)
	CheckError(err)

	content := "something"
	if(len(os.Args)>2){
		content = os.Args[2]
	}
	seed := rand.NewSource(time.Now().UnixNano())
	randomizer := rand.New(seed)

	stock := randomizer.Intn(42)
	
	defer Conn.Close()
	for {	
		switch(content){
				case "Pfungstaedter":
				default : 
					if(stock > 0){
						if(randomizer.Intn(10)>=7){
							stock--
						}
					}
				}
		msg := content+ ":"+strconv.Itoa(stock)
		buf := []byte(msg)<commit_msg>add possibility for Pfungstaedter to decrement<commit_after>package main
 
import (
	"os"
	"fmt"
	"net"
	"time"
	"strconv"
	"math/rand"
)
 
func CheckError(err error) {
    if err  != nil {
        fmt.Println("Error: " , err)
    }
}

 //order of cl-arguments: 1. target ip address, 2. monitored item
func main() {
	ServerAddr,err := net.ResolveUDPAddr("udp",os.Args[1])
	CheckError(err)

	LocalAddr, err := net.ResolveUDPAddr("udp", "127.0.0.1:0")
	CheckError(err)

	Conn, err := net.DialUDP("udp", LocalAddr, ServerAddr)
	CheckError(err)

	content := "something"
	if(len(os.Args)>2){
		content = os.Args[2]
	}
	seed := rand.NewSource(time.Now().UnixNano())
	randomizer := rand.New(seed)

	stock := randomizer.Intn(42)
	
	defer Conn.Close()
	for {	
		if(stock>0){
			switch(content){
					case "Pfungstaedter":
						if(randomizer.Intn(100)>=98){
							stock--
						}
					default : 	
						if(randomizer.Intn(10)>=7){
							stock--
						}
					}
		}
		msg := content+ ":"+strconv.Itoa(stock)
		buf := []byte(msg)
{'fraction_non_alphanumeric': 0.17701385325808106, 'fraction_numerical': 0.02103642893791688, 'mean_word_length': 3.1313559322033897, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1857014', 'n_tokens_mistral': 906, 'n_tokens_neox': 777, 'n_words': 145}