MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / identify_extension

Function identify_extension

src/hyperagent/utils.py:90–107  ·  view source on GitHub ↗

Identify the file extension based on the given programming language. Args: language (str): The programming language. Returns: str: The file extension corresponding to the programming language.

(language)

Source from the content-addressed store, hash-verified

88 return root_dir + "/" + repo_dir.name
89
90def identify_extension(language):
91 """
92 Identify the file extension based on the given programming language.
93
94 Args:
95 language (str): The programming language.
96
97 Returns:
98 str: The file extension corresponding to the programming language.
99 """
100 if language == "python":
101 return ".py"
102 elif language == "java":
103 return ".java"
104 elif language == "csharp":
105 return ".cs"
106 elif language == "rust":
107 return ".rs"
108
109def matching_kind_symbol(symbol):
110 """

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected