<commit_before>package main

// simply show domains listed in dozens.jp

import (
	"fmt"
	"github.com/takebayashi/go-dozens/dozens"
	"net/http"
	"os"
)

func main() {
	user := os.Args[1]
	key := os.Args[2]
	client, err := dozens.NewClient(&http.Client{}, user, key)
	if err != nil {
		fmt.Println(err)
	}
	domains, err := client.ListDomains()
	if err != nil {
		fmt.Println(err)
	}
	for _, d := range domains {
		fmt.Println(d.Name)
	}
}<commit_msg>Update main.go<commit_after>package main

// simply show domains and records listed in dozens.jp

import (
	"fmt"
	"github.com/takebayashi/go-dozens/dozens"
	"net/http"
	"os"
)

func main() {
	user := os.Args[1]
	key := os.Args[2]
	client, err := dozens.NewClient(&http.Client{}, user, key)
	if err != nil {
		fmt.Println(err)
		return
	}
	domains, err := client.ListDomains()
	if err != nil {
		fmt.Println(err)
		return
	}
	for di, d := range domains {
		fmt.Printf("Domain #%02d: %s\n", di, d.Name)
		records, err := client.ListRecords(d)
		if err != nil {
			fmt.Println(err)
			return
		}
		for ri, r := range records {
			fmt.Printf("\tRecord #%02d: %s %s %s\n", ri, r.Type, r.Name, r.Content)
		}
	}
}
{'fraction_non_alphanumeric': 0.17458945548833188, 'fraction_numerical': 0.006914433880726016, 'mean_word_length': 3.2888888888888888, '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': '25599', 'n_tokens_mistral': 502, 'n_tokens_neox': 475, 'n_words': 112}