{"action":"created","comment":{"url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/comments/59301301","id":59301301,"diff_hunk":"@@ -17,6 +17,15 @@\n import numpy as np\n import matplotlib.pyplot as plt\n import networkx as nx\n+import subprocess\n+import re\n+\n+from matplotlib.ticker import FuncFormatter\n+import math\n+\n+import numpy as np\n+import matplotlib.pyplot as plt\n+from matplotlib.ticker import FuncFormatter","path":"python/tools/dht/tests.py","position":null,"original_position":12,"commit_id":"c6cb6731befb0ba2c44a324d193ec5f45bc8646f","original_commit_id":"3c07e0ce26786b88b8cd17dcf7b24e98c1114bed","user":{"login":"kaldoran","id":2991859,"avatar_url":"https://avatars.githubusercontent.com/u/2991859?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldoran","html_url":"https://github.com/kaldoran","followers_url":"https://api.github.com/users/kaldoran/followers","following_url":"https://api.github.com/users/kaldoran/following{/other_user}","gists_url":"https://api.github.com/users/kaldoran/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldoran/subscriptions","organizations_url":"https://api.github.com/users/kaldoran/orgs","repos_url":"https://api.github.com/users/kaldoran/repos","events_url":"https://api.github.com/users/kaldoran/events{/privacy}","received_events_url":"https://api.github.com/users/kaldoran/received_events","type":"User","site_admin":false},"body":"Update done :) Thanks for the review.\r\nAnd yup in fact that was a trouble will merging ( i suppose )","created_at":"2016-04-11T23:51:18Z","updated_at":"2016-04-11T23:51:18Z","html_url":"https://github.com/savoirfairelinux/opendht/pull/56#discussion_r59301301","pull_request_url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/comments/59301301"},"html":{"href":"https://github.com/savoirfairelinux/opendht/pull/56#discussion_r59301301"},"pull_request":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56","id":65511006,"html_url":"https://github.com/savoirfairelinux/opendht/pull/56","diff_url":"https://github.com/savoirfairelinux/opendht/pull/56.diff","patch_url":"https://github.com/savoirfairelinux/opendht/pull/56.patch","issue_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/56","number":56,"state":"open","locked":false,"title":"Adding cache into indexation","user":{"login":"kaldoran","id":2991859,"avatar_url":"https://avatars.githubusercontent.com/u/2991859?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldoran","html_url":"https://github.com/kaldoran","followers_url":"https://api.github.com/users/kaldoran/followers","following_url":"https://api.github.com/users/kaldoran/following{/other_user}","gists_url":"https://api.github.com/users/kaldoran/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldoran/subscriptions","organizations_url":"https://api.github.com/users/kaldoran/orgs","repos_url":"https://api.github.com/users/kaldoran/repos","events_url":"https://api.github.com/users/kaldoran/events{/privacy}","received_events_url":"https://api.github.com/users/kaldoran/received_events","type":"User","site_admin":false},"body":"And here comes the cache for the indexation process.\r\n\r\nIn this PR i also move the `__normalConditionTest(self)` function of the file  python/tools/dht/tests.py\r\ncause i've planned ahead for a next test which would test all the feature with a real network ( with some node leaving and some getting back etc ).\r\n\r\nIf that gave trouble i could update my PR\r\n\r\n","created_at":"2016-04-06T18:11:33Z","updated_at":"2016-04-11T23:51:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"792986af65b75e028e98f9a042d8dca16143e3f6","assignee":{"login":"sim590","id":4147254,"avatar_url":"https://avatars.githubusercontent.com/u/4147254?v=3","gravatar_id":"","url":"https://api.github.com/users/sim590","html_url":"https://github.com/sim590","followers_url":"https://api.github.com/users/sim590/followers","following_url":"https://api.github.com/users/sim590/following{/other_user}","gists_url":"https://api.github.com/users/sim590/gists{/gist_id}","starred_url":"https://api.github.com/users/sim590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sim590/subscriptions","organizations_url":"https://api.github.com/users/sim590/orgs","repos_url":"https://api.github.com/users/sim590/repos","events_url":"https://api.github.com/users/sim590/events{/privacy}","received_events_url":"https://api.github.com/users/sim590/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/savoirfairelinux/opendht/milestones/1","html_url":"https://github.com/savoirfairelinux/opendht/milestones/Pht%20indexation","labels_url":"https://api.github.com/repos/savoirfairelinux/opendht/milestones/1/labels","id":1589536,"number":1,"title":"Pht indexation","description":"# Distributed indexation over the DHT\r\n\r\n## Summary\r\nIndexation over the DHT is an important goal to achieve and has relevant use cases like:\r\n\r\n- **random queries**: random search of values of the same \"type\" over the whole DHT (not a single peer).\r\n- **partial queries**: searching values corresponding to a *key* or a prefix of that key.\r\n\r\n## Implementation details\r\n\r\nThis is going to be achieved using a data structure named *Prefix Hash Tree*.\r\n\r\n*More documentation to come...*","creator":{"login":"sim590","id":4147254,"avatar_url":"https://avatars.githubusercontent.com/u/4147254?v=3","gravatar_id":"","url":"https://api.github.com/users/sim590","html_url":"https://github.com/sim590","followers_url":"https://api.github.com/users/sim590/followers","following_url":"https://api.github.com/users/sim590/following{/other_user}","gists_url":"https://api.github.com/users/sim590/gists{/gist_id}","starred_url":"https://api.github.com/users/sim590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sim590/subscriptions","organizations_url":"https://api.github.com/users/sim590/orgs","repos_url":"https://api.github.com/users/sim590/repos","events_url":"https://api.github.com/users/sim590/events{/privacy}","received_events_url":"https://api.github.com/users/sim590/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2016-02-17T21:58:46Z","updated_at":"2016-04-06T19:39:37Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56/commits","review_comments_url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56/comments","review_comment_url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/comments{/number}","comments_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/56/comments","statuses_url":"https://api.github.com/repos/savoirfairelinux/opendht/statuses/c6cb6731befb0ba2c44a324d193ec5f45bc8646f","head":{"label":"kaldoran:pht_cache","ref":"pht_cache","sha":"c6cb6731befb0ba2c44a324d193ec5f45bc8646f","user":{"login":"kaldoran","id":2991859,"avatar_url":"https://avatars.githubusercontent.com/u/2991859?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldoran","html_url":"https://github.com/kaldoran","followers_url":"https://api.github.com/users/kaldoran/followers","following_url":"https://api.github.com/users/kaldoran/following{/other_user}","gists_url":"https://api.github.com/users/kaldoran/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldoran/subscriptions","organizations_url":"https://api.github.com/users/kaldoran/orgs","repos_url":"https://api.github.com/users/kaldoran/repos","events_url":"https://api.github.com/users/kaldoran/events{/privacy}","received_events_url":"https://api.github.com/users/kaldoran/received_events","type":"User","site_admin":false},"repo":{"id":51762049,"name":"opendht","full_name":"kaldoran/opendht","owner":{"login":"kaldoran","id":2991859,"avatar_url":"https://avatars.githubusercontent.com/u/2991859?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldoran","html_url":"https://github.com/kaldoran","followers_url":"https://api.github.com/users/kaldoran/followers","following_url":"https://api.github.com/users/kaldoran/following{/other_user}","gists_url":"https://api.github.com/users/kaldoran/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldoran/subscriptions","organizations_url":"https://api.github.com/users/kaldoran/orgs","repos_url":"https://api.github.com/users/kaldoran/repos","events_url":"https://api.github.com/users/kaldoran/events{/privacy}","received_events_url":"https://api.github.com/users/kaldoran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaldoran/opendht","description":"A C++11 Distributed Hash Table implementation","fork":true,"url":"https://api.github.com/repos/kaldoran/opendht","forks_url":"https://api.github.com/repos/kaldoran/opendht/forks","keys_url":"https://api.github.com/repos/kaldoran/opendht/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaldoran/opendht/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaldoran/opendht/teams","hooks_url":"https://api.github.com/repos/kaldoran/opendht/hooks","issue_events_url":"https://api.github.com/repos/kaldoran/opendht/issues/events{/number}","events_url":"https://api.github.com/repos/kaldoran/opendht/events","assignees_url":"https://api.github.com/repos/kaldoran/opendht/assignees{/user}","branches_url":"https://api.github.com/repos/kaldoran/opendht/branches{/branch}","tags_url":"https://api.github.com/repos/kaldoran/opendht/tags","blobs_url":"https://api.github.com/repos/kaldoran/opendht/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaldoran/opendht/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaldoran/opendht/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaldoran/opendht/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaldoran/opendht/statuses/{sha}","languages_url":"https://api.github.com/repos/kaldoran/opendht/languages","stargazers_url":"https://api.github.com/repos/kaldoran/opendht/stargazers","contributors_url":"https://api.github.com/repos/kaldoran/opendht/contributors","subscribers_url":"https://api.github.com/repos/kaldoran/opendht/subscribers","subscription_url":"https://api.github.com/repos/kaldoran/opendht/subscription","commits_url":"https://api.github.com/repos/kaldoran/opendht/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaldoran/opendht/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaldoran/opendht/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaldoran/opendht/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaldoran/opendht/contents/{+path}","compare_url":"https://api.github.com/repos/kaldoran/opendht/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaldoran/opendht/merges","archive_url":"https://api.github.com/repos/kaldoran/opendht/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaldoran/opendht/downloads","issues_url":"https://api.github.com/repos/kaldoran/opendht/issues{/number}","pulls_url":"https://api.github.com/repos/kaldoran/opendht/pulls{/number}","milestones_url":"https://api.github.com/repos/kaldoran/opendht/milestones{/number}","notifications_url":"https://api.github.com/repos/kaldoran/opendht/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaldoran/opendht/labels{/name}","releases_url":"https://api.github.com/repos/kaldoran/opendht/releases{/id}","deployments_url":"https://api.github.com/repos/kaldoran/opendht/deployments","created_at":"2016-02-15T14:45:35Z","updated_at":"2016-02-15T14:45:36Z","pushed_at":"2016-04-11T23:50:49Z","git_url":"git://github.com/kaldoran/opendht.git","ssh_url":"git@github.com:kaldoran/opendht.git","clone_url":"https://github.com/kaldoran/opendht.git","svn_url":"https://github.com/kaldoran/opendht","homepage":null,"size":1121,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"savoirfairelinux:index","ref":"index","sha":"2a41c2a54d38a54a36a8394764499f0047a3b489","user":{"login":"savoirfairelinux","id":2735545,"avatar_url":"https://avatars.githubusercontent.com/u/2735545?v=3","gravatar_id":"","url":"https://api.github.com/users/savoirfairelinux","html_url":"https://github.com/savoirfairelinux","followers_url":"https://api.github.com/users/savoirfairelinux/followers","following_url":"https://api.github.com/users/savoirfairelinux/following{/other_user}","gists_url":"https://api.github.com/users/savoirfairelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/savoirfairelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savoirfairelinux/subscriptions","organizations_url":"https://api.github.com/users/savoirfairelinux/orgs","repos_url":"https://api.github.com/users/savoirfairelinux/repos","events_url":"https://api.github.com/users/savoirfairelinux/events{/privacy}","received_events_url":"https://api.github.com/users/savoirfairelinux/received_events","type":"Organization","site_admin":false},"repo":{"id":28151108,"name":"opendht","full_name":"savoirfairelinux/opendht","owner":{"login":"savoirfairelinux","id":2735545,"avatar_url":"https://avatars.githubusercontent.com/u/2735545?v=3","gravatar_id":"","url":"https://api.github.com/users/savoirfairelinux","html_url":"https://github.com/savoirfairelinux","followers_url":"https://api.github.com/users/savoirfairelinux/followers","following_url":"https://api.github.com/users/savoirfairelinux/following{/other_user}","gists_url":"https://api.github.com/users/savoirfairelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/savoirfairelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savoirfairelinux/subscriptions","organizations_url":"https://api.github.com/users/savoirfairelinux/orgs","repos_url":"https://api.github.com/users/savoirfairelinux/repos","events_url":"https://api.github.com/users/savoirfairelinux/events{/privacy}","received_events_url":"https://api.github.com/users/savoirfairelinux/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/savoirfairelinux/opendht","description":"A C++11 Distributed Hash Table implementation","fork":false,"url":"https://api.github.com/repos/savoirfairelinux/opendht","forks_url":"https://api.github.com/repos/savoirfairelinux/opendht/forks","keys_url":"https://api.github.com/repos/savoirfairelinux/opendht/keys{/key_id}","collaborators_url":"https://api.github.com/repos/savoirfairelinux/opendht/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/savoirfairelinux/opendht/teams","hooks_url":"https://api.github.com/repos/savoirfairelinux/opendht/hooks","issue_events_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/events{/number}","events_url":"https://api.github.com/repos/savoirfairelinux/opendht/events","assignees_url":"https://api.github.com/repos/savoirfairelinux/opendht/assignees{/user}","branches_url":"https://api.github.com/repos/savoirfairelinux/opendht/branches{/branch}","tags_url":"https://api.github.com/repos/savoirfairelinux/opendht/tags","blobs_url":"https://api.github.com/repos/savoirfairelinux/opendht/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/savoirfairelinux/opendht/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/savoirfairelinux/opendht/git/refs{/sha}","trees_url":"https://api.github.com/repos/savoirfairelinux/opendht/git/trees{/sha}","statuses_url":"https://api.github.com/repos/savoirfairelinux/opendht/statuses/{sha}","languages_url":"https://api.github.com/repos/savoirfairelinux/opendht/languages","stargazers_url":"https://api.github.com/repos/savoirfairelinux/opendht/stargazers","contributors_url":"https://api.github.com/repos/savoirfairelinux/opendht/contributors","subscribers_url":"https://api.github.com/repos/savoirfairelinux/opendht/subscribers","subscription_url":"https://api.github.com/repos/savoirfairelinux/opendht/subscription","commits_url":"https://api.github.com/repos/savoirfairelinux/opendht/commits{/sha}","git_commits_url":"https://api.github.com/repos/savoirfairelinux/opendht/git/commits{/sha}","comments_url":"https://api.github.com/repos/savoirfairelinux/opendht/comments{/number}","issue_comment_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/comments{/number}","contents_url":"https://api.github.com/repos/savoirfairelinux/opendht/contents/{+path}","compare_url":"https://api.github.com/repos/savoirfairelinux/opendht/compare/{base}...{head}","merges_url":"https://api.github.com/repos/savoirfairelinux/opendht/merges","archive_url":"https://api.github.com/repos/savoirfairelinux/opendht/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/savoirfairelinux/opendht/downloads","issues_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues{/number}","pulls_url":"https://api.github.com/repos/savoirfairelinux/opendht/pulls{/number}","milestones_url":"https://api.github.com/repos/savoirfairelinux/opendht/milestones{/number}","notifications_url":"https://api.github.com/repos/savoirfairelinux/opendht/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/savoirfairelinux/opendht/labels{/name}","releases_url":"https://api.github.com/repos/savoirfairelinux/opendht/releases{/id}","deployments_url":"https://api.github.com/repos/savoirfairelinux/opendht/deployments","created_at":"2014-12-17T19:05:22Z","updated_at":"2016-04-04T03:58:08Z","pushed_at":"2016-04-11T23:50:50Z","git_url":"git://github.com/savoirfairelinux/opendht.git","ssh_url":"git@github.com:savoirfairelinux/opendht.git","clone_url":"https://github.com/savoirfairelinux/opendht.git","svn_url":"https://github.com/savoirfairelinux/opendht","homepage":null,"size":1363,"stargazers_count":100,"watchers_count":100,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":8,"forks":24,"open_issues":8,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56"},"html":{"href":"https://github.com/savoirfairelinux/opendht/pull/56"},"issue":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/issues/56"},"comments":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/savoirfairelinux/opendht/statuses/c6cb6731befb0ba2c44a324d193ec5f45bc8646f"}}}}