<commit_before>package main

import (
	"encoding/json"
	"io"
	"os"
	"os/exec"
)

// via go list -json
type Package struct {
	Standard   bool
	ImportPath string

	Deps []string

	TestImports  []string
	XTestImports []string
}

func listPackages(packages ...string) ([]Package, error) {
	if len(packages) == 0 {
		return []Package{}, nil
	}

	listPackages := exec.Command(
		"go",
		append([]string{"list", "-json"}, packages...)...,
	)

	listPackages.Stderr = os.Stderr

	packageStream, err := listPackages.StdoutPipe()
	if err != nil {<commit_msg>Ignore eroneous packages for github.com/vito/gosub<commit_after>package main

import (
	"encoding/json"
	"io"
	"os"
	"os/exec"
)

// via go list -json
type Package struct {
	Standard   bool
	ImportPath string

	Deps []string

	TestImports  []string
	XTestImports []string
}

func listPackages(packages ...string) ([]Package, error) {
	if len(packages) == 0 {
		return []Package{}, nil
	}

	listPackages := exec.Command(
		"go",
		append([]string{"list", "-e", "-json"}, packages...)...,
	)

	listPackages.Stderr = os.Stderr

	packageStream, err := listPackages.StdoutPipe()
	if err != nil {
{'fraction_non_alphanumeric': 0.16094986807387862, 'fraction_numerical': 0.001759014951627089, 'mean_word_length': 3.7416666666666667, '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': '1483517', 'n_tokens_mistral': 423, 'n_tokens_neox': 405, 'n_words': 103}