<commit_before>import React from 'react'
import { Marker } from 'react-native-maps'
import platform from '../../util/Platforms'
import { Image } from 'react-native'
import DefaultText from '../DefaultText'

const markerImage = require('./assets/marker.png')
const selectedMarkerImage = require('./assets/selected_trader.png')
const cluster = require('./assets/cluster.png')
const clusterOver9 = require('./assets/over_9.png')
const clusterOver99 = require('./assets/over_99.png')
const selectedCluster = require('./assets/selected_cluster.png')
const selectedClusterOver9 = require('./assets/selected_over_9.png')
const selectedClusterOver99 = require('./assets/selected_over_99.png')

const getClusterImage = (pointCount, selected) => {
  if (selected) {
    return pointCount > 99
      ? selectedClusterOver99
      : ( pointCount > 9
          ? selectedClusterOver9
          : selectedCluster
        )
  } else {
    return pointCount > 99
      ? clusterOver99
      : ( pointCount > 9
          ? clusterOver9
          : cluster
        )
  }
}

const MapMarker = ({ coordinate, selected, onPress, pointCount }) => {
  if (pointCount) {
    const marginTop = pointCount > 99 ? 4.5 : pointCount > 9 ? 2.5 : 7/3
    const marginLeft = pointCount > 99 ? 14.5 : pointCount > 9 ? 13 : 12.5
    const fontSize = pointCount > 9 ? 13 : 12
    return <Marker
        coordinate={coordinate}
        onPress={onPress}
        anchor={platform.isIOS() ? null : { x: 0.5, y: 0.5 }}
        image={getClusterImage(pointCount, selected)}>
        <DefaultText style={{ color: 'white', fontSize, marginTop, marginLeft }}>
          {pointCount}
        </DefaultText>
    </Marker>
  }

  const marker = selected ? selectedMarkerImage : markerImage
  return <Marker
      coordinate={coordinate}<commit_msg>fixed number position on the cluster image<commit_after>import React from 'react'
import { Marker } from 'react-native-maps'
import platform from '../../util/Platforms'
import { Image } from 'react-native'
import DefaultText from '../DefaultText'

const markerImage = require('./assets/marker.png')
const selectedMarkerImage = require('./assets/selected_trader.png')
const cluster = require('./assets/cluster.png')
const clusterOver9 = require('./assets/over_9.png')
const clusterOver99 = require('./assets/over_99.png')
const selectedCluster = require('./assets/selected_cluster.png')
const selectedClusterOver9 = require('./assets/selected_over_9.png')
const selectedClusterOver99 = require('./assets/selected_over_99.png')

const getClusterImage = (pointCount, selected) => {
  if (selected) {
    return pointCount > 99
      ? selectedClusterOver99
      : ( pointCount > 9
          ? selectedClusterOver9
          : selectedCluster
        )
  } else {
    return pointCount > 99
      ? clusterOver99
      : ( pointCount > 9
          ? clusterOver9
          : cluster
        )
  }
}

const MapMarker = ({ coordinate, selected, onPress, pointCount }) => {
  if (pointCount) {
    const marginTop = pointCount > 99 ? 5 : pointCount > 9 ? 4 : 7/3
    const marginLeft = pointCount > 99 ? 14.5 : pointCount > 9 ? 13 : 12.5
    const fontSize = pointCount > 9 ? 13 : 12
    return <Marker
        coordinate={coordinate}
        onPress={onPress}
        anchor={platform.isIOS() ? null : { x: 0.5, y: 0.5 }}
        image={getClusterImage(pointCount, selected)}>
        <DefaultText style={{ color: 'white', fontSize, marginTop, marginLeft }}>
          {pointCount}
        </DefaultText>
    </Marker>
  }

  const marker = selected ? selectedMarkerImage : markerImage
  return <Marker
      coordinate={coordinate}
{'fraction_non_alphanumeric': 0.12455221824193993, 'fraction_numerical': 0.028658032515844586, 'mean_word_length': 3.083239595050619, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 33, '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': '4129553', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1019, 'n_words': 263}