def detect_language (self, sources):
        if type(sources) is not ListType:
            sources = [sources]
        lang = None
        index = len(self.language_order)
        for source in sources:
            base, ext = os.path.splitext(source)
            extlang = self.language_map.get(ext)
            try:
                extindex = self.language_order.index(extlang)
                if extindex < index:
                    lang = extlang
                    index = extindex
            except ValueError:
                pass
        return lang

    # detect_language ()

    # -- Worker methods ------------------------------------------------
    # (must be implemented by subclasses)
Requires:
dataset/ETHPy150Open babble/babble/include/jython/Lib/distutils/ccompiler.py/CCompiler.detect_language--crossover with--dataset/ETHPy150Open carbonblack/bit9platform/bit9PlatformAPI/examples/common/bit9api.py/bit9Api.__init__