content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\mathtext.cpython-313.pyc
mathtext.cpython-313.pyc
Other
5,962
0.8
0.07
0.022222
vue-tools
69
2024-10-20T02:31:35.870980
BSD-3-Clause
false
1a7f6cf33773eceb79a069683a6cad1a
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\mlab.cpython-313.pyc
mlab.cpython-313.pyc
Other
31,319
0.95
0.054734
0.010309
react-lib
518
2023-11-21T04:40:04.948200
GPL-3.0
false
fcd40f64dd79c1b75fbfadd4b69e61dc
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\offsetbox.cpython-313.pyc
offsetbox.cpython-313.pyc
Other
73,104
0.75
0.047619
0.01699
vue-tools
390
2025-01-22T13:12:41.110860
GPL-3.0
false
3de9ed52ff6bf31784d5b4245e7da78e
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\path.cpython-313.pyc
path.cpython-313.pyc
Other
45,759
0.95
0.078341
0.015873
vue-tools
945
2024-03-04T14:19:08.688774
MIT
false
2b44f1c76ba4ae326418cf686a382648
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\patheffects.cpython-313.pyc
patheffects.cpython-313.pyc
Other
21,626
0.95
0.048276
0.015094
react-lib
998
2024-07-29T04:06:55.305691
BSD-3-Clause
false
017148462fae8222b0c38b1d2641553c
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\pylab.cpython-313.pyc
pylab.cpython-313.pyc
Other
2,792
0.95
0.055556
0
python-kit
28
2024-04-09T17:09:14.374592
BSD-3-Clause
false
afdce1318f9ceaf7d99b860b7b7b4cde
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\quiver.cpython-313.pyc
quiver.cpython-313.pyc
Other
55,705
0.75
0.048533
0.030997
python-kit
626
2024-04-10T07:55:29.831212
MIT
false
09c270ba6638af56e4869a0fd7eca9eb
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\rcsetup.cpython-313.pyc
rcsetup.cpython-313.pyc
Other
52,544
0.95
0.040179
0.002381
react-lib
964
2024-02-26T09:05:52.680297
GPL-3.0
false
34521443fa478c9338da8c8b9455beed
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\sankey.cpython-313.pyc
sankey.cpython-313.pyc
Other
34,724
0.8
0.038288
0.035
node-utils
783
2023-10-06T01:52:48.827629
Apache-2.0
false
9f0baf66d99a049fef7c3ebe7107658b
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\scale.cpython-313.pyc
scale.cpython-313.pyc
Other
36,612
0.95
0.110837
0.008152
awesome-app
885
2025-03-09T21:38:58.647208
GPL-3.0
false
341d63c06a7f1faaa9da564426f5268e
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\spines.cpython-313.pyc
spines.cpython-313.pyc
Other
27,180
0.95
0.028662
0.024911
python-kit
557
2024-02-11T06:15:42.777045
BSD-3-Clause
false
e5eafcbfd5e133af9bee69e545308c58
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\stackplot.cpython-313.pyc
stackplot.cpython-313.pyc
Other
5,824
0.8
0.04
0.009091
vue-tools
909
2025-01-06T18:21:30.146066
GPL-3.0
false
6fce5aaec771af991e45a601778c1ff9
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\streamplot.cpython-313.pyc
streamplot.cpython-313.pyc
Other
30,150
0.95
0.048128
0.014327
vue-tools
932
2025-05-14T14:24:59.746636
Apache-2.0
false
8c6ae43be55d3fd7f3e9502deb9b8872
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\table.cpython-313.pyc
table.cpython-313.pyc
Other
33,107
0.95
0.028926
0.014184
react-lib
269
2023-09-11T05:56:19.634261
Apache-2.0
false
2d79567234afbd5c443f4d7fd5d6ee8a
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\texmanager.cpython-313.pyc
texmanager.cpython-313.pyc
Other
16,927
0.8
0.04908
0.043796
python-kit
783
2024-04-02T18:34:36.607660
GPL-3.0
false
c0728e0e18b068d22ec80f02e47e6bca
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\text.cpython-313.pyc
text.cpython-313.pyc
Other
79,671
0.75
0.036778
0.009036
awesome-app
83
2023-11-04T12:47:18.881426
BSD-3-Clause
false
83e120ef9f062fc36b3e7993ece12cbc
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\textpath.cpython-313.pyc
textpath.cpython-313.pyc
Other
16,339
0.95
0.037815
0
node-utils
275
2024-11-22T20:20:30.656943
Apache-2.0
false
065a0c4494a0d014179daabb662a3823
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\typing.cpython-313.pyc
typing.cpython-313.pyc
Other
2,854
0.8
0.032787
0
vue-tools
485
2024-01-23T08:50:37.773379
Apache-2.0
false
049a715d21b3d5f2a4394f9fc94ea2ec
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\units.cpython-313.pyc
units.cpython-313.pyc
Other
7,751
0.95
0.148148
0.008197
node-utils
933
2024-06-23T04:47:07.158943
Apache-2.0
false
95a8db01e81dc5e057fd2c6daf3fae91
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_afm.cpython-313.pyc
_afm.cpython-313.pyc
Other
20,607
0.95
0.032389
0.022727
vue-tools
396
2025-07-02T15:09:45.823110
Apache-2.0
false
2d3d106aa28c5923f457dd105c4eb0e4
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_animation_data.cpython-313.pyc
_animation_data.cpython-313.pyc
Other
8,078
0.95
0.223529
0.033898
vue-tools
449
2023-12-26T22:26:32.852390
MIT
false
81974dc799be4518dc1805ff91b0f81f
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_blocking_input.cpython-313.pyc
_blocking_input.cpython-313.pyc
Other
1,596
0.85
0.115385
0
react-lib
105
2024-01-08T07:47:23.592988
Apache-2.0
false
7aea41b824345bbc9d88a871c4193008
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_cm.cpython-313.pyc
_cm.cpython-313.pyc
Other
34,431
0.95
0.025237
0.006494
python-kit
73
2025-03-15T10:46:15.618926
BSD-3-Clause
false
8263a51b8e26ba432ae1780c012193bc
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_cm_bivar.cpython-313.pyc
_cm_bivar.cpython-313.pyc
Other
68,948
0.6
0
0
react-lib
612
2025-05-09T07:53:33.942129
Apache-2.0
false
b35f19eb322672faaceadedae78fdbaa
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_cm_multivar.cpython-313.pyc
_cm_multivar.cpython-313.pyc
Other
6,044
0.8
0
0
awesome-app
815
2024-07-28T08:16:13.694613
Apache-2.0
false
1180874401e3e8a9a02b4f4a148cb661
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_color_data.cpython-313.pyc
_color_data.cpython-313.pyc
Other
50,323
0.8
0
0
vue-tools
755
2025-03-01T06:05:01.565634
Apache-2.0
false
433bfff454d89a6cd3037dbdc693569b
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_constrained_layout.cpython-313.pyc
_constrained_layout.cpython-313.pyc
Other
34,306
0.8
0.042644
0.025943
awesome-app
837
2024-10-19T09:59:50.372833
Apache-2.0
false
7af1b1ae7a8b446d784c9f721f9704e3
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_docstring.cpython-313.pyc
_docstring.cpython-313.pyc
Other
6,676
0.95
0.23913
0.014085
node-utils
257
2023-10-11T23:29:27.535379
GPL-3.0
false
0de142d3e4fea7e6ec5800d74f0ffbe7
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_enums.cpython-313.pyc
_enums.cpython-313.pyc
Other
8,050
0.95
0.046053
0.016
python-kit
441
2025-04-30T17:25:24.218668
MIT
false
463710c896415de5444780ea7cab611b
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_fontconfig_pattern.cpython-313.pyc
_fontconfig_pattern.cpython-313.pyc
Other
5,687
0.8
0.014286
0
python-kit
985
2024-11-13T14:58:34.141100
Apache-2.0
false
033c7c69f5b8632c1627acc553878bdb
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_internal_utils.cpython-313.pyc
_internal_utils.cpython-313.pyc
Other
3,275
0.95
0.05
0
awesome-app
312
2023-11-07T04:56:07.685751
GPL-3.0
false
79e62cffdc5d836195ece8570bc45ae8
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_layoutgrid.cpython-313.pyc
_layoutgrid.cpython-313.pyc
Other
29,787
0.95
0.015801
0.031401
vue-tools
102
2024-03-12T08:48:11.599095
MIT
false
8cc100abf3864f23fc5b0d781fe3fd89
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_mathtext_data.cpython-313.pyc
_mathtext_data.cpython-313.pyc
Other
48,185
0.8
0.00289
0.026049
react-lib
734
2024-01-29T08:17:19.670005
Apache-2.0
false
90baa4d32dbf4fe473c980ae49e68dd7
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_pylab_helpers.cpython-313.pyc
_pylab_helpers.cpython-313.pyc
Other
7,515
0.95
0.067568
0
node-utils
944
2024-05-27T21:25:48.567167
MIT
false
ee825529876de899ebaef8ffe545c4ca
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_text_helpers.cpython-313.pyc
_text_helpers.cpython-313.pyc
Other
3,677
0.8
0
0
react-lib
249
2025-05-09T22:44:26.768595
MIT
false
b4cfd7f31eb23a44a081c4035a1ab192
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_tight_bbox.cpython-313.pyc
_tight_bbox.cpython-313.pyc
Other
4,238
0.95
0.076923
0.027027
react-lib
331
2024-03-13T21:34:34.257051
GPL-3.0
false
250e13412c17328f8266b738d4a6aeb1
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_tight_layout.cpython-313.pyc
_tight_layout.cpython-313.pyc
Other
13,150
0.95
0.04023
0.006098
awesome-app
630
2023-10-25T06:43:59.174290
MIT
false
6e0f9210e8e7eb4244841db944e0be4a
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_type1font.cpython-313.pyc
_type1font.cpython-313.pyc
Other
36,635
0.95
0.0325
0.013736
python-kit
716
2023-09-07T04:03:43.661707
Apache-2.0
false
fc23faf972de45bd74a63ac62379f1ed
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\_version.cpython-313.pyc
_version.cpython-313.pyc
Other
208
0.7
0
0
vue-tools
139
2025-04-03T07:01:50.509468
Apache-2.0
false
b3d91df5af0bf2269b8ec4004371f713
\n\n
.venv\Lib\site-packages\matplotlib\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
62,653
0.75
0.085599
0.01993
python-kit
125
2023-08-04T05:01:30.139405
GPL-3.0
false
8cf956193903309d8b809a6fbbc18172
pip\n
.venv\Lib\site-packages\matplotlib-3.10.3.dist-info\INSTALLER
INSTALLER
Other
4
0.5
0
0
react-lib
566
2025-05-26T08:03:58.072632
BSD-3-Clause
false
365c9bfeb7d89244f2ce01c1de44cb85
License agreement for matplotlib versions 1.3.0 and later\n=========================================================\n\n1. This LICENSE AGREEMENT is between the Matplotlib Development Team\n("MDT"), and the Individual or Organization ("Licensee") accessing and\notherwise using matplotlib software in source or binary form and its\nassociated documentation.\n\n2. Subject to the terms and conditions of this License Agreement, MDT\nhereby grants Licensee a nonexclusive, royalty-free, world-wide license\nto reproduce, analyze, test, perform and/or display publicly, prepare\nderivative works, distribute, and otherwise use matplotlib\nalone or in any derivative version, provided, however, that MDT's\nLicense Agreement and MDT's notice of copyright, i.e., "Copyright (c)\n2012- Matplotlib Development Team; All Rights Reserved" are retained in\nmatplotlib alone or in any derivative version prepared by\nLicensee.\n\n3. In the event Licensee prepares a derivative work that is based on or\nincorporates matplotlib or any part thereof, and wants to\nmake the derivative work available to others as provided herein, then\nLicensee hereby agrees to include in any such work a brief summary of\nthe changes made to matplotlib .\n\n4. MDT is making matplotlib available to Licensee on an "AS\nIS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR\nIMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND\nDISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS\nFOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB\nWILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\n\n5. MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB\n FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR\nLOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING\nMATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF\nTHE POSSIBILITY THEREOF.\n\n6. This License Agreement will automatically terminate upon a material\nbreach of its terms and conditions.\n\n7. Nothing in this License Agreement shall be deemed to create any\nrelationship of agency, partnership, or joint venture between MDT and\nLicensee. This License Agreement does not grant permission to use MDT\ntrademarks or trade name in a trademark sense to endorse or promote\nproducts or services of Licensee, or any third party.\n\n8. By copying, installing or otherwise using matplotlib ,\nLicensee agrees to be bound by the terms and conditions of this License\nAgreement.\n\nLicense agreement for matplotlib versions prior to 1.3.0\n========================================================\n\n1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the\nIndividual or Organization ("Licensee") accessing and otherwise using\nmatplotlib software in source or binary form and its associated\ndocumentation.\n\n2. Subject to the terms and conditions of this License Agreement, JDH\nhereby grants Licensee a nonexclusive, royalty-free, world-wide license\nto reproduce, analyze, test, perform and/or display publicly, prepare\nderivative works, distribute, and otherwise use matplotlib\nalone or in any derivative version, provided, however, that JDH's\nLicense Agreement and JDH's notice of copyright, i.e., "Copyright (c)\n2002-2011 John D. Hunter; All Rights Reserved" are retained in\nmatplotlib alone or in any derivative version prepared by\nLicensee.\n\n3. In the event Licensee prepares a derivative work that is based on or\nincorporates matplotlib or any part thereof, and wants to\nmake the derivative work available to others as provided herein, then\nLicensee hereby agrees to include in any such work a brief summary of\nthe changes made to matplotlib.\n\n4. JDH is making matplotlib available to Licensee on an "AS\nIS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR\nIMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND\nDISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS\nFOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB\nWILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\n\n5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB\n FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR\nLOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING\nMATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF\nTHE POSSIBILITY THEREOF.\n\n6. This License Agreement will automatically terminate upon a material\nbreach of its terms and conditions.\n\n7. Nothing in this License Agreement shall be deemed to create any\nrelationship of agency, partnership, or joint venture between JDH and\nLicensee. This License Agreement does not grant permission to use JDH\ntrademarks or trade name in a trademark sense to endorse or promote\nproducts or services of Licensee, or any third party.\n\n8. By copying, installing or otherwise using matplotlib,\nLicensee agrees to be bound by the terms and conditions of this License\nAgreement.
.venv\Lib\site-packages\matplotlib-3.10.3.dist-info\LICENSE
LICENSE
Other
4,830
0.7
0.020408
0
awesome-app
605
2023-08-20T19:35:27.773926
MIT
false
afec61498aa5f0c45936687da9a53d74
Metadata-Version: 2.1\nName: matplotlib\nVersion: 3.10.3\nSummary: Python plotting package\nAuthor: John D. Hunter, Michael Droettboom\nAuthor-Email: Unknown <matplotlib-users@python.org>\nLicense: License agreement for matplotlib versions 1.3.0 and later\n =========================================================\n \n 1. This LICENSE AGREEMENT is between the Matplotlib Development Team\n ("MDT"), and the Individual or Organization ("Licensee") accessing and\n otherwise using matplotlib software in source or binary form and its\n associated documentation.\n \n 2. Subject to the terms and conditions of this License Agreement, MDT\n hereby grants Licensee a nonexclusive, royalty-free, world-wide license\n to reproduce, analyze, test, perform and/or display publicly, prepare\n derivative works, distribute, and otherwise use matplotlib\n alone or in any derivative version, provided, however, that MDT's\n License Agreement and MDT's notice of copyright, i.e., "Copyright (c)\n 2012- Matplotlib Development Team; All Rights Reserved" are retained in\n matplotlib alone or in any derivative version prepared by\n Licensee.\n \n 3. In the event Licensee prepares a derivative work that is based on or\n incorporates matplotlib or any part thereof, and wants to\n make the derivative work available to others as provided herein, then\n Licensee hereby agrees to include in any such work a brief summary of\n the changes made to matplotlib .\n \n 4. MDT is making matplotlib available to Licensee on an "AS\n IS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR\n IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND\n DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS\n FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB\n WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\n \n 5. MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB\n FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR\n LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING\n MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF\n THE POSSIBILITY THEREOF.\n \n 6. This License Agreement will automatically terminate upon a material\n breach of its terms and conditions.\n \n 7. Nothing in this License Agreement shall be deemed to create any\n relationship of agency, partnership, or joint venture between MDT and\n Licensee. This License Agreement does not grant permission to use MDT\n trademarks or trade name in a trademark sense to endorse or promote\n products or services of Licensee, or any third party.\n \n 8. By copying, installing or otherwise using matplotlib ,\n Licensee agrees to be bound by the terms and conditions of this License\n Agreement.\n \n License agreement for matplotlib versions prior to 1.3.0\n ========================================================\n \n 1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the\n Individual or Organization ("Licensee") accessing and otherwise using\n matplotlib software in source or binary form and its associated\n documentation.\n \n 2. Subject to the terms and conditions of this License Agreement, JDH\n hereby grants Licensee a nonexclusive, royalty-free, world-wide license\n to reproduce, analyze, test, perform and/or display publicly, prepare\n derivative works, distribute, and otherwise use matplotlib\n alone or in any derivative version, provided, however, that JDH's\n License Agreement and JDH's notice of copyright, i.e., "Copyright (c)\n 2002-2011 John D. Hunter; All Rights Reserved" are retained in\n matplotlib alone or in any derivative version prepared by\n Licensee.\n \n 3. In the event Licensee prepares a derivative work that is based on or\n incorporates matplotlib or any part thereof, and wants to\n make the derivative work available to others as provided herein, then\n Licensee hereby agrees to include in any such work a brief summary of\n the changes made to matplotlib.\n \n 4. JDH is making matplotlib available to Licensee on an "AS\n IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR\n IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND\n DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS\n FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB\n WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\n \n 5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB\n FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR\n LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING\n MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF\n THE POSSIBILITY THEREOF.\n \n 6. This License Agreement will automatically terminate upon a material\n breach of its terms and conditions.\n \n 7. Nothing in this License Agreement shall be deemed to create any\n relationship of agency, partnership, or joint venture between JDH and\n Licensee. This License Agreement does not grant permission to use JDH\n trademarks or trade name in a trademark sense to endorse or promote\n products or services of Licensee, or any third party.\n \n 8. By copying, installing or otherwise using matplotlib,\n Licensee agrees to be bound by the terms and conditions of this License\n Agreement.\nClassifier: Development Status :: 5 - Production/Stable\nClassifier: Framework :: Matplotlib\nClassifier: Intended Audience :: Science/Research\nClassifier: Intended Audience :: Education\nClassifier: License :: OSI Approved :: Python Software Foundation License\nClassifier: Programming Language :: Python\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3.10\nClassifier: Programming Language :: Python :: 3.11\nClassifier: Programming Language :: Python :: 3.12\nClassifier: Programming Language :: Python :: 3.13\nClassifier: Topic :: Scientific/Engineering :: Visualization\nProject-URL: Homepage, https://matplotlib.org\nProject-URL: Download, https://matplotlib.org/stable/install/index.html\nProject-URL: Documentation, https://matplotlib.org\nProject-URL: Source Code, https://github.com/matplotlib/matplotlib\nProject-URL: Bug Tracker, https://github.com/matplotlib/matplotlib/issues\nProject-URL: Forum, https://discourse.matplotlib.org/\nProject-URL: Donate, https://numfocus.org/donate-to-matplotlib\nRequires-Python: >=3.10\nRequires-Dist: contourpy>=1.0.1\nRequires-Dist: cycler>=0.10\nRequires-Dist: fonttools>=4.22.0\nRequires-Dist: kiwisolver>=1.3.1\nRequires-Dist: numpy>=1.23\nRequires-Dist: packaging>=20.0\nRequires-Dist: pillow>=8\nRequires-Dist: pyparsing>=2.3.1\nRequires-Dist: python-dateutil>=2.7\nProvides-Extra: dev\nRequires-Dist: meson-python<0.17.0,>=0.13.1; extra == "dev"\nRequires-Dist: pybind11!=2.13.3,>=2.13.2; extra == "dev"\nRequires-Dist: setuptools_scm>=7; extra == "dev"\nRequires-Dist: setuptools>=64; extra == "dev"\nDescription-Content-Type: text/markdown\n\n[![PyPi](https://img.shields.io/pypi/v/matplotlib)](https://pypi.org/project/matplotlib/)\n[![Conda](https://img.shields.io/conda/vn/conda-forge/matplotlib)](https://anaconda.org/conda-forge/matplotlib)\n[![Downloads](https://img.shields.io/pypi/dm/matplotlib)](https://pypi.org/project/matplotlib)\n[![NUMFocus](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](https://numfocus.org)\n\n[![Discourse help forum](https://img.shields.io/badge/help_forum-discourse-blue.svg)](https://discourse.matplotlib.org)\n[![Gitter](https://badges.gitter.im/matplotlib/matplotlib.svg)](https://gitter.im/matplotlib/matplotlib)\n[![GitHub issues](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/matplotlib/matplotlib/issues)\n[![Contributing](https://img.shields.io/badge/PR-Welcome-%23FF8300.svg?)](https://matplotlib.org/stable/devel/index.html)\n\n[![GitHub actions status](https://github.com/matplotlib/matplotlib/workflows/Tests/badge.svg)](https://github.com/matplotlib/matplotlib/actions?query=workflow%3ATests)\n[![Azure pipelines status](https://dev.azure.com/matplotlib/matplotlib/_apis/build/status/matplotlib.matplotlib?branchName=main)](https://dev.azure.com/matplotlib/matplotlib/_build/latest?definitionId=1&branchName=main)\n[![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/matplotlib/matplotlib?branch=main&svg=true)](https://ci.appveyor.com/project/matplotlib/matplotlib)\n[![Codecov status](https://codecov.io/github/matplotlib/matplotlib/badge.svg?branch=main&service=github)](https://app.codecov.io/gh/matplotlib/matplotlib)\n[![EffVer Versioning](https://img.shields.io/badge/version_scheme-EffVer-0097a7)](https://jacobtomlinson.dev/effver)\n\n![Matplotlib logotype](https://matplotlib.org/_static/logo2.svg)\n\nMatplotlib is a comprehensive library for creating static, animated, and\ninteractive visualizations in Python.\n\nCheck out our [home page](https://matplotlib.org/) for more information.\n\n![image](https://matplotlib.org/_static/readme_preview.png)\n\nMatplotlib produces publication-quality figures in a variety of hardcopy\nformats and interactive environments across platforms. Matplotlib can be\nused in Python scripts, Python/IPython shells, web application servers,\nand various graphical user interface toolkits.\n\n## Install\n\nSee the [install\ndocumentation](https://matplotlib.org/stable/users/installing/index.html),\nwhich is generated from `/doc/install/index.rst`\n\n## Contribute\n\nYou've discovered a bug or something else you want to change — excellent!\n\nYou've worked out a way to fix it — even better!\n\nYou want to tell us about it — best of all!\n\nStart at the [contributing\nguide](https://matplotlib.org/devdocs/devel/contribute.html)!\n\n## Contact\n\n[Discourse](https://discourse.matplotlib.org/) is the discussion forum\nfor general questions and discussions and our recommended starting\npoint.\n\nOur active mailing lists (which are mirrored on Discourse) are:\n\n- [Users](https://mail.python.org/mailman/listinfo/matplotlib-users)\n mailing list: <matplotlib-users@python.org>\n- [Announcement](https://mail.python.org/mailman/listinfo/matplotlib-announce)\n mailing list: <matplotlib-announce@python.org>\n- [Development](https://mail.python.org/mailman/listinfo/matplotlib-devel)\n mailing list: <matplotlib-devel@python.org>\n\n[Gitter](https://gitter.im/matplotlib/matplotlib) is for coordinating\ndevelopment and asking questions directly related to contributing to\nmatplotlib.\n\n## Citing Matplotlib\n\nIf Matplotlib contributes to a project that leads to publication, please\nacknowledge this by citing Matplotlib.\n\n[A ready-made citation\nentry](https://matplotlib.org/stable/users/project/citing.html) is\navailable.\n
.venv\Lib\site-packages\matplotlib-3.10.3.dist-info\METADATA
METADATA
Other
11,268
0.8
0.027907
0.022857
awesome-app
849
2024-12-19T02:26:14.771639
Apache-2.0
false
9d9439c738506caf9b9382d4385ae3d3
__pycache__/pylab.cpython-313.pyc,,\nmatplotlib-3.10.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4\nmatplotlib-3.10.3.dist-info/LICENSE,sha256=WhqB6jAXKMi7opM9qDLAzWIina8giToCSrPVMkRGjbw,4830\nmatplotlib-3.10.3.dist-info/METADATA,sha256=qkW_YmnN-SloTyASHYvAbp53RWGAaintL1IWgoFW7XI,11268\nmatplotlib-3.10.3.dist-info/RECORD,,\nmatplotlib-3.10.3.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib-3.10.3.dist-info/WHEEL,sha256=suq8ARrxbiI7iLH3BgK-82uzxQ-4Hm-m8w01oCokrtA,85\nmatplotlib/__init__.py,sha256=bn_36OtZ4TCX21uj49jldcZ5VhbgOgpWGwQolyODom0,55633\nmatplotlib/__init__.pyi,sha256=s0YJ8fkGVioZL9bcBtyYgCq_MbY8LRrQUtmaD3XaIxQ,3439\nmatplotlib/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/__pycache__/_afm.cpython-313.pyc,,\nmatplotlib/__pycache__/_animation_data.cpython-313.pyc,,\nmatplotlib/__pycache__/_blocking_input.cpython-313.pyc,,\nmatplotlib/__pycache__/_cm.cpython-313.pyc,,\nmatplotlib/__pycache__/_cm_bivar.cpython-313.pyc,,\nmatplotlib/__pycache__/_cm_listed.cpython-313.pyc,,\nmatplotlib/__pycache__/_cm_multivar.cpython-313.pyc,,\nmatplotlib/__pycache__/_color_data.cpython-313.pyc,,\nmatplotlib/__pycache__/_constrained_layout.cpython-313.pyc,,\nmatplotlib/__pycache__/_docstring.cpython-313.pyc,,\nmatplotlib/__pycache__/_enums.cpython-313.pyc,,\nmatplotlib/__pycache__/_fontconfig_pattern.cpython-313.pyc,,\nmatplotlib/__pycache__/_internal_utils.cpython-313.pyc,,\nmatplotlib/__pycache__/_layoutgrid.cpython-313.pyc,,\nmatplotlib/__pycache__/_mathtext.cpython-313.pyc,,\nmatplotlib/__pycache__/_mathtext_data.cpython-313.pyc,,\nmatplotlib/__pycache__/_pylab_helpers.cpython-313.pyc,,\nmatplotlib/__pycache__/_text_helpers.cpython-313.pyc,,\nmatplotlib/__pycache__/_tight_bbox.cpython-313.pyc,,\nmatplotlib/__pycache__/_tight_layout.cpython-313.pyc,,\nmatplotlib/__pycache__/_type1font.cpython-313.pyc,,\nmatplotlib/__pycache__/_version.cpython-313.pyc,,\nmatplotlib/__pycache__/animation.cpython-313.pyc,,\nmatplotlib/__pycache__/artist.cpython-313.pyc,,\nmatplotlib/__pycache__/axis.cpython-313.pyc,,\nmatplotlib/__pycache__/backend_bases.cpython-313.pyc,,\nmatplotlib/__pycache__/backend_managers.cpython-313.pyc,,\nmatplotlib/__pycache__/backend_tools.cpython-313.pyc,,\nmatplotlib/__pycache__/bezier.cpython-313.pyc,,\nmatplotlib/__pycache__/category.cpython-313.pyc,,\nmatplotlib/__pycache__/cbook.cpython-313.pyc,,\nmatplotlib/__pycache__/cm.cpython-313.pyc,,\nmatplotlib/__pycache__/collections.cpython-313.pyc,,\nmatplotlib/__pycache__/colorbar.cpython-313.pyc,,\nmatplotlib/__pycache__/colorizer.cpython-313.pyc,,\nmatplotlib/__pycache__/colors.cpython-313.pyc,,\nmatplotlib/__pycache__/container.cpython-313.pyc,,\nmatplotlib/__pycache__/contour.cpython-313.pyc,,\nmatplotlib/__pycache__/dates.cpython-313.pyc,,\nmatplotlib/__pycache__/dviread.cpython-313.pyc,,\nmatplotlib/__pycache__/figure.cpython-313.pyc,,\nmatplotlib/__pycache__/font_manager.cpython-313.pyc,,\nmatplotlib/__pycache__/gridspec.cpython-313.pyc,,\nmatplotlib/__pycache__/hatch.cpython-313.pyc,,\nmatplotlib/__pycache__/image.cpython-313.pyc,,\nmatplotlib/__pycache__/inset.cpython-313.pyc,,\nmatplotlib/__pycache__/layout_engine.cpython-313.pyc,,\nmatplotlib/__pycache__/legend.cpython-313.pyc,,\nmatplotlib/__pycache__/legend_handler.cpython-313.pyc,,\nmatplotlib/__pycache__/lines.cpython-313.pyc,,\nmatplotlib/__pycache__/markers.cpython-313.pyc,,\nmatplotlib/__pycache__/mathtext.cpython-313.pyc,,\nmatplotlib/__pycache__/mlab.cpython-313.pyc,,\nmatplotlib/__pycache__/offsetbox.cpython-313.pyc,,\nmatplotlib/__pycache__/patches.cpython-313.pyc,,\nmatplotlib/__pycache__/path.cpython-313.pyc,,\nmatplotlib/__pycache__/patheffects.cpython-313.pyc,,\nmatplotlib/__pycache__/pylab.cpython-313.pyc,,\nmatplotlib/__pycache__/pyplot.cpython-313.pyc,,\nmatplotlib/__pycache__/quiver.cpython-313.pyc,,\nmatplotlib/__pycache__/rcsetup.cpython-313.pyc,,\nmatplotlib/__pycache__/sankey.cpython-313.pyc,,\nmatplotlib/__pycache__/scale.cpython-313.pyc,,\nmatplotlib/__pycache__/spines.cpython-313.pyc,,\nmatplotlib/__pycache__/stackplot.cpython-313.pyc,,\nmatplotlib/__pycache__/streamplot.cpython-313.pyc,,\nmatplotlib/__pycache__/table.cpython-313.pyc,,\nmatplotlib/__pycache__/texmanager.cpython-313.pyc,,\nmatplotlib/__pycache__/text.cpython-313.pyc,,\nmatplotlib/__pycache__/textpath.cpython-313.pyc,,\nmatplotlib/__pycache__/ticker.cpython-313.pyc,,\nmatplotlib/__pycache__/transforms.cpython-313.pyc,,\nmatplotlib/__pycache__/typing.cpython-313.pyc,,\nmatplotlib/__pycache__/units.cpython-313.pyc,,\nmatplotlib/__pycache__/widgets.cpython-313.pyc,,\nmatplotlib/_afm.py,sha256=cWe1Ib37T6ZyHbR6_hPuzAjotMmi32y-kDB-i28iyqE,16692\nmatplotlib/_animation_data.py,sha256=JJJbbc-fMdPjkbQ7ng9BHL5i91VTDHQVTtEdWOvWBAI,7986\nmatplotlib/_api/__init__.py,sha256=7Fs57FtnCmbyr_NwuGWe0EhfXOYrBw22iKMU9onGc_k,13799\nmatplotlib/_api/__init__.pyi,sha256=XNL-oGkk1MZPtSXk3rHlC3jLWZxsElmpNpOongKq8qA,2246\nmatplotlib/_api/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/_api/__pycache__/deprecation.cpython-313.pyc,,\nmatplotlib/_api/deprecation.py,sha256=XJxksSV8ukS8kSVmsGPS0zgv1ffFa8WNaRLAk31dmOM,20091\nmatplotlib/_api/deprecation.pyi,sha256=A8De57amX2GlZSrDYwVYCMxHFb8AsYGrH0k_bCxuJus,2217\nmatplotlib/_blocking_input.py,sha256=VHNsxvX2mTx_xBknd30MSicVlRXS4dCDe9hDctbV5rk,1224\nmatplotlib/_c_internal_utils.cp313-win_amd64.pyd,sha256=6zNZwUSuoJVg6lvBboZgRmKJmbPTxx_g5492YFzQoKI,138240\nmatplotlib/_c_internal_utils.pyi,sha256=Z3bLs9pMGXrmZjt-4_A-x4321bLP-B54xDbr4PIgUfc,377\nmatplotlib/_cm.py,sha256=PuYIAkUpz4u4aiUjvdV5njIfG0J_MQY9pM2Yz3j3KXs,68014\nmatplotlib/_cm_bivar.py,sha256=gpmKiSxsWoVGWIifseh0goND7Y7zTWJKsznr_QkEtDg,97461\nmatplotlib/_cm_listed.py,sha256=3a02mPUSnOsXkqRFNxKGwIvJCAKY5lezBUrqGcllnvk,135004\nmatplotlib/_cm_multivar.py,sha256=0UjNFW7Sytj1t31QD99ebfr-al7NmCpWhKUOyq9VzK8,6630\nmatplotlib/_color_data.py,sha256=k-wdTi6ArJxksqBfMT-7Uy2qWz8XX4Th5gsjf32CwmM,34780\nmatplotlib/_color_data.pyi,sha256=RdBRk01yuf3jYVlCwG351tIBCxehizkZMnKs9c8gnOw,170\nmatplotlib/_constrained_layout.py,sha256=Oci1LYPuos_Mb8YxTMTgfae10UqNV7fdD3qugm8NvNA,31403\nmatplotlib/_docstring.py,sha256=u9yJorJidI8k1W8S01SIMqNmh5VOMVc-AqyES66EEdk,4435\nmatplotlib/_docstring.pyi,sha256=6ze5DoqZaFy6BQ5Z8vtDiJwSOXhBcpZJlkM5enI9cuE,800\nmatplotlib/_enums.py,sha256=euD2sj2FIbQMzIPA4rCrII_y8RVzaMyEBKsSdBQaUb4,6175\nmatplotlib/_enums.pyi,sha256=K7j_kDwGOnx37CYnXhwfJ9NJBGeet45KvAj0om05RUs,326\nmatplotlib/_fontconfig_pattern.py,sha256=2livocARMbpys8tmicH6wlifcwcNoIstgruSY6DSAfk,4361\nmatplotlib/_image.cp313-win_amd64.pyd,sha256=DydEknWBmliVILhVW4e1FaVfyxRiHhoyDBTkaRFh9Ag,355840\nmatplotlib/_image.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/_internal_utils.py,sha256=nhK6LLWYW93fBcsFiO09JmqFj2rgHEsGYFOeaC7HRKw,2140\nmatplotlib/_layoutgrid.py,sha256=mFB9asZVol2aV9hLBpdntuG5x1isKUrajF-3TUhCgso,21676\nmatplotlib/_mathtext.py,sha256=JMhC1YX6U-Go409F3JsDXpao-6iP3H93XPXPiQESP_c,107842\nmatplotlib/_mathtext_data.py,sha256=9y__7jf3bzgOmD2lEYW3QpgsT-z9QDuiwRLVH7Wq8Pw,65067\nmatplotlib/_path.cp313-win_amd64.pyd,sha256=G4vXpZD6pVM5mVRD3tk21AFTA6D8aXdcEHCbOSMMk8I,292352\nmatplotlib/_path.pyi,sha256=yznyfzoUogH9vvi0vK68ga4Shlbrn5UBhAnLX8Ght1o,325\nmatplotlib/_pylab_helpers.py,sha256=pJERytHDmXo2VP3sH9Qw6NwJP0hefNPQMUXCVntnoHI,4307\nmatplotlib/_pylab_helpers.pyi,sha256=7OZKr-OL3ipVt1EDZ6e-tRwHASz-ijYfcIdlPczXhvQ,1012\nmatplotlib/_qhull.cp313-win_amd64.pyd,sha256=kPziz8Bbgda_WrAwt2wNA-scXgDiAhKDB_XeZsKzerY,528896\nmatplotlib/_qhull.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/_text_helpers.py,sha256=nz1pvEp8756PCrn6KIY2M6vVA-beYUNODvvf4NnGF0g,2538\nmatplotlib/_tight_bbox.py,sha256=ddJ5ViXulbPLocHr-RkWK27WJSuV2WXUx74jZyL0NOg,2787\nmatplotlib/_tight_layout.py,sha256=A3vZKBmxci7w35OO9lxgfUqrRKgTr-N_dUza0M05WxE,12675\nmatplotlib/_tri.cp313-win_amd64.pyd,sha256=dOqZnw4_TTaFOaqiPT-Snpn-EkwxIaeNjM7gNuHEwcI,283136\nmatplotlib/_tri.pyi,sha256=bFnu97pIlSboJT3ijQBw4YlZdlR1UzXYtI3DkEPVzeM,1429\nmatplotlib/_type1font.py,sha256=c_PXvyOFQ4YCRQJ23snWNkdEhuZ4k0JbLe55zaeoXfQ,28409\nmatplotlib/_version.py,sha256=g0JScnasC4-IPTQGVDcnvq-usEhkFWYJroH5FWeyAEI,19\nmatplotlib/animation.py,sha256=58vUSy_0M2Ve2GO5JcXsCHxCwr7TqaaMed-KNxN6Nno,73114\nmatplotlib/animation.pyi,sha256=C8Fgmswh4um-qYgqPZNBEpXVaefRXi6e026pYjonLHg,6566\nmatplotlib/artist.py,sha256=hfCGETRkHLfP-i4PmmNsc7syXyFTZi4HYvzyE8q9ak0,63293\nmatplotlib/artist.pyi,sha256=9sR0w8Kvi1GaFV6IbUzOw9LvQkPEB8FP_uRvUcI6_hg,7336\nmatplotlib/axes/__init__.py,sha256=aHE_zIjphIJkW4_1fyoFuEWTb7gCRewK5jNZWJHEdgM,351\nmatplotlib/axes/__init__.pyi,sha256=HP1z2v-PboHQS4dQjvJ7XjUjX-zw6taZRTTB9oVKwYE,303\nmatplotlib/axes/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/axes/__pycache__/_axes.cpython-313.pyc,,\nmatplotlib/axes/__pycache__/_base.cpython-313.pyc,,\nmatplotlib/axes/__pycache__/_secondary_axes.cpython-313.pyc,,\nmatplotlib/axes/_axes.py,sha256=I7TJgEB4v0DGYPVwN-2FkYHREinTLKB0VyHBVvQxi8s,353757\nmatplotlib/axes/_axes.pyi,sha256=fvlVj8AnKt52EOCgxJ5N_6_lb9n0gmXlOP7WGf2puNI,26116\nmatplotlib/axes/_base.py,sha256=oqAAqzpqcI8PCdM3AC-cYGvXtuUwgdBBiwf88y1qVuE,185372\nmatplotlib/axes/_base.pyi,sha256=CGHbNwWXY1wIT4bGqRBc0JJ9vUkYD29tkmbA3Ulw-co,17051\nmatplotlib/axes/_secondary_axes.py,sha256=Sew-LK57mDndUXb-9_VHzs5dJLQ6fh4nstZtfpZjui0,11887\nmatplotlib/axes/_secondary_axes.pyi,sha256=GtU55YzLNN7XHMRQcAmcAxcdcN-FzHw1RAJpOiTcZFk,1414\nmatplotlib/axis.py,sha256=bsPEyn4eMAnkTCbW4rxSm8ysPNYH2p_ur7RN_ZfZRps,104714\nmatplotlib/axis.pyi,sha256=UO1-oCeHyB7Mrxxnuo0Qys2u_k8e6qTmz4B6-rHrWdw,10181\nmatplotlib/backend_bases.py,sha256=-41KSWRkMNlTne6c5q-hOOn4vW6rdNtOtA1GIIuu7rY,131838\nmatplotlib/backend_bases.pyi,sha256=G6MqvmWf-y2SwhuhNF2qN8hmovxAkV1TJMbg4LzU9cM,16270\nmatplotlib/backend_managers.py,sha256=RQheCO_cQBlaWsYMbAmswu0UPKU7bmLTI5LEFgotklA,11795\nmatplotlib/backend_managers.pyi,sha256=agnuM0wiZRqSgqti2AgbKJijRLvEPNLOrSY8PEwLjFE,2253\nmatplotlib/backend_tools.py,sha256=eCx84l8JBYayju5Ry1LUFyKLIrdgxmGUTJw72VNP1yo,33186\nmatplotlib/backend_tools.pyi,sha256=lc3W6FcY0XhTb8Z8XAqQ6MBk_SV7WH41t7zjwAlQfmE,4122\nmatplotlib/backends/__init__.py,sha256=JowJe-tDrUBMNJTiJATgiEuACpgdxsKnRCYa-nC255A,206\nmatplotlib/backends/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/_backend_gtk.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/_backend_pdf_ps.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/_backend_tk.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_agg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_cairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_gtk3.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_gtk3agg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_gtk3cairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_gtk4.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_gtk4agg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_gtk4cairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_macosx.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_mixed.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_nbagg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_pdf.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_pgf.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_ps.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_qt.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_qt5.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_qt5agg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_qt5cairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_qtagg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_qtcairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_svg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_template.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_tkagg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_tkcairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_webagg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_webagg_core.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_wx.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_wxagg.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/backend_wxcairo.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/qt_compat.cpython-313.pyc,,\nmatplotlib/backends/__pycache__/registry.cpython-313.pyc,,\nmatplotlib/backends/_backend_agg.cp313-win_amd64.pyd,sha256=PZ866K30rll5Hf3SH9NQO2m-NEI4vFaBLw1yjIK-Dus,471040\nmatplotlib/backends/_backend_agg.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/backends/_backend_gtk.py,sha256=zNCmMOgjgZGfAIlxDU4ph02XMSSn0wIUoPQ4wsaeeAg,11274\nmatplotlib/backends/_backend_pdf_ps.py,sha256=M0kjQpMlBoAim6Pdw8u3FqUIoXz4UwRv4mSzXPJPI44,5968\nmatplotlib/backends/_backend_tk.py,sha256=q8bdB4u3vGROJsYNWQv2WmyrEy1zBavcjfmKI-MSKp8,43291\nmatplotlib/backends/_macosx.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/backends/_tkagg.cp313-win_amd64.pyd,sha256=Z-b3kGMwKwBmVaLzeFww4BbZthxiT3-ozaFoFtQWN6g,152576\nmatplotlib/backends/_tkagg.pyi,sha256=1yKnYKSgNFesrb0ZI5RQCyTO4zONgHW5MrJ9vq4HzyI,379\nmatplotlib/backends/backend_agg.py,sha256=Py_rXRbDTP0ZSrNB2O5Tmh5V8G5V9ViXH_YV5PTX9xw,19888\nmatplotlib/backends/backend_cairo.py,sha256=Ah5M85Ppa8zYGOtLOizW0gzltjs3b4nD56qFeQR795U,18618\nmatplotlib/backends/backend_gtk3.py,sha256=ZHf4CKhDGJvl8J3p6Sx_ZJBTgVetZBbaKWfnXKvNe0c,22277\nmatplotlib/backends/backend_gtk3agg.py,sha256=aFJw05L5V-FyFSj_20l_FuC5piPf8fhKzft_m1NMhYc,2463\nmatplotlib/backends/backend_gtk3cairo.py,sha256=zPsJzVm750if2LiQ9ybzsbX0rBhkP05XVvR9Lhz65so,1392\nmatplotlib/backends/backend_gtk4.py,sha256=3KWHdU9UghUjEt2v3wgQNm7Yr-DrLVBYWcKNaoyfIYc,23026\nmatplotlib/backends/backend_gtk4agg.py,sha256=00i3qpIt9Tcf_S74GOWbeckiPlfVJoQ2pBbhXDMthF0,1262\nmatplotlib/backends/backend_gtk4cairo.py,sha256=sqWm3WgfNO8EsBjqzsD4U4cAc0f4q5SufYx7ZJacDf0,1125\nmatplotlib/backends/backend_macosx.py,sha256=Gjbu1MKXIZpCM_luMG6U7qDgwotcGSegCvYw-NNWxeQ,7397\nmatplotlib/backends/backend_mixed.py,sha256=Gf_2BDjy94FZRXALm0X3xRpK_1l8bZGSYCqnrSjrjME,4696\nmatplotlib/backends/backend_nbagg.py,sha256=Au9RHfRufpI0ngT4R0K0CUVtAMFi9Bg-YhDunlj_Lko,8000\nmatplotlib/backends/backend_pdf.py,sha256=RCpic_1TWngt6ZC4YfscnSXXTndAXWt9qFl0v1aLiiM,105317\nmatplotlib/backends/backend_pgf.py,sha256=GT7UHkAtHtnZcyV0GxHtUL9TTre9dji7Q6qexyi4AUU,39567\nmatplotlib/backends/backend_ps.py,sha256=JRZZ6hsPcCfZmb-HczqyBulgow15yvoaHQe3Zcl1Zd4,51991\nmatplotlib/backends/backend_qt.py,sha256=wEkQo5b5BQ6uzAXzLWIKBI1gINZx6-Y7h0jTJ3kkuMI,41541\nmatplotlib/backends/backend_qt5.py,sha256=kzfoo2ksEGsiWAa2LGtZYzKvfzqJJWyGOohohcRAu1g,787\nmatplotlib/backends/backend_qt5agg.py,sha256=Vh7H8kqWH4X8a3VX2XZ2Vze9srwJavkNHAZxdJUz_bk,352\nmatplotlib/backends/backend_qt5cairo.py,sha256=Go2Y0GVkXh1xh6x4F255_e5Xbwwws-OiD1Fc0805E78,292\nmatplotlib/backends/backend_qtagg.py,sha256=ZjPtp5wR6tZGjbngPXRdVXYRhiPPrc5C0q2DmtdRkpY,3413\nmatplotlib/backends/backend_qtcairo.py,sha256=e3SUG50VGqo68eS_8ebTCVQPa4AaxLxuo1JiWX4TIWg,1770\nmatplotlib/backends/backend_svg.py,sha256=RQvPE9pR0xSu55NIMajX1WBqmmXbUWWwdWr2qMG-63k,51000\nmatplotlib/backends/backend_template.py,sha256=qhWvXGiPeO2jvH61L3NCRYLReo--d4WJrQYanIaEmiE,8012\nmatplotlib/backends/backend_tkagg.py,sha256=z9gB16fq2d-DUNpbeSDDLWaYmc0Jz3cDqNlBKhnQg0c,592\nmatplotlib/backends/backend_tkcairo.py,sha256=JaGGXh8Y5FwVZtgryIucN941Olf_Pn6f4Re7Vuxl1-c,845\nmatplotlib/backends/backend_webagg.py,sha256=YzNscpsID8yu0XYO3NXiZLMPZnDKMAKdG_TO2Ya3g4k,11022\nmatplotlib/backends/backend_webagg_core.py,sha256=RZisxLS_pocuBRr5_lqBnF91flQA5upI8PiP8-Zitl0,18748\nmatplotlib/backends/backend_wx.py,sha256=Y3IM1DEtPTeXOqkyLIGmNuKqDReyHMTtHzqTuwdfPhM,51296\nmatplotlib/backends/backend_wxagg.py,sha256=tzcwYyW34j4LPfHm9uhuHwepwZIcspi3y8oPC8FJkdk,1468\nmatplotlib/backends/backend_wxcairo.py,sha256=TK-m3S0c1WipfKE2IpIPNeE4hoXPjfMvnWAzHpCXpFs,848\nmatplotlib/backends/qt_compat.py,sha256=t_4aD4rg5maItXABLtVG6JIfuQwZnHwhMcjtz6AUwQs,5346\nmatplotlib/backends/qt_editor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/backends/qt_editor/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/backends/qt_editor/__pycache__/_formlayout.cpython-313.pyc,,\nmatplotlib/backends/qt_editor/__pycache__/figureoptions.cpython-313.pyc,,\nmatplotlib/backends/qt_editor/_formlayout.py,sha256=QmqqqLO6waqeSGOKjDNUwjvon53Z7yqil5AfqfftDWY,20953\nmatplotlib/backends/qt_editor/figureoptions.py,sha256=ljd7fCBiE0kk2ATNTaB5Dg8U6Gn7Lz4Vhi3XX-VbXeE,9851\nmatplotlib/backends/registry.py,sha256=M2BHhBKbUJ8E2B2QExfVf8NbAK4ZFhJtmKRelBZZDh4,15480\nmatplotlib/backends/web_backend/all_figures.html,sha256=44Y-GvIJbNlqQaKSW3kwVKpTxBSG1WsdYz3ZmYHlUsA,1753\nmatplotlib/backends/web_backend/css/boilerplate.css,sha256=qui16QXRnQFNJDbcMasfH6KtN9hLjv8883U9cJmsVCE,2310\nmatplotlib/backends/web_backend/css/fbm.css,sha256=wa4vNkNv7fQ_TufjJjecFZEzPMR6W8x6uXJga_wQILw,1456\nmatplotlib/backends/web_backend/css/mpl.css,sha256=ruca_aA5kNnP-MZmLkriu8teVP1nIgwcFEpoB16j8Z4,1611\nmatplotlib/backends/web_backend/css/page.css,sha256=ca3nO3TaPw7865PN5SlGJBTc2H3rBXQCMaFPywX29y4,1623\nmatplotlib/backends/web_backend/ipython_inline_figure.html,sha256=wgSxUh3xpPAxOnZgSMnrhDM5hYncOfWRGgaCUezvedY,1311\nmatplotlib/backends/web_backend/js/mpl.js,sha256=YhJ_95_irTNrwlnDMRWGBebRb0DAhVBzj_96fL9Dsqs,24408\nmatplotlib/backends/web_backend/js/mpl_tornado.js,sha256=Zs2Uzs7YUilG765nYvanCo-IK8HkHDtIum1KAq6bQ_w,302\nmatplotlib/backends/web_backend/js/nbagg_mpl.js,sha256=F-By4ZjOSmwpNAkxUUxUk35qCjGlf0B28Z0aOyfpxDM,9514\nmatplotlib/backends/web_backend/single_figure.html,sha256=wEBwF602JLHErBUEXiS6jXqmxYAIzHpa3MMFrnev6rs,1357\nmatplotlib/bezier.py,sha256=ahJ1BRJoTbcxJoNmF1mCYc96mWs5jSM4DOK58jYaXkU,19049\nmatplotlib/bezier.pyi,sha256=itubQt_U1IKnQ508bhy6J8LSpaspvZIeOmJqg7JvOmU,2586\nmatplotlib/category.py,sha256=UsZ8rbADAH96YfpjD-N1DLTcS_cQwlszIIQ2ZRaiWm4,7377\nmatplotlib/cbook.py,sha256=HAr8_jGa7m2Dg87TIiKqrVC-IrtbLPkiCK3AMPBOPLw,80161\nmatplotlib/cbook.pyi,sha256=YkPZz_bsTYQJQ_wKx-qbsJYLhy2t2nCyvLNjJyiRtpw,6037\nmatplotlib/cm.py,sha256=5xav-BvJ4pWSVdvGql4oYc4EpA-R6OuUP5xjrZCMKvg,10350\nmatplotlib/cm.pyi,sha256=Ot5j2zDHYTra4kKuTwxYp7X5TsNwg_cJuYa7BxmQz-A,939\nmatplotlib/collections.py,sha256=5AcX3lTsKD1ObSOkLr-irzYPfdJxsNrgw5dAD886vCE,96311\nmatplotlib/collections.pyi,sha256=uZ4fPdq34oghdEtS1UkY7P0oOE2oPUzvS0Cr09yktaQ,10775\nmatplotlib/colorbar.py,sha256=LVhceZdbo6km3N6d8gyJGDnpmE2xDgsPLo3CE7PzgCQ,60620\nmatplotlib/colorbar.pyi,sha256=C1NzjMWFKm01rPUUr15Yjz1WB0pGakJQeatJO7G0mNs,4966\nmatplotlib/colorizer.py,sha256=RzE0zjqB6elpketKidy6n-RRDbYF98speEIOIMfIFb4,25180\nmatplotlib/colorizer.pyi,sha256=B_5-rEvNo4DblSifLodf3OVVEc3bTGsIYqqaQdU_4Tw,3308\nmatplotlib/colors.py,sha256=h1YV59y4WvstOPC0x8eZzwHYItal7VjjVcyVS3niaSM,137303\nmatplotlib/colors.pyi,sha256=XhCi3MtgSozOY5FATtPUHyKO4xMrvi7TvbCAl714Uxc,14908\nmatplotlib/container.py,sha256=Y6v4j79gMk8QDYfrdOqbbJHH0BoOIO9enz4dtlaBSJU,4565\nmatplotlib/container.pyi,sha256=DdthHVj1-bQQV3VcpMD1uIPLXVUKyKhWMXy8yCniK1I,1805\nmatplotlib/contour.py,sha256=wpMtrMZEiDYPRuFbZ592HvQqn4NOBySfM17detKoenY,68391\nmatplotlib/contour.pyi,sha256=X4DSH0u1YFUvKxuoAv8YbmVOJTJ-wbHig4lznzhsI0U,5300\nmatplotlib/dates.py,sha256=xfcFY3g3AsW9isnEIKFGj4gXq0Xeoxox_3fxNCDQ01c,66306\nmatplotlib/dviread.py,sha256=BqQg0fqXD_TmABJPSWDC-H2azt7B53NfOE1SC6mbXiI,42590\nmatplotlib/dviread.pyi,sha256=5fps3GiPf1ibKY1TH6__kNEiJ9xhpVgzgait6jo09Hc,2139\nmatplotlib/figure.py,sha256=CNPMl0QCxhr3h3WGcd271pE4Xtv4rapRWuUSFSNJSuc,141862\nmatplotlib/figure.pyi,sha256=HWw1H_xICfG748BpSP32SVgF_mATqEzOdDZ87aY8X-A,14738\nmatplotlib/font_manager.py,sha256=tSpOlZqiNUdIn3gQCFN_-nOLZ08WXBqj_unP6o1JyIw,57651\nmatplotlib/font_manager.pyi,sha256=Jse1IshOdjhXHdjcvTxtos3rgsuECbRJzc264A-ZGus,5052\nmatplotlib/ft2font.cp313-win_amd64.pyd,sha256=bSKcH5UpTUfHJ-guFwfl5855zrUhLa_oIrwCpm8Lgfs,924672\nmatplotlib/ft2font.pyi,sha256=yuDEfdw-7VyFuAHts-sMRm4VKV7IxYresBxEQgNOaPM,9253\nmatplotlib/gridspec.py,sha256=s6RkXEk4ORWsMHjXkK98ZvosZ5D-qgenVNk0hIvMwOw,29786\nmatplotlib/gridspec.pyi,sha256=3IQi_Q5KdwyPT_J_FWcngJ7iUOOCH4PSm42USm16Ofg,5099\nmatplotlib/hatch.py,sha256=tfEM0DQxyLkUE87lHduMNlE55GKINtAZo4Y_YsAmSJo,7453\nmatplotlib/hatch.pyi,sha256=OEFkNe8TgrBli_MDMW99Tvhr44S4ySPaYQomjVXpUUA,2098\nmatplotlib/image.py,sha256=MLFg06J2xllm1tmgDnlLYw8gTy7__NGnkf4SZP-3mSs,69765\nmatplotlib/image.pyi,sha256=R88aGGu6wP0lFKRudaM7iNxGgq4kh9uX9QRaZSorTLQ,7066\nmatplotlib/inset.py,sha256=fJV8VMMY07_97iJR3_RO892WAKE7myfV_Gqg-qK99vg,10154\nmatplotlib/inset.pyi,sha256=c-IVW14bpqb3qu7bz0EabvNXJnZwJAXEXoQoIcrL8ns,968\nmatplotlib/layout_engine.py,sha256=mwRNh13mIQ-wpjQVgBaB_LWKN1AiQTWldg-X9nLmVok,11433\nmatplotlib/layout_engine.pyi,sha256=9cKFTFPCvwmKIygTUvrvOq1iWnFYme9Shniiv2QbC74,1788\nmatplotlib/legend.py,sha256=sCnDN8KNo6mYcYqhdQynNUStFvrWbMMGtv_rxgua5Qc,55311\nmatplotlib/legend.pyi,sha256=hn-MNF3SPHtSUqIhwVXTebU_Nzk_wIh5iKgf7AEAZRg,5364\nmatplotlib/legend_handler.py,sha256=lW8sQxdFW4-Bup0JUZvlpiIrAvczeNm6ih5BlCrdQnM,29931\nmatplotlib/legend_handler.pyi,sha256=3VEfeioGIAxhd3mhg4PXETZjCKf4OlXL0jz1MAFGtos,7655\nmatplotlib/lines.py,sha256=BG3xhTuzYDFjzf-k5CcQc_V7W4HlQl4CL7RCQQz0EC8,57920\nmatplotlib/lines.pyi,sha256=3tG7tD8GZ8YPphw4nmkgS9SfdLV8icW36bv61jb9RlU,6081\nmatplotlib/markers.py,sha256=g6ukerZ5n_sD_Enk0eJA4kkTvOOp8AfSGBq60PHot-E,33708\nmatplotlib/markers.pyi,sha256=FFFBsvilnbd8-5L04U70kfVoyBwc18w_fZ6DysTj9p0,1678\nmatplotlib/mathtext.py,sha256=yTlpUfnKxzrFl7XNjyuC-xMBBnxUufU6GVwQyhQAI2o,5104\nmatplotlib/mathtext.pyi,sha256=RCVxYGQ_CJ6wC7v_HkqoouU2PhtcvlJ1ffIyxzAC-so,1045\nmatplotlib/mlab.py,sha256=T71p4x0KJNVGrwUuoDdgcjWQucIQTuVrocOC98Zdwsc,30210\nmatplotlib/mlab.pyi,sha256=mkR7wbJS9eCQfCFsUWoXnqrAy0kcE3cVqpFZCeOGC_Q,3583\nmatplotlib/mpl-data/fonts/afm/cmex10.afm,sha256=blR3ERmrVBV5XKkAnDCj4NMeYVgzH7cXtJ3u59u9GuE,12070\nmatplotlib/mpl-data/fonts/afm/cmmi10.afm,sha256=5qwEOpedEo76bDUahyuuF1q0cD84tRrX-VQ4p3MlfBo,10416\nmatplotlib/mpl-data/fonts/afm/cmr10.afm,sha256=WDvgC_D3UkGJg9u-J0U6RaT02lF4oz3lQxHtg1r3lYw,10101\nmatplotlib/mpl-data/fonts/afm/cmsy10.afm,sha256=AbmzvCVWBceHRfmRfeJ9E6xzOQTFLk0U1zDfpf3_MaM,8295\nmatplotlib/mpl-data/fonts/afm/cmtt10.afm,sha256=4ji7_mTpeWMa93o_UHBWPKCnqsBfhJJNllat1lJArP4,6501\nmatplotlib/mpl-data/fonts/afm/pagd8a.afm,sha256=jjFrigwkTpYLqa26cpzZvKQNBo-PuF4bmDVqaM4pMWw,17183\nmatplotlib/mpl-data/fonts/afm/pagdo8a.afm,sha256=sgNQdeYyx8J-itGw9h31y95aMBiTCRvmNSPTXwwS7xg,17255\nmatplotlib/mpl-data/fonts/afm/pagk8a.afm,sha256=ZUtfHPloNqcvGMHMxaKDSlshhOcjwheUx143RwpGdIU,17241\nmatplotlib/mpl-data/fonts/afm/pagko8a.afm,sha256=Yj1wBg6Jsqqz1KBfhRoJ3ACR-CMQol8Fj_ZM5NZ1gDk,17346\nmatplotlib/mpl-data/fonts/afm/pbkd8a.afm,sha256=Zl5o6J_di9Y5j2EpHtjew-_sfg7-WoeVmO9PzOYSTUc,15157\nmatplotlib/mpl-data/fonts/afm/pbkdi8a.afm,sha256=JAOno930iTyfZILMf11vWtiaTgrJcPpP6FRTRhEMMD4,15278\nmatplotlib/mpl-data/fonts/afm/pbkl8a.afm,sha256=UJqJjOJ6xQDgDBLX157mKpohIJFVmHM-N6x2-DiGv14,15000\nmatplotlib/mpl-data/fonts/afm/pbkli8a.afm,sha256=AWislZ2hDbs0ox_qOWREugsbS8_8lpL48LPMR40qpi0,15181\nmatplotlib/mpl-data/fonts/afm/pcrb8a.afm,sha256=6j1TS2Uc7DWSc-8l42TGDc1u0Fg8JspeWfxFayjUwi8,15352\nmatplotlib/mpl-data/fonts/afm/pcrbo8a.afm,sha256=smg3mjl9QaBDtQIt06ko5GvaxLsO9QtTvYANuE5hfG0,15422\nmatplotlib/mpl-data/fonts/afm/pcrr8a.afm,sha256=7nxFr0Ehz4E5KG_zSE5SZOhxRH8MyfnCbw-7x5wu7tw,15339\nmatplotlib/mpl-data/fonts/afm/pcrro8a.afm,sha256=NKEz7XtdFkh9cA8MvY-S3UOZlV2Y_J3tMEWFFxj7QSg,15443\nmatplotlib/mpl-data/fonts/afm/phvb8a.afm,sha256=NAx4M4HjL7vANCJbc-tk04Vkol-T0oaXeQ3T2h-XUvM,17155\nmatplotlib/mpl-data/fonts/afm/phvb8an.afm,sha256=8e_myD-AQkNF7q9XNLb2m76_lX2TUr3a5wog_LIE1sk,17086\nmatplotlib/mpl-data/fonts/afm/phvbo8a.afm,sha256=8fkBRmJ-SWY2YrBg8fFyjJyrJp8daQ6JPO6LvhM8xPI,17230\nmatplotlib/mpl-data/fonts/afm/phvbo8an.afm,sha256=aeVRvV4r15BBvxuRJ0MG8ZHuH2HViuIiCYkvuapmkmM,17195\nmatplotlib/mpl-data/fonts/afm/phvl8a.afm,sha256=IyMYM-bgl-gI6rG0EuZZ2OLzlxJfGeSh8xqsh0t-eJQ,15627\nmatplotlib/mpl-data/fonts/afm/phvlo8a.afm,sha256=s12C-eNnIDHJ_UVbuiprjxBjCiHIbS3Y8ORTC-qTpuI,15729\nmatplotlib/mpl-data/fonts/afm/phvr8a.afm,sha256=Kt8KaRidts89EBIK29X2JomDUEDxvroeaJz_RNTi6r4,17839\nmatplotlib/mpl-data/fonts/afm/phvr8an.afm,sha256=lL5fAHTRwODl-sB5mH7IfsD1tnnea4yRUK-_Ca2bQHM,17781\nmatplotlib/mpl-data/fonts/afm/phvro8a.afm,sha256=3KqK3eejiR4hIFBUynuSX_4lMdE2V2T58xOF8lX-fwc,17919\nmatplotlib/mpl-data/fonts/afm/phvro8an.afm,sha256=Vx9rRf3YfasMY7tz-njSxz67xHKk-fNkN7yBi0X2IP0,17877\nmatplotlib/mpl-data/fonts/afm/pncb8a.afm,sha256=aoXepTcDQtQa_mspflMJkEFKefzXHoyjz6ioJVI0YNc,16028\nmatplotlib/mpl-data/fonts/afm/pncbi8a.afm,sha256=pCWW1MYgy0EmvwaYsaYJaAI_LfrsKmDANHu7Pk0RaiU,17496\nmatplotlib/mpl-data/fonts/afm/pncr8a.afm,sha256=0CIB2BLe9r-6_Wl5ObRTTf98UOrezmGQ8ZOuBX5kLks,16665\nmatplotlib/mpl-data/fonts/afm/pncri8a.afm,sha256=5R-pLZOnaHNG8pjV6MP3Ai-d2OTQYR_cYCb5zQhzfSU,16920\nmatplotlib/mpl-data/fonts/afm/pplb8a.afm,sha256=3EzUbNnXr5Ft5eFLY00W9oWu59rHORgDXUuJaOoKN58,15662\nmatplotlib/mpl-data/fonts/afm/pplbi8a.afm,sha256=X_9tVspvrcMer3OS8qvdwjFFqpAXYZneyCL2NHA902g,15810\nmatplotlib/mpl-data/fonts/afm/pplr8a.afm,sha256=ijMb497FDJ9nVdVMb21F7W3-cu9sb_9nF0oriFpSn8k,15752\nmatplotlib/mpl-data/fonts/afm/pplri8a.afm,sha256=8KITbarcUUMi_hdoRLLmNHtlqs0TtOSKqtPFft7X5nY,15733\nmatplotlib/mpl-data/fonts/afm/psyr.afm,sha256=Iyt8ajE4B2Tm34oBj2pKtctIf9kPfq05suQefq8p3Ro,9644\nmatplotlib/mpl-data/fonts/afm/ptmb8a.afm,sha256=bL1fA1NC4_nW14Zrnxz4nHlXJb4dzELJPvodqKnYeMg,17983\nmatplotlib/mpl-data/fonts/afm/ptmbi8a.afm,sha256=-_Ui6XlKaFTHEnkoS_-1GtIr5VtGa3gFQ2ezLOYHs08,18070\nmatplotlib/mpl-data/fonts/afm/ptmr8a.afm,sha256=IEcsWcmzJyjCwkgsw4o6hIMmzlyXUglJat9s1PZNnEU,17942\nmatplotlib/mpl-data/fonts/afm/ptmri8a.afm,sha256=49fQMg5fIGguZ7rgc_2styMK55Pv5bPTs7wCzqpcGpk,18068\nmatplotlib/mpl-data/fonts/afm/putb8a.afm,sha256=qMaHTdpkrNL-m4DWhjpxJCSmgYkCv1qIzLlFfM0rl40,21532\nmatplotlib/mpl-data/fonts/afm/putbi8a.afm,sha256=g7AVJyiTxeMpNk_1cSfmYgM09uNUfPlZyWGv3D1vcAk,21931\nmatplotlib/mpl-data/fonts/afm/putr8a.afm,sha256=XYmNC5GQgSVAZKTIYdYeNksE6znNm9GF_0SmQlriqx0,22148\nmatplotlib/mpl-data/fonts/afm/putri8a.afm,sha256=i7fVe-iLyLtQxCfAa4IxdxH-ufcHmMk7hbCGG5TxAY4,21891\nmatplotlib/mpl-data/fonts/afm/pzcmi8a.afm,sha256=wyuoIWEZOcoXrSl1tPzLkEahik7kGi91JJj-tkFRG4A,16250\nmatplotlib/mpl-data/fonts/afm/pzdr.afm,sha256=MyjLAnzKYRdQBfof1W3k_hf30MvqOkqL__G22mQ5xww,9467\nmatplotlib/mpl-data/fonts/pdfcorefonts/Courier-Bold.afm,sha256=sIDDI-B82VZ3C0mI_mHFITCZ7PVn37AIYMv1CrHX4sE,15333\nmatplotlib/mpl-data/fonts/pdfcorefonts/Courier-BoldOblique.afm,sha256=zg61QobD3YU9UBfCXmvmhBNaFKno-xj8sY0b2RpgfLw,15399\nmatplotlib/mpl-data/fonts/pdfcorefonts/Courier-Oblique.afm,sha256=vRQm5j1sTUN4hicT1PcVZ9P9DTTUHhEzfPXqUUzVZhE,15441\nmatplotlib/mpl-data/fonts/pdfcorefonts/Courier.afm,sha256=Mdcq2teZEBJrIqVXnsnhee7oZnTs6-P8_292kWGTrw4,15335\nmatplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-Bold.afm,sha256=i2l4gcjuYXoXf28uK7yIVwuf0rnw6J7PwPVQeHj5iPw,69269\nmatplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-BoldOblique.afm,sha256=Um5O6qK11DXLt8uj_0IoWkc84TKqHK3bObSKUswQqvY,69365\nmatplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-Oblique.afm,sha256=hVYDg2b52kqtbVeCzmiv25bW1yYdpkZS-LXlGREN2Rs,74392\nmatplotlib/mpl-data/fonts/pdfcorefonts/Helvetica.afm,sha256=23cvKDD7bQAJB3kdjSahJSTZaUOppznlIO6FXGslyW8,74292\nmatplotlib/mpl-data/fonts/pdfcorefonts/Symbol.afm,sha256=P5UaoXr4y0qh4SiMa5uqijDT6ZDr2-jPmj1ayry593E,9740\nmatplotlib/mpl-data/fonts/pdfcorefonts/Times-Bold.afm,sha256=cQTmr2LFPwKQE_sGQageMcmFicjye16mKJslsJLHQyE,64251\nmatplotlib/mpl-data/fonts/pdfcorefonts/Times-BoldItalic.afm,sha256=pzWOdycm6RqocBWgAVY5Jq0z3Fp7LuqWgLNMx4q6OFw,59642\nmatplotlib/mpl-data/fonts/pdfcorefonts/Times-Italic.afm,sha256=bK5puSMpGT_YUILwyJrXoxjfj7XJOdfv5TQ_iKsJRzw,66328\nmatplotlib/mpl-data/fonts/pdfcorefonts/Times-Roman.afm,sha256=hhNrUnpazuDDKD1WpraPxqPWCYLrO7D7bMVOg-zI13o,60460\nmatplotlib/mpl-data/fonts/pdfcorefonts/ZapfDingbats.afm,sha256=ZuOmt9GcKofjdOq8kqhPhtAIhOwkL2rTJTmZxAjFakA,9527\nmatplotlib/mpl-data/fonts/pdfcorefonts/readme.txt,sha256=MRv8ppSITYYAb7lt5EOw9DWWNZIblfxsFhu5TQE7cpI,828\nmatplotlib/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf,sha256=sYS4njwQdfIva3FXW2_CDUlys8_TsjMiym_Vltyu8Wc,704128\nmatplotlib/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf,sha256=bt8CgxYBhq9FHL7nHnuEXy5Mq_Jku5ks5mjIPCVGXm8,641720\nmatplotlib/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf,sha256=zN90s1DxH9PdV3TeUOXmNGoaXaH1t9X7g1kGZel6UhM,633840\nmatplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf,sha256=P99pyr8GBJ6nCgC1kZNA4s4ebQKwzDxLRPtoAb0eDSI,756072\nmatplotlib/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf,sha256=ggmdz7paqGjN_CdFGYlSX-MpL3N_s8ngMozpzvWWUvY,25712\nmatplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf,sha256=uq2ppRcv4giGJRr_BDP8OEYZEtXa8HKH577lZiCo2pY,331536\nmatplotlib/mpl-data/fonts/ttf/DejaVuSansMono-BoldOblique.ttf,sha256=ppCBwVx2yCfgonpaf1x0thNchDSZlVSV_6jCDTqYKIs,253116\nmatplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf,sha256=KAUoE_enCfyJ9S0ZLcmV708P3Fw9e3OknWhJsZFtDNA,251472\nmatplotlib/mpl-data/fonts/ttf/DejaVuSansMono.ttf,sha256=YC7Ia4lIz82VZIL-ZPlMNshndwFJ7y95HUYT9EO87LM,340240\nmatplotlib/mpl-data/fonts/ttf/DejaVuSerif-Bold.ttf,sha256=w3U_Lta8Zz8VhG3EWt2-s7nIcvMvsY_VOiHxvvHtdnY,355692\nmatplotlib/mpl-data/fonts/ttf/DejaVuSerif-BoldItalic.ttf,sha256=2T7-x6nS6CZ2jRou6VuVhw4V4pWZqE80hK8d4c7C4YE,347064\nmatplotlib/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf,sha256=PnmU-8VPoQzjNSpC1Uj63X2crbacsRCbydlg9trFfwQ,345612\nmatplotlib/mpl-data/fonts/ttf/DejaVuSerif.ttf,sha256=EHJElW6ZYrnpb6zNxVGCXgrgiYrhNzcTPhuSGi_TX_o,379740\nmatplotlib/mpl-data/fonts/ttf/DejaVuSerifDisplay.ttf,sha256=KRTzLkfHd8J75Wd6-ufbTeefnkXeb8kJfZlJwjwU99U,14300\nmatplotlib/mpl-data/fonts/ttf/LICENSE_DEJAVU,sha256=11k43sCY8G8Kw8AIUwZdlPAgvhw8Yu8dwpdboVtNmw4,4816\nmatplotlib/mpl-data/fonts/ttf/LICENSE_STIX,sha256=urPTHf7wf0g2JPL2XycR52BluOcnMnixwHHt4QQcmVk,5476\nmatplotlib/mpl-data/fonts/ttf/STIXGeneral.ttf,sha256=FnN4Ax4t3cYhbWeBnJJg6aBv_ExHjk4jy5im_USxg8I,448228\nmatplotlib/mpl-data/fonts/ttf/STIXGeneralBol.ttf,sha256=6FM9xwg_o0a9oZM9YOpKg7Z9CUW86vGzVB-CtKDixqA,237360\nmatplotlib/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf,sha256=mHiP1LpI37sr0CbA4gokeosGxzcoeWKLemuw1bsJc2w,181152\nmatplotlib/mpl-data/fonts/ttf/STIXGeneralItalic.ttf,sha256=bPyzM9IrfDxiO9_UAXTxTIXD1nMcphZsHtyAFA6uhSc,175040\nmatplotlib/mpl-data/fonts/ttf/STIXNonUni.ttf,sha256=Ulb34CEzWsSFTRgPDovxmJZOwvyCAXYnbhaqvGU3u1c,59108\nmatplotlib/mpl-data/fonts/ttf/STIXNonUniBol.ttf,sha256=XRBqW3jR_8MBdFU0ObhiV7-kXwiBIMs7QVClHcT5tgs,30512\nmatplotlib/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf,sha256=pb22DnbDf2yQqizotc3wBDqFGC_g27YcCGJivH9-Le8,41272\nmatplotlib/mpl-data/fonts/ttf/STIXNonUniIta.ttf,sha256=BMr9pWiBv2YIZdq04X4c3CgL6NPLUPrl64aV1N4w9Ug,46752\nmatplotlib/mpl-data/fonts/ttf/STIXSizFiveSymReg.ttf,sha256=wYuH1gYUpCuusqItRH5kf9p_s6mUD-9X3L5RvRtKSxs,13656\nmatplotlib/mpl-data/fonts/ttf/STIXSizFourSymBol.ttf,sha256=yNdvjUoSmsZCULmD7SVq9HabndG9P4dPhboL1JpAf0s,12228\nmatplotlib/mpl-data/fonts/ttf/STIXSizFourSymReg.ttf,sha256=-9xVMYL4_1rcO8FiCKrCfR4PaSmKtA42ddLGqwtei1w,15972\nmatplotlib/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf,sha256=cYexyo8rZcdqMlpa9fNF5a2IoXLUTZuIvh0JD1Qp0i4,12556\nmatplotlib/mpl-data/fonts/ttf/STIXSizOneSymReg.ttf,sha256=0lbHzpndzJmO8S42mlkhsz5NbvJLQCaH5Mcc7QZRDzc,19760\nmatplotlib/mpl-data/fonts/ttf/STIXSizThreeSymBol.ttf,sha256=3eBc-VtYbhQU3BnxiypfO6eAzEu8BdDvtIJSFbkS2oY,12192\nmatplotlib/mpl-data/fonts/ttf/STIXSizThreeSymReg.ttf,sha256=XFSKCptbESM8uxHtUFSAV2cybwxhSjd8dWVByq6f3w0,15836\nmatplotlib/mpl-data/fonts/ttf/STIXSizTwoSymBol.ttf,sha256=MUCYHrA0ZqFiSE_PjIGlJZgMuv79aUgQqE7Dtu3kuo0,12116\nmatplotlib/mpl-data/fonts/ttf/STIXSizTwoSymReg.ttf,sha256=_sdxDuEwBDtADpu9CyIXQxV7sIqA2TZVBCUiUjq5UCk,15704\nmatplotlib/mpl-data/fonts/ttf/cmb10.ttf,sha256=B0SXtQxD6ldZcYFZH5iT04_BKofpUQT1ZX_CSB9hojo,25680\nmatplotlib/mpl-data/fonts/ttf/cmex10.ttf,sha256=ryjwwXByOsd2pxv6WVrKCemNFa5cPVTOGa_VYZyWqQU,21092\nmatplotlib/mpl-data/fonts/ttf/cmmi10.ttf,sha256=MJKWW4gR_WpnZXmWZIRRgfwd0TMLk3-RWAjEhdMWI00,32560\nmatplotlib/mpl-data/fonts/ttf/cmr10.ttf,sha256=Tdl2GwWMAJ25shRfVe5mF9CTwnPdPWxbPkP_YRD6m_Y,26348\nmatplotlib/mpl-data/fonts/ttf/cmss10.ttf,sha256=ffkag9BbLkcexjjLC0NaNgo8eSsJ_EKn2mfpHy55EVo,20376\nmatplotlib/mpl-data/fonts/ttf/cmsy10.ttf,sha256=uyJu2TLz8QDNDlL15JEu5VO0G2nnv9uNOFTbDrZgUjI,29396\nmatplotlib/mpl-data/fonts/ttf/cmtt10.ttf,sha256=YhHwmuk1mZka_alwwkZp2tGnfiU9kVYk-_IS9wLwcdc,28136\nmatplotlib/mpl-data/images/back-symbolic.svg,sha256=Okj_ressZkfe6Ewv_o7GF5toc5qWCeFkQ2cHQ25BdVE,1532\nmatplotlib/mpl-data/images/back.pdf,sha256=ZR7CJo_dAeCM-KlaGvskgtHQyRtrPIolc8REOmcoqJk,1623\nmatplotlib/mpl-data/images/back.png,sha256=E4dGf4Gnz1xJ1v2tMygHV0YNQgShreDeVApaMb-74mU,380\nmatplotlib/mpl-data/images/back.svg,sha256=Okj_ressZkfe6Ewv_o7GF5toc5qWCeFkQ2cHQ25BdVE,1532\nmatplotlib/mpl-data/images/back_large.png,sha256=9A6hUSQeszhYONE4ZuH3kvOItM0JfDVu6tkfromCbsQ,620\nmatplotlib/mpl-data/images/filesave-symbolic.svg,sha256=dMGXvLSOHPu44kiWgZx-B_My_tLWaP6J6GgxJfL4FW0,2049\nmatplotlib/mpl-data/images/filesave.pdf,sha256=P1EPPV2g50WTt8UaX-6kFoTZM1xVqo6S2H6FJ6Zd1ec,1734\nmatplotlib/mpl-data/images/filesave.png,sha256=b7ctucrM_F2mG-DycTedG_a_y4pHkx3F-zM7l18GLhk,458\nmatplotlib/mpl-data/images/filesave.svg,sha256=dMGXvLSOHPu44kiWgZx-B_My_tLWaP6J6GgxJfL4FW0,2049\nmatplotlib/mpl-data/images/filesave_large.png,sha256=LNbRD5KZ3Kf7nbp-stx_a1_6XfGBSWUfDdpgmnzoRvk,720\nmatplotlib/mpl-data/images/forward-symbolic.svg,sha256=kOiKq3a4mieMRLVCwQBdOMTRrWG2NOX_5-rbAFHpdmQ,1551\nmatplotlib/mpl-data/images/forward.pdf,sha256=KIqIL4YId43LkcOxV_TT5uvz1SP8k5iUNUeJmAElMV8,1630\nmatplotlib/mpl-data/images/forward.png,sha256=pKbLepgGiGeyY2TCBl8svjvm7Z4CS3iysFxcq4GR-wk,357\nmatplotlib/mpl-data/images/forward.svg,sha256=kOiKq3a4mieMRLVCwQBdOMTRrWG2NOX_5-rbAFHpdmQ,1551\nmatplotlib/mpl-data/images/forward_large.png,sha256=36h7m7DZDHql6kkdpNPckyi2LKCe_xhhyavWARz_2kQ,593\nmatplotlib/mpl-data/images/hand.pdf,sha256=hspwkNY915KPD7AMWnVQs7LFPOtlcj0VUiLu76dMabQ,4172\nmatplotlib/mpl-data/images/hand.png,sha256=2cchRETGKa0hYNKUxnJABwkyYXEBPqJy_VqSPlT0W2Q,979\nmatplotlib/mpl-data/images/hand.svg,sha256=hxxBtakaVFA7mpZOGakvo0QUcb2x06rojeS5gnVmyuc,4906\nmatplotlib/mpl-data/images/help-symbolic.svg,sha256=XVcFcuzcL3SQ3LjfSbtdLYDjoB5YUkj2jk2Gk8vaZF8,1890\nmatplotlib/mpl-data/images/help.pdf,sha256=CeE978IMi0YWznWKjIT1R8IrP4KhZ0S7usPUvreSgcA,1813\nmatplotlib/mpl-data/images/help.png,sha256=s4pQrqaQ0py8I7vc9hv3BI3DO_tky-7YBMpaHuBDCBY,472\nmatplotlib/mpl-data/images/help.svg,sha256=XVcFcuzcL3SQ3LjfSbtdLYDjoB5YUkj2jk2Gk8vaZF8,1890\nmatplotlib/mpl-data/images/help_large.png,sha256=1IwEyWfGRgnoCWM-r9CJHEogTJVD5n1c8LXTK4AJ4RE,747\nmatplotlib/mpl-data/images/home-symbolic.svg,sha256=ptrus8h5PZTi9ahYfnaz-uZ8MAHCr72aPeMW48TBR9Q,1911\nmatplotlib/mpl-data/images/home.pdf,sha256=e0e0pI-XRtPmvUCW2VTKL1DeYu1pvPmUUeRSgEbWmik,1737\nmatplotlib/mpl-data/images/home.png,sha256=IcFdAAUa6_A0qt8IO3I8p4rpXpQgAlJ8ndBECCh7C1w,468\nmatplotlib/mpl-data/images/home.svg,sha256=ptrus8h5PZTi9ahYfnaz-uZ8MAHCr72aPeMW48TBR9Q,1911\nmatplotlib/mpl-data/images/home_large.png,sha256=uxS2O3tWOHh1iau7CaVV4ermIJaZ007ibm5Z3i8kXYg,790\nmatplotlib/mpl-data/images/matplotlib.pdf,sha256=BkSUf-2xoij-eXfpV2t7y1JFKG1zD1gtV6aAg3Xi_wE,22852\nmatplotlib/mpl-data/images/matplotlib.png,sha256=w8KLRYVa-voUZXa41hgJauQuoois23f3NFfdc72pUYY,1283\nmatplotlib/mpl-data/images/matplotlib.svg,sha256=QiTIcqlQwGaVPtHsEk-vtmJk1wxwZSvijhqBe_b9VCI,62087\nmatplotlib/mpl-data/images/matplotlib_large.png,sha256=ElRoue9grUqkZXJngk-nvh4GKfpvJ4gE69WryjCbX5U,3088\nmatplotlib/mpl-data/images/move-symbolic.svg,sha256=_uamLnjQ20iwSuKbd8JvTXUFaRq4206MrpFWvtErr8I,2529\nmatplotlib/mpl-data/images/move.pdf,sha256=CXk3PGK9WL5t-5J-G2X5Tl-nb6lcErTBS5oUj2St6aU,1867\nmatplotlib/mpl-data/images/move.png,sha256=TmjR41IzSzxGbhiUcV64X0zx2BjrxbWH3cSKvnG2vzc,481\nmatplotlib/mpl-data/images/move.svg,sha256=_uamLnjQ20iwSuKbd8JvTXUFaRq4206MrpFWvtErr8I,2529\nmatplotlib/mpl-data/images/move_large.png,sha256=Skjz2nW_RTA5s_0g88gdq2hrVbm6DOcfYW4Fu42Fn9U,767\nmatplotlib/mpl-data/images/qt4_editor_options.pdf,sha256=2qu6GVyBrJvVHxychQoJUiXPYxBylbH2j90QnytXs_w,1568\nmatplotlib/mpl-data/images/qt4_editor_options.png,sha256=EryQjQ5hh2dwmIxtzCFiMN1U6Tnd11p1CDfgH5ZHjNM,380\nmatplotlib/mpl-data/images/qt4_editor_options.svg,sha256=sdrNIxYT-BLvJ30ASnaRQ5PxF3SB41-pgdaIJT0KqBg,1264\nmatplotlib/mpl-data/images/qt4_editor_options_large.png,sha256=-Pd-9Vh5aIr3PZa8O6Ge_BLo41kiEnpmkdDj8a11JkY,619\nmatplotlib/mpl-data/images/subplots-symbolic.svg,sha256=Gq4fDSS99Rv5rbR8_nenV6jcY5VsKPARWeH-BZBk9CU,2150\nmatplotlib/mpl-data/images/subplots.pdf,sha256=Q0syPMI5EvtgM-CE-YXKOkL9eFUAZnj_X2Ihoj6R4p4,1714\nmatplotlib/mpl-data/images/subplots.png,sha256=MUfCItq3_yzb9yRieGOglpn0Y74h8IA7m5i70B63iRc,445\nmatplotlib/mpl-data/images/subplots.svg,sha256=Gq4fDSS99Rv5rbR8_nenV6jcY5VsKPARWeH-BZBk9CU,2150\nmatplotlib/mpl-data/images/subplots_large.png,sha256=Edu9SwVMQEXJZ5ogU5cyW7VLcwXJdhdf-EtxxmxdkIs,662\nmatplotlib/mpl-data/images/zoom_to_rect-symbolic.svg,sha256=uMmdGkO43ZHlezkpieR3_MiqlEc5vROffRDOhY4sxm4,1499\nmatplotlib/mpl-data/images/zoom_to_rect.pdf,sha256=SEvPc24gfZRpl-dHv7nx8KkxPyU66Kq4zgQTvGFm9KA,1609\nmatplotlib/mpl-data/images/zoom_to_rect.png,sha256=aNz3QZBrIgxu9E-fFfaQweCVNitGuDUFoC27e5NU2L4,530\nmatplotlib/mpl-data/images/zoom_to_rect.svg,sha256=uMmdGkO43ZHlezkpieR3_MiqlEc5vROffRDOhY4sxm4,1499\nmatplotlib/mpl-data/images/zoom_to_rect_large.png,sha256=V6pkxmm6VwFExdg_PEJWdK37HB7k3cE_corLa7RbUMk,1016\nmatplotlib/mpl-data/kpsewhich.lua,sha256=RdyYaBnBLy3NsB5c2R5FGrKu-V-WBcZim24NWilsTfw,139\nmatplotlib/mpl-data/matplotlibrc,sha256=2hOw4G5YMRexNcWmcT_dogowmoui_AfYOfVvGM6aPHM,44226\nmatplotlib/mpl-data/plot_directive/plot_directive.css,sha256=utSJ1oETz0UG6AC9hU134J_JY78ENijqMZXN0JMBUfk,318\nmatplotlib/mpl-data/sample_data/Minduka_Present_Blue_Pack.png,sha256=XnKGiCanpDKalQ5anvo5NZSAeDP7fyflzQAaivuc0IE,13634\nmatplotlib/mpl-data/sample_data/README.txt,sha256=ABz19VBKfGewdY39QInG9Qccgn1MTYV3bT5Ph7TCy2Y,128\nmatplotlib/mpl-data/sample_data/Stocks.csv,sha256=72878aZNXGxd5wLvFUw_rnj-nfg4gqtrucZji-w830c,67924\nmatplotlib/mpl-data/sample_data/axes_grid/bivariate_normal.npy,sha256=DpWZ9udAh6ospYqneEa27D6EkRgORFwHosacZXVu98U,1880\nmatplotlib/mpl-data/sample_data/data_x_x2_x3.csv,sha256=A0SU3buOUGhT-NI_6LQ6p70fFSIU3iLFdgzvzrKR6SE,132\nmatplotlib/mpl-data/sample_data/eeg.dat,sha256=KGVjFt8ABKz7p6XZirNfcxSTOpGGNuyA8JYErRKLRBc,25600\nmatplotlib/mpl-data/sample_data/embedding_in_wx3.xrc,sha256=cUqVw5vDHNSZoaO4J0ebZUf5SrJP36775abs7R9Bclg,2186\nmatplotlib/mpl-data/sample_data/goog.npz,sha256=QAkXzzDmtmT3sNqT18dFhg06qQCNqLfxYNLdEuajGLE,22845\nmatplotlib/mpl-data/sample_data/grace_hopper.jpg,sha256=qMptc0dlcDsJcoq0f-WfRz2Trjln_CTHwCiMPHrbcTA,61306\nmatplotlib/mpl-data/sample_data/jacksboro_fault_dem.npz,sha256=1JP1CjPoKkQgSUxU0fyhU50Xe9wnqxkLxf5ukvYvtjc,174061\nmatplotlib/mpl-data/sample_data/logo2.png,sha256=DXNx4FXeyqxHy26AmvNELpwezQLxweLQY9HP7ktKIdc,22279\nmatplotlib/mpl-data/sample_data/membrane.dat,sha256=q3lbQpIBpbtXXGNw1eFwkN_PwxdDGqk4L46IE2b0M1c,48000\nmatplotlib/mpl-data/sample_data/msft.csv,sha256=GArKb0O3DgKZRsKdJf6lX3rMSf-PCekIiBoLNdgF7Mk,3211\nmatplotlib/mpl-data/sample_data/s1045.ima.gz,sha256=MrQk1k9it-ccsk0p_VOTitVmTWCAVaZ6srKvQ2n4uJ4,33229\nmatplotlib/mpl-data/sample_data/topobathy.npz,sha256=AkTgMpFwLfRQJNy1ysvE89TLMNct-n_TccSsYcQrT78,45224\nmatplotlib/mpl-data/stylelib/Solarize_Light2.mplstyle,sha256=aytOm4eT_SPvs7HC28ZY4GukeN44q-SE0JEMCR8kVOk,1257\nmatplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle,sha256=iopHpMaM3im_AK2aiHGuM2DKM5i9Kc84v6NQEoSb10Q,167\nmatplotlib/mpl-data/stylelib/_mpl-gallery-nogrid.mplstyle,sha256=1VOL3USqD6iuGQaSynNg1QhyUwvKLnkLyUKdbBMnnqg,489\nmatplotlib/mpl-data/stylelib/_mpl-gallery.mplstyle,sha256=MN-q59CiDqHXB8xFKXxzCbJJbJmNDhBe9lDJJAoMTPA,504\nmatplotlib/mpl-data/stylelib/bmh.mplstyle,sha256=-KbhaI859BITHIoyUZIfpQDjfckgLAlDAS_ydKsm6mc,712\nmatplotlib/mpl-data/stylelib/classic.mplstyle,sha256=1o5b47VD_RIZv3unnG9Gm2tbprTvOeNGXM8hJCmGuYI,24670\nmatplotlib/mpl-data/stylelib/dark_background.mplstyle,sha256=GzSBD06jvlRYOqu7D5Z5a5x25l9JnTgtObn7S4D9zug,607\nmatplotlib/mpl-data/stylelib/fast.mplstyle,sha256=yTa2YEIIP9xi5V_G0p2vSlxghuhNwjRi9gPECMxyRiM,288\nmatplotlib/mpl-data/stylelib/fivethirtyeight.mplstyle,sha256=IcBt2DSDz9CtuyCis9JZtT3Nqoh6LVO-dB66AxObUcA,780\nmatplotlib/mpl-data/stylelib/ggplot.mplstyle,sha256=u2oPHMLWFtZcpIjHk2swi2Nrt4NgnEtof5lxcwM0RD0,956\nmatplotlib/mpl-data/stylelib/grayscale.mplstyle,sha256=KCLg-pXpns9cnKDXKN2WH6mV41OH-6cbT-5zKQotSdw,526\nmatplotlib/mpl-data/stylelib/petroff10.mplstyle,sha256=Qj7pPbHh3L25kdsPt1ypwvKR3dPzuOrFzzQTP3Mfilg,298\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-bright.mplstyle,sha256=pDqn3-NUyVLvlfkYs8n8HzNZvmslVMChkeH-HtZuJIc,144\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-colorblind.mplstyle,sha256=eCSzFj5_2vR6n5qu1rHE46wvSVGZcdVqz85ov40ZsH8,148\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-dark-palette.mplstyle,sha256=p5ABKNQHRG7bk4HXqMQrRBjDlxGAo3RCXHdQmP7g-Ng,142\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-dark.mplstyle,sha256=I4xQ75vE5_9X4k0cNDiqhhnF3OcrZ2xlPX8Ll7OCkoE,667\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-darkgrid.mplstyle,sha256=2bXOSzS5gmPzRBrRmzVWyhg_7ZaBRQ6t_-O-cRuyZoA,670\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-deep.mplstyle,sha256=44dLcXjjRgR-6yaopgGRInaVgz3jk8VJVQTbBIcxRB0,142\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-muted.mplstyle,sha256=T4o3jvqKD_ImXDkp66XFOV_xrBVFUolJU34JDFk1Xkk,143\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-notebook.mplstyle,sha256=PcvZQbYrDdducrNlavBPmQ1g2minio_9GkUUFRdgtoM,382\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-paper.mplstyle,sha256=n0mboUp2C4Usq2j6tNWcu4TZ_YT4-kKgrYO0t-rz1yw,393\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-pastel.mplstyle,sha256=8nV8qRpbUrnFZeyE6VcQ1oRuZPLil2W74M2U37DNMOE,144\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-poster.mplstyle,sha256=dUaKqTE4MRfUq2rWVXbbou7kzD7Z9PE9Ko8aXLza8JA,403\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-talk.mplstyle,sha256=7FnBaBEdWBbncTm6_ER-EQVa_bZgU7dncgez-ez8R74,403\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-ticks.mplstyle,sha256=CITZmZFUFp40MK2Oz8tI8a7WRoCizQU9Z4J172YWfWw,665\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-white.mplstyle,sha256=WjJ6LEU6rlCwUugToawciAbKP9oERFHr9rfFlUrdTx0,665\nmatplotlib/mpl-data/stylelib/seaborn-v0_8-whitegrid.mplstyle,sha256=ec4BjsNzmOvHptcJ3mdPxULF3S1_U1EUocuqfIpw-Nk,664\nmatplotlib/mpl-data/stylelib/seaborn-v0_8.mplstyle,sha256=_Xu6qXKzi4b3GymCOB1b1-ykKTQ8xhDliZ8ezHGTiAs,1130\nmatplotlib/mpl-data/stylelib/tableau-colorblind10.mplstyle,sha256=BsirZVd1LmPWT4tBIz6loZPjZcInoQrIGfC7rvzqmJw,190\nmatplotlib/offsetbox.py,sha256=WGa1TdIGkg1LPPL6ZJ8dbE8wfumJMz863sjsafPm5Vg,54488\nmatplotlib/offsetbox.pyi,sha256=ISf7gRrOhvefNKfutbHIPh6QYS0kAgtA97bYa6N-82o,9909\nmatplotlib/patches.py,sha256=kI0XgcYLusGwILt147Hmoh4NhoR6unlZdafgQrZxZJY,165054\nmatplotlib/patches.pyi,sha256=d-sCqVXw_ANsvoUpliH7dllMbTy7TcyRm2IV97Ll0nM,22649\nmatplotlib/path.py,sha256=CD1LeGQMm9p0U5mSRIG1L2WCiIie3rYhykLwud1qLA8,42717\nmatplotlib/path.pyi,sha256=N1XOCWSUG4RtCcMo02yvvq3HDYo_369oKQkEJUHN80c,4777\nmatplotlib/patheffects.py,sha256=4paQgPGKc_xdBz_BZ_MaVhKJ2FxZDGeh5zHwzn3evDY,18387\nmatplotlib/patheffects.pyi,sha256=7-FhuxGGrer94GtJ1sZ0YxOmK6Nv4oixTmsKb6-ijOg,3664\nmatplotlib/projections/__init__.py,sha256=gICKgNfjJ-tioWEFa75BKKJZG6JJjx46_RpEqt5fk94,4438\nmatplotlib/projections/__init__.pyi,sha256=D28dSYmwZcSBFBtNDer-QqE_lqXAhHKersuAlvi89jE,673\nmatplotlib/projections/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/projections/__pycache__/geo.cpython-313.pyc,,\nmatplotlib/projections/__pycache__/polar.cpython-313.pyc,,\nmatplotlib/projections/geo.py,sha256=feR2dybCylhk6xe-MzxBr_e8MdbpVc8tBtCQQJ0V2co,17605\nmatplotlib/projections/geo.pyi,sha256=vPfhvj7_e0ZnKjyfDUNC89RGCktycJBPnn5D8w0A7N8,3775\nmatplotlib/projections/polar.py,sha256=f7-1dEIXWkh2_NOoVf8pcVPe0PqfkrKL0V1-ykElM_s,56939\nmatplotlib/projections/polar.pyi,sha256=IWNSLQIo5cXFBJur5VFVDQBwAtq5n1XFZMnrj85mCBg,6636\nmatplotlib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/pylab.py,sha256=VqUqd2J2-dKtltZtsYP8ePKoX1jsNDpTyqlcmpfC-lo,2369\nmatplotlib/pyplot.py,sha256=Dbp8GKxM6B5oCmcjb8lsik2R8QPtPt3JgmgaqeWqkPw,149704\nmatplotlib/quiver.py,sha256=L8O6Ke6oH60R9VA_gd9JiA5Fvv5sMPIFyC_uNRrZSo0,48675\nmatplotlib/quiver.pyi,sha256=Kq1FvQP-DRX1N9Xlp6XF6OJfKkJ7tc4dYq4CEndxEzg,5640\nmatplotlib/rcsetup.py,sha256=87KrQeDFg4sRu4obxF4mc0eGSCuClGyuzXsxoZ_kme4,51606\nmatplotlib/rcsetup.pyi,sha256=0VTIhzfKgBcKxOeOdoKq1oa7ZubalOj9Ks0efE0-cms,4337\nmatplotlib/sankey.py,sha256=eKA9DrX96-bpoWRdeNnvC73aJfPtCnB78WmMPCXQ9rc,36151\nmatplotlib/sankey.pyi,sha256=P2AGkhdg3ZLqXaQdf8yodblrBpdgEQZBLKPL1mbxmFc,1451\nmatplotlib/scale.py,sha256=n3JqLU_d3dAKrP1uO5lTipVEaxgiLhDR2sSk8TAXE_M,26924\nmatplotlib/scale.pyi,sha256=-ptRptcqiAuzfKwrjgSWWOxFmjRUTOKGwIoWtuBXKgY,5057\nmatplotlib/sphinxext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nmatplotlib/sphinxext/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/sphinxext/__pycache__/figmpl_directive.cpython-313.pyc,,\nmatplotlib/sphinxext/__pycache__/mathmpl.cpython-313.pyc,,\nmatplotlib/sphinxext/__pycache__/plot_directive.cpython-313.pyc,,\nmatplotlib/sphinxext/__pycache__/roles.cpython-313.pyc,,\nmatplotlib/sphinxext/figmpl_directive.py,sha256=rgoJcGRfLdp4jiOlyBIwG83wcyfzbFVfrlrSCmDHL9g,9308\nmatplotlib/sphinxext/mathmpl.py,sha256=CKIocBSV4prRMPR50NL6WxBTULBa1zReoqo7ZtbvCsc,7871\nmatplotlib/sphinxext/plot_directive.py,sha256=6GEOX2y0K1Izc98Aojt8pCXS21Ucru6E-T_33lRU92s,32542\nmatplotlib/sphinxext/roles.py,sha256=U7P4t06foLF2PsZJrTN4mfaspKGRoYwFZ3ijIhIUVyo,4882\nmatplotlib/spines.py,sha256=rKAoBueuqmSids1SKFgWWgMtvUxo2HOhyw73Ri4HyOc,21643\nmatplotlib/spines.pyi,sha256=eceCS47bOawgkWdLUMIPt6XX_H-EtWS2t-euz5Bgkbg,2951\nmatplotlib/stackplot.py,sha256=a6IUAujDjGpaFqiTzGr85eDD8l6baWLPrM5YNvb6g9I,4997\nmatplotlib/stackplot.pyi,sha256=BX2g3-6dJ4RhjjIguo-gwWhvKZNYqFCQYVw5SKvpM4c,561\nmatplotlib/streamplot.py,sha256=rXVKYEi4MfSg3HnAaWb8w4qFp95mRf6dosMVqtXZEpE,24011\nmatplotlib/streamplot.pyi,sha256=fkdkew8u807qd7WXFd_ZjF7FUbx8okOI8A7u4x_ktvg,2690\nmatplotlib/style/__init__.py,sha256=fraQtyBC3TY2ZTsLdxL7zNs9tJYZtje7tbiqEf3M56M,140\nmatplotlib/style/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/style/__pycache__/core.cpython-313.pyc,,\nmatplotlib/style/core.py,sha256=RSNH2NO0xK_Y37dbpMWyaWMMjvcMa_NHaKXDa5I4_tA,8362\nmatplotlib/style/core.pyi,sha256=mIlyz6eChdMjZ_A7S05iJgcWwrWE2NXg2rhm1C1eYlQ,521\nmatplotlib/table.py,sha256=MkF9s8u2X-9_Cei9sJixljb2_I_B_4UOqVx0iReKIU0,27744\nmatplotlib/table.pyi,sha256=tcR40hoCWCRLlL-8PtFMa7P5sq8qajDSMFxd25Q90z4,3098\nmatplotlib/testing/__init__.py,sha256=pTaqH1qgGNBeWCmvK_vjqFJXJ9dvZXCaKQ-8jHSpaEc,6942\nmatplotlib/testing/__init__.pyi,sha256=ffqfetWzyCVrSx7BlnoxCmbgIaZg2x57nDrq9eucRk0,1752\nmatplotlib/testing/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/testing/__pycache__/_markers.cpython-313.pyc,,\nmatplotlib/testing/__pycache__/compare.cpython-313.pyc,,\nmatplotlib/testing/__pycache__/conftest.cpython-313.pyc,,\nmatplotlib/testing/__pycache__/decorators.cpython-313.pyc,,\nmatplotlib/testing/__pycache__/exceptions.cpython-313.pyc,,\nmatplotlib/testing/__pycache__/widgets.cpython-313.pyc,,\nmatplotlib/testing/_markers.py,sha256=0iNyOi25XLv_gTfSUqiRizdSqJzozePPBMRo72H2Je4,1419\nmatplotlib/testing/compare.py,sha256=8dVcuP7FauHY1JZQXBD7fNBfQKb4IoXM6pVeq6zJgBs,19780\nmatplotlib/testing/compare.pyi,sha256=xlJ4chgXKe567NUavlu-dalyPr4wAQUbd2Fz6aK_JII,1192\nmatplotlib/testing/conftest.py,sha256=CcwfUtIkUOgGBlXXNplQE6dg2U_UBKdH6AajROPJ5uw,6683\nmatplotlib/testing/conftest.pyi,sha256=zOF_MM2GjCkNi9nZ8vldV9VI41bD67nVhrIgLVuMNsk,416\nmatplotlib/testing/decorators.py,sha256=1Xiyb2exeN0nDEO4he8MW_VKwFE34cB7EtRl6bcGRzg,18022\nmatplotlib/testing/decorators.pyi,sha256=0fSpdLBtEH7ZP_trVJ7RPxNtOX9sJ_z-MkNsbUxF8nM,872\nmatplotlib/testing/exceptions.py,sha256=72QmjiHG7DwxSvlJf8mei-hRit5AH3NKh0-osBo4YbY,138\nmatplotlib/testing/jpl_units/Duration.py,sha256=9FMBu9uj6orCWtf23cf6_9HCFUC50xAHrCzaxATwQfM,3966\nmatplotlib/testing/jpl_units/Epoch.py,sha256=-FGxeq-VvCS9GVPwOEE5ind_G4Tl9ztD-gYcW9CWzjo,6100\nmatplotlib/testing/jpl_units/EpochConverter.py,sha256=fhWjyP567bzcTU_oNuJJpucoolqS88Nt-yEFg1-3yEk,2944\nmatplotlib/testing/jpl_units/StrConverter.py,sha256=codGw9b_Zc-MG_YK4CiyMrnMR8ahR9hw836O2SsV8QI,2865\nmatplotlib/testing/jpl_units/UnitDbl.py,sha256=EABjyEK4MVouyvlwi_9KdYDg-qbYY3aLHoUjRw37Fb0,5882\nmatplotlib/testing/jpl_units/UnitDblConverter.py,sha256=B8DssrQVyC4mwvSFP78cGL0vCnZgVhDaAbZE-jsXLUg,2828\nmatplotlib/testing/jpl_units/UnitDblFormatter.py,sha256=246hgA4_pCfJm-P94hEsxqnTS9t0XlvLC8p1v_bw2pU,657\nmatplotlib/testing/jpl_units/__init__.py,sha256=p__9RUwrt2LJ2eoT2JPM-42XLxSJrfA4az3rN5uP6d4,2684\nmatplotlib/testing/jpl_units/__pycache__/Duration.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/Epoch.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/EpochConverter.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/StrConverter.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/UnitDbl.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/UnitDblConverter.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/UnitDblFormatter.cpython-313.pyc,,\nmatplotlib/testing/jpl_units/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/testing/widgets.py,sha256=IaoPHgDguJSHd7t97kSVWUZvqTQ-Tsr9tU9kfnmJrAM,3480\nmatplotlib/testing/widgets.pyi,sha256=Ioau7Q2aPRDZLx8hze2DOe3E1vn7QPxePC74WMR7tFc,831\nmatplotlib/tests/__init__.py,sha256=XyXveEAxafB87gnbx0jkC0MggzKO8FvORq_6RtJRwo4,366\nmatplotlib/tests/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/conftest.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_afm.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_agg.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_agg_filter.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_animation.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_api.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_arrow_patches.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_artist.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_axes.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_axis.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_bases.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_cairo.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_gtk3.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_inline.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_macosx.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_nbagg.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_pdf.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_pgf.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_ps.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_qt.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_registry.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_svg.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_template.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_tk.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_tools.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backend_webagg.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_backends_interactive.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_basic.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_bbox_tight.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_bezier.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_category.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_cbook.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_collections.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_colorbar.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_colors.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_compare_images.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_constrainedlayout.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_container.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_contour.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_cycles.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_dates.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_datetime.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_determinism.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_doc.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_dviread.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_figure.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_font_manager.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_fontconfig_pattern.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_ft2font.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_getattr.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_gridspec.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_image.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_legend.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_lines.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_marker.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_mathtext.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_matplotlib.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_mlab.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_multivariate_colormaps.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_offsetbox.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_patches.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_path.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_patheffects.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_pickle.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_png.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_polar.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_preprocess_data.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_pyplot.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_quiver.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_rcparams.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_sankey.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_scale.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_simplification.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_skew.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_sphinxext.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_spines.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_streamplot.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_style.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_subplots.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_table.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_testing.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_texmanager.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_text.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_textpath.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_ticker.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_tightlayout.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_transforms.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_triangulation.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_type1font.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_units.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_usetex.cpython-313.pyc,,\nmatplotlib/tests/__pycache__/test_widgets.cpython-313.pyc,,\nmatplotlib/tests/conftest.py,sha256=0cKxWVUC25UfQJQcAjFJa73MQE9eSYqKSXGDx7kAq48,138\nmatplotlib/tests/test_afm.py,sha256=A7jm2o-QaQH9SSpiFxGtZkbVU0LJZE69jfPv7RczOD4,3701\nmatplotlib/tests/test_agg.py,sha256=xAKrTzvT1dNM_49efiWisnGNrJtINOBenYSOtaRXvIg,10884\nmatplotlib/tests/test_agg_filter.py,sha256=3c_Smtb4OHEOfdMFCOb2qKhzMXSbNoaUtsJ0pW47Q44,1067\nmatplotlib/tests/test_animation.py,sha256=z0FJ0gx15rJB_khEPSg1E-vLGQyTj85Ki-uTjFsMEPE,18357\nmatplotlib/tests/test_api.py,sha256=UJU_qoi7Y8Rbz1S89NYKvOkNwv_RBVPNFajrcXixNds,5736\nmatplotlib/tests/test_arrow_patches.py,sha256=qgbS9OrlHa4TJihAd2ekW4AupCVgKDd2B5YyF704Pak,6577\nmatplotlib/tests/test_artist.py,sha256=oblCTkCPZzufghCp19AKwIJftV69tZwEOjeRLn8soAQ,18599\nmatplotlib/tests/test_axes.py,sha256=NyVdODWyq-ODna0ElxJW_sTDKw2iDx8_BD_cC7juIyU,328610\nmatplotlib/tests/test_axis.py,sha256=Ljc_Yc7dAFkTuVW0PD0i3vEnjkGOuAehkpcNpWg9A7Y,1446\nmatplotlib/tests/test_backend_bases.py,sha256=FwUgearYkC7UgqpRpaKk51o5F62ipDL4kUvFROwGVLo,22775\nmatplotlib/tests/test_backend_cairo.py,sha256=O2LTYjsfPn__bKtTz4MGGBodpSshoPkzu0INsc18xmI,1821\nmatplotlib/tests/test_backend_gtk3.py,sha256=Zb29s85nbRzwLVmChCA5_LphAeC_yKyP45kCcHxfgPE,2849\nmatplotlib/tests/test_backend_inline.py,sha256=b7GrmMCrJfI5kXGJKbxdMM9kWBd-JKUdCkRq-vk8JXo,1608\nmatplotlib/tests/test_backend_macosx.py,sha256=s4Kd1fnwYCuamGRLtkOAYtzer7jVOjLaA2LH52hhPqM,2233\nmatplotlib/tests/test_backend_nbagg.py,sha256=o6ON7tt_LOW7wzg4StIMYuTgMFSPNWt1FOv2FFMIefk,1459\nmatplotlib/tests/test_backend_pdf.py,sha256=CxVYTlz8_AQ7o90yh5cavpSnNBLozIL8UhscRYShUVM,14602\nmatplotlib/tests/test_backend_pgf.py,sha256=WlGdZThz5uQ-x8-HqpMcB5IWmYijflNCC-rVNgvz0yw,13028\nmatplotlib/tests/test_backend_ps.py,sha256=veHbm4_dpBDcczgomEjQxdz-Sv8wHij3LVSKWST9Bd0,12600\nmatplotlib/tests/test_backend_qt.py,sha256=VTWiuGw-evGdc2OzaKRFU0MXvtwxInvZNXBr51y_Jg4,13000\nmatplotlib/tests/test_backend_registry.py,sha256=SiyyRRMT1tIXKxwn7IXq0SaIrYt3DEvBBe8TvNxa644,5950\nmatplotlib/tests/test_backend_svg.py,sha256=L73hpBa1P-y978Y3Gpd_eSJAFJMvUvrOqiYaJ-CkQUw,22930\nmatplotlib/tests/test_backend_template.py,sha256=uuE7oZ9pSBVDWrPL05B0WgCFsgv6HlXyetuPTfJn6a8,2184\nmatplotlib/tests/test_backend_tk.py,sha256=A1h3AfPhEMbG5PLdDr1gbnwt_DlaQOBgFux5QsIpCpM,8850\nmatplotlib/tests/test_backend_tools.py,sha256=C-B7NCkyWsQ5KzQEnI5Be16DsAHHZJU9P5v9--wsF-o,501\nmatplotlib/tests/test_backend_webagg.py,sha256=4Oc-z7w-mTGETB1x0FQ_gZP9qHfyWh5lwWc9qPkkisc,938\nmatplotlib/tests/test_backends_interactive.py,sha256=uzbU_sKZVaKmKDFW0FgGRauPvVnmsFRlXQA5XB_UvKo,29020\nmatplotlib/tests/test_basic.py,sha256=ubAnlE-lFQzMhoBlWYZJKCAsox9Y3jBXS_IMn29Zi84,1141\nmatplotlib/tests/test_bbox_tight.py,sha256=5yo6yy3HTUIf2-oGZllieaLynmOupzWcuPpeGmgS5BQ,6314\nmatplotlib/tests/test_bezier.py,sha256=IrrDWAV5O6ELMdziaaOeBI7LfyEaTBVsT4B1T9KMzD8,692\nmatplotlib/tests/test_category.py,sha256=jWXOAGOR_gpvrjarvJB6Tyot0yOIWaO6d1F9mrNcVPo,12043\nmatplotlib/tests/test_cbook.py,sha256=85PW_AjpGEqr6SfL8CjTY-kZ7TA0RMdrz8Gi3Dyc91g,33530\nmatplotlib/tests/test_collections.py,sha256=3hg_WB-zv409PgIchCM7df5gVOiwYXj0H2n0ZFjrlmU,48406\nmatplotlib/tests/test_colorbar.py,sha256=tDdmWz_LxCbD80ksM6iqrHYqpombyL8QtqpKQSKOS14,46711\nmatplotlib/tests/test_colors.py,sha256=-Q5VZfQWI-NSMOa4tusxDgWe705a7uymMHLI8h10C8A,61215\nmatplotlib/tests/test_compare_images.py,sha256=NcBoT8HAxtzoR1zZBu0V3MFpGWtdFaDblQ8o3OTO6zM,3260\nmatplotlib/tests/test_constrainedlayout.py,sha256=WWQM9nDpVI8OLAQ_P88PqO2-hMiB7pBGAp0DnZBPJmM,23602\nmatplotlib/tests/test_container.py,sha256=FTewckOd3dJqLOzEUa29Itjqusk7Mx7MK5xPVMhzMmc,694\nmatplotlib/tests/test_contour.py,sha256=O_VIhjDgsb0A-brYR-gJ-WUcqzYzH0XLQD4aI_5SocM,30289\nmatplotlib/tests/test_cycles.py,sha256=3KyRmWH29WUgvIXUT06tKVDNCfDWqxuxlLueIp-FIl0,5996\nmatplotlib/tests/test_dates.py,sha256=jOK-KIAMBRCcnlgpzknpLJb3JvO3xFa5Qe3O5mVTeGM,56533\nmatplotlib/tests/test_datetime.py,sha256=n2TYVItNQcUFBLUivuTXBnc0fElIeSmy9hu4ZNMVurc,32635\nmatplotlib/tests/test_determinism.py,sha256=harG-hnOpD5HZFKPtHebT0snHu8V6C6BScVFml1Mqyg,7958\nmatplotlib/tests/test_doc.py,sha256=K6HhdRcHRUNNC0iIhxBLCq5tOqxqHBSvanHxXg5w5iI,1015\nmatplotlib/tests/test_dviread.py,sha256=JeTuA2FMUj1FddxDVBXUtnvZYTgztE-CyRXL_mI20P0,2764\nmatplotlib/tests/test_figure.py,sha256=bGyAW9fwJc3gVVul_Vd5f8TEmbrEoDAMWV4Rm5-QXQQ,60289\nmatplotlib/tests/test_font_manager.py,sha256=Qkewu4tMylgVciamVwWL8TFoDon8YyzN-9po6usN6Mk,14136\nmatplotlib/tests/test_fontconfig_pattern.py,sha256=LSR6lWF_0cVOshkGiflYaTCLcISRIJM6mjXm5QtDjX4,2168\nmatplotlib/tests/test_ft2font.py,sha256=lz13lRGmxdQ9eRjQlnigdfQWBwaST1A3_AgEAR5dJA0,40838\nmatplotlib/tests/test_getattr.py,sha256=Tl_H1zpwLdSIVutc4vi-QwDCeWPzBGpN31N9ItzTkeQ,1090\nmatplotlib/tests/test_gridspec.py,sha256=SYJuJucA_PyQ2Rsov1RaNhadOEWGDcMbQcVFrWIoy3I,1580\nmatplotlib/tests/test_image.py,sha256=O9pUxNrGyewPievlC-WDhJ3hkCTsiAq4id6E6hJ22Is,59562\nmatplotlib/tests/test_legend.py,sha256=MQL_blp2W5CUXFRGz8kFZzcVZ8ipnwkWr43-W-3B0HI,54829\nmatplotlib/tests/test_lines.py,sha256=KElNi2GlJCtGLhNpf8rl8bkDhMcQ9ittyRdsX4rdSxo,15035\nmatplotlib/tests/test_marker.py,sha256=w0WVHoaD-6iybjUSENoVFFdUOOR13943JcE4sgz3qhI,11410\nmatplotlib/tests/test_mathtext.py,sha256=2S1i3BLNffEqz1t-mehhWBROBcsdBZsdgrticxW6Xrw,24549\nmatplotlib/tests/test_matplotlib.py,sha256=YPBZQdO6BEC4mPKxXD_W-HoFzoOZwGGifYrYdCDcy48,2887\nmatplotlib/tests/test_mlab.py,sha256=d4qMyogTFMrvlRZEpDs7SjhSmmCnBUMNgSX2bJU6eDk,42269\nmatplotlib/tests/test_multivariate_colormaps.py,sha256=wGc08cdUTBDJvhUiwVqTrBS7o19Ei-wQRnWlkny7h5M,20785\nmatplotlib/tests/test_offsetbox.py,sha256=m6rezy7tb5YUgiITMIpOHdDV56DBx-Cy32XFa_WTcd4,16137\nmatplotlib/tests/test_patches.py,sha256=4pWXTevmwDPMn2Jw_qyynXUyBvGoTV_xo5P16PSLQLU,33466\nmatplotlib/tests/test_path.py,sha256=d5xXaTscikS4R8JKMVDcwgmXIhFVQaPFY-kYCAJxddY,22158\nmatplotlib/tests/test_patheffects.py,sha256=q7JA5VbZU5Zsqvc2eGM7YhB9TClkNp3akQCZVsHrNQU,8109\nmatplotlib/tests/test_pickle.py,sha256=2VcsJ6QwN9vP4cvkuUCZD7uwKyd1rOCDIaYPEBr3u6E,10014\nmatplotlib/tests/test_png.py,sha256=d6u6UkU71T6ULxDVSdMkIT3CUAL46dEuDuNrnjZe5BE,1407\nmatplotlib/tests/test_polar.py,sha256=_h3VVisv2bMpaaRFhGEzbJe9jnzzEtKM_EvaHnw6_xA,17607\nmatplotlib/tests/test_preprocess_data.py,sha256=cIVICUi1iahMQS30sqI5IlT2RYJRH2gJ0z60FyuYUFk,11363\nmatplotlib/tests/test_pyplot.py,sha256=5-Rv0g037ifl64vWybmlV8y22YjuY5lVX5aPvnzihiA,13910\nmatplotlib/tests/test_quiver.py,sha256=5zSF_0DpoDXPBvGWD6iu1VfIUna15npLd2UyCG6_Ksg,11953\nmatplotlib/tests/test_rcparams.py,sha256=PLos0asOBQMn0hjrVP_itywcbZjT8og_TaB3tqSFHac,26506\nmatplotlib/tests/test_sankey.py,sha256=yg4i-qHT5MljFzFGViOnHbMkumM8bhPwRgoQ5M6CUEs,3900\nmatplotlib/tests/test_scale.py,sha256=fqLu88lVy7-JZFNslpgiid11_TIivSkM9DxVnHwZJYo,8429\nmatplotlib/tests/test_simplification.py,sha256=IJ1yEz2Y58QtKRRHz41NaXVS4kkRipaE_Un0HgM4K2g,21570\nmatplotlib/tests/test_skew.py,sha256=_Mjwfgce6WxLH3dafI7irv2Cw0ANifytCtQXdyOStCk,6349\nmatplotlib/tests/test_sphinxext.py,sha256=9hzVcUgMhtfo_6A_c-SvCYWDQY45Oq-lD6Os4PnRg3s,9937\nmatplotlib/tests/test_spines.py,sha256=O7jKGFJ1hv50k94i1fjPYNsKljDaWDHi9R5fo2bcXI0,4909\nmatplotlib/tests/test_streamplot.py,sha256=mSLuZ7E2eEtcI5nKHBZZ_30OYte5awqsXWFWROJYtCQ,5731\nmatplotlib/tests/test_style.py,sha256=sd6rMLpPBS1hinR2svI1rXZmnXUnMQk1szxSNBUXtzU,6509\nmatplotlib/tests/test_subplots.py,sha256=7weokAQ2dmYwGAXAwqN-tfjZDrNfHxPmGgTlzI6TBAU,10771\nmatplotlib/tests/test_table.py,sha256=QsrDRpe864LP3zkQBtTciKub5raYz3i3Vrt_Ve3kdzQ,8659\nmatplotlib/tests/test_testing.py,sha256=eh-1r4PIXcM7hfSKCNTU899QxRYWhZBg6W7x0TDVUxo,1057\nmatplotlib/tests/test_texmanager.py,sha256=j_5ZG02ztIO-m0oXzd31a13YFw_G7JR7Ldt3fwf-phI,2647\nmatplotlib/tests/test_text.py,sha256=3RxKrfJJBWKFGSrEvxeCG5rxcvlkIivir8wCj1ls5-M,38473\nmatplotlib/tests/test_textpath.py,sha256=WLXvT5OzE6Tew4pr87LH-cgioCzM7srgMNRemiMEC5o,271\nmatplotlib/tests/test_ticker.py,sha256=Bj3hiEgXMBXzDi0Lmg8k-Qg4ChPZrQVqGU0Qfh7Sv84,74759\nmatplotlib/tests/test_tightlayout.py,sha256=KU0m9BnpbKV-jBdaI4EbDLE5Cf_BLtF0Y9hcFfQ4zlQ,13978\nmatplotlib/tests/test_transforms.py,sha256=NfWkPWOKAmY1sq_R1T85ct4CYdFmYUjmjtg2uwOYIIY,48671\nmatplotlib/tests/test_triangulation.py,sha256=hstVYhH09BoVl8L0n6vHXBabniZLUu2KYl6wqZn2Xac,55289\nmatplotlib/tests/test_type1font.py,sha256=gZZDFi0buFus_aAgOrmtwKqbC36-88UkvM8Afbcngs4,6369\nmatplotlib/tests/test_units.py,sha256=0v7JNqjkA8MVnvlOeFoYqQ3sW1KjRY_ijp8BGM8ZW_U,11675\nmatplotlib/tests/test_usetex.py,sha256=a-Y6NuyROPHDGP2ELsOZNSVwBUoGtAv1xQZfisl9lSE,6405\nmatplotlib/tests/test_widgets.py,sha256=U2FMCCJyKD-pcLbzGzEBAL91-3Fx80wsYdinF7eCOrg,66435\nmatplotlib/texmanager.py,sha256=vP9rzv_jYdsexQoAAdMt9rLd6-MwWFX6JGFX9pG4nfg,15033\nmatplotlib/texmanager.pyi,sha256=di3gbC9muXKTo5VCrW5ye-e19A1mrOl8e8lvI3b904A,1116\nmatplotlib/text.py,sha256=xYSkLZiOpew4G1jkLA5pUjtF7qUhOs3yp8IEFMqE6Gg,70856\nmatplotlib/text.pyi,sha256=EL_-kiqz88kuPs0hss6IucRrOCsLJ4zaKOYRFV5Wbk8,7019\nmatplotlib/textpath.py,sha256=QmrZQ2Mtfyao6qWg-wmEGAbTwkuJ54AnAzFf9NzZHg4,13254\nmatplotlib/textpath.pyi,sha256=rqOeTAeQYgm2b2NpetrEX0gMF8PzzW43xS5mNfUA98M,2529\nmatplotlib/ticker.py,sha256=YoIJyWVlYk3DIZbBl-w6fzkuVES3j1dN4nyf-SHKVDg,107381\nmatplotlib/ticker.pyi,sha256=YvnQDHxJT9H-iomDZpvBCoYkfRRYSot2MR0H0pjZM78,10604\nmatplotlib/transforms.py,sha256=2v-golPy7KIqabRM1cQolEF6UcbyXwKrhwcpssGe9Pk,99707\nmatplotlib/transforms.pyi,sha256=0I70FR4ZWmRoo6w5KjbXRrH0dVDmQyPFbGt_sNTYq10,12102\nmatplotlib/tri/__init__.py,sha256=asnfefKRpJv7sGbfddCMybnJInVDPwgph7g0mpoh2u4,820\nmatplotlib/tri/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_triangulation.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_tricontour.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_trifinder.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_triinterpolate.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_tripcolor.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_triplot.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_trirefine.cpython-313.pyc,,\nmatplotlib/tri/__pycache__/_tritools.cpython-313.pyc,,\nmatplotlib/tri/_triangulation.py,sha256=Ur2lKMOx4NrZxwyi0hBeBnVzicuKaCke0NkrZneSklM,9784\nmatplotlib/tri/_triangulation.pyi,sha256=pVw1rvpIcl00p7V7E9GcvJSqQWyoxlZXX_p0_VSxTiY,1017\nmatplotlib/tri/_tricontour.py,sha256=yxeH8QgBub1nTq9qbO5Iiiz81bcLXDeMcJHUS2Ahmns,10220\nmatplotlib/tri/_tricontour.pyi,sha256=jnsAmVRX0-FOUw9ptUgci9J4T4JQRloKeH8fh8aAi-o,1155\nmatplotlib/tri/_trifinder.py,sha256=3gUzJZDIwfdsSJUE8hIKso9e1-UGvynUN9HxaqC1EEc,3522\nmatplotlib/tri/_trifinder.pyi,sha256=dXcZucacAS3Ch6nrDBPh2e3LYZLfZ7VwqpBUBb-vMPo,405\nmatplotlib/tri/_triinterpolate.py,sha256=4FtyJSoJpHcFxkSkZHZ1aNengVNWqVKF4l78PgCH8O0,62445\nmatplotlib/tri/_triinterpolate.pyi,sha256=nR0o0Jm0uPH-6l0ft1WRHqYlq-6o84X6M0aX1UJ9IvE,1044\nmatplotlib/tri/_tripcolor.py,sha256=Z6urFv-naDM3_rhv_pkgIZI53h88aOo9qWc3MH7GmBA,6705\nmatplotlib/tri/_tripcolor.pyi,sha256=QsA-A2ohj3r_tAElt2-9pzi47JiU01tNlRPDIptqnh4,1781\nmatplotlib/tri/_triplot.py,sha256=jlHSz36Z5S18zBKc639PlSqdhfl7jHol8ExlddJuDI4,3102\nmatplotlib/tri/_triplot.pyi,sha256=9USU-BfitrcdQE8yWOUlBX59QBNoHCWivDon9JbDQ0k,446\nmatplotlib/tri/_trirefine.py,sha256=NG8bsDhZ5EOxMT-MsEWzJm11ZR3_8CAYHlG53IGi0ps,13178\nmatplotlib/tri/_trirefine.pyi,sha256=J_PmjbeI6UbLaeecgj1OCvGe_sr9UUsNK9NGBSlQ320,1056\nmatplotlib/tri/_tritools.py,sha256=wC9KVE6UqkWVHpyW9FU4hQdqRVRVmJlhaBF1EXsaD8U,10575\nmatplotlib/tri/_tritools.pyi,sha256=XWwwvH2nIAmH8k59aRjnLBVQbTwKvd_FzdsRNASCJMw,402\nmatplotlib/typing.py,sha256=ZxpQ5jAqiprq3UkqWParWJITgIuOi4ZJ6WEM_q3QOis,2439\nmatplotlib/units.py,sha256=7O-llc8k3GpdotUs2tWcEGgoUHHX-Y7o0R7f-1Jve3k,6429\nmatplotlib/widgets.py,sha256=IbxivJqDYlQ9_utWiJpwGLxeYqPeIYLNcy2oLRjuigM,152101\nmatplotlib/widgets.pyi,sha256=y4Mp69j-s0zJSVxYdmjoxR4F0bWAYApYdmW6cTW3GBc,15370\nmpl_toolkits/axes_grid1/__init__.py,sha256=wiuUCQo1g20SW5T3mFOmI9dGCJY6aDmglpQw5DfszEU,371\nmpl_toolkits/axes_grid1/__pycache__/__init__.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/anchored_artists.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/axes_divider.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/axes_grid.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/axes_rgb.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/axes_size.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/inset_locator.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/mpl_axes.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/__pycache__/parasite_axes.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/anchored_artists.py,sha256=ZO5bIF_29sWrk-lWocKJ_45OQdluf_gu7nLrCtfKtdY,17161\nmpl_toolkits/axes_grid1/axes_divider.py,sha256=JD3jGBAqRHRYb1jablrpq_RFQvYtYfwtIIPJgQpbKPc,21892\nmpl_toolkits/axes_grid1/axes_grid.py,sha256=sjEbq6hu7YFimoOYVIcaccEGXsSljNPaTLfJjFHWVtM,22344\nmpl_toolkits/axes_grid1/axes_rgb.py,sha256=pabgaWJuLTCPw2FlT6Zfy5d0_95CEvaLeosWRTElR98,5227\nmpl_toolkits/axes_grid1/axes_size.py,sha256=UAEQ-t0qeJlQcwbbrY4tK2NuSWheFyUXIkk4BUCauHc,7713\nmpl_toolkits/axes_grid1/inset_locator.py,sha256=_2U8ZAj_x7gjKhPk40VSbzE7L6wO2VY-OoOMfd6xOJs,19649\nmpl_toolkits/axes_grid1/mpl_axes.py,sha256=vFCttnj9JIgY3Mt2eOi-O_FVvdZ6SW_sBtIBFib6bz4,4251\nmpl_toolkits/axes_grid1/parasite_axes.py,sha256=809Uy3bLgXIDIGztefcvS9EoZcu3KfMV1QwLzX8qVT4,9404\nmpl_toolkits/axes_grid1/tests/__init__.py,sha256=sKLxL9jEJBX7eh5OumtXSOnTriPrJUkujTHFtnJVFrM,365\nmpl_toolkits/axes_grid1/tests/__pycache__/__init__.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/tests/__pycache__/conftest.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/tests/__pycache__/test_axes_grid1.cpython-313.pyc,,\nmpl_toolkits/axes_grid1/tests/conftest.py,sha256=zB61sy90X97YJ16mIGiuaEAaBIjBEzRAK_qfSCichQM,147\nmpl_toolkits/axes_grid1/tests/test_axes_grid1.py,sha256=x-W845Cvl2O-eGGhpxKDayFg7-QQXNA94nODLCFPpJc,29093\nmpl_toolkits/axisartist/__init__.py,sha256=RPaNDl22FbmDP7ZRsku1yCqpoNqcclCk0a3rXj3G7fE,631\nmpl_toolkits/axisartist/__pycache__/__init__.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/angle_helper.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/axes_divider.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/axis_artist.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/axisline_style.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/axislines.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/floating_axes.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/grid_finder.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/grid_helper_curvelinear.cpython-313.pyc,,\nmpl_toolkits/axisartist/__pycache__/parasite_axes.cpython-313.pyc,,\nmpl_toolkits/axisartist/angle_helper.py,sha256=-mjKpaR1pLMJuoc0sx0_V3bv0iRPMrpS7r_WI0UYrCc,12952\nmpl_toolkits/axisartist/axes_divider.py,sha256=65xSCQ9cHSC3KE7J7HxS4bfsDTAbPmwyz1jJ43BqnBs,122\nmpl_toolkits/axisartist/axis_artist.py,sha256=9FY9yXl8eF5QuBvF8-Vipv_rmdpcOlA3Q48a5v7FoeA,38328\nmpl_toolkits/axisartist/axisline_style.py,sha256=9jbDkXEzMQiDHR-lDYKZEvTADtJwt2qlN1cErVUUdx0,6723\nmpl_toolkits/axisartist/axislines.py,sha256=QxKvChTaRPj0ovvxdrfr3pOzExEIf5svDwxRE7enEXg,16556\nmpl_toolkits/axisartist/floating_axes.py,sha256=kfhWKkmiy8tkXoVHvooTidXIlicU861VncElsUcBhLo,10337\nmpl_toolkits/axisartist/grid_finder.py,sha256=Hi2zwnQilavgrqWKScuSRba_WBPqqrbmErGU0XyAsOo,12265\nmpl_toolkits/axisartist/grid_helper_curvelinear.py,sha256=ofN7pPqEMh3r6bSf9eOHkAZEOrmhiNZV-Yig3jozkC4,12349\nmpl_toolkits/axisartist/parasite_axes.py,sha256=Ydi4-0Lbczr6K7Sz1-fRwK4Tm8KlHrOIumx67Xbo_9c,244\nmpl_toolkits/axisartist/tests/__init__.py,sha256=sKLxL9jEJBX7eh5OumtXSOnTriPrJUkujTHFtnJVFrM,365\nmpl_toolkits/axisartist/tests/__pycache__/__init__.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/conftest.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/test_angle_helper.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/test_axis_artist.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/test_axislines.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/test_floating_axes.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/test_grid_finder.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/__pycache__/test_grid_helper_curvelinear.cpython-313.pyc,,\nmpl_toolkits/axisartist/tests/conftest.py,sha256=zB61sy90X97YJ16mIGiuaEAaBIjBEzRAK_qfSCichQM,147\nmpl_toolkits/axisartist/tests/test_angle_helper.py,sha256=PwhJwBm2kk4uMyhdO5arQs8IlqSX2vN0hvUzI7YHqrw,5670\nmpl_toolkits/axisartist/tests/test_axis_artist.py,sha256=wt3bicVgUPnBX48-dH0Z6hboHgutIgwVpaGkcUZDeVU,2980\nmpl_toolkits/axisartist/tests/test_axislines.py,sha256=NXegrvEzVWovshta-qjbUKA2tpQcAbjYbfwkf6tKT6Y,4353\nmpl_toolkits/axisartist/tests/test_floating_axes.py,sha256=l24VB1SLrsJZOMMH2jmBny9ETha4AqAM5KokdGOa5Wk,4083\nmpl_toolkits/axisartist/tests/test_grid_finder.py,sha256=cwQLDOdcJbAY2E7dr8595yzuNh1_Yh80r_O8WGT2hMY,1156\nmpl_toolkits/axisartist/tests/test_grid_helper_curvelinear.py,sha256=OhHej0vCfCjJJknT7yIt4OxZd6OMJCXnFoT3pzqUtTo,7216\nmpl_toolkits/mplot3d/__init__.py,sha256=fH9HdMfFMvjbIWqy2gjQnm2m3ae1CvLiuH6LwKHo0kI,49\nmpl_toolkits/mplot3d/__pycache__/__init__.cpython-313.pyc,,\nmpl_toolkits/mplot3d/__pycache__/art3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/__pycache__/axes3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/__pycache__/axis3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/__pycache__/proj3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/art3d.py,sha256=ovygkCV4P7dQ9xIicczbJyyAbaEy2C1HYnzjuV3COus,50548\nmpl_toolkits/mplot3d/axes3d.py,sha256=hCBda2QB6_OYyKEJOG0paPEgDPmLIcrEMkZuKqOUFho,157921\nmpl_toolkits/mplot3d/axis3d.py,sha256=eQPWo2TKbRsPY8JUt5drjBbyRdVKBgeT2EF4HGg51oU,29327\nmpl_toolkits/mplot3d/proj3d.py,sha256=6Hm6WPzeu_wjfeR8afrQ1nCfjS0p3wjvoSIxJWVlS0s,6349\nmpl_toolkits/mplot3d/tests/__init__.py,sha256=sKLxL9jEJBX7eh5OumtXSOnTriPrJUkujTHFtnJVFrM,365\nmpl_toolkits/mplot3d/tests/__pycache__/__init__.cpython-313.pyc,,\nmpl_toolkits/mplot3d/tests/__pycache__/conftest.cpython-313.pyc,,\nmpl_toolkits/mplot3d/tests/__pycache__/test_art3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/tests/__pycache__/test_axes3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/tests/__pycache__/test_legend3d.cpython-313.pyc,,\nmpl_toolkits/mplot3d/tests/conftest.py,sha256=zB61sy90X97YJ16mIGiuaEAaBIjBEzRAK_qfSCichQM,147\nmpl_toolkits/mplot3d/tests/test_art3d.py,sha256=AdFcJf0vz1_b-PIn2cVonPHF1vZw2EOHvmjdgBRa5Yo,3317\nmpl_toolkits/mplot3d/tests/test_axes3d.py,sha256=Xf5M1DipyVfsBBF8dA3AXg5U0Hts194EfAh57VSupE4,92348\nmpl_toolkits/mplot3d/tests/test_legend3d.py,sha256=QGPaoaucJP9KIC68g8zmk4divB_w5PtQc4DMIHMpcA8,4343\npylab.py,sha256=zUXU0l7e7C5jmDSJbM0GLQxBun3xzuXNf1tuoZYA6Xk,110\n
.venv\Lib\site-packages\matplotlib-3.10.3.dist-info\RECORD
RECORD
Other
73,557
0.5
0
0
awesome-app
19
2024-07-27T13:34:16.284727
Apache-2.0
false
f06f62a9f284cac7f4ac6279515eda4c
Wheel-Version: 1.0\nGenerator: meson\nRoot-Is-Purelib: false\nTag: cp313-cp313-win_amd64
.venv\Lib\site-packages\matplotlib-3.10.3.dist-info\WHEEL
WHEEL
Other
85
0.5
0
0
awesome-app
749
2023-08-15T15:40:16.646694
MIT
false
51337c97620c3b1e0d781ad8efe86cea
"""A matplotlib backend for publishing figures via display_data"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the BSD 3-Clause License.\n\nimport matplotlib\nfrom matplotlib import colors\nfrom matplotlib.backends import backend_agg\nfrom matplotlib.backends.backend_agg import FigureCanvasAgg\nfrom matplotlib._pylab_helpers import Gcf\nfrom matplotlib.figure import Figure\n\nfrom IPython.core.interactiveshell import InteractiveShell\nfrom IPython.core.getipython import get_ipython\nfrom IPython.core.pylabtools import select_figure_formats\nfrom IPython.display import display\n\nfrom .config import InlineBackend\n\n\ndef new_figure_manager(num, *args, FigureClass=Figure, **kwargs):\n """\n Return a new figure manager for a new figure instance.\n\n This function is part of the API expected by Matplotlib backends.\n """\n return new_figure_manager_given_figure(num, FigureClass(*args, **kwargs))\n\n\ndef new_figure_manager_given_figure(num, figure):\n """\n Return a new figure manager for a given figure instance.\n\n This function is part of the API expected by Matplotlib backends.\n """\n manager = backend_agg.new_figure_manager_given_figure(num, figure)\n\n # Hack: matplotlib FigureManager objects in interacive backends (at least\n # in some of them) monkeypatch the figure object and add a .show() method\n # to it. This applies the same monkeypatch in order to support user code\n # that might expect `.show()` to be part of the official API of figure\n # objects. For further reference:\n # https://github.com/ipython/ipython/issues/1612\n # https://github.com/matplotlib/matplotlib/issues/835\n\n if not hasattr(figure, 'show'):\n # Queue up `figure` for display\n figure.show = lambda *a: display(\n figure, metadata=_fetch_figure_metadata(figure))\n\n # If matplotlib was manually set to non-interactive mode, this function\n # should be a no-op (otherwise we'll generate duplicate plots, since a user\n # who set ioff() manually expects to make separate draw/show calls).\n if not matplotlib.is_interactive():\n return manager\n\n # ensure current figure will be drawn, and each subsequent call\n # of draw_if_interactive() moves the active figure to ensure it is\n # drawn last\n try:\n show._to_draw.remove(figure)\n except ValueError:\n # ensure it only appears in the draw list once\n pass\n # Queue up the figure for drawing in next show() call\n show._to_draw.append(figure)\n show._draw_called = True\n\n return manager\n\n\ndef show(close=None, block=None):\n """Show all figures as SVG/PNG payloads sent to the IPython clients.\n\n Parameters\n ----------\n close : bool, optional\n If true, a ``plt.close('all')`` call is automatically issued after\n sending all the figures. If this is set, the figures will entirely\n removed from the internal list of figures.\n block : Not used.\n The `block` parameter is a Matplotlib experimental parameter.\n We accept it in the function signature for compatibility with other\n backends.\n """\n if close is None:\n close = InlineBackend.instance().close_figures\n try:\n for figure_manager in Gcf.get_all_fig_managers():\n display(\n figure_manager.canvas.figure,\n metadata=_fetch_figure_metadata(figure_manager.canvas.figure)\n )\n finally:\n show._to_draw = []\n # only call close('all') if any to close\n # close triggers gc.collect, which can be slow\n if close and Gcf.get_all_fig_managers():\n matplotlib.pyplot.close('all')\n\n\n# This flag will be reset by draw_if_interactive when called\nshow._draw_called = False\n# list of figures to draw when flush_figures is called\nshow._to_draw = []\n\n\ndef flush_figures():\n """Send all figures that changed\n\n This is meant to be called automatically and will call show() if, during\n prior code execution, there had been any calls to draw_if_interactive.\n\n This function is meant to be used as a post_execute callback in IPython,\n so user-caused errors are handled with showtraceback() instead of being\n allowed to raise. If this function is not called from within IPython,\n then these exceptions will raise.\n """\n if not show._draw_called:\n return\n\n try:\n if InlineBackend.instance().close_figures:\n # ignore the tracking, just draw and close all figures\n try:\n return show(True)\n except Exception as e:\n # safely show traceback if in IPython, else raise\n ip = get_ipython()\n if ip is None:\n raise e\n else:\n ip.showtraceback()\n return\n\n # exclude any figures that were closed:\n active = set([fm.canvas.figure for fm in Gcf.get_all_fig_managers()])\n for fig in [fig for fig in show._to_draw if fig in active]:\n try:\n display(fig, metadata=_fetch_figure_metadata(fig))\n except Exception as e:\n # safely show traceback if in IPython, else raise\n ip = get_ipython()\n if ip is None:\n raise e\n else:\n ip.showtraceback()\n return\n finally:\n # clear flags for next round\n show._to_draw = []\n show._draw_called = False\n\n\n# Changes to matplotlib in version 1.2 requires a mpl backend to supply a default\n# figurecanvas. This is set here to a Agg canvas\n# See https://github.com/matplotlib/matplotlib/pull/1125\nFigureCanvas = FigureCanvasAgg\n\n\ndef configure_inline_support(shell, backend):\n """Configure an IPython shell object for matplotlib use.\n\n Parameters\n ----------\n shell : InteractiveShell instance\n\n backend : matplotlib backend\n """\n # If using our svg payload backend, register the post-execution\n # function that will pick up the results for display. This can only be\n # done with access to the real shell object.\n\n cfg = InlineBackend.instance(parent=shell)\n cfg.shell = shell\n if cfg not in shell.configurables:\n shell.configurables.append(cfg)\n\n if backend in ('inline', 'module://matplotlib_inline.backend_inline'):\n shell.events.register('post_execute', flush_figures)\n\n # Save rcParams that will be overwrittern\n shell._saved_rcParams = {}\n for k in cfg.rc:\n shell._saved_rcParams[k] = matplotlib.rcParams[k]\n # load inline_rc\n matplotlib.rcParams.update(cfg.rc)\n new_backend_name = "inline"\n else:\n try:\n shell.events.unregister('post_execute', flush_figures)\n except ValueError:\n pass\n if hasattr(shell, '_saved_rcParams'):\n matplotlib.rcParams.update(shell._saved_rcParams)\n del shell._saved_rcParams\n new_backend_name = "other"\n\n # only enable the formats once -> don't change the enabled formats (which the user may\n # has changed) when getting another "%matplotlib inline" call.\n # See https://github.com/ipython/ipykernel/issues/29\n cur_backend = getattr(configure_inline_support, "current_backend", "unset")\n if new_backend_name != cur_backend:\n # Setup the default figure format\n select_figure_formats(shell, cfg.figure_formats, **cfg.print_figure_kwargs)\n configure_inline_support.current_backend = new_backend_name\n\n\ndef _enable_matplotlib_integration():\n """Enable extra IPython matplotlib integration when we are loaded as the matplotlib backend."""\n from matplotlib import get_backend\n ip = get_ipython()\n backend = get_backend()\n if ip and backend in ('inline', 'module://matplotlib_inline.backend_inline'):\n from IPython.core.pylabtools import activate_matplotlib\n try:\n activate_matplotlib(backend)\n configure_inline_support(ip, backend)\n except (ImportError, AttributeError):\n # bugs may cause a circular import on Python 2\n def configure_once(*args):\n activate_matplotlib(backend)\n configure_inline_support(ip, backend)\n ip.events.unregister('post_run_cell', configure_once)\n ip.events.register('post_run_cell', configure_once)\n\n\n_enable_matplotlib_integration()\n\n\ndef _fetch_figure_metadata(fig):\n """Get some metadata to help with displaying a figure."""\n # determine if a background is needed for legibility\n if _is_transparent(fig.get_facecolor()):\n # the background is transparent\n ticksLight = _is_light([label.get_color()\n for axes in fig.axes\n for axis in (axes.xaxis, axes.yaxis)\n for label in axis.get_ticklabels()])\n if ticksLight.size and (ticksLight == ticksLight[0]).all():\n # there are one or more tick labels, all with the same lightness\n return {'needs_background': 'dark' if ticksLight[0] else 'light'}\n\n return None\n\n\ndef _is_light(color):\n """Determines if a color (or each of a sequence of colors) is light (as\n opposed to dark). Based on ITU BT.601 luminance formula (see\n https://stackoverflow.com/a/596241)."""\n rgbaArr = colors.to_rgba_array(color)\n return rgbaArr[:, :3].dot((.299, .587, .114)) > .5\n\n\ndef _is_transparent(color):\n """Determine transparency from alpha."""\n rgba = colors.to_rgba(color)\n return rgba[3] < .5\n\n\ndef set_matplotlib_formats(*formats, **kwargs):\n """Select figure formats for the inline backend. Optionally pass quality for JPEG.\n\n For example, this enables PNG and JPEG output with a JPEG quality of 90%::\n\n In [1]: set_matplotlib_formats('png', 'jpeg', quality=90)\n\n To set this in your config files use the following::\n\n c.InlineBackend.figure_formats = {'png', 'jpeg'}\n c.InlineBackend.print_figure_kwargs.update({'quality' : 90})\n\n Parameters\n ----------\n *formats : strs\n One or more figure formats to enable: 'png', 'retina', 'jpeg', 'svg', 'pdf'.\n **kwargs\n Keyword args will be relayed to ``figure.canvas.print_figure``.\n """\n # build kwargs, starting with InlineBackend config\n cfg = InlineBackend.instance()\n kw = {}\n kw.update(cfg.print_figure_kwargs)\n kw.update(**kwargs)\n shell = InteractiveShell.instance()\n select_figure_formats(shell, formats, **kw)\n\n\ndef set_matplotlib_close(close=True):\n """Set whether the inline backend closes all figures automatically or not.\n\n By default, the inline backend used in the IPython Notebook will close all\n matplotlib figures automatically after each cell is run. This means that\n plots in different cells won't interfere. Sometimes, you may want to make\n a plot in one cell and then refine it in later cells. This can be accomplished\n by::\n\n In [1]: set_matplotlib_close(False)\n\n To set this in your config files use the following::\n\n c.InlineBackend.close_figures = False\n\n Parameters\n ----------\n close : bool\n Should all matplotlib figures be automatically closed after each cell is\n run?\n """\n cfg = InlineBackend.instance()\n cfg.close_figures = close\n
.venv\Lib\site-packages\matplotlib_inline\backend_inline.py
backend_inline.py
Python
11,354
0.95
0.221865
0.184
awesome-app
114
2025-04-30T06:49:28.884271
MIT
false
6802d39c40168fcef11c9243baaf8075
"""Configurable for configuring the IPython inline backend\n\nThis module does not import anything from matplotlib.\n"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the BSD 3-Clause License.\n\nfrom traitlets.config.configurable import SingletonConfigurable\nfrom traitlets import (\n Dict, Instance, Set, Bool, TraitError, Unicode\n)\n\n\n# Configurable for inline backend options\ndef pil_available():\n """Test if PIL/Pillow is available"""\n out = False\n try:\n from PIL import Image # noqa\n out = True\n except ImportError:\n pass\n return out\n\n\n# Inherit from InlineBackendConfig for deprecation purposes\nclass InlineBackendConfig(SingletonConfigurable):\n pass\n\n\nclass InlineBackend(InlineBackendConfig):\n """An object to store configuration of the inline backend."""\n\n # While we are deprecating overriding matplotlib defaults out of the\n # box, this structure should remain here (empty) for API compatibility\n # and the use of other tools that may need it. Specifically Spyder takes\n # advantage of it.\n # See https://github.com/ipython/ipython/issues/10383 for details.\n rc = Dict(\n {},\n help="""Dict to manage matplotlib configuration defaults in the inline\n backend. As of v0.1.4 IPython/Jupyter do not override defaults out of\n the box, but third-party tools may use it to manage rc data. To change\n personal defaults for matplotlib, use matplotlib's configuration\n tools, or customize this class in your `ipython_config.py` file for\n IPython/Jupyter-specific usage.""").tag(config=True)\n\n figure_formats = Set(\n {'png'},\n help="""A set of figure formats to enable: 'png',\n 'retina', 'jpeg', 'svg', 'pdf'.""").tag(config=True)\n\n def _update_figure_formatters(self):\n if self.shell is not None:\n from IPython.core.pylabtools import select_figure_formats\n select_figure_formats(self.shell, self.figure_formats, **self.print_figure_kwargs)\n\n def _figure_formats_changed(self, name, old, new):\n if 'jpg' in new or 'jpeg' in new:\n if not pil_available():\n raise TraitError("Requires PIL/Pillow for JPG figures")\n self._update_figure_formatters()\n\n figure_format = Unicode(help="""The figure format to enable (deprecated\n use `figure_formats` instead)""").tag(config=True)\n\n def _figure_format_changed(self, name, old, new):\n if new:\n self.figure_formats = {new}\n\n print_figure_kwargs = Dict(\n {'bbox_inches': 'tight'},\n help="""Extra kwargs to be passed to fig.canvas.print_figure.\n\n Logical examples include: bbox_inches, quality (for jpeg figures), etc.\n """\n ).tag(config=True)\n _print_figure_kwargs_changed = _update_figure_formatters\n\n close_figures = Bool(\n True,\n help="""Close all figures at the end of each cell.\n\n When True, ensures that each cell starts with no active figures, but it\n also means that one must keep track of references in order to edit or\n redraw figures in subsequent cells. This mode is ideal for the notebook,\n where residual plots from other cells might be surprising.\n\n When False, one must call figure() to create new figures. This means\n that gcf() and getfigs() can reference figures created in other cells,\n and the active figure can continue to be edited with pylab/pyplot\n methods that reference the current active figure. This mode facilitates\n iterative editing of figures, and behaves most consistently with\n other matplotlib backends, but figure barriers between cells must\n be explicit.\n """).tag(config=True)\n\n shell = Instance('IPython.core.interactiveshell.InteractiveShellABC',\n allow_none=True)\n
.venv\Lib\site-packages\matplotlib_inline\config.py
config.py
Python
3,911
0.95
0.23
0.113924
python-kit
771
2023-11-25T22:35:46.137092
MIT
false
e0cd4ac48f53669595556b386676b25b
from . import backend_inline, config # noqa\n__version__ = "0.1.7" # noqa\n
.venv\Lib\site-packages\matplotlib_inline\__init__.py
__init__.py
Python
75
0.75
0
0
awesome-app
811
2024-01-01T05:48:23.497720
GPL-3.0
false
2be5a589abe5546a567b4b74a9b635d8
\n\n
.venv\Lib\site-packages\matplotlib_inline\__pycache__\backend_inline.cpython-313.pyc
backend_inline.cpython-313.pyc
Other
12,343
0.95
0.08284
0.013793
awesome-app
910
2024-03-25T12:59:27.201172
MIT
false
cdcde892db9870b86a7a2d0c1b6b8b25
\n\n
.venv\Lib\site-packages\matplotlib_inline\__pycache__\config.cpython-313.pyc
config.cpython-313.pyc
Other
4,620
0.95
0.123077
0
node-utils
610
2023-07-22T10:47:33.568934
BSD-3-Clause
false
3f752c5f7a2a044cc400aa5a68b2aacc
\n\n
.venv\Lib\site-packages\matplotlib_inline\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
280
0.7
0
0
react-lib
279
2025-06-26T12:32:46.789008
Apache-2.0
false
4b9a3e45852911d5e5378c78e18f72de
[matplotlib.backend]\ninline = matplotlib_inline.backend_inline\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\entry_points.txt
entry_points.txt
Other
63
0.5
0
0
awesome-app
907
2024-12-13T12:10:04.669817
BSD-3-Clause
false
e5edebf492d82d7bc04e5362930779a3
pip\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\INSTALLER
INSTALLER
Other
4
0.5
0
0
python-kit
398
2024-07-27T13:45:13.510136
BSD-3-Clause
false
365c9bfeb7d89244f2ce01c1de44cb85
BSD 3-Clause License\n\nCopyright (c) 2019-2022, IPython Development Team.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\LICENSE
LICENSE
Other
1,538
0.7
0
0
react-lib
990
2025-02-21T20:45:37.368680
Apache-2.0
false
d4692a0eb42ca54892399db2cb35e61e
Metadata-Version: 2.1\nName: matplotlib-inline\nVersion: 0.1.7\nSummary: Inline Matplotlib backend for Jupyter\nAuthor-email: IPython Development Team <ipython-dev@python.org>\nLicense: BSD 3-Clause License\n \n Copyright (c) 2019-2022, IPython Development Team.\n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n \n 1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n \n 2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n \n 3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n \nProject-URL: Homepage, https://github.com/ipython/matplotlib-inline\nKeywords: ipython,jupyter,matplotlib,python\nClassifier: Development Status :: 5 - Production/Stable\nClassifier: Framework :: IPython\nClassifier: Framework :: Jupyter\nClassifier: Framework :: Jupyter :: JupyterLab\nClassifier: Framework :: Jupyter :: JupyterLab :: 3\nClassifier: Framework :: Jupyter :: JupyterLab :: 4\nClassifier: Intended Audience :: Developers\nClassifier: Intended Audience :: Science/Research\nClassifier: License :: OSI Approved :: BSD License\nClassifier: Programming Language :: Python\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3.8\nClassifier: Programming Language :: Python :: 3.9\nClassifier: Programming Language :: Python :: 3.10\nClassifier: Programming Language :: Python :: 3.11\nClassifier: Programming Language :: Python :: 3.12\nClassifier: Topic :: Multimedia :: Graphics\nRequires-Python: >=3.8\nDescription-Content-Type: text/markdown\nLicense-File: LICENSE\nRequires-Dist: traitlets\n\n# Matplotlib Inline Back-end for IPython and Jupyter\n\nThis package provides support for matplotlib to display figures directly inline in the Jupyter notebook and related clients, as shown below.\n\n## Installation\n\nWith conda:\n\n```bash\nconda install -c conda-forge matplotlib-inline\n```\n\nWith pip:\n\n```bash\npip install matplotlib-inline\n```\n\n## Usage\n\nNote that in current versions of JupyterLab and Jupyter Notebook, the explicit use of the `%matplotlib inline` directive is not needed anymore, though other third-party clients may still require it.\n\nThis will produce a figure immediately below:\n\n```python\n%matplotlib inline\n\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nx = np.linspace(0, 3*np.pi, 500)\nplt.plot(x, np.sin(x**2))\nplt.title('A simple chirp');\n```\n\n## License\n\nLicensed under the terms of the BSD 3-Clause License, by the IPython Development Team (see `LICENSE` file).\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\METADATA
METADATA
Other
3,873
0.95
0.030928
0.053333
react-lib
900
2024-11-04T22:04:16.070853
BSD-3-Clause
false
6c4fd2563f635373265b899318153eac
matplotlib_inline-0.1.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4\nmatplotlib_inline-0.1.7.dist-info/LICENSE,sha256=hSGwNsZEjg4KpyE9RxO2_e4PTGTJ8yBFD3c0a_XA6OQ,1538\nmatplotlib_inline-0.1.7.dist-info/METADATA,sha256=Xz23GdN-XdBaedxKOTUXCuChARrN9NvHcKHdnkpv08E,3873\nmatplotlib_inline-0.1.7.dist-info/RECORD,,\nmatplotlib_inline-0.1.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92\nmatplotlib_inline-0.1.7.dist-info/entry_points.txt,sha256=NxSdh3hjUJgJ73Z6FN60JWKd4Ll30Iy1nlIoNAvYGIU,63\nmatplotlib_inline-0.1.7.dist-info/top_level.txt,sha256=0ViJqRtJZLIS7IfjHrUgYI6RIvWY0cfk1OjAlp40Zsw,18\nmatplotlib_inline/__init__.py,sha256=tnQF2ytXKVHudRzPup4ymHdSygJW8znm2Ox3CVF9FQs,75\nmatplotlib_inline/__pycache__/__init__.cpython-313.pyc,,\nmatplotlib_inline/__pycache__/backend_inline.cpython-313.pyc,,\nmatplotlib_inline/__pycache__/config.cpython-313.pyc,,\nmatplotlib_inline/backend_inline.py,sha256=pR2qQcdCoXAEen7FXIyJvgRMaS4V9pker_IbabROH6E,11354\nmatplotlib_inline/config.py,sha256=Z87OCv-LStYhOwQ2LmHDNxwkAn9BLFKTbHI7XSAT1Jc,3911\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\RECORD
RECORD
Other
1,087
0.7
0
0
react-lib
589
2025-02-14T05:33:29.377478
GPL-3.0
false
2a2957b39331ec5ee36afe0405e05d64
matplotlib_inline\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\top_level.txt
top_level.txt
Other
18
0.5
0
0
awesome-app
258
2024-03-30T09:07:46.688663
MIT
false
0268872a74dcee9243fe4d757ee86dfc
Wheel-Version: 1.0\nGenerator: bdist_wheel (0.43.0)\nRoot-Is-Purelib: true\nTag: py3-none-any\n\n
.venv\Lib\site-packages\matplotlib_inline-0.1.7.dist-info\WHEEL
WHEEL
Other
92
0.5
0
0
react-lib
531
2023-07-13T13:35:09.310710
MIT
false
43136dde7dd276932f6197bb6d676ef4
import re\nfrom typing import Optional, List, Tuple, Match, Pattern\nfrom .util import (\n unikey,\n escape_url,\n expand_tab,\n expand_leading_tab,\n)\nfrom .core import Parser, BlockState\nfrom .helpers import (\n LINK_LABEL,\n HTML_TAGNAME,\n HTML_ATTRIBUTES,\n BLOCK_TAGS,\n PRE_TAGS,\n unescape_char,\n parse_link_href,\n parse_link_title,\n)\nfrom .list_parser import parse_list, LIST_PATTERN\n\n_INDENT_CODE_TRIM = re.compile(r"^ {1,4}", flags=re.M)\n_ATX_HEADING_TRIM = re.compile(r"(\s+|^)#+\s*$")\n_BLOCK_QUOTE_TRIM = re.compile(r"^ ?", flags=re.M)\n_BLOCK_QUOTE_LEADING = re.compile(r"^ *>", flags=re.M)\n\n_LINE_BLANK_END = re.compile(r"\n[ \t]*\n$")\n_BLANK_TO_LINE = re.compile(r"[ \t]*\n")\n\n_BLOCK_TAGS_PATTERN = "(" + "|".join(BLOCK_TAGS) + "|" + "|".join(PRE_TAGS) + ")"\n_OPEN_TAG_END = re.compile(HTML_ATTRIBUTES + r"[ \t]*>[ \t]*(?:\n|$)")\n_CLOSE_TAG_END = re.compile(r"[ \t]*>[ \t]*(?:\n|$)")\n_STRICT_BLOCK_QUOTE = re.compile(r"( {0,3}>[^\n]*(?:\n|$))+")\n\n\nclass BlockParser(Parser[BlockState]):\n state_cls = BlockState\n\n BLANK_LINE = re.compile(r"(^[ \t\v\f]*\n)+", re.M)\n\n RAW_HTML = (\n r"^ {0,3}("\n r"</?" + HTML_TAGNAME + r"|"\n r"<!--|" # comment\n r"<\?|" # script\n r"<![A-Z]|"\n r"<!\[CDATA\[)"\n )\n\n BLOCK_HTML = (\n r"^ {0,3}(?:"\n r"(?:</?" + _BLOCK_TAGS_PATTERN + r"(?:[ \t]+|\n|$))"\n r"|<!--" # comment\n r"|<\?" # script\n r"|<![A-Z]"\n r"|<!\[CDATA\[)"\n )\n\n SPECIFICATION = {\n "blank_line": r"(^[ \t\v\f]*\n)+",\n "atx_heading": r"^ {0,3}(?P<atx_1>#{1,6})(?!#+)(?P<atx_2>[ \t]*|[ \t]+.*?)$",\n "setex_heading": r"^ {0,3}(?P<setext_1>=|-){1,}[ \t]*$",\n "fenced_code": (\n r"^(?P<fenced_1> {0,3})(?P<fenced_2>`{3,}|~{3,})"\n r"[ \t]*(?P<fenced_3>.*?)$"\n ),\n "indent_code": (\n r"^(?: {4}| *\t)[^\n]+(?:\n+|$)"\n r"((?:(?: {4}| *\t)[^\n]+(?:\n+|$))|\s)*"\n ),\n "thematic_break": r"^ {0,3}((?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$",\n "ref_link": r"^ {0,3}\[(?P<reflink_1>" + LINK_LABEL + r")\]:",\n "block_quote": r"^ {0,3}>(?P<quote_1>.*?)$",\n "list": LIST_PATTERN,\n "block_html": BLOCK_HTML,\n "raw_html": RAW_HTML,\n }\n\n DEFAULT_RULES = (\n "fenced_code",\n "indent_code",\n "atx_heading",\n "setex_heading",\n "thematic_break",\n "block_quote",\n "list",\n "ref_link",\n "raw_html",\n "blank_line",\n )\n\n def __init__(\n self,\n block_quote_rules: Optional[List[str]] = None,\n list_rules: Optional[List[str]] = None,\n max_nested_level: int = 6,\n ):\n super(BlockParser, self).__init__()\n\n if block_quote_rules is None:\n block_quote_rules = list(self.DEFAULT_RULES)\n\n if list_rules is None:\n list_rules = list(self.DEFAULT_RULES)\n\n self.block_quote_rules = block_quote_rules\n self.list_rules = list_rules\n self.max_nested_level = max_nested_level\n # register default parse methods\n self._methods = {name: getattr(self, "parse_" + name) for name in self.SPECIFICATION}\n\n def parse_blank_line(self, m: Match[str], state: BlockState) -> int:\n """Parse token for blank lines."""\n state.append_token({"type": "blank_line"})\n return m.end()\n\n def parse_thematic_break(self, m: Match[str], state: BlockState) -> int:\n """Parse token for thematic break, e.g. ``<hr>`` tag in HTML."""\n state.append_token({"type": "thematic_break"})\n # $ does not count '\n'\n return m.end() + 1\n\n def parse_indent_code(self, m: Match[str], state: BlockState) -> int:\n """Parse token for code block which is indented by 4 spaces."""\n # it is a part of the paragraph\n end_pos = state.append_paragraph()\n if end_pos:\n return end_pos\n\n code = m.group(0)\n code = expand_leading_tab(code)\n code = _INDENT_CODE_TRIM.sub("", code)\n code = code.strip("\n")\n state.append_token({"type": "block_code", "raw": code, "style": "indent"})\n return m.end()\n\n def parse_fenced_code(self, m: Match[str], state: BlockState) -> Optional[int]:\n """Parse token for fenced code block. A fenced code block is started with\n 3 or more backtick(`) or tilde(~).\n\n An example of a fenced code block:\n\n .. code-block:: markdown\n\n ```python\n def markdown(text):\n return mistune.html(text)\n ```\n """\n spaces = m.group("fenced_1")\n marker = m.group("fenced_2")\n info = m.group("fenced_3")\n\n c = marker[0]\n if info and c == "`":\n # CommonMark Example 145\n # Info strings for backtick code blocks cannot contain backticks\n if info.find(c) != -1:\n return None\n\n _end = re.compile(r"^ {0,3}" + c + "{" + str(len(marker)) + r",}[ \t]*(?:\n|$)", re.M)\n cursor_start = m.end() + 1\n\n m2 = _end.search(state.src, cursor_start)\n if m2:\n code = state.src[cursor_start : m2.start()]\n end_pos = m2.end()\n else:\n code = state.src[cursor_start:]\n end_pos = state.cursor_max\n\n if spaces and code:\n _trim_pattern = re.compile("^ {0," + str(len(spaces)) + "}", re.M)\n code = _trim_pattern.sub("", code)\n\n token = {"type": "block_code", "raw": code, "style": "fenced", "marker": marker}\n if info:\n info = unescape_char(info)\n token["attrs"] = {"info": info.strip()}\n\n state.append_token(token)\n return end_pos\n\n def parse_atx_heading(self, m: Match[str], state: BlockState) -> int:\n """Parse token for ATX heading. An ATX heading is started with 1 to 6\n symbol of ``#``."""\n level = len(m.group("atx_1"))\n text = m.group("atx_2").strip()\n # remove last #\n if text:\n text = _ATX_HEADING_TRIM.sub("", text)\n\n token = {"type": "heading", "text": text, "attrs": {"level": level}, "style": "atx"}\n state.append_token(token)\n return m.end() + 1\n\n def parse_setex_heading(self, m: Match[str], state: BlockState) -> Optional[int]:\n """Parse token for setex style heading. A setex heading syntax looks like:\n\n .. code-block:: markdown\n\n H1 title\n ========\n """\n last_token = state.last_token()\n if last_token and last_token["type"] == "paragraph":\n level = 1 if m.group("setext_1") == "=" else 2\n last_token["type"] = "heading"\n last_token["style"] = "setext"\n last_token["attrs"] = {"level": level}\n return m.end() + 1\n\n sc = self.compile_sc(["thematic_break", "list"])\n m2 = sc.match(state.src, state.cursor)\n if m2:\n return self.parse_method(m2, state)\n return None\n\n def parse_ref_link(self, m: Match[str], state: BlockState) -> Optional[int]:\n """Parse link references and save the link information into ``state.env``.\n\n Here is an example of a link reference:\n\n .. code-block:: markdown\n\n a [link][example]\n\n [example]: https://example.com "Optional title"\n\n This method will save the link reference into ``state.env`` as::\n\n state.env['ref_links']['example'] = {\n 'url': 'https://example.com',\n 'title': "Optional title",\n }\n """\n end_pos = state.append_paragraph()\n if end_pos:\n return end_pos\n\n label = m.group("reflink_1")\n key = unikey(label)\n if not key:\n return None\n\n href, href_pos = parse_link_href(state.src, m.end(), block=True)\n if href is None:\n return None\n\n assert href_pos is not None\n\n _blank = self.BLANK_LINE.search(state.src, href_pos)\n if _blank:\n max_pos = _blank.start()\n else:\n max_pos = state.cursor_max\n\n title, title_pos = parse_link_title(state.src, href_pos, max_pos)\n if title_pos:\n m2 = _BLANK_TO_LINE.match(state.src, title_pos)\n if m2:\n title_pos = m2.end()\n else:\n title_pos = None\n title = None\n\n if title_pos is None:\n m3 = _BLANK_TO_LINE.match(state.src, href_pos)\n if m3:\n href_pos = m3.end()\n else:\n href_pos = None\n href = None\n\n end_pos = title_pos or href_pos\n if not end_pos:\n return None\n\n if key not in state.env["ref_links"]:\n assert href is not None\n href = unescape_char(href)\n data = {"url": escape_url(href), "label": label}\n if title:\n data["title"] = title\n state.env["ref_links"][key] = data\n return end_pos\n\n def extract_block_quote(self, m: Match[str], state: BlockState) -> Tuple[str, Optional[int]]:\n """Extract text and cursor end position of a block quote."""\n\n # cleanup at first to detect if it is code block\n text = m.group("quote_1") + "\n"\n text = expand_leading_tab(text, 3)\n text = _BLOCK_QUOTE_TRIM.sub("", text)\n\n sc = self.compile_sc(["blank_line", "indent_code", "fenced_code"])\n require_marker = bool(sc.match(text))\n\n state.cursor = m.end() + 1\n\n end_pos: Optional[int] = None\n if require_marker:\n m2 = _STRICT_BLOCK_QUOTE.match(state.src, state.cursor)\n if m2:\n quote = m2.group(0)\n quote = _BLOCK_QUOTE_LEADING.sub("", quote)\n quote = expand_leading_tab(quote, 3)\n quote = _BLOCK_QUOTE_TRIM.sub("", quote)\n text += quote\n state.cursor = m2.end()\n else:\n prev_blank_line = False\n break_sc = self.compile_sc(\n [\n "blank_line",\n "thematic_break",\n "fenced_code",\n "list",\n "block_html",\n ]\n )\n while state.cursor < state.cursor_max:\n m3 = _STRICT_BLOCK_QUOTE.match(state.src, state.cursor)\n if m3:\n quote = m3.group(0)\n quote = _BLOCK_QUOTE_LEADING.sub("", quote)\n quote = expand_leading_tab(quote, 3)\n quote = _BLOCK_QUOTE_TRIM.sub("", quote)\n text += quote\n state.cursor = m3.end()\n if not quote.strip():\n prev_blank_line = True\n else:\n prev_blank_line = bool(_LINE_BLANK_END.search(quote))\n continue\n\n if prev_blank_line:\n # CommonMark Example 249\n # because of laziness, a blank line is needed between\n # a block quote and a following paragraph\n break\n\n m4 = break_sc.match(state.src, state.cursor)\n if m4:\n end_pos = self.parse_method(m4, state)\n if end_pos:\n break\n\n # lazy continuation line\n pos = state.find_line_end()\n line = state.get_text(pos)\n line = expand_leading_tab(line, 3)\n text += line\n state.cursor = pos\n\n # according to CommonMark Example 6, the second tab should be\n # treated as 4 spaces\n return expand_tab(text), end_pos\n\n def parse_block_quote(self, m: Match[str], state: BlockState) -> int:\n """Parse token for block quote. Here is an example of the syntax:\n\n .. code-block:: markdown\n\n > a block quote starts\n > with right arrows\n """\n text, end_pos = self.extract_block_quote(m, state)\n # scan children state\n child = state.child_state(text)\n if state.depth() >= self.max_nested_level - 1:\n rules = list(self.block_quote_rules)\n rules.remove("block_quote")\n else:\n rules = self.block_quote_rules\n\n self.parse(child, rules)\n token = {"type": "block_quote", "children": child.tokens}\n if end_pos:\n state.prepend_token(token)\n return end_pos\n state.append_token(token)\n return state.cursor\n\n def parse_list(self, m: Match[str], state: BlockState) -> int:\n """Parse tokens for ordered and unordered list."""\n return parse_list(self, m, state)\n\n def parse_block_html(self, m: Match[str], state: BlockState) -> Optional[int]:\n return self.parse_raw_html(m, state)\n\n def parse_raw_html(self, m: Match[str], state: BlockState) -> Optional[int]:\n marker = m.group(0).strip()\n\n # rule 2\n if marker == "<!--":\n return _parse_html_to_end(state, "-->", m.end())\n\n # rule 3\n if marker == "<?":\n return _parse_html_to_end(state, "?>", m.end())\n\n # rule 5\n if marker == "<![CDATA[":\n return _parse_html_to_end(state, "]]>", m.end())\n\n # rule 4\n if marker.startswith("<!"):\n return _parse_html_to_end(state, ">", m.end())\n\n close_tag = None\n open_tag = None\n if marker.startswith("</"):\n close_tag = marker[2:].lower()\n # rule 6\n if close_tag in BLOCK_TAGS:\n return _parse_html_to_newline(state, self.BLANK_LINE)\n else:\n open_tag = marker[1:].lower()\n # rule 1\n if open_tag in PRE_TAGS:\n end_tag = "</" + open_tag + ">"\n return _parse_html_to_end(state, end_tag, m.end())\n # rule 6\n if open_tag in BLOCK_TAGS:\n return _parse_html_to_newline(state, self.BLANK_LINE)\n\n # Blocks of type 7 may not interrupt a paragraph.\n end_pos = state.append_paragraph()\n if end_pos:\n return end_pos\n\n # rule 7\n start_pos = m.end()\n end_pos = state.find_line_end()\n if (open_tag and _OPEN_TAG_END.match(state.src, start_pos, end_pos)) or (\n close_tag and _CLOSE_TAG_END.match(state.src, start_pos, end_pos)\n ):\n return _parse_html_to_newline(state, self.BLANK_LINE)\n\n return None\n\n def parse(self, state: BlockState, rules: Optional[List[str]] = None) -> None:\n sc = self.compile_sc(rules)\n\n while state.cursor < state.cursor_max:\n m = sc.search(state.src, state.cursor)\n if not m:\n break\n\n end_pos = m.start()\n if end_pos > state.cursor:\n text = state.get_text(end_pos)\n state.add_paragraph(text)\n state.cursor = end_pos\n\n end_pos2 = self.parse_method(m, state)\n if end_pos2:\n state.cursor = end_pos2\n else:\n end_pos3 = state.find_line_end()\n text = state.get_text(end_pos3)\n state.add_paragraph(text)\n state.cursor = end_pos3\n\n if state.cursor < state.cursor_max:\n text = state.src[state.cursor :]\n state.add_paragraph(text)\n state.cursor = state.cursor_max\n\n\ndef _parse_html_to_end(state: BlockState, end_marker: str, start_pos: int) -> int:\n marker_pos = state.src.find(end_marker, start_pos)\n if marker_pos == -1:\n text = state.src[state.cursor :]\n end_pos = state.cursor_max\n else:\n text = state.get_text(marker_pos)\n state.cursor = marker_pos\n end_pos = state.find_line_end()\n text += state.get_text(end_pos)\n\n state.append_token({"type": "block_html", "raw": text})\n return end_pos\n\n\ndef _parse_html_to_newline(state: BlockState, newline: Pattern[str]) -> int:\n m = newline.search(state.src, state.cursor)\n if m:\n end_pos = m.start()\n text = state.get_text(end_pos)\n else:\n text = state.src[state.cursor :]\n end_pos = state.cursor_max\n\n state.append_token({"type": "block_html", "raw": text})\n return end_pos\n
.venv\Lib\site-packages\mistune\block_parser.py
block_parser.py
Python
16,432
0.95
0.158954
0.05569
vue-tools
146
2024-09-12T02:20:18.527428
BSD-3-Clause
false
35d45b63130d7e5fe5e303eb3350de18
import re\nimport sys\nfrom typing import (\n Any,\n Callable,\n ClassVar,\n Dict,\n Generic,\n Iterable,\n List,\n Match,\n MutableMapping,\n Optional,\n Pattern,\n Type,\n TypeVar,\n Union,\n cast,\n)\n\nif sys.version_info >= (3, 11):\n from typing import Self\nelse:\n from typing_extensions import Self\n\n_LINE_END = re.compile(r"\n|$")\n\n\nclass BlockState:\n """The state to save block parser's cursor and tokens."""\n\n src: str\n tokens: List[Dict[str, Any]]\n cursor: int\n cursor_max: int\n list_tight: bool\n parent: Any\n env: MutableMapping[str, Any]\n\n def __init__(self, parent: Optional[Any] = None) -> None:\n self.src = ""\n self.tokens = []\n\n # current cursor position\n self.cursor = 0\n self.cursor_max = 0\n\n # for list and block quote chain\n self.list_tight = True\n self.parent = parent\n\n # for saving def references\n if parent:\n self.env = parent.env\n else:\n self.env = {"ref_links": {}}\n\n def child_state(self, src: str) -> "BlockState":\n child = self.__class__(self)\n child.process(src)\n return child\n\n def process(self, src: str) -> None:\n self.src = src\n self.cursor_max = len(src)\n\n def find_line_end(self) -> int:\n m = _LINE_END.search(self.src, self.cursor)\n assert m is not None\n return m.end()\n\n def get_text(self, end_pos: int) -> str:\n return self.src[self.cursor : end_pos]\n\n def last_token(self) -> Any:\n if self.tokens:\n return self.tokens[-1]\n\n def prepend_token(self, token: Dict[str, Any]) -> None:\n """Insert token before the last token."""\n self.tokens.insert(len(self.tokens) - 1, token)\n\n def append_token(self, token: Dict[str, Any]) -> None:\n """Add token to the end of token list."""\n self.tokens.append(token)\n\n def add_paragraph(self, text: str) -> None:\n last_token = self.last_token()\n if last_token and last_token["type"] == "paragraph":\n last_token["text"] += text\n else:\n self.tokens.append({"type": "paragraph", "text": text})\n\n def append_paragraph(self) -> Optional[int]:\n last_token = self.last_token()\n if last_token and last_token["type"] == "paragraph":\n pos = self.find_line_end()\n last_token["text"] += self.get_text(pos)\n return pos\n return None\n\n def depth(self) -> int:\n d = 0\n parent = self.parent\n while parent:\n d += 1\n parent = parent.parent\n return d\n\n\nclass InlineState:\n """The state to save inline parser's tokens."""\n\n def __init__(self, env: MutableMapping[str, Any]):\n self.env = env\n self.src = ""\n self.tokens: List[Dict[str, Any]] = []\n self.in_image = False\n self.in_link = False\n self.in_emphasis = False\n self.in_strong = False\n\n def prepend_token(self, token: Dict[str, Any]) -> None:\n """Insert token before the last token."""\n self.tokens.insert(len(self.tokens) - 1, token)\n\n def append_token(self, token: Dict[str, Any]) -> None:\n """Add token to the end of token list."""\n self.tokens.append(token)\n\n def copy(self) -> "InlineState":\n """Create a copy of current state."""\n state = self.__class__(self.env)\n state.in_image = self.in_image\n state.in_link = self.in_link\n state.in_emphasis = self.in_emphasis\n state.in_strong = self.in_strong\n return state\n\n\nST = TypeVar("ST", InlineState, BlockState)\n\n\nclass Parser(Generic[ST]):\n sc_flag: "re._FlagsType" = re.M\n state_cls: Type[ST]\n\n SPECIFICATION: ClassVar[Dict[str, str]] = {}\n DEFAULT_RULES: ClassVar[Iterable[str]] = []\n\n def __init__(self) -> None:\n self.specification = self.SPECIFICATION.copy()\n self.rules = list(self.DEFAULT_RULES)\n self._methods: Dict[\n str,\n Callable[[Match[str], ST], Optional[int]],\n ] = {}\n\n self.__sc: Dict[str, Pattern[str]] = {}\n\n def compile_sc(self, rules: Optional[List[str]] = None) -> Pattern[str]:\n if rules is None:\n key = "$"\n rules = self.rules\n else:\n key = "|".join(rules)\n\n sc = self.__sc.get(key)\n if sc:\n return sc\n\n regex = "|".join(r"(?P<%s>%s)" % (k, self.specification[k]) for k in rules)\n sc = re.compile(regex, self.sc_flag)\n self.__sc[key] = sc\n return sc\n\n def register(\n self,\n name: str,\n pattern: Union[str, None],\n func: Callable[[Self, Match[str], ST], Optional[int]],\n before: Optional[str] = None,\n ) -> None:\n """Register a new rule to parse the token. This method is usually used to\n create a new plugin.\n\n :param name: name of the new grammar\n :param pattern: regex pattern in string\n :param func: the parsing function\n :param before: insert this rule before a built-in rule\n """\n self._methods[name] = lambda m, state: func(self, m, state)\n if pattern:\n self.specification[name] = pattern\n if name not in self.rules:\n self.insert_rule(self.rules, name, before=before)\n\n def register_rule(self, name: str, pattern: str, func: Any) -> None:\n raise DeprecationWarning("This plugin is not compatible with mistune v3.")\n\n @staticmethod\n def insert_rule(rules: List[str], name: str, before: Optional[str] = None) -> None:\n if before:\n try:\n index = rules.index(before)\n rules.insert(index, name)\n except ValueError:\n rules.append(name)\n else:\n rules.append(name)\n\n def parse_method(self, m: Match[str], state: ST) -> Optional[int]:\n lastgroup = m.lastgroup\n assert lastgroup\n func = self._methods[lastgroup]\n return func(m, state)\n\n\nclass BaseRenderer(object):\n NAME: ClassVar[str] = "base"\n\n def __init__(self) -> None:\n self.__methods: Dict[str, Callable[..., str]] = {}\n\n def register(self, name: str, method: Callable[..., str]) -> None:\n """Register a render method for the named token. For example::\n\n def render_wiki(renderer, key, title):\n return f'<a href="/wiki/{key}">{title}</a>'\n\n renderer.register('wiki', render_wiki)\n """\n # bind self into renderer method\n self.__methods[name] = lambda *arg, **kwargs: method(self, *arg, **kwargs)\n\n def _get_method(self, name: str) -> Callable[..., str]:\n try:\n return cast(Callable[..., str], object.__getattribute__(self, name))\n except AttributeError:\n method = self.__methods.get(name)\n if not method:\n raise AttributeError('No renderer "{!r}"'.format(name))\n return method\n\n def render_token(self, token: Dict[str, Any], state: BlockState) -> str:\n func = self._get_method(token["type"])\n return func(token, state)\n\n def iter_tokens(self, tokens: Iterable[Dict[str, Any]], state: BlockState) -> Iterable[str]:\n for tok in tokens:\n yield self.render_token(tok, state)\n\n def render_tokens(self, tokens: Iterable[Dict[str, Any]], state: BlockState) -> str:\n return "".join(self.iter_tokens(tokens, state))\n\n def __call__(self, tokens: Iterable[Dict[str, Any]], state: BlockState) -> str:\n return self.render_tokens(tokens, state)\n
.venv\Lib\site-packages\mistune\core.py
core.py
Python
7,600
0.95
0.210117
0.019417
vue-tools
612
2025-04-20T03:02:42.422049
BSD-3-Clause
false
86c6f3d4ba20863e7a3f1ad5d963b792
import re\nimport string\nfrom typing import Any, Dict, Tuple, Union\n\nfrom .util import escape_url\n\nPREVENT_BACKSLASH = r"(?<!\\)(?:\\\\)*"\nPUNCTUATION = r"[" + re.escape(string.punctuation) + r"]"\n\nLINK_LABEL = r"(?:[^\\\[\]]|\\.){0,500}"\n\nLINK_BRACKET_START = re.compile(r"[ \t]*\n?[ \t]*<")\nLINK_BRACKET_RE = re.compile(r"<([^<>\n\\\x00]*)>")\nLINK_HREF_BLOCK_RE = re.compile(r"[ \t]*\n?[ \t]*([^\s]+)(?:\s|$)")\nLINK_HREF_INLINE_RE = re.compile(\n r"[ \t]*\n?[ \t]*([^ \t\n]*?)(?:[ \t\n]|"\n r"(?:" + PREVENT_BACKSLASH + r"\)))"\n)\n\nLINK_TITLE_RE = re.compile(\n r"[ \t\n]+("\n r'"(?:\\' + PUNCTUATION + r'|[^"\x00])*"|' # "title"\n r"'(?:\\" + PUNCTUATION + r"|[^'\x00])*'" # 'title'\n r")"\n)\nPAREN_END_RE = re.compile(r"\s*\)")\n\nHTML_TAGNAME = r"[A-Za-z][A-Za-z0-9-]*"\nHTML_ATTRIBUTES = (\n r"(?:\s+[A-Za-z_:][A-Za-z0-9_.:-]*"\n r'(?:\s*=\s*(?:[^ !"\'=<>`]+|\'[^\']*?\'|"[^\"]*?"))?)*'\n)\n\nBLOCK_TAGS = (\n "address",\n "article",\n "aside",\n "base",\n "basefont",\n "blockquote",\n "body",\n "caption",\n "center",\n "col",\n "colgroup",\n "dd",\n "details",\n "dialog",\n "dir",\n "div",\n "dl",\n "dt",\n "fieldset",\n "figcaption",\n "figure",\n "footer",\n "form",\n "frame",\n "frameset",\n "h1",\n "h2",\n "h3",\n "h4",\n "h5",\n "h6",\n "head",\n "header",\n "hr",\n "html",\n "iframe",\n "legend",\n "li",\n "link",\n "main",\n "menu",\n "menuitem",\n "meta",\n "nav",\n "noframes",\n "ol",\n "optgroup",\n "option",\n "p",\n "param",\n "section",\n "source",\n "summary",\n "table",\n "tbody",\n "td",\n "tfoot",\n "th",\n "thead",\n "title",\n "tr",\n "track",\n "ul",\n)\nPRE_TAGS = ("pre", "script", "style", "textarea")\n\n_INLINE_LINK_LABEL_RE = re.compile(LINK_LABEL + r"\]")\n_INLINE_SQUARE_BRACKET_RE = re.compile(PREVENT_BACKSLASH + r"[\[\]]")\n_ESCAPE_CHAR_RE = re.compile(r"\\(" + PUNCTUATION + r")")\n\n\ndef unescape_char(text: str) -> str:\n return _ESCAPE_CHAR_RE.sub(r"\1", text)\n\n\ndef parse_link_text(src: str, pos: int) -> Union[Tuple[str, int], Tuple[None, None]]:\n level = 1\n found = False\n start_pos = pos\n\n while pos < len(src):\n m = _INLINE_SQUARE_BRACKET_RE.search(src, pos)\n if not m:\n break\n\n pos = m.end()\n marker = m.group(0)\n if marker == "]":\n level -= 1\n if level == 0:\n found = True\n break\n else:\n level += 1\n\n if found:\n text = src[start_pos : pos - 1]\n return text, pos\n return None, None\n\n\ndef parse_link_label(src: str, start_pos: int) -> Union[Tuple[str, int], Tuple[None, None]]:\n m = _INLINE_LINK_LABEL_RE.match(src, start_pos)\n if m:\n label = m.group(0)[:-1]\n return label, m.end()\n return None, None\n\n\ndef parse_link_href(src: str, start_pos: int, block: bool = False) -> Union[Tuple[str, int], Tuple[None, None]]:\n m = LINK_BRACKET_START.match(src, start_pos)\n if m:\n start_pos = m.end() - 1\n m = LINK_BRACKET_RE.match(src, start_pos)\n if m:\n return m.group(1), m.end()\n return None, None\n\n if block:\n m = LINK_HREF_BLOCK_RE.match(src, start_pos)\n else:\n m = LINK_HREF_INLINE_RE.match(src, start_pos)\n\n if not m:\n return None, None\n\n end_pos = m.end()\n href = m.group(1)\n\n if block and src[end_pos - 1] == href[-1]:\n return href, end_pos\n return href, end_pos - 1\n\n\ndef parse_link_title(src: str, start_pos: int, max_pos: int) -> Union[Tuple[str, int], Tuple[None, None]]:\n m = LINK_TITLE_RE.match(src, start_pos, max_pos)\n if m:\n title = m.group(1)[1:-1]\n title = unescape_char(title)\n return title, m.end()\n return None, None\n\n\ndef parse_link(src: str, pos: int) -> Union[Tuple[Dict[str, Any], int], Tuple[None, None]]:\n href, href_pos = parse_link_href(src, pos)\n if href is None:\n return None, None\n assert href_pos is not None\n title, title_pos = parse_link_title(src, href_pos, len(src))\n next_pos = title_pos or href_pos\n m = PAREN_END_RE.match(src, next_pos)\n if not m:\n return None, None\n\n href = unescape_char(href)\n attrs = {"url": escape_url(href)}\n if title:\n attrs["title"] = title\n return attrs, m.end()\n
.venv\Lib\site-packages\mistune\helpers.py
helpers.py
Python
4,358
0.95
0.108808
0
awesome-app
34
2024-08-29T12:00:15.112890
MIT
false
e0c4bb3d730f1c76bdc6953a3f05c026
import re\nfrom typing import (\n Any,\n Dict,\n List,\n Match,\n MutableMapping,\n Optional,\n)\n\nfrom .core import InlineState, Parser\nfrom .helpers import (\n HTML_ATTRIBUTES,\n HTML_TAGNAME,\n PREVENT_BACKSLASH,\n PUNCTUATION,\n parse_link,\n parse_link_label,\n parse_link_text,\n unescape_char,\n)\nfrom .util import escape_url, unikey\n\nPAREN_END_RE = re.compile(r"\s*\)")\n\nAUTO_EMAIL = (\n r"""<[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9]"""\n r"(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?"\n r"(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*>"\n)\n\nINLINE_HTML = (\n r"<" + HTML_TAGNAME + HTML_ATTRIBUTES + r"\s*/?>|" # open tag\n r"</" + HTML_TAGNAME + r"\s*>|" # close tag\n r"<!--(?!>|->)(?:(?!--)[\s\S])+?(?<!-)-->|" # comment\n r"<\?[\s\S]+?\?>|" # script like <?php?>\n r"<![A-Z][\s\S]+?>|" # doctype\n r"<!\[CDATA[\s\S]+?\]\]>" # cdata\n)\n\nEMPHASIS_END_RE = {\n "*": re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\\*|[^\s*])\*(?!\*)"),\n "_": re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\_|[^\s_])_(?!_)\b"),\n "**": re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\\*|[^\s*])\*\*(?!\*)"),\n "__": re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\_|[^\s_])__(?!_)\b"),\n "***": re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\\*|[^\s*])\*\*\*(?!\*)"),\n "___": re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\_|[^\s_])___(?!_)\b"),\n}\n\n\nclass InlineParser(Parser[InlineState]):\n sc_flag = 0\n state_cls = InlineState\n\n #: linebreak leaves two spaces at the end of line\n STD_LINEBREAK = r"(?:\\| {2,})\n\s*"\n\n #: every new line becomes <br>\n HARD_LINEBREAK = r" *\n\s*"\n\n # we only need to find the start pattern of an inline token\n SPECIFICATION = {\n # e.g. \`, \$\n "escape": r"(?:\\" + PUNCTUATION + ")+",\n # `code, ```code\n "codespan": r"`{1,}",\n # *w, **w, _w, __w\n "emphasis": r"\*{1,3}(?=[^\s*])|\b_{1,3}(?=[^\s_])",\n # [link], ![img]\n "link": r"!?\[",\n # <https://example.com>. regex copied from commonmark.js\n "auto_link": r"<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>",\n "auto_email": AUTO_EMAIL,\n "inline_html": INLINE_HTML,\n "linebreak": STD_LINEBREAK,\n "softbreak": HARD_LINEBREAK,\n "prec_auto_link": r"<[A-Za-z][A-Za-z\d.+-]{1,31}:",\n "prec_inline_html": r"</?" + HTML_TAGNAME + r"|<!|<\?",\n }\n DEFAULT_RULES = (\n "escape",\n "codespan",\n "emphasis",\n "link",\n "auto_link",\n "auto_email",\n "inline_html",\n "linebreak",\n )\n\n def __init__(self, hard_wrap: bool = False) -> None:\n super(InlineParser, self).__init__()\n\n self.hard_wrap = hard_wrap\n # lazy add linebreak\n if hard_wrap:\n self.specification["linebreak"] = self.HARD_LINEBREAK\n else:\n self.rules.append("softbreak")\n\n self._methods = {name: getattr(self, "parse_" + name) for name in self.rules}\n\n def parse_escape(self, m: Match[str], state: InlineState) -> int:\n text = m.group(0)\n text = unescape_char(text)\n state.append_token(\n {\n "type": "text",\n "raw": text,\n }\n )\n return m.end()\n\n def parse_link(self, m: Match[str], state: InlineState) -> Optional[int]:\n pos = m.end()\n\n marker = m.group(0)\n is_image = marker[0] == "!"\n if is_image and state.in_image:\n state.append_token({"type": "text", "raw": marker})\n return pos\n elif not is_image and state.in_link:\n state.append_token({"type": "text", "raw": marker})\n return pos\n\n text = None\n label, end_pos = parse_link_label(state.src, pos)\n if label is None:\n text, end_pos = parse_link_text(state.src, pos)\n if text is None:\n return None\n\n assert end_pos is not None\n\n if text is None:\n text = label\n\n assert text is not None\n\n if end_pos >= len(state.src) and label is None:\n return None\n\n rules = ["codespan", "prec_auto_link", "prec_inline_html"]\n prec_pos = self.precedence_scan(m, state, end_pos, rules)\n if prec_pos:\n return prec_pos\n\n if end_pos < len(state.src):\n c = state.src[end_pos]\n if c == "(":\n # standard link [text](<url> "title")\n attrs, pos2 = parse_link(state.src, end_pos + 1)\n if pos2:\n token = self.__parse_link_token(is_image, text, attrs, state)\n state.append_token(token)\n return pos2\n\n elif c == "[":\n # standard ref link [text][label]\n label2, pos2 = parse_link_label(state.src, end_pos + 1)\n if pos2:\n end_pos = pos2\n if label2:\n label = label2\n\n if label is None:\n return None\n\n ref_links = state.env.get("ref_links")\n if not ref_links:\n return None\n\n key = unikey(label)\n env = ref_links.get(key)\n if env:\n attrs = {"url": env["url"], "title": env.get("title")}\n token = self.__parse_link_token(is_image, text, attrs, state)\n token["ref"] = key\n token["label"] = label\n state.append_token(token)\n return end_pos\n return None\n\n def __parse_link_token(\n self,\n is_image: bool,\n text: str,\n attrs: Optional[Dict[str, Any]],\n state: InlineState,\n ) -> Dict[str, Any]:\n new_state = state.copy()\n new_state.src = text\n if is_image:\n new_state.in_image = True\n token = {\n "type": "image",\n "children": self.render(new_state),\n "attrs": attrs,\n }\n else:\n new_state.in_link = True\n token = {\n "type": "link",\n "children": self.render(new_state),\n "attrs": attrs,\n }\n return token\n\n def parse_auto_link(self, m: Match[str], state: InlineState) -> int:\n text = m.group(0)\n pos = m.end()\n if state.in_link:\n self.process_text(text, state)\n return pos\n\n text = text[1:-1]\n self._add_auto_link(text, text, state)\n return pos\n\n def parse_auto_email(self, m: Match[str], state: InlineState) -> int:\n text = m.group(0)\n pos = m.end()\n if state.in_link:\n self.process_text(text, state)\n return pos\n\n text = text[1:-1]\n url = "mailto:" + text\n self._add_auto_link(url, text, state)\n return pos\n\n def _add_auto_link(self, url: str, text: str, state: InlineState) -> None:\n state.append_token(\n {\n "type": "link",\n "children": [{"type": "text", "raw": text}],\n "attrs": {"url": escape_url(url)},\n }\n )\n\n def parse_emphasis(self, m: Match[str], state: InlineState) -> int:\n pos = m.end()\n\n marker = m.group(0)\n mlen = len(marker)\n if mlen == 1 and state.in_emphasis:\n state.append_token({"type": "text", "raw": marker})\n return pos\n elif mlen == 2 and state.in_strong:\n state.append_token({"type": "text", "raw": marker})\n return pos\n\n _end_re = EMPHASIS_END_RE[marker]\n m1 = _end_re.search(state.src, pos)\n if not m1:\n state.append_token({"type": "text", "raw": marker})\n return pos\n\n end_pos = m1.end()\n text = state.src[pos : end_pos - mlen]\n\n prec_pos = self.precedence_scan(m, state, end_pos)\n if prec_pos:\n return prec_pos\n\n new_state = state.copy()\n new_state.src = text\n if mlen == 1:\n new_state.in_emphasis = True\n children = self.render(new_state)\n state.append_token({"type": "emphasis", "children": children})\n elif mlen == 2:\n new_state.in_strong = True\n children = self.render(new_state)\n state.append_token({"type": "strong", "children": children})\n else:\n new_state.in_emphasis = True\n new_state.in_strong = True\n\n children = [{"type": "strong", "children": self.render(new_state)}]\n state.append_token(\n {\n "type": "emphasis",\n "children": children,\n }\n )\n return end_pos\n\n def parse_codespan(self, m: Match[str], state: InlineState) -> int:\n marker = m.group(0)\n # require same marker with same length at end\n\n pattern = re.compile(r"(.*?[^`])" + marker + r"(?!`)", re.S)\n\n pos = m.end()\n m2 = pattern.match(state.src, pos)\n if m2:\n end_pos = m2.end()\n code = m2.group(1)\n # Line endings are treated like spaces\n code = code.replace("\n", " ")\n if len(code.strip()):\n if code.startswith(" ") and code.endswith(" "):\n code = code[1:-1]\n state.append_token({"type": "codespan", "raw": code})\n return end_pos\n else:\n state.append_token({"type": "text", "raw": marker})\n return pos\n\n def parse_linebreak(self, m: Match[str], state: InlineState) -> int:\n state.append_token({"type": "linebreak"})\n return m.end()\n\n def parse_softbreak(self, m: Match[str], state: InlineState) -> int:\n state.append_token({"type": "softbreak"})\n return m.end()\n\n def parse_inline_html(self, m: Match[str], state: InlineState) -> int:\n end_pos = m.end()\n html = m.group(0)\n state.append_token({"type": "inline_html", "raw": html})\n if html.startswith(("<a ", "<a>", "<A ", "<A>")):\n state.in_link = True\n elif html.startswith(("</a ", "</a>", "</A ", "</A>")):\n state.in_link = False\n return end_pos\n\n def process_text(self, text: str, state: InlineState) -> None:\n state.append_token({"type": "text", "raw": text})\n\n def parse(self, state: InlineState) -> List[Dict[str, Any]]:\n pos = 0\n sc = self.compile_sc()\n while pos < len(state.src):\n m = sc.search(state.src, pos)\n if not m:\n break\n\n end_pos = m.start()\n if end_pos > pos:\n hole = state.src[pos:end_pos]\n self.process_text(hole, state)\n\n new_pos = self.parse_method(m, state)\n if not new_pos:\n # move cursor 1 character forward\n pos = end_pos + 1\n hole = state.src[end_pos:pos]\n self.process_text(hole, state)\n else:\n pos = new_pos\n\n if pos == 0:\n # special case, just pure text\n self.process_text(state.src, state)\n elif pos < len(state.src):\n self.process_text(state.src[pos:], state)\n return state.tokens\n\n def precedence_scan(\n self,\n m: Match[str],\n state: InlineState,\n end_pos: int,\n rules: Optional[List[str]] = None,\n ) -> Optional[int]:\n if rules is None:\n rules = ["codespan", "link", "prec_auto_link", "prec_inline_html"]\n\n mark_pos = m.end()\n sc = self.compile_sc(rules)\n m1 = sc.search(state.src, mark_pos, end_pos)\n if not m1:\n return None\n\n lastgroup = m1.lastgroup\n if not lastgroup:\n return None\n rule_name = lastgroup.replace("prec_", "")\n sc = self.compile_sc([rule_name])\n m2 = sc.match(state.src, m1.start())\n if not m2:\n return None\n\n func = self._methods[rule_name]\n new_state = state.copy()\n new_state.src = state.src\n m2_pos = func(m2, new_state)\n if not m2_pos or m2_pos < end_pos:\n return None\n\n raw_text = state.src[m.start() : m2.start()]\n state.append_token({"type": "text", "raw": raw_text})\n for token in new_state.tokens:\n state.append_token(token)\n return m2_pos\n\n def render(self, state: InlineState) -> List[Dict[str, Any]]:\n self.parse(state)\n return state.tokens\n\n def __call__(self, s: str, env: MutableMapping[str, Any]) -> List[Dict[str, Any]]:\n state = self.state_cls(env)\n state.src = s\n return self.render(state)\n
.venv\Lib\site-packages\mistune\inline_parser.py
inline_parser.py
Python
12,670
0.95
0.137931
0.043103
vue-tools
97
2024-04-19T09:06:27.068768
GPL-3.0
false
a13ddd73e0918fb679a46dfb8c46dc1c
"""because list is complex, split list parser in a new file"""\n\nimport re\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Match\nfrom .util import expand_leading_tab, expand_tab, strip_end\n\nif TYPE_CHECKING:\n from .block_parser import BlockParser\n from .core import BlockState\n\nLIST_PATTERN = (\n r"^(?P<list_1> {0,3})"\n r"(?P<list_2>[\*\+-]|\d{1,9}[.)])"\n r"(?P<list_3>[ \t]*|[ \t].+)$"\n)\n\n_LINE_HAS_TEXT = re.compile(r"(\s*)\S")\n\n\ndef parse_list(block: "BlockParser", m: Match[str], state: "BlockState") -> int:\n """Parse tokens for ordered and unordered list."""\n text = m.group("list_3")\n if not text.strip():\n # Example 285\n # an empty list item cannot interrupt a paragraph\n end_pos = state.append_paragraph()\n if end_pos:\n return end_pos\n\n marker = m.group("list_2")\n ordered = len(marker) > 1\n depth = state.depth()\n token: Dict[str, Any] = {\n "type": "list",\n "children": [],\n "tight": True,\n "bullet": marker[-1],\n "attrs": {\n "depth": depth,\n "ordered": ordered,\n },\n }\n if ordered:\n start = int(marker[:-1])\n if start != 1:\n # Example 304\n # we allow only lists starting with 1 to interrupt paragraphs\n end_pos = state.append_paragraph()\n if end_pos:\n return end_pos\n token["attrs"]["start"] = start\n\n state.cursor = m.end() + 1\n groups: Optional[Tuple[str, str, str]] = (m.group("list_1"), marker, text)\n\n if depth >= block.max_nested_level - 1:\n rules = list(block.list_rules)\n rules.remove("list")\n else:\n rules = block.list_rules\n\n bullet = _get_list_bullet(marker[-1])\n while groups:\n groups = _parse_list_item(block, bullet, groups, token, state, rules)\n\n end_pos = token.pop("_end_pos", None)\n _transform_tight_list(token)\n if end_pos:\n index = token.pop("_tok_index")\n state.tokens.insert(index, token)\n return end_pos\n\n state.append_token(token)\n return state.cursor\n\n\ndef _transform_tight_list(token: Dict[str, Any]) -> None:\n if token["tight"]:\n # reset tight list item\n for list_item in token["children"]:\n for tok in list_item["children"]:\n if tok["type"] == "paragraph":\n tok["type"] = "block_text"\n elif tok["type"] == "list":\n _transform_tight_list(tok)\n\n\ndef _parse_list_item(\n block: "BlockParser",\n bullet: str,\n groups: Tuple[str, str, str],\n token: Dict[str, Any],\n state: "BlockState",\n rules: List[str],\n) -> Optional[Tuple[str, str, str]]:\n spaces, marker, text = groups\n\n leading_width = len(spaces) + len(marker)\n text, continue_width = _compile_continue_width(text, leading_width)\n item_pattern = _compile_list_item_pattern(bullet, leading_width)\n pairs = [\n ("thematic_break", block.specification["thematic_break"]),\n ("fenced_code", block.specification["fenced_code"]),\n ("atx_heading", block.specification["atx_heading"]),\n ("block_quote", block.specification["block_quote"]),\n ("block_html", block.specification["block_html"]),\n ("list", block.specification["list"]),\n ]\n if leading_width < 3:\n _repl_w = str(leading_width)\n pairs = [(n, p.replace("3", _repl_w, 1)) for n, p in pairs]\n\n pairs.insert(1, ("list_item", item_pattern))\n regex = "|".join(r"(?P<%s>(?<=\n)%s)" % pair for pair in pairs)\n sc = re.compile(regex, re.M)\n\n src = ""\n next_group = None\n prev_blank_line = False\n pos = state.cursor\n\n continue_space = " " * continue_width\n while pos < state.cursor_max:\n pos = state.find_line_end()\n line = state.get_text(pos)\n if block.BLANK_LINE.match(line):\n src += "\n"\n prev_blank_line = True\n state.cursor = pos\n continue\n\n line = expand_leading_tab(line)\n if line.startswith(continue_space):\n if prev_blank_line and not text and not src.strip():\n # Example 280\n # A list item can begin with at most one blank line\n break\n\n src += line\n prev_blank_line = False\n state.cursor = pos\n continue\n\n m = sc.match(state.src, state.cursor)\n if m:\n tok_type = m.lastgroup\n if tok_type == "list_item":\n if prev_blank_line:\n token["tight"] = False\n next_group = (m.group("listitem_1"), m.group("listitem_2"), m.group("listitem_3"))\n state.cursor = m.end() + 1\n break\n\n if tok_type == "list":\n break\n\n tok_index = len(state.tokens)\n end_pos = block.parse_method(m, state)\n if end_pos:\n token["_tok_index"] = tok_index\n token["_end_pos"] = end_pos\n break\n\n if prev_blank_line and not line.startswith(continue_space):\n # not a continue line, and previous line is blank\n break\n\n src += line\n state.cursor = pos\n\n text += _clean_list_item_text(src, continue_width)\n child = state.child_state(strip_end(text))\n\n block.parse(child, rules)\n\n if token["tight"] and _is_loose_list(child.tokens):\n token["tight"] = False\n\n token["children"].append(\n {\n "type": "list_item",\n "children": child.tokens,\n }\n )\n if next_group:\n return next_group\n\n return None\n\n\ndef _get_list_bullet(c: str) -> str:\n if c == ".":\n bullet = r"\d{0,9}\."\n elif c == ")":\n bullet = r"\d{0,9}\)"\n elif c == "*":\n bullet = r"\*"\n elif c == "+":\n bullet = r"\+"\n else:\n bullet = "-"\n return bullet\n\n\ndef _compile_list_item_pattern(bullet: str, leading_width: int) -> str:\n if leading_width > 3:\n leading_width = 3\n return (\n r"^(?P<listitem_1> {0," + str(leading_width) + "})"\n r"(?P<listitem_2>" + bullet + ")"\n r"(?P<listitem_3>[ \t]*|[ \t][^\n]+)$"\n )\n\n\ndef _compile_continue_width(text: str, leading_width: int) -> Tuple[str, int]:\n text = expand_leading_tab(text, 3)\n text = expand_tab(text)\n\n m2 = _LINE_HAS_TEXT.match(text)\n if m2:\n # indent code, startswith 5 spaces\n if text.startswith(" "):\n space_width = 1\n else:\n space_width = len(m2.group(1))\n\n text = text[space_width:] + "\n"\n else:\n space_width = 1\n text = ""\n\n continue_width = leading_width + space_width\n return text, continue_width\n\n\ndef _clean_list_item_text(src: str, continue_width: int) -> str:\n # according to Example 7, tab should be treated as 3 spaces\n rv = []\n trim_space = " " * continue_width\n lines = src.split("\n")\n for line in lines:\n if line.startswith(trim_space):\n line = line.replace(trim_space, "", 1)\n # according to CommonMark Example 5\n # tab should be treated as 4 spaces\n line = expand_tab(line)\n rv.append(line)\n else:\n rv.append(line)\n\n return "\n".join(rv)\n\n\ndef _is_loose_list(tokens: Iterable[Dict[str, Any]]) -> bool:\n paragraph_count = 0\n for tok in tokens:\n if tok["type"] == "blank_line":\n return True\n if tok["type"] == "paragraph":\n paragraph_count += 1\n if paragraph_count > 1:\n return True\n return False\n
.venv\Lib\site-packages\mistune\list_parser.py
list_parser.py
Python
7,635
0.95
0.178707
0.0553
node-utils
379
2025-06-13T20:26:52.776289
Apache-2.0
false
55999f58eb828988f12f2127bc71ad4a
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union\n\nfrom .block_parser import BlockParser\nfrom .core import BaseRenderer, BlockState\nfrom .inline_parser import InlineParser\nfrom .plugins import Plugin\n\n\nclass Markdown:\n """Markdown instance to convert markdown text into HTML or other formats.\n Here is an example with the HTMLRenderer::\n\n from mistune import HTMLRenderer\n\n md = Markdown(renderer=HTMLRenderer(escape=False))\n md('hello **world**')\n\n :param renderer: a renderer to convert parsed tokens\n :param block: block level syntax parser\n :param inline: inline level syntax parser\n :param plugins: mistune plugins to use\n """\n\n def __init__(\n self,\n renderer: Optional[BaseRenderer] = None,\n block: Optional[BlockParser] = None,\n inline: Optional[InlineParser] = None,\n plugins: Optional[Iterable[Plugin]] = None,\n ):\n if block is None:\n block = BlockParser()\n\n if inline is None:\n inline = InlineParser()\n\n self.renderer = renderer\n self.block: BlockParser = block\n self.inline: InlineParser = inline\n self.before_parse_hooks: List[Callable[["Markdown", BlockState], None]] = []\n self.before_render_hooks: List[Callable[["Markdown", BlockState], Any]] = []\n self.after_render_hooks: List[\n Callable[["Markdown", Union[str, List[Dict[str, Any]]], BlockState], Union[str, List[Dict[str, Any]]]]\n ] = []\n\n if plugins:\n for plugin in plugins:\n plugin(self)\n\n def use(self, plugin: Plugin) -> None:\n plugin(self)\n\n def render_state(self, state: BlockState) -> Union[str, List[Dict[str, Any]]]:\n data = self._iter_render(state.tokens, state)\n if self.renderer:\n return self.renderer(data, state)\n return list(data)\n\n def _iter_render(self, tokens: Iterable[Dict[str, Any]], state: BlockState) -> Iterable[Dict[str, Any]]:\n for tok in tokens:\n if "children" in tok:\n children = self._iter_render(tok["children"], state)\n tok["children"] = list(children)\n elif "text" in tok:\n text = tok.pop("text")\n # process inline text\n # avoid striping emsp or other unicode spaces\n tok["children"] = self.inline(text.strip(" \r\n\t\f"), state.env)\n yield tok\n\n def parse(self, s: str, state: Optional[BlockState] = None) -> Tuple[Union[str, List[Dict[str, Any]]], BlockState]:\n """Parse and convert the given markdown string. If renderer is None,\n the returned **result** will be parsed markdown tokens.\n\n :param s: markdown string\n :param state: instance of BlockState\n :returns: result, state\n """\n if state is None:\n state = self.block.state_cls()\n\n # normalize line separator\n s = s.replace("\r\n", "\n")\n s = s.replace("\r", "\n")\n if not s.endswith("\n"):\n s += "\n"\n\n state.process(s)\n\n for hook in self.before_parse_hooks:\n hook(self, state)\n\n self.block.parse(state)\n\n for hook2 in self.before_render_hooks:\n hook2(self, state)\n\n result = self.render_state(state)\n\n for hook3 in self.after_render_hooks:\n result = hook3(self, result, state)\n return result, state\n\n def read(\n self, filepath: str, encoding: str = "utf-8", state: Optional[BlockState] = None\n ) -> Tuple[Union[str, List[Dict[str, Any]]], BlockState]:\n if state is None:\n state = self.block.state_cls()\n\n state.env["__file__"] = filepath\n with open(filepath, "rb") as f:\n s = f.read()\n\n s2 = s.decode(encoding)\n return self.parse(s2, state)\n\n def __call__(self, s: str) -> Union[str, List[Dict[str, Any]]]:\n if s is None:\n s = "\n"\n return self.parse(s)[0]\n
.venv\Lib\site-packages\mistune\markdown.py
markdown.py
Python
4,019
0.95
0.183333
0.031915
awesome-app
238
2023-11-24T10:12:44.864254
Apache-2.0
false
80de0e175e36e8338848562a66c8e468
# when type checking dependents, tell type checkers, e.g. mypy, to use this package's types\n# without this file, mypy will write a warning and ignore type annotations from mistune.\n
.venv\Lib\site-packages\mistune\py.typed
py.typed
Other
181
0.8
0
1
react-lib
960
2024-12-28T12:22:32.330800
MIT
false
ae5030ad009e5e7e50cdbf59347e0a21
from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Tuple\n\nfrom .core import BlockState\nfrom .util import striptags\n\nif TYPE_CHECKING:\n from .markdown import Markdown\n\n\ndef add_toc_hook(\n md: "Markdown",\n min_level: int = 1,\n max_level: int = 3,\n heading_id: Optional[Callable[[Dict[str, Any], int], str]] = None,\n) -> None:\n """Add a hook to save toc items into ``state.env``. This is\n usually helpful for doc generator::\n\n import mistune\n from mistune.toc import add_toc_hook, render_toc_ul\n\n md = mistune.create_markdown(...)\n add_toc_hook(md)\n\n html, state = md.parse(text)\n toc_items = state.env['toc_items']\n toc_html = render_toc_ul(toc_items)\n\n :param md: Markdown instance\n :param min_level: min heading level\n :param max_level: max heading level\n :param heading_id: a function to generate heading_id\n """\n if heading_id is None:\n\n def heading_id(token: Dict[str, Any], index: int) -> str:\n return "toc_" + str(index + 1)\n\n def toc_hook(md: "Markdown", state: "BlockState") -> None:\n headings = []\n\n for tok in state.tokens:\n if tok["type"] == "heading":\n level = tok["attrs"]["level"]\n if min_level <= level <= max_level:\n headings.append(tok)\n\n toc_items = []\n for i, tok in enumerate(headings):\n tok["attrs"]["id"] = heading_id(tok, i)\n toc_items.append(normalize_toc_item(md, tok))\n\n # save items into state\n state.env["toc_items"] = toc_items\n\n md.before_render_hooks.append(toc_hook)\n\n\ndef normalize_toc_item(md: "Markdown", token: Dict[str, Any]) -> Tuple[int, str, str]:\n text = token["text"]\n tokens = md.inline(text, {})\n assert md.renderer is not None\n html = md.renderer(tokens, BlockState())\n text = striptags(html)\n attrs = token["attrs"]\n return attrs["level"], attrs["id"], text\n\n\ndef render_toc_ul(toc: Iterable[Tuple[int, str, str]]) -> str:\n """Render a <ul> table of content HTML. The param "toc" should\n be formatted into this structure::\n\n [\n (level, id, text),\n ]\n\n For example::\n\n [\n (1, 'toc-intro', 'Introduction'),\n (2, 'toc-install', 'Install'),\n (2, 'toc-upgrade', 'Upgrade'),\n (1, 'toc-license', 'License'),\n ]\n """\n if not toc:\n return ""\n\n s = ""\n levels: List[int] = []\n for level, k, text in toc:\n item = '<a href="#{}">{}</a>'.format(k, text)\n if not levels:\n s += "<li>" + item\n levels.append(level)\n elif level == levels[-1]:\n s += "</li>\n<li>" + item\n elif level > levels[-1]:\n s += "\n<ul>\n<li>" + item\n levels.append(level)\n else:\n levels.pop()\n while levels:\n last_level = levels.pop()\n if level == last_level:\n s += "</li>\n</ul>\n</li>\n<li>" + item\n levels.append(level)\n break\n elif level > last_level:\n s += "</li>\n<li>" + item\n levels.append(last_level)\n levels.append(level)\n break\n else:\n s += "</li>\n</ul>\n"\n else:\n levels.append(level)\n s += "</li>\n<li>" + item\n\n while len(levels) > 1:\n s += "</li>\n</ul>\n"\n levels.pop()\n\n if not s:\n return ""\n return "<ul>\n" + s + "</li>\n</ul>\n"\n
.venv\Lib\site-packages\mistune\toc.py
toc.py
Python
3,638
0.95
0.15873
0.009804
react-lib
657
2024-04-23T12:46:22.137390
Apache-2.0
false
604074397dd572ce16abf083555362eb
import re\nfrom html import _replace_charref # type: ignore[attr-defined]\nfrom typing import Match\nfrom urllib.parse import quote\n\n_expand_tab_re = re.compile(r"^( {0,3})\t", flags=re.M)\n\n\ndef expand_leading_tab(text: str, width: int = 4) -> str:\n def repl(m: Match[str]) -> str:\n s = m.group(1)\n return s + " " * (width - len(s))\n\n return _expand_tab_re.sub(repl, text)\n\n\ndef expand_tab(text: str, space: str = " ") -> str:\n repl = r"\1" + space\n return _expand_tab_re.sub(repl, text)\n\n\ndef escape(s: str, quote: bool = True) -> str:\n """Escape characters of ``&<>``. If quote=True, ``"`` will be\n converted to ``&quote;``."""\n s = s.replace("&", "&amp;")\n s = s.replace("<", "&lt;")\n s = s.replace(">", "&gt;")\n if quote:\n s = s.replace('"', "&quot;")\n return s\n\n\ndef escape_url(link: str) -> str:\n """Escape URL for safety."""\n safe = (\n ":/?#@" # gen-delims - '[]' (rfc3986)\n "!$&()*+,;=" # sub-delims - "'" (rfc3986)\n "%" # leave already-encoded octets alone\n )\n return quote(unescape(link), safe=safe)\n\n\ndef safe_entity(s: str) -> str:\n """Escape characters for safety."""\n return escape(unescape(s))\n\n\ndef unikey(s: str) -> str:\n """Generate a unique key for links and footnotes."""\n key = " ".join(s.split()).strip()\n return key.lower().upper()\n\n\n_charref_re = re.compile(\n r"&(#[0-9]{1,7};"\n r"|#[xX][0-9a-fA-F]+;"\n r"|[^\t\n\f <&#;]{1,32};)"\n)\n\n\ndef unescape(s: str) -> str:\n """\n Copy from `html.unescape`, but `_charref` is different. CommonMark\n does not accept entity references without a trailing semicolon\n """\n if "&" not in s:\n return s\n return _charref_re.sub(_replace_charref, s)\n\n\n_striptags_re = re.compile(r"(<!--.*?-->|<[^>]*>)")\n\n\ndef striptags(s: str) -> str:\n return _striptags_re.sub("", s)\n\n\n_strip_end_re = re.compile(r"\n\s+$")\n\n\ndef strip_end(src: str) -> str:\n return _strip_end_re.sub("\n", src)\n
.venv\Lib\site-packages\mistune\util.py
util.py
Python
1,978
0.95
0.182927
0
react-lib
742
2025-01-08T23:48:03.103245
Apache-2.0
false
7368f12b627ba9d40d2daaec5f85c074
"""\nmistune\n~~~~~~~\n\nA fast yet powerful Python Markdown parser with renderers and\nplugins, compatible with sane CommonMark rules.\n\nDocumentation: https://mistune.lepture.com/\n"""\n\nfrom typing import Any, Dict, Iterable, List, Optional, Tuple, Union, Literal\nfrom .block_parser import BlockParser\nfrom .core import BaseRenderer, BlockState, InlineState\nfrom .inline_parser import InlineParser\nfrom .markdown import Markdown\nfrom .plugins import Plugin, PluginRef, import_plugin\nfrom .renderers.html import HTMLRenderer\nfrom .util import escape, escape_url, safe_entity, unikey\n\nRendererRef = Union[Literal["html", "ast"], BaseRenderer]\n\n\ndef create_markdown(\n escape: bool = True,\n hard_wrap: bool = False,\n renderer: Optional[RendererRef] = "html",\n plugins: Optional[Iterable[PluginRef]] = None,\n) -> Markdown:\n """Create a Markdown instance based on the given condition.\n\n :param escape: Boolean. If using html renderer, escape html.\n :param hard_wrap: Boolean. Break every new line into ``<br>``.\n :param renderer: renderer instance, default is HTMLRenderer.\n :param plugins: List of plugins.\n\n This method is used when you want to re-use a Markdown instance::\n\n markdown = create_markdown(\n escape=False,\n hard_wrap=True,\n )\n # re-use markdown function\n markdown('.... your text ...')\n """\n if renderer == "ast":\n # explicit and more similar to 2.x's API\n renderer = None\n elif renderer == "html":\n renderer = HTMLRenderer(escape=escape)\n\n inline = InlineParser(hard_wrap=hard_wrap)\n real_plugins: Optional[Iterable[Plugin]] = None\n if plugins is not None:\n real_plugins = [import_plugin(n) for n in plugins]\n return Markdown(renderer=renderer, inline=inline, plugins=real_plugins)\n\n\nhtml: Markdown = create_markdown(escape=False, plugins=["strikethrough", "footnotes", "table", "speedup"])\n\n\n__cached_parsers: Dict[Tuple[bool, Optional[RendererRef], Optional[Iterable[Any]]], Markdown] = {}\n\n\ndef markdown(\n text: str,\n escape: bool = True,\n renderer: Optional[RendererRef] = "html",\n plugins: Optional[Iterable[Any]] = None,\n) -> Union[str, List[Dict[str, Any]]]:\n if renderer == "ast":\n # explicit and more similar to 2.x's API\n renderer = None\n key = (escape, renderer, plugins)\n if key in __cached_parsers:\n return __cached_parsers[key](text)\n\n md = create_markdown(escape=escape, renderer=renderer, plugins=plugins)\n # improve the speed for markdown parser creation\n __cached_parsers[key] = md\n return md(text)\n\n\n__all__ = [\n "Markdown",\n "HTMLRenderer",\n "BlockParser",\n "BlockState",\n "BaseRenderer",\n "InlineParser",\n "InlineState",\n "escape",\n "escape_url",\n "safe_entity",\n "unikey",\n "html",\n "create_markdown",\n "markdown",\n]\n\n__version__ = "3.1.3"\n__homepage__ = "https://mistune.lepture.com/"\n
.venv\Lib\site-packages\mistune\__init__.py
__init__.py
Python
2,938
0.95
0.089109
0.049383
node-utils
450
2023-09-06T22:52:15.754953
GPL-3.0
false
919dd5dfc6aa8a1d35533ed6e87eaf16
import argparse\nimport sys\nfrom typing import TYPE_CHECKING, Optional\n\nfrom . import __version__ as version\nfrom . import create_markdown\nfrom .renderers.markdown import MarkdownRenderer\nfrom .renderers.rst import RSTRenderer\n\nif TYPE_CHECKING:\n from .core import BaseRenderer\n from .markdown import Markdown\n\n\ndef _md(args: argparse.Namespace) -> "Markdown":\n if args.plugin:\n plugins = args.plugin\n else:\n # default plugins\n plugins = ["strikethrough", "footnotes", "table", "speedup"]\n\n if args.renderer == "rst":\n renderer: "BaseRenderer" = RSTRenderer()\n elif args.renderer == "markdown":\n renderer = MarkdownRenderer()\n else:\n renderer = args.renderer\n return create_markdown(\n escape=args.escape,\n hard_wrap=args.hardwrap,\n renderer=renderer,\n plugins=plugins,\n )\n\n\ndef _output(text: str, args: argparse.Namespace) -> None:\n if args.output:\n with open(args.output, "w") as f:\n f.write(text)\n else:\n print(text)\n\n\nCMD_HELP = """Mistune, a sane and fast python markdown parser.\n\nHere are some use cases of the command line tool:\n\n $ python -m mistune -m "Hi **Markdown**"\n <p>Hi <strong>Markdown</strong></p>\n\n $ python -m mistune -f README.md\n <p>...\n\n $ cat README.md | python -m mistune\n <p>...\n"""\n\n\ndef cli() -> None:\n parser = argparse.ArgumentParser(\n prog="python -m mistune",\n description=CMD_HELP,\n formatter_class=argparse.RawDescriptionHelpFormatter,\n )\n parser.add_argument(\n "-m",\n "--message",\n help="the markdown message to convert",\n )\n parser.add_argument(\n "-f",\n "--file",\n help="the markdown file to convert",\n )\n parser.add_argument(\n "-p",\n "--plugin",\n metavar="NAME",\n action="extend",\n nargs="+",\n help="specifiy a plugin to use",\n )\n parser.add_argument(\n "--escape",\n action="store_true",\n help="turn on escape option",\n )\n parser.add_argument(\n "--hardwrap",\n action="store_true",\n help="turn on hardwrap option",\n )\n parser.add_argument(\n "-o",\n "--output",\n help="write the rendered result into file",\n )\n parser.add_argument(\n "-r",\n "--renderer",\n default="html",\n help="specify the output renderer",\n )\n parser.add_argument("--version", action="version", version="mistune " + version)\n args = parser.parse_args()\n\n message = args.message\n if not message and not args.file:\n message = read_stdin()\n\n if message:\n md = _md(args)\n text = md(message)\n assert isinstance(text, str)\n _output(text, args)\n elif args.file:\n md = _md(args)\n text = md.read(args.file)[0]\n assert isinstance(text, str)\n _output(text, args)\n else:\n print("You MUST specify a message or file")\n sys.exit(1)\n\n\ndef read_stdin() -> Optional[str]:\n is_stdin_pipe = not sys.stdin.isatty()\n if is_stdin_pipe:\n return sys.stdin.read()\n else:\n return None\n\n\nif __name__ == "__main__":\n cli()\n
.venv\Lib\site-packages\mistune\__main__.py
__main__.py
Python
3,207
0.95
0.088889
0.008772
python-kit
520
2023-10-30T21:01:10.690289
Apache-2.0
false
4b5d8c8f3ea3f77db793ac26bbfcf3eb
from typing import TYPE_CHECKING, Any, Dict, Match\n\nfrom ._base import BaseDirective, DirectivePlugin\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BlockState\n from ..markdown import Markdown\n\n\nclass Admonition(DirectivePlugin):\n SUPPORTED_NAMES = {\n "attention",\n "caution",\n "danger",\n "error",\n "hint",\n "important",\n "note",\n "tip",\n "warning",\n }\n\n def parse(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Dict[str, Any]:\n name = self.parse_type(m)\n attrs = {"name": name}\n options = dict(self.parse_options(m))\n if "class" in options:\n attrs["class"] = options["class"]\n\n title = self.parse_title(m)\n if not title:\n title = name.capitalize()\n\n content = self.parse_content(m)\n children = [\n {\n "type": "admonition_title",\n "text": title,\n },\n {\n "type": "admonition_content",\n "children": self.parse_tokens(block, content, state),\n },\n ]\n return {\n "type": "admonition",\n "children": children,\n "attrs": attrs,\n }\n\n def __call__(self, directive: "BaseDirective", md: "Markdown") -> None:\n for name in self.SUPPORTED_NAMES:\n directive.register(name, self.parse)\n\n assert md.renderer is not None\n if md.renderer.NAME == "html":\n md.renderer.register("admonition", render_admonition)\n md.renderer.register("admonition_title", render_admonition_title)\n md.renderer.register("admonition_content", render_admonition_content)\n\n\ndef render_admonition(self: Any, text: str, name: str, **attrs: Any) -> str:\n html = '<section class="admonition ' + name\n _cls = attrs.get("class")\n if _cls:\n html += " " + _cls\n return html + '">\n' + text + "</section>\n"\n\n\ndef render_admonition_title(self: Any, text: str) -> str:\n return '<p class="admonition-title">' + text + "</p>\n"\n\n\ndef render_admonition_content(self: Any, text: str) -> str:\n return text\n
.venv\Lib\site-packages\mistune\directives\admonition.py
admonition.py
Python
2,207
0.85
0.236842
0
vue-tools
273
2025-06-19T20:06:53.959311
MIT
false
2b6e09cec567afb9c5998c09c81fdc1c
import re\nfrom typing import TYPE_CHECKING, Any, Dict, List, Match, Optional\n\nfrom ..util import escape as escape_text\nfrom ..util import escape_url\nfrom ._base import BaseDirective, DirectivePlugin\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BlockState\n from ..markdown import Markdown\n from ..renderers.html import HTMLRenderer\n\n__all__ = ["Image", "Figure"]\n\n_num_re = re.compile(r"^\d+(?:\.\d*)?")\n_allowed_aligns = ["top", "middle", "bottom", "left", "center", "right"]\n\n\ndef _parse_attrs(options: Dict[str, Any]) -> Dict[str, Any]:\n attrs = {}\n if "alt" in options:\n attrs["alt"] = options["alt"]\n\n # validate align\n align = options.get("align")\n if align and align in _allowed_aligns:\n attrs["align"] = align\n\n height = options.get("height")\n width = options.get("width")\n if height and _num_re.match(height):\n attrs["height"] = height\n if width and _num_re.match(width):\n attrs["width"] = width\n if "target" in options:\n attrs["target"] = escape_url(options["target"])\n return attrs\n\n\nclass Image(DirectivePlugin):\n NAME = "image"\n\n def parse(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Dict[str, Any]:\n options = dict(self.parse_options(m))\n attrs = _parse_attrs(options)\n attrs["src"] = self.parse_title(m)\n return {"type": "block_image", "attrs": attrs}\n\n def __call__(self, directive: "BaseDirective", md: "Markdown") -> None:\n directive.register(self.NAME, self.parse)\n assert md.renderer is not None\n if md.renderer.NAME == "html":\n md.renderer.register("block_image", render_block_image)\n\n\ndef render_block_image(\n self: "HTMLRenderer",\n src: str,\n alt: Optional[str] = None,\n width: Optional[str] = None,\n height: Optional[str] = None,\n **attrs: Any,\n) -> str:\n img = '<img src="' + escape_text(src) + '"'\n style = ""\n if alt:\n img += ' alt="' + escape_text(alt) + '"'\n if width:\n if width.isdigit():\n img += ' width="' + width + '"'\n else:\n style += "width:" + width + ";"\n if height:\n if height.isdigit():\n img += ' height="' + height + '"'\n else:\n style += "height:" + height + ";"\n if style:\n img += ' style="' + escape_text(style) + '"'\n\n img += " />"\n\n _cls = "block-image"\n align = attrs.get("align")\n if align:\n _cls += " align-" + align\n\n target = attrs.get("target")\n if target:\n href = self.safe_url(target)\n outer = '<a class="' + _cls + '" href="' + href + '">'\n return outer + img + "</a>\n"\n else:\n return '<div class="' + _cls + '">' + img + "</div>\n"\n\n\nclass Figure(DirectivePlugin):\n NAME = "figure"\n\n def parse_directive_content(\n self, block: "BlockParser", m: Match[str], state: "BlockState"\n ) -> Optional[List[Dict[str, Any]]]:\n content = self.parse_content(m)\n if not content:\n return None\n\n tokens = list(self.parse_tokens(block, content, state))\n caption = tokens[0]\n if caption["type"] == "paragraph":\n caption["type"] = "figcaption"\n children = [caption]\n if len(tokens) > 1:\n children.append({"type": "legend", "children": tokens[1:]})\n return children\n return None\n\n def parse(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Dict[str, Any]:\n options = dict(self.parse_options(m))\n image_attrs = _parse_attrs(options)\n image_attrs["src"] = self.parse_title(m)\n\n align = image_attrs.pop("align", None)\n fig_attrs = {}\n if align:\n fig_attrs["align"] = align\n for k in ["figwidth", "figclass"]:\n if k in options:\n fig_attrs[k] = options[k]\n\n children = [{"type": "block_image", "attrs": image_attrs}]\n content = self.parse_directive_content(block, m, state)\n if content:\n children.extend(content)\n return {\n "type": "figure",\n "attrs": fig_attrs,\n "children": children,\n }\n\n def __call__(self, directive: "BaseDirective", md: "Markdown") -> None:\n directive.register(self.NAME, self.parse)\n\n assert md.renderer is not None\n if md.renderer.NAME == "html":\n md.renderer.register("figure", render_figure)\n md.renderer.register("block_image", render_block_image)\n md.renderer.register("figcaption", render_figcaption)\n md.renderer.register("legend", render_legend)\n\n\ndef render_figure(\n self: Any,\n text: str,\n align: Optional[str] = None,\n figwidth: Optional[str] = None,\n figclass: Optional[str] = None,\n) -> str:\n _cls = "figure"\n if align:\n _cls += " align-" + align\n if figclass:\n _cls += " " + figclass\n\n html = '<figure class="' + _cls + '"'\n if figwidth:\n html += ' style="width:' + figwidth + '"'\n return html + ">\n" + text + "</figure>\n"\n\n\ndef render_figcaption(self: Any, text: str) -> str:\n return "<figcaption>" + text + "</figcaption>\n"\n\n\ndef render_legend(self: Any, text: str) -> str:\n return '<div class="legend">\n' + text + "</div>\n"\n
.venv\Lib\site-packages\mistune\directives\image.py
image.py
Python
5,324
0.95
0.238636
0.013986
node-utils
670
2024-09-09T11:41:29.070718
Apache-2.0
false
19d3e2d03f2d6c71fba409911dc3d3b6
import os\nfrom typing import TYPE_CHECKING, Any, Dict, List, Match, Union\n\nfrom ._base import BaseDirective, DirectivePlugin\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState\n from ..markdown import Markdown\n\n\nclass Include(DirectivePlugin):\n def parse(\n self, block: "BlockParser", m: Match[str], state: "BlockState"\n ) -> Union[Dict[str, Any], List[Dict[str, Any]]]:\n source_file = state.env.get("__file__")\n if not source_file:\n return {"type": "block_error", "raw": "Missing source file"}\n\n encoding = "utf-8"\n options = self.parse_options(m)\n if options:\n attrs = dict(options)\n if "encoding" in attrs:\n encoding = attrs["encoding"]\n else:\n attrs = {}\n\n relpath = self.parse_title(m)\n dest = os.path.join(os.path.dirname(source_file), relpath)\n dest = os.path.normpath(dest)\n\n if dest == source_file:\n return {\n "type": "block_error",\n "raw": "Could not include self: " + relpath,\n }\n\n if not os.path.isfile(dest):\n return {\n "type": "block_error",\n "raw": "Could not find file: " + relpath,\n }\n\n with open(dest, "rb") as f:\n content = f.read().decode(encoding)\n\n ext = os.path.splitext(relpath)[1]\n if ext in {".md", ".markdown", ".mkd"}:\n new_state = block.state_cls()\n new_state.env["__file__"] = dest\n new_state.process(content)\n block.parse(new_state)\n return new_state.tokens\n\n elif ext in {".html", ".xhtml", ".htm"}:\n return {"type": "block_html", "raw": content}\n\n attrs["filepath"] = dest\n return {\n "type": "include",\n "raw": content,\n "attrs": attrs,\n }\n\n def __call__(self, directive: BaseDirective, md: "Markdown") -> None:\n directive.register("include", self.parse)\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("include", render_html_include)\n\n\ndef render_html_include(renderer: "BaseRenderer", text: str, **attrs: Any) -> str:\n return '<pre class="directive-include">\n' + text + "</pre>\n"\n
.venv\Lib\site-packages\mistune\directives\include.py
include.py
Python
2,343
0.85
0.178082
0
node-utils
773
2023-08-24T05:51:17.361881
MIT
false
f35df4f999022aa7ef7fc4daafeb26ec
"""\nTOC directive\n~~~~~~~~~~~~~\n\nThe TOC directive syntax looks like::\n\n .. toc:: Title\n :min-level: 1\n :max-level: 3\n\n"Title", "min-level", and "max-level" option can be empty. "min-level"\nand "max-level" are integers >= 1 and <= 6, which define the allowed\nheading levels writers want to include in the table of contents.\n"""\n\nfrom typing import TYPE_CHECKING, Any, Dict, Match\n\nfrom ..toc import normalize_toc_item, render_toc_ul\nfrom ._base import BaseDirective, DirectivePlugin\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState\n from ..markdown import Markdown\n\n\nclass TableOfContents(DirectivePlugin):\n def __init__(self, min_level: int = 1, max_level: int = 3) -> None:\n self.min_level = min_level\n self.max_level = max_level\n\n def generate_heading_id(self, token: Dict[str, Any], index: int) -> str:\n return "toc_" + str(index + 1)\n\n def parse(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Dict[str, Any]:\n title = self.parse_title(m)\n options = self.parse_options(m)\n if options:\n d_options = dict(options)\n collapse = "collapse" in d_options\n min_level = _normalize_level(d_options, "min-level", self.min_level)\n max_level = _normalize_level(d_options, "max-level", self.max_level)\n if min_level < self.min_level:\n raise ValueError(f'"min-level" option MUST be >= {self.min_level}')\n if max_level > self.max_level:\n raise ValueError(f'"max-level" option MUST be <= {self.max_level}')\n if min_level > max_level:\n raise ValueError('"min-level" option MUST be less than "max-level" option')\n else:\n collapse = False\n min_level = self.min_level\n max_level = self.max_level\n\n attrs = {\n "min_level": min_level,\n "max_level": max_level,\n "collapse": collapse,\n }\n return {"type": "toc", "text": title or "", "attrs": attrs}\n\n def toc_hook(self, md: "Markdown", state: "BlockState") -> None:\n sections = []\n headings = []\n\n for tok in state.tokens:\n if tok["type"] == "toc":\n sections.append(tok)\n elif tok["type"] == "heading":\n headings.append(tok)\n\n if sections:\n toc_items = []\n # adding ID for each heading\n for i, tok in enumerate(headings):\n tok["attrs"]["id"] = self.generate_heading_id(tok, i)\n toc_items.append(normalize_toc_item(md, tok))\n\n for sec in sections:\n _min = sec["attrs"]["min_level"]\n _max = sec["attrs"]["max_level"]\n toc = [item for item in toc_items if _min <= item[0] <= _max]\n sec["attrs"]["toc"] = toc\n\n def __call__(self, directive: BaseDirective, md: "Markdown") -> None:\n if md.renderer and md.renderer.NAME == "html":\n # only works with HTML renderer\n directive.register("toc", self.parse)\n md.before_render_hooks.append(self.toc_hook)\n md.renderer.register("toc", render_html_toc)\n\n\ndef render_html_toc(renderer: "BaseRenderer", title: str, collapse: bool = False, **attrs: Any) -> str:\n if not title:\n title = "Table of Contents"\n content = render_toc_ul(attrs["toc"])\n\n html = '<details class="toc"'\n if not collapse:\n html += " open"\n html += ">\n<summary>" + title + "</summary>\n"\n return html + content + "</details>\n"\n\n\ndef _normalize_level(options: Dict[str, Any], name: str, default: Any) -> Any:\n level = options.get(name)\n if not level:\n return default\n try:\n return int(level)\n except (ValueError, TypeError):\n raise ValueError(f'"{name}" option MUST be integer')\n
.venv\Lib\site-packages\mistune\directives\toc.py
toc.py
Python
3,916
0.95
0.243243
0.022222
python-kit
228
2024-01-23T17:03:46.109286
BSD-3-Clause
false
f5d251bacbcbd5fa31070f99bd936a6c
import re\nfrom abc import ABCMeta, abstractmethod\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n Match,\n Optional,\n Tuple,\n Type,\n Union,\n)\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BlockState\n from ..markdown import Markdown\n\n\nclass DirectiveParser(ABCMeta):\n name = "directive"\n\n @staticmethod\n @abstractmethod\n def parse_type(m: Match[str]) -> str:\n raise NotImplementedError()\n\n @staticmethod\n @abstractmethod\n def parse_title(m: Match[str]) -> str:\n raise NotImplementedError()\n\n @staticmethod\n @abstractmethod\n def parse_content(m: Match[str]) -> str:\n raise NotImplementedError()\n\n @classmethod\n def parse_tokens(cls, block: "BlockParser", text: str, state: "BlockState") -> Iterable[Dict[str, Any]]:\n if state.depth() >= block.max_nested_level - 1 and cls.name in block.rules:\n rules = list(block.rules)\n rules.remove(cls.name)\n else:\n rules = block.rules\n child = state.child_state(text)\n block.parse(child, rules)\n return child.tokens\n\n @staticmethod\n def parse_options(m: Match[str]) -> List[Tuple[str, str]]:\n text = m.group("options")\n if not text.strip():\n return []\n\n options = []\n for line in re.split(r"\n+", text):\n line = line.strip()[1:]\n if not line:\n continue\n i = line.find(":")\n k = line[:i]\n v = line[i + 1 :].strip()\n options.append((k, v))\n return options\n\n\nclass BaseDirective(metaclass=ABCMeta):\n parser: Type[DirectiveParser]\n directive_pattern: Optional[str] = None\n\n def __init__(self, plugins: List["DirectivePlugin"]):\n self._methods: Dict[\n str,\n Callable[\n ["BlockParser", Match[str], "BlockState"],\n Union[Dict[str, Any], List[Dict[str, Any]]],\n ],\n ] = {}\n self.__plugins = plugins\n\n def register(\n self,\n name: str,\n fn: Callable[\n ["BlockParser", Match[str], "BlockState"],\n Union[Dict[str, Any], List[Dict[str, Any]]],\n ],\n ) -> None:\n self._methods[name] = fn\n\n def parse_method(\n self, block: "BlockParser", m: Match[str], state: "BlockState"\n ) -> Union[Dict[str, Any], List[Dict[str, Any]]]:\n _type = self.parser.parse_type(m)\n method = self._methods.get(_type)\n if method:\n try:\n token = method(block, m, state)\n except ValueError as e:\n token = {"type": "block_error", "raw": str(e)}\n else:\n text = m.group(0)\n token = {\n "type": "block_error",\n "raw": text,\n }\n\n if isinstance(token, list):\n for tok in token:\n state.append_token(tok)\n else:\n state.append_token(token)\n return token\n\n @abstractmethod\n def parse_directive(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Optional[int]:\n raise NotImplementedError()\n\n def register_block_parser(self, md: "Markdown", before: Optional[str] = None) -> None:\n md.block.register(\n self.parser.name,\n self.directive_pattern,\n self.parse_directive,\n before=before,\n )\n\n def __call__(self, markdown: "Markdown") -> None:\n for plugin in self.__plugins:\n plugin.parser = self.parser\n plugin(self, markdown)\n\n\nclass DirectivePlugin:\n parser: Type[DirectiveParser]\n\n def __init__(self) -> None: ...\n\n def parse_options(self, m: Match[str]) -> List[Tuple[str, str]]:\n return self.parser.parse_options(m)\n\n def parse_type(self, m: Match[str]) -> str:\n return self.parser.parse_type(m)\n\n def parse_title(self, m: Match[str]) -> str:\n return self.parser.parse_title(m)\n\n def parse_content(self, m: Match[str]) -> str:\n return self.parser.parse_content(m)\n\n def parse_tokens(self, block: "BlockParser", text: str, state: "BlockState") -> Iterable[Dict[str, Any]]:\n return self.parser.parse_tokens(block, text, state)\n\n def parse(\n self, block: "BlockParser", m: Match[str], state: "BlockState"\n ) -> Union[Dict[str, Any], List[Dict[str, Any]]]:\n raise NotImplementedError()\n\n def __call__(self, directive: BaseDirective, md: "Markdown") -> None:\n raise NotImplementedError()\n
.venv\Lib\site-packages\mistune\directives\_base.py
_base.py
Python
4,605
0.85
0.197531
0
python-kit
269
2023-08-17T11:03:25.454812
BSD-3-Clause
false
0fb510dff403ee4297b1056de10e8c65
import re\nfrom typing import TYPE_CHECKING, List, Match, Optional\n\nfrom ._base import BaseDirective, DirectiveParser, DirectivePlugin\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BlockState\n from ..markdown import Markdown\n\n\n__all__ = ["FencedDirective"]\n\n\n_type_re = re.compile(r"^ *\{[a-zA-Z0-9_-]+\}")\n_directive_re = re.compile(\n r"\{(?P<type>[a-zA-Z0-9_-]+)\} *(?P<title>[^\n]*)(?:\n|$)"\n r"(?P<options>(?:\:[a-zA-Z0-9_-]+\: *[^\n]*\n+)*)"\n r"\n*(?P<text>(?:[^\n]*\n+)*)"\n)\n\n\nclass FencedParser(DirectiveParser):\n name = "fenced_directive"\n\n @staticmethod\n def parse_type(m: Match[str]) -> str:\n return m.group("type")\n\n @staticmethod\n def parse_title(m: Match[str]) -> str:\n return m.group("title")\n\n @staticmethod\n def parse_content(m: Match[str]) -> str:\n return m.group("text")\n\n\nclass FencedDirective(BaseDirective):\n """A **fenced** style of directive looks like a fenced code block, it is\n inspired by markdown-it-docutils. The syntax looks like:\n\n .. code-block:: text\n\n ```{directive-type} title\n :option-key: option value\n :option-key: option value\n\n content text here\n ```\n\n To use ``FencedDirective``, developers can add it into plugin list in\n the :class:`Markdown` instance:\n\n .. code-block:: python\n\n import mistune\n from mistune.directives import FencedDirective, Admonition\n\n md = mistune.create_markdown(plugins=[\n # ...\n FencedDirective([Admonition()]),\n ])\n\n FencedDirective is using >= 3 backticks or curly-brackets for the fenced\n syntax. Developers can change it to other characters, e.g. colon:\n\n .. code-block:: python\n\n directive = FencedDirective([Admonition()], ':')\n\n And then the directive syntax would look like:\n\n .. code-block:: text\n\n ::::{note} Nesting directives\n You can nest directives by ensuring the start and end fence matching\n the length. For instance, in this example, the admonition is started\n with 4 colons, then it should end with 4 colons.\n\n You can nest another admonition with other length of colons except 4.\n\n :::{tip} Longer outermost fence\n It would be better that you put longer markers for the outer fence,\n and shorter markers for the inner fence. In this example, we put 4\n colons outsie, and 3 colons inside.\n :::\n ::::\n\n :param plugins: list of directive plugins\n :param markers: characters to determine the fence, default is backtick\n and curly-bracket\n """\n\n parser = FencedParser\n\n def __init__(self, plugins: List[DirectivePlugin], markers: str = "`~") -> None:\n super(FencedDirective, self).__init__(plugins)\n self.markers = markers\n _marker_pattern = "|".join(re.escape(c) for c in markers)\n self.directive_pattern = (\n r"^(?P<fenced_directive_mark>(?:" + _marker_pattern + r"){3,})"\n r"\{[a-zA-Z0-9_-]+\}"\n )\n\n def _process_directive(self, block: "BlockParser", marker: str, start: int, state: "BlockState") -> Optional[int]:\n mlen = len(marker)\n cursor_start = start + len(marker)\n\n _end_pattern = (\n r"^ {0,3}" + marker[0] + "{" + str(mlen) + r",}"\n r"[ \t]*(?:\n|$)"\n )\n _end_re = re.compile(_end_pattern, re.M)\n\n _end_m = _end_re.search(state.src, cursor_start)\n if _end_m:\n text = state.src[cursor_start : _end_m.start()]\n end_pos = _end_m.end()\n else:\n text = state.src[cursor_start:]\n end_pos = state.cursor_max\n\n m = _directive_re.match(text)\n if not m:\n return None\n\n self.parse_method(block, m, state)\n return end_pos\n\n def parse_directive(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Optional[int]:\n marker = m.group("fenced_directive_mark")\n return self._process_directive(block, marker, m.start(), state)\n\n def parse_fenced_code(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Optional[int]:\n info = m.group("fenced_3")\n if not info or not _type_re.match(info):\n return block.parse_fenced_code(m, state)\n\n if state.depth() >= block.max_nested_level:\n return block.parse_fenced_code(m, state)\n\n marker = m.group("fenced_2")\n return self._process_directive(block, marker, m.start(), state)\n\n def __call__(self, md: "Markdown") -> None:\n super(FencedDirective, self).__call__(md)\n if self.markers == "`~":\n md.block.register("fenced_code", None, self.parse_fenced_code)\n else:\n self.register_block_parser(md, "fenced_code")\n
.venv\Lib\site-packages\mistune\directives\_fenced.py
_fenced.py
Python
4,826
0.95
0.139073
0.009091
awesome-app
513
2024-06-27T22:55:12.806136
GPL-3.0
false
bdd00fad85c689aa10f91a8c2703ac1f
import re\nfrom typing import TYPE_CHECKING, Match, Optional\n\nfrom ._base import BaseDirective, DirectiveParser\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BlockState\n from ..markdown import Markdown\n\n__all__ = ["RSTDirective"]\n\n\n_directive_re = re.compile(\n r"\.\.( +)(?P<type>[a-zA-Z0-9_-]+)\:\: *(?P<title>[^\n]*)(?:\n|$)"\n r"(?P<options>(?: \1 {0,3}\:[a-zA-Z0-9_-]+\: *[^\n]*\n+)*)"\n r"\n*(?P<text>(?: \1 {0,3}[^\n]*\n+)*)"\n)\n\n\nclass RSTParser(DirectiveParser):\n name = "rst_directive"\n\n @staticmethod\n def parse_type(m: Match[str]) -> str:\n return m.group("type")\n\n @staticmethod\n def parse_title(m: Match[str]) -> str:\n return m.group("title")\n\n @staticmethod\n def parse_content(m: Match[str]) -> str:\n full_content = m.group(0)\n text = m.group("text")\n pretext = full_content[: -len(text)]\n leading = len(m.group(1)) + 2\n return "\n".join(line[leading:] for line in text.splitlines()) + "\n"\n\n\nclass RSTDirective(BaseDirective):\n """A RST style of directive syntax is inspired by reStructuredText.\n The syntax is very powerful that you can define a lot of custom\n features on your own. The syntax looks like:\n\n .. code-block:: text\n\n .. directive-type:: directive value\n :option-key: option value\n :option-key: option value\n\n content text here\n\n To use ``RSTDirective``, developers can add it into plugin list in\n the :class:`Markdown` instance:\n\n .. code-block:: python\n\n import mistune\n from mistune.directives import RSTDirective, Admonition\n\n md = mistune.create_markdown(plugins=[\n # ...\n RSTDirective([Admonition()]),\n ])\n """\n\n parser = RSTParser\n directive_pattern = r"^\.\. +[a-zA-Z0-9_-]+\:\:"\n\n def parse_directive(self, block: "BlockParser", m: Match[str], state: "BlockState") -> Optional[int]:\n m2 = _directive_re.match(state.src, state.cursor)\n if not m2:\n return None\n\n self.parse_method(block, m2, state)\n return m2.end()\n\n def __call__(self, markdown: "Markdown") -> None:\n super(RSTDirective, self).__call__(markdown)\n self.register_block_parser(markdown)\n
.venv\Lib\site-packages\mistune\directives\_rst.py
_rst.py
Python
2,282
0.95
0.135802
0.017241
react-lib
522
2024-07-09T05:58:13.024207
GPL-3.0
false
606589d55917806ece54a4734e0b33ab
from typing import List\n\nfrom ._base import BaseDirective, DirectiveParser, DirectivePlugin\nfrom ._fenced import FencedDirective\nfrom ._rst import RSTDirective\nfrom .admonition import Admonition\nfrom .image import Figure, Image\nfrom .include import Include\nfrom .toc import TableOfContents\n\n\nclass RstDirective(RSTDirective): # pragma: no cover\n def __init__(self, plugins: List[DirectivePlugin]) -> None:\n super(RstDirective, self).__init__(plugins)\n import warnings\n\n warnings.warn(\n "'RstDirective' is deprecated, please use 'RSTDirective' instead.",\n DeprecationWarning,\n stacklevel=2,\n )\n\n\n__all__ = [\n "DirectiveParser",\n "BaseDirective",\n "DirectivePlugin",\n "RSTDirective",\n "FencedDirective",\n "Admonition",\n "TableOfContents",\n "Include",\n "Image",\n "Figure",\n]\n
.venv\Lib\site-packages\mistune\directives\__init__.py
__init__.py
Python
867
0.95
0.057143
0
awesome-app
973
2023-08-06T13:12:39.322879
GPL-3.0
false
164d61250744f99f3625bf9f34c06de0
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\admonition.cpython-313.pyc
admonition.cpython-313.pyc
Other
3,440
0.95
0.061224
0
react-lib
911
2023-12-03T08:15:51.948001
Apache-2.0
false
654a5b012003de2606c58ee21822305d
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\image.cpython-313.pyc
image.cpython-313.pyc
Other
8,125
0.8
0.040404
0.010417
vue-tools
154
2024-05-21T00:47:56.619164
GPL-3.0
false
452869541db1631c464df57a39597658
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\include.cpython-313.pyc
include.cpython-313.pyc
Other
3,770
0.8
0.016949
0
node-utils
0
2023-07-21T22:08:46.323696
GPL-3.0
false
66871e5c0cf10f7648b23db7c496aef0
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\toc.cpython-313.pyc
toc.cpython-313.pyc
Other
5,814
0.8
0.015873
0
node-utils
67
2025-03-25T19:13:28.601236
GPL-3.0
false
a6e8ae06b90061e481a8dda28f9e5973
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\_base.cpython-313.pyc
_base.cpython-313.pyc
Other
8,584
0.8
0
0
react-lib
24
2025-02-28T05:22:14.355239
GPL-3.0
false
17cae1a7a249e6138efc630641f13431
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\_fenced.cpython-313.pyc
_fenced.cpython-313.pyc
Other
7,440
0.95
0.037037
0.011111
python-kit
314
2025-02-01T07:38:53.106855
GPL-3.0
false
796d34a2f2128cb8fb7675deecf53d55
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\_rst.cpython-313.pyc
_rst.cpython-313.pyc
Other
4,202
0.95
0.015625
0.018519
node-utils
581
2024-12-06T08:51:34.908402
GPL-3.0
false
6e07673e539c07aa8ad38dba9cd3018a
\n\n
.venv\Lib\site-packages\mistune\directives\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
1,443
0.7
0
0
node-utils
462
2025-04-13T00:26:12.573740
BSD-3-Clause
false
5f2beff137ca90583db945e774e28d50
import re\nimport types\nfrom typing import TYPE_CHECKING, Match\n\nfrom ..helpers import PREVENT_BACKSLASH\nfrom ..util import escape\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n__all__ = ["abbr"]\n\n# https://michelf.ca/projects/php-markdown/extra/#abbr\nREF_ABBR = (\n r"^ {0,3}\*\[(?P<abbr_key>[^\]]+)" + PREVENT_BACKSLASH + r"\]:"\n r"(?P<abbr_text>(?:[ \t]*\n(?: {3,}|\t)[^\n]+)|(?:[^\n]*))$"\n)\n\n\ndef parse_ref_abbr(block: "BlockParser", m: Match[str], state: "BlockState") -> int:\n ref = state.env.get("ref_abbrs")\n if not ref:\n ref = {}\n key = m.group("abbr_key")\n text = m.group("abbr_text")\n ref[key] = text.strip()\n state.env["ref_abbrs"] = ref\n # abbr definition can split paragraph\n state.append_token({"type": "blank_line"})\n return m.end() + 1\n\n\ndef process_text(inline: "InlineParser", text: str, state: "InlineState") -> None:\n ref = state.env.get("ref_abbrs")\n if not ref:\n return state.append_token({"type": "text", "raw": text})\n\n if state.tokens:\n last = state.tokens[-1]\n if last["type"] == "text":\n state.tokens.pop()\n text = last["raw"] + text\n\n abbrs_re = state.env.get("abbrs_re")\n if not abbrs_re:\n abbrs_re = re.compile(r"|".join(re.escape(k) for k in ref.keys()))\n state.env["abbrs_re"] = abbrs_re\n\n pos = 0\n while pos < len(text):\n m = abbrs_re.search(text, pos)\n if not m:\n break\n\n end_pos = m.start()\n if end_pos > pos:\n hole = text[pos:end_pos]\n state.append_token({"type": "text", "raw": hole})\n\n label = m.group(0)\n state.append_token(\n {"type": "abbr", "children": [{"type": "text", "raw": label}], "attrs": {"title": ref[label]}}\n )\n pos = m.end()\n\n if pos == 0:\n # special case, just pure text\n state.append_token({"type": "text", "raw": text})\n elif pos < len(text):\n state.append_token({"type": "text", "raw": text[pos:]})\n\n\ndef render_abbr(renderer: "BaseRenderer", text: str, title: str) -> str:\n if not title:\n return "<abbr>" + text + "</abbr>"\n return '<abbr title="' + escape(title) + '">' + text + "</abbr>"\n\n\ndef abbr(md: "Markdown") -> None:\n """A mistune plugin to support abbreviations, spec defined at\n https://michelf.ca/projects/php-markdown/extra/#abbr\n\n Here is an example:\n\n .. code-block:: text\n\n The HTML specification\n is maintained by the W3C.\n\n *[HTML]: Hyper Text Markup Language\n *[W3C]: World Wide Web Consortium\n\n It will be converted into HTML:\n\n .. code-block:: html\n\n The <abbr title="Hyper Text Markup Language">HTML</abbr> specification\n is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.\n\n :param md: Markdown instance\n """\n md.block.register("ref_abbr", REF_ABBR, parse_ref_abbr, before="paragraph")\n # replace process_text\n md.inline.process_text = types.MethodType(process_text, md.inline) # type: ignore[method-assign]\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("abbr", render_abbr)\n
.venv\Lib\site-packages\mistune\plugins\abbr.py
abbr.py
Python
3,304
0.95
0.155963
0.072289
react-lib
827
2023-08-31T02:07:16.663502
Apache-2.0
false
7ea6c8bd7203a950d3882e5d64ef4f51
import re\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, List, Match\n\nfrom ..util import strip_end\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState\n from ..markdown import Markdown\n\n__all__ = ["def_list"]\n\n# https://michelf.ca/projects/php-markdown/extra/#def-list\n\nDEF_PATTERN = (\n r"^(?P<def_list_head>(?:[^\n]+\n)+?)"\n r"\n?(?:"\n r"\:[ \t]+.*\n"\n r"(?:[^\n]+\n)*" # lazy continue line\n r"(?:(?:[ \t]*\n)*[ \t]+[^\n]+\n)*"\n r"(?:[ \t]*\n)*"\n r")+"\n)\nDEF_RE = re.compile(DEF_PATTERN, re.M)\nDD_START_RE = re.compile(r"^:[ \t]+", re.M)\nTRIM_RE = re.compile(r"^ {0,4}", re.M)\nHAS_BLANK_LINE_RE = re.compile(r"\n[ \t]*\n$")\n\n\ndef parse_def_list(block: "BlockParser", m: Match[str], state: "BlockState") -> int:\n pos = m.end()\n children = list(_parse_def_item(block, m))\n\n m2 = DEF_RE.match(state.src, pos)\n while m2:\n children.extend(list(_parse_def_item(block, m2)))\n pos = m2.end()\n m2 = DEF_RE.match(state.src, pos)\n\n state.append_token(\n {\n "type": "def_list",\n "children": children,\n }\n )\n return pos\n\n\ndef _parse_def_item(block: "BlockParser", m: Match[str]) -> Iterable[Dict[str, Any]]:\n head = m.group("def_list_head")\n for line in head.splitlines():\n yield {\n "type": "def_list_head",\n "text": line,\n }\n\n src = m.group(0)\n end = len(head)\n\n m2 = DD_START_RE.search(src, end)\n assert m2 is not None\n start = m2.start()\n prev_blank_line = src[end:start] == "\n"\n while m2:\n m2 = DD_START_RE.search(src, start + 1)\n if not m2:\n break\n\n end = m2.start()\n text = src[start:end].replace(":", " ", 1)\n children = _process_text(block, text, prev_blank_line)\n prev_blank_line = bool(HAS_BLANK_LINE_RE.search(text))\n yield {\n "type": "def_list_item",\n "children": children,\n }\n start = end\n\n text = src[start:].replace(":", " ", 1)\n children = _process_text(block, text, prev_blank_line)\n yield {\n "type": "def_list_item",\n "children": children,\n }\n\n\ndef _process_text(block: "BlockParser", text: str, loose: bool) -> List[Any]:\n text = TRIM_RE.sub("", text)\n state = block.state_cls()\n state.process(strip_end(text))\n # use default list rules\n block.parse(state, block.list_rules)\n tokens = state.tokens\n if not loose and len(tokens) == 1 and tokens[0]["type"] == "paragraph":\n tokens[0]["type"] = "block_text"\n return tokens\n\n\ndef render_def_list(renderer: "BaseRenderer", text: str) -> str:\n return "<dl>\n" + text + "</dl>\n"\n\n\ndef render_def_list_head(renderer: "BaseRenderer", text: str) -> str:\n return "<dt>" + text + "</dt>\n"\n\n\ndef render_def_list_item(renderer: "BaseRenderer", text: str) -> str:\n return "<dd>" + text + "</dd>\n"\n\n\ndef def_list(md: "Markdown") -> None:\n """A mistune plugin to support def list, spec defined at\n https://michelf.ca/projects/php-markdown/extra/#def-list\n\n Here is an example:\n\n .. code-block:: text\n\n Apple\n : Pomaceous fruit of plants of the genus Malus in\n the family Rosaceae.\n\n Orange\n : The fruit of an evergreen tree of the genus Citrus.\n\n It will be converted into HTML:\n\n .. code-block:: html\n\n <dl>\n <dt>Apple</dt>\n <dd>Pomaceous fruit of plants of the genus Malus in\n the family Rosaceae.</dd>\n\n <dt>Orange</dt>\n <dd>The fruit of an evergreen tree of the genus Citrus.</dd>\n </dl>\n\n :param md: Markdown instance\n """\n md.block.register("def_list", DEF_PATTERN, parse_def_list, before="paragraph")\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("def_list", render_def_list)\n md.renderer.register("def_list_head", render_def_list_head)\n md.renderer.register("def_list_item", render_def_list_item)\n
.venv\Lib\site-packages\mistune\plugins\def_list.py
def_list.py
Python
4,008
0.95
0.117241
0.018018
vue-tools
369
2024-12-31T08:16:29.260027
BSD-3-Clause
false
6ecf42dad3e0c7c70c22e467ca838ff3
import re\nfrom typing import TYPE_CHECKING, Any, Dict, List, Match, Union\n\nfrom ..core import BlockState\nfrom ..helpers import LINK_LABEL\nfrom ..util import unikey\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n__all__ = ["footnotes"]\n\n_PARAGRAPH_SPLIT = re.compile(r"\n{2,}")\n# https://michelf.ca/projects/php-markdown/extra/#footnotes\nREF_FOOTNOTE = (\n r"^(?P<footnote_lead> {0,3})"\n r"\[\^(?P<footnote_key>" + LINK_LABEL + r")]:[ \t]"\n r"(?P<footnote_text>[^\n]*(?:\n+|$)"\n r"(?:(?P=footnote_lead) {1,3}(?! )[^\n]*\n+)*"\n r")"\n)\n\nINLINE_FOOTNOTE = r"\[\^(?P<footnote_key>" + LINK_LABEL + r")\]"\n\n\ndef parse_inline_footnote(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n key = unikey(m.group("footnote_key"))\n ref = state.env.get("ref_footnotes")\n if ref and key in ref:\n notes = state.env.get("footnotes")\n if not notes:\n notes = []\n if key not in notes:\n notes.append(key)\n state.env["footnotes"] = notes\n state.append_token({"type": "footnote_ref", "raw": key, "attrs": {"index": notes.index(key) + 1}})\n else:\n state.append_token({"type": "text", "raw": m.group(0)})\n return m.end()\n\n\ndef parse_ref_footnote(block: "BlockParser", m: Match[str], state: BlockState) -> int:\n ref = state.env.get("ref_footnotes")\n if not ref:\n ref = {}\n\n key = unikey(m.group("footnote_key"))\n if key not in ref:\n ref[key] = m.group("footnote_text")\n state.env["ref_footnotes"] = ref\n return m.end()\n\n\ndef parse_footnote_item(block: "BlockParser", key: str, index: int, state: BlockState) -> Dict[str, Any]:\n ref = state.env.get("ref_footnotes")\n if not ref:\n raise ValueError("Missing 'ref_footnotes'.")\n text = ref[key]\n\n lines = text.splitlines()\n second_line = None\n for second_line in lines[1:]:\n if second_line:\n break\n\n if second_line:\n spaces = len(second_line) - len(second_line.lstrip())\n pattern = re.compile(r"^ {" + str(spaces) + r",}", flags=re.M)\n text = pattern.sub("", text).strip()\n items = _PARAGRAPH_SPLIT.split(text)\n children = [{"type": "paragraph", "text": s} for s in items]\n else:\n text = text.strip()\n children = [{"type": "paragraph", "text": text}]\n return {"type": "footnote_item", "children": children, "attrs": {"key": key, "index": index}}\n\n\ndef md_footnotes_hook(\n md: "Markdown", result: Union[str, List[Dict[str, Any]]], state: BlockState\n) -> Union[str, List[Dict[str, Any]]]:\n notes = state.env.get("footnotes")\n if not notes:\n return result\n\n children = [parse_footnote_item(md.block, k, i + 1, state) for i, k in enumerate(notes)]\n state = BlockState()\n state.tokens = [{"type": "footnotes", "children": children}]\n output = md.render_state(state)\n return result + output # type: ignore[operator]\n\n\ndef render_footnote_ref(renderer: "BaseRenderer", key: str, index: int) -> str:\n i = str(index)\n html = '<sup class="footnote-ref" id="fnref-' + i + '">'\n return html + '<a href="#fn-' + i + '">' + i + "</a></sup>"\n\n\ndef render_footnotes(renderer: "BaseRenderer", text: str) -> str:\n return '<section class="footnotes">\n<ol>\n' + text + "</ol>\n</section>\n"\n\n\ndef render_footnote_item(renderer: "BaseRenderer", text: str, key: str, index: int) -> str:\n i = str(index)\n back = '<a href="#fnref-' + i + '" class="footnote">&#8617;</a>'\n text = text.rstrip()[:-4] + back + "</p>"\n return '<li id="fn-' + i + '">' + text + "</li>\n"\n\n\ndef footnotes(md: "Markdown") -> None:\n """A mistune plugin to support footnotes, spec defined at\n https://michelf.ca/projects/php-markdown/extra/#footnotes\n\n Here is an example:\n\n .. code-block:: text\n\n That's some text with a footnote.[^1]\n\n [^1]: And that's the footnote.\n\n It will be converted into HTML:\n\n .. code-block:: html\n\n <p>That's some text with a footnote.<sup class="footnote-ref" id="fnref-1"><a href="#fn-1">1</a></sup></p>\n <section class="footnotes">\n <ol>\n <li id="fn-1"><p>And that's the footnote.<a href="#fnref-1" class="footnote">&#8617;</a></p></li>\n </ol>\n </section>\n\n :param md: Markdown instance\n """\n md.inline.register(\n "footnote",\n INLINE_FOOTNOTE,\n parse_inline_footnote,\n before="link",\n )\n md.block.register(\n "ref_footnote",\n REF_FOOTNOTE,\n parse_ref_footnote,\n before="ref_link",\n )\n md.after_render_hooks.append(md_footnotes_hook)\n\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("footnote_ref", render_footnote_ref)\n md.renderer.register("footnote_item", render_footnote_item)\n md.renderer.register("footnotes", render_footnotes)\n
.venv\Lib\site-packages\mistune\plugins\footnotes.py
footnotes.py
Python
4,985
0.95
0.181818
0.008333
react-lib
405
2024-08-30T02:04:05.445922
Apache-2.0
false
46c26861db4fea2d70a84081271accfb
import re\nfrom typing import TYPE_CHECKING, Match, Optional, Pattern\n\nfrom ..helpers import PREVENT_BACKSLASH\n\nif TYPE_CHECKING:\n from ..core import BaseRenderer, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n__all__ = ["strikethrough", "mark", "insert", "superscript", "subscript"]\n\n_STRIKE_END = re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\~|[^\s~])~~(?!~)")\n_MARK_END = re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\=|[^\s=])==(?!=)")\n_INSERT_END = re.compile(r"(?:" + PREVENT_BACKSLASH + r"\\\^|[^\s^])\^\^(?!\^)")\n\nSUPERSCRIPT_PATTERN = r"\^(?:" + PREVENT_BACKSLASH + r"\\\^|\S|\\ )+?\^"\nSUBSCRIPT_PATTERN = r"~(?:" + PREVENT_BACKSLASH + r"\\~|\S|\\ )+?~"\n\n\ndef parse_strikethrough(inline: "InlineParser", m: Match[str], state: "InlineState") -> Optional[int]:\n return _parse_to_end(inline, m, state, "strikethrough", _STRIKE_END)\n\n\ndef render_strikethrough(renderer: "BaseRenderer", text: str) -> str:\n return "<del>" + text + "</del>"\n\n\ndef parse_mark(inline: "InlineParser", m: Match[str], state: "InlineState") -> Optional[int]:\n return _parse_to_end(inline, m, state, "mark", _MARK_END)\n\n\ndef render_mark(renderer: "BaseRenderer", text: str) -> str:\n return "<mark>" + text + "</mark>"\n\n\ndef parse_insert(inline: "InlineParser", m: Match[str], state: "InlineState") -> Optional[int]:\n return _parse_to_end(inline, m, state, "insert", _INSERT_END)\n\n\ndef render_insert(renderer: "BaseRenderer", text: str) -> str:\n return "<ins>" + text + "</ins>"\n\n\ndef parse_superscript(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n return _parse_script(inline, m, state, "superscript")\n\n\ndef render_superscript(renderer: "BaseRenderer", text: str) -> str:\n return "<sup>" + text + "</sup>"\n\n\ndef parse_subscript(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n return _parse_script(inline, m, state, "subscript")\n\n\ndef render_subscript(renderer: "BaseRenderer", text: str) -> str:\n return "<sub>" + text + "</sub>"\n\n\ndef _parse_to_end(\n inline: "InlineParser",\n m: Match[str],\n state: "InlineState",\n tok_type: str,\n end_pattern: Pattern[str],\n) -> Optional[int]:\n pos = m.end()\n m1 = end_pattern.search(state.src, pos)\n if not m1:\n return None\n end_pos = m1.end()\n text = state.src[pos : end_pos - 2]\n new_state = state.copy()\n new_state.src = text\n children = inline.render(new_state)\n state.append_token({"type": tok_type, "children": children})\n return end_pos\n\n\ndef _parse_script(inline: "InlineParser", m: Match[str], state: "InlineState", tok_type: str) -> int:\n text = m.group(0)\n new_state = state.copy()\n new_state.src = text[1:-1].replace("\\ ", " ")\n children = inline.render(new_state)\n state.append_token({"type": tok_type, "children": children})\n return m.end()\n\n\ndef strikethrough(md: "Markdown") -> None:\n """A mistune plugin to support strikethrough. Spec defined by\n GitHub flavored Markdown and commonly used by many parsers:\n\n .. code-block:: text\n\n ~~This was mistaken text~~\n\n It will be converted into HTML:\n\n .. code-block:: html\n\n <del>This was mistaken text</del>\n\n :param md: Markdown instance\n """\n md.inline.register(\n "strikethrough",\n r"~~(?=[^\s~])",\n parse_strikethrough,\n before="link",\n )\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("strikethrough", render_strikethrough)\n\n\ndef mark(md: "Markdown") -> None:\n """A mistune plugin to add ``<mark>`` tag. Spec defined at\n https://facelessuser.github.io/pymdown-extensions/extensions/mark/:\n\n .. code-block:: text\n\n ==mark me== ==mark \\=\\= equal==\n\n :param md: Markdown instance\n """\n md.inline.register(\n "mark",\n r"==(?=[^\s=])",\n parse_mark,\n before="link",\n )\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("mark", render_mark)\n\n\ndef insert(md: "Markdown") -> None:\n """A mistune plugin to add ``<ins>`` tag. Spec defined at\n https://facelessuser.github.io/pymdown-extensions/extensions/caret/#insert:\n\n .. code-block:: text\n\n ^^insert me^^\n\n :param md: Markdown instance\n """\n md.inline.register(\n "insert",\n r"\^\^(?=[^\s\^])",\n parse_insert,\n before="link",\n )\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("insert", render_insert)\n\n\ndef superscript(md: "Markdown") -> None:\n """A mistune plugin to add ``<sup>`` tag. Spec defined at\n https://pandoc.org/MANUAL.html#superscripts-and-subscripts:\n\n .. code-block:: text\n\n 2^10^ is 1024.\n\n :param md: Markdown instance\n """\n md.inline.register("superscript", SUPERSCRIPT_PATTERN, parse_superscript, before="linebreak")\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("superscript", render_superscript)\n\n\ndef subscript(md: "Markdown") -> None:\n """A mistune plugin to add ``<sub>`` tag. Spec defined at\n https://pandoc.org/MANUAL.html#superscripts-and-subscripts:\n\n .. code-block:: text\n\n H~2~O is a liquid.\n\n :param md: Markdown instance\n """\n md.inline.register("subscript", SUBSCRIPT_PATTERN, parse_subscript, before="linebreak")\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("subscript", render_subscript)\n
.venv\Lib\site-packages\mistune\plugins\formatting.py
formatting.py
Python
5,435
0.95
0.131148
0
vue-tools
835
2025-03-22T23:28:20.395202
BSD-3-Clause
false
24b8804adccb066202f1dfff2c1a8a48
from typing import TYPE_CHECKING, Match\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n__all__ = ["math", "math_in_quote", "math_in_list"]\n\nBLOCK_MATH_PATTERN = r"^ {0,3}\$\$[ \t]*\n(?P<math_text>[\s\S]+?)\n\$\$[ \t]*$"\nINLINE_MATH_PATTERN = r"\$(?!\s)(?P<math_text>.+?)(?!\s)\$"\n\n\ndef parse_block_math(block: "BlockParser", m: Match[str], state: "BlockState") -> int:\n text = m.group("math_text")\n state.append_token({"type": "block_math", "raw": text})\n return m.end() + 1\n\n\ndef parse_inline_math(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n text = m.group("math_text")\n state.append_token({"type": "inline_math", "raw": text})\n return m.end()\n\n\ndef render_block_math(renderer: "BaseRenderer", text: str) -> str:\n return '<div class="math">$$\n' + text + "\n$$</div>\n"\n\n\ndef render_inline_math(renderer: "BaseRenderer", text: str) -> str:\n return r'<span class="math">\(' + text + r"\)</span>"\n\n\ndef math(md: "Markdown") -> None:\n """A mistune plugin to support math. The syntax is used\n by many markdown extensions:\n\n .. code-block:: text\n\n Block math is surrounded by $$:\n\n $$\n f(a)=f(b)\n $$\n\n Inline math is surrounded by `$`, such as $f(a)=f(b)$\n\n :param md: Markdown instance\n """\n md.block.register("block_math", BLOCK_MATH_PATTERN, parse_block_math, before="list")\n md.inline.register("inline_math", INLINE_MATH_PATTERN, parse_inline_math, before="link")\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("block_math", render_block_math)\n md.renderer.register("inline_math", render_inline_math)\n\n\ndef math_in_quote(md: "Markdown") -> None:\n """Enable block math plugin in block quote."""\n md.block.insert_rule(md.block.block_quote_rules, "block_math", before="list")\n\n\ndef math_in_list(md: "Markdown") -> None:\n """Enable block math plugin in list."""\n md.block.insert_rule(md.block.list_rules, "block_math", before="list")\n
.venv\Lib\site-packages\mistune\plugins\math.py
math.py
Python
2,146
0.85
0.169231
0
awesome-app
741
2024-02-01T21:32:07.490417
Apache-2.0
false
f14e4748a6f9b6f66bfb74632e1e86ee
import re\nfrom typing import TYPE_CHECKING, Any, Dict, List, Match, Optional\n\nfrom ..helpers import parse_link, parse_link_label\nfrom ..util import unikey\n\nif TYPE_CHECKING:\n from ..core import BaseRenderer, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n\nRUBY_PATTERN = r"\[(?:\w+\([\w ]+\))+\]"\n_ruby_re = re.compile(RUBY_PATTERN)\n\n\ndef parse_ruby(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n text = m.group(0)[1:-2]\n items = text.split(")")\n tokens = []\n for item in items:\n rb, rt = item.split("(")\n tokens.append({"type": "ruby", "raw": rb, "attrs": {"rt": rt}})\n\n end_pos = m.end()\n\n next_match = _ruby_re.match(state.src, end_pos)\n if next_match:\n for tok in tokens:\n state.append_token(tok)\n return parse_ruby(inline, next_match, state)\n\n # repeat link logic\n if end_pos < len(state.src):\n link_pos = _parse_ruby_link(inline, state, end_pos, tokens)\n if link_pos:\n return link_pos\n\n for tok in tokens:\n state.append_token(tok)\n return end_pos\n\n\ndef _parse_ruby_link(\n inline: "InlineParser", state: "InlineState", pos: int, tokens: List[Dict[str, Any]]\n) -> Optional[int]:\n c = state.src[pos]\n if c == "(":\n # standard link [text](<url> "title")\n attrs, link_pos = parse_link(state.src, pos + 1)\n if link_pos:\n state.append_token(\n {\n "type": "link",\n "children": tokens,\n "attrs": attrs,\n }\n )\n return link_pos\n\n elif c == "[":\n # standard ref link [text][label]\n label, link_pos = parse_link_label(state.src, pos + 1)\n if label and link_pos:\n ref_links = state.env["ref_links"]\n key = unikey(label)\n env = ref_links.get(key)\n if env:\n attrs = {"url": env["url"], "title": env.get("title")}\n state.append_token(\n {\n "type": "link",\n "children": tokens,\n "attrs": attrs,\n }\n )\n else:\n for tok in tokens:\n state.append_token(tok)\n state.append_token(\n {\n "type": "text",\n "raw": "[" + label + "]",\n }\n )\n return link_pos\n return None\n\n\ndef render_ruby(renderer: "BaseRenderer", text: str, rt: str) -> str:\n return "<ruby>" + text + "<rt>" + rt + "</rt></ruby>"\n\n\ndef ruby(md: "Markdown") -> None:\n """A mistune plugin to support ``<ruby>`` tag. The syntax is defined\n at https://lepture.com/en/2022/markdown-ruby-markup:\n\n .. code-block:: text\n\n [漢字(ㄏㄢˋㄗˋ)]\n [漢(ㄏㄢˋ)字(ㄗˋ)]\n\n [漢字(ㄏㄢˋㄗˋ)][link]\n [漢字(ㄏㄢˋㄗˋ)](/url "title")\n\n [link]: /url "title"\n\n :param md: Markdown instance\n """\n md.inline.register("ruby", RUBY_PATTERN, parse_ruby, before="link")\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("ruby", render_ruby)\n
.venv\Lib\site-packages\mistune\plugins\ruby.py
ruby.py
Python
3,282
0.95
0.151786
0.033333
node-utils
620
2023-10-15T22:16:38.274385
GPL-3.0
false
ca42d180c2382920c144da0ad37fbae4
import re\nimport string\nfrom typing import TYPE_CHECKING, Match\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BlockState, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n# because mismatch is too slow, add parsers for paragraph and text\n\nHARD_LINEBREAK_RE = re.compile(r" *\n\s*")\nPARAGRAPH = (\n # start with none punctuation, not number, not whitespace\n r"(?:^[^\s\d" + re.escape(string.punctuation) + r"][^\n]*\n)+"\n)\n\n__all__ = ["speedup"]\n\n\ndef parse_text(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n text = m.group(0)\n text = HARD_LINEBREAK_RE.sub("\n", text)\n inline.process_text(text, state)\n return m.end()\n\n\ndef parse_paragraph(block: "BlockParser", m: Match[str], state: "BlockState") -> int:\n text = m.group(0)\n state.add_paragraph(text)\n return m.end()\n\n\ndef speedup(md: "Markdown") -> None:\n """Increase the speed of parsing paragraph and inline text."""\n md.block.register("paragraph", PARAGRAPH, parse_paragraph)\n\n punc = r"\\><!\[_*`~\^\$="\n text_pattern = r"[\s\S]+?(?=[" + punc + r"]|"\n if "url_link" in md.inline.rules:\n text_pattern += "https?:|"\n\n if md.inline.hard_wrap:\n text_pattern += r" *\n|"\n else:\n text_pattern += r" {2,}\n|"\n\n text_pattern += r"$)"\n md.inline.register("text", text_pattern, parse_text)\n
.venv\Lib\site-packages\mistune\plugins\speedup.py
speedup.py
Python
1,418
0.95
0.14
0.054054
vue-tools
634
2024-10-22T15:30:45.752649
Apache-2.0
false
6f9cc51997d23847675eec9aa4f93bae
import re\nfrom typing import TYPE_CHECKING, Match\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState, InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n__all__ = ["spoiler"]\n\n_BLOCK_SPOILER_START = re.compile(r"^ {0,3}! ?", re.M)\n_BLOCK_SPOILER_MATCH = re.compile(r"^( {0,3}![^\n]*\n)+$")\n\nINLINE_SPOILER_PATTERN = r">!\s*(?P<spoiler_text>.+?)\s*!<"\n\n\ndef parse_block_spoiler(block: "BlockParser", m: Match[str], state: "BlockState") -> int:\n text, end_pos = block.extract_block_quote(m, state)\n if not text.endswith("\n"):\n # ensure it endswith \n to make sure\n # _BLOCK_SPOILER_MATCH.match works\n text += "\n"\n\n depth = state.depth()\n if not depth and _BLOCK_SPOILER_MATCH.match(text):\n text = _BLOCK_SPOILER_START.sub("", text)\n tok_type = "block_spoiler"\n else:\n tok_type = "block_quote"\n\n # scan children state\n child = state.child_state(text)\n if state.depth() >= block.max_nested_level - 1:\n rules = list(block.block_quote_rules)\n rules.remove("block_quote")\n else:\n rules = block.block_quote_rules\n\n block.parse(child, rules)\n token = {"type": tok_type, "children": child.tokens}\n if end_pos:\n state.prepend_token(token)\n return end_pos\n state.append_token(token)\n return state.cursor\n\n\ndef parse_inline_spoiler(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n text = m.group("spoiler_text")\n new_state = state.copy()\n new_state.src = text\n children = inline.render(new_state)\n state.append_token({"type": "inline_spoiler", "children": children})\n return m.end()\n\n\ndef render_block_spoiler(renderer: "BaseRenderer", text: str) -> str:\n return '<div class="spoiler">\n' + text + "</div>\n"\n\n\ndef render_inline_spoiler(renderer: "BaseRenderer", text: str) -> str:\n return '<span class="spoiler">' + text + "</span>"\n\n\ndef spoiler(md: "Markdown") -> None:\n """A mistune plugin to support block and inline spoiler. The\n syntax is inspired by stackexchange:\n\n .. code-block:: text\n\n Block level spoiler looks like block quote, but with `>!`:\n\n >! this is spoiler\n >!\n >! the content will be hidden\n\n Inline spoiler is surrounded by `>!` and `!<`, such as >! hide me !<.\n\n :param md: Markdown instance\n """\n # reset block quote parser with block spoiler parser\n md.block.register("block_quote", None, parse_block_spoiler)\n md.inline.register("inline_spoiler", INLINE_SPOILER_PATTERN, parse_inline_spoiler)\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("block_spoiler", render_block_spoiler)\n md.renderer.register("inline_spoiler", render_inline_spoiler)\n
.venv\Lib\site-packages\mistune\plugins\spoiler.py
spoiler.py
Python
2,823
0.95
0.149425
0.061538
node-utils
251
2025-01-13T05:31:01.179298
MIT
false
17caf8eb7d117192abb070361cdbddb2
import re\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n List,\n Match,\n Optional,\n Tuple,\n Union,\n)\n\nfrom ..helpers import PREVENT_BACKSLASH\n\nif TYPE_CHECKING:\n from ..block_parser import BlockParser\n from ..core import BaseRenderer, BlockState\n from ..markdown import Markdown\n\n# https://michelf.ca/projects/php-markdown/extra/#table\n\n__all__ = ["table", "table_in_quote", "table_in_list"]\n\n\nTABLE_PATTERN = (\n r"^ {0,3}\|(?P<table_head>.+)\|[ \t]*\n"\n r" {0,3}\|(?P<table_align> *[-:]+[-| :]*)\|[ \t]*\n"\n r"(?P<table_body>(?: {0,3}\|.*\|[ \t]*(?:\n|$))*)\n*"\n)\nNP_TABLE_PATTERN = (\n r"^ {0,3}(?P<nptable_head>\S.*\|.*)\n"\n r" {0,3}(?P<nptable_align>[-:]+ *\|[-| :]*)\n"\n r"(?P<nptable_body>(?:.*\|.*(?:\n|$))*)\n*"\n)\n\nTABLE_CELL = re.compile(r"^ {0,3}\|(.+)\|[ \t]*$")\nCELL_SPLIT = re.compile(r" *" + PREVENT_BACKSLASH + r"\| *")\nALIGN_CENTER = re.compile(r"^ *:-+: *$")\nALIGN_LEFT = re.compile(r"^ *:-+ *$")\nALIGN_RIGHT = re.compile(r"^ *-+: *$")\n\n\ndef parse_table(block: "BlockParser", m: Match[str], state: "BlockState") -> Optional[int]:\n pos = m.end()\n header = m.group("table_head")\n align = m.group("table_align")\n thead, aligns = _process_thead(header, align)\n if not thead:\n return None\n assert aligns is not None\n\n rows = []\n body = m.group("table_body")\n for text in body.splitlines():\n m2 = TABLE_CELL.match(text)\n if not m2: # pragma: no cover\n return None\n row = _process_row(m2.group(1), aligns)\n if not row:\n return None\n rows.append(row)\n\n children = [thead, {"type": "table_body", "children": rows}]\n state.append_token({"type": "table", "children": children})\n return pos\n\n\ndef parse_nptable(block: "BlockParser", m: Match[str], state: "BlockState") -> Optional[int]:\n header = m.group("nptable_head")\n align = m.group("nptable_align")\n thead, aligns = _process_thead(header, align)\n if not thead:\n return None\n assert aligns is not None\n\n rows = []\n body = m.group("nptable_body")\n for text in body.splitlines():\n row = _process_row(text, aligns)\n if not row:\n return None\n rows.append(row)\n\n children = [thead, {"type": "table_body", "children": rows}]\n state.append_token({"type": "table", "children": children})\n return m.end()\n\n\ndef _process_thead(header: str, align: str) -> Union[Tuple[None, None], Tuple[Dict[str, Any], List[str]]]:\n headers = CELL_SPLIT.split(header)\n aligns = CELL_SPLIT.split(align)\n if len(headers) != len(aligns):\n return None, None\n\n for i, v in enumerate(aligns):\n if ALIGN_CENTER.match(v):\n aligns[i] = "center"\n elif ALIGN_LEFT.match(v):\n aligns[i] = "left"\n elif ALIGN_RIGHT.match(v):\n aligns[i] = "right"\n else:\n aligns[i] = None\n\n children = [\n {"type": "table_cell", "text": text.strip(), "attrs": {"align": aligns[i], "head": True}}\n for i, text in enumerate(headers)\n ]\n thead = {"type": "table_head", "children": children}\n return thead, aligns\n\n\ndef _process_row(text: str, aligns: List[str]) -> Optional[Dict[str, Any]]:\n cells = CELL_SPLIT.split(text)\n if len(cells) != len(aligns):\n return None\n\n children = [\n {"type": "table_cell", "text": text.strip(), "attrs": {"align": aligns[i], "head": False}}\n for i, text in enumerate(cells)\n ]\n return {"type": "table_row", "children": children}\n\n\ndef render_table(renderer: "BaseRenderer", text: str) -> str:\n return "<table>\n" + text + "</table>\n"\n\n\ndef render_table_head(renderer: "BaseRenderer", text: str) -> str:\n return "<thead>\n<tr>\n" + text + "</tr>\n</thead>\n"\n\n\ndef render_table_body(renderer: "BaseRenderer", text: str) -> str:\n return "<tbody>\n" + text + "</tbody>\n"\n\n\ndef render_table_row(renderer: "BaseRenderer", text: str) -> str:\n return "<tr>\n" + text + "</tr>\n"\n\n\ndef render_table_cell(renderer: "BaseRenderer", text: str, align: Optional[str] = None, head: bool = False) -> str:\n if head:\n tag = "th"\n else:\n tag = "td"\n\n html = " <" + tag\n if align:\n html += ' style="text-align:' + align + '"'\n\n return html + ">" + text + "</" + tag + ">\n"\n\n\ndef table(md: "Markdown") -> None:\n """A mistune plugin to support table, spec defined at\n https://michelf.ca/projects/php-markdown/extra/#table\n\n Here is an example:\n\n .. code-block:: text\n\n First Header | Second Header\n ------------- | -------------\n Content Cell | Content Cell\n Content Cell | Content Cell\n\n :param md: Markdown instance\n """\n md.block.register("table", TABLE_PATTERN, parse_table, before="paragraph")\n md.block.register("nptable", NP_TABLE_PATTERN, parse_nptable, before="paragraph")\n\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("table", render_table)\n md.renderer.register("table_head", render_table_head)\n md.renderer.register("table_body", render_table_body)\n md.renderer.register("table_row", render_table_row)\n md.renderer.register("table_cell", render_table_cell)\n\n\ndef table_in_quote(md: "Markdown") -> None:\n """Enable table plugin in block quotes."""\n md.block.insert_rule(md.block.block_quote_rules, "table", before="paragraph")\n md.block.insert_rule(md.block.block_quote_rules, "nptable", before="paragraph")\n\n\ndef table_in_list(md: "Markdown") -> None:\n """Enable table plugin in list."""\n md.block.insert_rule(md.block.list_rules, "table", before="paragraph")\n md.block.insert_rule(md.block.list_rules, "nptable", before="paragraph")\n
.venv\Lib\site-packages\mistune\plugins\table.py
table.py
Python
5,722
0.95
0.153439
0.006944
node-utils
251
2025-05-02T13:11:59.120867
BSD-3-Clause
false
9d262eb09db4cfa67c4c224e40cb1820
import re\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable\n\nif TYPE_CHECKING:\n from ..core import BaseRenderer, BlockState\n from ..markdown import Markdown\n\n__all__ = ["task_lists"]\n\n\nTASK_LIST_ITEM = re.compile(r"^(\[[ xX]\])\s+")\n\n\ndef task_lists_hook(md: "Markdown", state: "BlockState") -> Iterable[Dict[str, Any]]:\n return _rewrite_all_list_items(state.tokens)\n\n\ndef render_task_list_item(renderer: "BaseRenderer", text: str, checked: bool = False) -> str:\n checkbox = '<input class="task-list-item-checkbox" type="checkbox" disabled'\n if checked:\n checkbox += " checked/>"\n else:\n checkbox += "/>"\n\n if text.startswith("<p>"):\n text = text.replace("<p>", "<p>" + checkbox, 1)\n else:\n text = checkbox + text\n\n return '<li class="task-list-item">' + text + "</li>\n"\n\n\ndef task_lists(md: "Markdown") -> None:\n """A mistune plugin to support task lists. Spec defined by\n GitHub flavored Markdown and commonly used by many parsers:\n\n .. code-block:: text\n\n - [ ] unchecked task\n - [x] checked task\n\n :param md: Markdown instance\n """\n md.before_render_hooks.append(task_lists_hook)\n if md.renderer and md.renderer.NAME == "html":\n md.renderer.register("task_list_item", render_task_list_item)\n\n\ndef _rewrite_all_list_items(tokens: Iterable[Dict[str, Any]]) -> Iterable[Dict[str, Any]]:\n for tok in tokens:\n if tok["type"] == "list_item":\n _rewrite_list_item(tok)\n if "children" in tok:\n _rewrite_all_list_items(tok["children"])\n return tokens\n\n\ndef _rewrite_list_item(tok: Dict[str, Any]) -> None:\n children = tok["children"]\n if children:\n first_child = children[0]\n text = first_child.get("text", "")\n m = TASK_LIST_ITEM.match(text)\n if m:\n mark = m.group(1)\n first_child["text"] = text[m.end() :]\n\n tok["type"] = "task_list_item"\n tok["attrs"] = {"checked": mark != "[ ]"}\n
.venv\Lib\site-packages\mistune\plugins\task_lists.py
task_lists.py
Python
2,000
0.85
0.231884
0
react-lib
498
2025-05-03T09:52:21.141365
MIT
false
fb941ac38defa811b28b16b1ef9b3013
from typing import TYPE_CHECKING, Match\n\nfrom ..util import escape_url\n\nif TYPE_CHECKING:\n from ..core import InlineState\n from ..inline_parser import InlineParser\n from ..markdown import Markdown\n\n__all__ = ["url"]\n\nURL_LINK_PATTERN = r"""https?:\/\/[^\s<]+[^<.,:;"')\]\s]"""\n\n\ndef parse_url_link(inline: "InlineParser", m: Match[str], state: "InlineState") -> int:\n text = m.group(0)\n pos = m.end()\n if state.in_link:\n inline.process_text(text, state)\n return pos\n state.append_token(\n {\n "type": "link",\n "children": [{"type": "text", "raw": text}],\n "attrs": {"url": escape_url(text)},\n }\n )\n return pos\n\n\ndef url(md: "Markdown") -> None:\n md.inline.register("url_link", URL_LINK_PATTERN, parse_url_link)\n
.venv\Lib\site-packages\mistune\plugins\url.py
url.py
Python
800
0.85
0.125
0
vue-tools
561
2024-11-30T17:22:10.594819
Apache-2.0
false
27d3189f65701ad6f2793ca630b33a60
from importlib import import_module\nfrom typing import TYPE_CHECKING, Dict, Protocol, Union, cast\n\nif TYPE_CHECKING:\n from ..markdown import Markdown\n\n_plugins = {\n "speedup": "mistune.plugins.speedup.speedup",\n "strikethrough": "mistune.plugins.formatting.strikethrough",\n "mark": "mistune.plugins.formatting.mark",\n "insert": "mistune.plugins.formatting.insert",\n "superscript": "mistune.plugins.formatting.superscript",\n "subscript": "mistune.plugins.formatting.subscript",\n "footnotes": "mistune.plugins.footnotes.footnotes",\n "table": "mistune.plugins.table.table",\n "url": "mistune.plugins.url.url",\n "abbr": "mistune.plugins.abbr.abbr",\n "def_list": "mistune.plugins.def_list.def_list",\n "math": "mistune.plugins.math.math",\n "ruby": "mistune.plugins.ruby.ruby",\n "task_lists": "mistune.plugins.task_lists.task_lists",\n "spoiler": "mistune.plugins.spoiler.spoiler",\n}\n\n\nclass Plugin(Protocol):\n def __call__(self, md: "Markdown") -> None: ...\n\n\n_cached_modules: Dict[str, Plugin] = {}\n\nPluginRef = Union[str, Plugin] # reference to register a plugin\n\n\ndef import_plugin(name: PluginRef) -> Plugin:\n if callable(name):\n return name\n\n if name in _cached_modules:\n return _cached_modules[name]\n\n if name in _plugins:\n module_path, func_name = _plugins[name].rsplit(".", 1)\n else:\n module_path, func_name = name.rsplit(".", 1)\n\n module = import_module(module_path)\n plugin = cast(Plugin, getattr(module, func_name))\n _cached_modules[name] = plugin\n return plugin\n
.venv\Lib\site-packages\mistune\plugins\__init__.py
__init__.py
Python
1,570
0.95
0.14
0
react-lib
596
2025-02-09T14:03:28.328773
BSD-3-Clause
false
499a8be42d1aca10417ca0e0a9f6d2ad
\n\n
.venv\Lib\site-packages\mistune\plugins\__pycache__\abbr.cpython-313.pyc
abbr.cpython-313.pyc
Other
5,065
0.8
0
0.034483
awesome-app
567
2024-10-19T10:05:13.543565
GPL-3.0
false
ae1c221a5bea5e69b8ea665a036b63a6
\n\n
.venv\Lib\site-packages\mistune\plugins\__pycache__\def_list.cpython-313.pyc
def_list.cpython-313.pyc
Other
5,868
0.95
0.020619
0.011905
python-kit
467
2023-07-25T13:12:04.050476
Apache-2.0
false
b040800b5df343322521d27b73f560ba
\n\n
.venv\Lib\site-packages\mistune\plugins\__pycache__\footnotes.cpython-313.pyc
footnotes.cpython-313.pyc
Other
7,616
0.8
0.058252
0.010753
vue-tools
324
2024-03-06T19:20:32.354968
BSD-3-Clause
false
38d95d55465a2010d9050d209ec7154c