MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / net_new

Function net_new

scripts/website/blog_prose_gate.py:243–253  ·  view source on GitHub ↗

Return head findings whose signature isn't already present in base.

(head_findings, base_findings)

Source from the content-addressed store, hash-verified

241# net-new diff
242# --------------------------------------------------------------------------- #
243def net_new(head_findings, base_findings):
244 """Return head findings whose signature isn't already present in base."""
245 base_counts = collections.Counter(f["signature"] for f in base_findings)
246 new = []
247 for f in head_findings:
248 sig = f["signature"]
249 if base_counts.get(sig, 0) > 0:
250 base_counts[sig] -= 1
251 else:
252 new.append(f)
253 return new
254
255
256def build_accept_file(repo_root):

Callers 1

gate_fileFunction · 0.85

Calls 3

CounterMethod · 0.80
getMethod · 0.65
appendMethod · 0.65

Tested by

no test coverage detected