{"action":"created","comment":{"url":"https://api.github.com/repos/CiwPython/Ciw/pulls/comments/80634145","pull_request_review_id":1678197,"id":80634145,"diff_hunk":"@@ -144,7 +150,13 @@ def begin_service_if_possible_release(self, current_time):\n         \"\"\"\n         if self.free_server() and self.c != float('Inf'):\n             srvr = self.find_free_server()\n-            if len([i for i in self.all_individuals if not i.server]) > 0:\n+            if len(self.interrupted_individuals) > 0:","path":"ciw/node.py","position":29,"original_position":29,"commit_id":"debf4a0e6948480767fbdee99f1d4f21bca3bd31","original_commit_id":"ab4ba8bbc234627ef9b4fb27e99cea70f57ac89e","user":{"login":"drvinceknight","id":2131546,"avatar_url":"https://avatars.githubusercontent.com/u/2131546?v=3","gravatar_id":"","url":"https://api.github.com/users/drvinceknight","html_url":"https://github.com/drvinceknight","followers_url":"https://api.github.com/users/drvinceknight/followers","following_url":"https://api.github.com/users/drvinceknight/following{/other_user}","gists_url":"https://api.github.com/users/drvinceknight/gists{/gist_id}","starred_url":"https://api.github.com/users/drvinceknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drvinceknight/subscriptions","organizations_url":"https://api.github.com/users/drvinceknight/orgs","repos_url":"https://api.github.com/users/drvinceknight/repos","events_url":"https://api.github.com/users/drvinceknight/events{/privacy}","received_events_url":"https://api.github.com/users/drvinceknight/received_events","type":"User","site_admin":false},"body":"This looks like its the same code as lines 133-139, could it be wrapped in a function/method?","created_at":"2016-09-27T07:29:27Z","updated_at":"2016-09-27T07:29:37Z","html_url":"https://github.com/CiwPython/Ciw/pull/85#discussion_r80634145","pull_request_url":"https://api.github.com/repos/CiwPython/Ciw/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/CiwPython/Ciw/pulls/comments/80634145"},"html":{"href":"https://github.com/CiwPython/Ciw/pull/85#discussion_r80634145"},"pull_request":{"href":"https://api.github.com/repos/CiwPython/Ciw/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/CiwPython/Ciw/pulls/85","id":86740436,"html_url":"https://github.com/CiwPython/Ciw/pull/85","diff_url":"https://github.com/CiwPython/Ciw/pull/85.diff","patch_url":"https://github.com/CiwPython/Ciw/pull/85.patch","issue_url":"https://api.github.com/repos/CiwPython/Ciw/issues/85","number":85,"state":"open","locked":false,"title":"Preemptive interruption with Server Schedules","user":{"login":"geraintpalmer","id":9679702,"avatar_url":"https://avatars.githubusercontent.com/u/9679702?v=3","gravatar_id":"","url":"https://api.github.com/users/geraintpalmer","html_url":"https://github.com/geraintpalmer","followers_url":"https://api.github.com/users/geraintpalmer/followers","following_url":"https://api.github.com/users/geraintpalmer/following{/other_user}","gists_url":"https://api.github.com/users/geraintpalmer/gists{/gist_id}","starred_url":"https://api.github.com/users/geraintpalmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraintpalmer/subscriptions","organizations_url":"https://api.github.com/users/geraintpalmer/orgs","repos_url":"https://api.github.com/users/geraintpalmer/repos","events_url":"https://api.github.com/users/geraintpalmer/events{/privacy}","received_events_url":"https://api.github.com/users/geraintpalmer/received_events","type":"User","site_admin":false},"body":"This PR enables users to input a preemptive option with a server schedule, that interrupts services and resamples their service time after interruption. A virtual queue 'interrupted_individuals' keeps track of those interrupted individuals, ensuring they are re-served before new waiting customers.","created_at":"2016-09-26T13:18:13Z","updated_at":"2016-09-27T07:29:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1682bf105a4b110b86e5264e4a7307fc65189d64","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CiwPython/Ciw/pulls/85/commits","review_comments_url":"https://api.github.com/repos/CiwPython/Ciw/pulls/85/comments","review_comment_url":"https://api.github.com/repos/CiwPython/Ciw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CiwPython/Ciw/issues/85/comments","statuses_url":"https://api.github.com/repos/CiwPython/Ciw/statuses/debf4a0e6948480767fbdee99f1d4f21bca3bd31","head":{"label":"CiwPython:preempt","ref":"preempt","sha":"debf4a0e6948480767fbdee99f1d4f21bca3bd31","user":{"login":"CiwPython","id":20789286,"avatar_url":"https://avatars.githubusercontent.com/u/20789286?v=3","gravatar_id":"","url":"https://api.github.com/users/CiwPython","html_url":"https://github.com/CiwPython","followers_url":"https://api.github.com/users/CiwPython/followers","following_url":"https://api.github.com/users/CiwPython/following{/other_user}","gists_url":"https://api.github.com/users/CiwPython/gists{/gist_id}","starred_url":"https://api.github.com/users/CiwPython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiwPython/subscriptions","organizations_url":"https://api.github.com/users/CiwPython/orgs","repos_url":"https://api.github.com/users/CiwPython/repos","events_url":"https://api.github.com/users/CiwPython/events{/privacy}","received_events_url":"https://api.github.com/users/CiwPython/received_events","type":"Organization","site_admin":false},"repo":{"id":47995577,"name":"Ciw","full_name":"CiwPython/Ciw","owner":{"login":"CiwPython","id":20789286,"avatar_url":"https://avatars.githubusercontent.com/u/20789286?v=3","gravatar_id":"","url":"https://api.github.com/users/CiwPython","html_url":"https://github.com/CiwPython","followers_url":"https://api.github.com/users/CiwPython/followers","following_url":"https://api.github.com/users/CiwPython/following{/other_user}","gists_url":"https://api.github.com/users/CiwPython/gists{/gist_id}","starred_url":"https://api.github.com/users/CiwPython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiwPython/subscriptions","organizations_url":"https://api.github.com/users/CiwPython/orgs","repos_url":"https://api.github.com/users/CiwPython/repos","events_url":"https://api.github.com/users/CiwPython/events{/privacy}","received_events_url":"https://api.github.com/users/CiwPython/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CiwPython/Ciw","description":"Ciw is a simulation library for open queueing networks.","fork":false,"url":"https://api.github.com/repos/CiwPython/Ciw","forks_url":"https://api.github.com/repos/CiwPython/Ciw/forks","keys_url":"https://api.github.com/repos/CiwPython/Ciw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CiwPython/Ciw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CiwPython/Ciw/teams","hooks_url":"https://api.github.com/repos/CiwPython/Ciw/hooks","issue_events_url":"https://api.github.com/repos/CiwPython/Ciw/issues/events{/number}","events_url":"https://api.github.com/repos/CiwPython/Ciw/events","assignees_url":"https://api.github.com/repos/CiwPython/Ciw/assignees{/user}","branches_url":"https://api.github.com/repos/CiwPython/Ciw/branches{/branch}","tags_url":"https://api.github.com/repos/CiwPython/Ciw/tags","blobs_url":"https://api.github.com/repos/CiwPython/Ciw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CiwPython/Ciw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CiwPython/Ciw/git/refs{/sha}","trees_url":"https://api.github.com/repos/CiwPython/Ciw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CiwPython/Ciw/statuses/{sha}","languages_url":"https://api.github.com/repos/CiwPython/Ciw/languages","stargazers_url":"https://api.github.com/repos/CiwPython/Ciw/stargazers","contributors_url":"https://api.github.com/repos/CiwPython/Ciw/contributors","subscribers_url":"https://api.github.com/repos/CiwPython/Ciw/subscribers","subscription_url":"https://api.github.com/repos/CiwPython/Ciw/subscription","commits_url":"https://api.github.com/repos/CiwPython/Ciw/commits{/sha}","git_commits_url":"https://api.github.com/repos/CiwPython/Ciw/git/commits{/sha}","comments_url":"https://api.github.com/repos/CiwPython/Ciw/comments{/number}","issue_comment_url":"https://api.github.com/repos/CiwPython/Ciw/issues/comments{/number}","contents_url":"https://api.github.com/repos/CiwPython/Ciw/contents/{+path}","compare_url":"https://api.github.com/repos/CiwPython/Ciw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CiwPython/Ciw/merges","archive_url":"https://api.github.com/repos/CiwPython/Ciw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CiwPython/Ciw/downloads","issues_url":"https://api.github.com/repos/CiwPython/Ciw/issues{/number}","pulls_url":"https://api.github.com/repos/CiwPython/Ciw/pulls{/number}","milestones_url":"https://api.github.com/repos/CiwPython/Ciw/milestones{/number}","notifications_url":"https://api.github.com/repos/CiwPython/Ciw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CiwPython/Ciw/labels{/name}","releases_url":"https://api.github.com/repos/CiwPython/Ciw/releases{/id}","deployments_url":"https://api.github.com/repos/CiwPython/Ciw/deployments","created_at":"2015-12-14T19:10:50Z","updated_at":"2016-09-25T16:32:03Z","pushed_at":"2016-09-26T13:32:09Z","git_url":"git://github.com/CiwPython/Ciw.git","ssh_url":"git@github.com:CiwPython/Ciw.git","clone_url":"https://github.com/CiwPython/Ciw.git","svn_url":"https://github.com/CiwPython/Ciw","homepage":"http://ciw.readthedocs.io","size":60828,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":20,"forks":8,"open_issues":20,"watchers":6,"default_branch":"master"}},"base":{"label":"CiwPython:master","ref":"master","sha":"e6437ec2306dd3c55c25127b8f325f98677e8792","user":{"login":"CiwPython","id":20789286,"avatar_url":"https://avatars.githubusercontent.com/u/20789286?v=3","gravatar_id":"","url":"https://api.github.com/users/CiwPython","html_url":"https://github.com/CiwPython","followers_url":"https://api.github.com/users/CiwPython/followers","following_url":"https://api.github.com/users/CiwPython/following{/other_user}","gists_url":"https://api.github.com/users/CiwPython/gists{/gist_id}","starred_url":"https://api.github.com/users/CiwPython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiwPython/subscriptions","organizations_url":"https://api.github.com/users/CiwPython/orgs","repos_url":"https://api.github.com/users/CiwPython/repos","events_url":"https://api.github.com/users/CiwPython/events{/privacy}","received_events_url":"https://api.github.com/users/CiwPython/received_events","type":"Organization","site_admin":false},"repo":{"id":47995577,"name":"Ciw","full_name":"CiwPython/Ciw","owner":{"login":"CiwPython","id":20789286,"avatar_url":"https://avatars.githubusercontent.com/u/20789286?v=3","gravatar_id":"","url":"https://api.github.com/users/CiwPython","html_url":"https://github.com/CiwPython","followers_url":"https://api.github.com/users/CiwPython/followers","following_url":"https://api.github.com/users/CiwPython/following{/other_user}","gists_url":"https://api.github.com/users/CiwPython/gists{/gist_id}","starred_url":"https://api.github.com/users/CiwPython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiwPython/subscriptions","organizations_url":"https://api.github.com/users/CiwPython/orgs","repos_url":"https://api.github.com/users/CiwPython/repos","events_url":"https://api.github.com/users/CiwPython/events{/privacy}","received_events_url":"https://api.github.com/users/CiwPython/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CiwPython/Ciw","description":"Ciw is a simulation library for open queueing networks.","fork":false,"url":"https://api.github.com/repos/CiwPython/Ciw","forks_url":"https://api.github.com/repos/CiwPython/Ciw/forks","keys_url":"https://api.github.com/repos/CiwPython/Ciw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CiwPython/Ciw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CiwPython/Ciw/teams","hooks_url":"https://api.github.com/repos/CiwPython/Ciw/hooks","issue_events_url":"https://api.github.com/repos/CiwPython/Ciw/issues/events{/number}","events_url":"https://api.github.com/repos/CiwPython/Ciw/events","assignees_url":"https://api.github.com/repos/CiwPython/Ciw/assignees{/user}","branches_url":"https://api.github.com/repos/CiwPython/Ciw/branches{/branch}","tags_url":"https://api.github.com/repos/CiwPython/Ciw/tags","blobs_url":"https://api.github.com/repos/CiwPython/Ciw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CiwPython/Ciw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CiwPython/Ciw/git/refs{/sha}","trees_url":"https://api.github.com/repos/CiwPython/Ciw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CiwPython/Ciw/statuses/{sha}","languages_url":"https://api.github.com/repos/CiwPython/Ciw/languages","stargazers_url":"https://api.github.com/repos/CiwPython/Ciw/stargazers","contributors_url":"https://api.github.com/repos/CiwPython/Ciw/contributors","subscribers_url":"https://api.github.com/repos/CiwPython/Ciw/subscribers","subscription_url":"https://api.github.com/repos/CiwPython/Ciw/subscription","commits_url":"https://api.github.com/repos/CiwPython/Ciw/commits{/sha}","git_commits_url":"https://api.github.com/repos/CiwPython/Ciw/git/commits{/sha}","comments_url":"https://api.github.com/repos/CiwPython/Ciw/comments{/number}","issue_comment_url":"https://api.github.com/repos/CiwPython/Ciw/issues/comments{/number}","contents_url":"https://api.github.com/repos/CiwPython/Ciw/contents/{+path}","compare_url":"https://api.github.com/repos/CiwPython/Ciw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CiwPython/Ciw/merges","archive_url":"https://api.github.com/repos/CiwPython/Ciw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CiwPython/Ciw/downloads","issues_url":"https://api.github.com/repos/CiwPython/Ciw/issues{/number}","pulls_url":"https://api.github.com/repos/CiwPython/Ciw/pulls{/number}","milestones_url":"https://api.github.com/repos/CiwPython/Ciw/milestones{/number}","notifications_url":"https://api.github.com/repos/CiwPython/Ciw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CiwPython/Ciw/labels{/name}","releases_url":"https://api.github.com/repos/CiwPython/Ciw/releases{/id}","deployments_url":"https://api.github.com/repos/CiwPython/Ciw/deployments","created_at":"2015-12-14T19:10:50Z","updated_at":"2016-09-25T16:32:03Z","pushed_at":"2016-09-26T13:32:09Z","git_url":"git://github.com/CiwPython/Ciw.git","ssh_url":"git@github.com:CiwPython/Ciw.git","clone_url":"https://github.com/CiwPython/Ciw.git","svn_url":"https://github.com/CiwPython/Ciw","homepage":"http://ciw.readthedocs.io","size":60828,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":20,"forks":8,"open_issues":20,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CiwPython/Ciw/pulls/85"},"html":{"href":"https://github.com/CiwPython/Ciw/pull/85"},"issue":{"href":"https://api.github.com/repos/CiwPython/Ciw/issues/85"},"comments":{"href":"https://api.github.com/repos/CiwPython/Ciw/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/CiwPython/Ciw/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/CiwPython/Ciw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CiwPython/Ciw/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/CiwPython/Ciw/statuses/debf4a0e6948480767fbdee99f1d4f21bca3bd31"}}}}
{"actor":{"display_login":"drvinceknight"}}