<commit_before>#!/usr/bin/env python3

from housepy import config, log, util, strings
from ingest import estimate_geometry
from mongo import db

def main():    
    log.info("geo_estimator...")
    features = db.features.find({'properties.EstimatedGeometry': {'$exists': True, '$ne': 'ambit_geo'}})
    for feature in features:
        log.info("Updating geometry for %s (currently %s)..." % (feature['_id'], feature['properties.EstimatedGeometry']))
        estimate_geometry(feature, db)

main()<commit_msg>testing geoestimator<commit_after>#!/usr/bin/env python3

from housepy import config, log, util, strings
from ingest import estimate_geometry
from mongo import db

def main():    
    log.info("geo_estimator...")
    features = db.features.find({'properties.EstimatedGeometry': {'$exists': True, '$ne': 'ambit_geo'}})
    for feature in features:
        log.info("Updating geometry for %s (currently %s)..." % (feature['_id'], feature['properties']['EstimatedGeometry']))
        estimate_geometry(feature, db)

main()
{'fraction_non_alphanumeric': 0.15272373540856032, 'fraction_numerical': 0.0019455252918287938, 'mean_word_length': 4.562162162162162, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6510708', 'n_tokens_mistral': 310, 'n_tokens_neox': 306, 'n_words': 82}