<commit_before>import React from 'react'
import { Text } from 'react-native'
import { withNavigation } from 'react-navigation'
import Entypo from 'react-native-vector-icons/Entypo'
import Ionicon from 'react-native-vector-icons/Ionicons'
import Touchable from '../common/Touchable'
import css from '../../styles/css'

/**
 * Row item for user preferences
 * @param  {String} title Title to display
 * @param {String} icon Icon to display
 * @param {String} link Where to navigate to
 * @param {Object} style Optional style
 * @return {JSX} Return PreferencesItem JSX
 */
const PreferencesItem = ({ title, icon, link, style }) => (
	<Touchable
		onPress={() => { null }}
		style={css.pi_container}
	>
		<Entypo name={icon} size={24} style={css.pi_icon} />
		<Text style={css.pi_title}>{title}</Text>
		<Ionicon name="ios-arrow-forward" size={24} style={css.pi_arrow} />
	</Touchable>
)

export default withNavigation(PreferencesItem)<commit_msg>Link feedback to feedback view<commit_after>import React from 'react'
import { Text } from 'react-native'
import { withNavigation } from 'react-navigation'
import Entypo from 'react-native-vector-icons/Entypo'
import Ionicon from 'react-native-vector-icons/Ionicons'
import Touchable from '../common/Touchable'
import css from '../../styles/css'

/**
 * Row item for user preferences
 * @param  {String} title Title to display
 * @param {String} icon Icon to display
 * @param {String} link Where to navigate to
 * @param {Object} style Optional style
 * @return {JSX} Return PreferencesItem JSX
 */
const PreferencesItem = ({ title, icon, link, style, navigation }) => (
	<Touchable
		onPress={() => { navigation.navigate(link) }}
		style={css.pi_container}
	>
		<Entypo name={icon} size={24} style={css.pi_icon} />
		<Text style={css.pi_title}>{title}</Text>
		<Ionicon name="ios-arrow-forward" size={24} style={css.pi_arrow} />
	</Touchable>
)

export default withNavigation(PreferencesItem)
{'fraction_non_alphanumeric': 0.14551083591331268, 'fraction_numerical': 0.0041279669762641896, 'mean_word_length': 4.753709198813056, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '5203571', 'n_tokens_mistral': 617, 'n_tokens_neox': 603, 'n_words': 176}