diff --git a/007b0158-1e9e-4955-897f-f857db652ca5.png b/007b0158-1e9e-4955-897f-f857db652ca5.png new file mode 100644 index 0000000000000000000000000000000000000000..eb460fc50c795cdb204a5e4af3cfcab56d4518b6 --- /dev/null +++ b/007b0158-1e9e-4955-897f-f857db652ca5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54884688d0f137bd9e686dfd05ed06bd8ba5e48d70e87da1df96f1655be6de2e +size 127313 diff --git a/06631ca8-634a-46a2-964f-b2529f1c1658.png b/06631ca8-634a-46a2-964f-b2529f1c1658.png new file mode 100644 index 0000000000000000000000000000000000000000..c7e9ecc398f5832f1059074f00f22439aeb1f2bd --- /dev/null +++ b/06631ca8-634a-46a2-964f-b2529f1c1658.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0bc2d29996fcce81c744fedc04bbb179dbc2e4fe8d864c228ae7ff20b17eee0 +size 251622 diff --git a/09a121a5-28d6-494a-ab55-9868280b4238.png b/09a121a5-28d6-494a-ab55-9868280b4238.png new file mode 100644 index 0000000000000000000000000000000000000000..f3220b9cd5d838c0254e01f9ec20107aa0df60e7 --- /dev/null +++ b/09a121a5-28d6-494a-ab55-9868280b4238.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:691807c2675e25f0390f515cacc57a75cf8dae040dc7e7c8fdbe0af1c35a48ab +size 234232 diff --git a/0a978d62-4298-4693-9f22-e0940884fdf7.png b/0a978d62-4298-4693-9f22-e0940884fdf7.png new file mode 100644 index 0000000000000000000000000000000000000000..a6948bbde8d99c9977935603020e8b29a1042b3d --- /dev/null +++ b/0a978d62-4298-4693-9f22-e0940884fdf7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95ffd91b22702979e6ccfae81048af26176c4bc2d01f17c345e25e5b54f4976e +size 287206 diff --git a/0affa3b5-5705-42fc-a220-991a53d45091.png b/0affa3b5-5705-42fc-a220-991a53d45091.png new file mode 100644 index 0000000000000000000000000000000000000000..ce142d76a7f4bbada02e9f09bea507df8686fe89 --- /dev/null +++ b/0affa3b5-5705-42fc-a220-991a53d45091.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2611e2b9c30d14e3cc3988a9bb6cbe98c5607e988695a5e4072bda2a24027891 +size 78248 diff --git a/0c78420f-6790-4112-80ae-93721976c7dd.png b/0c78420f-6790-4112-80ae-93721976c7dd.png new file mode 100644 index 0000000000000000000000000000000000000000..c412deb2a75682baec39d0f4c72ea5aa6c0fadb2 --- /dev/null +++ b/0c78420f-6790-4112-80ae-93721976c7dd.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:468d91fabdf4cf1929053a9c2ae702ec4606820964a2c8bdbe9e5409ef90f586 +size 243254 diff --git a/11d98d98-6c63-4e9b-8fba-cdabbc59b576.png b/11d98d98-6c63-4e9b-8fba-cdabbc59b576.png new file mode 100644 index 0000000000000000000000000000000000000000..8ece42e2caefdb75634444a25ffd6fa09681d7a0 --- /dev/null +++ b/11d98d98-6c63-4e9b-8fba-cdabbc59b576.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90c82662d2b81dfb8ce3a54d4d2dd54f886bb59eee538b94f7b799fe3e433d57 +size 123410 diff --git a/14db0e5a-824e-4e1e-bb4a-7111d48006f1.png b/14db0e5a-824e-4e1e-bb4a-7111d48006f1.png new file mode 100644 index 0000000000000000000000000000000000000000..812c64b01121a61de3fbb14059ee883d39367a78 --- /dev/null +++ b/14db0e5a-824e-4e1e-bb4a-7111d48006f1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d14b58edaefc9ae1e8f28f553dd08ab0d125c25a877adf9a070d0eb3d46bb464 +size 212731 diff --git a/157d367d-309b-45b1-991e-0c1ae5f494b6.png b/157d367d-309b-45b1-991e-0c1ae5f494b6.png new file mode 100644 index 0000000000000000000000000000000000000000..07387b6197589e855083859f9fa3c7120d8cd18f --- /dev/null +++ b/157d367d-309b-45b1-991e-0c1ae5f494b6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ab0754b08ac28a976d5535c5dd5158aa78f1f9bc2abcf58290cbd6561965691 +size 95528 diff --git a/17c0e3ac-bb99-4d25-a8c4-4c82c9ebcd9d.png b/17c0e3ac-bb99-4d25-a8c4-4c82c9ebcd9d.png new file mode 100644 index 0000000000000000000000000000000000000000..788a18815d81b9fceee9274a1b0603fbb460508e --- /dev/null +++ b/17c0e3ac-bb99-4d25-a8c4-4c82c9ebcd9d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:548f0767aa07751361f3c7fb4f84838bab51d501c6b10f3d136d72309d879a8c +size 69151 diff --git a/1a207536-72a9-43f4-b3c3-3c39370ab9c8.png b/1a207536-72a9-43f4-b3c3-3c39370ab9c8.png new file mode 100644 index 0000000000000000000000000000000000000000..8b8901b6759471757a57d8b2a0d80225a7f273e2 --- /dev/null +++ b/1a207536-72a9-43f4-b3c3-3c39370ab9c8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3405ed904c4629859738304bb32ebab51cbb159b9422f673e534fe4a60f05ccc +size 304688 diff --git a/1b1900bc-4c8f-43e8-9d21-75a10b8376dc.png b/1b1900bc-4c8f-43e8-9d21-75a10b8376dc.png new file mode 100644 index 0000000000000000000000000000000000000000..c3b273b03c96d3d1e689c9c1050aca857b14a4e2 --- /dev/null +++ b/1b1900bc-4c8f-43e8-9d21-75a10b8376dc.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e147020fbfde2f9c6ac21dc2b6d671812aefe7dfb80816058c0164cca24f5083 +size 334597 diff --git a/1f3f2c69-8c4d-4906-88d5-7cba2a4871d4.png b/1f3f2c69-8c4d-4906-88d5-7cba2a4871d4.png new file mode 100644 index 0000000000000000000000000000000000000000..c926d010e4ccd1ad81105c7bb630855e21675bf5 --- /dev/null +++ b/1f3f2c69-8c4d-4906-88d5-7cba2a4871d4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fec05257b88be9a4509cbad74942860e183d2f5409f93531c953b381843a389 +size 249409 diff --git a/235cc2ed-fc6b-4736-8855-d2b026310251.png b/235cc2ed-fc6b-4736-8855-d2b026310251.png new file mode 100644 index 0000000000000000000000000000000000000000..a9fa0279df5dd8a24e91396b04d5f128c44288ca --- /dev/null +++ b/235cc2ed-fc6b-4736-8855-d2b026310251.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c83d7924428e35eeac1477aee9483ba1f718f4565578796e87d9d84266b7ef20 +size 237021 diff --git a/249767eb-49c9-4156-988d-f2fb8096d78a.png b/249767eb-49c9-4156-988d-f2fb8096d78a.png new file mode 100644 index 0000000000000000000000000000000000000000..fd46bd0be4fb7d25044795f6dc50445cef1dc102 --- /dev/null +++ b/249767eb-49c9-4156-988d-f2fb8096d78a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:376a2c1271572cd79c0e7c8a2b24ddb9ace60a35fff4e5899edaa2f024d228e8 +size 118353 diff --git a/29057447-2a5d-4668-88e2-314504b01cb5.png b/29057447-2a5d-4668-88e2-314504b01cb5.png new file mode 100644 index 0000000000000000000000000000000000000000..6c5f5e2ccc85112a17d2724a5348217459ee55f2 --- /dev/null +++ b/29057447-2a5d-4668-88e2-314504b01cb5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23c18e9605604809f53bdf6bd1f442ae7475a1df70a16d54e990dc783e681ff9 +size 319947 diff --git a/2c6b3e41-211d-41c3-8674-ec4c44f958ca.png b/2c6b3e41-211d-41c3-8674-ec4c44f958ca.png new file mode 100644 index 0000000000000000000000000000000000000000..8ca6eef802cc6b0fc35db6ee10b758b4c422ebba --- /dev/null +++ b/2c6b3e41-211d-41c3-8674-ec4c44f958ca.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:697a139f9812f64cc5e571e594cdf76820457f8b63475f2f0b6ad17e6514a593 +size 350465 diff --git a/2e98820b-174f-4ee7-9290-7be354c99f60.png b/2e98820b-174f-4ee7-9290-7be354c99f60.png new file mode 100644 index 0000000000000000000000000000000000000000..b15c07484dc7cf298dba4b13dc7081d3d4526f3a --- /dev/null +++ b/2e98820b-174f-4ee7-9290-7be354c99f60.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef5d9e777baf15bd3f3a8e2b809484be5e4e0f189e24f73847b0c89cb10669ab +size 22968 diff --git a/3224bcb9-3eab-4794-a2f7-ecb1591ce0a3.png b/3224bcb9-3eab-4794-a2f7-ecb1591ce0a3.png new file mode 100644 index 0000000000000000000000000000000000000000..ba8bb4a9db8e892148ee5cf394102069d1bd33be --- /dev/null +++ b/3224bcb9-3eab-4794-a2f7-ecb1591ce0a3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dde032a8d9590e1c6b1c4757739ffb503b4acc63429ad4e52153016a7a5d0ecd +size 440148 diff --git a/37c0ace4-4c43-41d8-9bce-1082c8ce0ada.png b/37c0ace4-4c43-41d8-9bce-1082c8ce0ada.png new file mode 100644 index 0000000000000000000000000000000000000000..6929165ecf267c4db32d71600c971149dd8c295f --- /dev/null +++ b/37c0ace4-4c43-41d8-9bce-1082c8ce0ada.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbd81cb4029072ed728fe564f76635ec80483e0bb6a1b30de2e484215a3da6cf +size 382552 diff --git a/3aaab29b-05da-416c-9f29-7a012934779c.png b/3aaab29b-05da-416c-9f29-7a012934779c.png new file mode 100644 index 0000000000000000000000000000000000000000..23a9c2ff4f513fe66ad2f9bc63d8c7cb9aa9c0b5 --- /dev/null +++ b/3aaab29b-05da-416c-9f29-7a012934779c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b72995df4ec4bdfdd44b74851021fdc95c2c9b2a444d56b921cd8a9fe121cfaf +size 270610 diff --git a/401f9690-3932-4d97-9d44-c65c5a59f93f.png b/401f9690-3932-4d97-9d44-c65c5a59f93f.png new file mode 100644 index 0000000000000000000000000000000000000000..1dd1977a37265bfcc4b0df154c30a634926495d8 --- /dev/null +++ b/401f9690-3932-4d97-9d44-c65c5a59f93f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c3dfdb8dd70dc07d4aa8fa38af70be905eb32d80642ae2ed22aa2cff30a0a00 +size 218711 diff --git a/46b2a484-c0fe-4633-b615-4464d1c1a08b.png b/46b2a484-c0fe-4633-b615-4464d1c1a08b.png new file mode 100644 index 0000000000000000000000000000000000000000..e147f87a7f5ff1e9d7261c10a4f5a1e854d33568 --- /dev/null +++ b/46b2a484-c0fe-4633-b615-4464d1c1a08b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2018d34733d0a4b995607f86c86148bcad2c21e16498fb2528fd6cab3737b989 +size 39085 diff --git a/4d87c902-e0b9-471b-ba0e-6a9647fef04d.png b/4d87c902-e0b9-471b-ba0e-6a9647fef04d.png new file mode 100644 index 0000000000000000000000000000000000000000..668eecd20b30824a8e29e824f5a291ec62774000 --- /dev/null +++ b/4d87c902-e0b9-471b-ba0e-6a9647fef04d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bf4a31482670ad0d6561589588318b9ec8deed54fadb4c85863d74e2447e345 +size 219970 diff --git a/56409385-e7c7-4433-bccc-31991c34c01c.png b/56409385-e7c7-4433-bccc-31991c34c01c.png new file mode 100644 index 0000000000000000000000000000000000000000..b47b9db4a005ea4cd45faa7e96305d0898320bdc --- /dev/null +++ b/56409385-e7c7-4433-bccc-31991c34c01c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f86c36374a6ed6287f012089cd87c1669640495f1465ea909dff61c2944aa3d +size 49658 diff --git a/62c4a425-9e16-4040-8c07-c8110692435a.png b/62c4a425-9e16-4040-8c07-c8110692435a.png new file mode 100644 index 0000000000000000000000000000000000000000..3d11f13a44e3aed18bc8629a6aadf032f4a60dc6 --- /dev/null +++ b/62c4a425-9e16-4040-8c07-c8110692435a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6845651e1d6dd869c08bf8ab9a3938d6443afe418e71938cabc75dccf13413b2 +size 35614 diff --git a/64d029bb-1ca7-4efc-9ddb-c08e22a49fe0.png b/64d029bb-1ca7-4efc-9ddb-c08e22a49fe0.png new file mode 100644 index 0000000000000000000000000000000000000000..5f194f876d32646852674c8f20ec701c23c42fde --- /dev/null +++ b/64d029bb-1ca7-4efc-9ddb-c08e22a49fe0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:950a86301f902cbf60f8afd5110883ea29c843b16f1311fc1628b7504c376913 +size 186803 diff --git a/6cf097db-5a16-4522-a154-5655a8e45ede.png b/6cf097db-5a16-4522-a154-5655a8e45ede.png new file mode 100644 index 0000000000000000000000000000000000000000..d8bf7461f2a607e1936a27fe1c5b4a53f3b7ec10 --- /dev/null +++ b/6cf097db-5a16-4522-a154-5655a8e45ede.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10ebcd06806cc564ea48afd9c3fa3b4ed4c648b7765cfdad6d6f1b63bc08b4ba +size 99100 diff --git a/6fce7a59-800f-4311-8c86-20a839f23e9c.png b/6fce7a59-800f-4311-8c86-20a839f23e9c.png new file mode 100644 index 0000000000000000000000000000000000000000..8ef569853b5349c9b7405f50491defdd1602acb0 --- /dev/null +++ b/6fce7a59-800f-4311-8c86-20a839f23e9c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:223bd35ebfcbd749de8ec5f84fc6d1d1d7ffe45a061a6de1ced0abde508ca38b +size 172459 diff --git a/7374a7bc-2db1-4830-a8ef-9f46fc06a7bd.png b/7374a7bc-2db1-4830-a8ef-9f46fc06a7bd.png new file mode 100644 index 0000000000000000000000000000000000000000..8f98464aa595be427f42cb701f389d7502247683 --- /dev/null +++ b/7374a7bc-2db1-4830-a8ef-9f46fc06a7bd.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f2145d00b5a0e52eafc1f71c45f347628089e80eadfc08699f47c742a3b19e2 +size 5166 diff --git a/745ab9d3-b958-42b4-baaa-3aa41c68ee43.png b/745ab9d3-b958-42b4-baaa-3aa41c68ee43.png new file mode 100644 index 0000000000000000000000000000000000000000..60418e6bfaf454664e78afea3bc9aa052949eaf6 --- /dev/null +++ b/745ab9d3-b958-42b4-baaa-3aa41c68ee43.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac5cb8a731231d8d72c9b90f0f2be5e32cc8c1ad39e5123bbbfc0769e07d9a53 +size 534954 diff --git a/766e0bb5-e7a0-4f68-8d70-082344bfaeea.png b/766e0bb5-e7a0-4f68-8d70-082344bfaeea.png new file mode 100644 index 0000000000000000000000000000000000000000..0adb29ca3d2d9682360cd5dec9b3e81acbaac16e --- /dev/null +++ b/766e0bb5-e7a0-4f68-8d70-082344bfaeea.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:206c6c6de2cd811c7abd2f3c53ec1d1c527f30d86d484b4683249a3f58be3241 +size 273454 diff --git a/7debe768-eed1-4c1d-a1f3-085a3bb775ea.png b/7debe768-eed1-4c1d-a1f3-085a3bb775ea.png new file mode 100644 index 0000000000000000000000000000000000000000..97fa5711ff5ffd5eaab75aba09e9d82a972a42c3 --- /dev/null +++ b/7debe768-eed1-4c1d-a1f3-085a3bb775ea.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d0cbca7530a647b1d8630982f96842df888032eacf2dab196125b43872ba697 +size 238993 diff --git a/8207f1fd-77bc-4c2d-a812-6b21030f5009.png b/8207f1fd-77bc-4c2d-a812-6b21030f5009.png new file mode 100644 index 0000000000000000000000000000000000000000..466264fa2ca26223edecb668356a796263e8b411 --- /dev/null +++ b/8207f1fd-77bc-4c2d-a812-6b21030f5009.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0de106849e6e063c253d85cc4838ce21b0d18396d107c90c5b8463788af0b2f1 +size 93113 diff --git a/82af3f74-1759-4065-8660-505e6fdd978e.png b/82af3f74-1759-4065-8660-505e6fdd978e.png new file mode 100644 index 0000000000000000000000000000000000000000..b1cc6d7e9c8cf30726546394b8a4a5f96f899ab6 --- /dev/null +++ b/82af3f74-1759-4065-8660-505e6fdd978e.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d31b2f35bbe127daa9501b6b30441c968b3aa9a3d61b57d76d2c36a14ffa1dd +size 245779 diff --git a/8e202e62-9f61-4761-85ae-df60ca3e4760.png b/8e202e62-9f61-4761-85ae-df60ca3e4760.png new file mode 100644 index 0000000000000000000000000000000000000000..e8dadd82fbbb1b0516b1c8313c8df52c77992c60 --- /dev/null +++ b/8e202e62-9f61-4761-85ae-df60ca3e4760.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8496b98628cc3a3b1f4a5086736da009736791f2ac9d18ef5ad91fd3785dd22d +size 158304 diff --git a/8fe259d4-73db-4526-a6b7-5e545d4e687c.png b/8fe259d4-73db-4526-a6b7-5e545d4e687c.png new file mode 100644 index 0000000000000000000000000000000000000000..8593c4b982c409b434a27afbb1c9f60469bed39a --- /dev/null +++ b/8fe259d4-73db-4526-a6b7-5e545d4e687c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16e2340110bebca99b2629e0e6d597d88cbdba993f6fff29317c5a8903e18b71 +size 38651 diff --git a/900239c6-7794-4d12-82ba-fb1792a9fc6b.png b/900239c6-7794-4d12-82ba-fb1792a9fc6b.png new file mode 100644 index 0000000000000000000000000000000000000000..589f0a416031cebb7a9824a697a77afb2a05de47 --- /dev/null +++ b/900239c6-7794-4d12-82ba-fb1792a9fc6b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc0eff4f1c2930e99005a45c12d34b8260e0493c65a25cb96632e00e697b2e96 +size 198505 diff --git a/9636090d-5257-40bf-be18-3795cf66e378.png b/9636090d-5257-40bf-be18-3795cf66e378.png new file mode 100644 index 0000000000000000000000000000000000000000..a716e676160ffb20b4cc9d9ae5e199afdb1f6d5d --- /dev/null +++ b/9636090d-5257-40bf-be18-3795cf66e378.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07aa16334cc5367bb380e2404e6825c43f2ecc980bf89cde7aebacbd54d5495d +size 267919 diff --git a/96e2995c-7d39-418b-b467-909fb0760d37.png b/96e2995c-7d39-418b-b467-909fb0760d37.png new file mode 100644 index 0000000000000000000000000000000000000000..7accaeb5c8e4f2db0aa99b202a7b66d4bd398f1a --- /dev/null +++ b/96e2995c-7d39-418b-b467-909fb0760d37.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ee359bfc1f8877a1caf7827267b148ab094f81f460d4bf7043bc5292e17c452 +size 212277 diff --git a/9c273003-743f-45cd-af57-9509635f3966.png b/9c273003-743f-45cd-af57-9509635f3966.png new file mode 100644 index 0000000000000000000000000000000000000000..abe7d82465c4ce9ffaf94db97954aea9acdb2c17 --- /dev/null +++ b/9c273003-743f-45cd-af57-9509635f3966.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb58a8e61e271af1b629c24a46b113591d434a98888fded413b284e40394e0f3 +size 11019 diff --git a/a533b084-f89c-4142-ab85-80c73d1d361f.png b/a533b084-f89c-4142-ab85-80c73d1d361f.png new file mode 100644 index 0000000000000000000000000000000000000000..274976373ce73ec18cb0f908d891dddb05923ade --- /dev/null +++ b/a533b084-f89c-4142-ab85-80c73d1d361f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b85ad496eca872e7f29595954a5f7528d1eb5aae6bf96fe7784a527b2b1cc69 +size 250781 diff --git a/aad7e425-52fa-4b6e-a260-9f2f47656488.png b/aad7e425-52fa-4b6e-a260-9f2f47656488.png new file mode 100644 index 0000000000000000000000000000000000000000..cc7568adbb7ab2be8f265224960bacc48e5b68e8 --- /dev/null +++ b/aad7e425-52fa-4b6e-a260-9f2f47656488.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a33ee63395ec6c9d45b5e948fe1307c717daa381df899b3db4a811af7e510632 +size 244116 diff --git a/b07c80a1-8f67-47dd-bddf-ac295a3c3e72.png b/b07c80a1-8f67-47dd-bddf-ac295a3c3e72.png new file mode 100644 index 0000000000000000000000000000000000000000..bfab22ed702e0ca451385ed36e328571868d09e4 --- /dev/null +++ b/b07c80a1-8f67-47dd-bddf-ac295a3c3e72.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2d28e2a5a2241db44bb0cbe5bf90ae6d85d67f5484f6b6cb3b954ff766d1b58 +size 329540 diff --git a/bcde117e-45f3-45df-9f34-fbc0f55e5580.png b/bcde117e-45f3-45df-9f34-fbc0f55e5580.png new file mode 100644 index 0000000000000000000000000000000000000000..cdb0239cbc277ba65d1cd540b898358b043c09ab --- /dev/null +++ b/bcde117e-45f3-45df-9f34-fbc0f55e5580.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff5e7eb75a58dbe243806664af51e382996b9e425bfe89d89f9afb2e8105cf5c +size 188677 diff --git a/c97a5d07-a204-465d-a01f-7e75137f0ca1.png b/c97a5d07-a204-465d-a01f-7e75137f0ca1.png new file mode 100644 index 0000000000000000000000000000000000000000..763b4254f434213f6b0afe279610e96c66cbd964 --- /dev/null +++ b/c97a5d07-a204-465d-a01f-7e75137f0ca1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58a47ff69c2f396834730830e5a593b6b92e8aa65a71ecc42172849a02d32644 +size 307914 diff --git a/cc6a198e-994e-4492-85ba-5ec7ab5afdf0.png b/cc6a198e-994e-4492-85ba-5ec7ab5afdf0.png new file mode 100644 index 0000000000000000000000000000000000000000..bfc77f758691ac026626b1f4342056e230efe2cc --- /dev/null +++ b/cc6a198e-994e-4492-85ba-5ec7ab5afdf0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11d00e9d472cf3547fa2a81b8ffa36e0b629b875ca082c4391c6ed7f6caddcad +size 12427 diff --git a/d366abcb-6eb7-4687-b945-d4f1dc31550c.png b/d366abcb-6eb7-4687-b945-d4f1dc31550c.png new file mode 100644 index 0000000000000000000000000000000000000000..a584834f58095ae3809f5b05dbdb139176dd708a --- /dev/null +++ b/d366abcb-6eb7-4687-b945-d4f1dc31550c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a6d351d79f6acba4ff14162aa8fd199b7577c6e94d489172ff04d246d773aa6 +size 232876 diff --git a/d4fa8924-7f0f-4c7c-b0de-29baa093b8e1.png b/d4fa8924-7f0f-4c7c-b0de-29baa093b8e1.png new file mode 100644 index 0000000000000000000000000000000000000000..1ec863aa96e5a89c4237661d8c0b752cc5e23fd0 --- /dev/null +++ b/d4fa8924-7f0f-4c7c-b0de-29baa093b8e1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0570bd32ec40c7639dfa5674868b32e04f153a93fe6c6c13ba01b40c5a7ff891 +size 277835 diff --git a/d62e5876-d4e6-44d5-a271-e809c4a0e5a2.png b/d62e5876-d4e6-44d5-a271-e809c4a0e5a2.png new file mode 100644 index 0000000000000000000000000000000000000000..f4afdfef210e5ff4cbee71a5d19b2df248f51161 --- /dev/null +++ b/d62e5876-d4e6-44d5-a271-e809c4a0e5a2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e8e08ba436c13fab302845d388f36407a43a739b4473990c58ec08e29d20cb7 +size 254558 diff --git a/d71ffcf9-05d0-41b0-a37c-b1f50af3430f.png b/d71ffcf9-05d0-41b0-a37c-b1f50af3430f.png new file mode 100644 index 0000000000000000000000000000000000000000..7996773533bfbd47feff014577b6b0f2fc4fee23 --- /dev/null +++ b/d71ffcf9-05d0-41b0-a37c-b1f50af3430f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0ea938b4bfc880a219e8a079f5bfa42749fdcce9fb915fbd7dc0d1513e3e925 +size 80826 diff --git a/d9e26cfa-fd65-482e-9a02-52917e23ad29.png b/d9e26cfa-fd65-482e-9a02-52917e23ad29.png new file mode 100644 index 0000000000000000000000000000000000000000..42662f11e03a987da2cb0f73d16f7c56df5f4cbf --- /dev/null +++ b/d9e26cfa-fd65-482e-9a02-52917e23ad29.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c39c451e7c6077ed5802378fbd1b7b8783fed9bc8b663f1f2ab871635127086f +size 55747 diff --git a/ddd48bc8-a43f-4c47-9798-f7379310471a.png b/ddd48bc8-a43f-4c47-9798-f7379310471a.png new file mode 100644 index 0000000000000000000000000000000000000000..0993a0879ac345394498d7a600c382047c21981e --- /dev/null +++ b/ddd48bc8-a43f-4c47-9798-f7379310471a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1fa86a1d263f8b0f33f96ef70add12017c9b9dc4605e290990b3d92f55f7dcc +size 159813 diff --git a/e24b36c4-2220-4204-8d18-e38bd3003711.png b/e24b36c4-2220-4204-8d18-e38bd3003711.png new file mode 100644 index 0000000000000000000000000000000000000000..087515034761159356a906496899d04f543740d3 --- /dev/null +++ b/e24b36c4-2220-4204-8d18-e38bd3003711.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f3cb9fafa41ec4052f827d5185fa6b29f927831a9000ac08e5622f2ff946f42 +size 335462 diff --git a/e286ef37-43ae-4ea0-a320-f3c0db52aa93.png b/e286ef37-43ae-4ea0-a320-f3c0db52aa93.png new file mode 100644 index 0000000000000000000000000000000000000000..b0e55c4a9c00ca580627c6575cd5cb57d46c4091 --- /dev/null +++ b/e286ef37-43ae-4ea0-a320-f3c0db52aa93.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26c8bdd1fad3e032c1616b35c040c0abc3cca90ead24e4f7ebba30484a9dd9b3 +size 247714 diff --git a/e5d57c46-457c-44a0-8532-d79396140d12.png b/e5d57c46-457c-44a0-8532-d79396140d12.png new file mode 100644 index 0000000000000000000000000000000000000000..285e1d5e227bf6696419a0e4be01bab710926f4e --- /dev/null +++ b/e5d57c46-457c-44a0-8532-d79396140d12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0a4876a1fec13bca0b3aca14f87ba97ffd3b1c53a16f595639cc9565371290f +size 76375 diff --git a/e62e4fd4-255e-4276-be4b-0053355fd314.png b/e62e4fd4-255e-4276-be4b-0053355fd314.png new file mode 100644 index 0000000000000000000000000000000000000000..e8dadd82fbbb1b0516b1c8313c8df52c77992c60 --- /dev/null +++ b/e62e4fd4-255e-4276-be4b-0053355fd314.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8496b98628cc3a3b1f4a5086736da009736791f2ac9d18ef5ad91fd3785dd22d +size 158304 diff --git a/ed259054-cffc-4a19-854e-90737ae2b42c.png b/ed259054-cffc-4a19-854e-90737ae2b42c.png new file mode 100644 index 0000000000000000000000000000000000000000..5d608e7376c02ef20dc460576d12fe56633f87b9 --- /dev/null +++ b/ed259054-cffc-4a19-854e-90737ae2b42c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1972e855707f49f55f5caca9efedd01d17f2d127ee91ecb5e467dbce283da19b +size 80764 diff --git a/f1ed46e7-56bf-4aa1-821e-27faf8a56e59.png b/f1ed46e7-56bf-4aa1-821e-27faf8a56e59.png new file mode 100644 index 0000000000000000000000000000000000000000..a95f56a8085f536b97adc537ad1813818de0dadd --- /dev/null +++ b/f1ed46e7-56bf-4aa1-821e-27faf8a56e59.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8ab764325748276948296d54712369893cc687060b6b19e6603a1b8d40631b5 +size 200108 diff --git a/fa5d7997-ab7e-480b-ade5-5a4f15b5ce63.png b/fa5d7997-ab7e-480b-ade5-5a4f15b5ce63.png new file mode 100644 index 0000000000000000000000000000000000000000..ce989f3b93264f269bd341a4ab2cd376e8e240f2 --- /dev/null +++ b/fa5d7997-ab7e-480b-ade5-5a4f15b5ce63.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c4b0a6aad077e91604c53f0f80aaeb896a0299461a9627f148cf0589dee99d2 +size 143753 diff --git a/fb262ba1-ee22-4c88-86d6-493a0a45d4b1.png b/fb262ba1-ee22-4c88-86d6-493a0a45d4b1.png new file mode 100644 index 0000000000000000000000000000000000000000..58e882a05c67b992c0b44498139119c0e241435f --- /dev/null +++ b/fb262ba1-ee22-4c88-86d6-493a0a45d4b1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4e9dd7e746b26cf73ee53d3ce4374a7a7adeeb591fc545558ab99af21ef302d +size 45121 diff --git a/fec26683-2914-4bf0-97c0-303dd2e76e14.png b/fec26683-2914-4bf0-97c0-303dd2e76e14.png new file mode 100644 index 0000000000000000000000000000000000000000..e70651806187293e4028b4d4b682d4dbbca9fc67 --- /dev/null +++ b/fec26683-2914-4bf0-97c0-303dd2e76e14.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54d348c2a4fd5a90e372556c64f7c1c3007a8188ff77caadd43d9a7a540e3d1b +size 131820 diff --git a/metadata.jsonl b/metadata.jsonl index e8f76c487c0278c78aa07fe71aeea8b5d8659538..3dfe339ab9a76dd3ebf8f2e2d8fec0c6064f68ac 100644 --- a/metadata.jsonl +++ b/metadata.jsonl @@ -448,3 +448,65 @@ {"file_name": "72036c25-61f4-4878-93b8-511bcf07560f.png", "code": "import pytest\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtWidgets\r\n\r\nfrom labelme.widgets import LabelDialog\r\nfrom labelme.widgets import LabelQLineEdit\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_LabelQLineEdit(qtbot):\r\n list_widget = QtWidgets.QListWidget()\r\n list_widget.addItems([\"cat\", \"dog\", \"person\"])\r\n widget = LabelQLineEdit()\r\n widget.setListWidget(list_widget)\r\n qtbot.addWidget(widget)\r\n\r\n # key press to navigate in label list\r\n item = widget.list_widget.findItems(\"cat\", QtCore.Qt.MatchExactly)[0]\r\n widget.list_widget.setCurrentItem(item)\r\n assert widget.list_widget.currentItem().text() == \"cat\"\r\n qtbot.keyPress(widget, QtCore.Qt.Key_Down)\r\n assert widget.list_widget.currentItem().text() == \"dog\"\r\n\r\n # key press to enter label\r\n qtbot.keyPress(widget, QtCore.Qt.Key_P)\r\n qtbot.keyPress(widget, QtCore.Qt.Key_E)\r\n qtbot.keyPress(widget, QtCore.Qt.Key_R)\r\n qtbot.keyPress(widget, QtCore.Qt.Key_S)\r\n qtbot.keyPress(widget, QtCore.Qt.Key_O)\r\n qtbot.keyPress(widget, QtCore.Qt.Key_N)\r\n assert widget.text() == \"person\"\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_LabelDialog_addLabelHistory(qtbot):\r\n labels = [\"cat\", \"dog\", \"person\"]\r\n widget = LabelDialog(labels=labels, sort_labels=True)\r\n qtbot.addWidget(widget)\r\n\r\n widget.addLabelHistory(\"bicycle\")\r\n"} {"file_name": "f8740260-0fd2-4c93-a06d-584e95796118.png", "code": " assert widget.labelList.count() == 4\r\n widget.addLabelHistory(\"bicycle\")\r\n assert widget.labelList.count() == 4\r\n item = widget.labelList.item(0)\r\n assert item.text() == \"bicycle\"\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_LabelDialog_popUp(qtbot):\r\n labels = [\"cat\", \"dog\", \"person\"]\r\n widget = LabelDialog(labels=labels, sort_labels=True)\r\n qtbot.addWidget(widget)\r\n\r\n # popUp(text='cat')\r\n\r\n def interact():\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_P) # enter 'p' for 'person' # NOQA\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Enter) # NOQA\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Enter) # NOQA\r\n\r\n QtCore.QTimer.singleShot(500, interact)\r\n label, flags, group_id, description = widget.popUp(\"cat\")\r\n assert label == \"person\"\r\n assert flags == {}\r\n assert group_id is None\r\n assert description == \"\"\r\n\r\n # popUp()\r\n\r\n def interact():\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Enter) # NOQA\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Enter) # NOQA\r\n\r\n QtCore.QTimer.singleShot(500, interact)\r\n label, flags, group_id, description = widget.popUp()\r\n assert label == \"person\"\r\n assert flags == {}\r\n assert group_id is None\r\n assert description == \"\"\r\n\r\n"} {"file_name": "1243a1d1-9f37-439a-bba1-92ba0c7fbfc2.png", "code": " # popUp() + key_Up\r\n\r\n def interact():\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Up) # 'person' -> 'dog' # NOQA\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Enter) # NOQA\r\n qtbot.keyClick(widget.edit, QtCore.Qt.Key_Enter) # NOQA\r\n\r\n QtCore.QTimer.singleShot(500, interact)\r\n label, flags, group_id, description = widget.popUp()\r\n assert label == \"dog\"\r\n assert flags == {}\r\n assert group_id is None\r\n assert description == \"\"\r\n"} +{"file_name": "0c78420f-6790-4112-80ae-93721976c7dd.png", "code": "from setuptools import find_packages, setup\r\nfrom pip._vendor import tomli\r\n\r\n# For consistent encoding\r\nfrom codecs import open\r\nfrom os import path\r\n\r\n# The directory containing this file\r\nHERE = path.abspath(path.dirname(__file__))\r\n\r\n# Get the long description from the README file\r\nwith open(path.join(HERE, 'README.md'), encoding='utf-8') as f:\r\n LONG_DESCRIPTION = f.read()\r\n\r\nwith open('pyproject.toml', 'r') as f:\r\n VERSION = tomli.load(f)['tool']['commitizen']['version']\r\n\r\nDESCRIPTION = 'A python library for working with Google Drive.'\r\n\r\nkey_words = [\r\n 'drive', 'google-drive', 'google-drive-api', 'upload files to Google Drive',\r\n]\r\n\r\ninstall_requires = [\r\n 'oryks-google-oauth',\r\n 'pydantic',\r\n 'pydantic-settings'\r\n]\r\n\r\nsetup(\r\n name='oryks-google-drive',\r\n packages=find_packages(\r\n include=[\r\n 'google_drive',\r\n 'google_drive.exceptions',\r\n 'google_drive.models',\r\n 'google_drive.schemas',\r\n 'google_drive.resources'\r\n ]\r\n ),\r\n"} +{"file_name": "e62e4fd4-255e-4276-be4b-0053355fd314.png", "code": " version=VERSION,\r\n description=DESCRIPTION,\r\n long_description_content_type='text/markdown',\r\n long_description=LONG_DESCRIPTION,\r\n url='https://youtube-wrapper.readthedocs.io/en/latest/index.html',\r\n author='Lyle Okoth',\r\n author_email='lyceokoth@gmail.com',\r\n license='MIT',\r\n install_requires=install_requires,\r\n keywords=key_words,\r\n classifiers=[\r\n 'Intended Audience :: Developers',\r\n 'License :: OSI Approved :: MIT License',\r\n 'Programming Language :: Python',\r\n 'Programming Language :: Python :: 3',\r\n 'Programming Language :: Python :: 3.11',\r\n 'Programming Language :: Python :: 3.12',\r\n 'Operating System :: OS Independent'\r\n ],\r\n)\r\n"} +{"file_name": "62c4a425-9e16-4040-8c07-c8110692435a.png", "code": "from google_drive import GoogleDrive\r\n\r\n\r\nclient_secrets_file = 'drive.json'\r\ndrive = GoogleDrive(client_secret_file=client_secrets_file)\r\ndrive.authenticate()\r\n"} +{"file_name": "249767eb-49c9-4156-988d-f2fb8096d78a.png", "code": "from dotenv import load_dotenv\r\nload_dotenv()\r\nfrom assistant.agents import default_agent\r\nimport chainlit as cl\r\n\r\n\r\n@cl.on_chat_start\r\nasync def start():\r\n cl.user_session.set('agent', default_agent)\r\n\r\n\r\n@cl.on_message\r\nasync def main(message: cl.Message):\r\n agent = cl.user_session.get('agent')\r\n msg = cl.Message(content='')\r\n await msg.send()\r\n await cl.sleep(1)\r\n msg.content = agent.invoke({'input': message.content})['output']\r\n await msg.update()\r\n"} +{"file_name": "d62e5876-d4e6-44d5-a271-e809c4a0e5a2.png", "code": "from setuptools import find_packages, setup\r\nfrom pip._vendor import tomli\r\n\r\n# For consistent encoding\r\nfrom codecs import open\r\nfrom os import path\r\n\r\n# The directory containing this file\r\nHERE = path.abspath(path.dirname(__file__))\r\n\r\n# Get the long description from the README file\r\nwith open(path.join(HERE, 'README.md'), encoding='utf-8') as f:\r\n LONG_DESCRIPTION = f.read()\r\n\r\nwith open('pyproject.toml', 'r') as f:\r\n VERSION = tomli.load(f)['tool']['commitizen']['version']\r\n\r\nDESCRIPTION = 'A chatbot that enables the user interact with youtube over chat.'\r\n\r\nkey_words = [\r\n 'youtube', 'youtube-api', 'youtube comments', 'youtube videos', 'chat with youtube',\r\n 'youtube channels', 'youtube comment thread', 'create youtube playlist'\r\n]\r\n\r\ninstall_requires = [\r\n 'oryks-youtube',\r\n 'pydantic',\r\n 'pydantic-settings'\r\n]\r\n\r\nsetup(\r\n name='youtube-assistant',\r\n packages=find_packages(\r\n include=[\r\n 'assistant',\r\n ]\r\n ),\r\n version=VERSION,\r\n description=DESCRIPTION,\r\n long_description_content_type='text/markdown',\r\n"} +{"file_name": "11d98d98-6c63-4e9b-8fba-cdabbc59b576.png", "code": " long_description=LONG_DESCRIPTION,\r\n url='https://youtube-assistant.readthedocs.io/en/latest/',\r\n author='Lyle Okoth',\r\n author_email='lyceokoth@gmail.com',\r\n license='MIT',\r\n install_requires=install_requires,\r\n keywords=key_words,\r\n classifiers=[\r\n 'Intended Audience :: Developers',\r\n 'License :: OSI Approved :: MIT License',\r\n 'Programming Language :: Python',\r\n 'Programming Language :: Python :: 3',\r\n 'Programming Language :: Python :: 3.11',\r\n 'Programming Language :: Python :: 3.12',\r\n 'Operating System :: OS Independent'\r\n ],\r\n)\r\n"} +{"file_name": "e24b36c4-2220-4204-8d18-e38bd3003711.png", "code": "from setuptools import find_packages, setup\r\nfrom pip._vendor import tomli\r\nfrom codecs import open\r\nfrom os import path\r\n\r\nHERE = path.abspath(path.dirname(__file__))\r\nwith open(path.join(HERE, 'README.md'), encoding='utf-8') as f:\r\n LONG_DESCRIPTION = f.read()\r\nwith open('pyproject.toml', 'r') as f:\r\n VERSION = tomli.load(f)['tool']['commitizen']['version']\r\nDESCRIPTION = 'A python library for generating documentation for python projects.'\r\nkey_words = ['dosctrings', 'documentation']\r\ninstall_requires = [\r\n 'langchain',\r\n 'langchain-openai',\r\n 'black',\r\n 'pydantic',\r\n 'pydantic-settings',\r\n]\r\nsetup(\r\n name='oryks-docstring-generator',\r\n packages=find_packages(include=['docstring_generator']),\r\n version=VERSION,\r\n description=DESCRIPTION,\r\n long_description_content_type='text/markdown',\r\n long_description=LONG_DESCRIPTION,\r\n url='https://youtube-wrapper.readthedocs.io/en/latest/index.html',\r\n author='Lyle Okoth',\r\n author_email='lyceokoth@gmail.com',\r\n license='MIT',\r\n install_requires=install_requires,\r\n keywords=key_words,\r\n classifiers=[\r\n 'Intended Audience :: Developers',\r\n 'License :: OSI Approved :: MIT License',\r\n 'Programming Language :: Python',\r\n 'Programming Language :: Python :: 3',\r\n 'Programming Language :: Python :: 3.11',\r\n 'Programming Language :: Python :: 3.12',\r\n 'Operating System :: OS Independent',\r\n"} +{"file_name": "7374a7bc-2db1-4830-a8ef-9f46fc06a7bd.png", "code": " ],\r\n)\r\n"} +{"file_name": "0a978d62-4298-4693-9f22-e0940884fdf7.png", "code": "from setuptools import find_packages, setup\r\nfrom pip._vendor import tomli\r\n\r\n# For consistent encoding\r\nfrom codecs import open\r\nfrom os import path\r\n\r\n# The directory containing this file\r\nHERE = path.abspath(path.dirname(__file__))\r\n\r\n# Get the long description from the README file\r\nwith open(path.join(HERE, 'README.md'), encoding='utf-8') as f:\r\n LONG_DESCRIPTION = f.read()\r\n\r\nwith open('pyproject.toml', 'r') as f:\r\n VERSION = tomli.load(f)['tool']['commitizen']['version']\r\n\r\nDESCRIPTION = 'A python library that wraps around the Google calendar API. You can use it to schedule events using google calendar.'\r\n\r\nkey_words = [\r\n 'calendar', 'google-calendar', 'schedule events'\r\n]\r\n\r\ninstall_requires = [\r\n 'oryks-google-oauth',\r\n 'pydantic',\r\n 'pydantic-settings',\r\n 'pytz'\r\n]\r\n\r\nsetup(\r\n name='oryks-google-calendar',\r\n packages=find_packages(\r\n include=[\r\n 'google_calendar',\r\n 'google_calendar.models',\r\n 'google_calendar.schemas',\r\n 'google_calendar.resources',\r\n ]\r\n ),\r\n"} +{"file_name": "8e202e62-9f61-4761-85ae-df60ca3e4760.png", "code": " version=VERSION,\r\n description=DESCRIPTION,\r\n long_description_content_type='text/markdown',\r\n long_description=LONG_DESCRIPTION,\r\n url='https://youtube-wrapper.readthedocs.io/en/latest/index.html',\r\n author='Lyle Okoth',\r\n author_email='lyceokoth@gmail.com',\r\n license='MIT',\r\n install_requires=install_requires,\r\n keywords=key_words,\r\n classifiers=[\r\n 'Intended Audience :: Developers',\r\n 'License :: OSI Approved :: MIT License',\r\n 'Programming Language :: Python',\r\n 'Programming Language :: Python :: 3',\r\n 'Programming Language :: Python :: 3.11',\r\n 'Programming Language :: Python :: 3.12',\r\n 'Operating System :: OS Independent'\r\n ],\r\n)\r\n"} +{"file_name": "3224bcb9-3eab-4794-a2f7-ecb1591ce0a3.png", "code": "from google_calendar import GoogleCalendar\r\nfrom google_calendar.schemas import (\r\n ListCalendarEvents, CreateEvent, AttendeeSchema, ReminderSchema, RemindersSchema, \r\n EventTimeSchema\r\n)\r\nfrom google_calendar.models import Event\r\nfrom datetime import datetime, timedelta, date as d\r\nimport pytz\r\n\r\nclient_secret: str = 'client_secret.json'\r\ngoogle_calendar: GoogleCalendar = GoogleCalendar(secret_file=client_secret)\r\ngoogle_calendar.authenticate()\r\n\r\n# req = ListCalendarEvents()\r\n# events = google_calendar.list_calendar_events(req)\r\n# items = events.items\r\n# print(len(items))\r\n# print(items[0])\r\n# print(items[-1])\r\n# import json\r\n# import random\r\n# from google_calendar.resources import EventResource\r\n# with open('events.json', 'r') as f:\r\n# data = json.load(f)\r\n# event_resource: EventResource = EventResource(calendar_client=google_calendar.calendar_client)\r\n# events = event_resource.parse_items(data)\r\n# print(random.choice(events))\r\n# print(google_calendar.get_event(event_id='_6tlnaqrle5p6cpb4dhmj4phpegp68s9o6lnm6q3b75gj6sr3d5i6sqbb6go6gs3le9r34dj4ddlmmq3f6ks64sb5epq3apri75jj2tjmcss6e'))\r\n# print(google_calendar.quick_add('Meeting with emmanuel at 10.00 am tommorrow.'))\r\n# now = datetime.astimezone()\r\n# start = str(now.strftime(\"%Y-%m-%dT%H:%M:%S.%fZ\"))\r\n# end = str((now + timedelta(hours=2)).strftime(\"%Y-%m-%dT%H:%M:%S.%fZ\"))\r\n# create_event = CreateEvent(\r\n# start=EventTimeSchema(dateTime=start),\r\n# end=EventTimeSchema(dateTime=end),\r\n# summary='Meeting Travis',\r\n# description='Meet with Travis for launch of his new startup.',\r\n# location='Weston Hotel, Nairobi',\r\n# attendees=[\r\n# AttendeeSchema(email='lpage@example.com'),\r\n"} +{"file_name": "c97a5d07-a204-465d-a01f-7e75137f0ca1.png", "code": "# AttendeeSchema(email='sbrin@example.com')\r\n# ],\r\n# reminders=RemindersSchema(\r\n# useDefault=False,\r\n# overrides=[\r\n# ReminderSchema(method='email', minutes=10),\r\n# ReminderSchema(method='popup', minutes=20)\r\n# ]\r\n# )\r\n# )\r\n# created_event = google_calendar.create_event(create_event)\r\n# print(created_event)\r\ntoday = d.today()\r\nyear = today.year\r\nmonth = today.month\r\nday = today.day\r\ntime_min: datetime = datetime(year=year, month=month, day=25, hour=0, minute=1)\r\ntime_min: datetime = datetime.astimezone(time_min, pytz.timezone('Africa/Nairobi'))\r\ntime_min: str = str(time_min.strftime(\"%Y-%m-%dT%H:%M:%S.%fZ\"))\r\ntime_max: datetime = datetime(year=year, month=month, day=day, hour=23, minute=59)\r\ntime_max: datetime = datetime.astimezone(time_max, pytz.timezone('Africa/Nairobi'))\r\ntime_max: str = str(time_max.strftime(\"%Y-%m-%dT%H:%M:%S.%fZ\"))\r\nreq = ListCalendarEvents(\r\n timeMin=time_min\r\n)\r\nevents = google_calendar.list_calendar_events(req)\r\nprint(events.items)\r\ndef parse_events(events: list[Event]) -> str:\r\n event_str: str = \"\"\r\n for i, event in enumerate(events, start=1):\r\n event_str: str = f\"\\n{i}. \"\r\n start_time: str = event.start.date_time.time()\r\n end_time: str = event.end.date_time.time()\r\n title: str = event.summary\r\n location: str = event.location\r\n event_str += f'From {start_time} to {end_time} you will {title} at {location}.'\r\n return event_str\r\n# print(time_min)\r\n# print(time_max)\r\n# print(datetime.astimezone(datetime.now(), pytz.timezone('Africa/Nairobi')))\r\n"} +{"file_name": "9c273003-743f-45cd-af57-9509635f3966.png", "code": "print(parse_events(events.items))"} +{"file_name": "ddd48bc8-a43f-4c47-9798-f7379310471a.png", "code": "from oryks_google_oauth import GoogleOAuth, YouTubeScopes\r\n\r\n\r\nclient_secret_file: str = '/home/lyle/Professional Projects/youtube/client_secret.json'\r\napi_service_name: str = 'youtube'\r\napi_version: str = 'v3'\r\ncredentials_dir: str = '.youtube'\r\nscopes: list[str] = [YouTubeScopes.youtube.value]\r\noauth: GoogleOAuth = GoogleOAuth(\r\n secrets_file=client_secret_file,\r\n scopes=scopes,\r\n api_service_name=api_service_name,\r\n api_version=api_version,\r\n credentials_dir=credentials_dir\r\n)\r\nyoutube_client = oauth.authenticate_google_server()\r\nyoutube_find_request = youtube_client.search().list(q='python programming videos', part='id, snippet')\r\nprint(youtube_find_request.execute())\r\n"} +{"file_name": "1a207536-72a9-43f4-b3c3-3c39370ab9c8.png", "code": "from setuptools import find_packages, setup\r\nfrom pip._vendor import tomli\r\n\r\n# For consistent encoding\r\nfrom codecs import open\r\nfrom os import path\r\n\r\n# The directory containing this file\r\nHERE = path.abspath(path.dirname(__file__))\r\n\r\n# Get the long description from the README file\r\nwith open(path.join(HERE, 'README.md'), encoding='utf-8') as f:\r\n LONG_DESCRIPTION = f.read()\r\n\r\nwith open('pyproject.toml', 'r') as f:\r\n VERSION = tomli.load(f)['tool']['commitizen']['version']\r\n\r\nDESCRIPTION = 'A python library for authenticating requests for various google services including ``gmail``, ``youtube``, ``drive`` and ``calendar``.'\r\n\r\nkey_words = [\r\n 'google-auth',\r\n]\r\n\r\ninstall_requires = [\r\n 'google-api-python-client',\r\n 'google-auth-oauthlib',\r\n 'pydantic',\r\n 'pydantic-settings'\r\n]\r\n\r\nsetup(\r\n name='oryks-google-oauth',\r\n packages=find_packages(\r\n include=[\r\n 'oryks_google_oauth',\r\n ]\r\n ),\r\n version=VERSION,\r\n description=DESCRIPTION,\r\n long_description_content_type='text/markdown',\r\n"} +{"file_name": "007b0158-1e9e-4955-897f-f857db652ca5.png", "code": " long_description=LONG_DESCRIPTION,\r\n url='https://youtube-wrapper.readthedocs.io/en/latest/index.html',\r\n author='Lyle Okoth',\r\n author_email='lyceokoth@gmail.com',\r\n license='MIT',\r\n install_requires=install_requires,\r\n keywords=key_words,\r\n classifiers=[\r\n 'Intended Audience :: Developers',\r\n 'License :: OSI Approved :: MIT License',\r\n 'Programming Language :: Python',\r\n 'Programming Language :: Python :: 3',\r\n 'Programming Language :: Python :: 3.10',\r\n 'Programming Language :: Python :: 3.11',\r\n 'Operating System :: OS Independent'\r\n ],\r\n)\r\n"} +{"file_name": "29057447-2a5d-4668-88e2-314504b01cb5.png", "code": "from setuptools import find_packages, setup\r\nfrom pip._vendor import tomli\r\n\r\n# For consistent encoding\r\nfrom codecs import open\r\nfrom os import path\r\n\r\n# The directory containing this file\r\nHERE = path.abspath(path.dirname(__file__))\r\n\r\n# Get the long description from the README file\r\nwith open(path.join(HERE, 'README.md'), encoding='utf-8') as f:\r\n LONG_DESCRIPTION = f.read()\r\n\r\nwith open('pyproject.toml', 'r') as f:\r\n VERSION = tomli.load(f)['tool']['commitizen']['version']\r\n\r\nDESCRIPTION = 'A python library that wraps around the YouTube V3 API. You can use it find and manage YouTube resources including Videos, Playlists, Channels and Comments.'\r\n\r\nkey_words = [\r\n 'youtube', 'youtube-api', 'youtube comments', 'youtube videos',\r\n 'youtube channels', 'youtube comment thread', 'create youtube playlist'\r\n]\r\n\r\ninstall_requires = [\r\n 'oryks-google-oauth',\r\n 'pydantic',\r\n 'pydantic-settings'\r\n]\r\n\r\nsetup(\r\n name='oryks-youtube',\r\n packages=find_packages(\r\n include=[\r\n 'youtube',\r\n 'youtube.models',\r\n 'youtube.schemas',\r\n 'youtube.resources',\r\n 'youtube.resources.search',\r\n 'youtube.resources.video',\r\n"} +{"file_name": "96e2995c-7d39-418b-b467-909fb0760d37.png", "code": " 'youtube.resources.playlist',\r\n 'youtube.resources.playlist_item',\r\n 'youtube.resources.comment_thread',\r\n 'youtube.resources.channel',\r\n 'youtube.resources.activity',\r\n 'youtube.resources.subscription',\r\n 'youtube.exceptions',\r\n ]\r\n ),\r\n version=VERSION,\r\n description=DESCRIPTION,\r\n long_description_content_type='text/markdown',\r\n long_description=LONG_DESCRIPTION,\r\n url='https://youtube-wrapper.readthedocs.io/en/latest/index.html',\r\n author='Lyle Okoth',\r\n author_email='lyceokoth@gmail.com',\r\n license='MIT',\r\n install_requires=install_requires,\r\n keywords=key_words,\r\n classifiers=[\r\n 'Intended Audience :: Developers',\r\n 'License :: OSI Approved :: MIT License',\r\n 'Programming Language :: Python',\r\n 'Programming Language :: Python :: 3',\r\n 'Programming Language :: Python :: 3.11',\r\n 'Programming Language :: Python :: 3.12',\r\n 'Operating System :: OS Independent'\r\n ],\r\n)\r\n"} +{"file_name": "37c0ace4-4c43-41d8-9bce-1082c8ce0ada.png", "code": "from youtube import YouTube\r\nfrom youtube.schemas import (\r\n SearchFilter, SearchOptionalParameters, SearchPart, YouTubeResponse, YouTubeRequest,\r\n CommentThreadFilter, CommentThreadOptionalParameters, CommentThreadPart, CreatePlaylist, \r\n CreatePlaylistSnippet, CreatePlaylistItem, VideoResourceId, CreatePlaylistItemSnippet\r\n)\r\nfrom typing import Iterator\r\nfrom datetime import datetime\r\nfrom youtube.models import Comment\r\n\r\n\r\nclient_secrets_file = '/home/lyle/Downloads/search.json'\r\nyoutube = YouTube(client_secret_file=client_secrets_file)\r\nyoutube_client = youtube.authenticate()\r\nyoutube.youtube_client = youtube_client\r\n\r\n# query: str = 'Python programming videos'\r\n# max_results: int = 10\r\n# part: SearchPart = SearchPart()\r\n# optional_parameters: SearchOptionalParameters = SearchOptionalParameters(\r\n# q=query,\r\n# maxResults=max_results,\r\n# type=['video', 'playlist', 'channel']\r\n# )\r\n# search_request: YouTubeRequest = YouTubeRequest(\r\n# part=part, \r\n# optional_parameters=optional_parameters\r\n# )\r\n# search_results: YouTubeResponse = youtube.search(search_request)\r\n# search_iterator: Iterator = youtube.get_search_iterator(search_request)\r\n# video = youtube.find_video_by_id('nDXsVhFG7TE')\r\n# videos = youtube.find_videos_by_ids(['nDXsVhFG7TE', 'aQXD-Wr6h64', 'AIqxfBhlwx0'])\r\n# ratings = youtube.get_video_ratings(['nDXsVhFG7TE', 'aQXD-Wr6h64', 'AIqxfBhlwx0'])\r\n# categories = youtube.get_video_categories()\r\n# video_abuse_reasons = youtube.list_video_abuse_report_reasons()\r\n# languages = youtube.list_languages()\r\n# regions = youtube.list_regions()\r\n# popular_video = youtube.find_most_popular_video_by_region()\r\n# channel = youtube.find_channel_by_id('UCRijo3ddMTht_IHyNSNXpNQ')\r\n# channels = youtube.find_channels_by_ids(['UCRijo3ddMTht_IHyNSNXpNQ'])\r\n"} +{"file_name": "2c6b3e41-211d-41c3-8674-ec4c44f958ca.png", "code": "# my_channel = youtube.find_my_channel()\r\n# part: CommentThreadPart = CommentThreadPart()\r\n# filter: CommentThreadFilter = CommentThreadFilter(\r\n# videoId='-dJPoLm_gtE'\r\n# )\r\n# optional: CommentThreadOptionalParameters = CommentThreadOptionalParameters(\r\n# maxResults=25\r\n# )\r\n# request:YouTubeRequest = YouTubeRequest(\r\n# part=part,\r\n# filter=filter,\r\n# optional_parameters=optional\r\n# )\r\n# comments = youtube.find_video_comments(request)\r\n# part: CommentThreadPart = CommentThreadPart()\r\n# filter: CommentThreadFilter = CommentThreadFilter(\r\n# allThreadsRelatedToChannelId='UCRijo3ddMTht_IHyNSNXpNQ'\r\n# )\r\n# optional: CommentThreadOptionalParameters = CommentThreadOptionalParameters(\r\n# maxResults=25\r\n# )\r\n# request:YouTubeRequest = YouTubeRequest(\r\n# part=part,\r\n# filter=filter,\r\n# optional_parameters=optional\r\n# )\r\n# channel_comments = youtube.find_all_channel_comments(request)\r\n# comment = youtube.get_comment('UgxAQ5xm0pH2NQcwokx4AaABAg')\r\n# replies = youtube.get_comment_replies('UgxwXLTWugMg7IEoKgR4AaABAg')\r\n# comment_text = 'Sample comment text'\r\n# video_id = 'jl3b4eLKiP8'\r\n# comment = youtube.insert_comment(video_id, comment_text)\r\n# comment_id = 'UgxnWN0P4ii1OiIEWft4AaABAg'\r\n# reply = 'Sample comment reply'\r\n# comment_reply = youtube.reply_to_comment(comment_id, reply)\r\n# channel_playlists = youtube.find_channel_playlists('UCRijo3ddMTht_IHyNSNXpNQ')\r\n# my_playlists = youtube.find_my_playlists()\r\n# print(my_playlists)\r\n# playlist_snippet = CreatePlaylistSnippet(\r\n# title='sample title',\r\n"} +{"file_name": "745ab9d3-b958-42b4-baaa-3aa41c68ee43.png", "code": "# description='sample description',\r\n# defaultLanguage='en'\r\n# )\r\n# playlist = youtube.insert_playlist(playlist_schema=CreatePlaylist(snippet=playlist_snippet))\r\n# playlist_snippet = CreatePlaylistSnippet(\r\n# title='sample title updated',\r\n# description='sample description',\r\n# defaultLanguage='en'\r\n# )\r\n# playlist = youtube.update_playlist(playlist_id='PL_26vmg8W_AejZY4OPSqdHrdIaRjoSvTW', \r\n# playlist_schema=CreatePlaylist(snippet=playlist_snippet))\r\n# youtube.delete_playlist(playlist_id='PL_26vmg8W_AejZY4OPSqdHrdIaRjoSvTW')\r\n# my_playlists_iterator = youtube.get_my_playlists_iterator()\r\n# print(next(my_playlists_iterator))\r\n# print(next(my_playlists_iterator))\r\n# playlist_items = youtube.find_playlist_items(playlist_id='PL_26vmg8W_AfD5tzNAbIGbtTLU6ivjorS')\r\n# item_ids = [\r\n# 'UExfMjZ2bWc4V19BZkQ1dHpOQWJJR2J0VExVNml2am9yUy5DMkM0MjQ3OTgwQzBCMEZB',\r\n# 'UExfMjZ2bWc4V19BZkQ1dHpOQWJJR2J0VExVNml2am9yUy5BRjY4NjdBRjA5RTdCMUMx'\r\n# ]\r\n# playlist_items = youtube.find_playlist_items_by_ids(item_ids)\r\n# resource_id = VideoResourceId(videoId='jbcjK0W6U0E')\r\n# item_snippet = CreatePlaylistItemSnippet(playlistId='PL_26vmg8W_AfD5tzNAbIGbtTLU6ivjorS', resourceId=resource_id)\r\n# item = youtube.insert_playlist_item(CreatePlaylistItem(snippet=item_snippet))\r\n# youtube.delete_playlist_item(playlist_item_id='UExfMjZ2bWc4V19BZkQ1dHpOQWJJR2J0VExVNml2am9yUy5CNzAzQzRDMkI3QThEQzZB')\r\n# print(item)\r\n# channel = youtube.find_channel_by_name('Ark Invest')\r\n# print(channel)\r\n# query: str = 'Python programming videos'\r\n# max_results: int = 10\r\n# january_2023 = datetime(year=2023, month=1, day=1)\r\n# january_2023 = str(january_2023.strftime(\"%Y-%m-%dT%H:%M:%S.%fZ\"))\r\n# part: SearchPart = SearchPart()\r\n# optional_parameters: SearchOptionalParameters = SearchOptionalParameters(\r\n# q=query,\r\n# maxResults=max_results,\r\n# type=['video'],\r\n# publishedAfter=january_2023\r\n# )\r\n# search_request: YouTubeRequest = YouTubeRequest(\r\n"} +{"file_name": "1b1900bc-4c8f-43e8-9d21-75a10b8376dc.png", "code": "# part=part, \r\n# optional_parameters=optional_parameters\r\n# )\r\n# search_results: YouTubeResponse = youtube.search(search_request)\r\n# print(search_results)\r\n# print(youtube.find_my_channel())\r\n# part: CommentThreadPart = CommentThreadPart()\r\n# filter: CommentThreadFilter = CommentThreadFilter(\r\n# videoId='Tuc-rjJbsXU'\r\n# )\r\n# optional: CommentThreadOptionalParameters = CommentThreadOptionalParameters(\r\n# maxResults=5\r\n# )\r\n# request:YouTubeRequest = YouTubeRequest(\r\n# part=part,\r\n# filter=filter,\r\n# optional_parameters=optional\r\n# )\r\n# comment_iterator: Iterator = youtube.get_comments_iterator(request)\r\n# video_comments: list[Comment] = list()\r\n# for comment_threads in comment_iterator:\r\n# for comment_thread in comment_threads:\r\n# comment: Comment = comment_thread.snippet.top_level_comment\r\n# video_comments.append(comment)\r\n# print(video_comments)\r\n# comment_id: str = 'UgzdXi_vWhXLkBA_Pwt4AaABAg'\r\n# response = youtube.get_comment(comment_id)\r\n# print(response)\r\n# import json\r\n\r\n# with open('comment.json', 'w') as f:\r\n# json.dump(response, f, indent=4)\r\n# from youtube.resources.comment_thread.comment import CommentResource\r\n# import json\r\n# comment_res = CommentResource(youtube_client)\r\n# with open('comment.json', 'r') as f:\r\n# comments = json.load(f)\r\n# print(comment_res.parse_youtube_list_response(comments))\r\n# replies = youtube.get_comment_replies('UgxwXLTWugMg7IEoKgR4AaABAg')\r\n# import json\r\n"} +{"file_name": "766e0bb5-e7a0-4f68-8d70-082344bfaeea.png", "code": "# with open('replies.json', 'w') as f:\r\n# json.dump(replies, f, indent=4)\r\n# from youtube.resources.comment_thread.comment import CommentResource\r\n# import json\r\n# comment_res = CommentResource(youtube_client)\r\n# with open('replies.json', 'r') as f:\r\n# comments = json.load(f)\r\n# print(comment_res.parse_youtube_response(comments))\r\n# print(len(comment_res.parse_youtube_response(comments).items))\r\n\r\n# comment_text = 'Sample comment text'\r\n# video_id = 'jl3b4eLKiP8'\r\n# comment = youtube.insert_comment(video_id, comment_text)\r\n# print(comment)\r\n\r\n# comment_id = 'UgyblK9NGskUXp91WIt4AaABAg'\r\n# reply = 'Sample comment reply'\r\n# comment_reply = youtube.reply_to_comment(comment_id, reply)\r\n# channel = youtube.find_my_channel()\r\n# print(channel.items[0].snippet.custom_url)\r\n# import json\r\n# my_activities = youtube.list_my_activities()\r\n# with open('my_activities.json', 'w') as f:\r\n# json.dump(my_activities, f, indent=4)\r\n# print(my_activities)\r\n# print(youtube.find_channel_by_id(channel_id=\"UCj3FYGvdAVNdD3M0dvKr3cA\"))\r\nit = youtube.get_comments_iterator(video_id='cBpGq-vDr2Y')\r\nprint(next(it))"} +{"file_name": "cc6a198e-994e-4492-85ba-5ec7ab5afdf0.png", "code": "from .google_drive import GoogleDrive\r\n"} +{"file_name": "4d87c902-e0b9-471b-ba0e-6a9647fef04d.png", "code": "from typing import Any, Optional\r\n\r\nfrom oryks_google_oauth import GoogleDriveScopes, GoogleOAuth\r\nfrom pydantic import BaseModel\r\n\r\n\r\nclass GoogleDrive(BaseModel):\r\n \"\"\"Provides methods for interacting with the Drive API.\r\n\r\n This class acts as an interface to the Drive API, providing methods for interacting with\r\n the Drive API.\r\n\r\n Attributes\r\n ----------\r\n client_secret_file: str\r\n The path to the json file containing your authentication information.\r\n \"\"\"\r\n\r\n client_secret_file: Optional[str] = None\r\n authenticated: Optional[bool] = False\r\n drive_client: Optional[Any] = None\r\n\r\n def authenticate(self, client_secret_file: Optional[str] = None) -> None:\r\n \"\"\"Authenticate the requests made to drive.\r\n\r\n Used to generate the credentials that are used when authenticating requests to drive.\r\n\r\n Parameters\r\n ----------\r\n client_secret_file: str\r\n The path to clients secret json file from Google\r\n\r\n Raises\r\n ------\r\n ValueError:\r\n When the client secrets file is not provided\r\n FileNotFoundError:\r\n When the secrets file path is not found\r\n \"\"\"\r\n if client_secret_file:\r\n"} +{"file_name": "14db0e5a-824e-4e1e-bb4a-7111d48006f1.png", "code": " self.client_secret_file = client_secret_file\r\n if not self.client_secret_file:\r\n raise ValueError('The client secret file must be provided.')\r\n api_service_name: str = 'drive'\r\n api_version: str = 'v3'\r\n credentials_dir: str = '.drive_credentials'\r\n scopes: list[str] = [\r\n GoogleDriveScopes.metadata.value,\r\n GoogleDriveScopes.drive.value,\r\n GoogleDriveScopes.files.value,\r\n GoogleDriveScopes.activity.value,\r\n ]\r\n oauth: GoogleOAuth = GoogleOAuth(\r\n secrets_file=self.client_secret_file,\r\n scopes=scopes,\r\n api_service_name=api_service_name,\r\n api_version=api_version,\r\n credentials_dir=credentials_dir,\r\n )\r\n self.drive_client = oauth.authenticate_google_server()\r\n return self.drive_client\r\n\r\n def create_file(self) -> None:\r\n \"\"\"Creates a new file on drive.\"\"\"\r\n raise NotImplementedError()\r\n \r\n def upload_file(self) -> None:\r\n \"\"\"Upload a file to drive.\"\"\"\r\n raise NotImplementedError()\r\n \r\n def resumable_upload(self) -> None:\r\n raise NotImplementedError()\r\n"} +{"file_name": "82af3f74-1759-4065-8660-505e6fdd978e.png", "code": "import ast\r\nfrom ast import AST, FunctionDef, NodeTransformer\r\n\r\nfrom .config import Config\r\nfrom .helpers import generate_doc_string, make_docstring_node\r\nfrom .model_parsers import parse_function_docstr\r\n\r\n\r\nclass FunctionTransformer(NodeTransformer):\r\n def __init__(self, config: Config, function_src: str) -> None:\r\n super().__init__()\r\n self._config: Config = config\r\n self._function_src = function_src\r\n\r\n def visit_FunctionDef(self, node: FunctionDef) -> None:\r\n ast_tree: AST = ast.parse(self._function_src)\r\n function_node: AST = ast_tree.body[0]\r\n docstring: str = ast.get_docstring(node=node)\r\n if function_node.name == node.name:\r\n if not docstring:\r\n src_code: str = ast.unparse(node)\r\n func_docstr: str = generate_doc_string(\r\n src_code=src_code, config=self._config\r\n )\r\n doc_str: str = parse_function_docstr(func_docstr.strip())\r\n if doc_str:\r\n dcstr_node: AST = make_docstring_node(doc_str)\r\n node.body.insert(0, dcstr_node)\r\n elif self._config.overwrite_function_docstring:\r\n src_code: str = ast.unparse(node)\r\n func_docstr: str = generate_doc_string(\r\n src_code=src_code, config=self._config\r\n )\r\n doc_str: str = parse_function_docstr(func_docstr.strip())\r\n if doc_str:\r\n dcstr_node: AST = make_docstring_node(doc_str)\r\n node.body[0] = dcstr_node\r\n return node\r\n"} +{"file_name": "6cf097db-5a16-4522-a154-5655a8e45ede.png", "code": "from argparse import Namespace\r\n\r\nfrom .config import Config\r\nfrom .docstring_generator import generate_project_docstrings\r\nfrom .extensions import function_code_queue, source_code_queue\r\nfrom .ui import create_application_config, parse_arguments\r\n\r\n\r\ndef main():\r\n args: Namespace = parse_arguments()\r\n config: Config = create_application_config(args)\r\n generate_project_docstrings(\r\n config=config,\r\n source_code_queue=source_code_queue,\r\n function_code_queue=function_code_queue,\r\n )\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "7debe768-eed1-4c1d-a1f3-085a3bb775ea.png", "code": "import ast\r\nfrom ast import AST, NodeTransformer\r\nfrom queue import Empty, Queue\r\nfrom openai import RateLimitError\r\n\r\nfrom .config import Config\r\nfrom .helpers import format_file, parse_src, read_src, save_src\r\nfrom .transformers import FunctionTransformer\r\nfrom .walkers import FunctionVisitor\r\n\r\n\r\ndef process_file(source_code_queue: Queue, function_code_queue: Queue):\r\n while True:\r\n try:\r\n file_path: str = source_code_queue.get(timeout=1)\r\n print(f\"processing the file: {file_path}\")\r\n file_src: str = read_src(file_path=file_path)\r\n src_tree: AST = parse_src(file_src)\r\n visitor: FunctionVisitor = FunctionVisitor(\r\n function_code_queue=function_code_queue,\r\n file_path=file_path,\r\n )\r\n visitor.visit(src_tree)\r\n source_code_queue.task_done()\r\n except Empty:\r\n print(\"Terminating the file processing..\")\r\n break\r\n\r\n\r\ndef process_function(config: Config, function_code_queue: Queue) -> None:\r\n while True:\r\n try:\r\n file_path, function_code = function_code_queue.get(timeout=1)\r\n # print(function_code)\r\n file_src: str = read_src(file_path=file_path)\r\n src_tree: AST = parse_src(file_src)\r\n # print_src(src_tree)\r\n transformer: NodeTransformer = FunctionTransformer(\r\n config=config, function_src=function_code\r\n )\r\n"} +{"file_name": "e5d57c46-457c-44a0-8532-d79396140d12.png", "code": " new_tree = transformer.visit(src_tree)\r\n ast.fix_missing_locations(new_tree)\r\n new_module_code = ast.unparse(new_tree)\r\n print(new_module_code)\r\n save_src(file_path=file_path, new_src=new_module_code)\r\n format_file(file_path=file_path)\r\n function_code_queue.task_done()\r\n except Empty:\r\n print(\"Terminating the function processing..\")\r\n break\r\n"} +{"file_name": "06631ca8-634a-46a2-964f-b2529f1c1658.png", "code": "from collections import deque\r\nfrom collections.abc import Iterator\r\nfrom os import listdir, path\r\nfrom queue import Queue\r\n\r\nfrom .config import Config\r\nfrom .helpers import read_src\r\n\r\n\r\nclass DirectoryIterator(Iterator):\r\n def __init__(self, config: Config) -> None:\r\n super().__init__()\r\n self._folders_ignore = set(config.directories_ignore)\r\n self._files_ignore = set(config.files_ignore)\r\n self._queue = deque(config.root_directory) # adding the individual chars\r\n\r\n def __iter__(self) -> Iterator:\r\n return super().__iter__()\r\n\r\n def __next__(self) -> list[str]:\r\n if self._queue:\r\n files: list[str] = list()\r\n for _ in range(len(self._queue)):\r\n directory: str = self._queue.popleft()\r\n for entry in listdir(directory):\r\n entry_path: str = path.join(directory, entry)\r\n if (\r\n path.isfile(entry_path)\r\n and self._is_python_file(entry_path)\r\n and entry not in self._files_ignore\r\n ):\r\n files.append(entry_path)\r\n elif path.isdir(entry_path) and entry not in self._folders_ignore:\r\n self._queue.append(entry_path)\r\n return files\r\n else:\r\n raise StopIteration()\r\n\r\n def _is_python_file(self, file_path: str) -> bool:\r\n return file_path.split(\".\")[-1] == \"py\"\r\n"} +{"file_name": "ed259054-cffc-4a19-854e-90737ae2b42c.png", "code": "\r\n\r\ndef get_all_modules(config: Config, source_code_queue: Queue) -> None:\r\n \"\"\"Iterate throug all the directories from the root directory.\"\"\"\r\n for entry in config.root_directory:\r\n if path.isfile(entry):\r\n source_code_queue.put(entry)\r\n else:\r\n directory_iterator: DirectoryIterator = DirectoryIterator(config=config)\r\n for modules in directory_iterator:\r\n for module in modules:\r\n source_code_queue.put(module)\r\n"} +{"file_name": "bcde117e-45f3-45df-9f34-fbc0f55e5580.png", "code": "from typing import Optional\r\n\r\nfrom pydantic import BaseModel, Field\r\n\r\n\r\nclass Config(BaseModel):\r\n root_directory: list[str] = Field(\r\n description=\"The path to the source code directory\"\r\n )\r\n directories_ignore: set[str] = Field(\r\n description=\"Directories to ignore\",\r\n default=set([\"venv\", \".venv\", \"__pycache__\", \".git\", \"build\", \"dist\", \"docs\"]),\r\n )\r\n files_ignore: set[str] = Field(\r\n description=\"Files to ignore\",\r\n default_factory=set,\r\n )\r\n overwrite_function_docstring: Optional[bool] = Field(\r\n description=\"Whether or not to overwrite the existing function docstring\",\r\n default=False,\r\n )\r\n documentation_style: Optional[str] = Field(\r\n description=\"The format of documentation to use\",\r\n default=\"Numpy-Style\",\r\n enum=[\"Numpy-Style\", \"Google-Style\", \"Sphinx-Style\"],\r\n )\r\n"} +{"file_name": "8207f1fd-77bc-4c2d-a812-6b21030f5009.png", "code": "from langchain.prompts import PromptTemplate\r\n\r\nfunction_prompt_template: str = \"\"\"\r\nGenerate python docstring for the given python function using the provided documentation style.\r\nMake sure to provide atleast two examples of the function usage only in the docstring as well\r\nas the exceptions that may be raised when using the function. Make sure to return the\r\nfunction and its docstring.\r\nFunction code: {function_code}\r\nDocumentation style: {documentation_style}\r\n\"\"\"\r\nfunction_prompt = PromptTemplate.from_template(template=function_prompt_template)\r\n"} +{"file_name": "56409385-e7c7-4433-bccc-31991c34c01c.png", "code": "import os\r\n\r\nfrom langchain.llms.base import BaseLLM\r\nfrom langchain_openai import OpenAI\r\n\r\napi_key: str = os.environ[\"OPENAI_API_KEY\"]\r\n\r\nchatgpt: BaseLLM = OpenAI(temperature=0, api_key=api_key)\r\n"} +{"file_name": "2e98820b-174f-4ee7-9290-7be354c99f60.png", "code": "from queue import Queue\r\n\r\nsource_code_queue: Queue = Queue()\r\nfunction_code_queue: Queue = Queue()\r\n"} +{"file_name": "157d367d-309b-45b1-991e-0c1ae5f494b6.png", "code": "import ast\r\nfrom ast import FunctionDef\r\nfrom queue import Queue\r\n\r\nfrom .helpers import read_src\r\n\r\n\r\nclass FunctionVisitor(ast.NodeVisitor):\r\n def __init__(self, function_code_queue: Queue, file_path: str) -> None:\r\n super().__init__()\r\n self._function_code_queue = function_code_queue\r\n self._file_path = file_path\r\n\r\n def visit_FunctionDef(self, node: FunctionDef) -> None:\r\n function_code: str = ast.unparse(ast_obj=node)\r\n self._function_code_queue.put((self._file_path, function_code))\r\n"} +{"file_name": "b07c80a1-8f67-47dd-bddf-ac295a3c3e72.png", "code": "import os\r\nfrom argparse import ArgumentParser, Namespace\r\nfrom os import path\r\n\r\nfrom .config import Config\r\n\r\n\r\ndef parse_arguments() -> Namespace:\r\n parser = ArgumentParser(\r\n prog=\"docstring-generator\",\r\n description=\"Generate docstrings for your python projects\",\r\n epilog=\"Thanks for using %(prog)s! :)\",\r\n )\r\n parser.add_argument(\"--path\", nargs=\"*\", default=[\".\"], type=str)\r\n parser.add_argument(\"--config-file\", nargs=\"?\", default=\"\", type=str)\r\n parser.add_argument(\"--OPENAI_API_KEY\", nargs=\"?\", default=\"\", type=str)\r\n parser.add_argument(\r\n \"--overwrite-function-docstring\", nargs=\"?\", default=False, type=bool\r\n )\r\n parser.add_argument(\"--directories-ignore\", nargs=\"*\", default=[], type=str)\r\n parser.add_argument(\"--files-ignore\", nargs=\"*\", default=[], type=str)\r\n parser.add_argument(\r\n \"--documentation-style\",\r\n nargs=\"?\",\r\n default=\"Numpy-Style\",\r\n choices=[\"Numpy-Style\", \"Google-Style\", \"Sphinx-Style\"],\r\n type=str,\r\n )\r\n args = parser.parse_args()\r\n paths: list[str] = args.path\r\n for entry in paths:\r\n if not path.exists(entry):\r\n print(f\"The target path '{entry}' doesn't exist\")\r\n raise SystemExit(1)\r\n if args.OPENAI_API_KEY:\r\n os.environ[\"OPENAI_API_KEY\"] = args.OPENAI_API_KEY\r\n if not os.environ.get(\"OPENAI_API_KEY\", None):\r\n print(\"You have not provided the open ai api key.\")\r\n raise SystemExit(1)\r\n return args\r\n"} +{"file_name": "17c0e3ac-bb99-4d25-a8c4-4c82c9ebcd9d.png", "code": "\r\n\r\ndef create_application_config(args: Namespace) -> Config:\r\n config: Config = Config(\r\n root_directory=set(args.path),\r\n overwrite_function_docstring=args.overwrite_function_docstring,\r\n documentation_style=args.documentation_style,\r\n )\r\n config.directories_ignore.update(set(args.directories_ignore))\r\n config.files_ignore.update(set(args.files_ignore))\r\n return config\r\n"} +{"file_name": "900239c6-7794-4d12-82ba-fb1792a9fc6b.png", "code": "from __future__ import annotations\r\n\r\nimport ast\r\nfrom abc import ABC, abstractmethod\r\nfrom ast import AST, FunctionDef\r\n\r\nfrom .helpers import parse_src\r\n\r\n\r\nclass Parser(ABC):\r\n @abstractmethod\r\n def set_next(self, parser: Parser) -> Parser:\r\n pass\r\n\r\n @abstractmethod\r\n def parse(self, docstring: str) -> str:\r\n pass\r\n\r\n\r\nclass AbstractParser(Parser):\r\n _next_parser: Parser = None\r\n\r\n def set_next(self, parser: Parser) -> Parser:\r\n self._next_parser = parser\r\n return parser\r\n\r\n @abstractmethod\r\n def parse(self, docstring: str) -> str:\r\n if self._next_parser:\r\n return self._next_parser.parse(docstring)\r\n print(\"Unable to parse the docstring generated.\")\r\n print(\"################################\")\r\n print(docstring)\r\n print(\"################################\")\r\n return None\r\n\r\n\r\nclass DefaultParser(AbstractParser):\r\n def parse(self, docstring: str) -> str:\r\n try:\r\n"} +{"file_name": "0affa3b5-5705-42fc-a220-991a53d45091.png", "code": " src_tree: AST = parse_src(docstring)\r\n func_node: FunctionDef = src_tree.body[0]\r\n doc_str: str = ast.get_docstring(func_node)\r\n except Exception:\r\n return super().parse(docstring)\r\n else:\r\n return doc_str\r\n\r\n\r\nmodel_parser: Parser = DefaultParser()\r\n\r\n\r\ndef parse_function_docstr(func_dcstr: str) -> str:\r\n return model_parser.parse(docstring=func_dcstr)\r\n"} +{"file_name": "fec26683-2914-4bf0-97c0-303dd2e76e14.png", "code": "from concurrent.futures import ThreadPoolExecutor\r\nfrom queue import Queue\r\nfrom threading import Lock\r\n\r\nfrom .config import Config\r\nfrom .directory_iterators import get_all_modules\r\nfrom .docstring_writer import process_file, process_function\r\n\r\n\r\ndef generate_project_docstrings(\r\n config: Config, source_code_queue: Queue, function_code_queue: Queue\r\n) -> None:\r\n with ThreadPoolExecutor(max_workers=4) as executor:\r\n executor.submit(get_all_modules, config, source_code_queue)\r\n executor.submit(process_file, source_code_queue, function_code_queue)\r\n executor.submit(process_function, config, function_code_queue)\r\n source_code_queue.join()\r\n function_code_queue.join()\r\n"} +{"file_name": "f1ed46e7-56bf-4aa1-821e-27faf8a56e59.png", "code": "import ast\r\nimport subprocess\r\nfrom ast import AST, Constant, Expr\r\nfrom os import path\r\nfrom openai import RateLimitError\r\nimport sys\r\n\r\nfrom .config import Config\r\nfrom .llms import chatgpt\r\nfrom .templates import function_prompt\r\n\r\n\r\ndef read_src(file_path: str) -> str:\r\n with open(file_path, \"r\", encoding=\"utf-8\") as f:\r\n return f.read()\r\n\r\n\r\ndef save_src(file_path: str, new_src: str) -> str:\r\n with open(file_path, \"w\", encoding=\"utf-8\") as f:\r\n return f.write(new_src)\r\n\r\n\r\ndef parse_src(file_src: str) -> AST:\r\n return ast.parse(file_src)\r\n\r\n\r\ndef print_src(src_tree: AST) -> None:\r\n print(ast.dump(src_tree, indent=4))\r\n\r\n\r\nfunction_dcstr: str = '''\r\ndef subtract(a: int | float, b: int | float) -> int | float:\r\n \"\"\"Subtracts two numbers\r\n\r\n Parameters\r\n ----------\r\n a : int or float\r\n The first number to subtract.\r\n b : int or float\r\n The second number to subtract.\r\n"} +{"file_name": "fa5d7997-ab7e-480b-ade5-5a4f15b5ce63.png", "code": "\r\n Returns\r\n -------\r\n int or float\r\n The result of subtracting b from a.\r\n \"\"\"\r\n return a - b\r\n'''\r\n\r\n\r\ndef generate_doc_string(src_code: str, config: Config) -> str:\r\n prompt_formatted_str: str = function_prompt.format(\r\n function_code=src_code, documentation_style=config.documentation_style\r\n )\r\n # function_and_docstring: str = chatgpt.invoke(prompt_formatted_str)\r\n # return function_and_docstring\r\n return function_dcstr\r\n\r\n\r\ndef make_docstring_node(docstr: str):\r\n constant_str: Constant = Constant(docstr)\r\n return Expr(value=constant_str)\r\n\r\n\r\ndef format_file(file_path: str) -> None:\r\n \"\"\"Format the file using black.\"\"\"\r\n if path.exists(file_path):\r\n subprocess.run([\"black\", file_path], capture_output=True)\r\n"} +{"file_name": "fb262ba1-ee22-4c88-86d6-493a0a45d4b1.png", "code": "from langchain.llms import OpenAI\r\n\r\nfrom langchain_google_genai import ChatGoogleGenerativeAI\r\n\r\nopen_ai = OpenAI(temperature=0)\r\ngoogle = ChatGoogleGenerativeAI(model=\"gemini-pro\")\r\n"} +{"file_name": "46b2a484-c0fe-4633-b615-4464d1c1a08b.png", "code": "import os\r\n\r\nfrom youtube import YouTube\r\n\r\nclient_secrets_file = os.environ['CLIENT_SECRET_FILE']\r\nyoutube_client = YouTube(client_secret_file=client_secrets_file)\r\nyoutube_client.authenticate()\r\n"} +{"file_name": "401f9690-3932-4d97-9d44-c65c5a59f93f.png", "code": "from argparse import Namespace\r\n\r\nfrom dotenv import load_dotenv\r\n\r\nload_dotenv()\r\nfrom .config import Config\r\nfrom .docstring_generator import generate_docstrings\r\nfrom .extensions import (\r\n failed_modules_queue,\r\n functions_source_code_queue,\r\n modules_path_queue,\r\n class_source_code_queue,\r\n)\r\nfrom .helpers import create_application_config, parse_arguments\r\n\r\n\r\ndef run():\r\n \"\"\"Runs the application by parsing arguments, creating a configuration, and generating docstrings.\r\n\r\n Returns:\r\n function: The run function.\r\n docstring: The docstring for the run function.\r\n exceptions: Any exceptions that may be thrown during execution.\"\"\"\r\n args: Namespace = parse_arguments()\r\n config: Config = create_application_config(args)\r\n generate_docstrings(\r\n config=config,\r\n module_path_queue=modules_path_queue,\r\n functions_source_queue=functions_source_code_queue,\r\n failed_modules_queue=failed_modules_queue,\r\n class_source_queue=class_source_code_queue,\r\n )\r\n\r\n\r\nif __name__ == '__main__':\r\n run()\r\n"} +{"file_name": "9636090d-5257-40bf-be18-3795cf66e378.png", "code": "import ast\r\nfrom _ast import ClassDef, FunctionDef\r\nfrom ast import NodeTransformer\r\nfrom typing import Any\r\n\r\nfrom pydantic import BaseModel, Field\r\n\r\nfrom .config import Config\r\nfrom .helpers import (\r\n generate_class_docstring,\r\n generate_function_docstring,\r\n get_class_docstring,\r\n get_class_methods_docstrings,\r\n get_function_docstring,\r\n get_module_source_code,\r\n make_docstring_node,\r\n)\r\n\r\n\r\nclass FunctionDocStringWriter(NodeTransformer, BaseModel):\r\n module_path: str = Field(description='The path to this module')\r\n function_name: str = Field(\r\n description='The name of the function to generate docstrings'\r\n )\r\n function_code: str = Field(description='The source code for this function')\r\n config: Config = Field(description='The application configurations.')\r\n\r\n @property\r\n def module_code(self) -> str:\r\n return get_module_source_code(self.module_path)\r\n\r\n def visit_FunctionDef(self, node: FunctionDef) -> Any:\r\n docstring: str = ast.get_docstring(node=node)\r\n if node.name == self.function_name and (\r\n self.config.overwrite_function_docstring or not docstring\r\n ):\r\n function_code: str = ast.get_source_segment(\r\n source=self.module_code, node=node, padded=True\r\n )\r\n function_and_docstring: str = generate_function_docstring(\r\n"} +{"file_name": "d4fa8924-7f0f-4c7c-b0de-29baa093b8e1.png", "code": " function_code=function_code, config=self.config\r\n )\r\n try:\r\n function_docstring: str = get_function_docstring(function_and_docstring)\r\n except Exception:\r\n new_docstring_node = make_docstring_node(function_and_docstring)\r\n else:\r\n new_docstring_node = make_docstring_node(function_docstring)\r\n node.body.insert(0, new_docstring_node)\r\n return node\r\n\r\n\r\nclass ClassDocStringWriter(NodeTransformer, BaseModel):\r\n module_path: str = Field(description='The path to this module')\r\n class_name: str = Field(description='The name of the class to generate docstrings')\r\n class_code: str = Field(description='The source code for this class')\r\n config: Config = Field(description='The application configurations.')\r\n\r\n @property\r\n def module_code(self) -> str:\r\n return get_module_source_code(self.module_path)\r\n\r\n def visit_ClassDef(self, node: ClassDef) -> Any:\r\n docstring: str = ast.get_docstring(node=node)\r\n if node.name == self.class_name and (\r\n self.config.overwrite_class_docstring or not docstring\r\n ):\r\n class_code: str = ast.get_source_segment(\r\n source=self.module_code, node=node, padded=True\r\n )\r\n class_and_docstring: str = generate_class_docstring(\r\n class_code=class_code, config=self.config\r\n )\r\n try:\r\n class_docstring: str = get_class_docstring(class_and_docstring)\r\n except Exception:\r\n class_docstring = class_and_docstring\r\n new_docstring_node = make_docstring_node(class_and_docstring)\r\n class_docstring = class_and_docstring\r\n else:\r\n"} +{"file_name": "3aaab29b-05da-416c-9f29-7a012934779c.png", "code": " new_docstring_node = make_docstring_node(class_docstring)\r\n node.body.insert(0, new_docstring_node)\r\n methods_docstrings: dict[str, str] = get_class_methods_docstrings(\r\n class_and_docstring\r\n )\r\n for class_node in node.body:\r\n if isinstance(class_node, FunctionDef):\r\n function_doc: str = ast.get_docstring(node=class_node)\r\n if (\r\n not function_doc\r\n or self.config.overwrite_class_methods_docstring\r\n ):\r\n function_name: str = class_node.name\r\n new_docstring_node = make_docstring_node(\r\n methods_docstrings[function_name]\r\n )\r\n class_node.body.insert(0, new_docstring_node)\r\n return node\r\n\r\n\r\nclass DocstringWriter(NodeTransformer, BaseModel):\r\n module_code: str = Field(description='The source code for this module')\r\n config: Config = Field(description='The application configurations.')\r\n\r\n def visit_classDef(self, node: FunctionDef) -> Any:\r\n docstring: str = ast.get_docstring(node=node)\r\n if self.config.overwrite_function_docstring or not docstring:\r\n function_code: str = ast.get_source_segment(\r\n source=self.module_code, node=node, padded=True\r\n )\r\n function_and_docstring: str = generate_function_docstring(\r\n function_code, self.config\r\n )\r\n function_docstring: str = get_function_docstring(function_and_docstring)\r\n new_docstring_node = make_docstring_node(function_docstring)\r\n node.body.insert(0, new_docstring_node)\r\n\r\n return node\r\n\r\n def visit_ClassDef(self, node: ClassDef) -> Any:\r\n"} +{"file_name": "6fce7a59-800f-4311-8c86-20a839f23e9c.png", "code": " docstring: str = ast.get_docstring(node=node)\r\n if not docstring or self.config.overwrite_class_docstring:\r\n class_code: str = ast.get_source_segment(\r\n source=self.module_code, node=node, padded=True\r\n )\r\n class_and_docstring: str = generate_class_docstring(class_code, self.config)\r\n class_docstring: str = get_class_docstring(class_and_docstring)\r\n new_docstring_node = make_docstring_node(class_docstring)\r\n node.body.insert(0, new_docstring_node)\r\n methods_docstrings: dict[str, str] = get_class_methods_docstrings(\r\n class_and_docstring\r\n )\r\n for class_node in node.body:\r\n if isinstance(class_node, FunctionDef):\r\n function_doc: str = ast.get_docstring(node=class_node)\r\n if (\r\n not function_doc\r\n or self.config.overwrite_class_methods_docstring\r\n ):\r\n function_name: str = class_node.name\r\n new_docstring_node = make_docstring_node(\r\n methods_docstrings[function_name]\r\n )\r\n class_node.body.insert(0, new_docstring_node)\r\n return node\r\n"} +{"file_name": "a533b084-f89c-4142-ab85-80c73d1d361f.png", "code": "from typing import List, Optional\r\n\r\nfrom pydantic import BaseModel, Field\r\n\r\n\r\nclass Config(BaseModel):\r\n path: set[str] = Field(description='The path to the source code directory')\r\n overwrite_function_docstring: Optional[bool] = Field(\r\n description='Whether or not to overwrite the existing function docstring',\r\n default=False,\r\n )\r\n overwrite_class_docstring: Optional[bool] = Field(\r\n description='Whether or not to overwrite the existing class docstring',\r\n default=False,\r\n )\r\n overwrite_class_methods_docstring: Optional[bool] = Field(\r\n description='Whether or not to overwrite the existing class methods docstring',\r\n default=False,\r\n )\r\n documentation_style: Optional[str] = Field(\r\n description='The format of documentation to use',\r\n default='Numpy-Style',\r\n enum=['Numpy-Style', 'Google-Style', 'Sphinx-Style'],\r\n )\r\n directories_ignore: set[str] = Field(\r\n description='Directories to ignore',\r\n default={'venv', '.venv', '__pycache__', '.git', 'build', 'dist', 'docs'},\r\n )\r\n files_ignore: set[str] = Field(\r\n description='Files to ignore',\r\n default_factory=set,\r\n )\r\n"} +{"file_name": "aad7e425-52fa-4b6e-a260-9f2f47656488.png", "code": "import ast\r\nfrom queue import Empty, Queue\r\n\r\nfrom .config import Config\r\nfrom .docstring_writer import ClassDocStringWriter, FunctionDocStringWriter\r\nfrom .helpers import (\r\n format_file,\r\n get_class_source,\r\n get_functions_source,\r\n get_module_source_code,\r\n save_processed_file,\r\n)\r\n\r\n\r\ndef queue_unprocessed_functions_methods(\r\n functions_source_queue: Queue, classes_source_queue: Queue, module_path_queue: Queue\r\n) -> None:\r\n while True:\r\n try:\r\n module_path: str = module_path_queue.get()\r\n functions: list[str] = get_functions_source(module_path)\r\n for function_name, function_code in functions:\r\n functions_source_queue.put((module_path, function_name, function_code))\r\n classes: list[str] = get_class_source(module_path)\r\n for class_name, class_code in classes:\r\n classes_source_queue.put((module_path, class_name, class_code))\r\n except Empty:\r\n continue\r\n else:\r\n module_path_queue.task_done()\r\n\r\n\r\ndef generate_function_docstrings(functions_source_queue: Queue, config: Config) -> None:\r\n \"\"\"Generate docstrings for this file.\"\"\"\r\n while True:\r\n try:\r\n module_path, function_name, function_code = functions_source_queue.get()\r\n module_tree = ast.parse(get_module_source_code(module_path))\r\n transformer = FunctionDocStringWriter(\r\n module_path=module_path,\r\n"} +{"file_name": "235cc2ed-fc6b-4736-8855-d2b026310251.png", "code": " function_name=function_name,\r\n function_code=function_code,\r\n config=config,\r\n )\r\n new_tree = transformer.visit(module_tree)\r\n ast.fix_missing_locations(new_tree)\r\n new_module_code = ast.unparse(new_tree)\r\n except Empty:\r\n continue\r\n except Exception as e:\r\n print(e)\r\n functions_source_queue.task_done()\r\n continue\r\n else:\r\n save_processed_file(\r\n file_path=module_path, processed_module_code=new_module_code\r\n )\r\n format_file(module_path)\r\n functions_source_queue.task_done()\r\n\r\ndef generate_class_docstrings(class_source_queue: Queue, config: Config) -> None:\r\n \"\"\"Generate docstrings for this file.\"\"\"\r\n while True:\r\n try:\r\n module_path, class_name, class_code = class_source_queue.get()\r\n module_tree = ast.parse(get_module_source_code(module_path))\r\n transformer = ClassDocStringWriter(\r\n module_path=module_path,\r\n class_name=class_name,\r\n class_code=class_code,\r\n config=config,\r\n )\r\n new_tree = transformer.visit(module_tree)\r\n ast.fix_missing_locations(new_tree)\r\n new_module_code = ast.unparse(new_tree)\r\n except Empty:\r\n continue\r\n except Exception as e:\r\n print(e)\r\n class_source_queue.task_done()\r\n"} +{"file_name": "8fe259d4-73db-4526-a6b7-5e545d4e687c.png", "code": " continue\r\n else:\r\n save_processed_file(\r\n file_path=module_path, processed_module_code=new_module_code\r\n )\r\n format_file(module_path)\r\n class_source_queue.task_done()\r\n"} +{"file_name": "64d029bb-1ca7-4efc-9ddb-c08e22a49fe0.png", "code": "from langchain.prompts import PromptTemplate\r\n\r\nfrom .config import Config\r\n\r\n\r\ndef get_function_prompt_template(function_code: str, config: Config) -> str:\r\n function_prompt_template: str = \"\"\"\r\n Generate python docstring for the given python function using the provided documentation style:\r\n Function code: {function_code}\r\n Documentation style: {documentation_style}\r\n \"\"\"\r\n prompt = PromptTemplate.from_template(template=function_prompt_template)\r\n prompt_formatted_str: str = prompt.format(\r\n function_code=function_code, documentation_style=config.documentation_style\r\n )\r\n return prompt_formatted_str\r\n\r\n\r\ndef get_class_prompt_template(class_code: str, config: Config) -> str:\r\n function_prompt_template: str = \"\"\"\r\n Generate python docstring for the given python class using the provided documentation style:\r\n Class code: {class_code}\r\n Documentation style: {documentation_style}\r\n \"\"\"\r\n prompt = PromptTemplate.from_template(template=function_prompt_template)\r\n prompt_formatted_str: str = prompt.format(\r\n class_code=class_code, documentation_style=config.documentation_style\r\n )\r\n return prompt_formatted_str\r\n"} +{"file_name": "d9e26cfa-fd65-482e-9a02-52917e23ad29.png", "code": "from queue import Queue\r\n\r\nfrom langchain_openai import OpenAI\r\n\r\nmodules_path_queue: Queue = Queue()\r\nfunctions_source_code_queue: Queue = Queue()\r\nclass_source_code_queue: Queue = Queue()\r\nfailed_modules_queue: Queue = Queue()\r\nllm = OpenAI(temperature=0)\r\n"} +{"file_name": "09a121a5-28d6-494a-ab55-9868280b4238.png", "code": "from queue import Queue\r\nfrom threading import Thread\r\n\r\nfrom .config import Config\r\nfrom .file_processor import (\r\n generate_function_docstrings,\r\n queue_unprocessed_functions_methods,\r\n generate_class_docstrings,\r\n)\r\nfrom .helpers import get_all_modules\r\n\r\n\r\ndef generate_docstrings(\r\n config: Config,\r\n module_path_queue: Queue,\r\n functions_source_queue: Queue,\r\n class_source_queue: Queue,\r\n failed_modules_queue: Queue,\r\n) -> None:\r\n \"\"\"Generate docstrings for classes and methods.\"\"\"\r\n queue_modules: Thread = Thread(\r\n target=get_all_modules,\r\n name='get_all_modules',\r\n args=(config, module_path_queue),\r\n )\r\n queue_modules.start()\r\n\r\n for _ in range(1):\r\n get_functions_source_thread: Thread = Thread(\r\n target=queue_unprocessed_functions_methods,\r\n args=(functions_source_queue, class_source_queue, module_path_queue),\r\n daemon=True,\r\n )\r\n get_functions_source_thread.start()\r\n\r\n for _ in range(1):\r\n generate_functions_docstring_thread: Thread = Thread(\r\n target=generate_function_docstrings,\r\n args=(functions_source_queue, config),\r\n daemon=True,\r\n"} +{"file_name": "d71ffcf9-05d0-41b0-a37c-b1f50af3430f.png", "code": " )\r\n generate_functions_docstring_thread.start()\r\n\r\n for _ in range(1):\r\n generate_class_docstring_thread: Thread = Thread(\r\n target=generate_class_docstrings,\r\n args=(class_source_queue, config),\r\n daemon=True,\r\n )\r\n generate_class_docstring_thread.start()\r\n\r\n queue_modules.join()\r\n module_path_queue.join()\r\n functions_source_queue.join()\r\n class_source_queue.join()\r\n"} +{"file_name": "1f3f2c69-8c4d-4906-88d5-7cba2a4871d4.png", "code": "import ast\r\nimport os\r\nimport subprocess\r\nfrom argparse import ArgumentParser, Namespace\r\nfrom ast import AsyncFunctionDef, ClassDef, Constant, Expr, FunctionDef\r\nfrom collections import deque\r\nfrom os import listdir, path\r\nfrom queue import Queue\r\nfrom typing import Iterator\r\n\r\nfrom langchain.prompts import PromptTemplate\r\n\r\nfrom .config import Config\r\nfrom .extensions import llm\r\nfrom .templates import get_function_prompt_template, get_class_prompt_template\r\n\r\n\r\ndef generate_function_docstring(function_code: str, config: Config) -> str:\r\n prompt_formatted_str: str = get_function_prompt_template(\r\n function_code=function_code, config=config\r\n )\r\n function_and_docstring = llm.invoke(prompt_formatted_str)\r\n return function_and_docstring\r\n\r\n\r\ndef generate_class_docstring(class_code: str, config: Config) -> str:\r\n prompt_formatted_str: str = get_class_prompt_template(\r\n class_code=class_code, config=config\r\n )\r\n class_and_docstring = llm.invoke(prompt_formatted_str)\r\n return class_and_docstring\r\n\r\n\r\ndef get_class_docstring(class_and_docstring: str) -> str:\r\n \"\"\"Get the class docstring.\"\"\"\r\n class_tree = ast.parse(class_and_docstring)\r\n for node in class_tree.body:\r\n if isinstance(node, ClassDef):\r\n cls_docstring: str = ast.get_docstring(node)\r\n return cls_docstring\r\n"} +{"file_name": "e286ef37-43ae-4ea0-a320-f3c0db52aa93.png", "code": "\r\n\r\ndef get_class_methods_docstrings(class_and_docstring: str) -> dict[str, str]:\r\n \"\"\"Get a class methods docstrings.\"\"\"\r\n class_methods: dict[str, str] = {}\r\n class_tree = ast.parse(class_and_docstring)\r\n for node in class_tree.body:\r\n if isinstance(node, ClassDef):\r\n for class_node in node.body:\r\n if isinstance(class_node, FunctionDef):\r\n class_methods[class_node.name] = ast.get_docstring(class_node)\r\n return class_methods\r\n\r\n\r\ndef make_docstring_node(docstr: str):\r\n constant_str: Constant = Constant(docstr)\r\n return Expr(value=constant_str)\r\n\r\n\r\ndef get_function_docstring(function_and_docstring: str) -> str:\r\n \"\"\"Get the function docstring.\"\"\"\r\n function_tree = ast.parse(function_and_docstring)\r\n for node in function_tree.body:\r\n if isinstance(node, (FunctionDef, AsyncFunctionDef)):\r\n function_docstring: str = ast.get_docstring(node)\r\n return function_docstring\r\n\r\n\r\ndef get_module_source_code(module_path: str) -> str:\r\n \"\"\"Get the source code for a given module.\"\"\"\r\n with open(module_path, 'r') as f:\r\n return f.read()\r\n\r\n\r\ndef add_module_code_to_queue(module_path: str, module_source_queue: Queue):\r\n module_src: str = ''\r\n if module_path:\r\n module_src = get_module_source_code(module_path)\r\n module_source_queue.put((module_path, module_src))\r\n\r\n"} +{"file_name": "d366abcb-6eb7-4687-b945-d4f1dc31550c.png", "code": "\r\ndef add_module_to_queue(module_path: str, module_path_queue: Queue):\r\n module_path_queue.put(module_path)\r\n\r\n\r\ndef get_node_source(node, module_src: str) -> str:\r\n return ast.get_source_segment(source=module_src, node=node)\r\n\r\n\r\ndef get_functions_source(module_path: str) -> list[str]:\r\n functions_src: list[str] = []\r\n module_src = get_module_source_code(module_path)\r\n module_tree = ast.parse(module_src)\r\n for node in module_tree.body:\r\n if isinstance(node, FunctionDef):\r\n function_src: str = get_node_source(node=node, module_src=module_src)\r\n functions_src.append((node.name, function_src))\r\n return functions_src\r\n\r\n\r\ndef get_class_source(module_path: str) -> None:\r\n class_src: list[str] = []\r\n module_src = get_module_source_code(module_path)\r\n module_tree = ast.parse(module_src)\r\n for node in module_tree.body:\r\n if isinstance(node, ClassDef):\r\n classsrc: str = get_node_source(node=node, module_src=module_src)\r\n class_src.append((node.name, classsrc))\r\n return class_src\r\n\r\n\r\nclass DirectoryIterator:\r\n def __init__(self, config: Config):\r\n self.config: Config = config\r\n self.queue: deque[str] = deque(self.config.path)\r\n\r\n def __iter__(self) -> Iterator:\r\n return self\r\n\r\n def __next__(self) -> list[str]:\r\n"}