Ë
    æØjj9  ã                  ó°   — d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdd	„Zdd
„Z	 d	 	 	 	 	 	 	 	 	 dd„Zddd„Zy)é    )Úannotations)ÚIterator)Úsaferepr)Ú_AssertionTextDiffStyle)Ú_HighlightFunc)Údummy_highlighter)Úassert_neverc              #  óž   K  — |xdk(  r t        | |«      E d {  –—†  y xdk(  r t        | |||«      E d {  –—†  y }t        |«       y 7 Œ/7 Œ­w)NÚblockÚndiff)Ú_diff_text_blockÚ
_diff_textr	   )ÚleftÚrightÚhighlighterÚverboseÚassertion_text_diff_styleÚunreachables         ú`/opt/eval-harness/bench_task/venv/lib/python3.12/site-packages/_pytest/assertion/compare_text.pyÚ_compare_eq_textr      sI   è ø€ ð $ÝÜ'¨¨eÓ4×4Ñ4ÝÜ! $¨¨{¸GÓD×DÑDØÜ˜Õ%ð	 5øàDús   ‚A™A	šA¶A·AÁAc              #  óx   K  — d–— t        | «      E d {  –—†  d–— d–— t        |«      E d {  –—†  y 7 Œ 7 Œ­w)NzLeft:Ú zRight:)Ú_format_text_block_lines)r   r   s     r   r   r      s<   è ø€ Ø
‚MÜ'¨Ó-×-Ð-Ø
‚HØ
‚NÜ'¨Ó.×.Ñ.ð .øð /ús   ‚:•6–:°8±:¸:c              #  óF   K  — | j                  d«      D ]	  }d|› �–— Œ y ­w)Nú
ú  )Úsplit)ÚtextÚlines     r   r   r   $   s*   è ø€ Ø—
‘
˜4Ó ò ˆØ�4�&ˆkÓñùs   ‚!c              #  óà  K  — ddl m} |dk  r´d}t        t        t	        | «      t	        |«      «      «      D ]  }| |   ||   k7  sŒ n |dkD  r|dz  }d|› d�–— | |d } ||d }t	        | «      t	        |«      k(  rFt        t	        | «      «      D ]  }| |    ||    k7  sŒ n |dkD  r|dz  }d|› d	�–— | d|  } |d|  }d
}| j                  «       s|j                  «       r,t        t        | «      «      } t        t        |«      «      }d–—  |dj                  d„  ||j                  |«      | j                  |«      «      D «       «      d¬«      j                  «       E d{  –—†  y7 Œ­w)z´Yield the explanation for the diff between text.

    Unless --verbose is used this will skip leading and trailing
    characters which are identical to keep the diff minimal.
    r   )r   é   é*   é
   z	Skipping z5 identical leading characters in diff, use -v to showNz6 identical trailing characters in diff, use -v to showTz;Strings contain only whitespace, escaping them using repr()r   c              3  ó>   K  — | ]  }|j                  d «      –— Œ y­w)r   N)Ústrip)Ú.0r   s     r   ú	<genexpr>z_diff_text.<locals>.<genexpr>Q   s!   è ø€ ò 
àð �J‰J�t×ñ
ùs   ‚Údiff)Úlexer)
Údifflibr   ÚrangeÚminÚlenÚisspaceÚreprÚstrÚjoinÚ
splitlines)r   r   r   r   r   ÚiÚkeependss          r   r   r   )   s•  è ø€ õ à�‚{ØˆÜ”sœ3˜t›9¤c¨%£jÓ1Ó2ò 	ˆAØ�A‰w˜% ™(Ó"Ùð	ð ˆrŠ6Ø�‰GˆAØ˜a˜SÐ UÐVÒVØ˜˜�8ˆDØ˜!˜"�IˆEÜˆt‹9œ˜E›
Ò"Üœ3˜t›9Ó%ò �Ø˜˜‘8˜u a R™yÓ(Ùðð �2ŠvØ�R‘�à ˜sð #9ð 9òð ˜C˜a˜R�y�Ø˜c ˜r˜
�Ø€HØ‡|�|„~˜Ÿ™œÜ”C˜“I‹ˆÜ”S˜“ZÓ ˆØKÒKñ Ø�	‰	ñ 
á˜e×.Ñ.¨xÓ8¸$¿/¹/È(Ó:SÓTô
ó 	
ð ô÷ �jƒl÷ò ús    ‚AE.ÁAE.Â!CE.Å&E,Å'E.c              #  óB  K  — |j                  | «      }|d | }||t        | «      z   d  }||z   }t        ||t        |«      }t	        | d¬«      › d�–— |D ]F  }|j                  d«      rŒ|j                  d«      rŒ'|j                  d«      rd|dd  z   –— ŒC|–— ŒH y ­w)	Nr"   )Úmaxsizez is contained here:ÚSkippingz- z+ r   é   )Úfindr-   r   r   r   Ú
startswith)	Útermr   r   ÚindexÚheadÚtailÚcorrect_textr(   r   s	            r   Ú_notin_textr@   Y   s²   è ø€ Ø�I‰I�d‹O€EØ��ˆ<€DØ�œ˜D›	Ñ!Ð#Ð$€DØ˜$‘;€LÜ�d˜LÔ*;¸WÓE€DÜ�d BÔ'Ð(Ð(;Ð
<Ò<Øò ˆØ�?‰?˜:Ô&ØØ�?‰?˜4Ô ØØ�?‰?˜4Ô Ø˜˜a˜b˜‘/Ó!à‹Jñùs   ‚BBN)r   r0   r   r0   r   r   r   Úintr   r   ÚreturnúIterator[str])r   r0   r   r0   rB   rC   )r   r0   rB   rC   )r   )
r   r0   r   r0   r   r   r   rA   rB   rC   )r;   r0   r   r0   r   rA   rB   rC   )Ú
__future__r   Úcollections.abcr   Ú_pytest._io.safereprr   Ú_pytest.assertion._typingr   r   Ú_pytest.assertion.highlightr   Ú_pytest.compatr	   r   r   r   r   r@   © ó    r   ú<module>rL      s›   ðÝ "å $å )Ý =Ý 4Ý 9Ý 'ð&Ø
ð&àð&ð  ð&ð ð	&ð
  7ð&ð ó&ó /óð HIð-Ø
ð-Øð-Ø(6ð-ØADð-àó-õ`rK   