<commit_before>package write

import (
	"image"
	"net/http"
	"net/http/httptest"
	"testing"
)

func TestImageWithTemplate(t *testing.T) {

	recorder := httptest.NewRecorder()
	var img image.Image = image.NewRGBA(image.Rect(0, 0, 0, 0))

	ImageWithTemplate(recorder, &img)
	if recorder.Code != http.StatusOK {
		t.Errorf("returned %v. Expected %v.", recorder.Code, http.StatusOK)
	}
}

func TestImageJPEG(t *testing.T) {
}

func TestImageSVG(t *testing.T) {

}<commit_msg>test WriteJPEG<commit_after>package write

import (
	"image"
	"net/http"
	"net/http/httptest"
	"testing"
)

func TestImageWithTemplate(t *testing.T) {

	recorder := httptest.NewRecorder()
	var img image.Image = image.NewRGBA(image.Rect(0, 0, 0, 0))

	ImageWithTemplate(recorder, &img)
	if recorder.Code != http.StatusOK {
		t.Errorf("returned %v. Expected %v.", recorder.Code, http.StatusOK)
	}
}

func TestImageJPEG(t *testing.T) {
	recorder := httptest.NewRecorder()
	var img image.Image = image.NewRGBA(image.Rect(0, 0, 0, 0))

	ImageJPEG(recorder, &img)
	if recorder.Code != http.StatusOK {
		t.Errorf("returned %v. Expected %v.", recorder.Code, http.StatusOK)
	}
}
{'fraction_non_alphanumeric': 0.1570175438596491, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 4.5931372549019605, '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': '310432', 'n_tokens_mistral': 474, 'n_tokens_neox': 449, 'n_words': 90}