<commit_before>import React from 'react'

import TitleMenu from 'components/molecules/menus/TitleMenu'
import TitleMenuItem from 'components/molecules/menus/TitleMenuItem'

var LpdTitleMenu = React.createClass({
  propTypes: {
    selected: React.PropTypes.object.isRequired,
    sendValue: React.PropTypes.func.isRequired,
    idsToRender: React.PropTypes.array
  },

  getDefaultProps () {
    return {
      statuses: [],
      idsToRender: [],
      selected: {'name':'Loading ...'}
    }
  },

  render () {
    const filters = [
      { id: 1, value: 0, name: 'All', type: 'lpd_status' },
      { id: 2, value: 1, name: 'LPD 1', type: 'lpd_status' },
      { id: 3, value: 2, name: 'LPD 2', type: 'lpd_status' },
      { id: 4, value: 3, name: 'LPD 3', type: 'lpd_status' }
    ]

    const selected_text = !this.props.selected ? 'LPD Status' : this.props.selected.name

    const indicator_menu_items = filters.map(filter =>
      <TitleMenuItem
        key={'filter-' + filter.id}
        text={filter.name}
        onClick={() => this.props.sendValue(filter)}
        classes='filter'
      />
    )

    return (
      <TitleMenu
        className='font-weight-600 cd-titlebar-margin'
        icon='fa-chevron-down'
        searchable={false}<commit_msg>Update lpd dropdown<commit_after>import React from 'react'

import TitleMenu from 'components/molecules/menus/TitleMenu'
import TitleMenuItem from 'components/molecules/menus/TitleMenuItem'

const filters = [
  { id: 1, value: 0, name: 'All LPDs', type: 'lpd_status' },
  { id: 2, value: 1, name: 'LPD 1', type: 'lpd_status' },
  { id: 3, value: 2, name: 'LPD 2', type: 'lpd_status' },
  { id: 4, value: 3, name: 'LPD 3', type: 'lpd_status' }
]

const LpdTitleMenu = React.createClass({
  propTypes: {
    selected: React.PropTypes.object.isRequired,
    sendValue: React.PropTypes.func.isRequired,
    idsToRender: React.PropTypes.array
  },

  getDefaultProps () {
    return {
      statuses: [],
      idsToRender: [],
      selected: filters[0]
    }
  },

  render () {
    const selected_text = !this.props.selected ? 'LPD Status' : this.props.selected.name

    const indicator_menu_items = filters.map(filter =>
      <TitleMenuItem
        key={'filter-' + filter.id}
        text={filter.name}
        onClick={() => this.props.sendValue(filter)}
        classes='filter'
      />
    )

    return (
      <TitleMenu
        className='font-weight-600 cd-titlebar-margin'
        icon='fa-chevron-down'
        searchable={false}
{'fraction_non_alphanumeric': 0.14530938123752496, 'fraction_numerical': 0.01157684630738523, 'mean_word_length': 2.891304347826087, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6341845', 'n_tokens_mistral': 863, 'n_tokens_neox': 818, 'n_words': 178}