<commit_before>// @flow

import * as React from 'react'
import {Platform} from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons'
import {Touchable} from '../touchable'
import {rightButtonStyles as styles} from './styles'

type Props = {
  onFavorite: () => any,
  favorited: boolean,
}

export class FavoriteButton extends React.PureComponent<Props> {
  render() {
    return (
      <Touchable
        highlight={false}
        onPress={() => {
          this.props.onFavorite()
        }}
        style={styles.button}
      >
        {Platform.OS === 'ios' ? (
          <Icon
            name={this.props.favorited ? 'ios-heart' : 'ios-heart-outline'}
            style={styles.icon}
          />
        ) : (
          <Icon
            name={this.props.favorited ? 'md-heart' : 'md-heart-outline'}
            style={styles.icon}<commit_msg>remove empty anonymous function call from FavoriteButton<commit_after>// @flow

import * as React from 'react'
import {Platform} from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons'
import {Touchable} from '../touchable'
import {rightButtonStyles as styles} from './styles'

type Props = {
  onFavorite: () => any,
  favorited: boolean,
}

export class FavoriteButton extends React.PureComponent<Props> {
  render() {
    return (
      <Touchable
        highlight={false}
        onPress={this.props.onFavorite}
        style={styles.button}
      >
        {Platform.OS === 'ios' ? (
          <Icon
            name={this.props.favorited ? 'ios-heart' : 'ios-heart-outline'}
            style={styles.icon}
          />
        ) : (
          <Icon
            name={this.props.favorited ? 'md-heart' : 'md-heart-outline'}
            style={styles.icon}
{'fraction_non_alphanumeric': 0.13966800228963938, 'fraction_numerical': 0.0, 'mean_word_length': 2.3422562141491396, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '5993222', 'n_tokens_mistral': 528, 'n_tokens_neox': 531, 'n_words': 114}