<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;

namespace NKCraddock.AmazonItemLookup
{
    public class AwsItem
    {
        public string ASIN { get; set; }

        public string DetailPageURL { get; set; }

        public IList<AwsLink> Links { get; set; }

        public int? SalesRank { get; set; }

        public AwsImageSet PrimaryImageSet
        {
            get
            {
                return ImageSets.Where(x => x.Category == AwsImageSetCategory.Primary).FirstOrDefault();
            }
        }

        public IList<AwsImageSet> ImageSets { get; set; }

        public IDictionary<string, string> ItemAttributes { get; set; }

        public string ReviewIFrameUrl { get; set; }

        public AwsReview AmazonReview
        {
            get
            {
                const string AMAZON_SOURCE_NAME = "Amazon.com Review";
                return Reviews.Where(x => x.Source == AMAZON_SOURCE_NAME).FirstOrDefault();
            }
        }

        public IList<AwsReview> Reviews { get; set; }

        public IList<AwsSimilarProduct> SimilarProducts { get; set; }

        public double? ListPrice { get; set; }

        public double? OfferPrice { get; set; }<commit_msg>Added Description property to AwsItem<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;

namespace NKCraddock.AmazonItemLookup
{
    public class AwsItem
    {
        public string ASIN { get; set; }

        public string DetailPageURL { get; set; }

        public IList<AwsLink> Links { get; set; }

        public int? SalesRank { get; set; }

        public AwsImageSet PrimaryImageSet
        {
            get
            {
                return ImageSets.Where(x => x.Category == AwsImageSetCategory.Primary).FirstOrDefault();
            }
        }

        public IList<AwsImageSet> ImageSets { get; set; }

        public IDictionary<string, string> ItemAttributes { get; set; }

        public string ReviewIFrameUrl { get; set; }

        public string Description
        {
            get
            {
                const string AMAZON_SOURCE_NAME = "Product Description";
                AwsReview description = Reviews.Where(x => x.Source == AMAZON_SOURCE_NAME).FirstOrDefault();
                if (description == null)
                    return String.Empty;
                return description.Content;
            }
        }

        public IList<AwsReview> Reviews { get; set; }

        public IList<AwsSimilarProduct> SimilarProducts { get; set; }

        public double? ListPrice { get; set; }

        public double? OfferPrice { get; set; }
{'fraction_non_alphanumeric': 0.08572493477450616, 'fraction_numerical': 0.0, 'mean_word_length': 1.9822222222222223, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '5314001', 'n_tokens_mistral': 760, 'n_tokens_neox': 715, 'n_words': 192}