{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fts_24/pulls/comments/28478842","id":28478842,"diff_hunk":"@@ -1,4 +1,10 @@\n class Examination < ActiveRecord::Base\n   belongs_to :user\n   belongs_to :subject\n+\n+  def time_remaining\n+    unless submited_at.nil?\n+      (subject.max_time * 60 - (submited_at - started_at))","path":"app/models/examination.rb","position":7,"original_position":7,"commit_id":"0c79ed8fe6ed64d4c5945e3cf6736a2454d0ce93","original_commit_id":"0c79ed8fe6ed64d4c5945e3cf6736a2454d0ce93","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"remove `()` at first","created_at":"2015-04-16T01:47:06Z","updated_at":"2015-04-16T01:47:06Z","html_url":"https://github.com/framgia/fts_24/pull/4#discussion_r28478842","pull_request_url":"https://api.github.com/repos/framgia/fts_24/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_24/pulls/comments/28478842"},"html":{"href":"https://github.com/framgia/fts_24/pull/4#discussion_r28478842"},"pull_request":{"href":"https://api.github.com/repos/framgia/fts_24/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fts_24/pulls/4","id":33338385,"html_url":"https://github.com/framgia/fts_24/pull/4","diff_url":"https://github.com/framgia/fts_24/pull/4.diff","patch_url":"https://github.com/framgia/fts_24/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fts_24/issues/4","number":4,"state":"open","locked":false,"title":"Examination: created","user":{"login":"nguyenduyta","id":11607910,"avatar_url":"https://avatars.githubusercontent.com/u/11607910?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenduyta","html_url":"https://github.com/nguyenduyta","followers_url":"https://api.github.com/users/nguyenduyta/followers","following_url":"https://api.github.com/users/nguyenduyta/following{/other_user}","gists_url":"https://api.github.com/users/nguyenduyta/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenduyta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenduyta/subscriptions","organizations_url":"https://api.github.com/users/nguyenduyta/orgs","repos_url":"https://api.github.com/users/nguyenduyta/repos","events_url":"https://api.github.com/users/nguyenduyta/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenduyta/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-15T09:47:58Z","updated_at":"2015-04-16T01:47:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29412a20e4561a2728710d269fc1f340397d8c85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fts_24/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fts_24/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fts_24/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fts_24/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fts_24/statuses/0c79ed8fe6ed64d4c5945e3cf6736a2454d0ce93","head":{"label":"nguyenduyta:examination","ref":"examination","sha":"0c79ed8fe6ed64d4c5945e3cf6736a2454d0ce93","user":{"login":"nguyenduyta","id":11607910,"avatar_url":"https://avatars.githubusercontent.com/u/11607910?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenduyta","html_url":"https://github.com/nguyenduyta","followers_url":"https://api.github.com/users/nguyenduyta/followers","following_url":"https://api.github.com/users/nguyenduyta/following{/other_user}","gists_url":"https://api.github.com/users/nguyenduyta/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenduyta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenduyta/subscriptions","organizations_url":"https://api.github.com/users/nguyenduyta/orgs","repos_url":"https://api.github.com/users/nguyenduyta/repos","events_url":"https://api.github.com/users/nguyenduyta/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenduyta/received_events","type":"User","site_admin":false},"repo":{"id":33918220,"name":"fts_24","full_name":"nguyenduyta/fts_24","owner":{"login":"nguyenduyta","id":11607910,"avatar_url":"https://avatars.githubusercontent.com/u/11607910?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenduyta","html_url":"https://github.com/nguyenduyta","followers_url":"https://api.github.com/users/nguyenduyta/followers","following_url":"https://api.github.com/users/nguyenduyta/following{/other_user}","gists_url":"https://api.github.com/users/nguyenduyta/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenduyta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenduyta/subscriptions","organizations_url":"https://api.github.com/users/nguyenduyta/orgs","repos_url":"https://api.github.com/users/nguyenduyta/repos","events_url":"https://api.github.com/users/nguyenduyta/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenduyta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenduyta/fts_24","description":"Framgia Test System (training)","fork":true,"url":"https://api.github.com/repos/nguyenduyta/fts_24","forks_url":"https://api.github.com/repos/nguyenduyta/fts_24/forks","keys_url":"https://api.github.com/repos/nguyenduyta/fts_24/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenduyta/fts_24/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenduyta/fts_24/teams","hooks_url":"https://api.github.com/repos/nguyenduyta/fts_24/hooks","issue_events_url":"https://api.github.com/repos/nguyenduyta/fts_24/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenduyta/fts_24/events","assignees_url":"https://api.github.com/repos/nguyenduyta/fts_24/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenduyta/fts_24/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenduyta/fts_24/tags","blobs_url":"https://api.github.com/repos/nguyenduyta/fts_24/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenduyta/fts_24/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenduyta/fts_24/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenduyta/fts_24/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenduyta/fts_24/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenduyta/fts_24/languages","stargazers_url":"https://api.github.com/repos/nguyenduyta/fts_24/stargazers","contributors_url":"https://api.github.com/repos/nguyenduyta/fts_24/contributors","subscribers_url":"https://api.github.com/repos/nguyenduyta/fts_24/subscribers","subscription_url":"https://api.github.com/repos/nguyenduyta/fts_24/subscription","commits_url":"https://api.github.com/repos/nguyenduyta/fts_24/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenduyta/fts_24/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenduyta/fts_24/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenduyta/fts_24/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenduyta/fts_24/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenduyta/fts_24/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenduyta/fts_24/merges","archive_url":"https://api.github.com/repos/nguyenduyta/fts_24/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenduyta/fts_24/downloads","issues_url":"https://api.github.com/repos/nguyenduyta/fts_24/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenduyta/fts_24/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenduyta/fts_24/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenduyta/fts_24/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenduyta/fts_24/labels{/name}","releases_url":"https://api.github.com/repos/nguyenduyta/fts_24/releases{/id}","created_at":"2015-04-14T07:49:25Z","updated_at":"2015-03-17T07:38:39Z","pushed_at":"2015-04-15T09:45:14Z","git_url":"git://github.com/nguyenduyta/fts_24.git","ssh_url":"git@github.com:nguyenduyta/fts_24.git","clone_url":"https://github.com/nguyenduyta/fts_24.git","svn_url":"https://github.com/nguyenduyta/fts_24","homepage":null,"size":72,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"dee49c96d0015b55067668468a7252216dc53bb7","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":32378428,"name":"fts_24","full_name":"framgia/fts_24","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fts_24","description":"Framgia Test System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fts_24","forks_url":"https://api.github.com/repos/framgia/fts_24/forks","keys_url":"https://api.github.com/repos/framgia/fts_24/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fts_24/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fts_24/teams","hooks_url":"https://api.github.com/repos/framgia/fts_24/hooks","issue_events_url":"https://api.github.com/repos/framgia/fts_24/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fts_24/events","assignees_url":"https://api.github.com/repos/framgia/fts_24/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fts_24/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fts_24/tags","blobs_url":"https://api.github.com/repos/framgia/fts_24/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fts_24/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fts_24/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fts_24/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fts_24/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fts_24/languages","stargazers_url":"https://api.github.com/repos/framgia/fts_24/stargazers","contributors_url":"https://api.github.com/repos/framgia/fts_24/contributors","subscribers_url":"https://api.github.com/repos/framgia/fts_24/subscribers","subscription_url":"https://api.github.com/repos/framgia/fts_24/subscription","commits_url":"https://api.github.com/repos/framgia/fts_24/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fts_24/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fts_24/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fts_24/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fts_24/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fts_24/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fts_24/merges","archive_url":"https://api.github.com/repos/framgia/fts_24/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fts_24/downloads","issues_url":"https://api.github.com/repos/framgia/fts_24/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fts_24/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fts_24/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fts_24/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fts_24/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fts_24/releases{/id}","created_at":"2015-03-17T07:38:39Z","updated_at":"2015-03-17T07:38:39Z","pushed_at":"2015-04-15T09:47:58Z","git_url":"git://github.com/framgia/fts_24.git","ssh_url":"git@github.com:framgia/fts_24.git","clone_url":"https://github.com/framgia/fts_24.git","svn_url":"https://github.com/framgia/fts_24","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_24/pulls/4"},"html":{"href":"https://github.com/framgia/fts_24/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fts_24/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fts_24/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fts_24/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fts_24/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fts_24/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fts_24/statuses/0c79ed8fe6ed64d4c5945e3cf6736a2454d0ce93"}}}}