<commit_before>import React, { PropTypes } from 'react';
import history from 'lib/history';

import s from 'styles/Link.scss';

function isLeftClickEvent(event) {
  return isTouchTap(event) || event.button === 0;
}

function isTouchTap(event) {
  return (typeof event.nativeEvent === 'object' && event.type === 'touchend');
}

function isModifiedEvent(event) {
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}

class Link extends React.Component {
  static propTypes = {
    to: PropTypes.string.isRequired,
    useAhref: PropTypes.bool,
    external: PropTypes.bool,
    sameTab: PropTypes.bool,
    mailTo: PropTypes.bool,
    children: PropTypes.node,
    onClick: PropTypes.func,
    preventDefault: PropTypes.bool
  };

  static defaultProps = {
    preventDefault: true
  };
<commit_msg>Adding sameTab default to Link component.<commit_after>import React, { PropTypes } from 'react';
import history from 'lib/history';

import s from 'styles/Link.scss';

function isLeftClickEvent(event) {
  return isTouchTap(event) || event.button === 0;
}

function isTouchTap(event) {
  return (typeof event.nativeEvent === 'object' && event.type === 'touchend');
}

function isModifiedEvent(event) {
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}

class Link extends React.Component {
  static propTypes = {
    to: PropTypes.string.isRequired,
    useAhref: PropTypes.bool,
    external: PropTypes.bool,
    sameTab: PropTypes.bool,
    mailTo: PropTypes.bool,
    children: PropTypes.node,
    onClick: PropTypes.func,
    preventDefault: PropTypes.bool
  };

  static defaultProps = {
    preventDefault: true,
    sameTab: false
  };

{'fraction_non_alphanumeric': 0.12661955241460543, 'fraction_numerical': 0.001177856301531213, 'mean_word_length': 4.132930513595166, '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': '3937830', 'n_tokens_mistral': 521, 'n_tokens_neox': 535, 'n_words': 127}