<commit_before>exports.geoJsonToDoc = (geoJson) ->
  lnglat: geoJson.geometry.coordinates
  meta: geoJson.properties

exports.docToGeoJson = docToGeoJson = (doc) ->
  doc.meta._created = doc.created
  type: 'Feature'
  geometry:
    type: 'Point'
    coordinates: doc.lnglat
  properties: doc.meta

exports.docsToGeoJson = (docs) ->
  type: 'FeatureCollection'
  features: (docToGeoJson doc for doc in docs)

exports.docToGeo = (doc) ->
  lnglat: doc.lnglat
  meta: doc.meta
  created: doc.created

exports.geoToDoc = (geo) ->
  lnglat: geo.lnglat
  meta: geo.meta
<commit_msg>Ignore properties in GeoJSON if no meta data<commit_after>exports.geoJsonToDoc = (geoJson) ->
  lnglat: geoJson.geometry.coordinates
  meta: geoJson.properties

exports.docToGeoJson = docToGeoJson = (doc) ->
  doc.meta?._created = doc.created
  type: 'Feature'
  geometry:
    type: 'Point'
    coordinates: doc.lnglat
  properties: doc.meta

exports.docsToGeoJson = (docs) ->
  type: 'FeatureCollection'
  features: (docToGeoJson doc for doc in docs)

exports.docToGeo = (doc) ->
  lnglat: doc.lnglat
  meta: doc.meta
  created: doc.created

exports.geoToDoc = (geo) ->
  lnglat: geo.lnglat
  meta: geo.meta

{'fraction_non_alphanumeric': 0.11426256077795786, 'fraction_numerical': 0.0, 'mean_word_length': 3.2294520547945207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6775255', 'n_tokens_mistral': 485, 'n_tokens_neox': 438, 'n_words': 97}