<commit_before>// Copyright 2014-2015 The DevMine authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// srctool is a command line tool to manage source code parsers. It is able to
// download parsers from a web server, install them and run them. In short, it is a
// manager for source code parsers.
package main

import (
	"fmt"
	"os"

	"github.com/DevMine/srctool/cmd"
	"github.com/DevMine/srctool/log"

	"github.com/codegangsta/cli"
)

func main() {
	app := cli.NewApp()
	app.Name = "srctool"
	app.Usage = "tool for parsing source code"
	app.Version = "1.0.0"
	app.Author = "The DevMine authors"
	app.Email = "<EMAIL>"
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name:  "d",
			Usage: "enable debug mode",
		},
	}
	app.Commands = []cli.Command{
		{
			Name:      "install",
			ShortName: "i",
			Usage:     "install a language parser",
			Action: func(c *cli.Context) {
				log.SetDebugMode(c.GlobalBool("d"))
				cmd.Install(c)
			},<commit_msg>style: reorganize imports in srctool.go<commit_after>// Copyright 2014-2015 The DevMine authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// srctool is a command line tool to manage source code parsers. It is able to
// download parsers from a web server, install them and run them. In short, it is a
// manager for source code parsers.
package main

import (
	"fmt"
	"os"

	"github.com/codegangsta/cli"

	"github.com/DevMine/srctool/cmd"
	"github.com/DevMine/srctool/log"
)

func main() {
	app := cli.NewApp()
	app.Name = "srctool"
	app.Usage = "tool for parsing source code"
	app.Version = "1.0.0"
	app.Author = "The DevMine authors"
	app.Email = "<EMAIL>"
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name:  "d",
			Usage: "enable debug mode",
		},
	}
	app.Commands = []cli.Command{
		{
			Name:      "install",
			ShortName: "i",
			Usage:     "install a language parser",
			Action: func(c *cli.Context) {
				log.SetDebugMode(c.GlobalBool("d"))
				cmd.Install(c)
			},
{'fraction_non_alphanumeric': 0.13193116634799235, 'fraction_numerical': 0.010516252390057362, 'mean_word_length': 3.1527777777777777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6043532', 'n_tokens_mistral': 817, 'n_tokens_neox': 743, 'n_words': 238}