<commit_before>package main

import (
	"fmt"
	"github.com/rdwilliamson/aws/glacier"
	"os"
)

func vault(args []string) {
	if len(args) < 1 {
		fmt.Println("no vault command")
		os.Exit(1)
	}
	command := args[0]
	args = args[1:]
	switch command {
	case "create", "delete", "describe":
		args = getConnection(args)

		if len(args) < 1 {
			fmt.Println("no vault name")
			os.Exit(1)
		}
		name := args[0]

		switch command {
		case "create":
			err := connection.CreateVault(name)
			if err != nil {
				fmt.Println(err)
				os.Exit(1)
			}

		case "delete":
			err := connection.DeleteVault(name)
			if err != nil {
				fmt.Println(err)
				os.Exit(1)
			}

		case "describe":
			vault, err := connection.DescribeVault(name)
			if err != nil {
				fmt.Println(err)
				os.Exit(1)
			}
			fmt.Printf("%+v\n", vault)
		}

	case "list":
		args = getConnection(args)

		vaults, _, err := connection.ListVaults("", 0)
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}

		for _, v := range vaults {
			fmt.Println("Vault Name:", v.VaultName)
			fmt.Println("Vault ARN:", v.VaultARN)
			fmt.Println("Creation Date:", v.CreationDate)
			fmt.Println("Archives;", v.NumberOfArchives)
			fmt.Println("Size:", v.SizeInBytes, prettySize(v.SizeInBytes))
			fmt.Println("Last Inventory Date:", v.LastInventoryDate)
			fmt.Println()
		}

	case "notifications":
		if len(args) < 1 {
			fmt.Println("no notification command")
			os.Exit(1)
		}<commit_msg>list: fix typo<commit_after>package main

import (
	"fmt"
	"github.com/rdwilliamson/aws/glacier"
	"os"
)

func vault(args []string) {
	if len(args) < 1 {
		fmt.Println("no vault command")
		os.Exit(1)
	}
	command := args[0]
	args = args[1:]
	switch command {
	case "create", "delete", "describe":
		args = getConnection(args)

		if len(args) < 1 {
			fmt.Println("no vault name")
			os.Exit(1)
		}
		name := args[0]

		switch command {
		case "create":
			err := connection.CreateVault(name)
			if err != nil {
				fmt.Println(err)
				os.Exit(1)
			}

		case "delete":
			err := connection.DeleteVault(name)
			if err != nil {
				fmt.Println(err)
				os.Exit(1)
			}

		case "describe":
			vault, err := connection.DescribeVault(name)
			if err != nil {
				fmt.Println(err)
				os.Exit(1)
			}
			fmt.Printf("%+v\n", vault)
		}

	case "list":
		args = getConnection(args)

		vaults, _, err := connection.ListVaults("", 0)
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}

		for _, v := range vaults {
			fmt.Println("Vault Name:", v.VaultName)
			fmt.Println("Vault ARN:", v.VaultARN)
			fmt.Println("Creation Date:", v.CreationDate)
			fmt.Println("Archives:", v.NumberOfArchives)
			fmt.Println("Size:", v.SizeInBytes, prettySize(v.SizeInBytes))
			fmt.Println("Last Inventory Date:", v.LastInventoryDate)
			fmt.Println()
		}

	case "notifications":
		if len(args) < 1 {
			fmt.Println("no notification command")
			os.Exit(1)
		}
{'fraction_non_alphanumeric': 0.1660311958405546, 'fraction_numerical': 0.009705372616984401, 'mean_word_length': 3.1765557163531115, 'pattern_counts': {'":': 12, '<': 9, '<?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': '5020588', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1122, 'n_words': 230}