<commit_before>package uploader

import (
	"bytes"
	"net/http"

	"github.com/regner/albionmarket-client/client/config"
	"github.com/regner/albionmarket-client/log"
)

func SendToIngest(body []byte, url string) {
	client := &http.Client{}

	req, err := http.NewRequest("POST", url, bytes.NewBuffer(body))
	if err != nil {
		log.Printf("Error while create new reqest: %v", err)
		return
	}

	req.Header.Set("Content-Type", "application/json")

	resp, err := client.Do(req)
	if err != nil {
		log.Printf("Error while sending ingest with data: %v", err)
		return
	}

	if resp.StatusCode != 200 {
		log.Printf("Got bad response code: %v", resp.StatusCode)
		return
	}

	log.Printf("Sucesfully sent ingest request to %v", config.GlobalConfiguration.IngestUrl)

	defer resp.Body.Close()
}<commit_msg>Fixing typo in log message<commit_after>package uploader

import (
	"bytes"
	"net/http"

	"github.com/regner/albionmarket-client/client/config"
	"github.com/regner/albionmarket-client/log"
)

func SendToIngest(body []byte, url string) {
	client := &http.Client{}

	req, err := http.NewRequest("POST", url, bytes.NewBuffer(body))
	if err != nil {
		log.Printf("Error while create new reqest: %v", err)
		return
	}

	req.Header.Set("Content-Type", "application/json")

	resp, err := client.Do(req)
	if err != nil {
		log.Printf("Error while sending ingest with data: %v", err)
		return
	}

	if resp.StatusCode != 200 {
		log.Printf("Got bad response code: %v", resp.StatusCode)
		return
	}

	log.Printf("Successfully sent ingest request to %v", config.GlobalConfiguration.IngestUrl)

	defer resp.Body.Close()
}
{'fraction_non_alphanumeric': 0.1486570893191755, 'fraction_numerical': 0.0037476577139287947, 'mean_word_length': 4.322259136212624, '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': '6857904', 'n_tokens_mistral': 596, 'n_tokens_neox': 572, 'n_words': 136}