{"action":"created","comment":{"url":"https://api.github.com/repos/improbable-research/keanu/pulls/comments/230841224","pull_request_review_id":171670529,"id":230841224,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDg0MTIyNA==","diff_hunk":"@@ -0,0 +1,279 @@\n+package io.improbable.keanu.util.dot;\n+\n+import io.improbable.keanu.network.BayesianNetwork;\n+import io.improbable.keanu.vertices.Vertex;\n+import io.improbable.keanu.vertices.VertexId;\n+import io.improbable.keanu.vertices.bool.nonprobabilistic.ConstantBoolVertex;\n+import io.improbable.keanu.vertices.dbl.DoubleVertex;\n+import io.improbable.keanu.vertices.dbl.nonprobabilistic.ConstantDoubleVertex;\n+import io.improbable.keanu.vertices.dbl.probabilistic.GaussianVertex;\n+import io.improbable.keanu.vertices.intgr.nonprobabilistic.ConstantIntegerVertex;\n+import org.apache.commons.io.FilenameUtils;\n+\n+import java.io.BufferedWriter;\n+import java.io.File;\n+import java.io.FileWriter;\n+import java.io.IOException;\n+import java.lang.annotation.Retention;\n+import java.lang.annotation.RetentionPolicy;\n+import java.util.Collection;\n+import java.util.HashMap;\n+import java.util.HashSet;\n+import java.util.stream.Stream;\n+\n+/**\n+ * Utility class for outputting a network to a DOT file that can then be used by a range of graph visualisers.\n+ * Read more about DOT format here: https://en.wikipedia.org/wiki/DOT_(graph_description_language)\n+ *\n+ * Usage:\n+ * To output network to a DOT file: WriteDot.outputDot(fileName, network)\n+ * To output vertex and it's connections up to degree n: WriteDot.outputDot(fileName, vertex, n)\n+ */\n+public class WriteDot {\n+\n+    private static BufferedWriter writer;\n+    private static HashMap<Integer, String> idsToLabelStrings = new HashMap<>();\n+    private static HashMap<String, String> verticeIdsToConnectionInfo = new HashMap<>();\n+\n+\n+    /**\n+     * Annotation used for vertex classes to specify how they should be exported to a DOT file.\n+     */\n+    @Retention(RetentionPolicy.RUNTIME)\n+    public @interface DotAnnotation {\n+        String displayName() default \"\";\n+        boolean displayHyperparameterInfo() default false;\n+    }\n+\n+\n+    /**\n+     * Outputs the given graph to a DOT file which can be used by various graph visualisers to generate a visual representation of the graph.\n+     * Read more about DOT format here: https://en.wikipedia.org/wiki/DOT_(graph_description_language)\n+     *\n+     * @param fileName name of the output file.\n+     * @param net network to be written out to DOT format.\n+     */\n+    public static void outputDot(String fileName, BayesianNetwork net) {\n+\n+        // Get any vertex in the network and set the degree to infinity to print out the entire network.\n+        if (net.getAllVertices().size() == 0) return;\n+        Vertex someVertex = net.getAllVertices().get(0);\n+        outputDot(fileName, someVertex, Integer.MAX_VALUE);\n+    }\n+\n+\n+    /**\n+     * Outputs the given graph to a DOT file which can be used by various graph visualisers to generate a visual representation of the graph.\n+     * Read more about DOT format here: https://en.wikipedia.org/wiki/DOT_(graph_description_language)\n+     *\n+     * @param fileName name of the output file\n+     * @param vertex vertex around which the graph will be visualised\n+     * @param degree degree of connections to be visualised; for instance, if the degree is 1,\n+     *               only connections between the vertex amd it's parents and children will be written out to the DOT file.\n+     */\n+    public static void outputDot(String fileName, Vertex vertex, int degree) {\n+        try {\n+            // Reset variables\n+            idsToLabelStrings = new HashMap<>();\n+            verticeIdsToConnectionInfo = new HashMap<>();\n+\n+            File outputFile = getOutputFile(fileName);\n+\n+            writer = new BufferedWriter(new FileWriter(outputFile));\n+            writer.write(\"digraph BayesianNetwork {\\n\");\n+\n+            // Iterate over vertices and obtain the necessary label and conneciton info.\n+            obtainGraphInfo(vertex, degree);\n+\n+            // Write out labels and connections.\n+            outputConnections(verticeIdsToConnectionInfo.values());\n+            outputLabels();\n+\n+            writer.write(\"}\");\n+            writer.close();\n+        }\n+        catch (IOException e) {\n+            System.out.println(\"Encountered an issue writing to the specified file (\" + fileName + \"):\");\n+            e.printStackTrace();\n+        }\n+    }\n+\n+\n+    // Make sure the output directory exists and that no files are being overwritten.\n+    private static File getOutputFile(String fileName) {\n+\n+        File outputFile = new File(fileName);\n+\n+        // Make sure the output directory exists.\n+        if (outputFile.getParentFile() != null && !outputFile.getParentFile().exists()){\n+            outputFile.getParentFile().mkdirs();\n+        }\n+\n+        // Add an index to the filename if a file with the specified name already exists.\n+        if (outputFile.exists()) {\n+            String baseName = FilenameUtils.getBaseName(fileName);\n+            String extension = FilenameUtils.getExtension(fileName);\n+            int counter = 1;\n+            while(outputFile.exists())\n+            {\n+                outputFile = new File(outputFile.getParent(), baseName + \"_\" + (counter++) + \".\" + extension);\n+            }\n+        }\n+        return outputFile;\n+    }\n+\n+\n+    /**\n+     * Iterates over the vertices of the graph, storing information about vertex labels to display and connections between vertices.\n+     *\n+     * @param vertex vertex around which the graph will be visualised\n+     * @param degree degree of connections to be visualised; for instance, if the degree is 1,\n+     *               only connections between the vertex amd it's parents and children will be written out to the DOT file.\n+     */\n+    private static void obtainGraphInfo(Vertex vertex, int degree) {\n+\n+        HashSet<VertexId> processedVertices = new HashSet<>();\n+        HashSet<Vertex> verticesToProcessNow = new HashSet<>();\n+        verticesToProcessNow.add(vertex);\n+\n+        // Iterate over the graph till the specified degree or till there are no more unprocessed vertices left.\n+        int iterationIndex = 0;\n+        while(iterationIndex < degree && !verticesToProcessNow.isEmpty()) {\n+\n+            HashSet<Vertex> verticesToProcessNext = new HashSet<>();\n+\n+            for (Vertex v : verticesToProcessNow) {\n+\n+                // Use hashed IDs as the unique identifier for each vertex and store the other information in labels.\n+                VertexId vId = v.getId();\n+                setLabel(v);\n+\n+                // Iterate over all vertices connected to this one.\n+                Stream<Vertex> connectedVertices = Stream.concat(v.getParents().stream(), v.getChildren().stream());","path":"keanu-project/src/main/java/io/improbable/keanu/util/dot/WriteDot.java","position":152,"original_position":152,"commit_id":"5348d4a8d026fe181bc1df319a064bbf1f78d50b","original_commit_id":"5348d4a8d026fe181bc1df319a064bbf1f78d50b","user":{"login":"ieva-improbable","id":33751053,"node_id":"MDQ6VXNlcjMzNzUxMDUz","avatar_url":"https://avatars2.githubusercontent.com/u/33751053?v=4","gravatar_id":"","url":"https://api.github.com/users/ieva-improbable","html_url":"https://github.com/ieva-improbable","followers_url":"https://api.github.com/users/ieva-improbable/followers","following_url":"https://api.github.com/users/ieva-improbable/following{/other_user}","gists_url":"https://api.github.com/users/ieva-improbable/gists{/gist_id}","starred_url":"https://api.github.com/users/ieva-improbable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ieva-improbable/subscriptions","organizations_url":"https://api.github.com/users/ieva-improbable/orgs","repos_url":"https://api.github.com/users/ieva-improbable/repos","events_url":"https://api.github.com/users/ieva-improbable/events{/privacy}","received_events_url":"https://api.github.com/users/ieva-improbable/received_events","type":"User","site_admin":false},"body":"Can we chat about this in person? You guys definitely know the code base better than I do, but I couldn't find anything quite like what I needed.","created_at":"2018-11-05T17:30:21Z","updated_at":"2018-11-05T17:30:21Z","html_url":"https://github.com/improbable-research/keanu/pull/327#discussion_r230841224","pull_request_url":"https://api.github.com/repos/improbable-research/keanu/pulls/327","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/improbable-research/keanu/pulls/comments/230841224"},"html":{"href":"https://github.com/improbable-research/keanu/pull/327#discussion_r230841224"},"pull_request":{"href":"https://api.github.com/repos/improbable-research/keanu/pulls/327"}},"in_reply_to_id":230721755},"pull_request":{"url":"https://api.github.com/repos/improbable-research/keanu/pulls/327","id":227943091,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3OTQzMDkx","html_url":"https://github.com/improbable-research/keanu/pull/327","diff_url":"https://github.com/improbable-research/keanu/pull/327.diff","patch_url":"https://github.com/improbable-research/keanu/pull/327.patch","issue_url":"https://api.github.com/repos/improbable-research/keanu/issues/327","number":327,"state":"open","locked":false,"title":"Feature/graph to dot file","user":{"login":"ieva-improbable","id":33751053,"node_id":"MDQ6VXNlcjMzNzUxMDUz","avatar_url":"https://avatars2.githubusercontent.com/u/33751053?v=4","gravatar_id":"","url":"https://api.github.com/users/ieva-improbable","html_url":"https://github.com/ieva-improbable","followers_url":"https://api.github.com/users/ieva-improbable/followers","following_url":"https://api.github.com/users/ieva-improbable/following{/other_user}","gists_url":"https://api.github.com/users/ieva-improbable/gists{/gist_id}","starred_url":"https://api.github.com/users/ieva-improbable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ieva-improbable/subscriptions","organizations_url":"https://api.github.com/users/ieva-improbable/orgs","repos_url":"https://api.github.com/users/ieva-improbable/repos","events_url":"https://api.github.com/users/ieva-improbable/events{/privacy}","received_events_url":"https://api.github.com/users/ieva-improbable/received_events","type":"User","site_admin":false},"body":"This PR adds DotWriter utility, which is an initial attempt at tooling for network visualisation. DotWriter allows you to output your network or a part of it into a [DOT](https://en.wikipedia.org/wiki/DOT_(graph_description_language)) file, which can then be used by various graph visualisation tools (e.g., [GraphViz](http://www.webgraphviz.com/)) to visualise the network.\r\n\r\nUsage:\r\n * To output network to a DOT file: `WriteDot.outputDot(fileName, network)`\r\n * To output vertex and it's connections up to a degree n: `WriteDot.outputDot(fileName, vertex, n)`\r\n\r\nTo make the resulting visual easier to understand, vertex classes can be annotated with `DotAnnotation` which allows you to specify a display name for the class (e.g., \"+\" instead of \"AdditionVertex\") and whether there are any hyperparameters that should be visualised.\r\n\r\nNote: currently hyperparameter handling isn't great - I manually check whether a vertex is a Gaussian vertex and which vertices represent its mu and sigma. I'm sure there is a better and more generic way to do that. Let me know if you think of anything :)","created_at":"2018-11-02T13:52:06Z","updated_at":"2018-11-05T17:30:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a79e4fb6d211bf2652eaaf58e66f983e65303a5d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/improbable-research/keanu/pulls/327/commits","review_comments_url":"https://api.github.com/repos/improbable-research/keanu/pulls/327/comments","review_comment_url":"https://api.github.com/repos/improbable-research/keanu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/improbable-research/keanu/issues/327/comments","statuses_url":"https://api.github.com/repos/improbable-research/keanu/statuses/5348d4a8d026fe181bc1df319a064bbf1f78d50b","head":{"label":"improbable-research:feature/graph-to-dot-file","ref":"feature/graph-to-dot-file","sha":"5348d4a8d026fe181bc1df319a064bbf1f78d50b","user":{"login":"improbable-research","id":37903994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTAzOTk0","avatar_url":"https://avatars1.githubusercontent.com/u/37903994?v=4","gravatar_id":"","url":"https://api.github.com/users/improbable-research","html_url":"https://github.com/improbable-research","followers_url":"https://api.github.com/users/improbable-research/followers","following_url":"https://api.github.com/users/improbable-research/following{/other_user}","gists_url":"https://api.github.com/users/improbable-research/gists{/gist_id}","starred_url":"https://api.github.com/users/improbable-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/improbable-research/subscriptions","organizations_url":"https://api.github.com/users/improbable-research/orgs","repos_url":"https://api.github.com/users/improbable-research/repos","events_url":"https://api.github.com/users/improbable-research/events{/privacy}","received_events_url":"https://api.github.com/users/improbable-research/received_events","type":"Organization","site_admin":false},"repo":{"id":128393918,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgzOTM5MTg=","name":"keanu","full_name":"improbable-research/keanu","private":false,"owner":{"login":"improbable-research","id":37903994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTAzOTk0","avatar_url":"https://avatars1.githubusercontent.com/u/37903994?v=4","gravatar_id":"","url":"https://api.github.com/users/improbable-research","html_url":"https://github.com/improbable-research","followers_url":"https://api.github.com/users/improbable-research/followers","following_url":"https://api.github.com/users/improbable-research/following{/other_user}","gists_url":"https://api.github.com/users/improbable-research/gists{/gist_id}","starred_url":"https://api.github.com/users/improbable-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/improbable-research/subscriptions","organizations_url":"https://api.github.com/users/improbable-research/orgs","repos_url":"https://api.github.com/users/improbable-research/repos","events_url":"https://api.github.com/users/improbable-research/events{/privacy}","received_events_url":"https://api.github.com/users/improbable-research/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/improbable-research/keanu","description":"A probabilistic approach from an Improbabilistic company","fork":false,"url":"https://api.github.com/repos/improbable-research/keanu","forks_url":"https://api.github.com/repos/improbable-research/keanu/forks","keys_url":"https://api.github.com/repos/improbable-research/keanu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/improbable-research/keanu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/improbable-research/keanu/teams","hooks_url":"https://api.github.com/repos/improbable-research/keanu/hooks","issue_events_url":"https://api.github.com/repos/improbable-research/keanu/issues/events{/number}","events_url":"https://api.github.com/repos/improbable-research/keanu/events","assignees_url":"https://api.github.com/repos/improbable-research/keanu/assignees{/user}","branches_url":"https://api.github.com/repos/improbable-research/keanu/branches{/branch}","tags_url":"https://api.github.com/repos/improbable-research/keanu/tags","blobs_url":"https://api.github.com/repos/improbable-research/keanu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/improbable-research/keanu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/improbable-research/keanu/git/refs{/sha}","trees_url":"https://api.github.com/repos/improbable-research/keanu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/improbable-research/keanu/statuses/{sha}","languages_url":"https://api.github.com/repos/improbable-research/keanu/languages","stargazers_url":"https://api.github.com/repos/improbable-research/keanu/stargazers","contributors_url":"https://api.github.com/repos/improbable-research/keanu/contributors","subscribers_url":"https://api.github.com/repos/improbable-research/keanu/subscribers","subscription_url":"https://api.github.com/repos/improbable-research/keanu/subscription","commits_url":"https://api.github.com/repos/improbable-research/keanu/commits{/sha}","git_commits_url":"https://api.github.com/repos/improbable-research/keanu/git/commits{/sha}","comments_url":"https://api.github.com/repos/improbable-research/keanu/comments{/number}","issue_comment_url":"https://api.github.com/repos/improbable-research/keanu/issues/comments{/number}","contents_url":"https://api.github.com/repos/improbable-research/keanu/contents/{+path}","compare_url":"https://api.github.com/repos/improbable-research/keanu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/improbable-research/keanu/merges","archive_url":"https://api.github.com/repos/improbable-research/keanu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/improbable-research/keanu/downloads","issues_url":"https://api.github.com/repos/improbable-research/keanu/issues{/number}","pulls_url":"https://api.github.com/repos/improbable-research/keanu/pulls{/number}","milestones_url":"https://api.github.com/repos/improbable-research/keanu/milestones{/number}","notifications_url":"https://api.github.com/repos/improbable-research/keanu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/improbable-research/keanu/labels{/name}","releases_url":"https://api.github.com/repos/improbable-research/keanu/releases{/id}","deployments_url":"https://api.github.com/repos/improbable-research/keanu/deployments","created_at":"2018-04-06T12:48:36Z","updated_at":"2018-11-05T14:01:57Z","pushed_at":"2018-11-05T17:03:01Z","git_url":"git://github.com/improbable-research/keanu.git","ssh_url":"git@github.com:improbable-research/keanu.git","clone_url":"https://github.com/improbable-research/keanu.git","svn_url":"https://github.com/improbable-research/keanu","homepage":"","size":7980,"stargazers_count":108,"watchers_count":108,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":24,"open_issues":17,"watchers":108,"default_branch":"develop"}},"base":{"label":"improbable-research:develop","ref":"develop","sha":"b65ce710943a6c72988f50b2f03f115da2c6888c","user":{"login":"improbable-research","id":37903994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTAzOTk0","avatar_url":"https://avatars1.githubusercontent.com/u/37903994?v=4","gravatar_id":"","url":"https://api.github.com/users/improbable-research","html_url":"https://github.com/improbable-research","followers_url":"https://api.github.com/users/improbable-research/followers","following_url":"https://api.github.com/users/improbable-research/following{/other_user}","gists_url":"https://api.github.com/users/improbable-research/gists{/gist_id}","starred_url":"https://api.github.com/users/improbable-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/improbable-research/subscriptions","organizations_url":"https://api.github.com/users/improbable-research/orgs","repos_url":"https://api.github.com/users/improbable-research/repos","events_url":"https://api.github.com/users/improbable-research/events{/privacy}","received_events_url":"https://api.github.com/users/improbable-research/received_events","type":"Organization","site_admin":false},"repo":{"id":128393918,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgzOTM5MTg=","name":"keanu","full_name":"improbable-research/keanu","private":false,"owner":{"login":"improbable-research","id":37903994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3OTAzOTk0","avatar_url":"https://avatars1.githubusercontent.com/u/37903994?v=4","gravatar_id":"","url":"https://api.github.com/users/improbable-research","html_url":"https://github.com/improbable-research","followers_url":"https://api.github.com/users/improbable-research/followers","following_url":"https://api.github.com/users/improbable-research/following{/other_user}","gists_url":"https://api.github.com/users/improbable-research/gists{/gist_id}","starred_url":"https://api.github.com/users/improbable-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/improbable-research/subscriptions","organizations_url":"https://api.github.com/users/improbable-research/orgs","repos_url":"https://api.github.com/users/improbable-research/repos","events_url":"https://api.github.com/users/improbable-research/events{/privacy}","received_events_url":"https://api.github.com/users/improbable-research/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/improbable-research/keanu","description":"A probabilistic approach from an Improbabilistic company","fork":false,"url":"https://api.github.com/repos/improbable-research/keanu","forks_url":"https://api.github.com/repos/improbable-research/keanu/forks","keys_url":"https://api.github.com/repos/improbable-research/keanu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/improbable-research/keanu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/improbable-research/keanu/teams","hooks_url":"https://api.github.com/repos/improbable-research/keanu/hooks","issue_events_url":"https://api.github.com/repos/improbable-research/keanu/issues/events{/number}","events_url":"https://api.github.com/repos/improbable-research/keanu/events","assignees_url":"https://api.github.com/repos/improbable-research/keanu/assignees{/user}","branches_url":"https://api.github.com/repos/improbable-research/keanu/branches{/branch}","tags_url":"https://api.github.com/repos/improbable-research/keanu/tags","blobs_url":"https://api.github.com/repos/improbable-research/keanu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/improbable-research/keanu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/improbable-research/keanu/git/refs{/sha}","trees_url":"https://api.github.com/repos/improbable-research/keanu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/improbable-research/keanu/statuses/{sha}","languages_url":"https://api.github.com/repos/improbable-research/keanu/languages","stargazers_url":"https://api.github.com/repos/improbable-research/keanu/stargazers","contributors_url":"https://api.github.com/repos/improbable-research/keanu/contributors","subscribers_url":"https://api.github.com/repos/improbable-research/keanu/subscribers","subscription_url":"https://api.github.com/repos/improbable-research/keanu/subscription","commits_url":"https://api.github.com/repos/improbable-research/keanu/commits{/sha}","git_commits_url":"https://api.github.com/repos/improbable-research/keanu/git/commits{/sha}","comments_url":"https://api.github.com/repos/improbable-research/keanu/comments{/number}","issue_comment_url":"https://api.github.com/repos/improbable-research/keanu/issues/comments{/number}","contents_url":"https://api.github.com/repos/improbable-research/keanu/contents/{+path}","compare_url":"https://api.github.com/repos/improbable-research/keanu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/improbable-research/keanu/merges","archive_url":"https://api.github.com/repos/improbable-research/keanu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/improbable-research/keanu/downloads","issues_url":"https://api.github.com/repos/improbable-research/keanu/issues{/number}","pulls_url":"https://api.github.com/repos/improbable-research/keanu/pulls{/number}","milestones_url":"https://api.github.com/repos/improbable-research/keanu/milestones{/number}","notifications_url":"https://api.github.com/repos/improbable-research/keanu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/improbable-research/keanu/labels{/name}","releases_url":"https://api.github.com/repos/improbable-research/keanu/releases{/id}","deployments_url":"https://api.github.com/repos/improbable-research/keanu/deployments","created_at":"2018-04-06T12:48:36Z","updated_at":"2018-11-05T14:01:57Z","pushed_at":"2018-11-05T17:03:01Z","git_url":"git://github.com/improbable-research/keanu.git","ssh_url":"git@github.com:improbable-research/keanu.git","clone_url":"https://github.com/improbable-research/keanu.git","svn_url":"https://github.com/improbable-research/keanu","homepage":"","size":7980,"stargazers_count":108,"watchers_count":108,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":24,"open_issues":17,"watchers":108,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/improbable-research/keanu/pulls/327"},"html":{"href":"https://github.com/improbable-research/keanu/pull/327"},"issue":{"href":"https://api.github.com/repos/improbable-research/keanu/issues/327"},"comments":{"href":"https://api.github.com/repos/improbable-research/keanu/issues/327/comments"},"review_comments":{"href":"https://api.github.com/repos/improbable-research/keanu/pulls/327/comments"},"review_comment":{"href":"https://api.github.com/repos/improbable-research/keanu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/improbable-research/keanu/pulls/327/commits"},"statuses":{"href":"https://api.github.com/repos/improbable-research/keanu/statuses/5348d4a8d026fe181bc1df319a064bbf1f78d50b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ieva-improbable"}}