<jupyter_start><jupyter_text><jupyter_code>from google.colab import drive
drive.mount('/content/drive')
import os
os.chdir('/content/drive/MyDrive/Harvard_BAI')
### CREATE A PERSONAL ACCESS TOKEN FROM YOUR GITHUB ACCOUNT ####

# Go to Settings ---> Developer Settings ---> Generate new access token
# For scope just select the checkbox "repo".
# Copy the access token.
# Create a file (OUTSIDE YOUR GITHUB REPO) in your google drive access_token.txt and paste your access token to this file.
# I made mine at /content/drive/MyDrive/access_token.txt, which is the path below. If you make your file at another path, use that path below.
with open('/content/drive/MyDrive/access_token.txt','r') as F:
    contents = F.readlines()
token = contents[0]
!git config --global user.email "<EMAIL>"
!git config --global user.name "jaleeli413"
!git add assignment_2/
#!git add assignment_2/update_github.ipynb
#!git add assignment_2/todos.md
!git commit -m "Updating Assignment2 + Todos"

# THE FIRST TIME YOU RUN THIS CODE, UNCOMMENT LINES BELOW. AFTER THAT COMMENT THEM BACK.
# !git remote rm origin
# !git remote add origin https://Spandan-Madan:$token@github.com/Spandan-Madan/Harvard_BAI.git
!git push -u origin main<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10887096774193548, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 4.71889400921659, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '7233', 'license': 'MIT', 'n_tokens_mistral': 416, 'n_tokens_neox': 398, 'n_words': 141, 'path': 'assignment_2/update_github.ipynb', 'repo_name': 'jaleeli413/Harvard_BAI', 'size': '1270'}