<commit_before>package blackhole

import (
	"github.com/v2ray/v2ray-core/common/alloc"
	v2io "github.com/v2ray/v2ray-core/common/io"
)

type Config struct {
	Response Response
}

type Response interface {
	WriteTo(v2io.Writer)
}

type NoneResponse struct{}

func (this *NoneResponse) WriteTo(writer v2io.Writer) {}

type HTTPResponse struct {
}

const (
	http403response = `HTTP/1.1 403 Forbidden
Connection: close
Cache-Control: max-age=3600, public
Content-Length: 0


`
)

func (this *HTTPResponse) WriteTo(writer v2io.Writer) {
	writer.Write(alloc.NewSmallBuffer().Clear().AppendString(http403response))
}<commit_msg>replace NewSmallBuffer with NewLocalBuffer<commit_after>package blackhole

import (
	"github.com/v2ray/v2ray-core/common/alloc"
	v2io "github.com/v2ray/v2ray-core/common/io"
)

type Config struct {
	Response Response
}

type Response interface {
	WriteTo(v2io.Writer)
}

type NoneResponse struct{}

func (this *NoneResponse) WriteTo(writer v2io.Writer) {}

type HTTPResponse struct {
}

const (
	http403response = `HTTP/1.1 403 Forbidden
Connection: close
Cache-Control: max-age=3600, public
Content-Length: 0


`
)

func (this *HTTPResponse) WriteTo(writer v2io.Writer) {
	writer.Write(alloc.NewLocalBuffer(512).Clear().AppendString(http403response))
}
{'fraction_non_alphanumeric': 0.11773940345368916, 'fraction_numerical': 0.040031397174254316, 'mean_word_length': 5.375, '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': '4479979', 'n_tokens_mistral': 472, 'n_tokens_neox': 448, 'n_words': 91}