<commit_before>import React from 'react'
import PropTypes from 'prop-types'
import {
  Table,
  TableBody,
  TableRow,
  TableRowColumn,
  TableHeader,
  TableHeaderColumn,
} from 'material-ui/Table'
import sizeMe from 'react-sizeme'

import FilterChip from '../FilterChip'
import { connect } from 'react-redux'
import { routerActions } from 'react-router-redux'
import './PodTemplatePane.css'

const mapStateToProps = function(store) {
  return {
    resources: store.resources.resources,
    linkGenerator: store.session.linkGenerator,
  }
}

const mapDispatchToProps = function(dispatch, ownProps) {
  return {
    viewResource: function(resource, view='config') {
      dispatch(routerActions.push(ownProps.linkGenerator.linkForResource(resource,view)))
    },
    viewPermissions: function(subject) {
      if (subject.kind === 'ServiceAccount') {
        dispatch(routerActions.push(ownProps.linkGenerator.linkForResource(subject,'config')))<commit_msg>use viewResource instead of linkGenerator here<commit_after>import React from 'react'
import PropTypes from 'prop-types'
import {
  Table,
  TableBody,
  TableRow,
  TableRowColumn,
  TableHeader,
  TableHeaderColumn,
} from 'material-ui/Table'
import sizeMe from 'react-sizeme'

import FilterChip from '../FilterChip'
import { connect } from 'react-redux'
import { routerActions } from 'react-router-redux'
import { viewResource } from '../../state/actions/resources'
import './PodTemplatePane.css'

const mapStateToProps = function(store) {
  return {
    resources: store.resources.resources,
    linkGenerator: store.session.linkGenerator,
  }
}

const mapDispatchToProps = function(dispatch, ownProps) {
  return {
    viewResource: function(resource, view='config') {
      dispatch(viewResource(resource,view))
    },
    viewPermissions: function(subject) {
      if (subject.kind === 'ServiceAccount') {
        dispatch(viewResource(subject,'config'))
{'fraction_non_alphanumeric': 0.115625, 'fraction_numerical': 0.0, 'mean_word_length': 4.717261904761905, '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': '4439400', 'n_tokens_mistral': 553, 'n_tokens_neox': 553, 'n_words': 124}