<commit_before>﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
using System.Windows.Input;
using System.Windows.Media.Imaging;
using GitHub.Api;
using GitHub.Authentication;
using GitHub.Extensions;
using GitHub.Models;
using GitHub.Primitives;
using GitHub.Services;
using GitHub.UI;
using GitHub.Validation;
using GitHub.ViewModels;
using GitHub.VisualStudio.TeamExplorer.Home;
using ReactiveUI;
using GitHub.VisualStudio.TeamExplorer.Connect;
using System.Collections.ObjectModel;
using GitHub.Collections;
using System.Reactive.Linq;
using System.Linq;

namespace GitHub.SampleData
{
    [ExcludeFromCodeCoverage]
    public class BaseViewModelDesigner : ReactiveObject, IViewModel
    {
        public ICommand Cancel { get; set; }
        public bool IsShowing { get; set; }
        public string Title { get; set; }
    }

    [ExcludeFromCodeCoverage]
    public class GitHubPaneViewModelDesigner_PRList : BaseViewModelDesigner, IGitHubPaneViewModel
    {
        public GitHubPaneViewModelDesigner_PRList()
        {            
            var asm = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(x => x.GetName().Name == "GitHub.VisualStudio");
            var t = asm?.GetType("GitHub.VisualStudio.UI.Views.PullRequestListView");
            IView inst = null;
            if (t != null)
            {
                inst = (IView)Activator.CreateInstance(t);
                inst.ViewModel = new PullRequestListViewModelDesigner();
            }
            Control = inst;
        }

        public string ActiveRepoName { get { return "Repo Name"; } }

        public IView Control { get; set; }
    }

    [ExcludeFromCodeCoverage]
    public class PullRequestListViewModelDesigner : BaseViewModelDesigner, IPullRequestListViewModel
    {
        public PullRequestListViewModelDesigner()
        {
            var prs = new TrackingCollection<IPullRequestModel>(Observable.Empty<IPullRequestModel>());
            prs.Add(new PullRequestModel(399, "Let's try doing this differently", new AccountDesigner { Login = "shana", IsUser = true }, DateTimeOffset.Now - TimeSpan.FromDays(1)));
            prs.Add(new PullRequestModel(389, "Build system upgrade", new AccountDesigner { Login = "haacked", IsUser = true }, DateTimeOffset.Now - TimeSpan.FromMinutes(2)) { CommentCount = 4, HasNewComments = false });
            prs.Add(new PullRequestModel(409, "Fix publish button style", new AccountDesigner { Login = "shana", IsUser = false }, DateTimeOffset.Now - TimeSpan.FromHours(5)) { CommentCount = 27, HasNewComments = true });
            PullRequests = prs;
        }

        public ITrackingCollection<IPullRequestModel> PullRequests { get; set; }
        public IPullRequestModel SelectedPullRequest { get; set; }
    }

    [ExcludeFromCodeCoverage]
    public class RepositoryCreationViewModelDesigner : BaseViewModelDesigner, IRepositoryCreationViewModel
    {<commit_msg>This doesn't work, cut it<commit_after>﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
using System.Windows.Input;
using System.Windows.Media.Imaging;
using GitHub.Api;
using GitHub.Authentication;
using GitHub.Extensions;
using GitHub.Models;
using GitHub.Primitives;
using GitHub.Services;
using GitHub.UI;
using GitHub.Validation;
using GitHub.ViewModels;
using GitHub.VisualStudio.TeamExplorer.Home;
using ReactiveUI;
using GitHub.VisualStudio.TeamExplorer.Connect;
using System.Collections.ObjectModel;
using GitHub.Collections;
using System.Reactive.Linq;
using System.Linq;

namespace GitHub.SampleData
{
    [ExcludeFromCodeCoverage]
    public class BaseViewModelDesigner : ReactiveObject, IViewModel
    {
        public ICommand Cancel { get; set; }
        public bool IsShowing { get; set; }
        public string Title { get; set; }
    }

    [ExcludeFromCodeCoverage]
    public class PullRequestListViewModelDesigner : BaseViewModelDesigner, IPullRequestListViewModel
    {
        public PullRequestListViewModelDesigner()
        {
            var prs = new TrackingCollection<IPullRequestModel>(Observable.Empty<IPullRequestModel>());
            prs.Add(new PullRequestModel(399, "Let's try doing this differently", new AccountDesigner { Login = "shana", IsUser = true }, DateTimeOffset.Now - TimeSpan.FromDays(1)));
            prs.Add(new PullRequestModel(389, "Build system upgrade", new AccountDesigner { Login = "haacked", IsUser = true }, DateTimeOffset.Now - TimeSpan.FromMinutes(2)) { CommentCount = 4, HasNewComments = false });
            prs.Add(new PullRequestModel(409, "Fix publish button style", new AccountDesigner { Login = "shana", IsUser = false }, DateTimeOffset.Now - TimeSpan.FromHours(5)) { CommentCount = 27, HasNewComments = true });
            PullRequests = prs;
        }

        public ITrackingCollection<IPullRequestModel> PullRequests { get; set; }
        public IPullRequestModel SelectedPullRequest { get; set; }
    }

    [ExcludeFromCodeCoverage]
    public class RepositoryCreationViewModelDesigner : BaseViewModelDesigner, IRepositoryCreationViewModel
    {
{'fraction_non_alphanumeric': 0.09062681932854648, 'fraction_numerical': 0.005821851348728896, 'mean_word_length': 3.74585635359116, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6604806', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1389, 'n_words': 339}