<commit_before>package main

import (
	"flag"
	"fmt"

	"github.com/muesli/goefa"
)

func main() {
	efa := goefa.EFA{}

	station_id := flag.String("stop", "Königsplatz", "id or (part of the) stop name")
	max_results := flag.Int("results", 5, "how many results to show")
	flag.StringVar(&efa.BaseURL, "baseurl", "http://efa.avv-augsburg.de/avv/", "base-url for EFA API")
	flag.Parse()

/*	if result.Stop.State != "identified" {
		fmt.Println("Stop does not exist or name is not unique!")
	}
	fmt.Printf("Selected stop: %s (%d)\n\n",
		result.Stop.IdfdStop.StopName,
		result.Stop.IdfdStop.StopID)*/

	departures, err := efa.Departures(*station_id, *max_results)
	if err != nil {
		fmt.Println("Stop does not exist or name is not unique!")
	}
	for _, departure := range departures {
		plu := " "
		if departure.Countdown != 1 {
			plu = "s"
		}

		fmt.Printf("Route %-5s due in %-2d minute%s --> %s\n",
			departure.ServingLine.Number,
			departure.Countdown,
			plu,
			departure.ServingLine.Direction)
	}
}<commit_msg>* Return for good measure.<commit_after>package main

import (
	"flag"
	"fmt"

	"github.com/muesli/goefa"
)

func main() {
	efa := goefa.EFA{}

	station_id := flag.String("stop", "Königsplatz", "id or (part of the) stop name")
	max_results := flag.Int("results", 5, "how many results to show")
	flag.StringVar(&efa.BaseURL, "baseurl", "http://efa.avv-augsburg.de/avv/", "base-url for EFA API")
	flag.Parse()

/*	if result.Stop.State != "identified" {
		fmt.Println("Stop does not exist or name is not unique!")
	}
	fmt.Printf("Selected stop: %s (%d)\n\n",
		result.Stop.IdfdStop.StopName,
		result.Stop.IdfdStop.StopID)*/

	departures, err := efa.Departures(*station_id, *max_results)
	if err != nil {
		fmt.Println("Stop does not exist or name is not unique!")
		return
	}
	for _, departure := range departures {
		plu := " "
		if departure.Countdown != 1 {
			plu = "s"
		}

		fmt.Printf("Route %-5s due in %-2d minute%s --> %s\n",
			departure.ServingLine.Number,
			departure.Countdown,
			plu,
			departure.ServingLine.Direction)
	}
}
{'fraction_non_alphanumeric': 0.16926070038910507, 'fraction_numerical': 0.0038910505836575876, 'mean_word_length': 3.6856492027334853, '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': '4923716', 'n_tokens_mistral': 859, 'n_tokens_neox': 810, 'n_words': 187}