<commit_before>package main

import (
	"fmt"
	"github.com/mspangler/go-flickr/io"
	"strings"
)

const (
	Image_Directory = "/Users/mark/Pictures/craigslist"
)

// Start the application
func main() {
	newImages := io.ScanImages(Image_Directory)
	numNewImages := len(newImages)
	if numNewImages > 0 {
		fmt.Printf("Found %d new images\n", len(newImages))
		for _, image := range newImages {
			fmt.Printf("%s\n", image)
		}
		if upload(newImages) {
			fmt.Printf("Attempting to upload all %d images...\n", len(newImages))
		}
	} else {
		fmt.Printf("Did not find any new images to upload\n")
	}
}

// Ask the user if they want to upload all found new images
func upload(newImages []string) bool {
	fmt.Printf("Would you like to upload all %d images to your Flickr account? Y or N?\n", len(newImages))
	var answer string
	fmt.Scanf("%s", &answer)
	return strings.ToLower(answer) == "y"
}<commit_msg>changed method name<commit_after>package main

import (
	"fmt"
	"github.com/mspangler/go-flickr/io"
	"strings"
)

const (
	Image_Directory = "/Users/mark/Pictures/craigslist"
)

// Start the application
func main() {
	newImages := io.ScanImages(Image_Directory)
	numNewImages := len(newImages)
	if numNewImages > 0 {
		fmt.Printf("Found %d new images\n", len(newImages))
		for _, image := range newImages {
			fmt.Printf("%s\n", image)
		}
		if doUpload(newImages) {
			fmt.Printf("Attempting to upload all %d images...\n", len(newImages))
		}
	} else {
		fmt.Printf("Did not find any new images to upload\n")
	}
}

// Ask the user if they want to upload all found new images
func doUpload(newImages []string) bool {
	fmt.Printf("Would you like to upload all %d images to your Flickr account? Y or N?\n", len(newImages))
	var answer string
	fmt.Scanf("%s", &answer)
	return strings.ToLower(answer) == "y"
}
{'fraction_non_alphanumeric': 0.13984461709211987, 'fraction_numerical': 0.0011098779134295228, 'mean_word_length': 4.022284122562674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7672259', 'n_tokens_mistral': 661, 'n_tokens_neox': 637, 'n_words': 182}