def __autorefresh_studies(self, cfg):
if '<STR_LIT>' not in self.conf[self.backend_section] or'<STR_LIT>' not in self.conf[self.backend_section]['<STR_LIT>']:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return<EOL><DEDENT>aoc_index = self.conf['<STR_LIT>'].get('<STR_LIT>', GitEnrich.GIT_AOC_ENRICHED)<EOL>if not aoc_index:<EOL><INDENT>aoc_index = GitEnrich.GIT_AOC_ENRICHED<EOL><DEDENT>logger.debug("<STR_LIT>", aoc_index)<EOL>es = Elasticsearch([self.conf['<STR_LIT>']['<STR_LIT:url>']], timeout=<NUM_LIT:100>,<EOL>verify_certs=self._get_enrich_backend().elastic.requests.verify)<EOL>if not es.indices.exists(index=aoc_index):<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return<EOL><DEDENT>logger.debug("<STR_LIT>")<EOL>aoc_backend = GitEnrich(self.db_sh, None, cfg['<STR_LIT>']['<STR_LIT>'],<EOL>self.db_user, self.db_password, self.db_host)<EOL>aoc_backend.mapping = None<EOL>aoc_backend.roles = ['<STR_LIT>']<EOL>elastic_enrich = get_elastic(self.conf['<STR_LIT>']['<STR_LIT:url>'],<EOL>aoc_index, clean=False, backend=aoc_backend)<EOL>aoc_backend.set_elastic(elastic_enrich)<EOL>self.__autorefresh(aoc_backend, studies=True)<EOL>
Execute autorefresh for areas of code study if configured