{"action":"closed","number":63,"pull_request":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/63","id":47482120,"html_url":"https://github.com/gunthercox/ChatterBot/pull/63","diff_url":"https://github.com/gunthercox/ChatterBot/pull/63.diff","patch_url":"https://github.com/gunthercox/ChatterBot/pull/63.patch","issue_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/63","number":63,"state":"closed","locked":false,"title":"Response list now stores occurrence count","user":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"body":"This makes changes that will make the process of generating responses to known input more accurate.\r\n\r\nBefore this pull request, each statement object stored a count (`occurrences`), representing the number of times the statement had occurred, and a list of responses (`in_response_to`), representing the list of other statements that the current statement has been issued in response to.\r\n\r\nThis pull request removes the occurrence count from the statement object and introduces a response object. Each response object holds the text of the response statement and the count of the number of times the current statement has been used to respond to it.\r\n\r\nBy making these changes a fundamental issue with the previous algorithm is solved. The problem with using the weighting of occurrence count to select responses is that some statements may tend to occur frequently, but that does not necessarily imply an equal level of frequency toward all possible responses.\r\n\r\nCloses #46","created_at":"2015-10-13T01:30:22Z","updated_at":"2015-10-17T19:39:49Z","closed_at":"2015-10-17T19:39:49Z","merged_at":"2015-10-17T19:39:49Z","merge_commit_sha":"f98bf0d881d7298877062ef19dc3546e6da496fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/63/commits","review_comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/63/comments","review_comment_url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/63/comments","statuses_url":"https://api.github.com/repos/gunthercox/ChatterBot/statuses/1389845e49ef3fce7c550f7e9f3d22c462951bf4","head":{"label":"gunthercox:response_structure","ref":"response_structure","sha":"1389845e49ef3fce7c550f7e9f3d22c462951bf4","user":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"repo":{"id":24561828,"name":"ChatterBot","full_name":"gunthercox/ChatterBot","owner":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gunthercox/ChatterBot","description":"ChatterBot is a machine learning, conversational dialog engine.","fork":false,"url":"https://api.github.com/repos/gunthercox/ChatterBot","forks_url":"https://api.github.com/repos/gunthercox/ChatterBot/forks","keys_url":"https://api.github.com/repos/gunthercox/ChatterBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gunthercox/ChatterBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gunthercox/ChatterBot/teams","hooks_url":"https://api.github.com/repos/gunthercox/ChatterBot/hooks","issue_events_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/events{/number}","events_url":"https://api.github.com/repos/gunthercox/ChatterBot/events","assignees_url":"https://api.github.com/repos/gunthercox/ChatterBot/assignees{/user}","branches_url":"https://api.github.com/repos/gunthercox/ChatterBot/branches{/branch}","tags_url":"https://api.github.com/repos/gunthercox/ChatterBot/tags","blobs_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gunthercox/ChatterBot/statuses/{sha}","languages_url":"https://api.github.com/repos/gunthercox/ChatterBot/languages","stargazers_url":"https://api.github.com/repos/gunthercox/ChatterBot/stargazers","contributors_url":"https://api.github.com/repos/gunthercox/ChatterBot/contributors","subscribers_url":"https://api.github.com/repos/gunthercox/ChatterBot/subscribers","subscription_url":"https://api.github.com/repos/gunthercox/ChatterBot/subscription","commits_url":"https://api.github.com/repos/gunthercox/ChatterBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/gunthercox/ChatterBot/contents/{+path}","compare_url":"https://api.github.com/repos/gunthercox/ChatterBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gunthercox/ChatterBot/merges","archive_url":"https://api.github.com/repos/gunthercox/ChatterBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gunthercox/ChatterBot/downloads","issues_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues{/number}","pulls_url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls{/number}","milestones_url":"https://api.github.com/repos/gunthercox/ChatterBot/milestones{/number}","notifications_url":"https://api.github.com/repos/gunthercox/ChatterBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gunthercox/ChatterBot/labels{/name}","releases_url":"https://api.github.com/repos/gunthercox/ChatterBot/releases{/id}","created_at":"2014-09-28T14:49:00Z","updated_at":"2015-10-17T12:42:09Z","pushed_at":"2015-10-17T19:39:49Z","git_url":"git://github.com/gunthercox/ChatterBot.git","ssh_url":"git@github.com:gunthercox/ChatterBot.git","clone_url":"https://github.com/gunthercox/ChatterBot.git","svn_url":"https://github.com/gunthercox/ChatterBot","homepage":"","size":2756,"stargazers_count":228,"watchers_count":228,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":11,"forks":62,"open_issues":11,"watchers":228,"default_branch":"master"}},"base":{"label":"gunthercox:master","ref":"master","sha":"61dfdac4714846d4f1a7d843bec70c77c7106630","user":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"repo":{"id":24561828,"name":"ChatterBot","full_name":"gunthercox/ChatterBot","owner":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gunthercox/ChatterBot","description":"ChatterBot is a machine learning, conversational dialog engine.","fork":false,"url":"https://api.github.com/repos/gunthercox/ChatterBot","forks_url":"https://api.github.com/repos/gunthercox/ChatterBot/forks","keys_url":"https://api.github.com/repos/gunthercox/ChatterBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gunthercox/ChatterBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gunthercox/ChatterBot/teams","hooks_url":"https://api.github.com/repos/gunthercox/ChatterBot/hooks","issue_events_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/events{/number}","events_url":"https://api.github.com/repos/gunthercox/ChatterBot/events","assignees_url":"https://api.github.com/repos/gunthercox/ChatterBot/assignees{/user}","branches_url":"https://api.github.com/repos/gunthercox/ChatterBot/branches{/branch}","tags_url":"https://api.github.com/repos/gunthercox/ChatterBot/tags","blobs_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gunthercox/ChatterBot/statuses/{sha}","languages_url":"https://api.github.com/repos/gunthercox/ChatterBot/languages","stargazers_url":"https://api.github.com/repos/gunthercox/ChatterBot/stargazers","contributors_url":"https://api.github.com/repos/gunthercox/ChatterBot/contributors","subscribers_url":"https://api.github.com/repos/gunthercox/ChatterBot/subscribers","subscription_url":"https://api.github.com/repos/gunthercox/ChatterBot/subscription","commits_url":"https://api.github.com/repos/gunthercox/ChatterBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/gunthercox/ChatterBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/gunthercox/ChatterBot/contents/{+path}","compare_url":"https://api.github.com/repos/gunthercox/ChatterBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gunthercox/ChatterBot/merges","archive_url":"https://api.github.com/repos/gunthercox/ChatterBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gunthercox/ChatterBot/downloads","issues_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues{/number}","pulls_url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls{/number}","milestones_url":"https://api.github.com/repos/gunthercox/ChatterBot/milestones{/number}","notifications_url":"https://api.github.com/repos/gunthercox/ChatterBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gunthercox/ChatterBot/labels{/name}","releases_url":"https://api.github.com/repos/gunthercox/ChatterBot/releases{/id}","created_at":"2014-09-28T14:49:00Z","updated_at":"2015-10-17T12:42:09Z","pushed_at":"2015-10-17T19:39:49Z","git_url":"git://github.com/gunthercox/ChatterBot.git","ssh_url":"git@github.com:gunthercox/ChatterBot.git","clone_url":"https://github.com/gunthercox/ChatterBot.git","svn_url":"https://github.com/gunthercox/ChatterBot","homepage":"","size":2756,"stargazers_count":228,"watchers_count":228,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":11,"forks":62,"open_issues":11,"watchers":228,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/63"},"html":{"href":"https://github.com/gunthercox/ChatterBot/pull/63"},"issue":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/issues/63"},"comments":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/gunthercox/ChatterBot/statuses/1389845e49ef3fce7c550f7e9f3d22c462951bf4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":10,"additions":459,"deletions":310,"changed_files":21}}