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)
| 88 | return root_dir + "/" + repo_dir.name |
| 89 | |
| 90 | def 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 | |
| 109 | def matching_kind_symbol(symbol): |
| 110 | """ |