<commit_before>package main

import (
	"fmt"
	"os"

	"github.com/urfave/cli"
	//"github.com/blockfreight/blockfreight-alpha/bft/client"
)

// client is a global variable, it can be reused by the console
var client bftcli.Client

func main() {
	app := cli.NewApp()
	app.Name = "bft-cli"
	app.Usage = "bft-cli app [command] [args...]"
	app.Version = "0.0.1"
	app.Flags = []cli.Flag {
		cli.StringFlag{
      		Name: "lang",
      		Value: "english",
      		Usage: "language for the greeting",
    	},
    	cli.StringFlag{
			Name:  "address",
			Value: "tcp://127.0.0.1:46658",
			Usage: "address of application socket",
		},
		cli.StringFlag{
			Name:  "bft",
			Value: "socket",
			Usage: "socket or grpc",
		},
		cli.BoolFlag{
			Name:  "verbose",
			Usage: "print the command and results as if it were a console session",
		},
  	}
	//app.Action = introduction()
	app.Commands = []cli.Command{
		{
			Name:  "batch",
			Usage: "Run a batch of bft commands against an application",
			Action: func(c *cli.Context) error {
				fmt.Println("-> This is the content of batch command.")
				return nil
			},
		},
		{
			Name:  "console",
			Usage: "Start an interactive bft console for multiple commands",
			Action: func(c *cli.Context) error {
				fmt.Println("-> This is the content of console command.")
				return nil
			},
		},
		{
			Name:  "echo",
			Usage: "Print a message",
			Action: func(c *cli.Context) error {
				fmt.Println("-> This is the content of echo command.")
				return cmdEcho(c)
			},
		},
		{
			Name: "info",
			Usage: "Get info about bft-cli",
			Action: func (c *cli.Context) error {
				fmt.Println("-> This is the content of info command.")<commit_msg>Modify bft-cli.go adding client variable<commit_after>package main

import (
	"fmt"
	"os"

	"github.com/urfave/cli"
	"github.com/blockfreight/blockfreight-alpha/bft/client"
)

// client is a global variable, it can be reused by the console
var client bftcli.Client

func main() {
	app := cli.NewApp()
	app.Name = "bft-cli"
	app.Usage = "bft-cli app [command] [args...]"
	app.Version = "0.0.1"
	app.Flags = []cli.Flag {
		cli.StringFlag{
      		Name: "lang",
      		Value: "english",
      		Usage: "language for the greeting",
    	},
    	cli.StringFlag{
			Name:  "address",
			Value: "tcp://127.0.0.1:46658",
			Usage: "address of application socket",
		},
		cli.StringFlag{
			Name:  "bft",
			Value: "socket",
			Usage: "socket or grpc",
		},
		cli.BoolFlag{
			Name:  "verbose",
			Usage: "print the command and results as if it were a console session",
		},
  	}
	//app.Action = introduction()
	app.Commands = []cli.Command{
		{
			Name:  "batch",
			Usage: "Run a batch of bft commands against an application",
			Action: func(c *cli.Context) error {
				fmt.Println("-> This is the content of batch command.")
				return nil
			},
		},
		{
			Name:  "console",
			Usage: "Start an interactive bft console for multiple commands",
			Action: func(c *cli.Context) error {
				fmt.Println("-> This is the content of console command.")
				return nil
			},
		},
		{
			Name:  "echo",
			Usage: "Print a message",
			Action: func(c *cli.Context) error {
				fmt.Println("-> This is the content of echo command.")
				return nil
			},
		},
		{
			Name: "info",
			Usage: "Get info about bft-cli",
			Action: func (c *cli.Context) error {
				fmt.Println("-> This is the content of info command.")
{'fraction_non_alphanumeric': 0.14843287995269072, 'fraction_numerical': 0.00827912477823773, 'mean_word_length': 2.7714604236343368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3797620', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1194, 'n_words': 357}