{"action":"created","comment":{"url":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments/74003344","id":74003344,"diff_hunk":"@@ -0,0 +1,19 @@\n+# File: even_numbers_sum.rb\n+\n+class EvenNumbersSum\n+    def get_sum_of_even_numbers(numbers)\t","path":"Problem1/even_numbers_sum.rb","position":4,"original_position":4,"commit_id":"9b763c2908eb4fc51f42ada96a64fc2faf68a179","original_commit_id":"9b763c2908eb4fc51f42ada96a64fc2faf68a179","user":{"login":"alexandru-calinoiu","id":679198,"avatar_url":"https://avatars.githubusercontent.com/u/679198?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru-calinoiu","html_url":"https://github.com/alexandru-calinoiu","followers_url":"https://api.github.com/users/alexandru-calinoiu/followers","following_url":"https://api.github.com/users/alexandru-calinoiu/following{/other_user}","gists_url":"https://api.github.com/users/alexandru-calinoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru-calinoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru-calinoiu/subscriptions","organizations_url":"https://api.github.com/users/alexandru-calinoiu/orgs","repos_url":"https://api.github.com/users/alexandru-calinoiu/repos","events_url":"https://api.github.com/users/alexandru-calinoiu/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru-calinoiu/received_events","type":"User","site_admin":false},"body":"Mama ce chinui ruby :)\r\n\r\nO alternativa ar fi:\r\n\r\n```ruby\r\nnumbers.inject { |sum, n| n.even? ? sum + n : sum }\r\n```\r\n\r\nsau si mai scurt\r\n\r\n```ruby\r\nnumbers.find_all(&:even?).reduce(:+)\r\n```","created_at":"2016-08-09T06:19:08Z","updated_at":"2016-08-09T06:19:08Z","html_url":"https://github.com/Agilefreaks/Test/pull/15#discussion_r74003344","pull_request_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments/74003344"},"html":{"href":"https://github.com/Agilefreaks/Test/pull/15#discussion_r74003344"},"pull_request":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/Agilefreaks/Test/pulls/15","id":80372142,"html_url":"https://github.com/Agilefreaks/Test/pull/15","diff_url":"https://github.com/Agilefreaks/Test/pull/15.diff","patch_url":"https://github.com/Agilefreaks/Test/pull/15.patch","issue_url":"https://api.github.com/repos/Agilefreaks/Test/issues/15","number":15,"state":"open","locked":false,"title":"Requested problems and test cases","user":{"login":"Vivendus","id":13437116,"avatar_url":"https://avatars.githubusercontent.com/u/13437116?v=3","gravatar_id":"","url":"https://api.github.com/users/Vivendus","html_url":"https://github.com/Vivendus","followers_url":"https://api.github.com/users/Vivendus/followers","following_url":"https://api.github.com/users/Vivendus/following{/other_user}","gists_url":"https://api.github.com/users/Vivendus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vivendus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vivendus/subscriptions","organizations_url":"https://api.github.com/users/Vivendus/orgs","repos_url":"https://api.github.com/users/Vivendus/repos","events_url":"https://api.github.com/users/Vivendus/events{/privacy}","received_events_url":"https://api.github.com/users/Vivendus/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-07T17:00:10Z","updated_at":"2016-08-09T06:19:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46c0af3fd1925c38de6824b1ab85a6af6185f8b6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Agilefreaks/Test/issues/15/comments","statuses_url":"https://api.github.com/repos/Agilefreaks/Test/statuses/9b763c2908eb4fc51f42ada96a64fc2faf68a179","head":{"label":"Vivendus:master","ref":"master","sha":"9b763c2908eb4fc51f42ada96a64fc2faf68a179","user":{"login":"Vivendus","id":13437116,"avatar_url":"https://avatars.githubusercontent.com/u/13437116?v=3","gravatar_id":"","url":"https://api.github.com/users/Vivendus","html_url":"https://github.com/Vivendus","followers_url":"https://api.github.com/users/Vivendus/followers","following_url":"https://api.github.com/users/Vivendus/following{/other_user}","gists_url":"https://api.github.com/users/Vivendus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vivendus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vivendus/subscriptions","organizations_url":"https://api.github.com/users/Vivendus/orgs","repos_url":"https://api.github.com/users/Vivendus/repos","events_url":"https://api.github.com/users/Vivendus/events{/privacy}","received_events_url":"https://api.github.com/users/Vivendus/received_events","type":"User","site_admin":false},"repo":{"id":65081716,"name":"Test","full_name":"Vivendus/Test","owner":{"login":"Vivendus","id":13437116,"avatar_url":"https://avatars.githubusercontent.com/u/13437116?v=3","gravatar_id":"","url":"https://api.github.com/users/Vivendus","html_url":"https://github.com/Vivendus","followers_url":"https://api.github.com/users/Vivendus/followers","following_url":"https://api.github.com/users/Vivendus/following{/other_user}","gists_url":"https://api.github.com/users/Vivendus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vivendus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vivendus/subscriptions","organizations_url":"https://api.github.com/users/Vivendus/orgs","repos_url":"https://api.github.com/users/Vivendus/repos","events_url":"https://api.github.com/users/Vivendus/events{/privacy}","received_events_url":"https://api.github.com/users/Vivendus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vivendus/Test","description":"A simple 3 problem test, for your consideration","fork":true,"url":"https://api.github.com/repos/Vivendus/Test","forks_url":"https://api.github.com/repos/Vivendus/Test/forks","keys_url":"https://api.github.com/repos/Vivendus/Test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vivendus/Test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vivendus/Test/teams","hooks_url":"https://api.github.com/repos/Vivendus/Test/hooks","issue_events_url":"https://api.github.com/repos/Vivendus/Test/issues/events{/number}","events_url":"https://api.github.com/repos/Vivendus/Test/events","assignees_url":"https://api.github.com/repos/Vivendus/Test/assignees{/user}","branches_url":"https://api.github.com/repos/Vivendus/Test/branches{/branch}","tags_url":"https://api.github.com/repos/Vivendus/Test/tags","blobs_url":"https://api.github.com/repos/Vivendus/Test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vivendus/Test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vivendus/Test/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vivendus/Test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vivendus/Test/statuses/{sha}","languages_url":"https://api.github.com/repos/Vivendus/Test/languages","stargazers_url":"https://api.github.com/repos/Vivendus/Test/stargazers","contributors_url":"https://api.github.com/repos/Vivendus/Test/contributors","subscribers_url":"https://api.github.com/repos/Vivendus/Test/subscribers","subscription_url":"https://api.github.com/repos/Vivendus/Test/subscription","commits_url":"https://api.github.com/repos/Vivendus/Test/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vivendus/Test/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vivendus/Test/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vivendus/Test/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vivendus/Test/contents/{+path}","compare_url":"https://api.github.com/repos/Vivendus/Test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vivendus/Test/merges","archive_url":"https://api.github.com/repos/Vivendus/Test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vivendus/Test/downloads","issues_url":"https://api.github.com/repos/Vivendus/Test/issues{/number}","pulls_url":"https://api.github.com/repos/Vivendus/Test/pulls{/number}","milestones_url":"https://api.github.com/repos/Vivendus/Test/milestones{/number}","notifications_url":"https://api.github.com/repos/Vivendus/Test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vivendus/Test/labels{/name}","releases_url":"https://api.github.com/repos/Vivendus/Test/releases{/id}","deployments_url":"https://api.github.com/repos/Vivendus/Test/deployments","created_at":"2016-08-06T12:33:26Z","updated_at":"2016-08-07T16:56:56Z","pushed_at":"2016-08-07T16:56:55Z","git_url":"git://github.com/Vivendus/Test.git","ssh_url":"git@github.com:Vivendus/Test.git","clone_url":"https://github.com/Vivendus/Test.git","svn_url":"https://github.com/Vivendus/Test","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"Agilefreaks:master","ref":"master","sha":"72cf8b46f76a83d7ed7ac7dc826e46fc4e6e5a90","user":{"login":"Agilefreaks","id":1319488,"avatar_url":"https://avatars.githubusercontent.com/u/1319488?v=3","gravatar_id":"","url":"https://api.github.com/users/Agilefreaks","html_url":"https://github.com/Agilefreaks","followers_url":"https://api.github.com/users/Agilefreaks/followers","following_url":"https://api.github.com/users/Agilefreaks/following{/other_user}","gists_url":"https://api.github.com/users/Agilefreaks/gists{/gist_id}","starred_url":"https://api.github.com/users/Agilefreaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agilefreaks/subscriptions","organizations_url":"https://api.github.com/users/Agilefreaks/orgs","repos_url":"https://api.github.com/users/Agilefreaks/repos","events_url":"https://api.github.com/users/Agilefreaks/events{/privacy}","received_events_url":"https://api.github.com/users/Agilefreaks/received_events","type":"Organization","site_admin":false},"repo":{"id":21396239,"name":"Test","full_name":"Agilefreaks/Test","owner":{"login":"Agilefreaks","id":1319488,"avatar_url":"https://avatars.githubusercontent.com/u/1319488?v=3","gravatar_id":"","url":"https://api.github.com/users/Agilefreaks","html_url":"https://github.com/Agilefreaks","followers_url":"https://api.github.com/users/Agilefreaks/followers","following_url":"https://api.github.com/users/Agilefreaks/following{/other_user}","gists_url":"https://api.github.com/users/Agilefreaks/gists{/gist_id}","starred_url":"https://api.github.com/users/Agilefreaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agilefreaks/subscriptions","organizations_url":"https://api.github.com/users/Agilefreaks/orgs","repos_url":"https://api.github.com/users/Agilefreaks/repos","events_url":"https://api.github.com/users/Agilefreaks/events{/privacy}","received_events_url":"https://api.github.com/users/Agilefreaks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Agilefreaks/Test","description":"A simple 3 problem test, for your consideration","fork":false,"url":"https://api.github.com/repos/Agilefreaks/Test","forks_url":"https://api.github.com/repos/Agilefreaks/Test/forks","keys_url":"https://api.github.com/repos/Agilefreaks/Test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Agilefreaks/Test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Agilefreaks/Test/teams","hooks_url":"https://api.github.com/repos/Agilefreaks/Test/hooks","issue_events_url":"https://api.github.com/repos/Agilefreaks/Test/issues/events{/number}","events_url":"https://api.github.com/repos/Agilefreaks/Test/events","assignees_url":"https://api.github.com/repos/Agilefreaks/Test/assignees{/user}","branches_url":"https://api.github.com/repos/Agilefreaks/Test/branches{/branch}","tags_url":"https://api.github.com/repos/Agilefreaks/Test/tags","blobs_url":"https://api.github.com/repos/Agilefreaks/Test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Agilefreaks/Test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Agilefreaks/Test/git/refs{/sha}","trees_url":"https://api.github.com/repos/Agilefreaks/Test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Agilefreaks/Test/statuses/{sha}","languages_url":"https://api.github.com/repos/Agilefreaks/Test/languages","stargazers_url":"https://api.github.com/repos/Agilefreaks/Test/stargazers","contributors_url":"https://api.github.com/repos/Agilefreaks/Test/contributors","subscribers_url":"https://api.github.com/repos/Agilefreaks/Test/subscribers","subscription_url":"https://api.github.com/repos/Agilefreaks/Test/subscription","commits_url":"https://api.github.com/repos/Agilefreaks/Test/commits{/sha}","git_commits_url":"https://api.github.com/repos/Agilefreaks/Test/git/commits{/sha}","comments_url":"https://api.github.com/repos/Agilefreaks/Test/comments{/number}","issue_comment_url":"https://api.github.com/repos/Agilefreaks/Test/issues/comments{/number}","contents_url":"https://api.github.com/repos/Agilefreaks/Test/contents/{+path}","compare_url":"https://api.github.com/repos/Agilefreaks/Test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Agilefreaks/Test/merges","archive_url":"https://api.github.com/repos/Agilefreaks/Test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Agilefreaks/Test/downloads","issues_url":"https://api.github.com/repos/Agilefreaks/Test/issues{/number}","pulls_url":"https://api.github.com/repos/Agilefreaks/Test/pulls{/number}","milestones_url":"https://api.github.com/repos/Agilefreaks/Test/milestones{/number}","notifications_url":"https://api.github.com/repos/Agilefreaks/Test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Agilefreaks/Test/labels{/name}","releases_url":"https://api.github.com/repos/Agilefreaks/Test/releases{/id}","deployments_url":"https://api.github.com/repos/Agilefreaks/Test/deployments","created_at":"2014-07-01T17:17:09Z","updated_at":"2015-02-20T07:01:34Z","pushed_at":"2016-08-07T17:00:11Z","git_url":"git://github.com/Agilefreaks/Test.git","ssh_url":"git@github.com:Agilefreaks/Test.git","clone_url":"https://github.com/Agilefreaks/Test.git","svn_url":"https://github.com/Agilefreaks/Test","homepage":null,"size":349,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":1,"forks":15,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/15"},"html":{"href":"https://github.com/Agilefreaks/Test/pull/15"},"issue":{"href":"https://api.github.com/repos/Agilefreaks/Test/issues/15"},"comments":{"href":"https://api.github.com/repos/Agilefreaks/Test/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Agilefreaks/Test/statuses/9b763c2908eb4fc51f42ada96a64fc2faf68a179"}}}}
{"actor":{"display_login":"alexandru-calinoiu"}}