<commit_before>// Package einhorn allows you to communicate with the einhorn master from a Go
// worker.
package einhorn

import (
	"encoding/json"
	"errors"
	"net"
	"os"
	"strconv"
)

// CountListeners returns the number of listener fd's passed by the master.
func CountListeners() uint {
	count, err := strconv.ParseUint(os.Getenv("EINHORN_FD_COUNT"), 10, 64)
	if err != nil {
		return 0
	}
	return uint(count)
}

// GetListener returns the passed listener with the specified index.<commit_msg>uints are 32-bit, so refuse to parse uint64s.<commit_after>// Package einhorn allows you to communicate with the einhorn master from a Go
// worker.
package einhorn

import (
	"encoding/json"
	"errors"
	"net"
	"os"
	"strconv"
)

// CountListeners returns the number of listener fd's passed by the master.
func CountListeners() uint {
	count, err := strconv.ParseUint(os.Getenv("EINHORN_FD_COUNT"), 10, 32)
	if err != nil {
		return 0
	}
	return uint(count)
}

// GetListener returns the passed listener with the specified index.
{'fraction_non_alphanumeric': 0.1025390625, 'fraction_numerical': 0.013671875, 'mean_word_length': 4.074257425742574, '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': '611706', 'n_tokens_mistral': 346, 'n_tokens_neox': 330, 'n_words': 122}