+
    ^ôk  ã                   ó2   € R t ^ RIt^ RIt^ RIHt R tR tR# )zLExact-byte cross-split collision checks; not a proof of sample independence.N)ÚPathc                ó8  a€ \         P                  ! 4       p\        V 4      P                  R4      ;_uu_ 4       o\	        V3R lR4       F  pVP                  V4       K  	  RRR4       VP                  4       #   + '       g   i     TP                  4       # ; i)z>Stream a file digest without loading large images into memory.Úrbc                  ó&   <€ S P                  R4      # )i   i   )Úread)Úsources   €ÚH/home/mchadwick/src/ansp/diatom-research/diatom_pilot/split_integrity.pyÚ<lambda>Úsha256_file.<locals>.<lambda>	   s   ø€  §¡¨YÔ!7ó    r   N)ÚhashlibÚsha256r   ÚopenÚiterÚupdateÚ	hexdigest)ÚpathÚdigestÚblockr   s   &  @r   Úsha256_filer      sr   ø€ ä�>Š>Ó€FÜ	ˆd‹�‰˜×	Ô	 &ÜÔ7¸Ö<ˆEØ�M‰M˜%Ö ñ =÷ 
ð ×ÑÓÐ÷ 
Ö	ð ×ÑÓÐús   ¹)A:Á:B	c           
     óð   € R pV! V 4      q2! V4      p\        VP                  4       VP                  4       ,          4       Uu. uF  pRVRW5,          RWE,          /NK  	  ppR\        V4      RVRR/# u upi )	ag  Report cross-split IDs with equal SHA-256; do not silently drop cases.

Each entry requires a unique string ``id`` within its split and a lowercase
64-character hexadecimal ``sha256``. Only exact-byte identity is tested;
near duplicates, overlapping fields, biological linkage and training-set
overlap remain unresolved even if this report has no collisions.
c                 ó’  € \        4       p/ pV  F´  pVP                  R 4      qCP                  R4      p\        V\        4      '       d>   V'       d6   WA9   g0   \        V\        4      '       d   \        P
                  ! RV4      f   \        R4      hVP                  V4       VP                  V. 4      P                  V4       K¶  	  V# )Úidr   z[0-9a-f]{64}z"Invalid or duplicate ID or SHA-256)
ÚsetÚgetÚ
isinstanceÚstrÚreÚ	fullmatchÚ
ValueErrorÚaddÚ
setdefaultÚappend)ÚrowsÚseenÚgroupsÚrowÚidentr   s   &     r   ÚvalidateÚ(exact_split_collisions.<locals>.validate   s­   € Ü‹Uˆ˜"�6ÛˆCØ—'‘'˜$“-ˆE§w¡w¨xÓ'8 Ü˜e¤C×(Ò(·¸¼ÌjÐY_Ô`c×NdÒNdÔhj×htÒhtð  vEð  FLó  iMò  iUÜ Ð!EÓFÐFØ�H‰H�UŒO˜F×-Ñ-¨f°RÓ8×?Ñ?ÀÖFñ	 ð
 ˆr   r   Údevelopment_idsÚevaluation_idsÚcontaminatedÚ
collisionsÚscopeÚexact_bytes_only)ÚsortedÚkeysÚbool)ÚdevelopmentÚ
evaluationr(   ÚaÚbÚhr-   s   &&     r   Úexact_split_collisionsr8      sÁ   € òñ ˆ{Ó€A˜h zÓ2˜Aô  CIð  JK÷  JPñ  JPó  JRð  ST÷  SYñ  SYó  S[õ  J[ô  C\ó  ?]ñ  C\Ð}~ÀÈÐK\Ð]^Õ]aÐbrÐstÕswÓ?xñ  C\°:ð  ?]Øœ4 
Ó+¨L¸ÀGÐL^Ð_Ð_ùò ?]s   ÁA3)Ú__doc__r   r   Úpathlibr   r   r8   © r   r   Ú<module>r<      s   ðÙ Rß Ý òô`r   