{"action":"created","comment":{"url":"https://api.github.com/repos/ARM-software/bart/pulls/comments/87458036","pull_request_review_id":8071124,"id":87458036,"diff_hunk":"@@ -0,0 +1,347 @@\n+#    Copyright 2015-2016 ARM Limited\n+#    Copyright 2016 Google Inc. All Rights Reserved\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+\"\"\"\n+PELT Simulation Model\n+\"\"\"\n+\n+from collections import namedtuple as _namedtuple\n+from pandas import DataFrame as _DataFrame\n+\n+################################################################################\n+# Task Model\n+################################################################################\n+\n+class Task(object):","path":"bart/sched/pelt.py","position":28,"original_position":28,"commit_id":"5025ec677c34bb4e336cbc7c01725fe185ae6a8d","original_commit_id":"b70207bfe1bdd41a820bf6d5fe76308072ba8045","user":{"login":"derkling","id":63746,"avatar_url":"https://avatars.githubusercontent.com/u/63746?v=3","gravatar_id":"","url":"https://api.github.com/users/derkling","html_url":"https://github.com/derkling","followers_url":"https://api.github.com/users/derkling/followers","following_url":"https://api.github.com/users/derkling/following{/other_user}","gists_url":"https://api.github.com/users/derkling/gists{/gist_id}","starred_url":"https://api.github.com/users/derkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derkling/subscriptions","organizations_url":"https://api.github.com/users/derkling/orgs","repos_url":"https://api.github.com/users/derkling/repos","events_url":"https://api.github.com/users/derkling/events{/privacy}","received_events_url":"https://api.github.com/users/derkling/received_events","type":"User","site_admin":false},"body":"Dunno if it can be worth to have the tasks model definitions in a separate model.\r\nAt the end these tasks depends on how the PELT simulator works, that's why I've kept them on the same module.","created_at":"2016-11-10T18:40:00Z","updated_at":"2016-11-10T18:40:00Z","html_url":"https://github.com/ARM-software/bart/pull/65#discussion_r87458036","pull_request_url":"https://api.github.com/repos/ARM-software/bart/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/ARM-software/bart/pulls/comments/87458036"},"html":{"href":"https://github.com/ARM-software/bart/pull/65#discussion_r87458036"},"pull_request":{"href":"https://api.github.com/repos/ARM-software/bart/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/ARM-software/bart/pulls/65","id":93206161,"html_url":"https://github.com/ARM-software/bart/pull/65","diff_url":"https://github.com/ARM-software/bart/pull/65.diff","patch_url":"https://github.com/ARM-software/bart/pull/65.patch","issue_url":"https://api.github.com/repos/ARM-software/bart/issues/65","number":65,"state":"open","locked":false,"title":"Pelt simulator","user":{"login":"derkling","id":63746,"avatar_url":"https://avatars.githubusercontent.com/u/63746?v=3","gravatar_id":"","url":"https://api.github.com/users/derkling","html_url":"https://github.com/derkling","followers_url":"https://api.github.com/users/derkling/followers","following_url":"https://api.github.com/users/derkling/following{/other_user}","gists_url":"https://api.github.com/users/derkling/gists{/gist_id}","starred_url":"https://api.github.com/users/derkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derkling/subscriptions","organizations_url":"https://api.github.com/users/derkling/orgs","repos_url":"https://api.github.com/users/derkling/repos","events_url":"https://api.github.com/users/derkling/events{/privacy}","received_events_url":"https://api.github.com/users/derkling/received_events","type":"User","site_admin":false},"body":"Here is an initial implementation for a simple PELT simulator which allows to study the behaviours of the PELT signal, depending on its configuration parameters, for the tracking of the utilization of periodic tasks.\r\n\r\nA simple Notebook to test this new API is available here:\r\nhttps://gist.github.com/derkling/44c5b75788cb84cb5bedc697e2687305","created_at":"2016-11-10T18:36:51Z","updated_at":"2016-11-10T18:44:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"baf0600ee0e3f63f56885c713ec29d8803e137d6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARM-software/bart/pulls/65/commits","review_comments_url":"https://api.github.com/repos/ARM-software/bart/pulls/65/comments","review_comment_url":"https://api.github.com/repos/ARM-software/bart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARM-software/bart/issues/65/comments","statuses_url":"https://api.github.com/repos/ARM-software/bart/statuses/5025ec677c34bb4e336cbc7c01725fe185ae6a8d","head":{"label":"derkling:pelt_simulator","ref":"pelt_simulator","sha":"5025ec677c34bb4e336cbc7c01725fe185ae6a8d","user":{"login":"derkling","id":63746,"avatar_url":"https://avatars.githubusercontent.com/u/63746?v=3","gravatar_id":"","url":"https://api.github.com/users/derkling","html_url":"https://github.com/derkling","followers_url":"https://api.github.com/users/derkling/followers","following_url":"https://api.github.com/users/derkling/following{/other_user}","gists_url":"https://api.github.com/users/derkling/gists{/gist_id}","starred_url":"https://api.github.com/users/derkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derkling/subscriptions","organizations_url":"https://api.github.com/users/derkling/orgs","repos_url":"https://api.github.com/users/derkling/repos","events_url":"https://api.github.com/users/derkling/events{/privacy}","received_events_url":"https://api.github.com/users/derkling/received_events","type":"User","site_admin":false},"repo":{"id":46119868,"name":"bart","full_name":"derkling/bart","owner":{"login":"derkling","id":63746,"avatar_url":"https://avatars.githubusercontent.com/u/63746?v=3","gravatar_id":"","url":"https://api.github.com/users/derkling","html_url":"https://github.com/derkling","followers_url":"https://api.github.com/users/derkling/followers","following_url":"https://api.github.com/users/derkling/following{/other_user}","gists_url":"https://api.github.com/users/derkling/gists{/gist_id}","starred_url":"https://api.github.com/users/derkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derkling/subscriptions","organizations_url":"https://api.github.com/users/derkling/orgs","repos_url":"https://api.github.com/users/derkling/repos","events_url":"https://api.github.com/users/derkling/events{/privacy}","received_events_url":"https://api.github.com/users/derkling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/derkling/bart","description":"Behavioural Analysis and Regression Toolkit","fork":true,"url":"https://api.github.com/repos/derkling/bart","forks_url":"https://api.github.com/repos/derkling/bart/forks","keys_url":"https://api.github.com/repos/derkling/bart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/derkling/bart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/derkling/bart/teams","hooks_url":"https://api.github.com/repos/derkling/bart/hooks","issue_events_url":"https://api.github.com/repos/derkling/bart/issues/events{/number}","events_url":"https://api.github.com/repos/derkling/bart/events","assignees_url":"https://api.github.com/repos/derkling/bart/assignees{/user}","branches_url":"https://api.github.com/repos/derkling/bart/branches{/branch}","tags_url":"https://api.github.com/repos/derkling/bart/tags","blobs_url":"https://api.github.com/repos/derkling/bart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/derkling/bart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/derkling/bart/git/refs{/sha}","trees_url":"https://api.github.com/repos/derkling/bart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/derkling/bart/statuses/{sha}","languages_url":"https://api.github.com/repos/derkling/bart/languages","stargazers_url":"https://api.github.com/repos/derkling/bart/stargazers","contributors_url":"https://api.github.com/repos/derkling/bart/contributors","subscribers_url":"https://api.github.com/repos/derkling/bart/subscribers","subscription_url":"https://api.github.com/repos/derkling/bart/subscription","commits_url":"https://api.github.com/repos/derkling/bart/commits{/sha}","git_commits_url":"https://api.github.com/repos/derkling/bart/git/commits{/sha}","comments_url":"https://api.github.com/repos/derkling/bart/comments{/number}","issue_comment_url":"https://api.github.com/repos/derkling/bart/issues/comments{/number}","contents_url":"https://api.github.com/repos/derkling/bart/contents/{+path}","compare_url":"https://api.github.com/repos/derkling/bart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/derkling/bart/merges","archive_url":"https://api.github.com/repos/derkling/bart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/derkling/bart/downloads","issues_url":"https://api.github.com/repos/derkling/bart/issues{/number}","pulls_url":"https://api.github.com/repos/derkling/bart/pulls{/number}","milestones_url":"https://api.github.com/repos/derkling/bart/milestones{/number}","notifications_url":"https://api.github.com/repos/derkling/bart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/derkling/bart/labels{/name}","releases_url":"https://api.github.com/repos/derkling/bart/releases{/id}","deployments_url":"https://api.github.com/repos/derkling/bart/deployments","created_at":"2015-11-13T12:11:12Z","updated_at":"2015-11-13T12:11:13Z","pushed_at":"2016-11-10T18:34:29Z","git_url":"git://github.com/derkling/bart.git","ssh_url":"git@github.com:derkling/bart.git","clone_url":"https://github.com/derkling/bart.git","svn_url":"https://github.com/derkling/bart","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"ARM-software:master","ref":"master","sha":"8e32e8eb399356b50b3dc34285843e96fa72496e","user":{"login":"ARM-software","id":5690313,"avatar_url":"https://avatars.githubusercontent.com/u/5690313?v=3","gravatar_id":"","url":"https://api.github.com/users/ARM-software","html_url":"https://github.com/ARM-software","followers_url":"https://api.github.com/users/ARM-software/followers","following_url":"https://api.github.com/users/ARM-software/following{/other_user}","gists_url":"https://api.github.com/users/ARM-software/gists{/gist_id}","starred_url":"https://api.github.com/users/ARM-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARM-software/subscriptions","organizations_url":"https://api.github.com/users/ARM-software/orgs","repos_url":"https://api.github.com/users/ARM-software/repos","events_url":"https://api.github.com/users/ARM-software/events{/privacy}","received_events_url":"https://api.github.com/users/ARM-software/received_events","type":"Organization","site_admin":false},"repo":{"id":40664969,"name":"bart","full_name":"ARM-software/bart","owner":{"login":"ARM-software","id":5690313,"avatar_url":"https://avatars.githubusercontent.com/u/5690313?v=3","gravatar_id":"","url":"https://api.github.com/users/ARM-software","html_url":"https://github.com/ARM-software","followers_url":"https://api.github.com/users/ARM-software/followers","following_url":"https://api.github.com/users/ARM-software/following{/other_user}","gists_url":"https://api.github.com/users/ARM-software/gists{/gist_id}","starred_url":"https://api.github.com/users/ARM-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARM-software/subscriptions","organizations_url":"https://api.github.com/users/ARM-software/orgs","repos_url":"https://api.github.com/users/ARM-software/repos","events_url":"https://api.github.com/users/ARM-software/events{/privacy}","received_events_url":"https://api.github.com/users/ARM-software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARM-software/bart","description":"Behavioural Analysis and Regression Toolkit","fork":false,"url":"https://api.github.com/repos/ARM-software/bart","forks_url":"https://api.github.com/repos/ARM-software/bart/forks","keys_url":"https://api.github.com/repos/ARM-software/bart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARM-software/bart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARM-software/bart/teams","hooks_url":"https://api.github.com/repos/ARM-software/bart/hooks","issue_events_url":"https://api.github.com/repos/ARM-software/bart/issues/events{/number}","events_url":"https://api.github.com/repos/ARM-software/bart/events","assignees_url":"https://api.github.com/repos/ARM-software/bart/assignees{/user}","branches_url":"https://api.github.com/repos/ARM-software/bart/branches{/branch}","tags_url":"https://api.github.com/repos/ARM-software/bart/tags","blobs_url":"https://api.github.com/repos/ARM-software/bart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARM-software/bart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARM-software/bart/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARM-software/bart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARM-software/bart/statuses/{sha}","languages_url":"https://api.github.com/repos/ARM-software/bart/languages","stargazers_url":"https://api.github.com/repos/ARM-software/bart/stargazers","contributors_url":"https://api.github.com/repos/ARM-software/bart/contributors","subscribers_url":"https://api.github.com/repos/ARM-software/bart/subscribers","subscription_url":"https://api.github.com/repos/ARM-software/bart/subscription","commits_url":"https://api.github.com/repos/ARM-software/bart/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARM-software/bart/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARM-software/bart/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARM-software/bart/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARM-software/bart/contents/{+path}","compare_url":"https://api.github.com/repos/ARM-software/bart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARM-software/bart/merges","archive_url":"https://api.github.com/repos/ARM-software/bart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARM-software/bart/downloads","issues_url":"https://api.github.com/repos/ARM-software/bart/issues{/number}","pulls_url":"https://api.github.com/repos/ARM-software/bart/pulls{/number}","milestones_url":"https://api.github.com/repos/ARM-software/bart/milestones{/number}","notifications_url":"https://api.github.com/repos/ARM-software/bart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARM-software/bart/labels{/name}","releases_url":"https://api.github.com/repos/ARM-software/bart/releases{/id}","deployments_url":"https://api.github.com/repos/ARM-software/bart/deployments","created_at":"2015-08-13T15:02:08Z","updated_at":"2016-11-02T04:29:09Z","pushed_at":"2016-11-10T18:36:51Z","git_url":"git://github.com/ARM-software/bart.git","ssh_url":"git@github.com:ARM-software/bart.git","clone_url":"https://github.com/ARM-software/bart.git","svn_url":"https://github.com/ARM-software/bart","homepage":null,"size":708,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARM-software/bart/pulls/65"},"html":{"href":"https://github.com/ARM-software/bart/pull/65"},"issue":{"href":"https://api.github.com/repos/ARM-software/bart/issues/65"},"comments":{"href":"https://api.github.com/repos/ARM-software/bart/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/ARM-software/bart/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/ARM-software/bart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARM-software/bart/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/ARM-software/bart/statuses/5025ec677c34bb4e336cbc7c01725fe185ae6a8d"}}}}
{"actor":{"display_login":"derkling"}}