<commit_before>package hip

import (
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
)

func checkReponseCode(r *http.Response, err error) error {
	if err != nil {
		return err
	}
	if r.StatusCode/100 != 2 {
		responseBody, _ := ioutil.ReadAll(r.Body)
		r.Body.Close()
		return errors.New(fmt.Sprintf("Unexpected http code %d (%s) %s", r.StatusCode, r.Status, responseBody))
	}
	return nil
}<commit_msg>we don't care about closing that body<commit_after>package hip

import (
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
)

func checkReponseCode(r *http.Response, err error) error {
	if err != nil {
		return err
	}
	if r.StatusCode/100 != 2 {
		responseBody, _ := ioutil.ReadAll(r.Body)
		_ = r.Body.Close()
		return errors.New(fmt.Sprintf("Unexpected http code %d (%s) %s", r.StatusCode, r.Status, responseBody))
	}
	return nil
}
{'fraction_non_alphanumeric': 0.15085158150851583, 'fraction_numerical': 0.009732360097323601, 'mean_word_length': 3.92814371257485, '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': '763523', 'n_tokens_mistral': 335, 'n_tokens_neox': 320, 'n_words': 78}