{"action":"created","comment":{"url":"https://api.github.com/repos/Connexions/webview/pulls/comments/66649154","id":66649154,"diff_hunk":"@@ -0,0 +1,31 @@\n+define (require) ->\n+  Backbone = require('backbone')\n+  settings = require('settings')\n+\n+  archiveport = if settings.cnxarchive.port then \":#{settings.cnxarchive.port}\" else ''\n+  archive = \"#{location.protocol}//#{settings.cnxarchive.host}#{archiveport}\"\n+\n+  return new class Language extends Backbone.Collection\n+    url: \"#{archive}/extras\"\n+\n+    parse: (response) ->\n+      languages = response.languages_and_count\n+      allLanguages = settings.languages\n+      availableLanguages = {}\n+      codes = []\n+      _.each languages, (language) ->\n+        lang =\n+          code: language[0].substring(0, 2)","path":"src/scripts/collections/languages.coffee","position":18,"original_position":18,"commit_id":"efb3a130d3acf70d25f91a24195d2a804e44d177","original_commit_id":"efb3a130d3acf70d25f91a24195d2a804e44d177","user":{"login":"RoyEJohnson","id":7315241,"avatar_url":"https://avatars.githubusercontent.com/u/7315241?v=3","gravatar_id":"","url":"https://api.github.com/users/RoyEJohnson","html_url":"https://github.com/RoyEJohnson","followers_url":"https://api.github.com/users/RoyEJohnson/followers","following_url":"https://api.github.com/users/RoyEJohnson/following{/other_user}","gists_url":"https://api.github.com/users/RoyEJohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/RoyEJohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoyEJohnson/subscriptions","organizations_url":"https://api.github.com/users/RoyEJohnson/orgs","repos_url":"https://api.github.com/users/RoyEJohnson/repos","events_url":"https://api.github.com/users/RoyEJohnson/events{/privacy}","received_events_url":"https://api.github.com/users/RoyEJohnson/received_events","type":"User","site_admin":false},"body":"In general, avoid repeating expressions. Assign to a variable.","created_at":"2016-06-10T17:17:54Z","updated_at":"2016-06-10T17:17:54Z","html_url":"https://github.com/Connexions/webview/pull/1411#discussion_r66649154","pull_request_url":"https://api.github.com/repos/Connexions/webview/pulls/1411","_links":{"self":{"href":"https://api.github.com/repos/Connexions/webview/pulls/comments/66649154"},"html":{"href":"https://github.com/Connexions/webview/pull/1411#discussion_r66649154"},"pull_request":{"href":"https://api.github.com/repos/Connexions/webview/pulls/1411"}}},"pull_request":{"url":"https://api.github.com/repos/Connexions/webview/pulls/1411","id":72774519,"html_url":"https://github.com/Connexions/webview/pull/1411","diff_url":"https://github.com/Connexions/webview/pull/1411.diff","patch_url":"https://github.com/Connexions/webview/pull/1411.patch","issue_url":"https://api.github.com/repos/Connexions/webview/issues/1411","number":1411,"state":"open","locked":false,"title":"Fix/filter languages","user":{"login":"Mayu-TM","id":19391145,"avatar_url":"https://avatars.githubusercontent.com/u/19391145?v=3","gravatar_id":"","url":"https://api.github.com/users/Mayu-TM","html_url":"https://github.com/Mayu-TM","followers_url":"https://api.github.com/users/Mayu-TM/followers","following_url":"https://api.github.com/users/Mayu-TM/following{/other_user}","gists_url":"https://api.github.com/users/Mayu-TM/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayu-TM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayu-TM/subscriptions","organizations_url":"https://api.github.com/users/Mayu-TM/orgs","repos_url":"https://api.github.com/users/Mayu-TM/repos","events_url":"https://api.github.com/users/Mayu-TM/events{/privacy}","received_events_url":"https://api.github.com/users/Mayu-TM/received_events","type":"User","site_admin":false},"body":"Filters the languages on the advanced search options so that only the languages in which we have content is displayed. The languages are sorted in alphabetical order. ","created_at":"2016-06-06T20:43:28Z","updated_at":"2016-06-10T17:17:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44919842ac279556fdaa953af93ea668b4eaaa96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Connexions/webview/pulls/1411/commits","review_comments_url":"https://api.github.com/repos/Connexions/webview/pulls/1411/comments","review_comment_url":"https://api.github.com/repos/Connexions/webview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Connexions/webview/issues/1411/comments","statuses_url":"https://api.github.com/repos/Connexions/webview/statuses/efb3a130d3acf70d25f91a24195d2a804e44d177","head":{"label":"Connexions:fix/filter-languages","ref":"fix/filter-languages","sha":"efb3a130d3acf70d25f91a24195d2a804e44d177","user":{"login":"Connexions","id":772455,"avatar_url":"https://avatars.githubusercontent.com/u/772455?v=3","gravatar_id":"","url":"https://api.github.com/users/Connexions","html_url":"https://github.com/Connexions","followers_url":"https://api.github.com/users/Connexions/followers","following_url":"https://api.github.com/users/Connexions/following{/other_user}","gists_url":"https://api.github.com/users/Connexions/gists{/gist_id}","starred_url":"https://api.github.com/users/Connexions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Connexions/subscriptions","organizations_url":"https://api.github.com/users/Connexions/orgs","repos_url":"https://api.github.com/users/Connexions/repos","events_url":"https://api.github.com/users/Connexions/events{/privacy}","received_events_url":"https://api.github.com/users/Connexions/received_events","type":"Organization","site_admin":false},"repo":{"id":11369724,"name":"webview","full_name":"Connexions/webview","owner":{"login":"Connexions","id":772455,"avatar_url":"https://avatars.githubusercontent.com/u/772455?v=3","gravatar_id":"","url":"https://api.github.com/users/Connexions","html_url":"https://github.com/Connexions","followers_url":"https://api.github.com/users/Connexions/followers","following_url":"https://api.github.com/users/Connexions/following{/other_user}","gists_url":"https://api.github.com/users/Connexions/gists{/gist_id}","starred_url":"https://api.github.com/users/Connexions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Connexions/subscriptions","organizations_url":"https://api.github.com/users/Connexions/orgs","repos_url":"https://api.github.com/users/Connexions/repos","events_url":"https://api.github.com/users/Connexions/events{/privacy}","received_events_url":"https://api.github.com/users/Connexions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Connexions/webview","description":"Connexions web site","fork":false,"url":"https://api.github.com/repos/Connexions/webview","forks_url":"https://api.github.com/repos/Connexions/webview/forks","keys_url":"https://api.github.com/repos/Connexions/webview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Connexions/webview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Connexions/webview/teams","hooks_url":"https://api.github.com/repos/Connexions/webview/hooks","issue_events_url":"https://api.github.com/repos/Connexions/webview/issues/events{/number}","events_url":"https://api.github.com/repos/Connexions/webview/events","assignees_url":"https://api.github.com/repos/Connexions/webview/assignees{/user}","branches_url":"https://api.github.com/repos/Connexions/webview/branches{/branch}","tags_url":"https://api.github.com/repos/Connexions/webview/tags","blobs_url":"https://api.github.com/repos/Connexions/webview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Connexions/webview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Connexions/webview/git/refs{/sha}","trees_url":"https://api.github.com/repos/Connexions/webview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Connexions/webview/statuses/{sha}","languages_url":"https://api.github.com/repos/Connexions/webview/languages","stargazers_url":"https://api.github.com/repos/Connexions/webview/stargazers","contributors_url":"https://api.github.com/repos/Connexions/webview/contributors","subscribers_url":"https://api.github.com/repos/Connexions/webview/subscribers","subscription_url":"https://api.github.com/repos/Connexions/webview/subscription","commits_url":"https://api.github.com/repos/Connexions/webview/commits{/sha}","git_commits_url":"https://api.github.com/repos/Connexions/webview/git/commits{/sha}","comments_url":"https://api.github.com/repos/Connexions/webview/comments{/number}","issue_comment_url":"https://api.github.com/repos/Connexions/webview/issues/comments{/number}","contents_url":"https://api.github.com/repos/Connexions/webview/contents/{+path}","compare_url":"https://api.github.com/repos/Connexions/webview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Connexions/webview/merges","archive_url":"https://api.github.com/repos/Connexions/webview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Connexions/webview/downloads","issues_url":"https://api.github.com/repos/Connexions/webview/issues{/number}","pulls_url":"https://api.github.com/repos/Connexions/webview/pulls{/number}","milestones_url":"https://api.github.com/repos/Connexions/webview/milestones{/number}","notifications_url":"https://api.github.com/repos/Connexions/webview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Connexions/webview/labels{/name}","releases_url":"https://api.github.com/repos/Connexions/webview/releases{/id}","deployments_url":"https://api.github.com/repos/Connexions/webview/deployments","created_at":"2013-07-12T13:50:03Z","updated_at":"2016-04-09T11:24:06Z","pushed_at":"2016-06-10T16:54:53Z","git_url":"git://github.com/Connexions/webview.git","ssh_url":"git@github.com:Connexions/webview.git","clone_url":"https://github.com/Connexions/webview.git","svn_url":"https://github.com/Connexions/webview","homepage":"http://cnx.org","size":7641,"stargazers_count":7,"watchers_count":7,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":91,"forks":7,"open_issues":91,"watchers":7,"default_branch":"master"}},"base":{"label":"Connexions:master","ref":"master","sha":"bda0050b1968afbcc15fe282496feb6b23f95ba6","user":{"login":"Connexions","id":772455,"avatar_url":"https://avatars.githubusercontent.com/u/772455?v=3","gravatar_id":"","url":"https://api.github.com/users/Connexions","html_url":"https://github.com/Connexions","followers_url":"https://api.github.com/users/Connexions/followers","following_url":"https://api.github.com/users/Connexions/following{/other_user}","gists_url":"https://api.github.com/users/Connexions/gists{/gist_id}","starred_url":"https://api.github.com/users/Connexions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Connexions/subscriptions","organizations_url":"https://api.github.com/users/Connexions/orgs","repos_url":"https://api.github.com/users/Connexions/repos","events_url":"https://api.github.com/users/Connexions/events{/privacy}","received_events_url":"https://api.github.com/users/Connexions/received_events","type":"Organization","site_admin":false},"repo":{"id":11369724,"name":"webview","full_name":"Connexions/webview","owner":{"login":"Connexions","id":772455,"avatar_url":"https://avatars.githubusercontent.com/u/772455?v=3","gravatar_id":"","url":"https://api.github.com/users/Connexions","html_url":"https://github.com/Connexions","followers_url":"https://api.github.com/users/Connexions/followers","following_url":"https://api.github.com/users/Connexions/following{/other_user}","gists_url":"https://api.github.com/users/Connexions/gists{/gist_id}","starred_url":"https://api.github.com/users/Connexions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Connexions/subscriptions","organizations_url":"https://api.github.com/users/Connexions/orgs","repos_url":"https://api.github.com/users/Connexions/repos","events_url":"https://api.github.com/users/Connexions/events{/privacy}","received_events_url":"https://api.github.com/users/Connexions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Connexions/webview","description":"Connexions web site","fork":false,"url":"https://api.github.com/repos/Connexions/webview","forks_url":"https://api.github.com/repos/Connexions/webview/forks","keys_url":"https://api.github.com/repos/Connexions/webview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Connexions/webview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Connexions/webview/teams","hooks_url":"https://api.github.com/repos/Connexions/webview/hooks","issue_events_url":"https://api.github.com/repos/Connexions/webview/issues/events{/number}","events_url":"https://api.github.com/repos/Connexions/webview/events","assignees_url":"https://api.github.com/repos/Connexions/webview/assignees{/user}","branches_url":"https://api.github.com/repos/Connexions/webview/branches{/branch}","tags_url":"https://api.github.com/repos/Connexions/webview/tags","blobs_url":"https://api.github.com/repos/Connexions/webview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Connexions/webview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Connexions/webview/git/refs{/sha}","trees_url":"https://api.github.com/repos/Connexions/webview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Connexions/webview/statuses/{sha}","languages_url":"https://api.github.com/repos/Connexions/webview/languages","stargazers_url":"https://api.github.com/repos/Connexions/webview/stargazers","contributors_url":"https://api.github.com/repos/Connexions/webview/contributors","subscribers_url":"https://api.github.com/repos/Connexions/webview/subscribers","subscription_url":"https://api.github.com/repos/Connexions/webview/subscription","commits_url":"https://api.github.com/repos/Connexions/webview/commits{/sha}","git_commits_url":"https://api.github.com/repos/Connexions/webview/git/commits{/sha}","comments_url":"https://api.github.com/repos/Connexions/webview/comments{/number}","issue_comment_url":"https://api.github.com/repos/Connexions/webview/issues/comments{/number}","contents_url":"https://api.github.com/repos/Connexions/webview/contents/{+path}","compare_url":"https://api.github.com/repos/Connexions/webview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Connexions/webview/merges","archive_url":"https://api.github.com/repos/Connexions/webview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Connexions/webview/downloads","issues_url":"https://api.github.com/repos/Connexions/webview/issues{/number}","pulls_url":"https://api.github.com/repos/Connexions/webview/pulls{/number}","milestones_url":"https://api.github.com/repos/Connexions/webview/milestones{/number}","notifications_url":"https://api.github.com/repos/Connexions/webview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Connexions/webview/labels{/name}","releases_url":"https://api.github.com/repos/Connexions/webview/releases{/id}","deployments_url":"https://api.github.com/repos/Connexions/webview/deployments","created_at":"2013-07-12T13:50:03Z","updated_at":"2016-04-09T11:24:06Z","pushed_at":"2016-06-10T16:54:53Z","git_url":"git://github.com/Connexions/webview.git","ssh_url":"git@github.com:Connexions/webview.git","clone_url":"https://github.com/Connexions/webview.git","svn_url":"https://github.com/Connexions/webview","homepage":"http://cnx.org","size":7641,"stargazers_count":7,"watchers_count":7,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":91,"forks":7,"open_issues":91,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Connexions/webview/pulls/1411"},"html":{"href":"https://github.com/Connexions/webview/pull/1411"},"issue":{"href":"https://api.github.com/repos/Connexions/webview/issues/1411"},"comments":{"href":"https://api.github.com/repos/Connexions/webview/issues/1411/comments"},"review_comments":{"href":"https://api.github.com/repos/Connexions/webview/pulls/1411/comments"},"review_comment":{"href":"https://api.github.com/repos/Connexions/webview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Connexions/webview/pulls/1411/commits"},"statuses":{"href":"https://api.github.com/repos/Connexions/webview/statuses/efb3a130d3acf70d25f91a24195d2a804e44d177"}}}}
{"actor":{"display_login":"RoyEJohnson"}}