<commit_before><commit_msg>Updates<commit_after>#!/usr/bin/env python

import config_manager as cm
import dynamo_utils as du
import sys


if __name__ == "__main__" :

    jobname = sys.argv[1]
    if not jobname :
        print "Needs a jobname as arg"
        exit(0)
    
    app = cm.load_configs("production.conf")
    results = app.config["dyno.conn"].scan(jobname__eq=jobname)
    for r in results:
        print "Deleting {0}-{1}".format(r['jobname'], r['job_id'])
        r.delete()
        
{'fraction_non_alphanumeric': 0.13226452905811623, 'fraction_numerical': 0.008016032064128256, 'mean_word_length': 2.90625, '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': '6856401', 'n_tokens_mistral': 177, 'n_tokens_neox': 174, 'n_words': 40}