<commit_before>package main

import (
	"net/http"
	"os"
	"testing"

	"github.com/kataras/iris/v12/httptest"
)

func TestUploadFiles(t *testing.T) {
	app := newApp()
	e := httptest.New(t, app)

	// upload the file itself.
	fh, err := os.Open("main.go")
	if err != nil {
		t.Fatal(err)
	}
	defer fh.Close()

	e.POST("/upload").WithMultipart().WithFile("files", "main.go", fh).
		Expect().Status(http.StatusOK)<commit_msg>minor: #1516<commit_after>package main

import (
	"os"
	"testing"

	"github.com/kataras/iris/v12/httptest"
)

func TestUploadFiles(t *testing.T) {
	app := newApp()
	e := httptest.New(t, app)

	// upload the file itself.
	fh, err := os.Open("main.go")
	if err != nil {
		t.Fatal(err)
	}
	defer fh.Close()

	e.POST("/upload").WithMultipart().WithFile("files", "main.go", fh).
		Expect().Status(httptest.StatusOK)
{'fraction_non_alphanumeric': 0.19662243667068757, 'fraction_numerical': 0.009650180940892641, 'mean_word_length': 3.911242603550296, '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': '2394951', 'n_tokens_mistral': 365, 'n_tokens_neox': 344, 'n_words': 63}