<commit_before>import Ember from 'ember';
import layout from '../templates/components/ember-popper';
import { assert } from 'ember-popper/-debug/helpers';


export default Ember.Component.extend({

  /**
   * ================== PUBLIC CONFIG OPTIONS ==================
   */

  // Whether event listeners, resize and scroll, for repositioning the popper are initially enabled.
  eventsEnabled: true,

  // Modifiers that will be merged into the Popper instance's options hash.
  // https://popper.js.org/popper-documentation.html#Popper.DEFAULTS
  modifiers: null,

  // Placement of the popper. One of ['top', 'right', 'bottom', 'left'].
  placement: 'bottom',

  // Classes to be applied to the popper element
  popperClass: null,

  // The popper element needs to be moved higher in the DOM tree to avoid z-index issues.
  // See the block-comment in the template for more details.
  popperContainer: self.document ? self.document.body : '',

  // If `true`, the popper element will not be moved to popperContainer. WARNING: This can cause
  // z-index issues where your popper will be overlapped by DOM elements that aren't nested as<commit_msg>feat(popperContainer) allow popperContainer to be set via selector<commit_after>import Ember from 'ember';
import layout from '../templates/components/ember-popper';
import { assert } from 'ember-popper/-debug/helpers';


export default Ember.Component.extend({

  /**
   * ================== PUBLIC CONFIG OPTIONS ==================
   */

  // Whether event listeners, resize and scroll, for repositioning the popper are initially enabled.
  eventsEnabled: true,

  // Modifiers that will be merged into the Popper instance's options hash.
  // https://popper.js.org/popper-documentation.html#Popper.DEFAULTS
  modifiers: null,

  // Placement of the popper. One of ['top', 'right', 'bottom', 'left'].
  placement: 'bottom',

  // Classes to be applied to the popper element
  popperClass: null,

  popperContainer: Ember.computed({
    set(_, value) {
      if (value instanceof Element) {
        return value;
      }

      const possibleContainers = document.querySelectorAll(value);

      assert(`ember-popper with popperContainer selector "${value}" found `
             + `${possibleContainers.length} possible containers when there should be exactly 1`,
             possibleContainers.length === 1);

      return possibleContainers[0];
    },

    get() {
      // The popper element needs to be moved higher in the DOM tree to avoid z-index issues.
      // See the block-comment in the template for more details.
      return self.document ? self.document.body : '';
    }
  }),

  // If `true`, the popper element will not be moved to popperContainer. WARNING: This can cause
  // z-index issues where your popper will be overlapped by DOM elements that aren't nested as
{'fraction_non_alphanumeric': 0.1234132581100141, 'fraction_numerical': 0.0010578279266572638, 'mean_word_length': 3.4121306376360807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2468103', 'n_tokens_mistral': 789, 'n_tokens_neox': 748, 'n_words': 293}