<commit_before>import base64
import datetime
import re
import json

from bson import json_util
from django.conf import settings
from django.db import models
from django.db.models.signals import post_save, pre_delete
import json


from utils.model_tools import queryset_iterator
from odk_logger.models import Instance
from common_tags import START_TIME, START, END_TIME, END, ID, UUID, ATTACHMENTS

# this is Mongo Collection where we will store the parsed submissions
xform_instances = settings.MONGO_DB.instances
key_whitelist = ['$or', '$and', '$exists', '$in']

<commit_msg>Added  and  mongo query specifiers to API whitelist<commit_after>import base64
import datetime
import re
import json

from bson import json_util
from django.conf import settings
from django.db import models
from django.db.models.signals import post_save, pre_delete
import json


from utils.model_tools import queryset_iterator
from odk_logger.models import Instance
from common_tags import START_TIME, START, END_TIME, END, ID, UUID, ATTACHMENTS

# this is Mongo Collection where we will store the parsed submissions
xform_instances = settings.MONGO_DB.instances
key_whitelist = ['$or', '$and', '$exists', '$in', '$gt', '$lt']


{'fraction_non_alphanumeric': 0.07131011608623548, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 6.017441860465116, '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': '804519', 'n_tokens_mistral': 368, 'n_tokens_neox': 351, 'n_words': 135}