<commit_before>/*
This package is just a collection of test cases
*/
package main

import (
	"github.com/codegangsta/cli"
	"os"
)

var (
	// flags
	fWant4 bool
	fWant6 bool
	fAllProbes bool
	fAsn string
	fCountry string
	fVerbose bool
)

// main is the starting point (and everything)
func main() {
	app := cli.NewApp()
	app.Name = "atlas"
	app.Usage = "RIPE Atlas cli interface"
	app.Author = "<NAME> <<EMAIL>>"
	app.Version = "0.0.1"
	app.Commands = []cli.Command{
		{
			Name: "probes",
			Aliases: []string{
				"p",
				"pb",
			},
			Usage:       "probe-related keywords",
			Description: "All the commands for probes",
			Subcommands: []cli.Command{
				{
					Name:        "list",
					Aliases:     []string{"ls"},
					Usage:       "lists all probes",
					Description: "displays all probes",
					Flags: []cli.Flag{
						cli.StringFlag{
							Name: "country,c",
							Usage: "filter on country",
							Value: "fr",
							Destination: &fCountry,
						},
						cli.StringFlag{
							Name: "asn",
							Usage: "filter on asn",
							Value: "",
							Destination: &fAsn,
						},
						cli.BoolFlag{
							Name: "v",
							Usage: "more verbose",
							Destination: &fVerbose,
						},
						cli.BoolFlag{
							Name: "A",
							Usage: "all probes even inactive ones",
							Destination: &fAllProbes,
						},
					},
					Action:      probesList,
				},
				{
					Name:        "info",
					Usage:       "info for one probe",
					Description: "gives info for one probe",
					Flags: []cli.Flag{
						cli.StringFlag{
							Name: "country,c",
							Usage: "filter on country",
							Value: "fr",
							Destination: &fCountry,
						},
						cli.StringFlag{
							Name: "asn",
							Usage: "filter on asn",
							Value: "",
							Destination: &fAsn,
						},
						cli.BoolFlag{
							Name: "v",
							Usage: "more verbose",
							Destination: &fVerbose,<commit_msg>Make fVerbose a global option.<commit_after>/*
This package is just a collection of test cases
*/
package main

import (
	"github.com/codegangsta/cli"
	"os"
)

var (
	// flags
	fWant4 bool
	fWant6 bool
	fAllProbes bool
	fAsn string
	fCountry string
	fVerbose bool
)

// main is the starting point (and everything)
func main() {
	app := cli.NewApp()
	app.Name = "atlas"
	app.Usage = "RIPE Atlas cli interface"
	app.Author = "<NAME> <<EMAIL>>"
	app.Version = "0.0.1"

	// General flags
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name: "v",
			Usage: "more verbose",
			Destination: &fVerbose,
		},
	}

	// Fill-in the various commands
	app.Commands = []cli.Command{
		{
			Name: "probes",
			Aliases: []string{
				"p",
				"pb",
			},
			Usage:       "probe-related keywords",
			Description: "All the commands for probes",
			Subcommands: []cli.Command{
				{
					Name:        "list",
					Aliases:     []string{"ls"},
					Usage:       "lists all probes",
					Description: "displays all probes",
					Flags: []cli.Flag{
						cli.StringFlag{
							Name: "country,c",
							Usage: "filter on country",
							Value: "fr",
							Destination: &fCountry,
						},
						cli.StringFlag{
							Name: "asn",
							Usage: "filter on asn",
							Value: "",
							Destination: &fAsn,
						},
						cli.BoolFlag{
							Name: "A",
							Usage: "all probes even inactive ones",
							Destination: &fAllProbes,
						},
					},
					Action:      probesList,
				},
				{
					Name:        "info",
					Usage:       "info for one probe",
					Description: "gives info for one probe",
					Flags: []cli.Flag{
						cli.StringFlag{
							Name: "country,c",
							Usage: "filter on country",
							Value: "fr",
							Destination: &fCountry,
						},
						cli.StringFlag{
							Name: "asn",
							Usage: "filter on asn",
							Value: "",
							Destination: &fAsn,
{'fraction_non_alphanumeric': 0.13967073818374934, 'fraction_numerical': 0.0026553372278279343, 'mean_word_length': 2.0477346278317152, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '611397', 'n_tokens_mistral': 1814, 'n_tokens_neox': 1279, 'n_words': 345}