<commit_before>import React, {Component} from 'react'
import { DropdownButton, MenuItem, ProgressBar,
  Nav, NavItem } from 'react-bootstrap'
import { Icon } from '../../components'
/**
 * Root component for Sidebar
 */
class Sidebar extends Component {

  constructor (props) {
    super(props)
    this.state = {
      display: false,
      arrow: false,
      sideshow: false
    }
  }

  toggleDisplay () {
    this.setState(prevState => ({display: !prevState.display}))
    this.setState(prevState => ({arrow: !prevState.arrow}))
  }
  /* eslint-disable react/jsx-no-bind, no-return-assign */
  render () {
    const displayAccordion = this.state.display ? 'accordion-section-content' +
        ' open' : 'accordion-section-content'
    const toggleArrow = this.state.arrow ? 'hide-desktop up' : 'hide-desktop' +
        ' down'
    return (
      <div className='sidebar accordion'>
        <div className='sidebar-wrapper'>
          <div className='sidebar-container'>
            <div className='sidebar-content'>
              <a className='accordion-section-title'
                onClick={::this.toggleDisplay}>
                <Icon name='project' className='iconProject' />
                <span className='projtitle'>Zanata Server</span>
                <svg className={toggleArrow}>
                  <use xlinkHref='#Icon-chevron-down'></use></svg>
              </a>
              <div id='accordion-1' className={displayAccordion}>
                <Nav bsStyle='pills' stacked activeKey={1}>
                  <NavItem eventKey={1} href=''>
                    <Icon name='users' className='s1 iconSidebar' />
                  People</NavItem>
                  <NavItem eventKey={2} href=''>
                    <Icon name='info' className='s1 iconSidebar' />
                  About</NavItem>
                  <NavItem eventKey={3} href=''>
                    <Icon name='settings' className='s1 iconSidebar' />
                  Settings </NavItem>
                </Nav>
                <DropdownButton title='Options' id='optionsDropdown'
                  className='btn-sm btn-default'>
                  <MenuItem eventKey='1'>Copy translations</MenuItem>
                  <MenuItem eventKey='2'>Merge translations</MenuItem>
                  <MenuItem eventKey='3'>Copy to new version</MenuItem>
                  <MenuItem eventKey='4'>Download config file</MenuItem>
                  <MenuItem eventKey='5'>Export version to TMX</MenuItem>
                </DropdownButton>
                <div id='sidebarVersion'>
                  <div className='sidebarVersion-inline'>
                    <span className='sidebarVersion-title'>
                      <Icon name='version' className='s2' />
                      <span className='versionHeading'>VERSION</span>
                    </span>
                    <DropdownButton id='version-dropdown'
                      className='btn-sm btn-default'
                      title='master'>
                      <MenuItem eventKey='1'>release</MenuItem>
                      <MenuItem eventKey='2'>test-1</MenuItem>
                    </DropdownButton>
                  </div>
                  <p className='sidebarVersion-settings'>
                    <a href=''>Version settings</a>
                  </p>
                  <div className='sidebarVersion-percent'>
                    <p><span className='percent'>10%</span> translated</p>
                  </div>
                  <ProgressBar>
                    <ProgressBar className='progress-bar-success'
                      now={10} key={1} />
                    <ProgressBar className='progress-bar-warning'
                      now={7} key={2} />
                    <ProgressBar className='progress-bar-danger'
                      now={3} key={3} />
                    <ProgressBar className='progress-bar-info'
                      now={10} key={4} />
                  </ProgressBar>
                  <Nav className='v-links'
                    bsStyle='pills' stacked activeKey={1}>
                    <NavItem eventKey={1} href=''>
                    Languages</NavItem>
                    <NavItem eventKey={2} href=''>
                    Documents</NavItem>
                    <NavItem eventKey={3} href=''>
                    Groups </NavItem>
                  </Nav>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    )
    /* eslint-enable react/jsx-no-bind, no-return-assign */
  }
}
export default Sidebar
<commit_msg>fix(ZNTA-2293) subtask: add glossary link to Project Version sidebar design (ZNTA-2049)<commit_after>import React, {Component} from 'react'
import { DropdownButton, MenuItem, ProgressBar,
  Nav, NavItem } from 'react-bootstrap'
