{"action":"created","comment":{"url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/comments/216953469","pull_request_review_id":154546181,"id":216953469,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjk1MzQ2OQ==","diff_hunk":"@@ -0,0 +1,30 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+\n+namespace namespaceEpam.NetMentoring.CalculationService\n+{\n+    class CalculationServiceWithCache : CalculationService\n+    {\n+        IDictionary<string, decimal> _cache = new Dictionary<string, decimal>();\n+\n+        public override decimal Calculate(decimal firstParameter, decimal secondParameter)\n+        {\n+            var key = GetKey(firstParameter, secondParameter);\n+            if (_cache.TryGetValue(key, out var value))\n+            {\n+                return value;\n+            }\n+            value = base.Calculate(firstParameter, secondParameter);\n+            _cache[key] = value;\n+            return value;\n+        }\n+\n+        string GetKey(decimal param1, decimal param2)\n+        {\n+            return \"{param1}-{param2}\";","path":"Decorator/CalculationService/CalculationServiceWithCache.cs","position":27,"original_position":27,"commit_id":"9ae9592e2611c13c0882521115e26e1248133e4b","original_commit_id":"9ae9592e2611c13c0882521115e26e1248133e4b","user":{"login":"fojman","id":22260621,"node_id":"MDQ6VXNlcjIyMjYwNjIx","avatar_url":"https://avatars0.githubusercontent.com/u/22260621?v=4","gravatar_id":"","url":"https://api.github.com/users/fojman","html_url":"https://github.com/fojman","followers_url":"https://api.github.com/users/fojman/followers","following_url":"https://api.github.com/users/fojman/following{/other_user}","gists_url":"https://api.github.com/users/fojman/gists{/gist_id}","starred_url":"https://api.github.com/users/fojman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fojman/subscriptions","organizations_url":"https://api.github.com/users/fojman/orgs","repos_url":"https://api.github.com/users/fojman/repos","events_url":"https://api.github.com/users/fojman/events{/privacy}","received_events_url":"https://api.github.com/users/fojman/received_events","type":"User","site_admin":false},"body":"seems missed $ for interpolation string","created_at":"2018-09-12T09:11:16Z","updated_at":"2018-09-12T09:18:30Z","html_url":"https://github.com/AntonTmsh/githubpet_proj/pull/4#discussion_r216953469","pull_request_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/comments/216953469"},"html":{"href":"https://github.com/AntonTmsh/githubpet_proj/pull/4#discussion_r216953469"},"pull_request":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4","id":214719250,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NzE5MjUw","html_url":"https://github.com/AntonTmsh/githubpet_proj/pull/4","diff_url":"https://github.com/AntonTmsh/githubpet_proj/pull/4.diff","patch_url":"https://github.com/AntonTmsh/githubpet_proj/pull/4.patch","issue_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/4","number":4,"state":"open","locked":false,"title":"add Observer,Factory;Decorator","user":{"login":"AntonTmsh","id":32903158,"node_id":"MDQ6VXNlcjMyOTAzMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32903158?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonTmsh","html_url":"https://github.com/AntonTmsh","followers_url":"https://api.github.com/users/AntonTmsh/followers","following_url":"https://api.github.com/users/AntonTmsh/following{/other_user}","gists_url":"https://api.github.com/users/AntonTmsh/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTmsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTmsh/subscriptions","organizations_url":"https://api.github.com/users/AntonTmsh/orgs","repos_url":"https://api.github.com/users/AntonTmsh/repos","events_url":"https://api.github.com/users/AntonTmsh/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTmsh/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-11T18:10:04Z","updated_at":"2018-09-12T09:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66b15b89b80233134c0df0674a338918e3d8209a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4/commits","review_comments_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4/comments","review_comment_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/4/comments","statuses_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/statuses/9ae9592e2611c13c0882521115e26e1248133e4b","head":{"label":"AntonTmsh:Patterns","ref":"Patterns","sha":"9ae9592e2611c13c0882521115e26e1248133e4b","user":{"login":"AntonTmsh","id":32903158,"node_id":"MDQ6VXNlcjMyOTAzMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32903158?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonTmsh","html_url":"https://github.com/AntonTmsh","followers_url":"https://api.github.com/users/AntonTmsh/followers","following_url":"https://api.github.com/users/AntonTmsh/following{/other_user}","gists_url":"https://api.github.com/users/AntonTmsh/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTmsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTmsh/subscriptions","organizations_url":"https://api.github.com/users/AntonTmsh/orgs","repos_url":"https://api.github.com/users/AntonTmsh/repos","events_url":"https://api.github.com/users/AntonTmsh/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTmsh/received_events","type":"User","site_admin":false},"repo":{"id":107424914,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc0MjQ5MTQ=","name":"githubpet_proj","full_name":"AntonTmsh/githubpet_proj","owner":{"login":"AntonTmsh","id":32903158,"node_id":"MDQ6VXNlcjMyOTAzMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32903158?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonTmsh","html_url":"https://github.com/AntonTmsh","followers_url":"https://api.github.com/users/AntonTmsh/followers","following_url":"https://api.github.com/users/AntonTmsh/following{/other_user}","gists_url":"https://api.github.com/users/AntonTmsh/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTmsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTmsh/subscriptions","organizations_url":"https://api.github.com/users/AntonTmsh/orgs","repos_url":"https://api.github.com/users/AntonTmsh/repos","events_url":"https://api.github.com/users/AntonTmsh/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTmsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AntonTmsh/githubpet_proj","description":"test project","fork":false,"url":"https://api.github.com/repos/AntonTmsh/githubpet_proj","forks_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/forks","keys_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/teams","hooks_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/hooks","issue_events_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/events{/number}","events_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/events","assignees_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/assignees{/user}","branches_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/branches{/branch}","tags_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/tags","blobs_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/statuses/{sha}","languages_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/languages","stargazers_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/stargazers","contributors_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/contributors","subscribers_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/subscribers","subscription_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/subscription","commits_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/contents/{+path}","compare_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/merges","archive_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/downloads","issues_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues{/number}","pulls_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls{/number}","milestones_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/milestones{/number}","notifications_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/labels{/name}","releases_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/releases{/id}","deployments_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/deployments","created_at":"2017-10-18T15:09:17Z","updated_at":"2018-09-11T13:21:24Z","pushed_at":"2018-09-11T18:10:04Z","git_url":"git://github.com/AntonTmsh/githubpet_proj.git","ssh_url":"git@github.com:AntonTmsh/githubpet_proj.git","clone_url":"https://github.com/AntonTmsh/githubpet_proj.git","svn_url":"https://github.com/AntonTmsh/githubpet_proj","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AntonTmsh:master","ref":"master","sha":"e93297844b6a17c4805962c94f6202c22b97f634","user":{"login":"AntonTmsh","id":32903158,"node_id":"MDQ6VXNlcjMyOTAzMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32903158?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonTmsh","html_url":"https://github.com/AntonTmsh","followers_url":"https://api.github.com/users/AntonTmsh/followers","following_url":"https://api.github.com/users/AntonTmsh/following{/other_user}","gists_url":"https://api.github.com/users/AntonTmsh/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTmsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTmsh/subscriptions","organizations_url":"https://api.github.com/users/AntonTmsh/orgs","repos_url":"https://api.github.com/users/AntonTmsh/repos","events_url":"https://api.github.com/users/AntonTmsh/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTmsh/received_events","type":"User","site_admin":false},"repo":{"id":107424914,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc0MjQ5MTQ=","name":"githubpet_proj","full_name":"AntonTmsh/githubpet_proj","owner":{"login":"AntonTmsh","id":32903158,"node_id":"MDQ6VXNlcjMyOTAzMTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32903158?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonTmsh","html_url":"https://github.com/AntonTmsh","followers_url":"https://api.github.com/users/AntonTmsh/followers","following_url":"https://api.github.com/users/AntonTmsh/following{/other_user}","gists_url":"https://api.github.com/users/AntonTmsh/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTmsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTmsh/subscriptions","organizations_url":"https://api.github.com/users/AntonTmsh/orgs","repos_url":"https://api.github.com/users/AntonTmsh/repos","events_url":"https://api.github.com/users/AntonTmsh/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTmsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AntonTmsh/githubpet_proj","description":"test project","fork":false,"url":"https://api.github.com/repos/AntonTmsh/githubpet_proj","forks_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/forks","keys_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/teams","hooks_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/hooks","issue_events_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/events{/number}","events_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/events","assignees_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/assignees{/user}","branches_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/branches{/branch}","tags_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/tags","blobs_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/statuses/{sha}","languages_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/languages","stargazers_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/stargazers","contributors_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/contributors","subscribers_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/subscribers","subscription_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/subscription","commits_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/contents/{+path}","compare_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/merges","archive_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/downloads","issues_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues{/number}","pulls_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls{/number}","milestones_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/milestones{/number}","notifications_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/labels{/name}","releases_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/releases{/id}","deployments_url":"https://api.github.com/repos/AntonTmsh/githubpet_proj/deployments","created_at":"2017-10-18T15:09:17Z","updated_at":"2018-09-11T13:21:24Z","pushed_at":"2018-09-11T18:10:04Z","git_url":"git://github.com/AntonTmsh/githubpet_proj.git","ssh_url":"git@github.com:AntonTmsh/githubpet_proj.git","clone_url":"https://github.com/AntonTmsh/githubpet_proj.git","svn_url":"https://github.com/AntonTmsh/githubpet_proj","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4"},"html":{"href":"https://github.com/AntonTmsh/githubpet_proj/pull/4"},"issue":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/4"},"comments":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/AntonTmsh/githubpet_proj/statuses/9ae9592e2611c13c0882521115e26e1248133e4b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"fojman"}}