<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def language_name(self, text: str) -> str: """Predict the programming language name of the given source code. :param text: source code. :return: language name """

        values = extract(text)
        input_fn = _to_func(([values], []))
        pos: int = next(self._classifier.predict_classes(input_fn=input_fn))

        LOGGER.debug("Predicted language position %s", pos)
        return sorted(self.languages)[pos]