import { Icon } from '../../components'
/**
 * Root component for Sidebar
 */
class Sidebar extends Component {

  constructor (props) {
    super(props)
    this.state = {
      display: false,
      arrow: false,
      sideshow: false
    }
  }

  toggleDisplay () {
    this.setState(prevState => ({display: !prevState.display}))
    this.setState(prevState => ({arrow: !prevState.arrow}))
  }
  /* eslint-disable react/jsx-no-bind, no-return-assign */
  render () {
    const displayAccordion = this.state.display ? 'accordion-section-content' +
        ' open' : 'accordion-section-content'
    const toggleArrow = this.state.arrow ? 'hide-desktop up' : 'hide-desktop' +
        ' down'
    return (
      <div className='sidebar accordion'>
        <div className='sidebar-wrapper'>
          <div className='sidebar-container'>
            <div className='sidebar-content'>
              <a className='accordion-section-title'
                onClick={::this.toggleDisplay}>
                <Icon name='project' className='iconProject' />
                <span className='projtitle'>Zanata Server</span>
                <svg className={toggleArrow}>
                  <use xlinkHref='#Icon-chevron-down'></use></svg>
              </a>
              <div id='accordion-1' className={displayAccordion}>
                <Nav bsStyle='pills' stacked activeKey={1}>
                  <NavItem eventKey={1} href=''>
                    <Icon name='users' className='s1 iconSidebar' />
                  People</NavItem>
                  <NavItem eventKey={2} href=''>
                    <Icon name='glossary' className='s1 iconSidebar' />
                  Glossary</NavItem>
                  <NavItem eventKey={2} href=''>
                    <Icon name='info' className='s1 iconSidebar' />
                  About</NavItem>
                  <NavItem eventKey={3} href=''>
                    <Icon name='settings' className='s1 iconSidebar' />
                  Settings </NavItem>
                </Nav>
                <DropdownButton title='Options' id='optionsDropdown'
                  className='btn-sm btn-default'>
                  <MenuItem eventKey='1'>Copy translations</MenuItem>
                  <MenuItem eventKey='2'>Merge translations</MenuItem>
                  <MenuItem eventKey='3'>Copy to new version</MenuItem>
                  <MenuItem eventKey='4'>Download config file</MenuItem>
                  <MenuItem eventKey='5'>Export version to TMX</MenuItem>
                </DropdownButton>
                <div id='sidebarVersion'>
                  <div className='sidebarVersion-inline'>
                    <span className='sidebarVersion-title'>
                      <Icon name='version' className='s2' />
                      <span className='versionHeading'>VERSION</span>
                    </span>
                    <DropdownButton id='version-dropdown'
                      className='btn-sm btn-default'
                      title='master'>
                      <MenuItem eventKey='1'>release</MenuItem>
                      <MenuItem eventKey='2'>test-1</MenuItem>
                    </DropdownButton>
                  </div>
                  <p className='sidebarVersion-settings'>
                    <a href=''>Version settings</a>
                  </p>
                  <div className='sidebarVersion-percent'>
                    <p><span className='percent'>10%</span> translated</p>
                  </div>
                  <ProgressBar>
                    <ProgressBar className='progress-bar-success'
                      now={10} key={1} />
                    <ProgressBar className='progress-bar-warning'
                      now={7} key={2} />
                    <ProgressBar className='progress-bar-danger'
                      now={3} key={3} />
                    <ProgressBar className='progress-bar-info'
                      now={10} key={4} />
                  </ProgressBar>
                  <Nav className='v-links'
                    bsStyle='pills' stacked activeKey={1}>
                    <NavItem eventKey={1} href=''>
                    Languages</NavItem>
                    <NavItem eventKey={2} href=''>
                    Documents</NavItem>
                    <NavItem eventKey={3} href=''>
                    Groups </NavItem>
                  </Nav>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    )
    /* eslint-enable react/jsx-no-bind, no-return-assign */
  }
}
export default Sidebar

{'fraction_non_alphanumeric': 0.128525641025641, 'fraction_numerical': 0.00811965811965812, 'mean_word_length': 1.540988056460369, 'pattern_counts': {'":': 0, '<': 168, '<?xml version=': 0, '>': 172, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3436899', 'n_tokens_mistral': 2463, 'n_tokens_neox': 2296, 'n_words': 470}