<commit_before>package main

import (
	"fmt"
	"gopkg.in/yaml.v2"
	"io/ioutil"
	"os"
	"strings"
)

// Dependency represents a Golang dependency
type Import struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
	Repo    string `yaml:"repo,omitempty"`
}

// Glide represents a glide yaml file
type Glide struct {
	Imports []Import `yaml:"imports"`
}

func readGlide(filename string) (map[string]Import, error) {
	deps := make(map[string]Import)

	f, err := ioutil.ReadFile(filename)
	if err != nil {
		return nil, err
	}

	glide := Glide{}
	err = yaml.Unmarshal(f, &glide)
	if err != nil {<commit_msg>Fix comment in godepchecker<commit_after>package main

import (
	"fmt"
	"io/ioutil"
	"os"
	"strings"

	"gopkg.in/yaml.v2"
)

// Import represents a Golang dependency
type Import struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
	Repo    string `yaml:"repo,omitempty"`
}

// Glide represents a glide yaml file
type Glide struct {
	Imports []Import `yaml:"imports"`
}

func readGlide(filename string) (map[string]Import, error) {
	deps := make(map[string]Import)

	f, err := ioutil.ReadFile(filename)
	if err != nil {
		return nil, err
	}

	glide := Glide{}
	err = yaml.Unmarshal(f, &glide)
	if err != nil {
{'fraction_non_alphanumeric': 0.1415929203539823, 'fraction_numerical': 0.0016090104585679806, 'mean_word_length': 4.161825726141079, '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': '797985', 'n_tokens_mistral': 473, 'n_tokens_neox': 459, 'n_words': 125}