Skip to content

Instantly share code, notes, and snippets.

View josephlou5's full-sized avatar

Joseph Lou josephlou5

View GitHub Profile
@josephlou5
josephlou5 / get_file_history.py
Last active December 1, 2022 02:23
Gets the history of a specific file in all the commits of a repository
"""
get_file_history.py
Gets the history of a specific file in all the commits of a repo.
GitPython: https://gitpython.readthedocs.io/en/stable/index.html
"""
# ==============================================================================
import json
@josephlou5
josephlou5 / run_codepost_tests.py
Created March 8, 2023 05:11
Runs the codePost tests for the given assignments or submissions
"""
Runs the codePost tests for the given assignments.
The requests in this script come from looking at the network calls on
the codePost webpage. As such, they are not part of any agreed-upon API,
and are subject to change at any time. Use at your own risk.
This script uses the `asyncio` module to make requests for each
assignment in parallel. This means that to run the tests for all the
assignments will only take as long as the slowest assignment. However,