<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import tagComponent from '../../utils/helpers/tags/tags';
import CreateStyle from './create.style';

const Create = (props) => {
  /** Returns the props for the component. */
  const linkProps = () => {
    const { ...componentProps } = props;

    componentProps.iconAlign = 'right';
    componentProps.icon = 'add';
    return componentProps;
  };

  return (
    <CreateStyle
      { ...linkProps() } { ...tagComponent('create', props) }
    >
      { props.children }
    </CreateStyle>
  );
};

Create.propTypes = {
  /** Children elements */
  children: PropTypes.node,
  /** Custom className */
  className: PropTypes.string,
  /** Props for the link */
  linkProps: PropTypes.object
};

export default Create;<commit_msg>change function to be object one<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import tagComponent from '../../utils/helpers/tags/tags';
import CreateStyle from './create.style';

const Create = (props) => {
  /** Returns the props for the component. */
  const linkProps = {
    iconAlign: 'right',
    icon: 'add',
    ...props
  };

  return (
    <CreateStyle
      { ...linkProps } { ...tagComponent('create', props) }
    >
      { props.children }
    </CreateStyle>
  );
};

Create.propTypes = {
  /** Children elements */
  children: PropTypes.node,
  /** Custom className */
  className: PropTypes.string,
  /** Props for the link */
  linkProps: PropTypes.object
};

export default Create;
{'fraction_non_alphanumeric': 0.1541964866623292, 'fraction_numerical': 0.0, 'mean_word_length': 2.963917525773196, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '3508090', 'n_tokens_mistral': 441, 'n_tokens_neox': 448, 'n_words': 122}