MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / _join

Function _join

scripts/test-impact/profile_map_v2.py:526–545  ·  view source on GitHub ↗
(records, universe, row, budget, gate)

Source from the content-addressed store, hash-verified

524
525
526def _join(records, universe, row, budget, gate):
527 position = 0
528 for record in records:
529 gate.step()
530 while position < len(universe):
531 gate.step()
532 order = _record_order(universe[position], record, gate)
533 if order >= 0:
534 break
535 position += 1
536 if position == len(universe) or order != 0:
537 raise ProfileMapCompatibilityError("observation identity outside universe")
538 if len(record.counters) != len(universe[position].counters):
539 raise ProfileMapCompatibilityError("observation counter shape mismatch")
540 if _has_hit(record, gate) and position not in row.ids:
541 budget.reference()
542 row.ids.add(position)
543 position += 1
544 if len(records) != len(universe):
545 row.mark(_PARTIAL)
546
547
548def _base_reasons(row, gate):

Callers 1

_reduce_rowFunction · 0.85

Calls 6

_record_orderFunction · 0.85
_has_hitFunction · 0.85
referenceMethod · 0.80
stepMethod · 0.45
markMethod · 0.45

Tested by

no test coverage detected