{"action":"created","comment":{"url":"https://api.github.com/repos/ianyh/Amethyst/pulls/comments/58962150","id":58962150,"diff_hunk":"@@ -0,0 +1,97 @@\n+//\n+//  WidescreenTallLayout.swift\n+//  Amethyst\n+//\n+//  Created by Ian Ynda-Hummel on 12/15/15.\n+//  Copyright © 2015 Ian Ynda-Hummel. All rights reserved.\n+//\n+\n+import Silica\n+\n+private class WidescreenTallReflowOperation: ReflowOperation {\n+    private let layout: WidescreenTallLayout\n+\n+    private init(screen: NSScreen, windows: [SIWindow], layout: WidescreenTallLayout, windowActivityCache: WindowActivityCache) {\n+        self.layout = layout\n+        super.init(screen: screen, windows: windows, windowActivityCache: windowActivityCache)\n+    }\n+\n+    private override func main() {\n+        if windows.count == 0 {\n+            return\n+        }\n+\n+        let mainPaneCount = min(windows.count, layout.mainPaneCount)\n+        let secondaryPaneCount = windows.count - mainPaneCount\n+\n+        let hasSecondaryPane = secondaryPaneCount > 0\n+\n+        let screenFrame = adjustedFrameForLayout(screen)\n+\n+        let mainPaneWindowHeight = screenFrame.height\n+        let secondaryPaneWindowHeight = hasSecondaryPane ? round(screenFrame.height / CGFloat(secondaryPaneCount)) : 0.0","path":"Amethyst/WidescreenTallLayout.swift","position":32,"original_position":32,"commit_id":"ad033450a9b7ac6dfbd5e9ca538eb83bb3b18bc1","original_commit_id":"ad033450a9b7ac6dfbd5e9ca538eb83bb3b18bc1","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line Length Violation: Line should be 100 characters or less: currently 120 characters (line_length)","created_at":"2016-04-07T23:34:49Z","updated_at":"2016-04-07T23:34:49Z","html_url":"https://github.com/ianyh/Amethyst/pull/427#discussion_r58962150","pull_request_url":"https://api.github.com/repos/ianyh/Amethyst/pulls/427","_links":{"self":{"href":"https://api.github.com/repos/ianyh/Amethyst/pulls/comments/58962150"},"html":{"href":"https://github.com/ianyh/Amethyst/pull/427#discussion_r58962150"},"pull_request":{"href":"https://api.github.com/repos/ianyh/Amethyst/pulls/427"}}},"pull_request":{"url":"https://api.github.com/repos/ianyh/Amethyst/pulls/427","id":65716660,"html_url":"https://github.com/ianyh/Amethyst/pull/427","diff_url":"https://github.com/ianyh/Amethyst/pull/427.diff","patch_url":"https://github.com/ianyh/Amethyst/pull/427.patch","issue_url":"https://api.github.com/repos/ianyh/Amethyst/issues/427","number":427,"state":"open","locked":false,"title":"Version 0.10","user":{"login":"ianyh","id":212270,"avatar_url":"https://avatars.githubusercontent.com/u/212270?v=3","gravatar_id":"","url":"https://api.github.com/users/ianyh","html_url":"https://github.com/ianyh","followers_url":"https://api.github.com/users/ianyh/followers","following_url":"https://api.github.com/users/ianyh/following{/other_user}","gists_url":"https://api.github.com/users/ianyh/gists{/gist_id}","starred_url":"https://api.github.com/users/ianyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianyh/subscriptions","organizations_url":"https://api.github.com/users/ianyh/orgs","repos_url":"https://api.github.com/users/ianyh/repos","events_url":"https://api.github.com/users/ianyh/events{/privacy}","received_events_url":"https://api.github.com/users/ianyh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-07T23:34:18Z","updated_at":"2016-04-07T23:34:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40e5eb22098fa5f9078e909019adc66f60cced84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ianyh/Amethyst/pulls/427/commits","review_comments_url":"https://api.github.com/repos/ianyh/Amethyst/pulls/427/comments","review_comment_url":"https://api.github.com/repos/ianyh/Amethyst/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ianyh/Amethyst/issues/427/comments","statuses_url":"https://api.github.com/repos/ianyh/Amethyst/statuses/ad033450a9b7ac6dfbd5e9ca538eb83bb3b18bc1","head":{"label":"ianyh:0.10","ref":"0.10","sha":"ad033450a9b7ac6dfbd5e9ca538eb83bb3b18bc1","user":{"login":"ianyh","id":212270,"avatar_url":"https://avatars.githubusercontent.com/u/212270?v=3","gravatar_id":"","url":"https://api.github.com/users/ianyh","html_url":"https://github.com/ianyh","followers_url":"https://api.github.com/users/ianyh/followers","following_url":"https://api.github.com/users/ianyh/following{/other_user}","gists_url":"https://api.github.com/users/ianyh/gists{/gist_id}","starred_url":"https://api.github.com/users/ianyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianyh/subscriptions","organizations_url":"https://api.github.com/users/ianyh/orgs","repos_url":"https://api.github.com/users/ianyh/repos","events_url":"https://api.github.com/users/ianyh/events{/privacy}","received_events_url":"https://api.github.com/users/ianyh/received_events","type":"User","site_admin":false},"repo":{"id":10115880,"name":"Amethyst","full_name":"ianyh/Amethyst","owner":{"login":"ianyh","id":212270,"avatar_url":"https://avatars.githubusercontent.com/u/212270?v=3","gravatar_id":"","url":"https://api.github.com/users/ianyh","html_url":"https://github.com/ianyh","followers_url":"https://api.github.com/users/ianyh/followers","following_url":"https://api.github.com/users/ianyh/following{/other_user}","gists_url":"https://api.github.com/users/ianyh/gists{/gist_id}","starred_url":"https://api.github.com/users/ianyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianyh/subscriptions","organizations_url":"https://api.github.com/users/ianyh/orgs","repos_url":"https://api.github.com/users/ianyh/repos","events_url":"https://api.github.com/users/ianyh/events{/privacy}","received_events_url":"https://api.github.com/users/ianyh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ianyh/Amethyst","description":"Automatic tiling window manager for OS X à la xmonad and i3.","fork":false,"url":"https://api.github.com/repos/ianyh/Amethyst","forks_url":"https://api.github.com/repos/ianyh/Amethyst/forks","keys_url":"https://api.github.com/repos/ianyh/Amethyst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ianyh/Amethyst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ianyh/Amethyst/teams","hooks_url":"https://api.github.com/repos/ianyh/Amethyst/hooks","issue_events_url":"https://api.github.com/repos/ianyh/Amethyst/issues/events{/number}","events_url":"https://api.github.com/repos/ianyh/Amethyst/events","assignees_url":"https://api.github.com/repos/ianyh/Amethyst/assignees{/user}","branches_url":"https://api.github.com/repos/ianyh/Amethyst/branches{/branch}","tags_url":"https://api.github.com/repos/ianyh/Amethyst/tags","blobs_url":"https://api.github.com/repos/ianyh/Amethyst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ianyh/Amethyst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ianyh/Amethyst/git/refs{/sha}","trees_url":"https://api.github.com/repos/ianyh/Amethyst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ianyh/Amethyst/statuses/{sha}","languages_url":"https://api.github.com/repos/ianyh/Amethyst/languages","stargazers_url":"https://api.github.com/repos/ianyh/Amethyst/stargazers","contributors_url":"https://api.github.com/repos/ianyh/Amethyst/contributors","subscribers_url":"https://api.github.com/repos/ianyh/Amethyst/subscribers","subscription_url":"https://api.github.com/repos/ianyh/Amethyst/subscription","commits_url":"https://api.github.com/repos/ianyh/Amethyst/commits{/sha}","git_commits_url":"https://api.github.com/repos/ianyh/Amethyst/git/commits{/sha}","comments_url":"https://api.github.com/repos/ianyh/Amethyst/comments{/number}","issue_comment_url":"https://api.github.com/repos/ianyh/Amethyst/issues/comments{/number}","contents_url":"https://api.github.com/repos/ianyh/Amethyst/contents/{+path}","compare_url":"https://api.github.com/repos/ianyh/Amethyst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ianyh/Amethyst/merges","archive_url":"https://api.github.com/repos/ianyh/Amethyst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ianyh/Amethyst/downloads","issues_url":"https://api.github.com/repos/ianyh/Amethyst/issues{/number}","pulls_url":"https://api.github.com/repos/ianyh/Amethyst/pulls{/number}","milestones_url":"https://api.github.com/repos/ianyh/Amethyst/milestones{/number}","notifications_url":"https://api.github.com/repos/ianyh/Amethyst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ianyh/Amethyst/labels{/name}","releases_url":"https://api.github.com/repos/ianyh/Amethyst/releases{/id}","deployments_url":"https://api.github.com/repos/ianyh/Amethyst/deployments","created_at":"2013-05-17T04:15:55Z","updated_at":"2016-04-07T22:20:31Z","pushed_at":"2016-04-07T23:34:18Z","git_url":"git://github.com/ianyh/Amethyst.git","ssh_url":"git@github.com:ianyh/Amethyst.git","clone_url":"https://github.com/ianyh/Amethyst.git","svn_url":"https://github.com/ianyh/Amethyst","homepage":"https://ianyh.com/amethyst/","size":22992,"stargazers_count":2776,"watchers_count":2776,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":114,"mirror_url":null,"open_issues_count":131,"forks":114,"open_issues":131,"watchers":2776,"default_branch":"development"}},"base":{"label":"ianyh:master","ref":"master","sha":"29ee2c9241712a0493d41456c4ee1693e095e6ac","user":{"login":"ianyh","id":212270,"avatar_url":"https://avatars.githubusercontent.com/u/212270?v=3","gravatar_id":"","url":"https://api.github.com/users/ianyh","html_url":"https://github.com/ianyh","followers_url":"https://api.github.com/users/ianyh/followers","following_url":"https://api.github.com/users/ianyh/following{/other_user}","gists_url":"https://api.github.com/users/ianyh/gists{/gist_id}","starred_url":"https://api.github.com/users/ianyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianyh/subscriptions","organizations_url":"https://api.github.com/users/ianyh/orgs","repos_url":"https://api.github.com/users/ianyh/repos","events_url":"https://api.github.com/users/ianyh/events{/privacy}","received_events_url":"https://api.github.com/users/ianyh/received_events","type":"User","site_admin":false},"repo":{"id":10115880,"name":"Amethyst","full_name":"ianyh/Amethyst","owner":{"login":"ianyh","id":212270,"avatar_url":"https://avatars.githubusercontent.com/u/212270?v=3","gravatar_id":"","url":"https://api.github.com/users/ianyh","html_url":"https://github.com/ianyh","followers_url":"https://api.github.com/users/ianyh/followers","following_url":"https://api.github.com/users/ianyh/following{/other_user}","gists_url":"https://api.github.com/users/ianyh/gists{/gist_id}","starred_url":"https://api.github.com/users/ianyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianyh/subscriptions","organizations_url":"https://api.github.com/users/ianyh/orgs","repos_url":"https://api.github.com/users/ianyh/repos","events_url":"https://api.github.com/users/ianyh/events{/privacy}","received_events_url":"https://api.github.com/users/ianyh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ianyh/Amethyst","description":"Automatic tiling window manager for OS X à la xmonad and i3.","fork":false,"url":"https://api.github.com/repos/ianyh/Amethyst","forks_url":"https://api.github.com/repos/ianyh/Amethyst/forks","keys_url":"https://api.github.com/repos/ianyh/Amethyst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ianyh/Amethyst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ianyh/Amethyst/teams","hooks_url":"https://api.github.com/repos/ianyh/Amethyst/hooks","issue_events_url":"https://api.github.com/repos/ianyh/Amethyst/issues/events{/number}","events_url":"https://api.github.com/repos/ianyh/Amethyst/events","assignees_url":"https://api.github.com/repos/ianyh/Amethyst/assignees{/user}","branches_url":"https://api.github.com/repos/ianyh/Amethyst/branches{/branch}","tags_url":"https://api.github.com/repos/ianyh/Amethyst/tags","blobs_url":"https://api.github.com/repos/ianyh/Amethyst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ianyh/Amethyst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ianyh/Amethyst/git/refs{/sha}","trees_url":"https://api.github.com/repos/ianyh/Amethyst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ianyh/Amethyst/statuses/{sha}","languages_url":"https://api.github.com/repos/ianyh/Amethyst/languages","stargazers_url":"https://api.github.com/repos/ianyh/Amethyst/stargazers","contributors_url":"https://api.github.com/repos/ianyh/Amethyst/contributors","subscribers_url":"https://api.github.com/repos/ianyh/Amethyst/subscribers","subscription_url":"https://api.github.com/repos/ianyh/Amethyst/subscription","commits_url":"https://api.github.com/repos/ianyh/Amethyst/commits{/sha}","git_commits_url":"https://api.github.com/repos/ianyh/Amethyst/git/commits{/sha}","comments_url":"https://api.github.com/repos/ianyh/Amethyst/comments{/number}","issue_comment_url":"https://api.github.com/repos/ianyh/Amethyst/issues/comments{/number}","contents_url":"https://api.github.com/repos/ianyh/Amethyst/contents/{+path}","compare_url":"https://api.github.com/repos/ianyh/Amethyst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ianyh/Amethyst/merges","archive_url":"https://api.github.com/repos/ianyh/Amethyst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ianyh/Amethyst/downloads","issues_url":"https://api.github.com/repos/ianyh/Amethyst/issues{/number}","pulls_url":"https://api.github.com/repos/ianyh/Amethyst/pulls{/number}","milestones_url":"https://api.github.com/repos/ianyh/Amethyst/milestones{/number}","notifications_url":"https://api.github.com/repos/ianyh/Amethyst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ianyh/Amethyst/labels{/name}","releases_url":"https://api.github.com/repos/ianyh/Amethyst/releases{/id}","deployments_url":"https://api.github.com/repos/ianyh/Amethyst/deployments","created_at":"2013-05-17T04:15:55Z","updated_at":"2016-04-07T22:20:31Z","pushed_at":"2016-04-07T23:34:18Z","git_url":"git://github.com/ianyh/Amethyst.git","ssh_url":"git@github.com:ianyh/Amethyst.git","clone_url":"https://github.com/ianyh/Amethyst.git","svn_url":"https://github.com/ianyh/Amethyst","homepage":"https://ianyh.com/amethyst/","size":22992,"stargazers_count":2776,"watchers_count":2776,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":114,"mirror_url":null,"open_issues_count":131,"forks":114,"open_issues":131,"watchers":2776,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/ianyh/Amethyst/pulls/427"},"html":{"href":"https://github.com/ianyh/Amethyst/pull/427"},"issue":{"href":"https://api.github.com/repos/ianyh/Amethyst/issues/427"},"comments":{"href":"https://api.github.com/repos/ianyh/Amethyst/issues/427/comments"},"review_comments":{"href":"https://api.github.com/repos/ianyh/Amethyst/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/ianyh/Amethyst/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ianyh/Amethyst/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/ianyh/Amethyst/statuses/ad033450a9b7ac6dfbd5e9ca538eb83bb3b18bc1"}}}}