<commit_before>package commands

import (
	"github.com/bmizerany/assert"
	"github.com/jingweno/gh/github"
	"testing"
  "os"
	"path/filepath"
)

func TestTransformCloneArgs(t *testing.T) {
	args := NewArgs([]string{"jingweno/gh"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "git://github.com/jingweno/gh.git", args.First())

	args = NewArgs([]string{"-p", "jingweno/gh"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "<EMAIL>:jingweno/gh.git", args.First())

  github.DefaultConfigFile = "./test_support/gh"
	config := github.Config{User: "jingweno", Token: "<PASSWORD>"}
	github.SaveConfig(&config)
  defer os.RemoveAll(filepath.Dir(github.DefaultConfigFile))

	args = NewArgs([]string{"-p", "jekyll_and_hyde"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "<EMAIL>:jingweno/jekyll_and_hyde.git", args.First())
}<commit_msg>Add test for hyphenized name<commit_after>package commands

import (
	"github.com/bmizerany/assert"
	"github.com/jingweno/gh/github"
	"os"
	"path/filepath"
	"testing"
)

func TestTransformCloneArgs(t *testing.T) {
	args := NewArgs([]string{"jingweno/gh"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "git://github.com/jingweno/gh.git", args.First())

	args = NewArgs([]string{"-p", "jingweno/gh"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "<EMAIL>:jingweno/gh.git", args.First())

	args = NewArgs([]string{"-p", "acl-services/devise-acl"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "<EMAIL>:acl-services/devise-acl.git", args.First())

	github.DefaultConfigFile = "./test_support/gh"
	config := github.Config{User: "jingweno", Token: "<PASSWORD>"}
	github.SaveConfig(&config)
	defer os.RemoveAll(filepath.Dir(github.DefaultConfigFile))

	args = NewArgs([]string{"-p", "jekyll_and_hyde"})
	transformCloneArgs(args)

	assert.Equal(t, 1, args.Size())
	assert.Equal(t, "<EMAIL>:jingweno/jekyll_and_hyde.git", args.First())
}
{'fraction_non_alphanumeric': 0.1930596285434995, 'fraction_numerical': 0.003421309872922776, 'mean_word_length': 5.846153846153846, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3269299', 'n_tokens_mistral': 816, 'n_tokens_neox': 791, 'n_words': 114}