<commit_before>// @flow
import React from 'react';
import { Image, View } from 'react-native';

import theme from '../../theme';

type Props = {
  size?: number,
  source: string,
  style?: Object,
};

export default function Avatar({ size = 44, source, style, ...props }: Props) {
  const styles = {
    wrapper: {
      backgroundColor: theme.color.sceneBg,
      borderRadius: size,
      overflow: 'hidden',
      height: size,
      width: size,
    },
    image: {
      borderRadius: size,
      height: size,
      width: size,
    },
  };

  return (
    <View style={[styles.wrapper, style]} {...props}>
      <Image source={{ uri: source }} style={styles.image} />
    </View>
  );
}<commit_msg>Fix for double attempt at circle on iOS.<commit_after>// @flow
import React from 'react';
import { Image, Platform, View } from 'react-native';

import theme from '../../theme';

type Props = {
  size?: number,
  source: string,
  style?: Object,
};

export default function Avatar({ size = 44, source, style, ...props }: Props) {
  const styles = {
    wrapper: {
      backgroundColor: theme.color.sceneBg,
      borderRadius: size,
      overflow: 'hidden',
      height: size,
      width: size,
    },
    image: {
      borderRadius: Platform.OS === 'android' ? size : 0,
      height: size,
      width: size,
    },
  };

  return (
    <View style={[styles.wrapper, style]} {...props}>
      <Image source={{ uri: source }} style={styles.image} />
    </View>
  );
}
{'fraction_non_alphanumeric': 0.16340310600945307, 'fraction_numerical': 0.00337609723160027, 'mean_word_length': 2.553956834532374, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5806216', 'n_tokens_mistral': 469, 'n_tokens_neox': 462, 'n_words': 139}