{"action":"created","comment":{"url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/comments/63539160","id":63539160,"diff_hunk":"@@ -0,0 +1,255 @@\n+import os, sys, inspect\n+from sqlalchemy.orm import relationship, backref\n+currentdir = os.path.dirname(os.path.abspath(inspect. \\\n+    getfile(inspect.currentframe())))\n+parentdir = os.path.dirname(currentdir)\n+sys.path.insert(0, parentdir) \n+from rooms import Room, LivingSpace, Office \n+from persons import Person, Fellow, Staff\n+import random\n+\n+class Amity(object):\n+    \"\"\"Defines the Amity class\"\"\"\n+    \n+    def __init__(self, office_capacity=6, living_space_capacity=4,\n+        no_of_occupants = 0):\n+        self.office_capacity = office_capacity\n+        self.living_space_capacity = living_space_capacity\n+        self.no_of_occupants = no_of_occupants\n+        \n+    def create_room(self, identifier, name, floor, room_type):\n+        \"\"\"Create room object and return\"\"\"\n+        if room_type == \"office\":\n+            new_room = Office(\n+                                identifier=identifier, \n+                                name=name, \n+                                floor=floor,\n+                                no_of_occupants = self.no_of_occupants,\n+                                capacity=self.office_capacity\n+                             )\n+        else:\n+            new_room = LivingSpace(\n+                                    identifier=identifier, \n+                                    name=name, \n+                                    floor=floor,\n+                                    no_of_occupants = self.no_of_occupants,\n+                                    capacity=self.living_space_capacity\n+                                  )\n+        return new_room\n+\n+    def create_person(self, identifier, first_name, last_name, employeeType, \n+            wants_accommodation, rooms):\n+        \"\"\"Create Person object\"\"\"\n+        if employeeType == \"staff\":\n+            new_person = Staff(identifier=identifier, first_name=first_name, \n+                last_name=last_name)\n+        else:\n+            new_person = Fellow(identifier=identifier, first_name=first_name, \n+                last_name=last_name)\n+        return self.randomly_allocate_rooms(\n+                                              new_person, \n+                                              wants_accommodation,\n+                                              rooms\n+                                           )\n+\n+    def randomly_allocate_rooms(self, person, wants_accommodation, rooms):\n+        \"\"\"Allocate person to room\n+        Both staff and fellow are assigned office spaces\n+        Only fellow who indicates interest is assigned living space\n+        Args:\n+        person -- the person of interest\n+        wants_accommodation -- indicates if person wants accommodation or not\n+        rooms -- list of all created rooms\n+        Returns:\n+        a call to add_persons_to_room method \n+        \"\"\"\n+        allocated_space  = []\n+        if self.check_room_type_has_vacancy(rooms, \"office\"):\n+            allocated_space.append(self.randomly_pick_a_room(rooms, \"office\"))\n+        if person.type == \"fellow\" and wants_accommodation == \"Y\" \\\n+            and self.check_room_type_has_vacancy(rooms, \"living space\"):\n+            allocated_space.append(self.randomly_pick_a_room(rooms, \n+                                                             \"living space\"\n+                                                            ))\n+        return self.add_person_to_rooms(person, allocated_space)\n+        \n+    def check_room_type_has_vacancy(self, rooms, room_type):\n+        \"\"\"\n+        Args:\n+        rooms -- all rooms in database\n+        room_type -- the room type of interest\n+        Returns:\n+        True -- if there is a vacant room of a particular type. \n+        False -- if there is none\n+        \"\"\"\n+        for room in rooms:\n+            if self.check_that_room_is_vacant(room, room_type):\n+                return True\n+        print \"There is no vacant {0} currently in database!!!\". \\\n+            format(room_type.capitalize())\n+        return False\n+\n+    def add_person_to_rooms(self, person, rooms):\n+        \"\"\"Update Person rooms column with the new rooms assigned\n+        Args:\n+        person -- the person of interest\n+        rooms -- the rooms we want to allocate to person\n+        Returns:\n+        person -- the updated person object reflecting the allocation\n+        \"\"\"\n+        for room in rooms:\n+            person.room.append(room)\n+            print \"{0} {1} was assigned {2} {3}.\".format(person.first_name, \n+                person.last_name, room.name.capitalize(), room.type)\n+        return person\n+\n+    def randomly_pick_a_room(self, rooms, room_type):\n+        \"\"\"\n+        Randomly pick an office or living space based on supplied argument\n+        Args:\n+        rooms -- all rooms in database\n+        room_type -- the room type of interest\n+        Returns:\n+        room -- a randomly selected room\n+        \"\"\"\n+        last_room_index = len(rooms) - 1\n+        random_index = random.randint(0, last_room_index)\n+        searching_for_vacant_room = True\n+        while searching_for_vacant_room:\n+            if self.check_that_room_is_vacant(rooms[random_index], room_type):\n+                self.increment_number_of_occupants(rooms, random_index)\n+                searching_for_vacant_room = False\n+            else:\n+                random_index = random.randint(0, last_room_index)\n+        return rooms[random_index]\n+            \n+    def increment_number_of_occupants(self, rooms, room_index):\n+        \"\"\" Increases the number of occupants in room by one\n+        Args:\n+        room -- room to be updated\n+        Returns:\n+        updated room object\n+        \"\"\"\n+        rooms[room_index].no_of_occupants += 1\n+\n+    def check_that_room_is_vacant(self, room, room_type):\n+        \"\"\"\n+        Returns true if this room is vacant and of a particular type\n+        Args:\n+        room -- the room to check\n+        room_type -- the room type of interest\n+        Returns:\n+        True -- if room is vacant\n+        False -- if room is full\n+        \"\"\"\n+        if room.type == room_type and room.no_of_occupants < room.capacity:\n+            return True\n+        else:\n+            return False\n+\n+    def reallocate_person(self, person_identifier, room_name, people, rooms):\n+        \"\"\"\n+        Transfer person with the supplied person identifier to a different room\n+        Also performs fresh allocations if person has not been allocated a room\n+        of this type.\n+        Args:\n+        person_identifier -- an identifier that recognizes person\n+        room_name -- name of new room\n+        people -- list of person objects\n+        rooms -- list of room objects\n+        Returns a list containing person\n+        \"\"\"\n+        new_room = self.get_room(room_name, rooms)\n+        person = self.get_person(person_identifier, people)\n+        if not new_room:\n+            return []\n+        if not person:\n+            return []\n+        if person.type == \"staff\" and new_room.type == \"living space\":\n+            print \"FAILURE!!! You cannot allocate 'living space' to staff\"\n+            return []\n+        return self.search_persons_rooms_for_room_to_remove(\n+                                                             rooms, \n+                                                             new_room, \n+                                                             person\n+                                                           )\n+        \n+    def search_persons_rooms_for_room_to_remove(self, rooms, new_room, person):\n+        \"\"\"\n+        Searches rooms that person belongs to so only old room\n+        of same type is removed in place of new room\n+        If no old room of the same type exists, a new one is allocated\n+        Args:\n+        rooms -- list of all rooms\n+        room -- room to allocate person\n+        person -- person to be allocated\n+        Returns:\n+        person object\n+        \"\"\"\n+        for room_index in range(len(person.room)):","path":"amity/amity.py","position":189,"original_position":189,"commit_id":"59a545fe531d1ec825124389a6eb3e3a67e4be16","original_commit_id":"59a545fe531d1ec825124389a6eb3e3a67e4be16","user":{"login":"andela-anandaa","id":13568167,"avatar_url":"https://avatars.githubusercontent.com/u/13568167?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-anandaa","html_url":"https://github.com/andela-anandaa","followers_url":"https://api.github.com/users/andela-anandaa/followers","following_url":"https://api.github.com/users/andela-anandaa/following{/other_user}","gists_url":"https://api.github.com/users/andela-anandaa/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-anandaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-anandaa/subscriptions","organizations_url":"https://api.github.com/users/andela-anandaa/orgs","repos_url":"https://api.github.com/users/andela-anandaa/repos","events_url":"https://api.github.com/users/andela-anandaa/events{/privacy}","received_events_url":"https://api.github.com/users/andela-anandaa/received_events","type":"User","site_admin":false},"body":"`person.rooms`","created_at":"2016-05-17T15:03:23Z","updated_at":"2016-05-17T15:03:23Z","html_url":"https://github.com/andela-cdike/checkpoint-1/pull/1#discussion_r63539160","pull_request_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/comments/63539160"},"html":{"href":"https://github.com/andela-cdike/checkpoint-1/pull/1#discussion_r63539160"},"pull_request":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1","id":70363774,"html_url":"https://github.com/andela-cdike/checkpoint-1/pull/1","diff_url":"https://github.com/andela-cdike/checkpoint-1/pull/1.diff","patch_url":"https://github.com/andela-cdike/checkpoint-1/pull/1.patch","issue_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/1","number":1,"state":"open","locked":false,"title":"Checkpoint 1","user":{"login":"andela-cdike","id":7263503,"avatar_url":"https://avatars.githubusercontent.com/u/7263503?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cdike","html_url":"https://github.com/andela-cdike","followers_url":"https://api.github.com/users/andela-cdike/followers","following_url":"https://api.github.com/users/andela-cdike/following{/other_user}","gists_url":"https://api.github.com/users/andela-cdike/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cdike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cdike/subscriptions","organizations_url":"https://api.github.com/users/andela-cdike/orgs","repos_url":"https://api.github.com/users/andela-cdike/repos","events_url":"https://api.github.com/users/andela-cdike/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cdike/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-17T14:11:27Z","updated_at":"2016-05-17T15:03:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"840ec88ba613251ae645cbf16a68efa606a1f7f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/1/comments","statuses_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/statuses/59a545fe531d1ec825124389a6eb3e3a67e4be16","head":{"label":"andela-cdike:development","ref":"development","sha":"59a545fe531d1ec825124389a6eb3e3a67e4be16","user":{"login":"andela-cdike","id":7263503,"avatar_url":"https://avatars.githubusercontent.com/u/7263503?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cdike","html_url":"https://github.com/andela-cdike","followers_url":"https://api.github.com/users/andela-cdike/followers","following_url":"https://api.github.com/users/andela-cdike/following{/other_user}","gists_url":"https://api.github.com/users/andela-cdike/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cdike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cdike/subscriptions","organizations_url":"https://api.github.com/users/andela-cdike/orgs","repos_url":"https://api.github.com/users/andela-cdike/repos","events_url":"https://api.github.com/users/andela-cdike/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cdike/received_events","type":"User","site_admin":false},"repo":{"id":56938900,"name":"checkpoint-1","full_name":"andela-cdike/checkpoint-1","owner":{"login":"andela-cdike","id":7263503,"avatar_url":"https://avatars.githubusercontent.com/u/7263503?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cdike","html_url":"https://github.com/andela-cdike","followers_url":"https://api.github.com/users/andela-cdike/followers","following_url":"https://api.github.com/users/andela-cdike/following{/other_user}","gists_url":"https://api.github.com/users/andela-cdike/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cdike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cdike/subscriptions","organizations_url":"https://api.github.com/users/andela-cdike/orgs","repos_url":"https://api.github.com/users/andela-cdike/repos","events_url":"https://api.github.com/users/andela-cdike/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cdike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-cdike/checkpoint-1","description":"","fork":false,"url":"https://api.github.com/repos/andela-cdike/checkpoint-1","forks_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/forks","keys_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/teams","hooks_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/hooks","issue_events_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/events{/number}","events_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/events","assignees_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/assignees{/user}","branches_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/branches{/branch}","tags_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/tags","blobs_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/languages","stargazers_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/stargazers","contributors_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/contributors","subscribers_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/subscribers","subscription_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/subscription","commits_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/contents/{+path}","compare_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/merges","archive_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/downloads","issues_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues{/number}","pulls_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/labels{/name}","releases_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/releases{/id}","deployments_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/deployments","created_at":"2016-04-23T20:14:20Z","updated_at":"2016-05-17T14:10:14Z","pushed_at":"2016-05-17T14:11:27Z","git_url":"git://github.com/andela-cdike/checkpoint-1.git","ssh_url":"git@github.com:andela-cdike/checkpoint-1.git","clone_url":"https://github.com/andela-cdike/checkpoint-1.git","svn_url":"https://github.com/andela-cdike/checkpoint-1","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andela-cdike:master","ref":"master","sha":"c66742abcabbabb563ed5fdb947d28aa9d24fe2b","user":{"login":"andela-cdike","id":7263503,"avatar_url":"https://avatars.githubusercontent.com/u/7263503?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cdike","html_url":"https://github.com/andela-cdike","followers_url":"https://api.github.com/users/andela-cdike/followers","following_url":"https://api.github.com/users/andela-cdike/following{/other_user}","gists_url":"https://api.github.com/users/andela-cdike/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cdike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cdike/subscriptions","organizations_url":"https://api.github.com/users/andela-cdike/orgs","repos_url":"https://api.github.com/users/andela-cdike/repos","events_url":"https://api.github.com/users/andela-cdike/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cdike/received_events","type":"User","site_admin":false},"repo":{"id":56938900,"name":"checkpoint-1","full_name":"andela-cdike/checkpoint-1","owner":{"login":"andela-cdike","id":7263503,"avatar_url":"https://avatars.githubusercontent.com/u/7263503?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cdike","html_url":"https://github.com/andela-cdike","followers_url":"https://api.github.com/users/andela-cdike/followers","following_url":"https://api.github.com/users/andela-cdike/following{/other_user}","gists_url":"https://api.github.com/users/andela-cdike/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cdike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cdike/subscriptions","organizations_url":"https://api.github.com/users/andela-cdike/orgs","repos_url":"https://api.github.com/users/andela-cdike/repos","events_url":"https://api.github.com/users/andela-cdike/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cdike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-cdike/checkpoint-1","description":"","fork":false,"url":"https://api.github.com/repos/andela-cdike/checkpoint-1","forks_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/forks","keys_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/teams","hooks_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/hooks","issue_events_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/events{/number}","events_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/events","assignees_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/assignees{/user}","branches_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/branches{/branch}","tags_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/tags","blobs_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/languages","stargazers_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/stargazers","contributors_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/contributors","subscribers_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/subscribers","subscription_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/subscription","commits_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/contents/{+path}","compare_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/merges","archive_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/downloads","issues_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues{/number}","pulls_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/labels{/name}","releases_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/releases{/id}","deployments_url":"https://api.github.com/repos/andela-cdike/checkpoint-1/deployments","created_at":"2016-04-23T20:14:20Z","updated_at":"2016-05-17T14:10:14Z","pushed_at":"2016-05-17T14:11:27Z","git_url":"git://github.com/andela-cdike/checkpoint-1.git","ssh_url":"git@github.com:andela-cdike/checkpoint-1.git","clone_url":"https://github.com/andela-cdike/checkpoint-1.git","svn_url":"https://github.com/andela-cdike/checkpoint-1","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1"},"html":{"href":"https://github.com/andela-cdike/checkpoint-1/pull/1"},"issue":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/1"},"comments":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andela-cdike/checkpoint-1/statuses/59a545fe531d1ec825124389a6eb3e3a67e4be16"}}}}