addons14/github_connector/models/github_repository_branch.py
def analyze_code_one(self):
        """Overload Me in custom Module that manage Source Code analysis.
        """
        self.ensure_one()
        path = self.local_path
        # Compute Files Sizes
        size = 0
        for file_path in self._get_analyzable_files(path):
            try:
                size += os.path.getsize(file_path)
            except Exception:
                _logger.warning("Warning : unable to eval the size of '%s'.", file_path)

        try:
            Repo(path)
        except Exception:
            # If it's not a correct repository, we flag the branch
            # to be downloaded again
            self.state = "to_download"
            return {"size": 0}

        return {"size": size}
Overload Me in custom Module that manage Source Code analysis.
        
Overload Me in custom Module that manage Source Code analysis.
Overload Me in custom Module that manage Source Code analysis .
def analyze_code_one(self):
        self.ensure_one()
        path = self.local_path
        size = 0
        for file_path in self._get_analyzable_files(path):
            try:
                size += os.path.getsize(file_path)
            except Exception:
                _logger.warning("Warning : unable to eval the size of '%s'.", file_path)
        try:
            Repo(path)
        except Exception:
            self.state = "to_download"
            return {"size": 0}
        return {"size": size}
def analyze_code_one ( self ) : self . ensure_one ( ) path = self . local_path size = 0 for file_path in self . _get_analyzable_files ( path ) : try : size += os . path . getsize ( file_path ) except Exception : _logger . warning ( "Warning : unable to eval the size of '%s'." , file_path ) try : Repo ( path ) except Exception : self . state = "to_download" return { "size" : 0 } return { "size" : size }
Overload Me in custom Module that manage Source Code analysis.
Overload Me in custom Module that manage Source Code analysis .
"""Overload Me in custom Module that manage Source Code analysis.
        """ # Compute Files Sizes # If it's not a correct repository, we flag the branch # to be downloaded again
self