{"action":"created","comment":{"url":"https://api.github.com/repos/lenskit/lkpy/pulls/comments/229706897","pull_request_review_id":170268434,"id":229706897,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTcwNjg5Nw==","diff_hunk":"@@ -17,11 +17,12 @@\n \n _logger = logging.getLogger(__name__)\n \n-IIModel = namedtuple('IIModel', ['items', 'means', 'counts', 'sim_matrix', 'rating_matrix'])\n+IIModel = namedtuple('IIModel', ['items', 'means', 'counts', 'sim_matrix',\n+                                 'users', 'rating_matrix'])\n \n \n @njit(nogil=True)\n-def _predict(model, nitems, nrange, ratings, targets):\n+def _predict_weighted_average(model, nitems, nrange, ratings, targets):","path":"lenskit/algorithms/item_knn.py","position":11,"original_position":11,"commit_id":"ff07d98a3f1f32f36b48977a79dce28db96193cb","original_commit_id":"ff07d98a3f1f32f36b48977a79dce28db96193cb","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Function `_predict_weighted_average` has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.","created_at":"2018-10-31T14:05:31Z","updated_at":"2018-10-31T14:05:31Z","html_url":"https://github.com/lenskit/lkpy/pull/40#discussion_r229706897","pull_request_url":"https://api.github.com/repos/lenskit/lkpy/pulls/40","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/lenskit/lkpy/pulls/comments/229706897"},"html":{"href":"https://github.com/lenskit/lkpy/pull/40#discussion_r229706897"},"pull_request":{"href":"https://api.github.com/repos/lenskit/lkpy/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/lenskit/lkpy/pulls/40","id":227111865,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3MTExODY1","html_url":"https://github.com/lenskit/lkpy/pull/40","diff_url":"https://github.com/lenskit/lkpy/pull/40.diff","patch_url":"https://github.com/lenskit/lkpy/pull/40.patch","issue_url":"https://api.github.com/repos/lenskit/lkpy/issues/40","number":40,"state":"open","locked":false,"title":"Improve k-NN recommendation","user":{"login":"mdekstrand","id":186612,"node_id":"MDQ6VXNlcjE4NjYxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/186612?v=4","gravatar_id":"","url":"https://api.github.com/users/mdekstrand","html_url":"https://github.com/mdekstrand","followers_url":"https://api.github.com/users/mdekstrand/followers","following_url":"https://api.github.com/users/mdekstrand/following{/other_user}","gists_url":"https://api.github.com/users/mdekstrand/gists{/gist_id}","starred_url":"https://api.github.com/users/mdekstrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdekstrand/subscriptions","organizations_url":"https://api.github.com/users/mdekstrand/orgs","repos_url":"https://api.github.com/users/mdekstrand/repos","events_url":"https://api.github.com/users/mdekstrand/events{/privacy}","received_events_url":"https://api.github.com/users/mdekstrand/received_events","type":"User","site_admin":false},"body":"* Little utility fixes\r\n* Use matrix-vector multiply, optionally accelerated with MKL, for user-user CF","created_at":"2018-10-30T23:16:02Z","updated_at":"2018-10-31T14:05:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b122fbf343f19775877e082c070e73d7e957214b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lenskit/lkpy/pulls/40/commits","review_comments_url":"https://api.github.com/repos/lenskit/lkpy/pulls/40/comments","review_comment_url":"https://api.github.com/repos/lenskit/lkpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lenskit/lkpy/issues/40/comments","statuses_url":"https://api.github.com/repos/lenskit/lkpy/statuses/ff07d98a3f1f32f36b48977a79dce28db96193cb","head":{"label":"lenskit:feature/knn-better","ref":"feature/knn-better","sha":"ff07d98a3f1f32f36b48977a79dce28db96193cb","user":{"login":"lenskit","id":7562892,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NjI4OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7562892?v=4","gravatar_id":"","url":"https://api.github.com/users/lenskit","html_url":"https://github.com/lenskit","followers_url":"https://api.github.com/users/lenskit/followers","following_url":"https://api.github.com/users/lenskit/following{/other_user}","gists_url":"https://api.github.com/users/lenskit/gists{/gist_id}","starred_url":"https://api.github.com/users/lenskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenskit/subscriptions","organizations_url":"https://api.github.com/users/lenskit/orgs","repos_url":"https://api.github.com/users/lenskit/repos","events_url":"https://api.github.com/users/lenskit/events{/privacy}","received_events_url":"https://api.github.com/users/lenskit/received_events","type":"Organization","site_admin":false},"repo":{"id":136665965,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY2NjU5NjU=","name":"lkpy","full_name":"lenskit/lkpy","private":false,"owner":{"login":"lenskit","id":7562892,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NjI4OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7562892?v=4","gravatar_id":"","url":"https://api.github.com/users/lenskit","html_url":"https://github.com/lenskit","followers_url":"https://api.github.com/users/lenskit/followers","following_url":"https://api.github.com/users/lenskit/following{/other_user}","gists_url":"https://api.github.com/users/lenskit/gists{/gist_id}","starred_url":"https://api.github.com/users/lenskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenskit/subscriptions","organizations_url":"https://api.github.com/users/lenskit/orgs","repos_url":"https://api.github.com/users/lenskit/repos","events_url":"https://api.github.com/users/lenskit/events{/privacy}","received_events_url":"https://api.github.com/users/lenskit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lenskit/lkpy","description":"Some Python recommendation tools","fork":false,"url":"https://api.github.com/repos/lenskit/lkpy","forks_url":"https://api.github.com/repos/lenskit/lkpy/forks","keys_url":"https://api.github.com/repos/lenskit/lkpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lenskit/lkpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lenskit/lkpy/teams","hooks_url":"https://api.github.com/repos/lenskit/lkpy/hooks","issue_events_url":"https://api.github.com/repos/lenskit/lkpy/issues/events{/number}","events_url":"https://api.github.com/repos/lenskit/lkpy/events","assignees_url":"https://api.github.com/repos/lenskit/lkpy/assignees{/user}","branches_url":"https://api.github.com/repos/lenskit/lkpy/branches{/branch}","tags_url":"https://api.github.com/repos/lenskit/lkpy/tags","blobs_url":"https://api.github.com/repos/lenskit/lkpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lenskit/lkpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lenskit/lkpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/lenskit/lkpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lenskit/lkpy/statuses/{sha}","languages_url":"https://api.github.com/repos/lenskit/lkpy/languages","stargazers_url":"https://api.github.com/repos/lenskit/lkpy/stargazers","contributors_url":"https://api.github.com/repos/lenskit/lkpy/contributors","subscribers_url":"https://api.github.com/repos/lenskit/lkpy/subscribers","subscription_url":"https://api.github.com/repos/lenskit/lkpy/subscription","commits_url":"https://api.github.com/repos/lenskit/lkpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/lenskit/lkpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/lenskit/lkpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/lenskit/lkpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/lenskit/lkpy/contents/{+path}","compare_url":"https://api.github.com/repos/lenskit/lkpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lenskit/lkpy/merges","archive_url":"https://api.github.com/repos/lenskit/lkpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lenskit/lkpy/downloads","issues_url":"https://api.github.com/repos/lenskit/lkpy/issues{/number}","pulls_url":"https://api.github.com/repos/lenskit/lkpy/pulls{/number}","milestones_url":"https://api.github.com/repos/lenskit/lkpy/milestones{/number}","notifications_url":"https://api.github.com/repos/lenskit/lkpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lenskit/lkpy/labels{/name}","releases_url":"https://api.github.com/repos/lenskit/lkpy/releases{/id}","deployments_url":"https://api.github.com/repos/lenskit/lkpy/deployments","created_at":"2018-06-08T21:05:10Z","updated_at":"2018-10-30T22:40:36Z","pushed_at":"2018-10-31T14:03:35Z","git_url":"git://github.com/lenskit/lkpy.git","ssh_url":"git@github.com:lenskit/lkpy.git","clone_url":"https://github.com/lenskit/lkpy.git","svn_url":"https://github.com/lenskit/lkpy","homepage":"https://lkpy.lenskit.org","size":1474,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":6,"watchers":12,"default_branch":"master"}},"base":{"label":"lenskit:master","ref":"master","sha":"a394ac9d61d0059fa387f5aae8e7aa0f4600dc75","user":{"login":"lenskit","id":7562892,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NjI4OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7562892?v=4","gravatar_id":"","url":"https://api.github.com/users/lenskit","html_url":"https://github.com/lenskit","followers_url":"https://api.github.com/users/lenskit/followers","following_url":"https://api.github.com/users/lenskit/following{/other_user}","gists_url":"https://api.github.com/users/lenskit/gists{/gist_id}","starred_url":"https://api.github.com/users/lenskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenskit/subscriptions","organizations_url":"https://api.github.com/users/lenskit/orgs","repos_url":"https://api.github.com/users/lenskit/repos","events_url":"https://api.github.com/users/lenskit/events{/privacy}","received_events_url":"https://api.github.com/users/lenskit/received_events","type":"Organization","site_admin":false},"repo":{"id":136665965,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY2NjU5NjU=","name":"lkpy","full_name":"lenskit/lkpy","private":false,"owner":{"login":"lenskit","id":7562892,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NjI4OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7562892?v=4","gravatar_id":"","url":"https://api.github.com/users/lenskit","html_url":"https://github.com/lenskit","followers_url":"https://api.github.com/users/lenskit/followers","following_url":"https://api.github.com/users/lenskit/following{/other_user}","gists_url":"https://api.github.com/users/lenskit/gists{/gist_id}","starred_url":"https://api.github.com/users/lenskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenskit/subscriptions","organizations_url":"https://api.github.com/users/lenskit/orgs","repos_url":"https://api.github.com/users/lenskit/repos","events_url":"https://api.github.com/users/lenskit/events{/privacy}","received_events_url":"https://api.github.com/users/lenskit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lenskit/lkpy","description":"Some Python recommendation tools","fork":false,"url":"https://api.github.com/repos/lenskit/lkpy","forks_url":"https://api.github.com/repos/lenskit/lkpy/forks","keys_url":"https://api.github.com/repos/lenskit/lkpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lenskit/lkpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lenskit/lkpy/teams","hooks_url":"https://api.github.com/repos/lenskit/lkpy/hooks","issue_events_url":"https://api.github.com/repos/lenskit/lkpy/issues/events{/number}","events_url":"https://api.github.com/repos/lenskit/lkpy/events","assignees_url":"https://api.github.com/repos/lenskit/lkpy/assignees{/user}","branches_url":"https://api.github.com/repos/lenskit/lkpy/branches{/branch}","tags_url":"https://api.github.com/repos/lenskit/lkpy/tags","blobs_url":"https://api.github.com/repos/lenskit/lkpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lenskit/lkpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lenskit/lkpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/lenskit/lkpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lenskit/lkpy/statuses/{sha}","languages_url":"https://api.github.com/repos/lenskit/lkpy/languages","stargazers_url":"https://api.github.com/repos/lenskit/lkpy/stargazers","contributors_url":"https://api.github.com/repos/lenskit/lkpy/contributors","subscribers_url":"https://api.github.com/repos/lenskit/lkpy/subscribers","subscription_url":"https://api.github.com/repos/lenskit/lkpy/subscription","commits_url":"https://api.github.com/repos/lenskit/lkpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/lenskit/lkpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/lenskit/lkpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/lenskit/lkpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/lenskit/lkpy/contents/{+path}","compare_url":"https://api.github.com/repos/lenskit/lkpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lenskit/lkpy/merges","archive_url":"https://api.github.com/repos/lenskit/lkpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lenskit/lkpy/downloads","issues_url":"https://api.github.com/repos/lenskit/lkpy/issues{/number}","pulls_url":"https://api.github.com/repos/lenskit/lkpy/pulls{/number}","milestones_url":"https://api.github.com/repos/lenskit/lkpy/milestones{/number}","notifications_url":"https://api.github.com/repos/lenskit/lkpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lenskit/lkpy/labels{/name}","releases_url":"https://api.github.com/repos/lenskit/lkpy/releases{/id}","deployments_url":"https://api.github.com/repos/lenskit/lkpy/deployments","created_at":"2018-06-08T21:05:10Z","updated_at":"2018-10-30T22:40:36Z","pushed_at":"2018-10-31T14:03:35Z","git_url":"git://github.com/lenskit/lkpy.git","ssh_url":"git@github.com:lenskit/lkpy.git","clone_url":"https://github.com/lenskit/lkpy.git","svn_url":"https://github.com/lenskit/lkpy","homepage":"https://lkpy.lenskit.org","size":1474,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":6,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lenskit/lkpy/pulls/40"},"html":{"href":"https://github.com/lenskit/lkpy/pull/40"},"issue":{"href":"https://api.github.com/repos/lenskit/lkpy/issues/40"},"comments":{"href":"https://api.github.com/repos/lenskit/lkpy/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/lenskit/lkpy/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/lenskit/lkpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lenskit/lkpy/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/lenskit/lkpy/statuses/ff07d98a3f1f32f36b48977a79dce28db96193cb"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codeclimate"}}