<commit_before>package garagepi_test

import (
	"errors"
	"io"
	"net/http"

	"bytes"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/robdimsdale/garagepi"
	garagepi_fakes "github.com/robdimsdale/garagepi/fakes"
)

var _ = Describe("Garagepi", func() {
	var fakeLogger *garagepi_fakes.FakeLogger
	var fakeHttpHelper *garagepi_fakes.FakeHttpHelper
	var fakeOsHelper *garagepi_fakes.FakeOsHelper
	var fakeResponseWriter *garagepi_fakes.FakeResponseWriter
	var dummyRequest *http.Request

	webcamHost := "webcamHost"
	webcamPort := "webcamPort"

	var executor *garagepi.Executor
	BeforeEach(func() {
		fakeLogger = new(garagepi_fakes.FakeLogger)
		fakeHttpHelper = new(garagepi_fakes.FakeHttpHelper)
		fakeOsHelper = new(garagepi_fakes.FakeOsHelper)

		fakeResponseWriter = new(garagepi_fakes.FakeResponseWriter)
		dummyRequest = new(http.Request)

		executor = garagepi.NewExecutor(
			fakeLogger,
			fakeHttpHelper,
			fakeOsHelper,
			webcamHost,
			webcamPort,
		)
	})

	Describe("Homepage Handling", func() {
		Context("When reading the homepage template is successful", func() {<commit_msg>Fix uint webcam port in garagepi_test.<commit_after>package garagepi_test

import (
	"errors"
	"io"
	"net/http"

	"bytes"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/robdimsdale/garagepi"
	garagepi_fakes "github.com/robdimsdale/garagepi/fakes"
)

var _ = Describe("Garagepi", func() {
	var fakeLogger *garagepi_fakes.FakeLogger
	var fakeHttpHelper *garagepi_fakes.FakeHttpHelper
	var fakeOsHelper *garagepi_fakes.FakeOsHelper
	var fakeResponseWriter *garagepi_fakes.FakeResponseWriter
	var dummyRequest *http.Request

	webcamHost := "webcamHost"
	webcamPort := uint(12345)

	var executor *garagepi.Executor
	BeforeEach(func() {
		fakeLogger = new(garagepi_fakes.FakeLogger)
		fakeHttpHelper = new(garagepi_fakes.FakeHttpHelper)
		fakeOsHelper = new(garagepi_fakes.FakeOsHelper)

		fakeResponseWriter = new(garagepi_fakes.FakeResponseWriter)
		dummyRequest = new(http.Request)

		executor = garagepi.NewExecutor(
			fakeLogger,
			fakeHttpHelper,
			fakeOsHelper,
			webcamHost,
			webcamPort,
		)
	})

	Describe("Homepage Handling", func() {
		Context("When reading the homepage template is successful", func() {
{'fraction_non_alphanumeric': 0.1016873889875666, 'fraction_numerical': 0.002220248667850799, 'mean_word_length': 5.418803418803419, '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': '716248', 'n_tokens_mistral': 865, 'n_tokens_neox': 810, 'n_words': 137}