<commit_before>/**
 * @module {can-component} Dropdown menu
 * @parent bithub-admin.components
 *
 * @signature `<bithub-dropdown-menu {title}="title" {items}="items" />`
 * Import file then add tag to template.
 *
 * @body
 *
 * ## Example
 * @demo components/dropdown-menu.html
 *
 */
import Component from 'can-component';
import DefineMap from 'can-define/map/';
import template from './dropdown-menu.stache';

export const ViewModel = DefineMap.extend(
  /** @prototype */
{
  /**
   * @property
   */
  title: {
    type:'string'
  },
  /**
   * @property
   */
  visible: {
    type: 'boolean',
    value: 'false'
  },
  /**
   * @property
   */
  items:{
    type:'observable'
  }
  /**
   * @function toggle
   * opens and closes the dropdown
   */
  toggle: function () {
    this.visible = !this.visible;
  },
});

export default Component.extend({
  tag: 'bithub-dropdown-menu',
  ViewModel: ViewModel,
  template
});<commit_msg>fix the comma error<commit_after>/**
 * @module {can-component} Dropdown menu
 * @parent bithub-admin.components
 *
 * @description Provides dropdown menu for the Bithub Admin application
 *
 * @signature `<bithub-dropdown-menu {title}="title" {items}="items" />`
 *  Creates dropdown menu for Bithub Admin
 *
 * @param {can-define/map|Object}
 *
 * @body
 * ## Component initialization
 * ```html
 *    `<bithub-dropdown-menu {title}="title" {items}="items"></bithub-dropdown-menu>`
 * ```
 *
 * ## Example
 * @demo components/dropdown-menu/dropdown-menu.html
 *
 */
import Component from 'can-component';
import DefineMap from 'can-define/map/';
import template from './dropdown-menu.stache';

export const ViewModel = DefineMap.extend(
  /** @prototype */
{
  /**
   * @property
   */
  title: {
    type:'string'
  },
  /**
   * @property
   */
  visible: {
    type: 'boolean',
    value: 'false'
  },
  /**
   * @property
   */
  items:{
    type:'observable'
  },
  /**
   * @function toggle
   * opens and closes the dropdown
   */
  toggle: function () {
    this.visible = !this.visible;
  },
});

export default Component.extend({
  tag: 'bithub-dropdown-menu',
  ViewModel: ViewModel,
  template
});
{'fraction_non_alphanumeric': 0.17007434944237917, 'fraction_numerical': 0.0, 'mean_word_length': 3.0622641509433963, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5208041', 'n_tokens_mistral': 707, 'n_tokens_neox': 699, 'n_words': 159}