{"action":"created","comment":{"url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/comments/86469655","pull_request_review_id":7128709,"id":86469655,"diff_hunk":"@@ -0,0 +1,199 @@\n+/*\n+ * * Copyright (C) 2013-2016 Matt Baxter http://kitteh.org\n+ *\n+ * Permission is hereby granted, free of charge, to any person\n+ * obtaining a copy of this software and associated documentation\n+ * files (the \"Software\"), to deal in the Software without\n+ * restriction, including without limitation the rights to use, copy,\n+ * modify, merge, publish, distribute, sublicense, and/or sell copies\n+ * of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be\n+ * included in all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+package org.kitteh.irc.client.library.feature.sts;\n+\n+import org.kitteh.irc.client.library.exception.KittehSTSException;\n+import org.kitteh.irc.client.library.util.STSUtil;\n+import org.kitteh.irc.client.library.util.Sanity;\n+\n+import javax.annotation.Nonnull;\n+import java.io.BufferedReader;\n+import java.io.BufferedWriter;\n+import java.io.IOException;\n+import java.nio.charset.StandardCharsets;\n+import java.nio.file.Files;\n+import java.nio.file.Path;\n+import java.nio.file.StandardOpenOption;\n+import java.time.ZoneOffset;\n+import java.time.ZonedDateTime;\n+import java.time.format.DateTimeFormatter;\n+import java.util.HashSet;\n+import java.util.Optional;\n+import java.util.Properties;\n+import java.util.Set;\n+import java.util.function.BinaryOperator;\n+\n+/**\n+ * Simple example implementation of an STSStorageManager.\n+ */\n+public class STSPropertiesStorageManager implements STSStorageManager {\n+    public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ISO_OFFSET_DATE_TIME;\n+    public static final BinaryOperator<String> ITEM_COMMA_JOIN = (a, b) -> a + \",\" + b;\n+    private final Properties properties = new Properties();\n+    private final Path filePath;\n+\n+    /**\n+     * Simple implementation of STSStorageManager which uses a properties file.\n+     */\n+    public STSPropertiesStorageManager(@Nonnull Path filePath) {\n+        this.filePath = Sanity.nullCheck(filePath, \"Must provide a valid path to the properties file to use.\");\n+        this.readData();\n+    }\n+\n+    private void readData() {\n+        if (!Files.exists(this.filePath)) {\n+            return;\n+        }\n+\n+        try {\n+            final BufferedReader bufferedReader = Files.newBufferedReader(this.filePath, StandardCharsets.UTF_8);\n+            this.properties.load(bufferedReader);\n+            bufferedReader.close();\n+        } catch (IOException e) {\n+            throw new KittehSTSException(e.getMessage(), e);\n+        }\n+    }\n+\n+\n+    /**\n+     * @param hostname the hostname (as sent in the SNI by the client)\n+     * @param duration the length (in seconds) until the expiry of this stored policy\n+     * @param policy the STS policy instance, including all data sent from the server\n+     */\n+    @Override\n+    public void addEntry(@Nonnull String hostname, long duration, @Nonnull STSPolicy policy) {\n+        Sanity.nullCheck(hostname, \"A valid hostname must be provided for this entry.\");\n+        Sanity.nullCheck(policy, \"A valid policy must be provided to be inserted.\");\n+        this.properties.setProperty(hostname, getExpiryFromDuration(duration) + \"; \" + this.reserializeData(policy));\n+        this.saveData();\n+    }\n+\n+    /**\n+     * Saves data using the provided Writer.\n+     */\n+    private void saveData() {\n+        try {\n+            final BufferedWriter bufferedWriter = Files.newBufferedWriter(this.filePath, StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n+            this.properties.store(bufferedWriter, \"This file contains all the gathered STS policies.\");\n+            bufferedWriter.close();\n+        } catch (IOException e) {\n+            throw new KittehSTSException(e.getMessage());\n+        }\n+    }\n+\n+    /**\n+     * Gets an STS policy from the store, looking it up via hostname.\n+     *\n+     * @param hostname the hostname (as sent in the SNI by the client)\n+     * @return all data sent by the server in the CAP LS \"sts\" value when we connected securely\n+     */\n+    @Override\n+    @Nonnull\n+    public Optional<STSPolicy> getEntry(@Nonnull String hostname) {\n+        Sanity.nullCheck(hostname, \"A valid hostname must be provided for this entry.\");\n+\n+        this.pruneEntries();\n+        if (!this.hasEntry(hostname)) {\n+            return Optional.empty();\n+        }\n+\n+        String value = this.properties.getProperty(hostname);\n+        String[] components = value.split(\"; \");\n+        String data = components[1];\n+        return Optional.of(STSUtil.getSTSPolicyFromString(\",\", data));\n+    }\n+\n+    /**\n+     * Checks if a policy has been stored for the hostname.\n+     *\n+     * @param hostname the hostname to check\n+     * @return whether the entry exists in the store\n+     */\n+    @Override\n+    public boolean hasEntry(@Nonnull String hostname) {\n+        Sanity.nullCheck(hostname, \"A valid hostname must be provided for this entry.\");\n+\n+        this.pruneEntries();\n+        return this.properties.containsKey(hostname);\n+    }\n+\n+    /**\n+     * Cleans up the outdated entries from the properties instance.\n+     */\n+    private void pruneEntries() {\n+        Set<String> stagedRemovals = new HashSet<>();\n+\n+        for (String hostname : this.properties.stringPropertyNames()) {\n+            String value = this.properties.getProperty(hostname);\n+            String[] components = value.split(\"; \");\n+            ZonedDateTime dt = ZonedDateTime.parse(components[0], DATE_TIME_FORMATTER);\n+            if (dt.isBefore(ZonedDateTime.now(ZoneOffset.UTC))) {\n+                stagedRemovals.add(hostname); // CME\n+            }\n+        }\n+\n+        stagedRemovals.forEach(this.properties::remove);\n+        this.saveData();\n+    }\n+\n+    /**\n+     * Deletes an entry from the store (used for 0 duration policies).\n+     * <p>\n+     * Implementers MUST ignore requests to remove entries that do not exist.\n+     *\n+     * @param hostname the hostname to remove the policy for\n+     */\n+    @Override\n+    public void removeEntry(@Nonnull String hostname) {\n+        Sanity.nullCheck(hostname, \"A valid hostname must be provided for this entry.\");\n+\n+        if (!this.hasEntry(hostname)) {\n+            return;\n+        }\n+        this.properties.remove(hostname);\n+    }\n+\n+    /**\n+     * Reserialize the STS policy in the same form as used in the spec.\n+     *\n+     * @param policy The map of keys -> optional string values\n+     * @return a serialized string\n+     */\n+    private String reserializeData(STSPolicy policy) {\n+        StringBuilder sb = new StringBuilder(policy.getOptions().size()*10+policy.getFlags().size()*5);","path":"src/main/java/org/kitteh/irc/client/library/feature/sts/STSPropertiesStorageManager.java","position":184,"original_position":184,"commit_id":"5817785e2b0e549140437084405225bc8602a86c","original_commit_id":"5817785e2b0e549140437084405225bc8602a86c","user":{"login":"kashike","id":5474071,"avatar_url":"https://avatars.githubusercontent.com/u/5474071?v=3","gravatar_id":"","url":"https://api.github.com/users/kashike","html_url":"https://github.com/kashike","followers_url":"https://api.github.com/users/kashike/followers","following_url":"https://api.github.com/users/kashike/following{/other_user}","gists_url":"https://api.github.com/users/kashike/gists{/gist_id}","starred_url":"https://api.github.com/users/kashike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashike/subscriptions","organizations_url":"https://api.github.com/users/kashike/orgs","repos_url":"https://api.github.com/users/kashike/repos","events_url":"https://api.github.com/users/kashike/events{/privacy}","received_events_url":"https://api.github.com/users/kashike/received_events","type":"User","site_admin":false},"body":"Should be formatted nicer: `new StringBuilder(policy.getOptions().size() * 10 + policy.getFlags().size() * 5)`.","created_at":"2016-11-04T00:13:40Z","updated_at":"2016-11-04T00:13:54Z","html_url":"https://github.com/KittehOrg/KittehIRCClientLib/pull/155#discussion_r86469655","pull_request_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/comments/86469655"},"html":{"href":"https://github.com/KittehOrg/KittehIRCClientLib/pull/155#discussion_r86469655"},"pull_request":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155","id":90855340,"html_url":"https://github.com/KittehOrg/KittehIRCClientLib/pull/155","diff_url":"https://github.com/KittehOrg/KittehIRCClientLib/pull/155.diff","patch_url":"https://github.com/KittehOrg/KittehIRCClientLib/pull/155.patch","issue_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues/155","number":155,"state":"open","locked":false,"title":"[WIP] STS Support","user":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"body":"[<---- View Companion Issue](139)\r\n\r\nThis is some work on adding STS support to KICL. Comments are welcome! Pedantic formatting comments are also welcome (`this.kashike`)!\r\n\r\n~~Currently it doesn't much, TODO:~~ **Done:**\r\n- [x] CAP key=value parsing. Should (why else would we be sending `LS 302`s?) be in KICL but isn't yet?\r\n- [x] Handler machine manipulation code.\r\n- [x] Simple persistence implementation using files or something.\r\n\r\n`StsMachine` is a [finite state machine](https://en.wikipedia.org/wiki/Finite-state_machine) that can be in one state at a time depending on what's going on w.r.t STS and the remote server. We have one machine per client instance.\r\n\r\nSTS support is currently off by default ~~because there is no persistence implementation to use by default~~. ~~Suggestions on how (or even if to bother trying) to approach this are welcome (writing to appdata?~~ ~~\\~/.config? doing it all in memory?), especially because KICL hasn't really needed this sort of persistence before.~~\r\n","created_at":"2016-10-25T17:36:11Z","updated_at":"2016-11-04T00:13:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9de192e4b775a3d2e91588eeda45b22b35b42f36","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155/commits","review_comments_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155/comments","review_comment_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues/155/comments","statuses_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/statuses/5817785e2b0e549140437084405225bc8602a86c","head":{"label":"lol768:sts","ref":"sts","sha":"5817785e2b0e549140437084405225bc8602a86c","user":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"repo":{"id":32289429,"name":"KittehIRCClientLib","full_name":"lol768/KittehIRCClientLib","owner":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lol768/KittehIRCClientLib","description":null,"fork":true,"url":"https://api.github.com/repos/lol768/KittehIRCClientLib","forks_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/forks","keys_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/teams","hooks_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/hooks","issue_events_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/issues/events{/number}","events_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/events","assignees_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/assignees{/user}","branches_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/branches{/branch}","tags_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/tags","blobs_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/git/refs{/sha}","trees_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/statuses/{sha}","languages_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/languages","stargazers_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/stargazers","contributors_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/contributors","subscribers_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/subscribers","subscription_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/subscription","commits_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/commits{/sha}","git_commits_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/git/commits{/sha}","comments_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/comments{/number}","issue_comment_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/issues/comments{/number}","contents_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/contents/{+path}","compare_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/merges","archive_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/downloads","issues_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/issues{/number}","pulls_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/pulls{/number}","milestones_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/milestones{/number}","notifications_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/labels{/name}","releases_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/releases{/id}","deployments_url":"https://api.github.com/repos/lol768/KittehIRCClientLib/deployments","created_at":"2015-03-15T23:12:28Z","updated_at":"2016-02-07T01:43:40Z","pushed_at":"2016-11-03T17:40:49Z","git_url":"git://github.com/lol768/KittehIRCClientLib.git","ssh_url":"git@github.com:lol768/KittehIRCClientLib.git","clone_url":"https://github.com/lol768/KittehIRCClientLib.git","svn_url":"https://github.com/lol768/KittehIRCClientLib","homepage":null,"size":2412,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"KittehOrg:next","ref":"next","sha":"fc39920547bea3e5bb77fb00c794d0dfad509490","user":{"login":"KittehOrg","id":1663469,"avatar_url":"https://avatars.githubusercontent.com/u/1663469?v=3","gravatar_id":"","url":"https://api.github.com/users/KittehOrg","html_url":"https://github.com/KittehOrg","followers_url":"https://api.github.com/users/KittehOrg/followers","following_url":"https://api.github.com/users/KittehOrg/following{/other_user}","gists_url":"https://api.github.com/users/KittehOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/KittehOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KittehOrg/subscriptions","organizations_url":"https://api.github.com/users/KittehOrg/orgs","repos_url":"https://api.github.com/users/KittehOrg/repos","events_url":"https://api.github.com/users/KittehOrg/events{/privacy}","received_events_url":"https://api.github.com/users/KittehOrg/received_events","type":"Organization","site_admin":false},"repo":{"id":27287741,"name":"KittehIRCClientLib","full_name":"KittehOrg/KittehIRCClientLib","owner":{"login":"KittehOrg","id":1663469,"avatar_url":"https://avatars.githubusercontent.com/u/1663469?v=3","gravatar_id":"","url":"https://api.github.com/users/KittehOrg","html_url":"https://github.com/KittehOrg","followers_url":"https://api.github.com/users/KittehOrg/followers","following_url":"https://api.github.com/users/KittehOrg/following{/other_user}","gists_url":"https://api.github.com/users/KittehOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/KittehOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KittehOrg/subscriptions","organizations_url":"https://api.github.com/users/KittehOrg/orgs","repos_url":"https://api.github.com/users/KittehOrg/repos","events_url":"https://api.github.com/users/KittehOrg/events{/privacy}","received_events_url":"https://api.github.com/users/KittehOrg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KittehOrg/KittehIRCClientLib","description":"An IRC client library in Java","fork":false,"url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib","forks_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/forks","keys_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/teams","hooks_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/hooks","issue_events_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues/events{/number}","events_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/events","assignees_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/assignees{/user}","branches_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/branches{/branch}","tags_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/tags","blobs_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/git/refs{/sha}","trees_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/statuses/{sha}","languages_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/languages","stargazers_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/stargazers","contributors_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/contributors","subscribers_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/subscribers","subscription_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/subscription","commits_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/commits{/sha}","git_commits_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/git/commits{/sha}","comments_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/comments{/number}","issue_comment_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues/comments{/number}","contents_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/contents/{+path}","compare_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/merges","archive_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/downloads","issues_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues{/number}","pulls_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls{/number}","milestones_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/milestones{/number}","notifications_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/labels{/name}","releases_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/releases{/id}","deployments_url":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/deployments","created_at":"2014-11-29T01:27:02Z","updated_at":"2016-10-29T17:25:22Z","pushed_at":"2016-11-03T17:40:50Z","git_url":"git://github.com/KittehOrg/KittehIRCClientLib.git","ssh_url":"git@github.com:KittehOrg/KittehIRCClientLib.git","clone_url":"https://github.com/KittehOrg/KittehIRCClientLib.git","svn_url":"https://github.com/KittehOrg/KittehIRCClientLib","homepage":"http://kitteh.org","size":9644,"stargazers_count":47,"watchers_count":47,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":29,"forks":16,"open_issues":29,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155"},"html":{"href":"https://github.com/KittehOrg/KittehIRCClientLib/pull/155"},"issue":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues/155"},"comments":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/KittehOrg/KittehIRCClientLib/statuses/5817785e2b0e549140437084405225bc8602a86c"}}}}
{"actor":{"display_login":"kashike"}}