<commit_before>import { connect } from 'react-redux';
import { Property as VLProperty } from '@alephdata/vislib';

import { selectLocale } from 'src/selectors';

import './Property.scss';

const mapStateToProps = state => ({
  locale: selectLocale(state),
});

class Property extends VLProperty {
  static Reverse = connect(mapStateToProps)(super.Reverse);
}

export default Property;
<commit_msg>passed entityLink fucntion to vislib property<commit_after>import { connect } from 'react-redux';
import { Property as VLProperty } from '@alephdata/vislib';
import { Entity } from 'src/components/common';

import { selectLocale } from 'src/selectors';

import './Property.scss';

const getEntityLink = entity => <Entity.Link entity={entity} icon />;

const mapStateToProps = state => ({
  locale: selectLocale(state),
});

class Property {
  static Name = VLProperty.Name;

  static Reverse = connect(mapStateToProps)(VLProperty.Reverse);

  static Value = (props) => <VLProperty.Value {...props} getEntityLink={getEntityLink} />

  static Values = (props) => <VLProperty.Values {...props} getEntityLink={getEntityLink} />
}

export default Property;

{'fraction_non_alphanumeric': 0.13489991296779807, 'fraction_numerical': 0.0, 'mean_word_length': 5.182795698924731, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 11, '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': '3614437', 'n_tokens_mistral': 349, 'n_tokens_neox': 335, 'n_words': 90}