{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/undebt/pulls/comments/76145688","id":76145688,"diff_hunk":"@@ -31,3 +32,10 @@ def test_leading_whitespace():\n \n def test_trailing_whitespace():\n     assert trailing_whitespace(\" a   \") == \"   \"\n+\n+\n+def test_in_string():\n+    test = \"0123'567'9\"\n+    assert all(not in_string(x, test) for x in range(0, 5))\n+    assert all(in_string(x, test) for x in range(5, 9))\n+    assert all(not in_string(x, test) for x in range(9, 10))","path":"tests/pattern/util_test.py","position":18,"original_position":18,"commit_id":"661f7d1e7071d48d3e04f0a9eb0d13e99d146735","original_commit_id":"5aafcd3b671ce3a7d38a8c26a345cb02fce81912","user":{"login":"smallredbean","id":3681205,"avatar_url":"https://avatars.githubusercontent.com/u/3681205?v=3","gravatar_id":"","url":"https://api.github.com/users/smallredbean","html_url":"https://github.com/smallredbean","followers_url":"https://api.github.com/users/smallredbean/followers","following_url":"https://api.github.com/users/smallredbean/following{/other_user}","gists_url":"https://api.github.com/users/smallredbean/gists{/gist_id}","starred_url":"https://api.github.com/users/smallredbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smallredbean/subscriptions","organizations_url":"https://api.github.com/users/smallredbean/orgs","repos_url":"https://api.github.com/users/smallredbean/repos","events_url":"https://api.github.com/users/smallredbean/events{/privacy}","received_events_url":"https://api.github.com/users/smallredbean/received_events","type":"User","site_admin":false},"body":"Could we be more elaborate on test cases? e.g.,\r\n```\r\nassert in_string(0, test)\r\nassert in_string(1, test)\r\nassert not in_string(2, test)\r\n...\r\nassert not in_string(9, test)\r\n```","created_at":"2016-08-24T21:49:04Z","updated_at":"2016-08-24T21:49:04Z","html_url":"https://github.com/Yelp/undebt/pull/17#discussion_r76145688","pull_request_url":"https://api.github.com/repos/Yelp/undebt/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Yelp/undebt/pulls/comments/76145688"},"html":{"href":"https://github.com/Yelp/undebt/pull/17#discussion_r76145688"},"pull_request":{"href":"https://api.github.com/repos/Yelp/undebt/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/undebt/pulls/17","id":82620820,"html_url":"https://github.com/Yelp/undebt/pull/17","diff_url":"https://github.com/Yelp/undebt/pull/17.diff","patch_url":"https://github.com/Yelp/undebt/pull/17.patch","issue_url":"https://api.github.com/repos/Yelp/undebt/issues/17","number":17,"state":"open","locked":false,"title":"Fix needless_u_specifier inside of strings by adding util.in_string","user":{"login":"evhub","id":1337598,"avatar_url":"https://avatars.githubusercontent.com/u/1337598?v=3","gravatar_id":"","url":"https://api.github.com/users/evhub","html_url":"https://github.com/evhub","followers_url":"https://api.github.com/users/evhub/followers","following_url":"https://api.github.com/users/evhub/following{/other_user}","gists_url":"https://api.github.com/users/evhub/gists{/gist_id}","starred_url":"https://api.github.com/users/evhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evhub/subscriptions","organizations_url":"https://api.github.com/users/evhub/orgs","repos_url":"https://api.github.com/users/evhub/repos","events_url":"https://api.github.com/users/evhub/events{/privacy}","received_events_url":"https://api.github.com/users/evhub/received_events","type":"User","site_admin":false},"body":"Fixes #10.","created_at":"2016-08-24T21:28:51Z","updated_at":"2016-08-24T21:49:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"852510fcd71225b5989377325f4fad9398210726","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/undebt/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Yelp/undebt/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Yelp/undebt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/undebt/issues/17/comments","statuses_url":"https://api.github.com/repos/Yelp/undebt/statuses/661f7d1e7071d48d3e04f0a9eb0d13e99d146735","head":{"label":"evhub:fix_u_at_end_of_string","ref":"fix_u_at_end_of_string","sha":"661f7d1e7071d48d3e04f0a9eb0d13e99d146735","user":{"login":"evhub","id":1337598,"avatar_url":"https://avatars.githubusercontent.com/u/1337598?v=3","gravatar_id":"","url":"https://api.github.com/users/evhub","html_url":"https://github.com/evhub","followers_url":"https://api.github.com/users/evhub/followers","following_url":"https://api.github.com/users/evhub/following{/other_user}","gists_url":"https://api.github.com/users/evhub/gists{/gist_id}","starred_url":"https://api.github.com/users/evhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evhub/subscriptions","organizations_url":"https://api.github.com/users/evhub/orgs","repos_url":"https://api.github.com/users/evhub/repos","events_url":"https://api.github.com/users/evhub/events{/privacy}","received_events_url":"https://api.github.com/users/evhub/received_events","type":"User","site_admin":false},"repo":{"id":66319234,"name":"undebt","full_name":"evhub/undebt","owner":{"login":"evhub","id":1337598,"avatar_url":"https://avatars.githubusercontent.com/u/1337598?v=3","gravatar_id":"","url":"https://api.github.com/users/evhub","html_url":"https://github.com/evhub","followers_url":"https://api.github.com/users/evhub/followers","following_url":"https://api.github.com/users/evhub/following{/other_user}","gists_url":"https://api.github.com/users/evhub/gists{/gist_id}","starred_url":"https://api.github.com/users/evhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evhub/subscriptions","organizations_url":"https://api.github.com/users/evhub/orgs","repos_url":"https://api.github.com/users/evhub/repos","events_url":"https://api.github.com/users/evhub/events{/privacy}","received_events_url":"https://api.github.com/users/evhub/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evhub/undebt","description":null,"fork":true,"url":"https://api.github.com/repos/evhub/undebt","forks_url":"https://api.github.com/repos/evhub/undebt/forks","keys_url":"https://api.github.com/repos/evhub/undebt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evhub/undebt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evhub/undebt/teams","hooks_url":"https://api.github.com/repos/evhub/undebt/hooks","issue_events_url":"https://api.github.com/repos/evhub/undebt/issues/events{/number}","events_url":"https://api.github.com/repos/evhub/undebt/events","assignees_url":"https://api.github.com/repos/evhub/undebt/assignees{/user}","branches_url":"https://api.github.com/repos/evhub/undebt/branches{/branch}","tags_url":"https://api.github.com/repos/evhub/undebt/tags","blobs_url":"https://api.github.com/repos/evhub/undebt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evhub/undebt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evhub/undebt/git/refs{/sha}","trees_url":"https://api.github.com/repos/evhub/undebt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evhub/undebt/statuses/{sha}","languages_url":"https://api.github.com/repos/evhub/undebt/languages","stargazers_url":"https://api.github.com/repos/evhub/undebt/stargazers","contributors_url":"https://api.github.com/repos/evhub/undebt/contributors","subscribers_url":"https://api.github.com/repos/evhub/undebt/subscribers","subscription_url":"https://api.github.com/repos/evhub/undebt/subscription","commits_url":"https://api.github.com/repos/evhub/undebt/commits{/sha}","git_commits_url":"https://api.github.com/repos/evhub/undebt/git/commits{/sha}","comments_url":"https://api.github.com/repos/evhub/undebt/comments{/number}","issue_comment_url":"https://api.github.com/repos/evhub/undebt/issues/comments{/number}","contents_url":"https://api.github.com/repos/evhub/undebt/contents/{+path}","compare_url":"https://api.github.com/repos/evhub/undebt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evhub/undebt/merges","archive_url":"https://api.github.com/repos/evhub/undebt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evhub/undebt/downloads","issues_url":"https://api.github.com/repos/evhub/undebt/issues{/number}","pulls_url":"https://api.github.com/repos/evhub/undebt/pulls{/number}","milestones_url":"https://api.github.com/repos/evhub/undebt/milestones{/number}","notifications_url":"https://api.github.com/repos/evhub/undebt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evhub/undebt/labels{/name}","releases_url":"https://api.github.com/repos/evhub/undebt/releases{/id}","deployments_url":"https://api.github.com/repos/evhub/undebt/deployments","created_at":"2016-08-23T00:50:18Z","updated_at":"2016-08-23T00:50:19Z","pushed_at":"2016-08-24T21:48:33Z","git_url":"git://github.com/evhub/undebt.git","ssh_url":"git@github.com:evhub/undebt.git","clone_url":"https://github.com/evhub/undebt.git","svn_url":"https://github.com/evhub/undebt","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"e6cfa29e78131d757df931aec9c23ef662e3e487","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":64168112,"name":"undebt","full_name":"Yelp/undebt","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/undebt","description":"A fast, straightforward, reliable tool for performing massive, automated code refactoring","fork":false,"url":"https://api.github.com/repos/Yelp/undebt","forks_url":"https://api.github.com/repos/Yelp/undebt/forks","keys_url":"https://api.github.com/repos/Yelp/undebt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/undebt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/undebt/teams","hooks_url":"https://api.github.com/repos/Yelp/undebt/hooks","issue_events_url":"https://api.github.com/repos/Yelp/undebt/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/undebt/events","assignees_url":"https://api.github.com/repos/Yelp/undebt/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/undebt/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/undebt/tags","blobs_url":"https://api.github.com/repos/Yelp/undebt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/undebt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/undebt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/undebt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/undebt/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/undebt/languages","stargazers_url":"https://api.github.com/repos/Yelp/undebt/stargazers","contributors_url":"https://api.github.com/repos/Yelp/undebt/contributors","subscribers_url":"https://api.github.com/repos/Yelp/undebt/subscribers","subscription_url":"https://api.github.com/repos/Yelp/undebt/subscription","commits_url":"https://api.github.com/repos/Yelp/undebt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/undebt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/undebt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/undebt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/undebt/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/undebt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/undebt/merges","archive_url":"https://api.github.com/repos/Yelp/undebt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/undebt/downloads","issues_url":"https://api.github.com/repos/Yelp/undebt/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/undebt/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/undebt/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/undebt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/undebt/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/undebt/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/undebt/deployments","created_at":"2016-07-25T21:08:40Z","updated_at":"2016-08-24T21:44:42Z","pushed_at":"2016-08-24T21:48:33Z","git_url":"git://github.com/Yelp/undebt.git","ssh_url":"git@github.com:Yelp/undebt.git","clone_url":"https://github.com/Yelp/undebt.git","svn_url":"https://github.com/Yelp/undebt","homepage":"","size":67,"stargazers_count":554,"watchers_count":554,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":5,"forks":19,"open_issues":5,"watchers":554,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/undebt/pulls/17"},"html":{"href":"https://github.com/Yelp/undebt/pull/17"},"issue":{"href":"https://api.github.com/repos/Yelp/undebt/issues/17"},"comments":{"href":"https://api.github.com/repos/Yelp/undebt/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/undebt/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/undebt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/undebt/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/undebt/statuses/661f7d1e7071d48d3e04f0a9eb0d13e99d146735"}}}}
{"actor":{"display_login":"smallredbean"}}