Spaces:
Sleeping
Sleeping
Release code against the existing immutable corpus
Browse files235 unmodified lines236237238239240241242243235 unmodified linesend = following.start()leading = _PREPOSED_INVALIDATION.search(value[: match.start()])if leading and positive(value, leading):# Retain a preceding qualification as well as the predicate.start = matches[index - 1].end() if index else 0clause = value[start:end]if any(positive(clause, marker) for marker in _INVALIDATION.finditer(clause)):yield clause, _statutory_references(clause)235 unmodified lines236237238239240241242243244245246247248249250251252253235 unmodified linesend = following.start()leading = _PREPOSED_INVALIDATION.search(value[: match.start()])if leading and positive(value, leading):# A qualification before the first provision can belong to its# predicate. After another provision, keep only an explicitly# separate clause; do not inherit that provision's limitation.start = 0 if index == 0 else leading.start()if index:prefix_start = matches[index - 1].end()separators = list(re.finditer(r";|\b(?:and|but)\s+(?=(?:the\s+)?court\b)",value[prefix_start:leading.start()],))if separators:start = prefix_start + separators[-1].end()clause = value[start:end]if any(positive(clause, marker) for marker in _INVALIDATION.finditer(clause)):yield clause, _statutory_references(clause)
tools/claim_support.py+12-2