<commit_before>"ask git"

## Usage

### Get current status

```ruby
Asgit.working_tree_clean?
# => true if you're working tree is clean

Asgit.current_branch
# => the branch you're on

Asgit.current_commit
# => sha of the current_commit

Asgit.remote_up_to_date?
# => true if you and remote are synced
```

### Get repo links

```ruby
# First setup the project info
Asgit.configure do |c|
  c.organization = "stevenosloan"
  c.project      = "asgit"
  c.service      = :github
end

Asgit::Url.project
# => "https://github.com/stevenosloan/asgit"

Asgit::Url.branch
# => "https://github.com/stevenosloan/asgit/tree/master"

Asgit::Url.commit
# => "https://github.com/stevenosloan/asgit/commit/1ea541b0d3ec4e89aea5c015184d36f95b73e17a"

Asgit::Url.file "lib/asgit.rb"
# => "https://github.com/stevenosloan/asgit/blob/master/lib/asgit.rb"

Asgit::Url.file "lib/asgit.rb", branch: 'dev'
# => "https://github.com/stevenosloan/asgit/blob/dev/lib/asgit.rb"

Asgit::Url.file "lib/asgit.rb", line: '11'
# => "https://github.com/stevenosloan/asgit/blob/master/lib/asgit.rb#L11"

Asgit::Url.file "lib/asgit.rb", line: (11..15)
# => "https://github.com/stevenosloan/asgit/blob/master/lib/asgit.rb#L11-L15"
```

### Test configuration

```ruby
Asgit.configured?
# => false if configuration isn't complete
```<commit_msg>rewrite readme for the new sauce instance style projects<commit_after>"ask git"

## Usage

### Get current status

```ruby
Asgit.working_tree_clean?
# => true if you're working tree is clean

Asgit.current_branch
# => the branch you're on

Asgit.current_commit
# => sha of the current_commit

Asgit.remote_up_to_date?
# => true if you and remote are synced
```

### Get repo links

```ruby
# First initialize the project with info
repo = Asgit::Project.new(
  service: 'github',
  organization: 'stevenosloan',
  project: 'asgit',
  default_branch: 'master'
)


repo.urls.project
# => "https://github.com/stevenosloan/asgit"

repo.urls.branch 'branch_name'
# => "https://github.com/stevenosloan/asgit/tree/branch_name"

repo.urls.commit 'commit_sha'
# => "https://github.com/stevenosloan/asgit/commit/commit_sha"

repo.urls.file "lib/asgit.rb"
# => "https://github.com/stevenosloan/asgit/blob/master/lib/asgit.rb"

repo.urls.file "lib/asgit.rb", branch: 'dev'
# => "https://github.com/stevenosloan/asgit/blob/dev/lib/asgit.rb"

repo.urls.file "lib/asgit.rb", line: '11'
# => "https://github.com/stevenosloan/asgit/blob/master/lib/asgit.rb#L11"

repo.urls.file "lib/asgit.rb", line: (11..15)
# => "https://github.com/stevenosloan/asgit/blob/master/lib/asgit.rb#L11-L15"

repo.urls.file_at_commit 'lib/asgit.rb', 'commit_sha'
# -> "https://github.com/stevenosloan/asgit/blob/commit_sha/lib/asgit.rb"
```
{'fraction_non_alphanumeric': 0.17503692762186115, 'fraction_numerical': 0.01772525849335303, 'mean_word_length': 4.5285714285714285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 15, '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': '6011436', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1054, 'n_words': 176}