{"action":"created","comment":{"url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/comments/146553290","pull_request_review_id":71510793,"id":146553290,"diff_hunk":"@@ -0,0 +1,146 @@\n+//\n+//  TimeTable.swift\n+//  SampleTImer\n+//\n+//  Created by 松山友也 on 2017/10/23.\n+//  Copyright © 2017年 Tomoya Matsuyama. All rights reserved.\n+//\n+//\n+import UIKit\n+import Foundation\n+\n+\n+\n+struct BusGroup: Codable {\n+    \n+    struct BusTimeKamigamo: Codable {\n+        var nine: [Int]\n+        var ten: [Int]\n+        var eleven: [Int]\n+        var twelve: [Int]\n+        var thirteen: [Int]\n+        var fourteen: [Int]\n+        var fifteen: [Int]\n+        var sixteen: [Int]\n+        var seventeen: [Int]\n+        var eighteen: [Int]\n+        var nineteen: [Int]\n+        var twenty: [Int]\n+        var twentyOne: [Int]\n+        \n+    }\n+    struct BusTimeSat: Codable{\n+        var eight: [Int]\n+        var nine: [Int]\n+        var ten: [Int]\n+        var eleven: [Int]\n+        var twelve: [Int]\n+        var thirteen: [Int]\n+        \n+    }\n+    struct BusTimeNiken: Codable {\n+        var eight: [Int]\n+        var nine: [Int]\n+        var ten: [Int]\n+        var eleven: [Int]\n+        var twelve: [Int]\n+        var thirteen: [Int]\n+        var fourteen: [Int]\n+        var fifteen: [Int]\n+        var sixteen: [Int]\n+        var seventeen: [Int]\n+        var eighteen: [Int]\n+        var nineteen: [Int]\n+        var twenty: [Int]\n+    }\n+    struct BusTimeKita: Codable {\n+        var six: [Int]\n+        var seven: [Int]\n+        var eight: [Int]\n+        var nine: [Int]\n+        var ten: [Int]\n+        var eleven: [Int]\n+        var twelve: [Int]\n+        var thirteen: [Int]\n+        var fourteen: [Int]\n+        var fifteen: [Int]\n+        var sixteen: [Int]\n+        var seventeen: [Int]\n+        var eighteen: [Int]\n+        var nineteen: [Int]\n+        var twenty: [Int]\n+        var twentyOne: [Int]\n+        var twentyTwo: [Int]\n+        \n+    }\n+    struct BusTimeKokusai: Codable {\n+        var seven: [Int]\n+        var eight: [Int]\n+        var nine: [Int]\n+        var ten: [Int]\n+        var eleven: [Int]\n+        var twelve: [Int]\n+        var thirteen: [Int]\n+        var fourteen: [Int]\n+        var fifteen: [Int]\n+        var sixteen: [Int]\n+        var seventeen: [Int]\n+        var eighteen: [Int]\n+        var nineteen: [Int]\n+        var twenty: [Int]\n+        var twentyOne: [Int]\n+        var twentyTwo: [Int]\n+        var twentyThree: [Int]\n+    }\n+    \n+    var kamigamoWeek: BusTimeKamigamo\n+    var kamigamoWed: BusTimeKamigamo\n+    var kamigamoSat: BusTimeSat\n+    var nikenWeek: BusTimeNiken\n+    var nikenWed: BusTimeNiken\n+    var nikenSat: BusTimeSat\n+    var kitaWeek: BusTimeKita\n+    var kitaHoliday: BusTimeKita\n+    var kokusaiA: BusTimeKokusai\n+    var kokusaiB: BusTimeKokusai\n+    var kokusaiC: BusTimeKokusai\n+    var kokusaiD: BusTimeKokusai\n+    \n+}\n+\n+\n+\n+class GetTimeTable{\n+    \n+    static func Counter(array: [Int], minute: Int) -> Int {\n+        var count = 0\n+        for i in 0..<array.count {\n+            if array[i] <= minute {\n+                count += 1\n+                \n+            }\n+        }\n+        return array[count]\n+    }\n+    \n+    static func get_time(hour: Int, minute:Int) -> Int {","path":"SampleTImer/TimeTable.swift","position":126,"original_position":126,"commit_id":"cf6951c535ddceaeda7be38ebe0c19d393bbf9c8","original_commit_id":"cf6951c535ddceaeda7be38ebe0c19d393bbf9c8","user":{"login":"tomoyamatsuyama","id":30315659,"avatar_url":"https://avatars0.githubusercontent.com/u/30315659?v=4","gravatar_id":"","url":"https://api.github.com/users/tomoyamatsuyama","html_url":"https://github.com/tomoyamatsuyama","followers_url":"https://api.github.com/users/tomoyamatsuyama/followers","following_url":"https://api.github.com/users/tomoyamatsuyama/following{/other_user}","gists_url":"https://api.github.com/users/tomoyamatsuyama/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyamatsuyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyamatsuyama/subscriptions","organizations_url":"https://api.github.com/users/tomoyamatsuyama/orgs","repos_url":"https://api.github.com/users/tomoyamatsuyama/repos","events_url":"https://api.github.com/users/tomoyamatsuyama/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyamatsuyama/received_events","type":"User","site_admin":false},"body":"了解です！","created_at":"2017-10-24T13:09:25Z","updated_at":"2017-10-24T13:09:25Z","html_url":"https://github.com/tomoyamatsuyama/SampleTimer/pull/2#discussion_r146553290","pull_request_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/comments/146553290"},"html":{"href":"https://github.com/tomoyamatsuyama/SampleTimer/pull/2#discussion_r146553290"},"pull_request":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2"}},"in_reply_to_id":146550045},"pull_request":{"url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2","id":148386807,"html_url":"https://github.com/tomoyamatsuyama/SampleTimer/pull/2","diff_url":"https://github.com/tomoyamatsuyama/SampleTimer/pull/2.diff","patch_url":"https://github.com/tomoyamatsuyama/SampleTimer/pull/2.patch","issue_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/2","number":2,"state":"open","locked":false,"title":"Update file","user":{"login":"tomoyamatsuyama","id":30315659,"avatar_url":"https://avatars0.githubusercontent.com/u/30315659?v=4","gravatar_id":"","url":"https://api.github.com/users/tomoyamatsuyama","html_url":"https://github.com/tomoyamatsuyama","followers_url":"https://api.github.com/users/tomoyamatsuyama/followers","following_url":"https://api.github.com/users/tomoyamatsuyama/following{/other_user}","gists_url":"https://api.github.com/users/tomoyamatsuyama/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyamatsuyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyamatsuyama/subscriptions","organizations_url":"https://api.github.com/users/tomoyamatsuyama/orgs","repos_url":"https://api.github.com/users/tomoyamatsuyama/repos","events_url":"https://api.github.com/users/tomoyamatsuyama/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyamatsuyama/received_events","type":"User","site_admin":false},"body":"バスの次の時間をこんな感じで取得しようと思ってます。","created_at":"2017-10-24T12:50:07Z","updated_at":"2017-10-24T13:09:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f64f21dd1aa36fdf231fdeb873f915e86aa8458d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/2/comments","statuses_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/statuses/cf6951c535ddceaeda7be38ebe0c19d393bbf9c8","head":{"label":"tomoyamatsuyama:develop","ref":"develop","sha":"cf6951c535ddceaeda7be38ebe0c19d393bbf9c8","user":{"login":"tomoyamatsuyama","id":30315659,"avatar_url":"https://avatars0.githubusercontent.com/u/30315659?v=4","gravatar_id":"","url":"https://api.github.com/users/tomoyamatsuyama","html_url":"https://github.com/tomoyamatsuyama","followers_url":"https://api.github.com/users/tomoyamatsuyama/followers","following_url":"https://api.github.com/users/tomoyamatsuyama/following{/other_user}","gists_url":"https://api.github.com/users/tomoyamatsuyama/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyamatsuyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyamatsuyama/subscriptions","organizations_url":"https://api.github.com/users/tomoyamatsuyama/orgs","repos_url":"https://api.github.com/users/tomoyamatsuyama/repos","events_url":"https://api.github.com/users/tomoyamatsuyama/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyamatsuyama/received_events","type":"User","site_admin":false},"repo":{"id":107855785,"name":"SampleTimer","full_name":"tomoyamatsuyama/SampleTimer","owner":{"login":"tomoyamatsuyama","id":30315659,"avatar_url":"https://avatars0.githubusercontent.com/u/30315659?v=4","gravatar_id":"","url":"https://api.github.com/users/tomoyamatsuyama","html_url":"https://github.com/tomoyamatsuyama","followers_url":"https://api.github.com/users/tomoyamatsuyama/followers","following_url":"https://api.github.com/users/tomoyamatsuyama/following{/other_user}","gists_url":"https://api.github.com/users/tomoyamatsuyama/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyamatsuyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyamatsuyama/subscriptions","organizations_url":"https://api.github.com/users/tomoyamatsuyama/orgs","repos_url":"https://api.github.com/users/tomoyamatsuyama/repos","events_url":"https://api.github.com/users/tomoyamatsuyama/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyamatsuyama/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomoyamatsuyama/SampleTimer","description":null,"fork":false,"url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer","forks_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/forks","keys_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/teams","hooks_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/hooks","issue_events_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/events{/number}","events_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/events","assignees_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/assignees{/user}","branches_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/branches{/branch}","tags_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/tags","blobs_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/statuses/{sha}","languages_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/languages","stargazers_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/stargazers","contributors_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/contributors","subscribers_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/subscribers","subscription_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/subscription","commits_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/contents/{+path}","compare_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/merges","archive_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/downloads","issues_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues{/number}","pulls_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls{/number}","milestones_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/milestones{/number}","notifications_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/labels{/name}","releases_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/releases{/id}","deployments_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/deployments","created_at":"2017-10-22T10:19:23Z","updated_at":"2017-10-22T10:23:20Z","pushed_at":"2017-10-24T12:50:08Z","git_url":"git://github.com/tomoyamatsuyama/SampleTimer.git","ssh_url":"git@github.com:tomoyamatsuyama/SampleTimer.git","clone_url":"https://github.com/tomoyamatsuyama/SampleTimer.git","svn_url":"https://github.com/tomoyamatsuyama/SampleTimer","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tomoyamatsuyama:master","ref":"master","sha":"380972e6c561b56056e2be83ccd047c77ca89e80","user":{"login":"tomoyamatsuyama","id":30315659,"avatar_url":"https://avatars0.githubusercontent.com/u/30315659?v=4","gravatar_id":"","url":"https://api.github.com/users/tomoyamatsuyama","html_url":"https://github.com/tomoyamatsuyama","followers_url":"https://api.github.com/users/tomoyamatsuyama/followers","following_url":"https://api.github.com/users/tomoyamatsuyama/following{/other_user}","gists_url":"https://api.github.com/users/tomoyamatsuyama/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyamatsuyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyamatsuyama/subscriptions","organizations_url":"https://api.github.com/users/tomoyamatsuyama/orgs","repos_url":"https://api.github.com/users/tomoyamatsuyama/repos","events_url":"https://api.github.com/users/tomoyamatsuyama/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyamatsuyama/received_events","type":"User","site_admin":false},"repo":{"id":107855785,"name":"SampleTimer","full_name":"tomoyamatsuyama/SampleTimer","owner":{"login":"tomoyamatsuyama","id":30315659,"avatar_url":"https://avatars0.githubusercontent.com/u/30315659?v=4","gravatar_id":"","url":"https://api.github.com/users/tomoyamatsuyama","html_url":"https://github.com/tomoyamatsuyama","followers_url":"https://api.github.com/users/tomoyamatsuyama/followers","following_url":"https://api.github.com/users/tomoyamatsuyama/following{/other_user}","gists_url":"https://api.github.com/users/tomoyamatsuyama/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoyamatsuyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoyamatsuyama/subscriptions","organizations_url":"https://api.github.com/users/tomoyamatsuyama/orgs","repos_url":"https://api.github.com/users/tomoyamatsuyama/repos","events_url":"https://api.github.com/users/tomoyamatsuyama/events{/privacy}","received_events_url":"https://api.github.com/users/tomoyamatsuyama/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomoyamatsuyama/SampleTimer","description":null,"fork":false,"url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer","forks_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/forks","keys_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/teams","hooks_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/hooks","issue_events_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/events{/number}","events_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/events","assignees_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/assignees{/user}","branches_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/branches{/branch}","tags_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/tags","blobs_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/statuses/{sha}","languages_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/languages","stargazers_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/stargazers","contributors_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/contributors","subscribers_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/subscribers","subscription_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/subscription","commits_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/contents/{+path}","compare_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/merges","archive_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/downloads","issues_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues{/number}","pulls_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls{/number}","milestones_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/milestones{/number}","notifications_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/labels{/name}","releases_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/releases{/id}","deployments_url":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/deployments","created_at":"2017-10-22T10:19:23Z","updated_at":"2017-10-22T10:23:20Z","pushed_at":"2017-10-24T12:50:08Z","git_url":"git://github.com/tomoyamatsuyama/SampleTimer.git","ssh_url":"git@github.com:tomoyamatsuyama/SampleTimer.git","clone_url":"https://github.com/tomoyamatsuyama/SampleTimer.git","svn_url":"https://github.com/tomoyamatsuyama/SampleTimer","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2"},"html":{"href":"https://github.com/tomoyamatsuyama/SampleTimer/pull/2"},"issue":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/2"},"comments":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tomoyamatsuyama/SampleTimer/statuses/cf6951c535ddceaeda7be38ebe0c19d393bbf9c8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"tomoyamatsuyama"}}