<commit_before>import PropTypes from 'prop-types';
import React from 'react';

import { LinkContainer as BSContainer } from 'react-router-bootstrap';

import { reverse } from '../routeTable';

const LinkContainer = ({ children, lang, to, dispatch, routeParams, ...other }) => (
  <BSContainer
    to={reverse(lang, to, {
      ...routeParams,
    })}
    {...other}
  >
    {children}
  </BSContainer>
);

LinkContainer.propTypes = {
  children: PropTypes.oneOfType([
    PropTypes.node,
    PropTypes.arrayOf(PropTypes.node),
  ]),
  lang: PropTypes.string.isRequired,
  // eslint-disable-next-line react/forbid-prop-types
  dispatch: PropTypes.any,
  // eslint-disable-next-line react/forbid-prop-types
  routeParams: PropTypes.object,
  to: PropTypes.string.isRequired,
};

LinkContainer.defaultProps = {
  children: null,
  dispatch: null,
  routeParams: null,
};

export default LinkContainer;<commit_msg>Unite Link components params API<commit_after>import PropTypes from 'prop-types';
import React from 'react';

import { LinkContainer as BSContainer } from 'react-router-bootstrap';

import { reverse } from '../routeTable';
import { Children } from '../proptypes';

const LinkContainer = ({ children, lang, to, dispatch, params, ...other }) => (
  <BSContainer to={reverse(lang, to, params)} {...other}>
    {children}
  </BSContainer>
);

LinkContainer.propTypes = {
  children: Children,
  lang: PropTypes.string.isRequired,
  // eslint-disable-next-line react/forbid-prop-types
  dispatch: PropTypes.any,
  // eslint-disable-next-line react/forbid-prop-types
  params: PropTypes.object,
  to: PropTypes.string.isRequired,
};

LinkContainer.defaultProps = {
  children: null,
  dispatch: null,
  params: null,
};

export default LinkContainer;
{'fraction_non_alphanumeric': 0.14139110604332952, 'fraction_numerical': 0.0, 'mean_word_length': 4.02865329512894, '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': '5980060', 'n_tokens_mistral': 532, 'n_tokens_neox': 542, 'n_words': 125}