{"action":"created","comment":{"url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments/104363513","pull_request_review_id":25195656,"id":104363513,"diff_hunk":"@@ -0,0 +1,53 @@\n+\"\"\"Tests for the Stalker strategy.\"\"\"\n+\n+import axelrod\n+import random\n+from .test_player import TestPlayer\n+\n+C, D = axelrod.Actions.C, axelrod.Actions.D\n+\n+class TestStalker(TestPlayer):\n+\n+    name = \"Stalker\"\n+    player = axelrod.Stalker\n+    expected_classifier = {\n+        'memory_depth': float('inf'),\n+        'stochastic': True,\n+        'makes_use_of': set(),\n+        'long_run_time': False,\n+        'inspects_source': False,\n+        'manipulates_source': False,\n+        'manipulates_state': False\n+    }\n+\n+    def test_strategy(self):\n+        # Start with cooperation\n+        self.first_play_test(C)\n+\n+        # current_average_score > very_good_score\n+        self.responses_test([D], [C] * 2 + [D] * 4, [D] * 2 + [C] * 4)\n+        self.responses_test([D], [D] * 2 + [C] * 4, [C] * 6)\n+\n+        # wish_score < current_average_score < very_good_score\n+        self.responses_test([C], [C] * 7 + [D] * 2, [C] * 7 + [D] * 2)\n+        self.responses_test([C], [C] * 7 + [C], [C] * 7 + [D])\n+\n+        # current_average_score > 2\n+        self.responses_test([C], [C] * 10, [C] * 10)\n+\n+        # 1 < current_average_score < 2\n+        self.responses_test([D], [C] * 7 + [C] * 5, [C] * 7 + [D] * 5)\n+\n+        # current_average_score < 1\n+        self.responses_test([D], [D] * 7 + [C] * 5, [D] * 7 + [D] * 5, seed = 6)\n+        self.responses_test([C], [D] * 7 + [C] * 5, [D] * 7 + [D] * 5, seed = 7)\n+\n+        # defect in last round\n+        self.responses_test([C, D], [C] * 198, [C] * 198, length=200)\n+\n+    def test_reset(self):","path":"axelrod/tests/unit/test_stalker.py","position":48,"original_position":48,"commit_id":"2fc89cc21cf78768055b72062c3e1d02be05bf6e","original_commit_id":"2fc89cc21cf78768055b72062c3e1d02be05bf6e","user":{"login":"drvinceknight","id":2131546,"avatar_url":"https://avatars1.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":"Awesome. :+1: Ignore this @janga1997 ","created_at":"2017-03-06T08:35:24Z","updated_at":"2017-03-06T08:35:24Z","html_url":"https://github.com/Axelrod-Python/Axelrod/pull/873#discussion_r104363513","pull_request_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873","_links":{"self":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments/104363513"},"html":{"href":"https://github.com/Axelrod-Python/Axelrod/pull/873#discussion_r104363513"},"pull_request":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873"}}},"pull_request":{"url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873","id":109037047,"html_url":"https://github.com/Axelrod-Python/Axelrod/pull/873","diff_url":"https://github.com/Axelrod-Python/Axelrod/pull/873.diff","patch_url":"https://github.com/Axelrod-Python/Axelrod/pull/873.patch","issue_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/873","number":873,"state":"open","locked":false,"title":"Stalker","user":{"login":"janga1997","id":15131207,"avatar_url":"https://avatars2.githubusercontent.com/u/15131207?v=3","gravatar_id":"","url":"https://api.github.com/users/janga1997","html_url":"https://github.com/janga1997","followers_url":"https://api.github.com/users/janga1997/followers","following_url":"https://api.github.com/users/janga1997/following{/other_user}","gists_url":"https://api.github.com/users/janga1997/gists{/gist_id}","starred_url":"https://api.github.com/users/janga1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janga1997/subscriptions","organizations_url":"https://api.github.com/users/janga1997/orgs","repos_url":"https://api.github.com/users/janga1997/repos","events_url":"https://api.github.com/users/janga1997/events{/privacy}","received_events_url":"https://api.github.com/users/janga1997/received_events","type":"User","site_admin":false},"body":"#379 \r\n","created_at":"2017-03-03T19:15:27Z","updated_at":"2017-03-06T08:35:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"842c29cec457619ab8e6a01b47afa7ce5474a135","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873/commits","review_comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873/comments","review_comment_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/873/comments","statuses_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/statuses/2fc89cc21cf78768055b72062c3e1d02be05bf6e","head":{"label":"janga1997:Stalker","ref":"Stalker","sha":"2fc89cc21cf78768055b72062c3e1d02be05bf6e","user":{"login":"janga1997","id":15131207,"avatar_url":"https://avatars2.githubusercontent.com/u/15131207?v=3","gravatar_id":"","url":"https://api.github.com/users/janga1997","html_url":"https://github.com/janga1997","followers_url":"https://api.github.com/users/janga1997/followers","following_url":"https://api.github.com/users/janga1997/following{/other_user}","gists_url":"https://api.github.com/users/janga1997/gists{/gist_id}","starred_url":"https://api.github.com/users/janga1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janga1997/subscriptions","organizations_url":"https://api.github.com/users/janga1997/orgs","repos_url":"https://api.github.com/users/janga1997/repos","events_url":"https://api.github.com/users/janga1997/events{/privacy}","received_events_url":"https://api.github.com/users/janga1997/received_events","type":"User","site_admin":false},"repo":{"id":80345274,"name":"Axelrod","full_name":"janga1997/Axelrod","owner":{"login":"janga1997","id":15131207,"avatar_url":"https://avatars2.githubusercontent.com/u/15131207?v=3","gravatar_id":"","url":"https://api.github.com/users/janga1997","html_url":"https://github.com/janga1997","followers_url":"https://api.github.com/users/janga1997/followers","following_url":"https://api.github.com/users/janga1997/following{/other_user}","gists_url":"https://api.github.com/users/janga1997/gists{/gist_id}","starred_url":"https://api.github.com/users/janga1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janga1997/subscriptions","organizations_url":"https://api.github.com/users/janga1997/orgs","repos_url":"https://api.github.com/users/janga1997/repos","events_url":"https://api.github.com/users/janga1997/events{/privacy}","received_events_url":"https://api.github.com/users/janga1997/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janga1997/Axelrod","description":"A research tool for the Iterated Prisoner's Dilemma","fork":true,"url":"https://api.github.com/repos/janga1997/Axelrod","forks_url":"https://api.github.com/repos/janga1997/Axelrod/forks","keys_url":"https://api.github.com/repos/janga1997/Axelrod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janga1997/Axelrod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janga1997/Axelrod/teams","hooks_url":"https://api.github.com/repos/janga1997/Axelrod/hooks","issue_events_url":"https://api.github.com/repos/janga1997/Axelrod/issues/events{/number}","events_url":"https://api.github.com/repos/janga1997/Axelrod/events","assignees_url":"https://api.github.com/repos/janga1997/Axelrod/assignees{/user}","branches_url":"https://api.github.com/repos/janga1997/Axelrod/branches{/branch}","tags_url":"https://api.github.com/repos/janga1997/Axelrod/tags","blobs_url":"https://api.github.com/repos/janga1997/Axelrod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janga1997/Axelrod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janga1997/Axelrod/git/refs{/sha}","trees_url":"https://api.github.com/repos/janga1997/Axelrod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janga1997/Axelrod/statuses/{sha}","languages_url":"https://api.github.com/repos/janga1997/Axelrod/languages","stargazers_url":"https://api.github.com/repos/janga1997/Axelrod/stargazers","contributors_url":"https://api.github.com/repos/janga1997/Axelrod/contributors","subscribers_url":"https://api.github.com/repos/janga1997/Axelrod/subscribers","subscription_url":"https://api.github.com/repos/janga1997/Axelrod/subscription","commits_url":"https://api.github.com/repos/janga1997/Axelrod/commits{/sha}","git_commits_url":"https://api.github.com/repos/janga1997/Axelrod/git/commits{/sha}","comments_url":"https://api.github.com/repos/janga1997/Axelrod/comments{/number}","issue_comment_url":"https://api.github.com/repos/janga1997/Axelrod/issues/comments{/number}","contents_url":"https://api.github.com/repos/janga1997/Axelrod/contents/{+path}","compare_url":"https://api.github.com/repos/janga1997/Axelrod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janga1997/Axelrod/merges","archive_url":"https://api.github.com/repos/janga1997/Axelrod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janga1997/Axelrod/downloads","issues_url":"https://api.github.com/repos/janga1997/Axelrod/issues{/number}","pulls_url":"https://api.github.com/repos/janga1997/Axelrod/pulls{/number}","milestones_url":"https://api.github.com/repos/janga1997/Axelrod/milestones{/number}","notifications_url":"https://api.github.com/repos/janga1997/Axelrod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janga1997/Axelrod/labels{/name}","releases_url":"https://api.github.com/repos/janga1997/Axelrod/releases{/id}","deployments_url":"https://api.github.com/repos/janga1997/Axelrod/deployments","created_at":"2017-01-29T12:38:49Z","updated_at":"2017-01-29T12:38:51Z","pushed_at":"2017-03-05T05:46:03Z","git_url":"git://github.com/janga1997/Axelrod.git","ssh_url":"git@github.com:janga1997/Axelrod.git","clone_url":"https://github.com/janga1997/Axelrod.git","svn_url":"https://github.com/janga1997/Axelrod","homepage":"http://axelrod.readthedocs.org/","size":5041,"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":"Axelrod-Python:master","ref":"master","sha":"dcbcf6f3881b6b16cfa77948bb76416d9523b167","user":{"login":"Axelrod-Python","id":11720937,"avatar_url":"https://avatars2.githubusercontent.com/u/11720937?v=3","gravatar_id":"","url":"https://api.github.com/users/Axelrod-Python","html_url":"https://github.com/Axelrod-Python","followers_url":"https://api.github.com/users/Axelrod-Python/followers","following_url":"https://api.github.com/users/Axelrod-Python/following{/other_user}","gists_url":"https://api.github.com/users/Axelrod-Python/gists{/gist_id}","starred_url":"https://api.github.com/users/Axelrod-Python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Axelrod-Python/subscriptions","organizations_url":"https://api.github.com/users/Axelrod-Python/orgs","repos_url":"https://api.github.com/users/Axelrod-Python/repos","events_url":"https://api.github.com/users/Axelrod-Python/events{/privacy}","received_events_url":"https://api.github.com/users/Axelrod-Python/received_events","type":"Organization","site_admin":false},"repo":{"id":30959449,"name":"Axelrod","full_name":"Axelrod-Python/Axelrod","owner":{"login":"Axelrod-Python","id":11720937,"avatar_url":"https://avatars2.githubusercontent.com/u/11720937?v=3","gravatar_id":"","url":"https://api.github.com/users/Axelrod-Python","html_url":"https://github.com/Axelrod-Python","followers_url":"https://api.github.com/users/Axelrod-Python/followers","following_url":"https://api.github.com/users/Axelrod-Python/following{/other_user}","gists_url":"https://api.github.com/users/Axelrod-Python/gists{/gist_id}","starred_url":"https://api.github.com/users/Axelrod-Python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Axelrod-Python/subscriptions","organizations_url":"https://api.github.com/users/Axelrod-Python/orgs","repos_url":"https://api.github.com/users/Axelrod-Python/repos","events_url":"https://api.github.com/users/Axelrod-Python/events{/privacy}","received_events_url":"https://api.github.com/users/Axelrod-Python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Axelrod-Python/Axelrod","description":"A research tool for the Iterated Prisoner's Dilemma","fork":false,"url":"https://api.github.com/repos/Axelrod-Python/Axelrod","forks_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/forks","keys_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/teams","hooks_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/hooks","issue_events_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/events{/number}","events_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/events","assignees_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/assignees{/user}","branches_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/branches{/branch}","tags_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/tags","blobs_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/refs{/sha}","trees_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/statuses/{sha}","languages_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/languages","stargazers_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/stargazers","contributors_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/contributors","subscribers_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/subscribers","subscription_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/subscription","commits_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/commits{/sha}","git_commits_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/commits{/sha}","comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/comments{/number}","issue_comment_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/comments{/number}","contents_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/contents/{+path}","compare_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/merges","archive_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/downloads","issues_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues{/number}","pulls_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls{/number}","milestones_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/milestones{/number}","notifications_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/labels{/name}","releases_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/releases{/id}","deployments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/deployments","created_at":"2015-02-18T09:37:17Z","updated_at":"2017-03-03T18:18:07Z","pushed_at":"2017-03-06T08:32:34Z","git_url":"git://github.com/Axelrod-Python/Axelrod.git","ssh_url":"git@github.com:Axelrod-Python/Axelrod.git","clone_url":"https://github.com/Axelrod-Python/Axelrod.git","svn_url":"https://github.com/Axelrod-Python/Axelrod","homepage":"http://axelrod.readthedocs.org/","size":4993,"stargazers_count":117,"watchers_count":117,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":27,"forks":72,"open_issues":27,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873"},"html":{"href":"https://github.com/Axelrod-Python/Axelrod/pull/873"},"issue":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/873"},"comments":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/873/comments"},"review_comments":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873/comments"},"review_comment":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/873/commits"},"statuses":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/statuses/2fc89cc21cf78768055b72062c3e1d02be05bf6e"}}}}
{"actor":{"display_login":"drvinceknight"}}