<commit_before>package headers

import (
	"fmt"
	"net/http"
	"strings"
)

func Add(headers []string, req *http.Request) error {
	for _, header := range headers {
		parts := strings.Split(header, "=")
		if len(parts) != 2 {
			return fmt.Errorf("Invalid header [%s]. Should be [key=value]", header)<commit_msg>Better split<commit_after>package headers

import (
	"fmt"
	"net/http"
	"strings"
)

func Add(headers []string, req *http.Request) error {
	for _, header := range headers {
		parts := strings.SplitN(header, "=", 2)
		if len(parts) != 2 {
			return fmt.Errorf("Invalid header [%s]. Should be [key=value]", header)
{'fraction_non_alphanumeric': 0.16586151368760063, 'fraction_numerical': 0.004830917874396135, 'mean_word_length': 4.408695652173913, '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': '4848565', 'n_tokens_mistral': 225, 'n_tokens_neox': 211, 'n_words': 59}