<jupyter_start><jupyter_text><jupyter_code>import json
import random
from google.colab import files
f1 = files.upload()
f2 = files.upload()
data = []
with open("DiarioDeBarrelas.json", "r", encoding='utf8') as f: 
  for lines in f:
    data.append(json.loads(lines))

with open("R7.json", "r", encoding='utf8') as f: 
  for lines in f:
    data.append(json.loads(lines))

random.shuffle(data)

for i in data:
  print(i)

for elemento in data:  
  with open("Final.json", "a", encoding='utf8') as outfile: 
    json.dump(elemento, outfile, ensure_ascii=False)
    outfile.write("\n")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15359477124183007, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 4.783018867924528, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '445743', 'license': 'MIT', 'n_tokens_mistral': 234, 'n_tokens_neox': 231, 'n_words': 55, 'path': 'Merge_Json.ipynb', 'repo_name': 'Laelapz/Some_Tests', 'size': '612'}