MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / is_top_tier_model

Function is_top_tier_model

codewiki/cli/utils/validation.py:210–229  ·  view source on GitHub ↗

Check if a model is considered top-tier for clustering. Args: model: Model name Returns: True if top-tier, False otherwise

(model: str)

Source from the content-addressed store, hash-verified

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
224def 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

Callers 2

config_setFunction · 0.90
config_validateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected