{"id":32871,"date":"2025-03-02T03:27:23","date_gmt":"2025-03-02T02:27:23","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/looking-for-a-dataset-of-self-contained-bug-free-python-files-with-or-without-unit-tests\/"},"modified":"2025-03-02T03:27:23","modified_gmt":"2025-03-02T02:27:23","slug":"looking-for-a-dataset-of-self-contained-bug-free-python-files-with-or-without-unit-tests","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/looking-for-a-dataset-of-self-contained-bug-free-python-files-with-or-without-unit-tests\/","title":{"rendered":"Looking For A Dataset Of Self-Contained, Bug-Free Python Files (with Or Without Unit Tests)"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>I&#8217;m working on a project that requires a dataset of small, self-contained Python files that are known to be bug-free. Ideally, these files would represent complete, functional units of code, not just snippets.<\/p>\n<p>Specifically, I&#8217;m looking for:<\/p>\n<p>  Self-contained Python files: Each file should be runnable on its own, without external dependencies (beyond standard libraries, if necessary). Bug-free: The files should be reasonably well-tested and known to function correctly. Small to medium size: I&#8217;m not looking for massive projects, but rather individual files that demonstrate good coding practices. Optional but desired: Unit tests attached to the files would be a huge plus!  <\/p>\n<p>I want to use this dataset to build a static analysis tool. I have been looking for GitHub repositories that match this description. I have tried the leetcode dataset but I need more than that. <\/p>\n<p>Thank you \ud83d\ude42<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/Serious-Aardvark9850\"> \/u\/Serious-Aardvark9850 <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1j1gdxm\/looking_for_a_dataset_of_selfcontained_bugfree\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1j1gdxm\/looking_for_a_dataset_of_selfcontained_bugfree\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-32871 jlk' href='javascript:void(0)' data-task='like' data-post_id='32871' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-32871 lc'>0<\/span><\/a><\/div><\/div> <div class='status-32871 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on a project that requires a dataset of small, self-contained Python files that are known&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-32871","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/32871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=32871"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/32871\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=32871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=32871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=32871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}