<commit_before>package main

import (
	"os"
	"runtime"
	"sync"
)

func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())

	urlsToCheck := os.Args[1:]
	results := []*Results{}
	var wg sync.WaitGroup

	// loop through all supplied urls and send them to a worker to be fetched
	for _, url := range urlsToCheck {
		wg.Add(1)

		go func(url string) {
			defer wg.Done()

			results = append(results, Crawl(url, ""))
		}(url)
	}

	// wait for all workers to complete their tasks
	wg.Wait()

	// print out cool stuff here based on results
}<commit_msg>print out extra debugging info<commit_after>package main

import (
	"fmt"
	"os"
	"runtime"
	"sync"
)

func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())

	urlsToCheck := os.Args[1:]
	results := []*Results{}
	var wg sync.WaitGroup

	// loop through all supplied urls and send them to a worker to be fetched
	for _, url := range urlsToCheck {
		wg.Add(1)

		go func(url string) {
			defer wg.Done()

			fmt.Printf("[START] Scanning %s\n", url)
			result := Crawl(url, "")
			results = append(results, result)

			fmt.Printf("[%s] %+v\n", result.connHostname, result)

			for i := range result.Resources {
				fmt.Printf("[%s] %+v\n", result.Resources[i].connHostname, result.Resources[i])
			}

			fmt.Printf("[FINISHED] Scanned %s\n", url)
		}(url)
	}

	// wait for all workers to complete their tasks
	wg.Wait()

	// print out cool stuff here based on results
}
{'fraction_non_alphanumeric': 0.14458689458689458, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 3.4603174603174605, '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': '4058255', 'n_tokens_mistral': 547, 'n_tokens_neox': 505, 'n_words': 149}