<commit_before>﻿using WootzJs.Web;

namespace WootzJs.Mvc.Views
{
    public class AutocompleteTextBox<T> : Control
    {
        private Control content;
        private Control overlay;
        private Element contentNode;
        private Element overlayContainer;
        private DropDownAlignment alignment;
        private T selectedItem;

        protected override Element CreateNode()
        {
            contentNode = Browser.Document.CreateElement("input");
            contentNode.SetAttribute("type", "text");
            contentNode.Style.Height = "100%";

            var dropdown = Browser.Document.CreateElement("");

            overlayContainer = Browser.Document.CreateElement("div");
            overlayContainer.Style.Position = "absolute";
            overlayContainer.Style.Display = "none";
            overlayContainer.AppendChild(overlay.Node);
            Add(overlay);

            var overlayAnchor = Browser.Document.CreateElement("div");
            overlayAnchor.Style.Position = "relative";
            overlayAnchor.AppendChild(overlayContainer);

            var result = Browser.Document.CreateElement("div");
            result.AppendChild(contentNode);
            result.AppendChild(overlayAnchor);
            return result;
        }
    }
}<commit_msg>Remove dead line from autocomplete<commit_after>﻿using WootzJs.Web;

namespace WootzJs.Mvc.Views
{
    public class AutocompleteTextBox<T> : Control
    {
        private Control content;
        private Control overlay;
        private Element contentNode;
        private Element overlayContainer;
        private DropDownAlignment alignment;
        private T selectedItem;

        protected override Element CreateNode()
        {
            contentNode = Browser.Document.CreateElement("input");
            contentNode.SetAttribute("type", "text");
            contentNode.Style.Height = "100%";

            overlayContainer = Browser.Document.CreateElement("div");
            overlayContainer.Style.Position = "absolute";
            overlayContainer.Style.Display = "none";
            overlayContainer.AppendChild(overlay.Node);
            Add(overlay);

            var overlayAnchor = Browser.Document.CreateElement("div");
            overlayAnchor.Style.Position = "relative";
            overlayAnchor.AppendChild(overlayContainer);

            var result = Browser.Document.CreateElement("div");
            result.AppendChild(contentNode);
            result.AppendChild(overlayAnchor);
            return result;
        }
    }
}
{'fraction_non_alphanumeric': 0.09101608473911338, 'fraction_numerical': 0.0023538642604943117, 'mean_word_length': 2.381962864721485, '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': '5701210', 'n_tokens_mistral': 618, 'n_tokens_neox': 575, 'n_words': 121}