<commit_before>package collectors

import (
	"io"

	"github.com/masiulaniec/snmp"
)

func snmp_subtree(host, community, oid string) (map[interface{}]interface{}, error) {
	rows, err := snmp.Walk(host, community, oid)
	if err != nil {
		return nil, err
	}
	m := make(map[interface{}]interface{})
	for rows.Next() {
		var a interface{}
		id, err := rows.Scan(&a)
		if err != nil {
			return nil, err
		}
		m[id] = a
	}
	if err := rows.Err(); err != nil && err != io.EOF {
		return nil, err
	}
	return m, nil
}
<commit_msg>cmd/scollector: Use my snmp branch which has the OID fix<commit_after>package collectors

import (
	"io"

	"github.com/mjibson/snmp"
)

func snmp_subtree(host, community, oid string) (map[interface{}]interface{}, error) {
	rows, err := snmp.Walk(host, community, oid)
	if err != nil {
		return nil, err
	}
	m := make(map[interface{}]interface{})
	for rows.Next() {
		var a interface{}
		id, err := rows.Scan(&a)
		if err != nil {
			return nil, err
		}
		m[id] = a
	}
	if err := rows.Err(); err != nil && err != io.EOF {
		return nil, err
	}
	return m, nil
}

{'fraction_non_alphanumeric': 0.16682113067655235, 'fraction_numerical': 0.0, 'mean_word_length': 3.4813278008298756, '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': '7370197', 'n_tokens_mistral': 442, 'n_tokens_neox': 419, 'n_words': 117}