{"action":"created","comment":{"url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/comments/67553706","id":67553706,"diff_hunk":"@@ -0,0 +1,111 @@\n+import matplotlib.pyplot as plt\n+import numpy as np\n+import skimage.io as io\n+import skimage.transform as transform\n+import skimage.exposure as exposure\n+import glob\n+import os\n+\n+\n+def print_columns(data, cols):\n+    \"\"\"\n+    Splits a list into sublists and prints it out in columns\n+    :params data: list of data to be printed\n+    :params cols: number of columns\n+    :return: print the data and return none\n+    \"\"\"\n+    num_per_col = int(np.ceil(len(data) / cols))\n+    split = [data[i:i + num_per_col] for i in range(0, len(data), num_per_col)]\n+    for row in zip(*split):","path":"capstone/helpers/image_processing.py","position":19,"original_position":19,"commit_id":"7629112c979a5db31797340fcdd1c12658f8e150","original_commit_id":"811c6264ad4ec87f447b9b981eb9441897f89996","user":{"login":"ziky90","id":1810839,"avatar_url":"https://avatars.githubusercontent.com/u/1810839?v=3","gravatar_id":"","url":"https://api.github.com/users/ziky90","html_url":"https://github.com/ziky90","followers_url":"https://api.github.com/users/ziky90/followers","following_url":"https://api.github.com/users/ziky90/following{/other_user}","gists_url":"https://api.github.com/users/ziky90/gists{/gist_id}","starred_url":"https://api.github.com/users/ziky90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziky90/subscriptions","organizations_url":"https://api.github.com/users/ziky90/orgs","repos_url":"https://api.github.com/users/ziky90/repos","events_url":"https://api.github.com/users/ziky90/events{/privacy}","received_events_url":"https://api.github.com/users/ziky90/received_events","type":"User","site_admin":false},"body":"Also here you can replace `zip` by `izip` which again creates generator and saves RAM memory for longer sequences.","created_at":"2016-06-17T18:19:23Z","updated_at":"2016-06-17T18:19:23Z","html_url":"https://github.com/simonb83/DataScienceIntensive/pull/2#discussion_r67553706","pull_request_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/comments/67553706"},"html":{"href":"https://github.com/simonb83/DataScienceIntensive/pull/2#discussion_r67553706"},"pull_request":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2","id":72445915,"html_url":"https://github.com/simonb83/DataScienceIntensive/pull/2","diff_url":"https://github.com/simonb83/DataScienceIntensive/pull/2.diff","patch_url":"https://github.com/simonb83/DataScienceIntensive/pull/2.patch","issue_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/2","number":2,"state":"open","locked":false,"title":"Exploratory analysis","user":{"login":"simonb83","id":1999243,"avatar_url":"https://avatars.githubusercontent.com/u/1999243?v=3","gravatar_id":"","url":"https://api.github.com/users/simonb83","html_url":"https://github.com/simonb83","followers_url":"https://api.github.com/users/simonb83/followers","following_url":"https://api.github.com/users/simonb83/following{/other_user}","gists_url":"https://api.github.com/users/simonb83/gists{/gist_id}","starred_url":"https://api.github.com/users/simonb83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonb83/subscriptions","organizations_url":"https://api.github.com/users/simonb83/orgs","repos_url":"https://api.github.com/users/simonb83/repos","events_url":"https://api.github.com/users/simonb83/events{/privacy}","received_events_url":"https://api.github.com/users/simonb83/received_events","type":"User","site_admin":false},"body":"This is a first attempt at some exploratory image analysis on the Microsoft Research Menu Match dataset (http://research.microsoft.com/en-us/um/redmond/projects/menumatch/data/)","created_at":"2016-06-03T02:31:14Z","updated_at":"2016-06-17T18:19:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7ecd8bcb022302543338556a22001e34d3a1f8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2/commits","review_comments_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2/comments","review_comment_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/2/comments","statuses_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/statuses/7629112c979a5db31797340fcdd1c12658f8e150","head":{"label":"simonb83:exploratory-analysis","ref":"exploratory-analysis","sha":"7629112c979a5db31797340fcdd1c12658f8e150","user":{"login":"simonb83","id":1999243,"avatar_url":"https://avatars.githubusercontent.com/u/1999243?v=3","gravatar_id":"","url":"https://api.github.com/users/simonb83","html_url":"https://github.com/simonb83","followers_url":"https://api.github.com/users/simonb83/followers","following_url":"https://api.github.com/users/simonb83/following{/other_user}","gists_url":"https://api.github.com/users/simonb83/gists{/gist_id}","starred_url":"https://api.github.com/users/simonb83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonb83/subscriptions","organizations_url":"https://api.github.com/users/simonb83/orgs","repos_url":"https://api.github.com/users/simonb83/repos","events_url":"https://api.github.com/users/simonb83/events{/privacy}","received_events_url":"https://api.github.com/users/simonb83/received_events","type":"User","site_admin":false},"repo":{"id":56648145,"name":"DataScienceIntensive","full_name":"simonb83/DataScienceIntensive","owner":{"login":"simonb83","id":1999243,"avatar_url":"https://avatars.githubusercontent.com/u/1999243?v=3","gravatar_id":"","url":"https://api.github.com/users/simonb83","html_url":"https://github.com/simonb83","followers_url":"https://api.github.com/users/simonb83/followers","following_url":"https://api.github.com/users/simonb83/following{/other_user}","gists_url":"https://api.github.com/users/simonb83/gists{/gist_id}","starred_url":"https://api.github.com/users/simonb83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonb83/subscriptions","organizations_url":"https://api.github.com/users/simonb83/orgs","repos_url":"https://api.github.com/users/simonb83/repos","events_url":"https://api.github.com/users/simonb83/events{/privacy}","received_events_url":"https://api.github.com/users/simonb83/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonb83/DataScienceIntensive","description":"Repo for work during Data Science Intensive course at Springboard","fork":false,"url":"https://api.github.com/repos/simonb83/DataScienceIntensive","forks_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/forks","keys_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/teams","hooks_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/hooks","issue_events_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/events{/number}","events_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/events","assignees_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/assignees{/user}","branches_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/branches{/branch}","tags_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/tags","blobs_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/statuses/{sha}","languages_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/languages","stargazers_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/stargazers","contributors_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/contributors","subscribers_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/subscribers","subscription_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/subscription","commits_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/contents/{+path}","compare_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/merges","archive_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/downloads","issues_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues{/number}","pulls_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls{/number}","milestones_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/milestones{/number}","notifications_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/labels{/name}","releases_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/releases{/id}","deployments_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/deployments","created_at":"2016-04-20T02:18:50Z","updated_at":"2016-05-25T11:01:40Z","pushed_at":"2016-06-17T15:42:41Z","git_url":"git://github.com/simonb83/DataScienceIntensive.git","ssh_url":"git@github.com:simonb83/DataScienceIntensive.git","clone_url":"https://github.com/simonb83/DataScienceIntensive.git","svn_url":"https://github.com/simonb83/DataScienceIntensive","homepage":null,"size":12180,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"simonb83:master","ref":"master","sha":"027934af8a39d0097812bac1d0b381a8e149d8fd","user":{"login":"simonb83","id":1999243,"avatar_url":"https://avatars.githubusercontent.com/u/1999243?v=3","gravatar_id":"","url":"https://api.github.com/users/simonb83","html_url":"https://github.com/simonb83","followers_url":"https://api.github.com/users/simonb83/followers","following_url":"https://api.github.com/users/simonb83/following{/other_user}","gists_url":"https://api.github.com/users/simonb83/gists{/gist_id}","starred_url":"https://api.github.com/users/simonb83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonb83/subscriptions","organizations_url":"https://api.github.com/users/simonb83/orgs","repos_url":"https://api.github.com/users/simonb83/repos","events_url":"https://api.github.com/users/simonb83/events{/privacy}","received_events_url":"https://api.github.com/users/simonb83/received_events","type":"User","site_admin":false},"repo":{"id":56648145,"name":"DataScienceIntensive","full_name":"simonb83/DataScienceIntensive","owner":{"login":"simonb83","id":1999243,"avatar_url":"https://avatars.githubusercontent.com/u/1999243?v=3","gravatar_id":"","url":"https://api.github.com/users/simonb83","html_url":"https://github.com/simonb83","followers_url":"https://api.github.com/users/simonb83/followers","following_url":"https://api.github.com/users/simonb83/following{/other_user}","gists_url":"https://api.github.com/users/simonb83/gists{/gist_id}","starred_url":"https://api.github.com/users/simonb83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonb83/subscriptions","organizations_url":"https://api.github.com/users/simonb83/orgs","repos_url":"https://api.github.com/users/simonb83/repos","events_url":"https://api.github.com/users/simonb83/events{/privacy}","received_events_url":"https://api.github.com/users/simonb83/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonb83/DataScienceIntensive","description":"Repo for work during Data Science Intensive course at Springboard","fork":false,"url":"https://api.github.com/repos/simonb83/DataScienceIntensive","forks_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/forks","keys_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/teams","hooks_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/hooks","issue_events_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/events{/number}","events_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/events","assignees_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/assignees{/user}","branches_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/branches{/branch}","tags_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/tags","blobs_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/statuses/{sha}","languages_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/languages","stargazers_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/stargazers","contributors_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/contributors","subscribers_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/subscribers","subscription_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/subscription","commits_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/contents/{+path}","compare_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/merges","archive_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/downloads","issues_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues{/number}","pulls_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls{/number}","milestones_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/milestones{/number}","notifications_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/labels{/name}","releases_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/releases{/id}","deployments_url":"https://api.github.com/repos/simonb83/DataScienceIntensive/deployments","created_at":"2016-04-20T02:18:50Z","updated_at":"2016-05-25T11:01:40Z","pushed_at":"2016-06-17T15:42:41Z","git_url":"git://github.com/simonb83/DataScienceIntensive.git","ssh_url":"git@github.com:simonb83/DataScienceIntensive.git","clone_url":"https://github.com/simonb83/DataScienceIntensive.git","svn_url":"https://github.com/simonb83/DataScienceIntensive","homepage":null,"size":12180,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2"},"html":{"href":"https://github.com/simonb83/DataScienceIntensive/pull/2"},"issue":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/2"},"comments":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/simonb83/DataScienceIntensive/statuses/7629112c979a5db31797340fcdd1c12658f8e150"}}}}
{"actor":{"display_login":"ziky90"}}