<commit_before>import os
import json
import requests
from requests.auth import HTTPBasicAuth
from datetime import datetime

def post_to_pilog(data):
  url = "https://pilog.herokuapp.com/logs"
  headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
  usn, pwd = os.environ["PILOG_AUTH"].split(":")
  auth = HTTPBasicAuth(usn, pwd)
  content = { 'content': data })
  resp = requests.post(url, data=json.dumps(content), headers=headers, auth=auth)
  log_response(resp)
  return resp

def log_response(resp):
  log(r.text)

def log(message):
  with open('pilog.log', 'a') as f:
    f.write("{0}: {1}\n".format(datetime.now().isoformat(), message))
<commit_msg>Doh, remove paren<commit_after>import os
import json
import requests
from requests.auth import HTTPBasicAuth
from datetime import datetime

def post_to_pilog(data):
  url = "https://pilog.herokuapp.com/logs"
  headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
  usn, pwd = os.environ["PILOG_AUTH"].split(":")
  auth = HTTPBasicAuth(usn, pwd)
  content = { 'content': data }
  resp = requests.post(url, data=json.dumps(content), headers=headers, auth=auth)
  log_response(resp)
  return resp

def log_response(resp):
  log(r.text)

def log(message):
  with open('pilog.log', 'a') as f:
    f.write("{0}: {1}\n".format(datetime.now().isoformat(), message))

{'fraction_non_alphanumeric': 0.16311535635562086, 'fraction_numerical': 0.0029390154298310064, 'mean_word_length': 5.219178082191781, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5236489', 'n_tokens_mistral': 476, 'n_tokens_neox': 479, 'n_words': 108}