{"action":"created","comment":{"url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/comments/227342271","pull_request_review_id":167359350,"id":227342271,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzM0MjI3MQ==","diff_hunk":"@@ -0,0 +1,97 @@\n+﻿// <copyright file=\"Replacer.cs\" company=\"Oleksandr Brylov\">\n+// Copyright (c) Oleksandr Brylov. Task 4 - File Parser\n+// </copyright>\n+\n+namespace FileParser\n+{\n+    using System.IO;\n+    using System.Text;\n+    using System.Text.RegularExpressions;\n+\n+    /// <summary>\n+    /// Implementing the logic of parsing:\n+    /// Contains method that find entries and replace it with another string.\n+    /// Contains fields required for that method.\n+    /// </summary>\n+    public class Replacer : IFileParser\n+    {\n+        private string _path;\n+        private string _find;\n+        private string _replacement;\n+\n+        /// <summary>\n+        /// Initializes a new instance of the <see cref=\"Replacer\"/> class.\n+        /// </summary>\n+        /// <param name=\"path\"> Path to the file to parse. </param>\n+        /// <param name=\"find\"> String to find in the file. </param>\n+        /// <param name=\"replace\"> String to be replaced on. </param>\n+        public Replacer(string path, string find, string replace)\n+        {\n+            this._path = path;\n+            this._find = find;\n+            this._replacement = replace;\n+        }\n+\n+        /// <summary>\n+        /// Replaces all entries of the string.\n+        /// Throws custom exceptions if failed to manage files.\n+        /// </summary>\n+        /// <returns> Total number of entries replaced. </returns>\n+        public int ParseFile()","path":"Task04FileParser/FileParser/Replacer.cs","position":44,"original_position":40,"commit_id":"0659c2884816019a5ece57c07278e3a0b01a0ac0","original_commit_id":"5848784d5778652bac69d372cf356ffdba51120a","user":{"login":"FSuhov","id":31159968,"node_id":"MDQ6VXNlcjMxMTU5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/31159968?v=4","gravatar_id":"","url":"https://api.github.com/users/FSuhov","html_url":"https://github.com/FSuhov","followers_url":"https://api.github.com/users/FSuhov/followers","following_url":"https://api.github.com/users/FSuhov/following{/other_user}","gists_url":"https://api.github.com/users/FSuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/FSuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSuhov/subscriptions","organizations_url":"https://api.github.com/users/FSuhov/orgs","repos_url":"https://api.github.com/users/FSuhov/repos","events_url":"https://api.github.com/users/FSuhov/events{/privacy}","received_events_url":"https://api.github.com/users/FSuhov/received_events","type":"User","site_admin":false},"body":"Fixed, thanks","created_at":"2018-10-23T11:15:57Z","updated_at":"2018-10-23T11:15:57Z","html_url":"https://github.com/FSuhov/SFS-FirstDemo/pull/1#discussion_r227342271","pull_request_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/comments/227342271"},"html":{"href":"https://github.com/FSuhov/SFS-FirstDemo/pull/1#discussion_r227342271"},"pull_request":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1"}},"in_reply_to_id":226853837},"pull_request":{"url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1","id":224475448,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NDc1NDQ4","html_url":"https://github.com/FSuhov/SFS-FirstDemo/pull/1","diff_url":"https://github.com/FSuhov/SFS-FirstDemo/pull/1.diff","patch_url":"https://github.com/FSuhov/SFS-FirstDemo/pull/1.patch","issue_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/1","number":1,"state":"open","locked":false,"title":"All projects transfered to Review branch","user":{"login":"FSuhov","id":31159968,"node_id":"MDQ6VXNlcjMxMTU5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/31159968?v=4","gravatar_id":"","url":"https://api.github.com/users/FSuhov","html_url":"https://github.com/FSuhov","followers_url":"https://api.github.com/users/FSuhov/followers","following_url":"https://api.github.com/users/FSuhov/following{/other_user}","gists_url":"https://api.github.com/users/FSuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/FSuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSuhov/subscriptions","organizations_url":"https://api.github.com/users/FSuhov/orgs","repos_url":"https://api.github.com/users/FSuhov/repos","events_url":"https://api.github.com/users/FSuhov/events{/privacy}","received_events_url":"https://api.github.com/users/FSuhov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-20T13:42:01Z","updated_at":"2018-10-23T11:15:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70fb235411b5853095c60c7f48a75ff76501200e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1/commits","review_comments_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1/comments","review_comment_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/1/comments","statuses_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/statuses/0659c2884816019a5ece57c07278e3a0b01a0ac0","head":{"label":"FSuhov:Review","ref":"Review","sha":"0659c2884816019a5ece57c07278e3a0b01a0ac0","user":{"login":"FSuhov","id":31159968,"node_id":"MDQ6VXNlcjMxMTU5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/31159968?v=4","gravatar_id":"","url":"https://api.github.com/users/FSuhov","html_url":"https://github.com/FSuhov","followers_url":"https://api.github.com/users/FSuhov/followers","following_url":"https://api.github.com/users/FSuhov/following{/other_user}","gists_url":"https://api.github.com/users/FSuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/FSuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSuhov/subscriptions","organizations_url":"https://api.github.com/users/FSuhov/orgs","repos_url":"https://api.github.com/users/FSuhov/repos","events_url":"https://api.github.com/users/FSuhov/events{/privacy}","received_events_url":"https://api.github.com/users/FSuhov/received_events","type":"User","site_admin":false},"repo":{"id":153908442,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM5MDg0NDI=","name":"SFS-FirstDemo","full_name":"FSuhov/SFS-FirstDemo","private":false,"owner":{"login":"FSuhov","id":31159968,"node_id":"MDQ6VXNlcjMxMTU5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/31159968?v=4","gravatar_id":"","url":"https://api.github.com/users/FSuhov","html_url":"https://github.com/FSuhov","followers_url":"https://api.github.com/users/FSuhov/followers","following_url":"https://api.github.com/users/FSuhov/following{/other_user}","gists_url":"https://api.github.com/users/FSuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/FSuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSuhov/subscriptions","organizations_url":"https://api.github.com/users/FSuhov/orgs","repos_url":"https://api.github.com/users/FSuhov/repos","events_url":"https://api.github.com/users/FSuhov/events{/privacy}","received_events_url":"https://api.github.com/users/FSuhov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/FSuhov/SFS-FirstDemo","description":"Elementary tasks for code review","fork":false,"url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo","forks_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/forks","keys_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/teams","hooks_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/hooks","issue_events_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/events{/number}","events_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/events","assignees_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/assignees{/user}","branches_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/branches{/branch}","tags_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/tags","blobs_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/refs{/sha}","trees_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/statuses/{sha}","languages_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/languages","stargazers_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/stargazers","contributors_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/contributors","subscribers_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/subscribers","subscription_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/subscription","commits_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/commits{/sha}","git_commits_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/commits{/sha}","comments_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/comments{/number}","issue_comment_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/comments{/number}","contents_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/contents/{+path}","compare_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/merges","archive_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/downloads","issues_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues{/number}","pulls_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls{/number}","milestones_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/milestones{/number}","notifications_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/labels{/name}","releases_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/releases{/id}","deployments_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/deployments","created_at":"2018-10-20T13:29:06Z","updated_at":"2018-10-21T08:55:13Z","pushed_at":"2018-10-23T07:29:34Z","git_url":"git://github.com/FSuhov/SFS-FirstDemo.git","ssh_url":"git@github.com:FSuhov/SFS-FirstDemo.git","clone_url":"https://github.com/FSuhov/SFS-FirstDemo.git","svn_url":"https://github.com/FSuhov/SFS-FirstDemo","homepage":null,"size":75,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"base":{"label":"FSuhov:master","ref":"master","sha":"beeb56f8d0e16b9348ff545d29fa21a326dc7c4d","user":{"login":"FSuhov","id":31159968,"node_id":"MDQ6VXNlcjMxMTU5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/31159968?v=4","gravatar_id":"","url":"https://api.github.com/users/FSuhov","html_url":"https://github.com/FSuhov","followers_url":"https://api.github.com/users/FSuhov/followers","following_url":"https://api.github.com/users/FSuhov/following{/other_user}","gists_url":"https://api.github.com/users/FSuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/FSuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSuhov/subscriptions","organizations_url":"https://api.github.com/users/FSuhov/orgs","repos_url":"https://api.github.com/users/FSuhov/repos","events_url":"https://api.github.com/users/FSuhov/events{/privacy}","received_events_url":"https://api.github.com/users/FSuhov/received_events","type":"User","site_admin":false},"repo":{"id":153908442,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM5MDg0NDI=","name":"SFS-FirstDemo","full_name":"FSuhov/SFS-FirstDemo","private":false,"owner":{"login":"FSuhov","id":31159968,"node_id":"MDQ6VXNlcjMxMTU5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/31159968?v=4","gravatar_id":"","url":"https://api.github.com/users/FSuhov","html_url":"https://github.com/FSuhov","followers_url":"https://api.github.com/users/FSuhov/followers","following_url":"https://api.github.com/users/FSuhov/following{/other_user}","gists_url":"https://api.github.com/users/FSuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/FSuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSuhov/subscriptions","organizations_url":"https://api.github.com/users/FSuhov/orgs","repos_url":"https://api.github.com/users/FSuhov/repos","events_url":"https://api.github.com/users/FSuhov/events{/privacy}","received_events_url":"https://api.github.com/users/FSuhov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/FSuhov/SFS-FirstDemo","description":"Elementary tasks for code review","fork":false,"url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo","forks_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/forks","keys_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/teams","hooks_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/hooks","issue_events_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/events{/number}","events_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/events","assignees_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/assignees{/user}","branches_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/branches{/branch}","tags_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/tags","blobs_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/refs{/sha}","trees_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/statuses/{sha}","languages_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/languages","stargazers_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/stargazers","contributors_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/contributors","subscribers_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/subscribers","subscription_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/subscription","commits_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/commits{/sha}","git_commits_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/git/commits{/sha}","comments_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/comments{/number}","issue_comment_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/comments{/number}","contents_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/contents/{+path}","compare_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/merges","archive_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/downloads","issues_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues{/number}","pulls_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls{/number}","milestones_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/milestones{/number}","notifications_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/labels{/name}","releases_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/releases{/id}","deployments_url":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/deployments","created_at":"2018-10-20T13:29:06Z","updated_at":"2018-10-21T08:55:13Z","pushed_at":"2018-10-23T07:29:34Z","git_url":"git://github.com/FSuhov/SFS-FirstDemo.git","ssh_url":"git@github.com:FSuhov/SFS-FirstDemo.git","clone_url":"https://github.com/FSuhov/SFS-FirstDemo.git","svn_url":"https://github.com/FSuhov/SFS-FirstDemo","homepage":null,"size":75,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1"},"html":{"href":"https://github.com/FSuhov/SFS-FirstDemo/pull/1"},"issue":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/1"},"comments":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/FSuhov/SFS-FirstDemo/statuses/0659c2884816019a5ece57c07278e3a0b01a0ac0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"FSuhov"}}