<commit_before>package cmdline

import "fmt"

// java [ options ] class [ arguments ]
type Command struct {
    options     []*Option
    class       string
    args        []string
}

// getters
func (self *Command) Class() (string) {
    return self.class
}
func (self *Command) Args() ([]string) {
    return self.args
}
<commit_msg>cmd line...<commit_after>package cmdline

import "fmt"

// java [ options ] class [ arguments ]
type Command struct {
    options []*Option
    class   string
    args    []string
}

// getters
func (self *Command) Class() (string) {
    return self.class
}
func (self *Command) Args() ([]string) {
    return self.args
}

func (self *Command) Option(name string, defaultVal string) (string) {
    for _, option := range self.options {
        if option.name == name {
            return option.value
        }
    }
    return defaultVal
}

{'fraction_non_alphanumeric': 0.12428734321550741, 'fraction_numerical': 0.0, 'mean_word_length': 2.583673469387755, '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': '4797692', 'n_tokens_mistral': 266, 'n_tokens_neox': 267, 'n_words': 84}