{"action":"created","comment":{"url":"https://api.github.com/repos/newmen/versatile-diamond/pulls/comments/30777151","id":30777151,"diff_hunk":"@@ -0,0 +1,32 @@\n+#include \"saver_counter.h\"\n+#include \"decorator/item_wrapper.h\"\n+\n+namespace vd {\n+\n+QueueItem *SaverCounter::wrapItem(QueueItem *item)\n+{\n+    if (isNeedSave())\n+    {\n+        resetTime();\n+        return new ItemWrapper(item, this);\n+    }\n+\n+    return item;\n+}\n+\n+bool SaverCounter::isNeedSave()\n+{\n+    if (_accTime >= _step)\n+    {\n+        return true;\n+    }\n+    return false;\n+}\n+\n+void SaverCounter::resetTime()\n+{\n+    _accTime -= _step;","path":"engine/cpp/savers/saver_counter.cpp","position":28,"original_position":28,"commit_id":"c6349500f1e278dcf96f1bc9a66caca87a1f75c8","original_commit_id":"c6349500f1e278dcf96f1bc9a66caca87a1f75c8","user":{"login":"newmen","id":983853,"avatar_url":"https://avatars.githubusercontent.com/u/983853?v=3","gravatar_id":"","url":"https://api.github.com/users/newmen","html_url":"https://github.com/newmen","followers_url":"https://api.github.com/users/newmen/followers","following_url":"https://api.github.com/users/newmen/following{/other_user}","gists_url":"https://api.github.com/users/newmen/gists{/gist_id}","starred_url":"https://api.github.com/users/newmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newmen/subscriptions","organizations_url":"https://api.github.com/users/newmen/orgs","repos_url":"https://api.github.com/users/newmen/repos","events_url":"https://api.github.com/users/newmen/events{/privacy}","received_events_url":"https://api.github.com/users/newmen/received_events","type":"User","site_admin":false},"body":"Если это действие перенести туда где вызывается этот метод, то ассерт можно и не пихать, ибо и так буде понятно, что такого быть не может","created_at":"2015-05-21T07:03:37Z","updated_at":"2015-05-21T07:03:37Z","html_url":"https://github.com/newmen/versatile-diamond/pull/27#discussion_r30777151","pull_request_url":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/newmen/versatile-diamond/pulls/comments/30777151"},"html":{"href":"https://github.com/newmen/versatile-diamond/pull/27#discussion_r30777151"},"pull_request":{"href":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27","id":35756902,"html_url":"https://github.com/newmen/versatile-diamond/pull/27","diff_url":"https://github.com/newmen/versatile-diamond/pull/27.diff","patch_url":"https://github.com/newmen/versatile-diamond/pull/27.patch","issue_url":"https://api.github.com/repos/newmen/versatile-diamond/issues/27","number":27,"state":"open","locked":false,"title":"Dump","user":{"login":"Dobr1802","id":6859591,"avatar_url":"https://avatars.githubusercontent.com/u/6859591?v=3","gravatar_id":"","url":"https://api.github.com/users/Dobr1802","html_url":"https://github.com/Dobr1802","followers_url":"https://api.github.com/users/Dobr1802/followers","following_url":"https://api.github.com/users/Dobr1802/following{/other_user}","gists_url":"https://api.github.com/users/Dobr1802/gists{/gist_id}","starred_url":"https://api.github.com/users/Dobr1802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dobr1802/subscriptions","organizations_url":"https://api.github.com/users/Dobr1802/orgs","repos_url":"https://api.github.com/users/Dobr1802/repos","events_url":"https://api.github.com/users/Dobr1802/events{/privacy}","received_events_url":"https://api.github.com/users/Dobr1802/received_events","type":"User","site_admin":false},"body":"rename builder->counter","created_at":"2015-05-19T17:54:47Z","updated_at":"2015-05-21T07:03:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bbdf2d19f68d34bee6bdd2a1beb7ba88e7c9374","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27/commits","review_comments_url":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27/comments","review_comment_url":"https://api.github.com/repos/newmen/versatile-diamond/pulls/comments{/number}","comments_url":"https://api.github.com/repos/newmen/versatile-diamond/issues/27/comments","statuses_url":"https://api.github.com/repos/newmen/versatile-diamond/statuses/c6349500f1e278dcf96f1bc9a66caca87a1f75c8","head":{"label":"Dobr1802:dump","ref":"dump","sha":"c6349500f1e278dcf96f1bc9a66caca87a1f75c8","user":{"login":"Dobr1802","id":6859591,"avatar_url":"https://avatars.githubusercontent.com/u/6859591?v=3","gravatar_id":"","url":"https://api.github.com/users/Dobr1802","html_url":"https://github.com/Dobr1802","followers_url":"https://api.github.com/users/Dobr1802/followers","following_url":"https://api.github.com/users/Dobr1802/following{/other_user}","gists_url":"https://api.github.com/users/Dobr1802/gists{/gist_id}","starred_url":"https://api.github.com/users/Dobr1802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dobr1802/subscriptions","organizations_url":"https://api.github.com/users/Dobr1802/orgs","repos_url":"https://api.github.com/users/Dobr1802/repos","events_url":"https://api.github.com/users/Dobr1802/events{/privacy}","received_events_url":"https://api.github.com/users/Dobr1802/received_events","type":"User","site_admin":false},"repo":{"id":17433783,"name":"versatile-diamond","full_name":"Dobr1802/versatile-diamond","owner":{"login":"Dobr1802","id":6859591,"avatar_url":"https://avatars.githubusercontent.com/u/6859591?v=3","gravatar_id":"","url":"https://api.github.com/users/Dobr1802","html_url":"https://github.com/Dobr1802","followers_url":"https://api.github.com/users/Dobr1802/followers","following_url":"https://api.github.com/users/Dobr1802/following{/other_user}","gists_url":"https://api.github.com/users/Dobr1802/gists{/gist_id}","starred_url":"https://api.github.com/users/Dobr1802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dobr1802/subscriptions","organizations_url":"https://api.github.com/users/Dobr1802/orgs","repos_url":"https://api.github.com/users/Dobr1802/repos","events_url":"https://api.github.com/users/Dobr1802/events{/privacy}","received_events_url":"https://api.github.com/users/Dobr1802/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dobr1802/versatile-diamond","description":"Modeling crystal growth by gas-solid phase transition at atomic level","fork":true,"url":"https://api.github.com/repos/Dobr1802/versatile-diamond","forks_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/forks","keys_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/teams","hooks_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/hooks","issue_events_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/issues/events{/number}","events_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/events","assignees_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/assignees{/user}","branches_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/branches{/branch}","tags_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/tags","blobs_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/statuses/{sha}","languages_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/languages","stargazers_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/stargazers","contributors_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/contributors","subscribers_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/subscribers","subscription_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/subscription","commits_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/contents/{+path}","compare_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/merges","archive_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/downloads","issues_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/issues{/number}","pulls_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/pulls{/number}","milestones_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/milestones{/number}","notifications_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/labels{/name}","releases_url":"https://api.github.com/repos/Dobr1802/versatile-diamond/releases{/id}","created_at":"2014-03-05T08:57:24Z","updated_at":"2015-02-17T17:45:11Z","pushed_at":"2015-05-20T18:31:08Z","git_url":"git://github.com/Dobr1802/versatile-diamond.git","ssh_url":"git@github.com:Dobr1802/versatile-diamond.git","clone_url":"https://github.com/Dobr1802/versatile-diamond.git","svn_url":"https://github.com/Dobr1802/versatile-diamond","homepage":"","size":16781,"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":"newmen:saving","ref":"saving","sha":"52645e482ee2b10624271255c8c87cb803496dd8","user":{"login":"newmen","id":983853,"avatar_url":"https://avatars.githubusercontent.com/u/983853?v=3","gravatar_id":"","url":"https://api.github.com/users/newmen","html_url":"https://github.com/newmen","followers_url":"https://api.github.com/users/newmen/followers","following_url":"https://api.github.com/users/newmen/following{/other_user}","gists_url":"https://api.github.com/users/newmen/gists{/gist_id}","starred_url":"https://api.github.com/users/newmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newmen/subscriptions","organizations_url":"https://api.github.com/users/newmen/orgs","repos_url":"https://api.github.com/users/newmen/repos","events_url":"https://api.github.com/users/newmen/events{/privacy}","received_events_url":"https://api.github.com/users/newmen/received_events","type":"User","site_admin":false},"repo":{"id":9896814,"name":"versatile-diamond","full_name":"newmen/versatile-diamond","owner":{"login":"newmen","id":983853,"avatar_url":"https://avatars.githubusercontent.com/u/983853?v=3","gravatar_id":"","url":"https://api.github.com/users/newmen","html_url":"https://github.com/newmen","followers_url":"https://api.github.com/users/newmen/followers","following_url":"https://api.github.com/users/newmen/following{/other_user}","gists_url":"https://api.github.com/users/newmen/gists{/gist_id}","starred_url":"https://api.github.com/users/newmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newmen/subscriptions","organizations_url":"https://api.github.com/users/newmen/orgs","repos_url":"https://api.github.com/users/newmen/repos","events_url":"https://api.github.com/users/newmen/events{/privacy}","received_events_url":"https://api.github.com/users/newmen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/newmen/versatile-diamond","description":"Modeling crystal growth by gas-solid phase transition at atomic level","fork":false,"url":"https://api.github.com/repos/newmen/versatile-diamond","forks_url":"https://api.github.com/repos/newmen/versatile-diamond/forks","keys_url":"https://api.github.com/repos/newmen/versatile-diamond/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newmen/versatile-diamond/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newmen/versatile-diamond/teams","hooks_url":"https://api.github.com/repos/newmen/versatile-diamond/hooks","issue_events_url":"https://api.github.com/repos/newmen/versatile-diamond/issues/events{/number}","events_url":"https://api.github.com/repos/newmen/versatile-diamond/events","assignees_url":"https://api.github.com/repos/newmen/versatile-diamond/assignees{/user}","branches_url":"https://api.github.com/repos/newmen/versatile-diamond/branches{/branch}","tags_url":"https://api.github.com/repos/newmen/versatile-diamond/tags","blobs_url":"https://api.github.com/repos/newmen/versatile-diamond/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newmen/versatile-diamond/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newmen/versatile-diamond/git/refs{/sha}","trees_url":"https://api.github.com/repos/newmen/versatile-diamond/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newmen/versatile-diamond/statuses/{sha}","languages_url":"https://api.github.com/repos/newmen/versatile-diamond/languages","stargazers_url":"https://api.github.com/repos/newmen/versatile-diamond/stargazers","contributors_url":"https://api.github.com/repos/newmen/versatile-diamond/contributors","subscribers_url":"https://api.github.com/repos/newmen/versatile-diamond/subscribers","subscription_url":"https://api.github.com/repos/newmen/versatile-diamond/subscription","commits_url":"https://api.github.com/repos/newmen/versatile-diamond/commits{/sha}","git_commits_url":"https://api.github.com/repos/newmen/versatile-diamond/git/commits{/sha}","comments_url":"https://api.github.com/repos/newmen/versatile-diamond/comments{/number}","issue_comment_url":"https://api.github.com/repos/newmen/versatile-diamond/issues/comments{/number}","contents_url":"https://api.github.com/repos/newmen/versatile-diamond/contents/{+path}","compare_url":"https://api.github.com/repos/newmen/versatile-diamond/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newmen/versatile-diamond/merges","archive_url":"https://api.github.com/repos/newmen/versatile-diamond/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newmen/versatile-diamond/downloads","issues_url":"https://api.github.com/repos/newmen/versatile-diamond/issues{/number}","pulls_url":"https://api.github.com/repos/newmen/versatile-diamond/pulls{/number}","milestones_url":"https://api.github.com/repos/newmen/versatile-diamond/milestones{/number}","notifications_url":"https://api.github.com/repos/newmen/versatile-diamond/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newmen/versatile-diamond/labels{/name}","releases_url":"https://api.github.com/repos/newmen/versatile-diamond/releases{/id}","created_at":"2013-05-06T21:00:59Z","updated_at":"2015-01-11T16:59:00Z","pushed_at":"2015-05-20T18:31:08Z","git_url":"git://github.com/newmen/versatile-diamond.git","ssh_url":"git@github.com:newmen/versatile-diamond.git","clone_url":"https://github.com/newmen/versatile-diamond.git","svn_url":"https://github.com/newmen/versatile-diamond","homepage":"","size":18348,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27"},"html":{"href":"https://github.com/newmen/versatile-diamond/pull/27"},"issue":{"href":"https://api.github.com/repos/newmen/versatile-diamond/issues/27"},"comments":{"href":"https://api.github.com/repos/newmen/versatile-diamond/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/newmen/versatile-diamond/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/newmen/versatile-diamond/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/newmen/versatile-diamond/statuses/c6349500f1e278dcf96f1bc9a66caca87a1f75c8"}}}}