<commit_before>import React from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ReactSwipe from 'react-swipe'
import NumericInput from 'react-numeric-input'

const Details = ({ piece }) => (
  <div>
    <p className='breadcrumb'><a href='#/equipment/search/'>Search</a> > Details</p>
    {piece &&
      <div>
          <ReactSwipe>
            <div className='photo-medium'>
              <img src={piece.get('imageUrl')} />
            </div>
          </ReactSwipe>

          <h3>{piece.get('name')}</h3>

          <p style={{marginBottom:'.25rem'}}>Availible: <strong>{piece.get('qty')}</strong></p>

          <label style={{fontWeight:'normal'}}>Requested:</label>
          <NumericInput mobile={true} min={1} value={1} max={piece.qty} />

          <a className='button button-primary' href={'#/reservations/:id/add/' + piece.get('_id')}>
            <i className='icon-calendar-plus-o'></i>
            Reserve
          </a>
          <br /><commit_msg>Fixed max qyt bug in Equipment/Details view<commit_after>import React from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ReactSwipe from 'react-swipe'
import NumericInput from 'react-numeric-input'

const Details = ({ piece }) => (
  <div>
    <p className='breadcrumb'><a href='#/equipment/search/'>Search</a> > Details</p>
    {piece &&
      <div>
          <ReactSwipe>
            <div className='photo-medium'>
              <img src={piece.get('imageUrl')} />
            </div>
          </ReactSwipe>

          <h3>{piece.get('name')}</h3>

          <p style={{marginBottom:'.25rem'}}>Availible: <strong>{piece.get('qty')}</strong></p>

          <label style={{fontWeight:'normal'}}>Requested:</label>
          <NumericInput mobile={true} min={1} value={1} max={piece.get('qty')} />

          <a className='button button-primary' href={'#/reservations/:id/add/' + piece.get('_id')}>
            <i className='icon-calendar-plus-o'></i>
            Reserve
          </a>
          <br />
{'fraction_non_alphanumeric': 0.18654131618010886, 'fraction_numerical': 0.005937654626422563, 'mean_word_length': 2.6498194945848375, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 57, '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': '652719', 'n_tokens_mistral': 649, 'n_tokens_neox': 659, 'n_words': 114}