This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Bedrock":{ | |
| "name":"Bedrock", | |
| "author":"Markcreator", | |
| "description":"An empty world with a single layer of bedrock.", | |
| "build":true, | |
| "code":"AAIAAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAAAIAQAAAAQAAAQBAAAUAgAACAEAAAAEAAAEAQAAFAIAAAgBAAAABAAABAEAABQCAA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| # Directory where repositories will be saved as zip files | |
| ZIP_DIR = os.getcwd() | |
| def download_latest_zip(full_repo_name, repo_name, default_branch): | |
| zip_path = os.path.join(ZIP_DIR, f"{repo_name}-{default_branch}.zip") | |
| if os.path.exists(zip_path): | |
| print(f"Zip file for {full_repo_name} already exists. Skipping...") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| # Directory where repositories will be cloned | |
| CLONE_DIR = os.getcwd() | |
| def clone_and_pull_repos(): | |
| # Create directory if it doesn't exist | |
| if not os.path.exists(CLONE_DIR): | |
| os.makedirs(CLONE_DIR) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import sys | |
| output_file = "blame.txt" | |
| def get_changed_lines_by_author(author_name, file_selector): | |
| changed_lines = [] | |
| # Get list of tracked files based on the file selector | |
| try: | |
| tracked_files = subprocess.check_output(['git', 'ls-files', file_selector]).decode('utf-8').split('\n') |