Re6:ddlmZddlmZGddeZdS)) CharSetProber) ProbingStateceZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZfdZdZdZdZdZdZedZedZedZxZS) HebrewProberg{Gz?z ISO-8859-8z windows-1255ctt|d|_d|_d|_d|_d|_d|_| dSN) superr__init___final_char_logical_score_final_char_visual_score_prev _before_prev_logical_prober_visual_proberreset)self __class__s /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/chardet/hebrewprober.pyrzHebrewProber.__init__s_ lD!!**,,,)-&(,%  #" c>d|_d|_d|_d|_dS)N )rrrrrs rrzHebrewProber.resets))*&()% r c"||_||_dSr)rr)r logicalProber visualProbers rset_model_proberszHebrewProber.set_model_proberss,*r cF||j|j|j|j|jfvSr) FINAL_KAF FINAL_MEM FINAL_NUNFINAL_PE FINAL_TSADIrcs ris_finalzHebrewProber.is_finals*T^T^T^]D$466 6r c:||j|j|j|jfvSr) NORMAL_KAF NORMAL_MEM NORMAL_NUN NORMAL_PEr/s r is_non_finalzHebrewProber.is_non_finals'T_do_dn66 6r c|jtjkr tjS||}|D]}|dkra|jdkrU||jr|xjdz c_nf||jr|xj dz c_ n;|jdkr0||jr|dkr|xj dz c_ |j|_||_tj S)Nr#r) staterNOT_MEfilter_high_byte_onlyrr1rrr7r DETECTING)rbyte_strcurs rfeedzHebrewProber.feeds6 :, , ,& &--h77  Cczz$++}}TZ00;66!;666**4:66;55:55&#--tz22.9<11Q611 $ D DJJ%%r cB|j|jz }||jkr|jS||j kr|jS|j|jz }||jkr|jS||j kr|jS|dkr|jS|jS)Ng) rrMIN_FINAL_CHAR_DISTANCELOGICAL_HEBREW_NAMEVISUAL_HEBREW_NAMErget_confidencerMIN_MODEL_DISTANCE)rfinalsubmodelsubs r charset_namezHebrewProber.charset_names1D4QQ t3 3 3+ + 44 4 4* *(7799)88::; d- - -+ + t.. . .* * c>>* *''r cdS)NHebrewr$s rlanguagezHebrewProber.languagesxr c|jjtjkr&|jjtjkr tjStjSr)rr9rr:rr<r$s rr9zHebrewProber.states>  &,*= = =   %)< < <& &%%r )__name__ __module__ __qualname__r*r3r+r4r,r5r-r6r. NORMAL_TSADIrArErCrBrrr(r1r7r?propertyrHrLr9 __classcell__)rs@rrrs#IJIJIJHIKL   %(   +++666 6 6 69&9&9&v((X(4X&&X&&&&&r rN) charsetproberrenumsrrrKr rrVsj8)(((((Fd&d&d&d&d&=d&d&d&d&d&r