{"action":"created","comment":{"url":"https://api.github.com/repos/mulled/auto-mulled/pulls/comments/79155752","id":79155752,"diff_hunk":"@@ -0,0 +1,135 @@\n+#!/usr/bin/env python2\n+\n+# Copyright 2016 Joachim Wolff\n+# Mail: wolffj@informatik.uni-freiburg.de\n+# License: MIT\n+#\n+# Chair of Bioinformatics\n+# Department of Computer Science\n+# Faculty of Engineering\n+# Albert-Ludwigs-University Freiburg im Breisgau\n+\n+import argparse\n+import json\n+import os\n+import shutil\n+\n+import requests\n+\n+from whoosh.fields import *\n+from whoosh.index import create_in\n+from whoosh.qparser import QueryParser\n+from whoosh.spelling import Corrector\n+from whoosh import qparser\n+\n+class QuaySearch():\n+    \"\"\"Tool to search within a quay organization for listed software. Prints out search results with docker download command.\"\"\"\n+    def __init__(self, p_organization):\n+        self._index = None\n+        self._organization = p_organization\n+    def __del__(self):\n+        pass\n+\n+    def build_index(self):\n+        \"\"\"This functions creates a index to quickly examine the repositories of a given quay organization.\"\"\"\n+        # download all information about the repositories from the\n+        # given organization in self._organization\n+        url = 'https://quay.io/api/v1/repository'\n+        parameters = {'public':'true','namespace': self._organization}\n+        r = requests.get(url, headers={'Accept-encoding': 'gzip'}, params=parameters,\n+                            timeout=12)\n+\n+        # delete old index data and create the dir \"indexdir\" new\n+        if os.path.exists(\"indexdir\"):","path":"quay_search.py","position":43,"original_position":43,"commit_id":"4202534d09f0a048fb2deee661cad7c85465fdf5","original_commit_id":"4202534d09f0a048fb2deee661cad7c85465fdf5","user":{"login":"bgruening","id":469983,"avatar_url":"https://avatars.githubusercontent.com/u/469983?v=3","gravatar_id":"","url":"https://api.github.com/users/bgruening","html_url":"https://github.com/bgruening","followers_url":"https://api.github.com/users/bgruening/followers","following_url":"https://api.github.com/users/bgruening/following{/other_user}","gists_url":"https://api.github.com/users/bgruening/gists{/gist_id}","starred_url":"https://api.github.com/users/bgruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgruening/subscriptions","organizations_url":"https://api.github.com/users/bgruening/orgs","repos_url":"https://api.github.com/users/bgruening/repos","events_url":"https://api.github.com/users/bgruening/events{/privacy}","received_events_url":"https://api.github.com/users/bgruening/received_events","type":"User","site_admin":false},"body":"depends on how fast the index creation is","created_at":"2016-09-16T12:07:54Z","updated_at":"2016-09-16T12:07:54Z","html_url":"https://github.com/mulled/auto-mulled/pull/10#discussion_r79155752","pull_request_url":"https://api.github.com/repos/mulled/auto-mulled/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/mulled/auto-mulled/pulls/comments/79155752"},"html":{"href":"https://github.com/mulled/auto-mulled/pull/10#discussion_r79155752"},"pull_request":{"href":"https://api.github.com/repos/mulled/auto-mulled/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/mulled/auto-mulled/pulls/10","id":84670267,"html_url":"https://github.com/mulled/auto-mulled/pull/10","diff_url":"https://github.com/mulled/auto-mulled/pull/10.diff","patch_url":"https://github.com/mulled/auto-mulled/pull/10.patch","issue_url":"https://api.github.com/repos/mulled/auto-mulled/issues/10","number":10,"state":"open","locked":false,"title":"Search tool","user":{"login":"joachimwolff","id":13435136,"avatar_url":"https://avatars.githubusercontent.com/u/13435136?v=3","gravatar_id":"","url":"https://api.github.com/users/joachimwolff","html_url":"https://github.com/joachimwolff","followers_url":"https://api.github.com/users/joachimwolff/followers","following_url":"https://api.github.com/users/joachimwolff/following{/other_user}","gists_url":"https://api.github.com/users/joachimwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimwolff/subscriptions","organizations_url":"https://api.github.com/users/joachimwolff/orgs","repos_url":"https://api.github.com/users/joachimwolff/repos","events_url":"https://api.github.com/users/joachimwolff/events{/privacy}","received_events_url":"https://api.github.com/users/joachimwolff/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-09T15:27:44Z","updated_at":"2016-09-16T12:07:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"333f89126422553fbef4cfea443102b2f9c1ba13","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mulled/auto-mulled/pulls/10/commits","review_comments_url":"https://api.github.com/repos/mulled/auto-mulled/pulls/10/comments","review_comment_url":"https://api.github.com/repos/mulled/auto-mulled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mulled/auto-mulled/issues/10/comments","statuses_url":"https://api.github.com/repos/mulled/auto-mulled/statuses/4202534d09f0a048fb2deee661cad7c85465fdf5","head":{"label":"joachimwolff:dev","ref":"dev","sha":"4202534d09f0a048fb2deee661cad7c85465fdf5","user":{"login":"joachimwolff","id":13435136,"avatar_url":"https://avatars.githubusercontent.com/u/13435136?v=3","gravatar_id":"","url":"https://api.github.com/users/joachimwolff","html_url":"https://github.com/joachimwolff","followers_url":"https://api.github.com/users/joachimwolff/followers","following_url":"https://api.github.com/users/joachimwolff/following{/other_user}","gists_url":"https://api.github.com/users/joachimwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimwolff/subscriptions","organizations_url":"https://api.github.com/users/joachimwolff/orgs","repos_url":"https://api.github.com/users/joachimwolff/repos","events_url":"https://api.github.com/users/joachimwolff/events{/privacy}","received_events_url":"https://api.github.com/users/joachimwolff/received_events","type":"User","site_admin":false},"repo":{"id":67712479,"name":"auto-mulled","full_name":"joachimwolff/auto-mulled","owner":{"login":"joachimwolff","id":13435136,"avatar_url":"https://avatars.githubusercontent.com/u/13435136?v=3","gravatar_id":"","url":"https://api.github.com/users/joachimwolff","html_url":"https://github.com/joachimwolff","followers_url":"https://api.github.com/users/joachimwolff/followers","following_url":"https://api.github.com/users/joachimwolff/following{/other_user}","gists_url":"https://api.github.com/users/joachimwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimwolff/subscriptions","organizations_url":"https://api.github.com/users/joachimwolff/orgs","repos_url":"https://api.github.com/users/joachimwolff/repos","events_url":"https://api.github.com/users/joachimwolff/events{/privacy}","received_events_url":"https://api.github.com/users/joachimwolff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joachimwolff/auto-mulled","description":"Generating Docker containers from bioconda on the fly with Travis cron-job feature.","fork":true,"url":"https://api.github.com/repos/joachimwolff/auto-mulled","forks_url":"https://api.github.com/repos/joachimwolff/auto-mulled/forks","keys_url":"https://api.github.com/repos/joachimwolff/auto-mulled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joachimwolff/auto-mulled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joachimwolff/auto-mulled/teams","hooks_url":"https://api.github.com/repos/joachimwolff/auto-mulled/hooks","issue_events_url":"https://api.github.com/repos/joachimwolff/auto-mulled/issues/events{/number}","events_url":"https://api.github.com/repos/joachimwolff/auto-mulled/events","assignees_url":"https://api.github.com/repos/joachimwolff/auto-mulled/assignees{/user}","branches_url":"https://api.github.com/repos/joachimwolff/auto-mulled/branches{/branch}","tags_url":"https://api.github.com/repos/joachimwolff/auto-mulled/tags","blobs_url":"https://api.github.com/repos/joachimwolff/auto-mulled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joachimwolff/auto-mulled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joachimwolff/auto-mulled/git/refs{/sha}","trees_url":"https://api.github.com/repos/joachimwolff/auto-mulled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joachimwolff/auto-mulled/statuses/{sha}","languages_url":"https://api.github.com/repos/joachimwolff/auto-mulled/languages","stargazers_url":"https://api.github.com/repos/joachimwolff/auto-mulled/stargazers","contributors_url":"https://api.github.com/repos/joachimwolff/auto-mulled/contributors","subscribers_url":"https://api.github.com/repos/joachimwolff/auto-mulled/subscribers","subscription_url":"https://api.github.com/repos/joachimwolff/auto-mulled/subscription","commits_url":"https://api.github.com/repos/joachimwolff/auto-mulled/commits{/sha}","git_commits_url":"https://api.github.com/repos/joachimwolff/auto-mulled/git/commits{/sha}","comments_url":"https://api.github.com/repos/joachimwolff/auto-mulled/comments{/number}","issue_comment_url":"https://api.github.com/repos/joachimwolff/auto-mulled/issues/comments{/number}","contents_url":"https://api.github.com/repos/joachimwolff/auto-mulled/contents/{+path}","compare_url":"https://api.github.com/repos/joachimwolff/auto-mulled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joachimwolff/auto-mulled/merges","archive_url":"https://api.github.com/repos/joachimwolff/auto-mulled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joachimwolff/auto-mulled/downloads","issues_url":"https://api.github.com/repos/joachimwolff/auto-mulled/issues{/number}","pulls_url":"https://api.github.com/repos/joachimwolff/auto-mulled/pulls{/number}","milestones_url":"https://api.github.com/repos/joachimwolff/auto-mulled/milestones{/number}","notifications_url":"https://api.github.com/repos/joachimwolff/auto-mulled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joachimwolff/auto-mulled/labels{/name}","releases_url":"https://api.github.com/repos/joachimwolff/auto-mulled/releases{/id}","deployments_url":"https://api.github.com/repos/joachimwolff/auto-mulled/deployments","created_at":"2016-09-08T14:51:52Z","updated_at":"2016-09-08T14:51:54Z","pushed_at":"2016-09-15T09:57:28Z","git_url":"git://github.com/joachimwolff/auto-mulled.git","ssh_url":"git@github.com:joachimwolff/auto-mulled.git","clone_url":"https://github.com/joachimwolff/auto-mulled.git","svn_url":"https://github.com/joachimwolff/auto-mulled","homepage":null,"size":19,"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":"mulled:master","ref":"master","sha":"31d443a768b16801b979668fbd6bdbdaa0713eb5","user":{"login":"mulled","id":16609392,"avatar_url":"https://avatars.githubusercontent.com/u/16609392?v=3","gravatar_id":"","url":"https://api.github.com/users/mulled","html_url":"https://github.com/mulled","followers_url":"https://api.github.com/users/mulled/followers","following_url":"https://api.github.com/users/mulled/following{/other_user}","gists_url":"https://api.github.com/users/mulled/gists{/gist_id}","starred_url":"https://api.github.com/users/mulled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulled/subscriptions","organizations_url":"https://api.github.com/users/mulled/orgs","repos_url":"https://api.github.com/users/mulled/repos","events_url":"https://api.github.com/users/mulled/events{/privacy}","received_events_url":"https://api.github.com/users/mulled/received_events","type":"Organization","site_admin":false},"repo":{"id":63011737,"name":"auto-mulled","full_name":"mulled/auto-mulled","owner":{"login":"mulled","id":16609392,"avatar_url":"https://avatars.githubusercontent.com/u/16609392?v=3","gravatar_id":"","url":"https://api.github.com/users/mulled","html_url":"https://github.com/mulled","followers_url":"https://api.github.com/users/mulled/followers","following_url":"https://api.github.com/users/mulled/following{/other_user}","gists_url":"https://api.github.com/users/mulled/gists{/gist_id}","starred_url":"https://api.github.com/users/mulled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulled/subscriptions","organizations_url":"https://api.github.com/users/mulled/orgs","repos_url":"https://api.github.com/users/mulled/repos","events_url":"https://api.github.com/users/mulled/events{/privacy}","received_events_url":"https://api.github.com/users/mulled/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulled/auto-mulled","description":"Generating Docker containers from bioconda on the fly with Travis cron-job feature.","fork":false,"url":"https://api.github.com/repos/mulled/auto-mulled","forks_url":"https://api.github.com/repos/mulled/auto-mulled/forks","keys_url":"https://api.github.com/repos/mulled/auto-mulled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulled/auto-mulled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulled/auto-mulled/teams","hooks_url":"https://api.github.com/repos/mulled/auto-mulled/hooks","issue_events_url":"https://api.github.com/repos/mulled/auto-mulled/issues/events{/number}","events_url":"https://api.github.com/repos/mulled/auto-mulled/events","assignees_url":"https://api.github.com/repos/mulled/auto-mulled/assignees{/user}","branches_url":"https://api.github.com/repos/mulled/auto-mulled/branches{/branch}","tags_url":"https://api.github.com/repos/mulled/auto-mulled/tags","blobs_url":"https://api.github.com/repos/mulled/auto-mulled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulled/auto-mulled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulled/auto-mulled/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulled/auto-mulled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulled/auto-mulled/statuses/{sha}","languages_url":"https://api.github.com/repos/mulled/auto-mulled/languages","stargazers_url":"https://api.github.com/repos/mulled/auto-mulled/stargazers","contributors_url":"https://api.github.com/repos/mulled/auto-mulled/contributors","subscribers_url":"https://api.github.com/repos/mulled/auto-mulled/subscribers","subscription_url":"https://api.github.com/repos/mulled/auto-mulled/subscription","commits_url":"https://api.github.com/repos/mulled/auto-mulled/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulled/auto-mulled/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulled/auto-mulled/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulled/auto-mulled/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulled/auto-mulled/contents/{+path}","compare_url":"https://api.github.com/repos/mulled/auto-mulled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulled/auto-mulled/merges","archive_url":"https://api.github.com/repos/mulled/auto-mulled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulled/auto-mulled/downloads","issues_url":"https://api.github.com/repos/mulled/auto-mulled/issues{/number}","pulls_url":"https://api.github.com/repos/mulled/auto-mulled/pulls{/number}","milestones_url":"https://api.github.com/repos/mulled/auto-mulled/milestones{/number}","notifications_url":"https://api.github.com/repos/mulled/auto-mulled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulled/auto-mulled/labels{/name}","releases_url":"https://api.github.com/repos/mulled/auto-mulled/releases{/id}","deployments_url":"https://api.github.com/repos/mulled/auto-mulled/deployments","created_at":"2016-07-10T18:00:52Z","updated_at":"2016-09-06T09:02:59Z","pushed_at":"2016-09-15T09:57:28Z","git_url":"git://github.com/mulled/auto-mulled.git","ssh_url":"git@github.com:mulled/auto-mulled.git","clone_url":"https://github.com/mulled/auto-mulled.git","svn_url":"https://github.com/mulled/auto-mulled","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mulled/auto-mulled/pulls/10"},"html":{"href":"https://github.com/mulled/auto-mulled/pull/10"},"issue":{"href":"https://api.github.com/repos/mulled/auto-mulled/issues/10"},"comments":{"href":"https://api.github.com/repos/mulled/auto-mulled/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/mulled/auto-mulled/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/mulled/auto-mulled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mulled/auto-mulled/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/mulled/auto-mulled/statuses/4202534d09f0a048fb2deee661cad7c85465fdf5"}}}}
{"actor":{"display_login":"bgruening"}}