<commit_before>package main

import (
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/service/iam"
)

func iamUserNames(users []*iam.User) []string {
	names := make([]string, len(users))
	for idx, u := range users {
		names[idx] = aws.StringValue(u.UserName)
	}
	return names
}

func GetUser(username string) (*iam.User, error) {

	svc := getIamService()

	resp, err := svc.GetUser(GetUserInput{UserName: username})
	if err != nil {
		return nil, err
	}

	return resp.User, nil
}<commit_msg>Call svc.GetUser() correctly in GetUser()<commit_after>package main

import (
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/service/iam"
)

func iamUserNames(users []*iam.User) []string {
	names := make([]string, len(users))
	for idx, u := range users {
		names[idx] = aws.StringValue(u.UserName)
	}
	return names
}

func GetUser(username string) (*iam.User, error) {

	svc := getIamService()

	resp, err := svc.GetUser(&iam.GetUserInput{UserName: aws.String(username)})
	if err != nil {
		return nil, err
	}

	return resp.User, nil
}
{'fraction_non_alphanumeric': 0.16524216524216523, 'fraction_numerical': 0.0, 'mean_word_length': 4.27, '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': '5651740', 'n_tokens_mistral': 413, 'n_tokens_neox': 403, 'n_words': 86}