<commit_before>package command

import (
	"net/http"
	"strconv"
	"strings"
	"time"

	"github.com/PuerkitoBio/goquery"
	"github.com/djimenez/iconv-go"
)

// Menu returns food in available restaurants
func Menu() Command {
	return NewCommand("menu", func(args ...string) ([]byte, error) {
		resturant := []string{"angel", "hisa"}

		// check amount of arguments, if restaurant is missing return list
		if len(args) < 2 {
			return []byte(strings.Join(resturant, " ")), nil
		}

		out := []string{}
		switch args[1] {
		case "angel":
			out = angel()
		case "hisa":
			out = dobrahisa()
		case "menza":
			out = menza()
		default:
			out = append(out, "Don't know "+args[1]+"!")
		}
		return []byte(strings.Join(out, "\n")), nil
	})
}

func angel() []string {
	r := []string{}

	// url for Dobra Hisa
	url := "http://www.kaval-group.si/ANGEL,,ponudba/kosila"

	// load the URL<commit_msg>added new provider: Menza also to help<commit_after>package command

import (
	"net/http"
	"strconv"
	"strings"
	"time"

	"github.com/PuerkitoBio/goquery"
	"github.com/djimenez/iconv-go"
)

// Menu returns food in available restaurants
func Menu() Command {
	return NewCommand("menu", func(args ...string) ([]byte, error) {
		resturant := []string{"angel", "hisa", "menza"}

		// check amount of arguments, if restaurant is missing return list
		if len(args) < 2 {
			return []byte(strings.Join(resturant, " ")), nil
		}

		out := []string{}
		switch args[1] {
		case "angel":
			out = angel()
		case "hisa":
			out = dobrahisa()
		case "menza":
			out = menza()
		default:
			out = append(out, "Don't know "+args[1]+"!")
		}
		return []byte(strings.Join(out, "\n")), nil
	})
}

func angel() []string {
	r := []string{}

	// url for <NAME>isa
	url := "http://www.kaval-group.si/ANGEL,,ponudba/kosila"

	// load the URL
{'fraction_non_alphanumeric': 0.18302828618968386, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 3.5213032581453634, 'pattern_counts': {'":': 6, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2305295', 'n_tokens_mistral': 735, 'n_tokens_neox': 672, 'n_words': 171}