def filter_by_labels(self, all_issues, kind):
filtered_issues = self.include_issues_by_labels(all_issues)<EOL>filtered = self.exclude_issues_by_labels(filtered_issues)<EOL>if self.options.verbose > <NUM_LIT:1>:<EOL><INDENT>print("<STR_LIT>".format(kind, len(filtered)))<EOL><DEDENT>return filtered<EOL>
Filter issues for include/exclude labels.

:param list(dict) all_issues: All issues.
:param str kind: Either "issues" or "pull requests".
:rtype: list(dict)
:return: Filtered issues.