<commit_before>﻿using System.Collections.Generic;
using TeacherPouch.Models;

namespace TeacherPouch.ViewModels
{
    public class PhotoDetailsViewModel
    {
        public PhotoDetailsViewModel(
            Photo photo,
            string photoUrl,
            string smallFileSize,
            string largeFileSize,
            Tag searchResultTag,
            Tag searchResultTag2,
            Photo previousPhoto,
            Photo nextPhoto,
            bool userIsAdmin)
        {
            Photo = photo;
            PhotoUrl = photoUrl;
            SmallFileSize = smallFileSize;
            LargeFileSize = largeFileSize;
            SearchResultTag = searchResultTag;
            SearchResultTag2 = searchResultTag2;
            PreviousPhoto = previousPhoto;
            NextPhoto = nextPhoto;
            ShowAdminLinks = userIsAdmin;
        }

        public Photo Photo { get; }
        public string PhotoUrl { get; }
        public string SmallFileSize { get; }
        public string LargeFileSize { get; }
        public Tag SearchResultTag { get; }
        public Tag SearchResultTag2 { get; }
        public Photo PreviousPhoto { get; }
        public Photo NextPhoto { get; }
        public IEnumerable<Question> Questions { get; }
        public bool ShowAdminLinks { get; }
    }
}
<commit_msg>Add Tags<commit_after>﻿using System.Collections.Generic;
using System.Linq;
using TeacherPouch.Models;

namespace TeacherPouch.ViewModels
{
    public class PhotoDetailsViewModel
    {
        public PhotoDetailsViewModel(
            Photo photo,
            string photoUrl,
            string smallFileSize,
            string largeFileSize,
            Tag searchResultTag,
            Tag searchResultTag2,
            Photo previousPhoto,
            Photo nextPhoto,
            bool userIsAdmin)
        {
            Photo = photo;
            PhotoUrl = photoUrl;
            Tags = photo.PhotoTags.Select(pt => pt.Tag);
            Questions = photo.Questions;
            SmallFileSize = smallFileSize;
            LargeFileSize = largeFileSize;
            SearchResultTag = searchResultTag;
            SearchResultTag2 = searchResultTag2;
            PreviousPhoto = previousPhoto;
            NextPhoto = nextPhoto;
            ShowAdminLinks = userIsAdmin;
        }

        public Photo Photo { get; }
        public string PhotoUrl { get; }
        public IEnumerable<Tag> Tags { get; }
        public IEnumerable<Question> Questions { get; }
        public string SmallFileSize { get; }
        public string LargeFileSize { get; }
        public Tag SearchResultTag { get; }
        public Tag SearchResultTag2 { get; }
        public Photo PreviousPhoto { get; }
        public Photo NextPhoto { get; }
        public bool ShowAdminLinks { get; }
    }
}

{'fraction_non_alphanumeric': 0.06111508220157255, 'fraction_numerical': 0.0028591851322373124, 'mean_word_length': 1.8707692307692307, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '7145548', 'n_tokens_mistral': 690, 'n_tokens_neox': 674, 'n_words': 186}