<commit_before>package model

import (
	"testing"
)

func TestApplicationFromArgs(t *testing.T) {
	args := []string{
		"dtan4/rails-sample",
		"3e634e41d5a819a7586c621a6322ee4d5085232c",
		"dtan4",
	}

	expectedRepository := "dtan4-rails-sample"
	expectedRevision := "3e634e41d5a819a7586c621a6322ee4d5085232c"
	expectedUsername := "dtan4"
	expectedAppName := "rails-sample"
	expectedProjectName := "dtan4-rails-sample-3e634e41"

	application := ApplicationFromArgs(args)

	if expectedRepository != application.Repository {<commit_msg>Update application test<commit_after>package model

import (
	"testing"
)

func TestApplicationFromArgs(t *testing.T) {
	var args []string

	args = []string{}

	_, err := ApplicationFromArgs(args)

	if err == nil {
		t.Fatalf("Error should be raised")
	}

	args = []string{
		"dtan4/rails-sample",
		"3e634e41d5a819a7586c621a6322ee4d5085232c",
		"dtan4",
	}

	expectedRepository := "dtan4-rails-sample"
	expectedRevision := "3e634e41d5a819a7586c621a6322ee4d5085232c"
	expectedUsername := "dtan4"
	expectedAppName := "rails-sample"
	expectedProjectName := "dtan4-rails-sample-3e634e41"

	application, err := ApplicationFromArgs(args)

	if err != nil {
		t.Fatalf("Unexpected error has been raised. error: %s", err)
	}

	if expectedRepository != application.Repository {
{'fraction_non_alphanumeric': 0.1228878648233487, 'fraction_numerical': 0.10599078341013825, 'mean_word_length': 5.614213197969543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7229595', 'n_tokens_mistral': 572, 'n_tokens_neox': 486, 'n_words': 82}