{"id":35255,"date":"2022-03-11T15:03:41","date_gmt":"2022-03-11T20:03:41","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=35255"},"modified":"2022-03-11T15:03:41","modified_gmt":"2022-03-11T20:03:41","slug":"characterizing-single-statement-bugs","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/03\/11\/characterizing-single-statement-bugs\/","title":{"rendered":"Characterizing Single-Statement Bugs"},"content":{"rendered":"<p><a href=\"https:\/\/neverworkintheory.org\/2022\/03\/11\/single-statement-bugs-in-python-projects.html\">Greg Wilson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/neverworkintheory.org\/2022\/03\/11\/single-statement-bugs-in-python-projects.html\">\n<p>I spent most of an afternoon last week tracking down a bug caused by having two decorators stacked on a function in the wrong order. The fix was small, but the impact was not. Reading this paper has got me wondering how often this happens&mdash;how often it turns out that just one line in a program needs to change to make it right.<\/p>\n<p>Kamienski and colleagues set out to answer two questions: what are the most common single-statement bugs in Python projects, and how do they differ from those in Java projects? After harvesting code from World of Code, they used diffs to identify single-statement fixes.<\/p>\n<\/blockquote>\n<p>The paper is <a href=\"https:\/\/ieeexplore.ieee.org\/document\/9463149\">here<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Greg Wilson: I spent most of an afternoon last week tracking down a bug caused by having two decorators stacked on a function in the wrong order. The fix was small, but the impact was not. Reading this paper has got me wondering how often this happens&mdash;how often it turns out that just one line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-03-11T20:03:43Z","apple_news_api_id":"41c0c861-0540-462b-9f4e-08fdf44dac84","apple_news_api_modified_at":"2022-03-11T20:03:43Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AQcDIYQVARiufTgj99E2shA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[131,84,991,71,232],"class_list":["post-35255","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bug","tag-java","tag-open-source-software","tag-programming","tag-python"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/35255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=35255"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/35255\/revisions"}],"predecessor-version":[{"id":35256,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/35255\/revisions\/35256"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=35255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=35255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=35255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}