Skip to content

Commit

Permalink
[JVM] Fix mismatch langauge for jvm projects
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Nov 25, 2024
1 parent 4007592 commit e58090f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data_prep/introspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,12 @@ def query_introspector_language_stats() -> dict:
"""Queries introspector for language stats"""

resp = _query_introspector(INTROSPECTOR_LANGUAGE_STATS, {})
return _get_data(resp, 'stats', {})
result = _get_data(resp, 'stats', {})
if result:
# FI returns java as the key for jvm projects
result = {'jvm' if key == 'java' else key: value for key, value in result.items()}

return result


def query_introspector_type_info(project: str, type_name: str) -> list[dict]:
Expand Down

0 comments on commit e58090f

Please sign in to comment.