<commit_before>package main

import (
	"flag"
	"fmt"
	"github.com/ericaro/mrepo"
	"os"
	"text/tabwriter"
)

const (
	Usage = `
USAGE %s [-options]
			
DESCRIPTION:

  Manage git dependencies.

  Find subrepositories in both the current directory and the .sbr file.

  By default, it just list the differences between the two.
	
  Optionally, it is possible to actually clone and prune subrepository to match the definition in the .sbr dependency file.
  	'-clone' will clone missing dependencies in the working dir.
  	'-prune' will remove extraneous dependencies from the working dir.
  

  With '-update' the differences are presented the other way round, as changed to be applied the the .sbr file. The meaning of
  the options '-clone' and '-prune' is changed:
  	'-clone' will append items to the current .sbr file.
  	'-prune' will remove items from .sbr file.


  With '-list', it only reads an prints the local subrepositories,
  in the .sbr format. So that, it is possible to just do:

    $ sbr -list > .sbr

  Which should be equivalent to:

    $ sbr -update -clone -prune
  

OPTIONS:

`
	Example = `
EXAMPLES:

  - Init a workspace:

	$ sbr -init

  Fills the .sbr file with subrepositories found on the working dir.

  - Add a dependency, via the .sbr file:
  
	$ echo ' git "src/ericaro/mrepo" "<EMAIL>:ericaro/mrepo.git" "dev"' >> .sbr
	$ sbr -clone
  
  Clone in the working directory what need to be cloned. 
  Note that the change in the .sbr file could be come from other developpers, via a git pull.

  Add a subrepository, and update your .sbr:

  	$ git clone <EMAIL>:ericaro/mrepo.git -b dev src/ericaro/mrepo
	$ sbr -update -clone
  
  Now, your .sbr file contains the new dependency. Commit & Push it so teammate will be able to clone it too.

<commit_msg>fixed a typo<commit_after>package main

import (
	"flag"
	"fmt"
	"github.com/ericaro/mrepo"
	"os"
	"text/tabwriter"
)

const (
	Usage = `
USAGE %s [-options]
			
DESCRIPTION:

  Manage git dependencies.

  Find subrepositories in both the current directory and the .sbr file.

  By default, it just list the differences between the two.
	
  Optionally, it is possible to actually clone and prune subrepository to match the definition in the .sbr dependency file.
  	'-clone' will clone missing dependencies in the working dir.
  	'-prune' will remove extraneous dependencies from the working dir.
  

  With '-update' the differences are presented the other way round, as changed to be applied the the .sbr file. The meaning of
  the options '-clone' and '-prune' is changed:
  	'-clone' will append items to the current .sbr file.
  	'-prune' will remove items from .sbr file.


  With '-list', it only reads an prints the local subrepositories,
  in the .sbr format. So that, it is possible to just do:

    $ sbr -list > .sbr

  Which should be equivalent to:

    $ sbr -update -clone -prune
  

OPTIONS:

`
	Example = `
EXAMPLES:

  - Init a workspace with git subrepositories:

	$ sbr -init

  It fills the .sbr file with subrepositories found on the working dir.

  - Add a dependency, via the .sbr file:
  
	$ echo 'git "src/ericaro/mrepo" "<EMAIL>:ericaro/mrepo.git" "dev"' >> .sbr
	$ sbr -clone
  
  Clone in the working directory what need to be cloned. 
  Note that the change in the .sbr file could be come from other developpers, via a git pull.

  Add a subrepository, and update your .sbr:

  	$ git clone <EMAIL>:ericaro/mrepo.git -b dev src/ericaro/mrepo
	$ sbr -update -clone
  
  Now, your .sbr file contains the new dependency. Commit & Push it so teammate will be able to clone it too.


{'fraction_non_alphanumeric': 0.0801781737193764, 'fraction_numerical': 0.0, 'mean_word_length': 3.046171171171171, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '3769051', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1119, 'n_words': 510}