{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments/92571605","pull_request_review_id":13088765,"id":92571605,"diff_hunk":"@@ -0,0 +1,310 @@\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+#\n+# See LICENSE for more details.\n+#\n+# Copyright: 2016 IBM\n+# Author: Narasimhan V <sim@linux.vnet.ibm.com>\n+#\n+# Author: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>\n+# Author: Daniel Kreling <kreling@linux.vnet.ibm.com>\n+# for get_memory_address() and get_mask()\n+\n+\"\"\"\n+Module for all PCI devices related functions.\n+\"\"\"\n+\n+\n+import re\n+import os\n+from . import process\n+\n+\n+def get_domains():\n+    \"\"\"\n+    Gets all pci domains.\n+\n+    :return: List of pci domains.\n+    \"\"\"\n+    cmd = \"lspci -D\"\n+    output = process.system_output(cmd, shell=True, ignore_status=True)\n+    if output:\n+        domains = []\n+        for line in output.splitlines():\n+            domains.append(line.split(\":\")[0])\n+        return list(set(domains))\n+\n+\n+def get_num_devices_in_domain(domain):\n+    \"\"\"\n+    Gets number of devices in a pci domain.\n+\n+    :parm domain: pci domain.\n+\n+    :return: number of devices in a pci domain.\n+    \"\"\"\n+    cmd = \"ls -l /sys/class/*/ -1\"\n+    output = process.system_output(cmd, shell=True, ignore_status=True)\n+    if output:\n+        count = 0\n+        for line in output.splitlines():\n+            if domain in line:\n+                count += 1\n+        return count\n+\n+\n+def get_disks_in_device(device):\n+    \"\"\"\n+    Gets disks in a pci device.\n+\n+    :parm device: pci device.\n+\n+    :return: list of disks in a pci device.\n+    \"\"\"\n+    disks_path = \"/dev/disk/by-path/\"\n+    devices_list = []\n+    for dev in os.listdir(disks_path):\n+        if device in dev:\n+            link = os.readlink(\"%s%s\" % (disks_path, dev))\n+            devices_list.append(os.path.abspath(\"%s%s\" % (disks_path, link)))\n+    return devices_list\n+\n+\n+def get_interfaces_in_device(device):\n+    \"\"\"\n+    Gets ethernet interface in a pci device.\n+\n+    :parm device: pci device.\n+\n+    :return: list of interfaces in a pci device.\n+    \"\"\"\n+    iface_path = \"/sys/class/net/\"\n+    interfaces_list = []\n+    for iface in os.listdir(iface_path):\n+        if device in os.readlink(\"%s%s\" % (iface_path, iface)):\n+            interfaces_list.append(iface)\n+    return interfaces_list\n+\n+\n+def get_pci_fun_list(device):\n+    \"\"\"\n+    Gets list of functions in the given pci device.\n+    Example: in device 0000:03:00, functions are 0000:03:00.0 and 0000:03:00.1\n+\n+    :parm device: pci device.\n+\n+    :return: list of functions in a pci device.\n+    \"\"\"\n+    return list(dev for dev in get_pci_devices() if device in dev)\n+\n+\n+def get_slot_from_sysfs(device):\n+    \"\"\"\n+    Gets the pci slot of given device.\n+    Specific for ppc64 processor\n+\n+    :parm device: pci device.\n+\n+    :return: slot of pci device from sysfs.\n+    \"\"\"\n+    if not os.path.isdir('/sys/bus/pci/devices/%s' % device):\n+        return\n+    cmd = \"cat /sys/bus/pci/devices/%s/devspec\" % device\n+    devspec = process.system_output(cmd, shell=True).strip('\\n')\n+    cmd = \"cat /proc/device-tree/%s/ibm,loc-code\" % devspec\n+    slot = process.system_output(cmd, shell=True).strip('\\0\\n')\n+    return re.match(r'((\\w+)[\\.])+(\\w+)-(\\w*\\d+)-(\\w*\\d+)|Slot(\\d+)',\n+                    slot).group()\n+\n+\n+def get_pci_id_from_sysfs(device):\n+    \"\"\"\n+    Gets the pci id from sysfs of given device.\n+\n+    :parm device: pci device.\n+\n+    :return: pci id of a pci device from sysfs.\n+    \"\"\"\n+    path = \"/sys/bus/pci/devices/%s\" % device\n+    if os.path.isdir(path):\n+        path = \"%s/%%s\" % path\n+        return \":\".join([\"%04x\" % int(open(path % param).read(), 16)\n+                         for param in ['vendor', 'device', 'subsystem_vendor',\n+                                       'subsystem_device']])\n+\n+\n+def get_slot_list():\n+    \"\"\"\n+    Gets list of pci slots in the system.\n+\n+    :return: list of slots in the system.\n+    \"\"\"\n+    return list(set(get_slot_from_sysfs(dev) for dev in get_pci_devices()))\n+\n+\n+def get_specific_pci_id(device, part):\n+    \"\"\"\n+    Gets specific pci id of given divice.\n+\n+    :parm device: pci device.\n+    :parm part: part of pci id.\n+\n+    :return: specific pci id of a pci device.\n+    \"\"\"\n+    cmd = \"lspci -Dnvmm -s %s\" % device\n+    output = process.system_output(cmd, shell=True, ignore_status=True)\n+    if output:\n+        for line in output.splitlines():\n+            if part == line.split()[0].strip(':'):\n+                return line.split()[-1]\n+\n+\n+def get_pci_id(device):\n+    \"\"\"\n+    Gets pci id of given divice.\n+\n+    :parm device: pci device.\n+\n+    :return: pci id of a pci device.\n+    \"\"\"\n+    pci_id = []\n+    for params in ['Vendor', 'Device', 'SVendor', 'SDevice']:\n+        output = get_specific_pci_id(device, params)\n+        if output:\n+            pci_id.append(output)\n+    if pci_id:\n+        return \":\".join(pci_id)\n+\n+\n+def get_driver(device):\n+    \"\"\"\n+    Gets the kernel driver in use of given device.\n+\n+    :parm device: pci device.\n+\n+    :return: driver of a pci device.\n+    \"\"\"\n+    cmd = \"lspci -ks %s\" % device\n+    output = process.system_output(cmd, shell=True, ignore_status=True)\n+    if output:\n+        for line in output.splitlines():\n+            if 'Kernel driver in use:' in line:\n+                return line.split()[-1]\n+\n+\n+def get_memory_address(device):\n+    \"\"\"\n+    Gets the memory address of a pci device.\n+    There may be multiple memory address for a pci device.\n+    This function rerutns only the first such address.\n+\n+    :parm device: pci device.\n+\n+    :return: memory address of a pci device.\n+    \"\"\"\n+    cmd = \"lspci -bv -s %s\" % device\n+    output = process.system_output(cmd, shell=True, ignore_status=True)\n+    if output:\n+        for line in output.splitlines():\n+            if 'Memory at' in line:\n+                return \"0x%s\" % line.split()[2]\n+\n+\n+def get_mask(device):\n+    \"\"\"\n+    Gets the mask of pci device.\n+    There may be multiple memory entries for a pci device.\n+    This mask is calculated only with the first such entry.\n+\n+    :parm device: pci device.\n+\n+    :return: mask of a pci device.\n+    \"\"\"\n+    cmd = \"lspci -vv -s %s\" % device\n+    output = process.system_output(cmd, shell=True, ignore_status=True)\n+    if output:\n+        dic = {'K': '10', 'M': '20', 'G': '30'}","path":"avocado/utils/pci.py","position":232,"original_position":232,"commit_id":"99d1ac3268cb93b9baac586c1ad05b29506a7bf4","original_commit_id":"99d1ac3268cb93b9baac586c1ad05b29506a7bf4","user":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"body":"I'd really appreciate if you use the full values here: `{'K': 1024, \"M\": 1048576, \"G\": 1073741824}`. Initializing such dict is faster than the need to calculate `pow`. The same applies for memory usage.","created_at":"2016-12-15T09:27:47Z","updated_at":"2016-12-15T09:27:48Z","html_url":"https://github.com/avocado-framework/avocado/pull/1672#discussion_r92571605","pull_request_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments/92571605"},"html":{"href":"https://github.com/avocado-framework/avocado/pull/1672#discussion_r92571605"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672"}}},"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672","id":97913952,"html_url":"https://github.com/avocado-framework/avocado/pull/1672","diff_url":"https://github.com/avocado-framework/avocado/pull/1672.diff","patch_url":"https://github.com/avocado-framework/avocado/pull/1672.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1672","number":1672,"state":"open","locked":false,"title":"Adding PCI module [v2]","user":{"login":"narasimhan-v","id":16101053,"avatar_url":"https://avatars.githubusercontent.com/u/16101053?v=3","gravatar_id":"","url":"https://api.github.com/users/narasimhan-v","html_url":"https://github.com/narasimhan-v","followers_url":"https://api.github.com/users/narasimhan-v/followers","following_url":"https://api.github.com/users/narasimhan-v/following{/other_user}","gists_url":"https://api.github.com/users/narasimhan-v/gists{/gist_id}","starred_url":"https://api.github.com/users/narasimhan-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narasimhan-v/subscriptions","organizations_url":"https://api.github.com/users/narasimhan-v/orgs","repos_url":"https://api.github.com/users/narasimhan-v/repos","events_url":"https://api.github.com/users/narasimhan-v/events{/privacy}","received_events_url":"https://api.github.com/users/narasimhan-v/received_events","type":"User","site_admin":false},"body":"avocado.utils.pci: Adds pci related modules.\r\n\r\nChangelog from v1 #1657:\r\n* Removed the use of pipes in bash commands, and used python parsing.\r\n* Added docstring to explain more about the functionality of the module.\r\n* Added a new function to get the kernel driver.\r\n* And taken care other python usability related comments of @ldoktor from v1.\r\n\r\nSigned-off-by: Narasimhan V <sim@linux.vnet.ibm.com>","created_at":"2016-12-14T09:20:48Z","updated_at":"2016-12-15T09:27:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3631e7a0dff987af1cc1cdb33d358cd9de2dd25d","assignee":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"assignees":[{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars.githubusercontent.com/u/1074021?v=3","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1672/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/99d1ac3268cb93b9baac586c1ad05b29506a7bf4","head":{"label":"narasimhan-v:pci_v2","ref":"pci_v2","sha":"99d1ac3268cb93b9baac586c1ad05b29506a7bf4","user":{"login":"narasimhan-v","id":16101053,"avatar_url":"https://avatars.githubusercontent.com/u/16101053?v=3","gravatar_id":"","url":"https://api.github.com/users/narasimhan-v","html_url":"https://github.com/narasimhan-v","followers_url":"https://api.github.com/users/narasimhan-v/followers","following_url":"https://api.github.com/users/narasimhan-v/following{/other_user}","gists_url":"https://api.github.com/users/narasimhan-v/gists{/gist_id}","starred_url":"https://api.github.com/users/narasimhan-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narasimhan-v/subscriptions","organizations_url":"https://api.github.com/users/narasimhan-v/orgs","repos_url":"https://api.github.com/users/narasimhan-v/repos","events_url":"https://api.github.com/users/narasimhan-v/events{/privacy}","received_events_url":"https://api.github.com/users/narasimhan-v/received_events","type":"User","site_admin":false},"repo":{"id":57944657,"name":"avocado","full_name":"narasimhan-v/avocado","owner":{"login":"narasimhan-v","id":16101053,"avatar_url":"https://avatars.githubusercontent.com/u/16101053?v=3","gravatar_id":"","url":"https://api.github.com/users/narasimhan-v","html_url":"https://github.com/narasimhan-v","followers_url":"https://api.github.com/users/narasimhan-v/followers","following_url":"https://api.github.com/users/narasimhan-v/following{/other_user}","gists_url":"https://api.github.com/users/narasimhan-v/gists{/gist_id}","starred_url":"https://api.github.com/users/narasimhan-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narasimhan-v/subscriptions","organizations_url":"https://api.github.com/users/narasimhan-v/orgs","repos_url":"https://api.github.com/users/narasimhan-v/repos","events_url":"https://api.github.com/users/narasimhan-v/events{/privacy}","received_events_url":"https://api.github.com/users/narasimhan-v/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/narasimhan-v/avocado","description":"Avocado Test Framework","fork":true,"url":"https://api.github.com/repos/narasimhan-v/avocado","forks_url":"https://api.github.com/repos/narasimhan-v/avocado/forks","keys_url":"https://api.github.com/repos/narasimhan-v/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/narasimhan-v/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/narasimhan-v/avocado/teams","hooks_url":"https://api.github.com/repos/narasimhan-v/avocado/hooks","issue_events_url":"https://api.github.com/repos/narasimhan-v/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/narasimhan-v/avocado/events","assignees_url":"https://api.github.com/repos/narasimhan-v/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/narasimhan-v/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/narasimhan-v/avocado/tags","blobs_url":"https://api.github.com/repos/narasimhan-v/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/narasimhan-v/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/narasimhan-v/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/narasimhan-v/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/narasimhan-v/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/narasimhan-v/avocado/languages","stargazers_url":"https://api.github.com/repos/narasimhan-v/avocado/stargazers","contributors_url":"https://api.github.com/repos/narasimhan-v/avocado/contributors","subscribers_url":"https://api.github.com/repos/narasimhan-v/avocado/subscribers","subscription_url":"https://api.github.com/repos/narasimhan-v/avocado/subscription","commits_url":"https://api.github.com/repos/narasimhan-v/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/narasimhan-v/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/narasimhan-v/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/narasimhan-v/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/narasimhan-v/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/narasimhan-v/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/narasimhan-v/avocado/merges","archive_url":"https://api.github.com/repos/narasimhan-v/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/narasimhan-v/avocado/downloads","issues_url":"https://api.github.com/repos/narasimhan-v/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/narasimhan-v/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/narasimhan-v/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/narasimhan-v/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/narasimhan-v/avocado/labels{/name}","releases_url":"https://api.github.com/repos/narasimhan-v/avocado/releases{/id}","deployments_url":"https://api.github.com/repos/narasimhan-v/avocado/deployments","created_at":"2016-05-03T05:52:07Z","updated_at":"2016-05-03T05:52:08Z","pushed_at":"2016-12-14T09:49:48Z","git_url":"git://github.com/narasimhan-v/avocado.git","ssh_url":"git@github.com:narasimhan-v/avocado.git","clone_url":"https://github.com/narasimhan-v/avocado.git","svn_url":"https://github.com/narasimhan-v/avocado","homepage":"http://avocado-framework.github.io/","size":9683,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"avocado-framework:master","ref":"master","sha":"1c88846f48680d173dad23534bb57165badccc07","user":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars.githubusercontent.com/u/7245719?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":17449498,"name":"avocado","full_name":"avocado-framework/avocado","owner":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars.githubusercontent.com/u/7245719?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avocado-framework/avocado","description":"Avocado Test Framework","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado","forks_url":"https://api.github.com/repos/avocado-framework/avocado/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado/releases{/id}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado/deployments","created_at":"2014-03-05T17:52:27Z","updated_at":"2016-12-08T06:04:39Z","pushed_at":"2016-12-14T13:22:46Z","git_url":"git://github.com/avocado-framework/avocado.git","ssh_url":"git@github.com:avocado-framework/avocado.git","clone_url":"https://github.com/avocado-framework/avocado.git","svn_url":"https://github.com/avocado-framework/avocado","homepage":"http://avocado-framework.github.io/","size":15646,"stargazers_count":70,"watchers_count":70,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":13,"forks":99,"open_issues":13,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672"},"html":{"href":"https://github.com/avocado-framework/avocado/pull/1672"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/1672"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/1672/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1672/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado/statuses/99d1ac3268cb93b9baac586c1ad05b29506a7bf4"}}}}
{"actor":{"display_login":"ldoktor"}}