<commit_before>package testutil

import (
	"io/ioutil"
	"testing"
	"net/http"
)

func AssertResponseStatus(t *testing.T, expectedStatus int, response *http.Response) {
	if response.StatusCode != expectedStatus {
		t.Fatalf("expected 200; got '%v'", response.StatusCode)
	}
}
<commit_msg>include some more debugging in the response status assertion<commit_after>package testutil

import (
	"io/ioutil"
	"testing"
	"net/http"
)

func AssertResponseStatus(t *testing.T, expectedStatus int, response *http.Response) {
	if response.StatusCode != expectedStatus {
		t.Fatalf("expected 200; got '%v' Body: '%v'", response.StatusCode, ReadResponseBody(t, response))
	}
}

{'fraction_non_alphanumeric': 0.1297134238310709, 'fraction_numerical': 0.00904977375565611, 'mean_word_length': 5.574257425742574, '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': '1185760', 'n_tokens_mistral': 222, 'n_tokens_neox': 219, 'n_words': 54}