<commit_before>import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'
import classNames from 'classnames'
import convertColor from '../../utils/convertColor'
import { getWindowSize, getAttributeForCurrentSize } from '../../utils/size'
import Icon from '../Icon'
import style from './style.less'

export default class Button extends Component {
   static propTypes = {
      autoFormRespond: React.PropTypes.bool,
      className: React.PropTypes.string,
      color: React.PropTypes.string,
      icon: React.PropTypes.string,
      link: React.PropTypes.string,
      mode: React.PropTypes.string,
      name: React.PropTypes.string,
      onClick: React.PropTypes.func,
      outline: React.PropTypes.bool,
      plain: React.PropTypes.bool,
      rounded: React.PropTypes.bool,
      size: React.PropTypes.string,
      textClassName: React.PropTypes.string,
      translucent: React.PropTypes.bool,
      type: React.PropTypes.string
   }

   static defaultProps = {
      mode: 'normal',
      size: 'medium',
      type: 'button'
   }

   static contextTypes = {
      buttonGroup: React.PropTypes.object,
      buttonGroupStyle: React.PropTypes.object,
      OIOForm: React.PropTypes.object,
      OIOStyles: React.PropTypes.object
   }

   constructor(props) {
      super(props)

      this.state = {
         hover: false,<commit_msg>Updated propTypes for link prop<commit_after>import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'
import classNames from 'classnames'
import convertColor from '../../utils/convertColor'
import { getWindowSize, getAttributeForCurrentSize } from '../../utils/size'
import Icon from '../Icon'
import style from './style.less'

export default class Button extends Component {
   static propTypes = {
      autoFormRespond: React.PropTypes.bool,
      className: React.PropTypes.string,
      color: React.PropTypes.string,
      icon: React.PropTypes.string,
      link: React.PropTypes.oneOfType([
         React.PropTypes.string,
         React.PropTypes.object
      ]),
      mode: React.PropTypes.string,
      name: React.PropTypes.string,
      onClick: React.PropTypes.func,
      outline: React.PropTypes.bool,
      plain: React.PropTypes.bool,
      rounded: React.PropTypes.bool,
      size: React.PropTypes.string,
      textClassName: React.PropTypes.string,
      translucent: React.PropTypes.bool,
      type: React.PropTypes.string
   }

   static defaultProps = {
      mode: 'normal',
      size: 'medium',
      type: 'button'
   }

   static contextTypes = {
      buttonGroup: React.PropTypes.object,
      buttonGroupStyle: React.PropTypes.object,
      OIOForm: React.PropTypes.object,
      OIOStyles: React.PropTypes.object
   }

   constructor(props) {
      super(props)

      this.state = {
         hover: false,
{'fraction_non_alphanumeric': 0.11009497010200492, 'fraction_numerical': 0.0, 'mean_word_length': 2.8746594005449593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6515538', 'n_tokens_mistral': 823, 'n_tokens_neox': 825, 'n_words': 187}