{"action":"created","comment":{"url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/comments/28205257","id":28205257,"diff_hunk":"@@ -0,0 +1,81 @@\n+﻿using System;\n+\n+namespace Task1\n+{\n+    /// <summary>\n+    /// Operations: \"+\", \"-\", \"*\", \"/\"\n+    /// </summary>\n+    abstract public class Operation : TreeElement\n+    {\n+        public Operation(string value, TreeElement left, TreeElement right)\n+            : base(value, left, right)\n+        {\n+        }\n+\n+        abstract override public double Calculate();\n+\n+        /// <summary>\n+        /// Print in a form: (operand operator operand)\n+        /// </summary>\n+        public override void Print()\n+        {\n+            Console.Write(\"(\");\n+            LeftChild.Print();\n+            Console.Write(Value);","path":"Semester2/4/task1/task1/Operation.cs","position":24,"original_position":24,"commit_id":"4f3bc001fc739a3e833f4c796af2d2252994694d","original_commit_id":"4f3bc001fc739a3e833f4c796af2d2252994694d","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars.githubusercontent.com/u/706768?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"лучше не хранить в операции Value, а переопределить метод Print для каждой из операций (или оставить метод Print здесь, а у конкретных операций сделать метод PrintValue, который вызывать отсюда, и который бы печатал \"+\", \"-\" и т.д.","created_at":"2015-04-12T17:02:12Z","updated_at":"2015-04-12T17:02:12Z","html_url":"https://github.com/LChernigovskaya/Homework/pull/3#discussion_r28205257","pull_request_url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/comments/28205257"},"html":{"href":"https://github.com/LChernigovskaya/Homework/pull/3#discussion_r28205257"},"pull_request":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3","id":31356949,"html_url":"https://github.com/LChernigovskaya/Homework/pull/3","diff_url":"https://github.com/LChernigovskaya/Homework/pull/3.diff","patch_url":"https://github.com/LChernigovskaya/Homework/pull/3.patch","issue_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues/3","number":3,"state":"open","locked":false,"title":"Дерево разбора","user":{"login":"LChernigovskaya","id":10995386,"avatar_url":"https://avatars.githubusercontent.com/u/10995386?v=3","gravatar_id":"","url":"https://api.github.com/users/LChernigovskaya","html_url":"https://github.com/LChernigovskaya","followers_url":"https://api.github.com/users/LChernigovskaya/followers","following_url":"https://api.github.com/users/LChernigovskaya/following{/other_user}","gists_url":"https://api.github.com/users/LChernigovskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/LChernigovskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LChernigovskaya/subscriptions","organizations_url":"https://api.github.com/users/LChernigovskaya/orgs","repos_url":"https://api.github.com/users/LChernigovskaya/repos","events_url":"https://api.github.com/users/LChernigovskaya/events{/privacy}","received_events_url":"https://api.github.com/users/LChernigovskaya/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-17T17:17:58Z","updated_at":"2015-04-12T17:02:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32a98eff964469a085fe859a34e7edbe00366c86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3/commits","review_comments_url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3/comments","review_comment_url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues/3/comments","statuses_url":"https://api.github.com/repos/LChernigovskaya/Homework/statuses/4f3bc001fc739a3e833f4c796af2d2252994694d","head":{"label":"LChernigovskaya:parseTree4.1","ref":"parseTree4.1","sha":"4f3bc001fc739a3e833f4c796af2d2252994694d","user":{"login":"LChernigovskaya","id":10995386,"avatar_url":"https://avatars.githubusercontent.com/u/10995386?v=3","gravatar_id":"","url":"https://api.github.com/users/LChernigovskaya","html_url":"https://github.com/LChernigovskaya","followers_url":"https://api.github.com/users/LChernigovskaya/followers","following_url":"https://api.github.com/users/LChernigovskaya/following{/other_user}","gists_url":"https://api.github.com/users/LChernigovskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/LChernigovskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LChernigovskaya/subscriptions","organizations_url":"https://api.github.com/users/LChernigovskaya/orgs","repos_url":"https://api.github.com/users/LChernigovskaya/repos","events_url":"https://api.github.com/users/LChernigovskaya/events{/privacy}","received_events_url":"https://api.github.com/users/LChernigovskaya/received_events","type":"User","site_admin":false},"repo":{"id":30877415,"name":"Homework","full_name":"LChernigovskaya/Homework","owner":{"login":"LChernigovskaya","id":10995386,"avatar_url":"https://avatars.githubusercontent.com/u/10995386?v=3","gravatar_id":"","url":"https://api.github.com/users/LChernigovskaya","html_url":"https://github.com/LChernigovskaya","followers_url":"https://api.github.com/users/LChernigovskaya/followers","following_url":"https://api.github.com/users/LChernigovskaya/following{/other_user}","gists_url":"https://api.github.com/users/LChernigovskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/LChernigovskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LChernigovskaya/subscriptions","organizations_url":"https://api.github.com/users/LChernigovskaya/orgs","repos_url":"https://api.github.com/users/LChernigovskaya/repos","events_url":"https://api.github.com/users/LChernigovskaya/events{/privacy}","received_events_url":"https://api.github.com/users/LChernigovskaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LChernigovskaya/Homework","description":"","fork":false,"url":"https://api.github.com/repos/LChernigovskaya/Homework","forks_url":"https://api.github.com/repos/LChernigovskaya/Homework/forks","keys_url":"https://api.github.com/repos/LChernigovskaya/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LChernigovskaya/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LChernigovskaya/Homework/teams","hooks_url":"https://api.github.com/repos/LChernigovskaya/Homework/hooks","issue_events_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/LChernigovskaya/Homework/events","assignees_url":"https://api.github.com/repos/LChernigovskaya/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/LChernigovskaya/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/LChernigovskaya/Homework/tags","blobs_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LChernigovskaya/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/LChernigovskaya/Homework/languages","stargazers_url":"https://api.github.com/repos/LChernigovskaya/Homework/stargazers","contributors_url":"https://api.github.com/repos/LChernigovskaya/Homework/contributors","subscribers_url":"https://api.github.com/repos/LChernigovskaya/Homework/subscribers","subscription_url":"https://api.github.com/repos/LChernigovskaya/Homework/subscription","commits_url":"https://api.github.com/repos/LChernigovskaya/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/LChernigovskaya/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/LChernigovskaya/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/LChernigovskaya/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LChernigovskaya/Homework/merges","archive_url":"https://api.github.com/repos/LChernigovskaya/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LChernigovskaya/Homework/downloads","issues_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/LChernigovskaya/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/LChernigovskaya/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LChernigovskaya/Homework/labels{/name}","releases_url":"https://api.github.com/repos/LChernigovskaya/Homework/releases{/id}","created_at":"2015-02-16T16:41:37Z","updated_at":"2015-04-07T22:56:06Z","pushed_at":"2015-04-08T11:45:38Z","git_url":"git://github.com/LChernigovskaya/Homework.git","ssh_url":"git@github.com:LChernigovskaya/Homework.git","clone_url":"https://github.com/LChernigovskaya/Homework.git","svn_url":"https://github.com/LChernigovskaya/Homework","homepage":null,"size":432,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"LChernigovskaya:master","ref":"master","sha":"47cf6be1014e45d9f36828148e7ec1624e289eea","user":{"login":"LChernigovskaya","id":10995386,"avatar_url":"https://avatars.githubusercontent.com/u/10995386?v=3","gravatar_id":"","url":"https://api.github.com/users/LChernigovskaya","html_url":"https://github.com/LChernigovskaya","followers_url":"https://api.github.com/users/LChernigovskaya/followers","following_url":"https://api.github.com/users/LChernigovskaya/following{/other_user}","gists_url":"https://api.github.com/users/LChernigovskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/LChernigovskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LChernigovskaya/subscriptions","organizations_url":"https://api.github.com/users/LChernigovskaya/orgs","repos_url":"https://api.github.com/users/LChernigovskaya/repos","events_url":"https://api.github.com/users/LChernigovskaya/events{/privacy}","received_events_url":"https://api.github.com/users/LChernigovskaya/received_events","type":"User","site_admin":false},"repo":{"id":30877415,"name":"Homework","full_name":"LChernigovskaya/Homework","owner":{"login":"LChernigovskaya","id":10995386,"avatar_url":"https://avatars.githubusercontent.com/u/10995386?v=3","gravatar_id":"","url":"https://api.github.com/users/LChernigovskaya","html_url":"https://github.com/LChernigovskaya","followers_url":"https://api.github.com/users/LChernigovskaya/followers","following_url":"https://api.github.com/users/LChernigovskaya/following{/other_user}","gists_url":"https://api.github.com/users/LChernigovskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/LChernigovskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LChernigovskaya/subscriptions","organizations_url":"https://api.github.com/users/LChernigovskaya/orgs","repos_url":"https://api.github.com/users/LChernigovskaya/repos","events_url":"https://api.github.com/users/LChernigovskaya/events{/privacy}","received_events_url":"https://api.github.com/users/LChernigovskaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LChernigovskaya/Homework","description":"","fork":false,"url":"https://api.github.com/repos/LChernigovskaya/Homework","forks_url":"https://api.github.com/repos/LChernigovskaya/Homework/forks","keys_url":"https://api.github.com/repos/LChernigovskaya/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LChernigovskaya/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LChernigovskaya/Homework/teams","hooks_url":"https://api.github.com/repos/LChernigovskaya/Homework/hooks","issue_events_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/LChernigovskaya/Homework/events","assignees_url":"https://api.github.com/repos/LChernigovskaya/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/LChernigovskaya/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/LChernigovskaya/Homework/tags","blobs_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LChernigovskaya/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/LChernigovskaya/Homework/languages","stargazers_url":"https://api.github.com/repos/LChernigovskaya/Homework/stargazers","contributors_url":"https://api.github.com/repos/LChernigovskaya/Homework/contributors","subscribers_url":"https://api.github.com/repos/LChernigovskaya/Homework/subscribers","subscription_url":"https://api.github.com/repos/LChernigovskaya/Homework/subscription","commits_url":"https://api.github.com/repos/LChernigovskaya/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/LChernigovskaya/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/LChernigovskaya/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/LChernigovskaya/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/LChernigovskaya/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LChernigovskaya/Homework/merges","archive_url":"https://api.github.com/repos/LChernigovskaya/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LChernigovskaya/Homework/downloads","issues_url":"https://api.github.com/repos/LChernigovskaya/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/LChernigovskaya/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/LChernigovskaya/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/LChernigovskaya/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LChernigovskaya/Homework/labels{/name}","releases_url":"https://api.github.com/repos/LChernigovskaya/Homework/releases{/id}","created_at":"2015-02-16T16:41:37Z","updated_at":"2015-04-07T22:56:06Z","pushed_at":"2015-04-08T11:45:38Z","git_url":"git://github.com/LChernigovskaya/Homework.git","ssh_url":"git@github.com:LChernigovskaya/Homework.git","clone_url":"https://github.com/LChernigovskaya/Homework.git","svn_url":"https://github.com/LChernigovskaya/Homework","homepage":null,"size":432,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3"},"html":{"href":"https://github.com/LChernigovskaya/Homework/pull/3"},"issue":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/issues/3"},"comments":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/LChernigovskaya/Homework/statuses/4f3bc001fc739a3e833f4c796af2d2252994694d"}}}}