INNER CODE UNIT · Python

parse_translation_commits

deltazefiro/Amarok-Hider · .github/scripts/summarize_translation_contrib.py:201

def parse_translation_commits(
    commit_list: List[str], verbose: bool = False
) -> Dict[str, Set[Tuple[str, Optional[str]]]]:
    """
    Parse translation commits and organize contributors by language.
    Returns: {language: {(name, github_username), ...}}
    """
    contributors_by_lang = defaultdict(set)
    email_to_name = {}
    email_to_languages_map = defaultdict(set)
    emails_to_lookup = set()

    # First pass: collect all emails and their mappings
    for commit_hash in commit_list:
        commit_msg = get_commit_message(commit_hash)
        if not commit_msg:
            continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…