<commit_before>package main

import "log"

//*
func init() {
	log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
}

//*/
func main() {
	InitGeneralConfig()
	InitRPC()

	probingCmd, targets, agentPtr, err := QueryTask()
	if err != nil {
		log.Println(err)
		return
	}
	log.Println("Execution the probing command:", probingCmd[0:9])

	rawData := Probe(probingCmd)
	jsonParams := MarshalIntoParameters(rawData, targets, agentPtr)
	Push(jsonParams)
}<commit_msg>[OWL-614] Make it periodic<commit_after>package main

import (
	"log"
	"time"
)

//*
func init() {
	log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
}

//*/
func main() {
	InitGeneralConfig()
	InitRPC()

	for {
		go func() {
			probingCmd, targets, agentPtr, err := QueryTask()
			if err != nil {
				log.Println(err)
				return
			}
			log.Println("Execution the probing command:", probingCmd[0:9])

			rawData := Probe(probingCmd)
			jsonParams := MarshalIntoParameters(rawData, targets, agentPtr)
			Push(jsonParams)
		}()
		time.Sleep(time.Minute)
	}
	select {}
}
{'fraction_non_alphanumeric': 0.15227934044616878, 'fraction_numerical': 0.006789524733268671, 'mean_word_length': 4.034146341463415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3443967', 'n_tokens_mistral': 417, 'n_tokens_neox': 378, 'n_words': 79}