<commit_before>import React, { Component, PropTypes } from 'react';
import { View, Text, Image, TouchableHighlight } from 'react-native';
import AppStyle from '../../theme/styles';

const defaultClick = () => {};

class MoreItem extends Component {
  static propTypes = {
    imageParentStyle: View.propTypes.style,
    image: PropTypes.oneOfType([
      PropTypes.shape({
        uri: PropTypes.string,
      }),
      // Opaque type returned by require('./image.jpg')
      PropTypes.number,
      // Multiple sources
      PropTypes.arrayOf(
        PropTypes.shape({
          uri: PropTypes.string,
          width: PropTypes.number,
          height: PropTypes.number,
        }))]),
    imageStyle: Image.propTypes.style,
    title: PropTypes.string.isRequired,
    titleStyle: Text.propTypes.style,
    onclick: PropTypes.func,
    top: PropTypes.number,
  };

  static defaultProps = {
    imageParentStyle: AppStyle.discoverMoreItem,
    image: '',
    imageStyle: AppStyle.discoverMoreItemImage,
    title: '',
    titleStyle: AppStyle.discoverMoreItemTitle,
    onclick: defaultClick,
    top: 0,
  };

  render = () => (
    <TouchableHighlight
      onPress={this.props.onclick}
      style={{ flex: 1, marginTop: this.props.top }}
    >
      <View style={this.props.imageParentStyle}>
        <Image source={this.props.image} style={this.props.imageStyle} >
          <View style={this.props.titleStyle}>
            <Text>{this.props.title}</Text>
          </View>
        </Image>
      </View>
    </TouchableHighlight>
  );
}

export default MoreItem;<commit_msg>[Discover] detail: update dicover more item title color<commit_after>import React, { Component, PropTypes } from 'react';
import { View, Text, Image, TouchableHighlight } from 'react-native';
import AppStyle from '../../theme/styles';

const defaultClick = () => {};

class MoreItem extends Component {
  static propTypes = {
    imageParentStyle: View.propTypes.style,
    image: PropTypes.oneOfType([
      PropTypes.shape({
        uri: PropTypes.string,
      }),
      // Opaque type returned by require('./image.jpg')
      PropTypes.number,
      // Multiple sources
      PropTypes.arrayOf(
        PropTypes.shape({
          uri: PropTypes.string,
          width: PropTypes.number,
          height: PropTypes.number,
        }))]),
    imageStyle: Image.propTypes.style,
    title: PropTypes.string.isRequired,
    titleColor: PropTypes.string,
    titleStyle: Text.propTypes.style,
    onclick: PropTypes.func,
    top: PropTypes.number,
  };

  static defaultProps = {
    imageParentStyle: AppStyle.discoverMoreItem,
    image: '',
    imageStyle: AppStyle.discoverMoreItemImage,
    title: '',
    titleColor: '#03a9f4',
    titleStyle: AppStyle.discoverMoreItemTitle,
    onclick: defaultClick,
    top: 0,
  };

  render = () => (
    <TouchableHighlight
      onPress={this.props.onclick}
      style={{ flex: 1, marginTop: this.props.top }}
    >
      <View style={this.props.imageParentStyle}>
        <Image source={this.props.image} style={this.props.imageStyle} >
          <View style={this.props.titleStyle}>
            <Text style={{ color: this.props.titleColor }}>{this.props.title}</Text>
          </View>
        </Image>
      </View>
    </TouchableHighlight>
  );
}

export default MoreItem;
{'fraction_non_alphanumeric': 0.13194444444444445, 'fraction_numerical': 0.0024154589371980675, 'mean_word_length': 2.76049943246311, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '4616286', 'n_tokens_mistral': 965, 'n_tokens_neox': 978, 'n_words': 204}