<commit_before>package main

import (
	"encoding/json"
	"io/ioutil"
	"net/http"
)

func webhoookHandler(rw http.ResponseWriter, req *http.Request) {
	body, err := ioutil.ReadAll(req.Body)
	defer req.Body.Close()
	if err != nil {
		panic(err)
	}
	var whData oDotaMatchData
	err = json.Unmarshal(body, &whData)
	if err != nil {
		panic(err)
	}
	handleMatch(whData)
}
<commit_msg>Return body<commit_after>package main

import (
	"encoding/json"
	"io/ioutil"
	"net/http"
)

func webhoookHandler(rw http.ResponseWriter, req *http.Request) {
	body, err := ioutil.ReadAll(req.Body)
	defer req.Body.Close()
	if err != nil {
		rw.Write([]byte(`{"status":fail}`))
		panic(err)
	}
	var whData oDotaMatchData
	err = json.Unmarshal(body, &whData)
	if err != nil {
		rw.Write([]byte(`{"status":fail}`))
		panic(err)
	}
	rw.Write([]byte(`{"status":ok}`))
	handleMatch(whData)
}

{'fraction_non_alphanumeric': 0.17149478563151796, 'fraction_numerical': 0.0, 'mean_word_length': 4.574193548387097, 'pattern_counts': {'":': 3, '<': 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': '2595000', 'n_tokens_mistral': 358, 'n_tokens_neox': 352, 'n_words': 66}