<commit_before>module.exports = require('ember-popover').extend({
    template: require('../templates/selector'),
    
    classNames: ['super-field-selector'],
    
    classNameBindings: ['type.create:has-create'],

    minHeight: 50,

    maxHeight: 300,

    minWidth: Em.computed.alias('type.selectorMinWidth'),
    
    field: null,
    
    type: Ember.computed.alias('field.type'),

    highlightedOption: null,
    
    createIsHighlighted: false,

    mouseDown: function(e) {
        return false;
    },

    didPressUp: function() {
        if (this.get('createIsHighlighted')) {
            this.highlightOptionByIndex(this.get('type.content.length')-1);
            return;
        }
        this.advanceHighlightedOption(-1);
    },
    
    didPressDown: function() {
        if (this.get('createIsHighlighted')) {
            return;
        }<commit_msg>minHeight isn't really necessary in a superfield<commit_after>module.exports = require('ember-popover').extend({
    template: require('../templates/selector'),
    
    classNames: ['super-field-selector'],
    
    classNameBindings: ['type.create:has-create'],

    minHeight: 0,

    maxHeight: 300,

    minWidth: Em.computed.alias('type.selectorMinWidth'),
    
    field: null,
    
    type: Ember.computed.alias('field.type'),

    highlightedOption: null,
    
    createIsHighlighted: false,

    mouseDown: function(e) {
        return false;
    },

    didPressUp: function() {
        if (this.get('createIsHighlighted')) {
            this.highlightOptionByIndex(this.get('type.content.length')-1);
            return;
        }
        this.advanceHighlightedOption(-1);
    },
    
    didPressDown: function() {
        if (this.get('createIsHighlighted')) {
            return;
        }
{'fraction_non_alphanumeric': 0.13764044943820225, 'fraction_numerical': 0.007303370786516854, 'mean_word_length': 2.4717348927875245, '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': '5959972', 'n_tokens_mistral': 554, 'n_tokens_neox': 522, 'n_words': 82}