(self)
return list(sources)
Parses the README file to find `source: ID`. This log source is supposed to be the same as the one
        defined in the logs pipeline.
        :return: A list of all sources found in the README. Usually one or zero.
Parses the README file to find `source: ID`. This log source is supposed to be the same as the one
        defined in the logs pipeline.
        :return: A list of all sources found in the README. Usually one or zero.
Parses the README file to find source : ID . This log source is supposed to be the same as the one defined in the logs pipeline . : return : A list of all sources found in the README . Usually one or zero .
def get_log_sources_in_readme(self) -> List[str]:
        """
        Parses the README file to find `source: ID`. This log source is supposed to be the same as the one
        defined in the logs pipeline.
        :return: A list of all sources found in the README. Usually one or zero.
        """
        readme_file = os.path.join(INTEGRATIONS_CORE, self.dir_name, "README.md")
        with open(readme_file, 'r') as f:
            content = f.read()

        code_sections: List[str] = re.findall(r'(```.*?```|`.*?`)', content, re.DOTALL)
        sources = set(re.findall(r'(?:"source"|source|\\"source\\"): \\?"?(\w+)\\?"?', "\n".join(code_sections), re.MULTILINE))

        return list(sources)
def get_log_sources_in_readme ( self ) -> List [ str ] : readme_file = os . path . join ( INTEGRATIONS_CORE , self . dir_name , "README.md" ) with open ( readme_file , 'r' ) as f : content = f . read ( ) code_sections : List [ str ] = re . findall ( r'(```.*?```|`.*?`)' , content , re . DOTALL ) sources = set ( re . findall ( r'(?:"source"|source|\\"source\\"): \\?"?(\w+)\\?"?' , "\n" . join ( code_sections ) , re . MULTILINE ) ) return list ( sources )