{"action":"created","comment":{"url":"https://api.github.com/repos/src-d/style-analyzer/pulls/comments/222626927","pull_request_review_id":161558334,"id":222626927,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjYyNjkyNw==","diff_hunk":"@@ -0,0 +1,28 @@\n+from copy import deepcopy\n+from typing import Mapping\n+\n+\n+def merge_dicts(dict1: Mapping, dict2: Mapping) -> Mapping:\n+    \"\"\"\n+    Deep merge of nested dictionaries.\n+    Example:\n+    >>> a = {1: 1, 2: {3: 3, 4: 4}}\n+    >>> b = {1: 10, 2: {3: 30, 4: 4, 5: 5}}\n+    >>> merge_dicts(a, b)\n+    {1: 10, 2: {3: 30, 4: 4, 5: 5}}\n+    >>> merge_dicts(b, a)\n+    {1: 1, 2: {3: 3, 4: 4, 5: 5}}\n+\n+    :return: new merged dictionary\n+    \"\"\"\n+\n+    res = deepcopy(dict1)\n+    stack = [(res, dict2)]\n+    while stack:","path":"lookout/style/format/utils.py","position":21,"original_position":21,"commit_id":"0a93645fbb5b0f51e899897bdea1c529b8833d50","original_commit_id":"3961fa9b5693e5c71a54e7aa0a771d190f103dfb","user":{"login":"zurk","id":516045,"node_id":"MDQ6VXNlcjUxNjA0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/516045?v=4","gravatar_id":"","url":"https://api.github.com/users/zurk","html_url":"https://github.com/zurk","followers_url":"https://api.github.com/users/zurk/followers","following_url":"https://api.github.com/users/zurk/following{/other_user}","gists_url":"https://api.github.com/users/zurk/gists{/gist_id}","starred_url":"https://api.github.com/users/zurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zurk/subscriptions","organizations_url":"https://api.github.com/users/zurk/orgs","repos_url":"https://api.github.com/users/zurk/repos","events_url":"https://api.github.com/users/zurk/events{/privacy}","received_events_url":"https://api.github.com/users/zurk/received_events","type":"User","site_admin":false},"body":"agree","created_at":"2018-10-04T11:13:54Z","updated_at":"2018-10-04T11:13:54Z","html_url":"https://github.com/src-d/style-analyzer/pull/200#discussion_r222626927","pull_request_url":"https://api.github.com/repos/src-d/style-analyzer/pulls/200","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/src-d/style-analyzer/pulls/comments/222626927"},"html":{"href":"https://github.com/src-d/style-analyzer/pull/200#discussion_r222626927"},"pull_request":{"href":"https://api.github.com/repos/src-d/style-analyzer/pulls/200"}},"in_reply_to_id":222295528},"pull_request":{"url":"https://api.github.com/repos/src-d/style-analyzer/pulls/200","id":219984699,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTg0Njk5","html_url":"https://github.com/src-d/style-analyzer/pull/200","diff_url":"https://github.com/src-d/style-analyzer/pull/200.diff","patch_url":"https://github.com/src-d/style-analyzer/pull/200.patch","issue_url":"https://api.github.com/repos/src-d/style-analyzer/issues/200","number":200,"state":"open","locked":false,"title":"Add merge_dict function","user":{"login":"zurk","id":516045,"node_id":"MDQ6VXNlcjUxNjA0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/516045?v=4","gravatar_id":"","url":"https://api.github.com/users/zurk","html_url":"https://github.com/zurk","followers_url":"https://api.github.com/users/zurk/followers","following_url":"https://api.github.com/users/zurk/following{/other_user}","gists_url":"https://api.github.com/users/zurk/gists{/gist_id}","starred_url":"https://api.github.com/users/zurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zurk/subscriptions","organizations_url":"https://api.github.com/users/zurk/orgs","repos_url":"https://api.github.com/users/zurk/repos","events_url":"https://api.github.com/users/zurk/events{/privacy}","received_events_url":"https://api.github.com/users/zurk/received_events","type":"User","site_admin":false},"body":"In the trail of @vmarkovtsev review: https://github.com/src-d/style-analyzer/pull/190#discussion_r221968467\r\n","created_at":"2018-10-03T10:20:53Z","updated_at":"2018-10-04T11:13:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8986846e741b2a90cdc39aa5a435606e01d99c77","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/src-d/style-analyzer/pulls/200/commits","review_comments_url":"https://api.github.com/repos/src-d/style-analyzer/pulls/200/comments","review_comment_url":"https://api.github.com/repos/src-d/style-analyzer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/src-d/style-analyzer/issues/200/comments","statuses_url":"https://api.github.com/repos/src-d/style-analyzer/statuses/0a93645fbb5b0f51e899897bdea1c529b8833d50","head":{"label":"zurk:feature/merge_dict","ref":"feature/merge_dict","sha":"0a93645fbb5b0f51e899897bdea1c529b8833d50","user":{"login":"zurk","id":516045,"node_id":"MDQ6VXNlcjUxNjA0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/516045?v=4","gravatar_id":"","url":"https://api.github.com/users/zurk","html_url":"https://github.com/zurk","followers_url":"https://api.github.com/users/zurk/followers","following_url":"https://api.github.com/users/zurk/following{/other_user}","gists_url":"https://api.github.com/users/zurk/gists{/gist_id}","starred_url":"https://api.github.com/users/zurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zurk/subscriptions","organizations_url":"https://api.github.com/users/zurk/orgs","repos_url":"https://api.github.com/users/zurk/repos","events_url":"https://api.github.com/users/zurk/events{/privacy}","received_events_url":"https://api.github.com/users/zurk/received_events","type":"User","site_admin":false},"repo":{"id":143881897,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4ODE4OTc=","name":"style-analyzer","full_name":"zurk/style-analyzer","private":false,"owner":{"login":"zurk","id":516045,"node_id":"MDQ6VXNlcjUxNjA0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/516045?v=4","gravatar_id":"","url":"https://api.github.com/users/zurk","html_url":"https://github.com/zurk","followers_url":"https://api.github.com/users/zurk/followers","following_url":"https://api.github.com/users/zurk/following{/other_user}","gists_url":"https://api.github.com/users/zurk/gists{/gist_id}","starred_url":"https://api.github.com/users/zurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zurk/subscriptions","organizations_url":"https://api.github.com/users/zurk/orgs","repos_url":"https://api.github.com/users/zurk/repos","events_url":"https://api.github.com/users/zurk/events{/privacy}","received_events_url":"https://api.github.com/users/zurk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/zurk/style-analyzer","description":"Style analyzer experiments","fork":true,"url":"https://api.github.com/repos/zurk/style-analyzer","forks_url":"https://api.github.com/repos/zurk/style-analyzer/forks","keys_url":"https://api.github.com/repos/zurk/style-analyzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zurk/style-analyzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zurk/style-analyzer/teams","hooks_url":"https://api.github.com/repos/zurk/style-analyzer/hooks","issue_events_url":"https://api.github.com/repos/zurk/style-analyzer/issues/events{/number}","events_url":"https://api.github.com/repos/zurk/style-analyzer/events","assignees_url":"https://api.github.com/repos/zurk/style-analyzer/assignees{/user}","branches_url":"https://api.github.com/repos/zurk/style-analyzer/branches{/branch}","tags_url":"https://api.github.com/repos/zurk/style-analyzer/tags","blobs_url":"https://api.github.com/repos/zurk/style-analyzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zurk/style-analyzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zurk/style-analyzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/zurk/style-analyzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zurk/style-analyzer/statuses/{sha}","languages_url":"https://api.github.com/repos/zurk/style-analyzer/languages","stargazers_url":"https://api.github.com/repos/zurk/style-analyzer/stargazers","contributors_url":"https://api.github.com/repos/zurk/style-analyzer/contributors","subscribers_url":"https://api.github.com/repos/zurk/style-analyzer/subscribers","subscription_url":"https://api.github.com/repos/zurk/style-analyzer/subscription","commits_url":"https://api.github.com/repos/zurk/style-analyzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/zurk/style-analyzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/zurk/style-analyzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/zurk/style-analyzer/issues/comments{/number}","contents_url":"https://api.github.com/repos/zurk/style-analyzer/contents/{+path}","compare_url":"https://api.github.com/repos/zurk/style-analyzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zurk/style-analyzer/merges","archive_url":"https://api.github.com/repos/zurk/style-analyzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zurk/style-analyzer/downloads","issues_url":"https://api.github.com/repos/zurk/style-analyzer/issues{/number}","pulls_url":"https://api.github.com/repos/zurk/style-analyzer/pulls{/number}","milestones_url":"https://api.github.com/repos/zurk/style-analyzer/milestones{/number}","notifications_url":"https://api.github.com/repos/zurk/style-analyzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zurk/style-analyzer/labels{/name}","releases_url":"https://api.github.com/repos/zurk/style-analyzer/releases{/id}","deployments_url":"https://api.github.com/repos/zurk/style-analyzer/deployments","created_at":"2018-08-07T14:04:29Z","updated_at":"2018-10-01T20:39:17Z","pushed_at":"2018-10-04T10:58:06Z","git_url":"git://github.com/zurk/style-analyzer.git","ssh_url":"git@github.com:zurk/style-analyzer.git","clone_url":"https://github.com/zurk/style-analyzer.git","svn_url":"https://github.com/zurk/style-analyzer","homepage":null,"size":15224,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"src-d:master","ref":"master","sha":"e2ff8838ce4c9ed3993e715c77dcd60319d2a12e","user":{"login":"src-d","id":15128793,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTI4Nzkz","avatar_url":"https://avatars2.githubusercontent.com/u/15128793?v=4","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"repo":{"id":139746338,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk3NDYzMzg=","name":"style-analyzer","full_name":"src-d/style-analyzer","private":false,"owner":{"login":"src-d","id":15128793,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTI4Nzkz","avatar_url":"https://avatars2.githubusercontent.com/u/15128793?v=4","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/src-d/style-analyzer","description":"Style analyzer experiments","fork":false,"url":"https://api.github.com/repos/src-d/style-analyzer","forks_url":"https://api.github.com/repos/src-d/style-analyzer/forks","keys_url":"https://api.github.com/repos/src-d/style-analyzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/src-d/style-analyzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/src-d/style-analyzer/teams","hooks_url":"https://api.github.com/repos/src-d/style-analyzer/hooks","issue_events_url":"https://api.github.com/repos/src-d/style-analyzer/issues/events{/number}","events_url":"https://api.github.com/repos/src-d/style-analyzer/events","assignees_url":"https://api.github.com/repos/src-d/style-analyzer/assignees{/user}","branches_url":"https://api.github.com/repos/src-d/style-analyzer/branches{/branch}","tags_url":"https://api.github.com/repos/src-d/style-analyzer/tags","blobs_url":"https://api.github.com/repos/src-d/style-analyzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/src-d/style-analyzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/src-d/style-analyzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/src-d/style-analyzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/src-d/style-analyzer/statuses/{sha}","languages_url":"https://api.github.com/repos/src-d/style-analyzer/languages","stargazers_url":"https://api.github.com/repos/src-d/style-analyzer/stargazers","contributors_url":"https://api.github.com/repos/src-d/style-analyzer/contributors","subscribers_url":"https://api.github.com/repos/src-d/style-analyzer/subscribers","subscription_url":"https://api.github.com/repos/src-d/style-analyzer/subscription","commits_url":"https://api.github.com/repos/src-d/style-analyzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/src-d/style-analyzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/src-d/style-analyzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/src-d/style-analyzer/issues/comments{/number}","contents_url":"https://api.github.com/repos/src-d/style-analyzer/contents/{+path}","compare_url":"https://api.github.com/repos/src-d/style-analyzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/src-d/style-analyzer/merges","archive_url":"https://api.github.com/repos/src-d/style-analyzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/src-d/style-analyzer/downloads","issues_url":"https://api.github.com/repos/src-d/style-analyzer/issues{/number}","pulls_url":"https://api.github.com/repos/src-d/style-analyzer/pulls{/number}","milestones_url":"https://api.github.com/repos/src-d/style-analyzer/milestones{/number}","notifications_url":"https://api.github.com/repos/src-d/style-analyzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/src-d/style-analyzer/labels{/name}","releases_url":"https://api.github.com/repos/src-d/style-analyzer/releases{/id}","deployments_url":"https://api.github.com/repos/src-d/style-analyzer/deployments","created_at":"2018-07-04T16:42:30Z","updated_at":"2018-10-03T16:51:42Z","pushed_at":"2018-10-04T10:58:07Z","git_url":"git://github.com/src-d/style-analyzer.git","ssh_url":"git@github.com:src-d/style-analyzer.git","clone_url":"https://github.com/src-d/style-analyzer.git","svn_url":"https://github.com/src-d/style-analyzer","homepage":null,"size":15180,"stargazers_count":2,"watchers_count":2,"language":"Jupyter Notebook","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":26,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/src-d/style-analyzer/pulls/200"},"html":{"href":"https://github.com/src-d/style-analyzer/pull/200"},"issue":{"href":"https://api.github.com/repos/src-d/style-analyzer/issues/200"},"comments":{"href":"https://api.github.com/repos/src-d/style-analyzer/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/src-d/style-analyzer/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/src-d/style-analyzer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/src-d/style-analyzer/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/src-d/style-analyzer/statuses/0a93645fbb5b0f51e899897bdea1c529b8833d50"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"zurk"}}