mò (á¸Ec@s¶dZdkZdklZd„Zedjo€dkZeidZdZ e eƒdjoedZ n3e eƒdjoe\Z Z nd Ge eƒGHee e ƒndS( sWDump statistics about each word in the index. usage: wordstats.py data.fs [index key] N(s FileStoragec Cst|ddƒ}ti|ƒ} | iƒiƒ}||}|i } |i }dG| iƒGHdG|iƒGHdGHx:| iƒD],\}}|i|} t| ƒG|G|GHqWdGHxK| iƒD]=}|G|i|} x"| iƒD]\} }| G|GqåWHqÁWdS(Nt read_onlyitWordst Documentss"Word frequencies: count, word, wids#Per-doc scores: wid, (doc, score,)+(t FileStoragetfspathtfstZODBtDBtdbtopentroottrttkeytindextlexicontlextidxtlengthtitemstwordtwidt _wordinfotdocstlentwidstdocidtscore( RR R R RRRRRRRRR((tC/data/zmath/zope/lib/python/Products/ZCTextIndex/tests/wordstats.pytmain s,         t__main__iR iisExpected 1 or 2 args, got( t__doc__RtZODB.FileStorageRRt__name__tsystargvtargst index_keyRR(R$RR#R!RRR((Rt?s