{"action":"created","comment":{"url":"https://api.github.com/repos/dib-lab/khmer/pulls/comments/33296461","id":33296461,"diff_hunk":"@@ -0,0 +1,42 @@\n+from __future__ import print_function\n+from __future__ import absolute_import\n+from __future__ import unicode_literals\n+#\n+# This file is part of khmer, https://github.com/dib-lab/khmer/, and is\n+# Copyright (C) Michigan State University, 2009-2015. It is licensed under\n+# the three-clause BSD license; see LICENSE.\n+# Contact: khmer-project@idyll.org\n+#\n+\n+# pylint: disable=C0111,C0103,E1103,W0612\n+\n+from . import khmer_tst_utils as utils\n+import khmer\n+from oxli import functions\n+\n+\n+def test_estimate_functions_1():\n+    res = functions.estimate_optimal_with_N_and_M(99, 1024)\n+    assert res[0] == 7, res[0]\n+    assert res[1] == 146, res[1]\n+    assert res[2] == 1022, res[2]\n+    assert abs(.008 - res[3]) < .001, res[3]","path":"tests/test_oxli_functions.py","position":23,"original_position":23,"commit_id":"4b30d556edfd9933a120e331433fdf0b573dde67","original_commit_id":"4b30d556edfd9933a120e331433fdf0b573dde67","user":{"login":"bocajnotnef","id":2142082,"avatar_url":"https://avatars.githubusercontent.com/u/2142082?v=3","gravatar_id":"","url":"https://api.github.com/users/bocajnotnef","html_url":"https://github.com/bocajnotnef","followers_url":"https://api.github.com/users/bocajnotnef/followers","following_url":"https://api.github.com/users/bocajnotnef/following{/other_user}","gists_url":"https://api.github.com/users/bocajnotnef/gists{/gist_id}","starred_url":"https://api.github.com/users/bocajnotnef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocajnotnef/subscriptions","organizations_url":"https://api.github.com/users/bocajnotnef/orgs","repos_url":"https://api.github.com/users/bocajnotnef/repos","events_url":"https://api.github.com/users/bocajnotnef/events{/privacy}","received_events_url":"https://api.github.com/users/bocajnotnef/received_events","type":"User","site_admin":false},"body":"+1, will implement after I sort out #1120 1120","created_at":"2015-06-25T19:45:30Z","updated_at":"2015-06-25T19:45:30Z","html_url":"https://github.com/dib-lab/khmer/pull/1106#discussion_r33296461","pull_request_url":"https://api.github.com/repos/dib-lab/khmer/pulls/1106","_links":{"self":{"href":"https://api.github.com/repos/dib-lab/khmer/pulls/comments/33296461"},"html":{"href":"https://github.com/dib-lab/khmer/pull/1106#discussion_r33296461"},"pull_request":{"href":"https://api.github.com/repos/dib-lab/khmer/pulls/1106"}}},"pull_request":{"url":"https://api.github.com/repos/dib-lab/khmer/pulls/1106","id":38125236,"html_url":"https://github.com/dib-lab/khmer/pull/1106","diff_url":"https://github.com/dib-lab/khmer/pull/1106.diff","patch_url":"https://github.com/dib-lab/khmer/pull/1106.patch","issue_url":"https://api.github.com/repos/dib-lab/khmer/issues/1106","number":1106,"state":"open","locked":false,"title":"Vulture of #621: \"add estimate_optimal_hash.py\"","user":{"login":"bocajnotnef","id":2142082,"avatar_url":"https://avatars.githubusercontent.com/u/2142082?v=3","gravatar_id":"","url":"https://api.github.com/users/bocajnotnef","html_url":"https://github.com/bocajnotnef","followers_url":"https://api.github.com/users/bocajnotnef/followers","following_url":"https://api.github.com/users/bocajnotnef/following{/other_user}","gists_url":"https://api.github.com/users/bocajnotnef/gists{/gist_id}","starred_url":"https://api.github.com/users/bocajnotnef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocajnotnef/subscriptions","organizations_url":"https://api.github.com/users/bocajnotnef/orgs","repos_url":"https://api.github.com/users/bocajnotnef/repos","events_url":"https://api.github.com/users/bocajnotnef/events{/privacy}","received_events_url":"https://api.github.com/users/bocajnotnef/received_events","type":"User","site_admin":false},"body":"Copied from #621, addresses #390(ish)","created_at":"2015-06-19T16:36:09Z","updated_at":"2015-06-25T19:45:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae2d8652445c6f2bf2b9862d31cdf11fce551845","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dib-lab/khmer/pulls/1106/commits","review_comments_url":"https://api.github.com/repos/dib-lab/khmer/pulls/1106/comments","review_comment_url":"https://api.github.com/repos/dib-lab/khmer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dib-lab/khmer/issues/1106/comments","statuses_url":"https://api.github.com/repos/dib-lab/khmer/statuses/4b30d556edfd9933a120e331433fdf0b573dde67","head":{"label":"dib-lab:fix/390","ref":"fix/390","sha":"4b30d556edfd9933a120e331433fdf0b573dde67","user":{"login":"dib-lab","id":1740697,"avatar_url":"https://avatars.githubusercontent.com/u/1740697?v=3","gravatar_id":"","url":"https://api.github.com/users/dib-lab","html_url":"https://github.com/dib-lab","followers_url":"https://api.github.com/users/dib-lab/followers","following_url":"https://api.github.com/users/dib-lab/following{/other_user}","gists_url":"https://api.github.com/users/dib-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/dib-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dib-lab/subscriptions","organizations_url":"https://api.github.com/users/dib-lab/orgs","repos_url":"https://api.github.com/users/dib-lab/repos","events_url":"https://api.github.com/users/dib-lab/events{/privacy}","received_events_url":"https://api.github.com/users/dib-lab/received_events","type":"Organization","site_admin":false},"repo":{"id":4331833,"name":"khmer","full_name":"dib-lab/khmer","owner":{"login":"dib-lab","id":1740697,"avatar_url":"https://avatars.githubusercontent.com/u/1740697?v=3","gravatar_id":"","url":"https://api.github.com/users/dib-lab","html_url":"https://github.com/dib-lab","followers_url":"https://api.github.com/users/dib-lab/followers","following_url":"https://api.github.com/users/dib-lab/following{/other_user}","gists_url":"https://api.github.com/users/dib-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/dib-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dib-lab/subscriptions","organizations_url":"https://api.github.com/users/dib-lab/orgs","repos_url":"https://api.github.com/users/dib-lab/repos","events_url":"https://api.github.com/users/dib-lab/events{/privacy}","received_events_url":"https://api.github.com/users/dib-lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dib-lab/khmer","description":"In-memory nucleotide sequence k-mer counting, filtering, graph traversal and more","fork":false,"url":"https://api.github.com/repos/dib-lab/khmer","forks_url":"https://api.github.com/repos/dib-lab/khmer/forks","keys_url":"https://api.github.com/repos/dib-lab/khmer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dib-lab/khmer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dib-lab/khmer/teams","hooks_url":"https://api.github.com/repos/dib-lab/khmer/hooks","issue_events_url":"https://api.github.com/repos/dib-lab/khmer/issues/events{/number}","events_url":"https://api.github.com/repos/dib-lab/khmer/events","assignees_url":"https://api.github.com/repos/dib-lab/khmer/assignees{/user}","branches_url":"https://api.github.com/repos/dib-lab/khmer/branches{/branch}","tags_url":"https://api.github.com/repos/dib-lab/khmer/tags","blobs_url":"https://api.github.com/repos/dib-lab/khmer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dib-lab/khmer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dib-lab/khmer/git/refs{/sha}","trees_url":"https://api.github.com/repos/dib-lab/khmer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dib-lab/khmer/statuses/{sha}","languages_url":"https://api.github.com/repos/dib-lab/khmer/languages","stargazers_url":"https://api.github.com/repos/dib-lab/khmer/stargazers","contributors_url":"https://api.github.com/repos/dib-lab/khmer/contributors","subscribers_url":"https://api.github.com/repos/dib-lab/khmer/subscribers","subscription_url":"https://api.github.com/repos/dib-lab/khmer/subscription","commits_url":"https://api.github.com/repos/dib-lab/khmer/commits{/sha}","git_commits_url":"https://api.github.com/repos/dib-lab/khmer/git/commits{/sha}","comments_url":"https://api.github.com/repos/dib-lab/khmer/comments{/number}","issue_comment_url":"https://api.github.com/repos/dib-lab/khmer/issues/comments{/number}","contents_url":"https://api.github.com/repos/dib-lab/khmer/contents/{+path}","compare_url":"https://api.github.com/repos/dib-lab/khmer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dib-lab/khmer/merges","archive_url":"https://api.github.com/repos/dib-lab/khmer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dib-lab/khmer/downloads","issues_url":"https://api.github.com/repos/dib-lab/khmer/issues{/number}","pulls_url":"https://api.github.com/repos/dib-lab/khmer/pulls{/number}","milestones_url":"https://api.github.com/repos/dib-lab/khmer/milestones{/number}","notifications_url":"https://api.github.com/repos/dib-lab/khmer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dib-lab/khmer/labels{/name}","releases_url":"https://api.github.com/repos/dib-lab/khmer/releases{/id}","created_at":"2012-05-15T03:52:53Z","updated_at":"2015-06-25T17:39:24Z","pushed_at":"2015-06-24T20:59:56Z","git_url":"git://github.com/dib-lab/khmer.git","ssh_url":"git@github.com:dib-lab/khmer.git","clone_url":"https://github.com/dib-lab/khmer.git","svn_url":"https://github.com/dib-lab/khmer","homepage":"http://khmer.readthedocs.org/","size":164609,"stargazers_count":240,"watchers_count":240,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":195,"mirror_url":null,"open_issues_count":274,"forks":195,"open_issues":274,"watchers":240,"default_branch":"master"}},"base":{"label":"dib-lab:master","ref":"master","sha":"75f6fbfacb41bb4d751527d3cc8c3f03439f27e3","user":{"login":"dib-lab","id":1740697,"avatar_url":"https://avatars.githubusercontent.com/u/1740697?v=3","gravatar_id":"","url":"https://api.github.com/users/dib-lab","html_url":"https://github.com/dib-lab","followers_url":"https://api.github.com/users/dib-lab/followers","following_url":"https://api.github.com/users/dib-lab/following{/other_user}","gists_url":"https://api.github.com/users/dib-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/dib-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dib-lab/subscriptions","organizations_url":"https://api.github.com/users/dib-lab/orgs","repos_url":"https://api.github.com/users/dib-lab/repos","events_url":"https://api.github.com/users/dib-lab/events{/privacy}","received_events_url":"https://api.github.com/users/dib-lab/received_events","type":"Organization","site_admin":false},"repo":{"id":4331833,"name":"khmer","full_name":"dib-lab/khmer","owner":{"login":"dib-lab","id":1740697,"avatar_url":"https://avatars.githubusercontent.com/u/1740697?v=3","gravatar_id":"","url":"https://api.github.com/users/dib-lab","html_url":"https://github.com/dib-lab","followers_url":"https://api.github.com/users/dib-lab/followers","following_url":"https://api.github.com/users/dib-lab/following{/other_user}","gists_url":"https://api.github.com/users/dib-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/dib-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dib-lab/subscriptions","organizations_url":"https://api.github.com/users/dib-lab/orgs","repos_url":"https://api.github.com/users/dib-lab/repos","events_url":"https://api.github.com/users/dib-lab/events{/privacy}","received_events_url":"https://api.github.com/users/dib-lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dib-lab/khmer","description":"In-memory nucleotide sequence k-mer counting, filtering, graph traversal and more","fork":false,"url":"https://api.github.com/repos/dib-lab/khmer","forks_url":"https://api.github.com/repos/dib-lab/khmer/forks","keys_url":"https://api.github.com/repos/dib-lab/khmer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dib-lab/khmer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dib-lab/khmer/teams","hooks_url":"https://api.github.com/repos/dib-lab/khmer/hooks","issue_events_url":"https://api.github.com/repos/dib-lab/khmer/issues/events{/number}","events_url":"https://api.github.com/repos/dib-lab/khmer/events","assignees_url":"https://api.github.com/repos/dib-lab/khmer/assignees{/user}","branches_url":"https://api.github.com/repos/dib-lab/khmer/branches{/branch}","tags_url":"https://api.github.com/repos/dib-lab/khmer/tags","blobs_url":"https://api.github.com/repos/dib-lab/khmer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dib-lab/khmer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dib-lab/khmer/git/refs{/sha}","trees_url":"https://api.github.com/repos/dib-lab/khmer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dib-lab/khmer/statuses/{sha}","languages_url":"https://api.github.com/repos/dib-lab/khmer/languages","stargazers_url":"https://api.github.com/repos/dib-lab/khmer/stargazers","contributors_url":"https://api.github.com/repos/dib-lab/khmer/contributors","subscribers_url":"https://api.github.com/repos/dib-lab/khmer/subscribers","subscription_url":"https://api.github.com/repos/dib-lab/khmer/subscription","commits_url":"https://api.github.com/repos/dib-lab/khmer/commits{/sha}","git_commits_url":"https://api.github.com/repos/dib-lab/khmer/git/commits{/sha}","comments_url":"https://api.github.com/repos/dib-lab/khmer/comments{/number}","issue_comment_url":"https://api.github.com/repos/dib-lab/khmer/issues/comments{/number}","contents_url":"https://api.github.com/repos/dib-lab/khmer/contents/{+path}","compare_url":"https://api.github.com/repos/dib-lab/khmer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dib-lab/khmer/merges","archive_url":"https://api.github.com/repos/dib-lab/khmer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dib-lab/khmer/downloads","issues_url":"https://api.github.com/repos/dib-lab/khmer/issues{/number}","pulls_url":"https://api.github.com/repos/dib-lab/khmer/pulls{/number}","milestones_url":"https://api.github.com/repos/dib-lab/khmer/milestones{/number}","notifications_url":"https://api.github.com/repos/dib-lab/khmer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dib-lab/khmer/labels{/name}","releases_url":"https://api.github.com/repos/dib-lab/khmer/releases{/id}","created_at":"2012-05-15T03:52:53Z","updated_at":"2015-06-25T17:39:24Z","pushed_at":"2015-06-24T20:59:56Z","git_url":"git://github.com/dib-lab/khmer.git","ssh_url":"git@github.com:dib-lab/khmer.git","clone_url":"https://github.com/dib-lab/khmer.git","svn_url":"https://github.com/dib-lab/khmer","homepage":"http://khmer.readthedocs.org/","size":164609,"stargazers_count":240,"watchers_count":240,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":195,"mirror_url":null,"open_issues_count":274,"forks":195,"open_issues":274,"watchers":240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dib-lab/khmer/pulls/1106"},"html":{"href":"https://github.com/dib-lab/khmer/pull/1106"},"issue":{"href":"https://api.github.com/repos/dib-lab/khmer/issues/1106"},"comments":{"href":"https://api.github.com/repos/dib-lab/khmer/issues/1106/comments"},"review_comments":{"href":"https://api.github.com/repos/dib-lab/khmer/pulls/1106/comments"},"review_comment":{"href":"https://api.github.com/repos/dib-lab/khmer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dib-lab/khmer/pulls/1106/commits"},"statuses":{"href":"https://api.github.com/repos/dib-lab/khmer/statuses/4b30d556edfd9933a120e331433fdf0b573dde67"}}}}