{"action":"created","comment":{"url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments/29559231","id":29559231,"diff_hunk":"@@ -72,41 +135,153 @@ def process_chars(revision_text):\n \n chars = Feature(\"revision.chars\", process_chars,\n                 returns=int, depends_on=[revision.text])\n+\"\"\"\n+Represents number of characters in the revsion.\n+\n+:Returns:\n+    int\n \n+:Example:\n+    ..code-block:: python\n+\n+        >>> from revscoring.features import revision\n+        >>> list(extractor.extract(655097130, [revision.chars]))\n+        [24016]\n+\"\"\"\n def process_markup_chars(revision_text):\n     return sum(len(m.group(0)) for m in MARKUP_RE.finditer(revision_text))\n \n markup_chars = Feature(\"revision.markup_chars\", process_markup_chars,\n                        returns=int, depends_on=[revision.text])\n+\"\"\"\n+Represents number of markup characters in the revsion.\n+\n+:Returns:\n+    int\n+\n+:Example:\n+    ..code-block:: python\n+\n+        >>> from revscoring.features import revision\n+        >>> list(extractor.extract(655097130, [revision.markup_chars]))\n+        [704]\n+\"\"\"\n \n proportion_of_markup_chars = markup_chars / modifiers.max(chars, 1)\n+\"\"\"\n+Represents ratio of markup characters compared to all characters in revsion.\n \n+:Returns:\n+    float\n+\n+:Example:\n+    ..code-block:: python\n+\n+        >>> from revscoring.features import revision\n+        >>> list(extractor.extract(655097130, [revision.proportion_of_markup_chars]))\n+        [0.029313790806129246]\n+\"\"\"\n def process_numeric_chars(revision_text):\n     return sum(len(m.group(0)) for m in NUMERIC_RE.finditer(revision_text))\n \n numeric_chars = Feature(\"revision.numeric_chars\", process_numeric_chars,\n                         returns=int, depends_on=[revision.text])\n+\"\"\"\n+Represents number of numeric characters in the revsion.\n+\n+:Returns:\n+    int\n+\n+:Example:\n+    ..code-block:: python\n+\n+        >>> from revscoring.features import revision\n+        >>> list(extractor.extract(655097130, [revision.numeric_chars]))\n+        [203]\n+\"\"\"\n \n proportion_of_numeric_chars = numeric_chars / modifiers.max(chars, 1)\n+\"\"\"\n+Represents ratio of numeric characters compared to all characters in revsion.","path":"revscoring/features/revision.py","position":171,"original_position":171,"commit_id":"625f166a10dd7f7543a260fa56a0b9abf19ad917","original_commit_id":"625f166a10dd7f7543a260fa56a0b9abf19ad917","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"body":"\"revision\"  -- I'll stop noting this now.  Seems like a Ctrl-F \"revsion\" is in order. ","created_at":"2015-05-03T19:32:17Z","updated_at":"2015-05-03T19:32:17Z","html_url":"https://github.com/halfak/Revision-Scoring/pull/95#discussion_r29559231","pull_request_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments/29559231"},"html":{"href":"https://github.com/halfak/Revision-Scoring/pull/95#discussion_r29559231"},"pull_request":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95","id":34594905,"html_url":"https://github.com/halfak/Revision-Scoring/pull/95","diff_url":"https://github.com/halfak/Revision-Scoring/pull/95.diff","patch_url":"https://github.com/halfak/Revision-Scoring/pull/95.patch","issue_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/95","number":95,"state":"open","locked":false,"title":"Add docs","user":{"login":"Ladsgroup","id":5351225,"avatar_url":"https://avatars.githubusercontent.com/u/5351225?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladsgroup","html_url":"https://github.com/Ladsgroup","followers_url":"https://api.github.com/users/Ladsgroup/followers","following_url":"https://api.github.com/users/Ladsgroup/following{/other_user}","gists_url":"https://api.github.com/users/Ladsgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladsgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladsgroup/subscriptions","organizations_url":"https://api.github.com/users/Ladsgroup/orgs","repos_url":"https://api.github.com/users/Ladsgroup/repos","events_url":"https://api.github.com/users/Ladsgroup/events{/privacy}","received_events_url":"https://api.github.com/users/Ladsgroup/received_events","type":"User","site_admin":false},"body":"Part II","created_at":"2015-05-03T01:41:45Z","updated_at":"2015-05-03T19:32:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc8eef05e22075ec0e9b0fc77f428a0e53f165a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95/commits","review_comments_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95/comments","review_comment_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/95/comments","statuses_url":"https://api.github.com/repos/halfak/Revision-Scoring/statuses/625f166a10dd7f7543a260fa56a0b9abf19ad917","head":{"label":"Ladsgroup:master","ref":"master","sha":"625f166a10dd7f7543a260fa56a0b9abf19ad917","user":{"login":"Ladsgroup","id":5351225,"avatar_url":"https://avatars.githubusercontent.com/u/5351225?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladsgroup","html_url":"https://github.com/Ladsgroup","followers_url":"https://api.github.com/users/Ladsgroup/followers","following_url":"https://api.github.com/users/Ladsgroup/following{/other_user}","gists_url":"https://api.github.com/users/Ladsgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladsgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladsgroup/subscriptions","organizations_url":"https://api.github.com/users/Ladsgroup/orgs","repos_url":"https://api.github.com/users/Ladsgroup/repos","events_url":"https://api.github.com/users/Ladsgroup/events{/privacy}","received_events_url":"https://api.github.com/users/Ladsgroup/received_events","type":"User","site_admin":false},"repo":{"id":34661186,"name":"Revision-Scoring","full_name":"Ladsgroup/Revision-Scoring","owner":{"login":"Ladsgroup","id":5351225,"avatar_url":"https://avatars.githubusercontent.com/u/5351225?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladsgroup","html_url":"https://github.com/Ladsgroup","followers_url":"https://api.github.com/users/Ladsgroup/followers","following_url":"https://api.github.com/users/Ladsgroup/following{/other_user}","gists_url":"https://api.github.com/users/Ladsgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladsgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladsgroup/subscriptions","organizations_url":"https://api.github.com/users/Ladsgroup/orgs","repos_url":"https://api.github.com/users/Ladsgroup/repos","events_url":"https://api.github.com/users/Ladsgroup/events{/privacy}","received_events_url":"https://api.github.com/users/Ladsgroup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ladsgroup/Revision-Scoring","description":"","fork":true,"url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring","forks_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/forks","keys_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/teams","hooks_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/hooks","issue_events_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/issues/events{/number}","events_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/events","assignees_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/assignees{/user}","branches_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/branches{/branch}","tags_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/tags","blobs_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/statuses/{sha}","languages_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/languages","stargazers_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/stargazers","contributors_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/contributors","subscribers_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/subscribers","subscription_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/subscription","commits_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/contents/{+path}","compare_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/merges","archive_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/downloads","issues_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/issues{/number}","pulls_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/pulls{/number}","milestones_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/milestones{/number}","notifications_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/labels{/name}","releases_url":"https://api.github.com/repos/Ladsgroup/Revision-Scoring/releases{/id}","created_at":"2015-04-27T10:49:35Z","updated_at":"2015-05-03T01:22:33Z","pushed_at":"2015-05-03T01:22:33Z","git_url":"git://github.com/Ladsgroup/Revision-Scoring.git","ssh_url":"git@github.com:Ladsgroup/Revision-Scoring.git","clone_url":"https://github.com/Ladsgroup/Revision-Scoring.git","svn_url":"https://github.com/Ladsgroup/Revision-Scoring","homepage":null,"size":431,"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":"halfak:master","ref":"master","sha":"cea70303f3907d151e1395697f0e6660c3fb68cf","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"repo":{"id":23771350,"name":"Revision-Scoring","full_name":"halfak/Revision-Scoring","owner":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfak/Revision-Scoring","description":"","fork":false,"url":"https://api.github.com/repos/halfak/Revision-Scoring","forks_url":"https://api.github.com/repos/halfak/Revision-Scoring/forks","keys_url":"https://api.github.com/repos/halfak/Revision-Scoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfak/Revision-Scoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfak/Revision-Scoring/teams","hooks_url":"https://api.github.com/repos/halfak/Revision-Scoring/hooks","issue_events_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/events{/number}","events_url":"https://api.github.com/repos/halfak/Revision-Scoring/events","assignees_url":"https://api.github.com/repos/halfak/Revision-Scoring/assignees{/user}","branches_url":"https://api.github.com/repos/halfak/Revision-Scoring/branches{/branch}","tags_url":"https://api.github.com/repos/halfak/Revision-Scoring/tags","blobs_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfak/Revision-Scoring/statuses/{sha}","languages_url":"https://api.github.com/repos/halfak/Revision-Scoring/languages","stargazers_url":"https://api.github.com/repos/halfak/Revision-Scoring/stargazers","contributors_url":"https://api.github.com/repos/halfak/Revision-Scoring/contributors","subscribers_url":"https://api.github.com/repos/halfak/Revision-Scoring/subscribers","subscription_url":"https://api.github.com/repos/halfak/Revision-Scoring/subscription","commits_url":"https://api.github.com/repos/halfak/Revision-Scoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfak/Revision-Scoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/halfak/Revision-Scoring/contents/{+path}","compare_url":"https://api.github.com/repos/halfak/Revision-Scoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfak/Revision-Scoring/merges","archive_url":"https://api.github.com/repos/halfak/Revision-Scoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfak/Revision-Scoring/downloads","issues_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues{/number}","pulls_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls{/number}","milestones_url":"https://api.github.com/repos/halfak/Revision-Scoring/milestones{/number}","notifications_url":"https://api.github.com/repos/halfak/Revision-Scoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfak/Revision-Scoring/labels{/name}","releases_url":"https://api.github.com/repos/halfak/Revision-Scoring/releases{/id}","created_at":"2014-09-07T21:20:37Z","updated_at":"2015-04-30T19:51:51Z","pushed_at":"2015-05-03T01:41:45Z","git_url":"git://github.com/halfak/Revision-Scoring.git","ssh_url":"git@github.com:halfak/Revision-Scoring.git","clone_url":"https://github.com/halfak/Revision-Scoring.git","svn_url":"https://github.com/halfak/Revision-Scoring","homepage":null,"size":2016,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95"},"html":{"href":"https://github.com/halfak/Revision-Scoring/pull/95"},"issue":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/issues/95"},"comments":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/statuses/625f166a10dd7f7543a260fa56a0b9abf19ad917"}}}}