<commit_before>// Package five00px provides ...
package five00px

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"sort"

	"github.com/Sirupsen/logrus"
)

type httpError struct {
	ErrorCode int
	Response  string
}

func (h httpError) Error() string {
	return fmt.Sprintf("HTTP error %d. Message: %s", h.ErrorCode, h.Response)
}

func buildQuery(v url.Values) string {
	if v == nil {
		return ""
	}
	var buf bytes.Buffer
	_, _ := buf.WriteString("?")
	keys := make([]string, 0, len(v))
	for k := range v {
		keys = append(keys, k)
	}
	sort.Strings(keys)
	for _, k := range keys {
		vs := v[k]
		prefix := k + "="
		for _, v := range vs {
			if buf.Len() > 1 {
				buf.WriteByte('&')
			}<commit_msg>compilation fix<commit_after>// Package five00px provides ...
package five00px

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"sort"

	"github.com/Sirupsen/logrus"
)

type httpError struct {
	ErrorCode int
	Response  string
}

func (h httpError) Error() string {
	return fmt.Sprintf("HTTP error %d. Message: %s", h.ErrorCode, h.Response)
}

func buildQuery(v url.Values) string {
	if v == nil {
		return ""
	}
	var buf bytes.Buffer
	_, _ = buf.WriteString("?")
	keys := make([]string, 0, len(v))
	for k := range v {
		keys = append(keys, k)
	}
	sort.Strings(keys)
	for _, k := range keys {
		vs := v[k]
		prefix := k + "="
		for _, v := range vs {
			if buf.Len() > 1 {
				buf.WriteByte('&')
			}
{'fraction_non_alphanumeric': 0.1705263157894737, 'fraction_numerical': 0.008421052631578947, 'mean_word_length': 3.121387283236994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1634816', 'n_tokens_mistral': 597, 'n_tokens_neox': 565, 'n_words': 149}