<commit_before><commit_msg>i need to validate checkins.json<commit_after>import csv
import json
json_data = open('/home/bwaters/School/CS484/yelp-restaurant-classifiers/json/checkins.json')
data = json.load(json_data)
f = open('active_checkins.json', 'w')
with open('unique_ids') as f2:
    ids = f2.read().splitlines()
my_list = []
for x in data:
    if x['business_id'] in ids:
        f.write(str(x)+',\n')
f.close()
f2.close()
{'fraction_non_alphanumeric': 0.16744186046511628, 'fraction_numerical': 0.013953488372093023, 'mean_word_length': 4.824324324324325, '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': '3810354', 'n_tokens_mistral': 166, 'n_tokens_neox': 158, 'n_words': 33}