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 | |
| from statistics import median | |
| def endswithin(s, suffixes): | |
| return any(s.endswith(suffix) for suffix in suffixes) | |
| def avg_lines(files): | |
| total = sum(lines for _, lines, _ in files) | |
| return total // len(files) if files else 0 |