<commit_before>'use strict'
import React, { Component } from 'react'
import {
  MapView,
  AsyncStorage,
  AlertIOS,
  View,
  Text,
} from 'react-native'

var chicagoRegion = {
  latitude: 41.889357,
  longitude: -87.637604,
  latitudeDelta: 0.0922,
  longitudeDelta: 1.2,
}

function circleCoords(cLat, cLong, rInMeters) {
  var coords = []
  var tau = 2*Math.PI
  var rLat = rInMeters/111111.1
  var rLong = rInMeters/(111111.1 * Math.cos(cLat*tau/360))

  var n = 100 // "circle" = n-sided polygon
  for (var i = 0; i <= n; i++) {
    var lat = cLat + rLat * Math.cos(tau*i/n)
    var long = cLong + rLong * Math.sin(tau*i/n)
    coords.push({latitude: lat, longitude: long})
  }
  return coords
}

function makeOverlay(marker) {
  return {
    coordinates: circleCoords(marker.latitude, marker.longitude, marker.radius),
    strokeColor: marker.color,
    lineWidth: 3,
  }
}

function makeAnnotation(marker) {
  return {
    id: marker.id,<commit_msg>zoom changed<commit_after>'use strict'
import React, { Component } from 'react'
import {
  MapView,
  AsyncStorage,
  AlertIOS,
  View,
  Text,
} from 'react-native'

var chicagoRegion = {
  latitude: 41.889357,
  longitude: -87.637604,
  latitudeDelta: 0.0922,
  longitudeDelta: .09,
}

function circleCoords(cLat, cLong, rInMeters) {
  var coords = []
  var tau = 2*Math.PI
  var rLat = rInMeters/111111.1
  var rLong = rInMeters/(111111.1 * Math.cos(cLat*tau/360))

  var n = 100 // "circle" = n-sided polygon
  for (var i = 0; i <= n; i++) {
    var lat = cLat + rLat * Math.cos(tau*i/n)
    var long = cLong + rLong * Math.sin(tau*i/n)
    coords.push({latitude: lat, longitude: long})
  }
  return coords
}

function makeOverlay(marker) {
  return {
    coordinates: circleCoords(marker.latitude, marker.longitude, marker.radius),
    strokeColor: marker.color,
    lineWidth: 3,
  }
}

function makeAnnotation(marker) {
  return {
    id: marker.id,
{'fraction_non_alphanumeric': 0.13695765812859384, 'fraction_numerical': 0.04809200209095661, 'mean_word_length': 3.3698630136986303, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1680456', 'n_tokens_mistral': 801, 'n_tokens_neox': 730, 'n_words': 172}