<commit_before>using System.Collections.Generic;
using FluentAssertions;
using NUnit.Framework;
using GitHub.Unity;

namespace UnitTests
{
    [TestFixture]
    public class RemoteListOutputProcessorTests
    {
        [Test]
        public void ShouldParseSingleHttpsBothWaysRemote()
        {
            var output = new[]
            {
                "origin https://github.com/github/VisualStudio.git (fetch)",
                "origin https://github.com/github/VisualStudio.git (push)",
                null
            };

            var name = "origin";
            var host = "github.com";
            var url = "https://github.com/github/VisualStudio.git";
            var function = GitRemoteFunction.Both;
            AssertProcessOutput(output, new[]
            {
                new GitRemote(name, host, url, function)
            });
        }

        [Test]
        public void ShouldParseSingleHttpsFetchOnlyRemote()
        {
            var output = new[]<commit_msg>Adding test to parse ssh based url<commit_after>using System.Collections.Generic;
using FluentAssertions;
using NUnit.Framework;
using GitHub.Unity;

namespace UnitTests
{
    [TestFixture]
    public class RemoteListOutputProcessorTests
    {
        [Test]
        public void ShouldParseSingleHttpsBothWaysRemote()
        {
            var output = new[]
            {
                "origin https://github.com/github/VisualStudio.git (fetch)",
                "origin https://github.com/github/VisualStudio.git (push)",
                null
            };

            var name = "origin";
            var host = "github.com";
            var url = "https://github.com/github/VisualStudio.git";
            var function = GitRemoteFunction.Both;
            AssertProcessOutput(output, new[]
            {
                new GitRemote(name, host, url, function)
            });
        }

        [Test]
        public void ShouldParseSingleSshBothWaysRemote()
        {
            var output = new[]
            {
                "origin git@github.com:github-for-unity/Unity.git (fetch)",
                "origin git@github.com:github-for-unity/Unity.git (push)",
                null
            };

            var name = "origin";
            var host = "github.com";
            var url = "github.com:github-for-unity/Unity.git";
            var function = GitRemoteFunction.Both;
            var user = "git";
            AssertProcessOutput(output, new[]
            {
                new GitRemote(name, host, url, function, user)
            });
        }

        [Test]
        public void ShouldParseSingleHttpsFetchOnlyRemote()
        {
            var output = new[]
{'fraction_non_alphanumeric': 0.09925373134328358, 'fraction_numerical': 0.0, 'mean_word_length': 1.6258570029382957, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6813006', 'n_tokens_mistral': 716, 'n_tokens_neox': 676, 'n_words': 150}