<commit_before>import os
import static
import requests
from wsgioauth2 import github

application = static.Cling('/app/docs/_build/html')

key = os.environ.get('GITHUB_OAUTH2_CLIENT_ID')
secret = os.environ.get('GITHUB_OAUTH2_CLIENT_SECRET')

client = github.make_client(client_id=key, client_secret=secret)
application = client.wsgi_middleware(application, secret=secret.encode('utf-8'))<commit_msg>Add oauth2 path<commit_after>import os
import static
import requests
from wsgioauth2 import github

application = static.Cling('/app/docs/_build/html')

key = os.environ.get('GITHUB_OAUTH2_CLIENT_ID')
secret = os.environ.get('GITHUB_OAUTH2_CLIENT_SECRET')

client = github.make_client(client_id=key, client_secret=secret)
application = client.wsgi_middleware(application, secret=secret.encode('utf-8'), path='/oauth2/')
{'fraction_non_alphanumeric': 0.11965811965811966, 'fraction_numerical': 0.01221001221001221, 'mean_word_length': 8.11111111111111, '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': '3148794', 'n_tokens_mistral': 283, 'n_tokens_neox': 284, 'n_words': 46}