{"action":"created","comment":{"url":"https://api.github.com/repos/PileProject/drive/pulls/comments/46972188","id":46972188,"diff_hunk":"@@ -0,0 +1,175 @@\n+/*\n+ * Copyright (C) 2011-2015 PILE Project, Inc. <dev@pileproject.com>\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package com.pileproject.drive.programming.visual.activity;\n+\n+import android.app.Activity;\n+import android.app.AlertDialog;\n+import android.content.Intent;\n+import android.os.Bundle;\n+import android.view.LayoutInflater;\n+import android.view.View;\n+import android.view.View.OnClickListener;\n+import android.widget.AdapterView;\n+import android.widget.AdapterView.OnItemClickListener;\n+import android.widget.Button;\n+import android.widget.GridView;\n+import android.widget.ImageView;\n+import android.widget.ImageView.ScaleType;\n+\n+import com.pileproject.drive.R;\n+import com.pileproject.drive.programming.visual.block.BlockBase;\n+import com.pileproject.drive.programming.visual.block.BlockFactory;\n+\n+import java.util.Locale;\n+\n+/**\n+ * An Activity that shows block lists as a dialog\n+ *\n+ * @author <a href=\"mailto:tatsuyaw0c@gmail.com\">Tatsuya Iwanari</a>\n+ * @version 1.0 18-June-2013\n+ */\n+public abstract class BlockListActivityBase extends Activity implements OnClickListener, OnItemClickListener {","path":"app/src/main/java/com/pileproject/drive/programming/visual/activity/BlockListActivityBase.java","position":45,"original_position":45,"commit_id":"30dc59a4e4dacc45f66f93e8238fd70913ddce96","original_commit_id":"30dc59a4e4dacc45f66f93e8238fd70913ddce96","user":{"login":"tiwanari","id":2739915,"avatar_url":"https://avatars.githubusercontent.com/u/2739915?v=3","gravatar_id":"","url":"https://api.github.com/users/tiwanari","html_url":"https://github.com/tiwanari","followers_url":"https://api.github.com/users/tiwanari/followers","following_url":"https://api.github.com/users/tiwanari/following{/other_user}","gists_url":"https://api.github.com/users/tiwanari/gists{/gist_id}","starred_url":"https://api.github.com/users/tiwanari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiwanari/subscriptions","organizations_url":"https://api.github.com/users/tiwanari/orgs","repos_url":"https://api.github.com/users/tiwanari/repos","events_url":"https://api.github.com/users/tiwanari/events{/privacy}","received_events_url":"https://api.github.com/users/tiwanari/received_events","type":"User","site_admin":false},"body":"これ，フォーマッターかかってないような？","created_at":"2015-12-08T16:02:50Z","updated_at":"2015-12-08T16:02:50Z","html_url":"https://github.com/PileProject/drive/pull/1#discussion_r46972188","pull_request_url":"https://api.github.com/repos/PileProject/drive/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/PileProject/drive/pulls/comments/46972188"},"html":{"href":"https://github.com/PileProject/drive/pull/1#discussion_r46972188"},"pull_request":{"href":"https://api.github.com/repos/PileProject/drive/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/PileProject/drive/pulls/1","id":52995973,"html_url":"https://github.com/PileProject/drive/pull/1","diff_url":"https://github.com/PileProject/drive/pull/1.diff","patch_url":"https://github.com/PileProject/drive/pull/1.patch","issue_url":"https://api.github.com/repos/PileProject/drive/issues/1","number":1,"state":"open","locked":false,"title":"Refactor","user":{"login":"tiwanari","id":2739915,"avatar_url":"https://avatars.githubusercontent.com/u/2739915?v=3","gravatar_id":"","url":"https://api.github.com/users/tiwanari","html_url":"https://github.com/tiwanari","followers_url":"https://api.github.com/users/tiwanari/followers","following_url":"https://api.github.com/users/tiwanari/following{/other_user}","gists_url":"https://api.github.com/users/tiwanari/gists{/gist_id}","starred_url":"https://api.github.com/users/tiwanari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiwanari/subscriptions","organizations_url":"https://api.github.com/users/tiwanari/orgs","repos_url":"https://api.github.com/users/tiwanari/repos","events_url":"https://api.github.com/users/tiwanari/events{/privacy}","received_events_url":"https://api.github.com/users/tiwanari/received_events","type":"User","site_admin":false},"body":"いろいろとダメ出しをするためにPRを作成\r\n長過ぎる","created_at":"2015-12-08T15:38:44Z","updated_at":"2015-12-08T16:02:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e1866b0b73aba148612840316627a8972a36c68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PileProject/drive/pulls/1/commits","review_comments_url":"https://api.github.com/repos/PileProject/drive/pulls/1/comments","review_comment_url":"https://api.github.com/repos/PileProject/drive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PileProject/drive/issues/1/comments","statuses_url":"https://api.github.com/repos/PileProject/drive/statuses/30dc59a4e4dacc45f66f93e8238fd70913ddce96","head":{"label":"PileProject:refactor","ref":"refactor","sha":"30dc59a4e4dacc45f66f93e8238fd70913ddce96","user":{"login":"PileProject","id":4993284,"avatar_url":"https://avatars.githubusercontent.com/u/4993284?v=3","gravatar_id":"","url":"https://api.github.com/users/PileProject","html_url":"https://github.com/PileProject","followers_url":"https://api.github.com/users/PileProject/followers","following_url":"https://api.github.com/users/PileProject/following{/other_user}","gists_url":"https://api.github.com/users/PileProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PileProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PileProject/subscriptions","organizations_url":"https://api.github.com/users/PileProject/orgs","repos_url":"https://api.github.com/users/PileProject/repos","events_url":"https://api.github.com/users/PileProject/events{/privacy}","received_events_url":"https://api.github.com/users/PileProject/received_events","type":"Organization","site_admin":false},"repo":{"id":40538806,"name":"drive","full_name":"PileProject/drive","owner":{"login":"PileProject","id":4993284,"avatar_url":"https://avatars.githubusercontent.com/u/4993284?v=3","gravatar_id":"","url":"https://api.github.com/users/PileProject","html_url":"https://github.com/PileProject","followers_url":"https://api.github.com/users/PileProject/followers","following_url":"https://api.github.com/users/PileProject/following{/other_user}","gists_url":"https://api.github.com/users/PileProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PileProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PileProject/subscriptions","organizations_url":"https://api.github.com/users/PileProject/orgs","repos_url":"https://api.github.com/users/PileProject/repos","events_url":"https://api.github.com/users/PileProject/events{/privacy}","received_events_url":"https://api.github.com/users/PileProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PileProject/drive","description":"The drive project","fork":false,"url":"https://api.github.com/repos/PileProject/drive","forks_url":"https://api.github.com/repos/PileProject/drive/forks","keys_url":"https://api.github.com/repos/PileProject/drive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PileProject/drive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PileProject/drive/teams","hooks_url":"https://api.github.com/repos/PileProject/drive/hooks","issue_events_url":"https://api.github.com/repos/PileProject/drive/issues/events{/number}","events_url":"https://api.github.com/repos/PileProject/drive/events","assignees_url":"https://api.github.com/repos/PileProject/drive/assignees{/user}","branches_url":"https://api.github.com/repos/PileProject/drive/branches{/branch}","tags_url":"https://api.github.com/repos/PileProject/drive/tags","blobs_url":"https://api.github.com/repos/PileProject/drive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PileProject/drive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PileProject/drive/git/refs{/sha}","trees_url":"https://api.github.com/repos/PileProject/drive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PileProject/drive/statuses/{sha}","languages_url":"https://api.github.com/repos/PileProject/drive/languages","stargazers_url":"https://api.github.com/repos/PileProject/drive/stargazers","contributors_url":"https://api.github.com/repos/PileProject/drive/contributors","subscribers_url":"https://api.github.com/repos/PileProject/drive/subscribers","subscription_url":"https://api.github.com/repos/PileProject/drive/subscription","commits_url":"https://api.github.com/repos/PileProject/drive/commits{/sha}","git_commits_url":"https://api.github.com/repos/PileProject/drive/git/commits{/sha}","comments_url":"https://api.github.com/repos/PileProject/drive/comments{/number}","issue_comment_url":"https://api.github.com/repos/PileProject/drive/issues/comments{/number}","contents_url":"https://api.github.com/repos/PileProject/drive/contents/{+path}","compare_url":"https://api.github.com/repos/PileProject/drive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PileProject/drive/merges","archive_url":"https://api.github.com/repos/PileProject/drive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PileProject/drive/downloads","issues_url":"https://api.github.com/repos/PileProject/drive/issues{/number}","pulls_url":"https://api.github.com/repos/PileProject/drive/pulls{/number}","milestones_url":"https://api.github.com/repos/PileProject/drive/milestones{/number}","notifications_url":"https://api.github.com/repos/PileProject/drive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PileProject/drive/labels{/name}","releases_url":"https://api.github.com/repos/PileProject/drive/releases{/id}","created_at":"2015-08-11T11:48:17Z","updated_at":"2015-08-11T11:48:17Z","pushed_at":"2015-12-08T15:38:45Z","git_url":"git://github.com/PileProject/drive.git","ssh_url":"git@github.com:PileProject/drive.git","clone_url":"https://github.com/PileProject/drive.git","svn_url":"https://github.com/PileProject/drive","homepage":null,"size":1717,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PileProject:master","ref":"master","sha":"0b5ed60fd5867a91660576b655d3362c2021eb52","user":{"login":"PileProject","id":4993284,"avatar_url":"https://avatars.githubusercontent.com/u/4993284?v=3","gravatar_id":"","url":"https://api.github.com/users/PileProject","html_url":"https://github.com/PileProject","followers_url":"https://api.github.com/users/PileProject/followers","following_url":"https://api.github.com/users/PileProject/following{/other_user}","gists_url":"https://api.github.com/users/PileProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PileProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PileProject/subscriptions","organizations_url":"https://api.github.com/users/PileProject/orgs","repos_url":"https://api.github.com/users/PileProject/repos","events_url":"https://api.github.com/users/PileProject/events{/privacy}","received_events_url":"https://api.github.com/users/PileProject/received_events","type":"Organization","site_admin":false},"repo":{"id":40538806,"name":"drive","full_name":"PileProject/drive","owner":{"login":"PileProject","id":4993284,"avatar_url":"https://avatars.githubusercontent.com/u/4993284?v=3","gravatar_id":"","url":"https://api.github.com/users/PileProject","html_url":"https://github.com/PileProject","followers_url":"https://api.github.com/users/PileProject/followers","following_url":"https://api.github.com/users/PileProject/following{/other_user}","gists_url":"https://api.github.com/users/PileProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PileProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PileProject/subscriptions","organizations_url":"https://api.github.com/users/PileProject/orgs","repos_url":"https://api.github.com/users/PileProject/repos","events_url":"https://api.github.com/users/PileProject/events{/privacy}","received_events_url":"https://api.github.com/users/PileProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PileProject/drive","description":"The drive project","fork":false,"url":"https://api.github.com/repos/PileProject/drive","forks_url":"https://api.github.com/repos/PileProject/drive/forks","keys_url":"https://api.github.com/repos/PileProject/drive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PileProject/drive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PileProject/drive/teams","hooks_url":"https://api.github.com/repos/PileProject/drive/hooks","issue_events_url":"https://api.github.com/repos/PileProject/drive/issues/events{/number}","events_url":"https://api.github.com/repos/PileProject/drive/events","assignees_url":"https://api.github.com/repos/PileProject/drive/assignees{/user}","branches_url":"https://api.github.com/repos/PileProject/drive/branches{/branch}","tags_url":"https://api.github.com/repos/PileProject/drive/tags","blobs_url":"https://api.github.com/repos/PileProject/drive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PileProject/drive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PileProject/drive/git/refs{/sha}","trees_url":"https://api.github.com/repos/PileProject/drive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PileProject/drive/statuses/{sha}","languages_url":"https://api.github.com/repos/PileProject/drive/languages","stargazers_url":"https://api.github.com/repos/PileProject/drive/stargazers","contributors_url":"https://api.github.com/repos/PileProject/drive/contributors","subscribers_url":"https://api.github.com/repos/PileProject/drive/subscribers","subscription_url":"https://api.github.com/repos/PileProject/drive/subscription","commits_url":"https://api.github.com/repos/PileProject/drive/commits{/sha}","git_commits_url":"https://api.github.com/repos/PileProject/drive/git/commits{/sha}","comments_url":"https://api.github.com/repos/PileProject/drive/comments{/number}","issue_comment_url":"https://api.github.com/repos/PileProject/drive/issues/comments{/number}","contents_url":"https://api.github.com/repos/PileProject/drive/contents/{+path}","compare_url":"https://api.github.com/repos/PileProject/drive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PileProject/drive/merges","archive_url":"https://api.github.com/repos/PileProject/drive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PileProject/drive/downloads","issues_url":"https://api.github.com/repos/PileProject/drive/issues{/number}","pulls_url":"https://api.github.com/repos/PileProject/drive/pulls{/number}","milestones_url":"https://api.github.com/repos/PileProject/drive/milestones{/number}","notifications_url":"https://api.github.com/repos/PileProject/drive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PileProject/drive/labels{/name}","releases_url":"https://api.github.com/repos/PileProject/drive/releases{/id}","created_at":"2015-08-11T11:48:17Z","updated_at":"2015-08-11T11:48:17Z","pushed_at":"2015-12-08T15:38:45Z","git_url":"git://github.com/PileProject/drive.git","ssh_url":"git@github.com:PileProject/drive.git","clone_url":"https://github.com/PileProject/drive.git","svn_url":"https://github.com/PileProject/drive","homepage":null,"size":1717,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PileProject/drive/pulls/1"},"html":{"href":"https://github.com/PileProject/drive/pull/1"},"issue":{"href":"https://api.github.com/repos/PileProject/drive/issues/1"},"comments":{"href":"https://api.github.com/repos/PileProject/drive/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/PileProject/drive/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/PileProject/drive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PileProject/drive/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/PileProject/drive/statuses/30dc59a4e4dacc45f66f93e8238fd70913ddce96"}}}}