<commit_before>from ..auditor import (
    AuditFailure,
    audit_checker,
)


@audit_checker('antibody_lot')
def audit_antibody_lot_target(value, system):
    '''
    Antibody lots should not have associated characterizations
    for different target labels
    '''
    if value['status'] in ['not pursued', 'deleted']:
        return

    if not value['characterizations']:
        return

    for char in value['characterizations']:<commit_msg>Fix embedding level for antibody_lot target check<commit_after>from ..auditor import (
    AuditFailure,
    audit_checker,
)


@audit_checker('antibody_lot', frame=[
    'characterizations',
])
def audit_antibody_lot_target(value, system):
    '''
    Antibody lots should not have associated characterizations
    for different target labels
    '''
    if value['status'] in ['not pursued', 'deleted']:
        return

    if not value['characterizations']:
        return

    for char in value['characterizations']:
{'fraction_non_alphanumeric': 0.10227272727272728, 'fraction_numerical': 0.0, 'mean_word_length': 3.703883495145631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6939619', 'n_tokens_mistral': 282, 'n_tokens_neox': 272, 'n_words': 77}