<commit_before># Python query script that reads all ES records on the l2b server, stores them in a dictionary and prints it.

from elasticsearch import Elasticsearch
import certifi
import datetime
import calendar
#import requests
#res = requests.get('https://edge:spinbolnorv7@opsdash.deflect.ca:443')
#print res.content
import pdb
#pdb.set_trace()

es = Elasticsearch(
    '[...]',
    # name of node to be added here 'http(s)://user:password@server:port']
    port= #add the port number,
    use_ssl=True,
    verify_certs=True,
    ca_certs=certifi.where()<commit_msg>Update es_to_python.py<commit_after># Python query script that reads all ES records on the l2b server, stores them in a dictionary and prints it.

from elasticsearch import Elasticsearch
import certifi
import datetime
import calendar

es = Elasticsearch(
    '[...]',
    # name of node to be added here 'http(s)://user:password@server:port']
    port= #add the port number,
    use_ssl=True,
    verify_certs=True,
    ca_certs=certifi.where()
{'fraction_non_alphanumeric': 0.09950738916256158, 'fraction_numerical': 0.005911330049261084, 'mean_word_length': 4.404255319148936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6158638', 'n_tokens_mistral': 315, 'n_tokens_neox': 317, 'n_words': 107}