<commit_before>package main

import (
	"testing"
)

func AssertEquals(t *testing.T, expected string, actual string) {
	if expected != actual {
		t.Errorf("Expected [%s], but got: [%s]", expected, actual)
	}
}

func TestScenarios(t *testing.T) {
	AssertEquals(t, "github/sstephenson/bats", ParseRepo("<EMAIL>:sstephenson/bats.git"))
	AssertEquals(t, "github/sstephenson/bats", ParseRepo("https://github.com/sstephenson/bats.git"))
	AssertEquals(t, "github/jmcgarr/bats", ParseRepo("https://github.com/JMCGARR/bats"))
	AssertEquals(t, "stash/users/jmcgarr/homedir", ParseRepo("ssh://git@stash.funville.com:1234/~jmcgarr/homedir.git"))
	AssertEquals(t, "stash/users/jmcgarr/homedir", ParseRepo("http://jmcgarr@stash.funville.com/scm/~jmcgarr/homedir.git"))
	AssertEquals(t, "stash/hackday/template", ParseRepo("ssh://git@stash.funville.com:7999/hackday/template.git"))
	AssertEquals(t, "stash/hackday/template", ParseRepo("http://jmcgarr@stash.funville.com/scm/hackday/template.git"))
}<commit_msg>Incorrectly parsing project names that include .git in the name, like a *.github.io repository<commit_after>package main

import (
	"testing"
)

func AssertEquals(t *testing.T, expected string, actual string) {
	if expected != actual {
		t.Errorf("Expected [%s], but got: [%s]", expected, actual)
	}
}

func TestScenarios(t *testing.T) {
	AssertEquals(t, "github/sstephenson/bats", ParseRepo("<EMAIL>:sstephenson/bats.git"))
	AssertEquals(t, "github/sstephenson/bats", ParseRepo("https://github.com/sstephenson/bats.git"))
	AssertEquals(t, "github/jmcgarr/bats", ParseRepo("https://github.com/JMCGARR/bats"))
	AssertEquals(t, "github/nebula-plugins/nebula-plugins.github.io", ParseRepo("git<EMAIL>:nebula-plugins/nebula-plugins.github.io.git"))
	AssertEquals(t, "stash/users/jmcgarr/homedir", ParseRepo("ssh://git@stash.funville.com:1234/~jmcgarr/homedir.git"))
	AssertEquals(t, "stash/users/jmcgarr/homedir", ParseRepo("http://jmcgarr@stash.funville.com/scm/~jmcgarr/homedir.git"))
	AssertEquals(t, "stash/hackday/template", ParseRepo("ssh://git@stash.funville.com:7999/hackday/template.git"))
	AssertEquals(t, "stash/hackday/template", ParseRepo("http://jmcgarr@stash.funville.com/scm/hackday/template.git"))
}
{'fraction_non_alphanumeric': 0.18214771182600817, 'fraction_numerical': 0.007249660172179429, 'mean_word_length': 6.535836177474403, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '7407842', 'n_tokens_mistral': 877, 'n_tokens_neox': 862, 'n_words': 106}