MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_exact_matches

Method get_exact_matches

src/licensedcode/index.py:677–697  ·  view source on GitHub ↗

Exact matching strategy using an automaton for multimatching many rules at once.

(self, query, deadline=sys.maxsize, **kwargs)

Source from the content-addressed store, hash-verified

675 return matches
676
677 def get_exact_matches(self, query, deadline=sys.maxsize, **kwargs):
678 """
679 Exact matching strategy using an automaton for multimatching many rules
680 at once.
681 """
682 wqr = query.whole_query_run()
683
684 matches = match_aho.exact_match(
685 idx=self,
686 query_run=wqr,
687 automaton=self.rules_automaton,
688 deadline=deadline,
689 )
690
691 matches, _discarded = match.refine_matches(
692 matches=matches,
693 query=query,
694 filter_false_positive=False,
695 merge=False,
696 )
697 return matches
698
699 def get_fragments_matches(
700 self,

Callers

nothing calls this directly

Calls 1

whole_query_runMethod · 0.80

Tested by

no test coverage detected