{"action":"created","comment":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/42011879","id":42011879,"diff_hunk":"@@ -0,0 +1,36 @@\n+class Animation\n+  def initialize(picture,console_width=80)\n+    @pict = picture\n+    @output=[]\n+    @pict.size.times do\n+      @output.push('')\n+    end\n+    console_width.times do\n+      (0..3).each do |i|\n+        @output[i]+=' '\n+      end\n+    end\n+  end\n+  def paint(console_width=80,pause = 0.05)\n+    tmp_pict = @pict\n+    (console_width+tmp_pict[0].length).times do\n+      (0..3).each do |i|\n+        @output[i].slice!(0)\n+        if tmp_pict[i].nil?\n+          tmp_pict[i] +=' '\n+        else\n+\n+          tmp =  tmp_pict[i].slice! 0\n+          if !tmp.nil?\n+           @output[i] += tmp\n+          end\n+        end\n+\n+      end\n+      puts @output\n+      sleep pause\n+      system('clear')\n+    end\n+  end\n+","path":"2015/MaxShastel/task1/animation.rb","position":35,"original_position":35,"commit_id":"dee71738bdafa247d44ed802fb1708cd58c85241","original_commit_id":"dee71738bdafa247d44ed802fb1708cd58c85241","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at class body end.","created_at":"2015-10-14T15:49:14Z","updated_at":"2015-10-14T15:49:14Z","html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/128#discussion_r42011879","pull_request_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128","_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/42011879"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/128#discussion_r42011879"},"pull_request":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128","id":47677426,"html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/128","diff_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/128.diff","patch_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/128.patch","issue_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/128","number":128,"state":"open","locked":false,"title":"Add first task","user":{"login":"Shastel","id":6017041,"avatar_url":"https://avatars.githubusercontent.com/u/6017041?v=3","gravatar_id":"","url":"https://api.github.com/users/Shastel","html_url":"https://github.com/Shastel","followers_url":"https://api.github.com/users/Shastel/followers","following_url":"https://api.github.com/users/Shastel/following{/other_user}","gists_url":"https://api.github.com/users/Shastel/gists{/gist_id}","starred_url":"https://api.github.com/users/Shastel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shastel/subscriptions","organizations_url":"https://api.github.com/users/Shastel/orgs","repos_url":"https://api.github.com/users/Shastel/repos","events_url":"https://api.github.com/users/Shastel/events{/privacy}","received_events_url":"https://api.github.com/users/Shastel/received_events","type":"User","site_admin":false},"body":"Run by script.rb","created_at":"2015-10-14T15:49:07Z","updated_at":"2015-10-14T15:49:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52f2f59bce5e4034530dc9c5408f6d03e2a4d46e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128/commits","review_comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128/comments","review_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/128/comments","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/dee71738bdafa247d44ed802fb1708cd58c85241","head":{"label":"Shastel:master","ref":"master","sha":"dee71738bdafa247d44ed802fb1708cd58c85241","user":{"login":"Shastel","id":6017041,"avatar_url":"https://avatars.githubusercontent.com/u/6017041?v=3","gravatar_id":"","url":"https://api.github.com/users/Shastel","html_url":"https://github.com/Shastel","followers_url":"https://api.github.com/users/Shastel/followers","following_url":"https://api.github.com/users/Shastel/following{/other_user}","gists_url":"https://api.github.com/users/Shastel/gists{/gist_id}","starred_url":"https://api.github.com/users/Shastel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shastel/subscriptions","organizations_url":"https://api.github.com/users/Shastel/orgs","repos_url":"https://api.github.com/users/Shastel/repos","events_url":"https://api.github.com/users/Shastel/events{/privacy}","received_events_url":"https://api.github.com/users/Shastel/received_events","type":"User","site_admin":false},"repo":{"id":44257571,"name":"bsuir-courses","full_name":"Shastel/bsuir-courses","owner":{"login":"Shastel","id":6017041,"avatar_url":"https://avatars.githubusercontent.com/u/6017041?v=3","gravatar_id":"","url":"https://api.github.com/users/Shastel","html_url":"https://github.com/Shastel","followers_url":"https://api.github.com/users/Shastel/followers","following_url":"https://api.github.com/users/Shastel/following{/other_user}","gists_url":"https://api.github.com/users/Shastel/gists{/gist_id}","starred_url":"https://api.github.com/users/Shastel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shastel/subscriptions","organizations_url":"https://api.github.com/users/Shastel/orgs","repos_url":"https://api.github.com/users/Shastel/repos","events_url":"https://api.github.com/users/Shastel/events{/privacy}","received_events_url":"https://api.github.com/users/Shastel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shastel/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":true,"url":"https://api.github.com/repos/Shastel/bsuir-courses","forks_url":"https://api.github.com/repos/Shastel/bsuir-courses/forks","keys_url":"https://api.github.com/repos/Shastel/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shastel/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shastel/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/Shastel/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/Shastel/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/Shastel/bsuir-courses/events","assignees_url":"https://api.github.com/repos/Shastel/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/Shastel/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/Shastel/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/Shastel/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shastel/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shastel/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shastel/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shastel/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/Shastel/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/Shastel/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/Shastel/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/Shastel/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/Shastel/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/Shastel/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shastel/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shastel/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shastel/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shastel/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/Shastel/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shastel/bsuir-courses/merges","archive_url":"https://api.github.com/repos/Shastel/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shastel/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/Shastel/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/Shastel/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/Shastel/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/Shastel/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shastel/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/Shastel/bsuir-courses/releases{/id}","created_at":"2015-10-14T15:34:27Z","updated_at":"2015-10-14T15:34:29Z","pushed_at":"2015-10-14T15:47:08Z","git_url":"git://github.com/Shastel/bsuir-courses.git","ssh_url":"git@github.com:Shastel/bsuir-courses.git","clone_url":"https://github.com/Shastel/bsuir-courses.git","svn_url":"https://github.com/Shastel/bsuir-courses","homepage":null,"size":2868,"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":"rubyroidlabs:master","ref":"master","sha":"245f04b77171fb38ebee851829fc7423cec16f2a","user":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":14405320,"name":"bsuir-courses","full_name":"rubyroidlabs/bsuir-courses","owner":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyroidlabs/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":false,"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses","forks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/forks","keys_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/events","assignees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/merges","archive_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/releases{/id}","created_at":"2013-11-14T19:55:12Z","updated_at":"2015-10-14T07:21:41Z","pushed_at":"2015-10-14T15:49:08Z","git_url":"git://github.com/rubyroidlabs/bsuir-courses.git","ssh_url":"git@github.com:rubyroidlabs/bsuir-courses.git","clone_url":"https://github.com/rubyroidlabs/bsuir-courses.git","svn_url":"https://github.com/rubyroidlabs/bsuir-courses","homepage":null,"size":2868,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":66,"forks":120,"open_issues":66,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/128"},"issue":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/128"},"comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/dee71738bdafa247d44ed802fb1708cd58c85241"}}}}