<commit_before>﻿using Dewey.Manifest.Component;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dewey.ListItems
{
    class Component
    {
        public string Name { get; private set; }

        public Component(ComponentManifest component)
        {
            Name = component.Name;
        }

        public void Write(Stack<ItemColor> offsets)
        {
            offsets.WriteOffsets();

            Console.ForegroundColor = (ConsoleColor)ItemColor.ComponentItem;
            Console.WriteLine("├ {0}", Name);
        }
    }
}<commit_msg>add component type to list command.<commit_after>﻿using Dewey.Manifest.Component;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dewey.ListItems
{
    class Component
    {
        public string Name { get; private set; }

        public string Type { get; private set; }

        public Component(ComponentManifest component)
        {
            Name = component.Name;
            Type = component.Type;
        }

        public void Write(Stack<ItemColor> offsets)
        {
            offsets.WriteOffsets();

            Console.ForegroundColor = (ConsoleColor)ItemColor.ComponentItem;
            Console.WriteLine("├ {0} ({1})", Name, Type);
        }
    }
}
{'fraction_non_alphanumeric': 0.09644670050761421, 'fraction_numerical': 0.002175489485134155, 'mean_word_length': 2.399014778325123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7300196', 'n_tokens_mistral': 373, 'n_tokens_neox': 368, 'n_words': 89}