def get_translation_path(export_format, lang):
    if not isinstance(export_format, str):
        raise TypeError("Expected basestring, got '%s' instead" % type(export_format))
    if not isinstance(lang, str):
        raise TypeError("Expected basestring, got '%s' instead" % type(lang))

    # Filter for security issues
    if any(True for x in ("/", "\\", ".") if x in export_format or x in lang):
        raise ValueError("'.' character is not allowed.")

    if export_format.lower() not in ("excel", "word"):
        raise ValueError("Export format not available")

    module_path = os.sep.join((__file__.split(os.sep)[0:-1]))

    return os.path.join(module_path, export_format, "%s.json" % lang)
    

# ----------------------------------------------------------------------
Returns the coefficient of determination R^2 of the prediction.
dataset/ETHPy150Open cr0hn/openvas_to_report/openvas_to_report/libs/translations/__init__.py/get_translation_path--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/base.py/RegressorMixin.score