<commit_before>package command

import (
	"errors"
	"fmt"
	"regexp"
)

var re *regexp.Regexp

func init() {
	re = regexp.MustCompile(`(?P<name>\w+)@flickr:(/)?(?P<set>\d+)?`)
}

func ParseFilckrPath(path string) (string, string, error) {
	match := re.FindStringSubmatch(path)

	fmt.Println(match)
	if len(match) == 4 {
		return match[1], match[3], nil
	} else if len(match) > 1 {
		return match[1], "", nil
	}
<commit_msg>no need of named groups in regex<commit_after>package command

import (
	"errors"
	"fmt"
	"regexp"
)

var re *regexp.Regexp

func init() {
	re = regexp.MustCompile(`(\w+)@flickr:(/)?(\d+)?`)
}

func ParseFilckrPath(path string) (string, string, error) {
	match := re.FindStringSubmatch(path)

	if len(match) == 4 {
		return match[1], match[3], nil
	} else if len(match) > 1 {
		return match[1], "", nil
	}

{'fraction_non_alphanumeric': 0.18719806763285024, 'fraction_numerical': 0.012077294685990338, 'mean_word_length': 4.383116883116883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2589218', 'n_tokens_mistral': 350, 'n_tokens_neox': 331, 'n_words': 77}