Check if a model is considered top-tier for clustering. Args: model: Model name Returns: True if top-tier, False otherwise
(model: str)
| 208 | |
| 209 | for language, extensions in language_extensions.items(): |
| 210 | count = 0 |
| 211 | for ext in extensions: |
| 212 | # Filter out files in excluded directories |
| 213 | count += sum( |
| 214 | 1 for f in directory.rglob(f"*{ext}") if f.is_file() and not should_exclude_file(f) |
| 215 | ) |
| 216 | |
| 217 | if count > 0: |
| 218 | language_counts[language] = count |
| 219 | |
| 220 | # Sort by count descending |
| 221 | return sorted(language_counts.items(), key=lambda x: x[1], reverse=True) |
| 222 | |
| 223 | |
| 224 | def is_top_tier_model(model: str) -> bool: |
| 225 | """ |
| 226 | Check if a model is considered top-tier for clustering. |
| 227 | |
| 228 | Args: |
| 229 | model: Model name |
| 230 | |
| 231 | Returns: |
| 232 | True if top-tier, False otherwise |
no outgoing calls
no test coverage detected