<commit_before>define([
    "dojo/_base/declare",
    "dojo/_base/lang",
    "dojo/topic",
    "dojo/dom-style",
    "dojo/dom-class",
    "esriviewer/ui/window/WindowWidget",
    "./ImageInfoTabWidget"
],
    function (declare, lang, topic, domStyle, domClass, WindowWidget, ImageInfoTabWidget) {
        return declare(
            [WindowWidget],
            {
                defaultPositioning: {
                    x: 300,
                    y: 100
                },
                resizable: true,
                positioningParamName: "imageInfo",
                windowWidth: "30%",
                windowHeight: "57%",
                windowHeaderText: "Image Information",
                windowIconAltText: "Draw",
                windowIconClass: "commonIcons16 layer",
                minHeight: 350,
                minWidth: 370,
                initListeners: function () {
                    this.inherited(arguments);
                    //topic.subscribe(IMAGERY_GLOBALS.EVENTS.IMAGE.INFO.SHOW, lang.hitch(this, this.show));
                    topic.subscribe(IMAGERY_GLOBALS.EVENTS.IMAGE.INFO.HIDE, lang.hitch(this, this.hide));

                    topic.subscribe(IMAGERY_GLOBALS.EVENTS.IMAGE.INFO.SET_CONTENT_AND_SHOW, lang.hitch(this, this.show));
                },
                postCreate: function () {
                    domClass.add(this.domNode, "imageInfoWindow");
                    domClass.add(this.windowContent, "imageInfoContent");
                    this.inherited(arguments);
                    this.imageInfoTabContainer = new ImageInfoTabWidget();
                    this.setContent(this.imageInfoTabContainer.domNode);
                },
                /*
                show: function (imageInfo, layer) {
                    this.inherited(arguments);
                    this.imageInfoTabContainer.setImageInfo(imageInfo, layer);
                    this.imageInfoTabContainer.viewModel.attributes(true);
                },*/
                show: function(imageInfoAndLayerArray) {
                    this.inherited(arguments);
                    this.imageInfoTabContainer.setImageInfos(imageInfoAndLayerArray);
                },
                toggleContent: function () {
                    this.inherited(arguments);

                    //show/hide resize handle
                    var currStyle = domStyle.get(this.windowContentOuter, "display");
                    if (currStyle == "none") {
                        this.handle.resizeHandle.style.display = "none";
                    }
                    else {
                        this.handle.resizeHandle.style.display = "block";
                    }
                }
            });
    });<commit_msg>Remove toggleContent() function. Show/hide resize handle in WindowWidget.js instead.<commit_after>define([
    "dojo/_base/declare",
    "dojo/_base/lang",
    "dojo/topic",
    "dojo/dom-style",
    "dojo/dom-class",
    "esriviewer/ui/window/WindowWidget",
    "./ImageInfoTabWidget"
],
    function (declare, lang, topic, domStyle, domClass, WindowWidget, ImageInfoTabWidget) {
        return declare(
            [WindowWidget],
            {
                defaultPositioning: {
                    x: 300,
                    y: 100
                },
                resizable: true,
                positioningParamName: "imageInfo",
                windowWidth: "30%",
                windowHeight: "57%",
                windowHeaderText: "Image Information",
                windowIconAltText: "Draw",
                windowIconClass: "commonIcons16 layer",
                minHeight: 350,
                minWidth: 370,
                initListeners: function () {
                    this.inherited(arguments);
                    //topic.subscribe(IMAGERY_GLOBALS.EVENTS.IMAGE.INFO.SHOW, lang.hitch(this, this.show));
                    topic.subscribe(IMAGERY_GLOBALS.EVENTS.IMAGE.INFO.HIDE, lang.hitch(this, this.hide));

                    topic.subscribe(IMAGERY_GLOBALS.EVENTS.IMAGE.INFO.SET_CONTENT_AND_SHOW, lang.hitch(this, this.show));
                },
                postCreate: function () {
                    domClass.add(this.domNode, "imageInfoWindow");
                    domClass.add(this.windowContent, "imageInfoContent");
                    this.inherited(arguments);
                    this.imageInfoTabContainer = new ImageInfoTabWidget();
                    this.setContent(this.imageInfoTabContainer.domNode);
                },
                /*
                show: function (imageInfo, layer) {
                    this.inherited(arguments);
                    this.imageInfoTabContainer.setImageInfo(imageInfo, layer);
                    this.imageInfoTabContainer.viewModel.attributes(true);
                },*/
                show: function(imageInfoAndLayerArray) {
                    this.inherited(arguments);
                    this.imageInfoTabContainer.setImageInfos(imageInfoAndLayerArray);
                }
            });
    });
{'fraction_non_alphanumeric': 0.10273700912336374, 'fraction_numerical': 0.007140023800079333, 'mean_word_length': 1.4854608181370133, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2396068', 'n_tokens_mistral': 1357, 'n_tokens_neox': 1233, 'n_words': 184}