/opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/__pycache__
NameSizeModeActions
checker.cpython-311.pyc278860644editdlrm
defaults.cpython-311.pyc9340644editdlrm
discover_files.cpython-311.pyc39470644editdlrm
exceptions.cpython-311.pyc43190644editdlrm
processor.cpython-311.pyc211730644editdlrm
statistics.cpython-311.pyc72400644editdlrm
style_guide.cpython-311.pyc212100644editdlrm
utils.cpython-311.pyc157210644editdlrm
violation.cpython-311.pyc46630644editdlrm
_compat.cpython-311.pyc8360644editdlrm
__init__.cpython-311.pyc30360644editdlrm
__main__.cpython-311.pyc4470644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/__pycache__/statistics.cpython-311.pyc (7240B)
§ î0Pº»9Uuãó¢—dZddlmZddlmZddlmZddlmZddlmZddlmZGd„d ¦«Z Gd „d e¦«Z Gd „d ¦«Z dS)z&Statistic collection logic for Flake8.é)ÚDict)Ú Generator)ÚList)Ú NamedTuple)ÚOptional)Ú Violationcój—eZdZdZd d„Zdeefd„Zdd„Z dd ed e ede d fd „Z dS)Ú Statisticsz5Manager of aggregated statistics for a run of Flake8.ÚreturnNcó—i|_dS)z8Initialize the underlying dictionary for our statistics.N)Ú_store©Úselfs úc/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/flake8/statistics.pyÚ__init__zStatistics.__init__s €à.0ˆŒ ˆ ˆ ócó>—td„|jD¦«¦«S)ziReturn all unique error codes stored. :returns: Sorted list of error codes. có—h|] }|j’Œ S©)Úcode)Ú.0Úkeys rú z)Statistics.error_codes..s€Ð7Ð7Ð7 C�s”xÐ7Ð7Ð7r©Úsortedr rs rÚ error_codeszStatistics.error_codess#€õ Ð7Ð7¨4¬;Ð7Ñ7Ô7Ñ8Ô8Ð8rÚerrorrcóΗt |¦«}||jvr"t |¦«|j|<|j| ¦«dS)z°Add the fact that the error was seen in the file. :param error: The Violation instance containing the information about the violation. N)ÚKeyÚ create_fromr Ú StatisticÚ increment)rrrs rÚrecordzStatistics.records[€õ�oŠo˜eÑ$Ô$ˆØ �d”kÐ !Ð !Ý(×4Ò4°UÑ;Ô;ˆDŒK˜Ñ Ø Œ �CÔ×"Ò"Ñ$Ô$Ð$Ð$Ð$rÚprefixÚfilename)r!NNc#óx‡‡K—tˆˆfd„|jD¦«¦«}|D]}|j|V—ŒdS)aBGenerate statistics for the prefix and filename. If you have a :class:`Statistics` object that has recorded errors, you can generate the statistics for a prefix (e.g., ``E``, ``E1``, ``W50``, ``W503``) with the optional filter of a filename as well. .. code-block:: python >>> stats = Statistics() >>> stats.statistics_for('E12', filename='src/flake8/statistics.py') >>> stats.statistics_for('W') :param prefix: The error class or specific error code to find statistics for. :param filename: (Optional) The filename to further filter results by. :returns: Generator of instances of :class:`Statistic` c3óH•K—|]}| ‰‰¦«¯|V—ŒdS©N)Úmatches)rrr%r$s €€rú z,Statistics.statistics_for..?sJøèè€ð! ð! ب#¯+ª+°f¸hÑ*GÔ*Gð! Ø ð! ð! ð! ð! ð! ð! rNr)rr$r%Úmatching_errorsÚ error_codes `` rÚstatistics_forzStatistics.statistics_for&swøøèè€õ2!ð! ð! ð! ð! ð! Øœ;ð! ñ! ô! ñ ô ˆð*ð *ð *ˆJØ”+˜jÔ)Ð )Ð )Ð )Ð )ð *ð *r©r N)rrr Nr() Ú__name__Ú __module__Ú __qualname__Ú__doc__rrÚstrrr#rrr-rrrr r s¡€€€€€Ø?Ð?ð1ð1ð1ð1ð9˜T #œYð9ð9ð9ð9ð %ð %ð %ð %ð6:ð*ð*Øð*Ø%-¨c¤]ð*à Ð*Ô +ð*ð*ð*ð*ð*ð*rr có`—eZdZUdZeed<eed<ed d„¦«Zdedeede fd „Z d S) rzäSimple key structure for the Statistics dictionary. To make things clearer, easier to read, and more understandable, we use a namedtuple here for all Keys in the underlying dictionary for the Statistics object. r%rrrr có0—||j|j¬¦«S)z6Create a Key from :class:`flake8.violation.Violation`.©r%rr6©Úclsrs rr zKey.create_fromQs€ðˆs˜EœN°´Ð<Ñ<Ô<З||_||_||_||_dS)zInitialize our Statistic.N©r,r%r?r@)rr,r%r?r@s rrzStatistic.__init__os$€ð%ˆŒØ ˆŒ ؈Œ ؈Œ ˆ ˆ rrrcó>—||j|j|jd¬¦«S)z>Create a Statistic from a :class:`flake8.violation.Violation`.rrB)rr%Útextr7s rr zStatistic.create_fromxs/€ðˆsØ”zØ”^Ø”JØð  ñ ô ð rcó&—|xjdz c_dS)zAIncrement the number of times we've seen this error in this file.éN)r@rs rr"zStatistic.increment‚s€à ˆ Œ �a‰ˆ Œ ˆ ˆ r)rrr r!r.) r/r0r1r2r3Úintrr<r r"rrrr!r!gsŽ€€€€€ðððØðØ),ðØ7:ðØCFðà ðððððð ð ð ñ„[ð ððððððrr!N) r2ÚtypingrrrrrÚflake8.violationrr rr!rrrúrJsýðØ,Ð,ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐà&Ð&Ð&Ð&Ð&Ð&ð8*ð8*ð8*ð8*ð8*ñ8*ô8*ð8*ðv ð ð ð ð ˆ*ñ ô ð ðBððððñôðððr