{"action":"created","comment":{"url":"https://api.github.com/repos/maxeler/maxpower/pulls/comments/45876208","id":45876208,"diff_hunk":"@@ -0,0 +1,272 @@\n+package maxpower.kernel;\n+\n+import static org.junit.Assert.assertArrayEquals;\n+\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+import java.util.List;\n+\n+import org.junit.Test;\n+\n+import com.maxeler.maxcompiler.v2.kernelcompiler.Kernel;\n+import com.maxeler.maxcompiler.v2.kernelcompiler.KernelLib;\n+import com.maxeler.maxcompiler.v2.kernelcompiler.KernelParameters;\n+import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEType;\n+import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEVar;\n+import com.maxeler.maxcompiler.v2.kernelcompiler.types.composite.DFEVector;\n+import com.maxeler.maxcompiler.v2.kernelcompiler.types.composite.DFEVectorType;\n+import com.maxeler.maxcompiler.v2.managers.standard.SimulationManager;\n+import com.maxeler.maxcompiler.v2.utils.Bits;\n+\n+public class NHotMuxTest {\n+\n+\tprivate abstract class TestData {\n+\n+\t\tprotected final double[][] data;\n+\t\tprotected final boolean[][] nHotData;\n+\t\tprotected final double[][] expectedOutput;\n+\t\tprotected final int[] validData;\n+\t\tprotected final int nSteps;\n+\t\tprotected final int nHots;\n+\n+\t\tprotected TestData(boolean[][] nHotDataIn) {\n+\t\t\tnSteps = nHotDataIn.length;\n+\t\t\tnHots = nHotDataIn[0].length;\n+\t\t\tnHotData = new boolean[nSteps][nHots];\n+\t\t\tdata = new double[nSteps][nHots];\n+\t\t\texpectedOutput = new double[nSteps][nHots];\n+\t\t\tvalidData = new int[nSteps];\n+\t\t}\n+\n+\t\tprotected List<Bits> encodeInputData(DFEType dataType) {\n+\t\t\tfinal List<Bits> encodedData = new ArrayList<Bits>(nSteps*nHots);\n+\t\t\tfor (int i = 0; i < nSteps; i++) {\n+\t\t\t\tBits thisStepBits = KernelLib.dfeFloat(11,53).encodeConstant(data[i][0]);\n+\t\t\t\tfor (int j = 1; j < nHots; j++){\n+\t\t\t\t\tthisStepBits = KernelLib.dfeFloat(11,53).encodeConstant(data[i][j]).cat(thisStepBits);\n+\t\t\t\t}\n+\t\t\t\tencodedData.add(thisStepBits);\n+\t\t\t}\n+\t\t\treturn encodedData;\n+\t\t}\n+\n+\t\tprotected List<Bits> encodeHots() {\n+\t\t\tfinal List<Bits> encodedHots = new ArrayList<Bits>(nSteps*nHots);\n+\t\t\tfor (int i = 0; i < nSteps; i++) {\n+\t\t\t\tBits thisStepBits = KernelLib.dfeBool().encodeConstant(nHotData[i][0]);\n+\t\t\t\tfor (int j = 1; j < nHots; j++){\n+\t\t\t\t\tthisStepBits = KernelLib.dfeBool().encodeConstant(nHotData[i][j]).cat(thisStepBits);\n+\t\t\t\t}\n+\t\t\t\tencodedHots.add(thisStepBits);\n+\t\t\t}\n+\t\t\treturn encodedHots;\n+\t\t}\n+\n+\t\tprotected List<Bits> encodeNHots() {\n+\t\t\tfinal List<Bits> encodedData = new ArrayList<Bits>(nSteps);\n+\t\t\tfor (int i = 0; i < nSteps; i++) {\n+\t\t\t\tencodedData.add(KernelLib.dfeUInt(32).encodeConstant(validData[i]));\n+\t\t\t}\n+\t\t\treturn encodedData;\n+\t\t}\n+\n+\t\tprotected double[][] decodeOutputData(List<Bits> input, DFEType dataType) {\n+\t\t\tdouble[][] output = new double [nSteps][nHots];\n+\n+\t\t\tfor (int i = 0; i < nSteps; i++) {\n+\t\t\t\tfor (int j = 0; j < nHots; j++) {\n+\t\t\t\t\toutput[i][j] = dataType.decodeConstant(input[i].getBitsRaw(j*dataType.getTotalBits(),dataType.getTotalBits()));\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\treturn output;\n+\t\t}\n+\n+\t\tprotected double[][] getExpectedOutput() { return expectedOutput; }\n+\n+\t}\n+\n+\tprivate class DemuxTestData extends TestData {\n+\n+\t\tprotected DemuxTestData(boolean[][] nHotDataIn){\n+\t\t\tsuper(nHotDataIn);\n+\n+\t\t\tfor (int i = 0; i < nSteps; i++){\n+\t\t\t\tfor(int j = 0; j < nHots; j++) nHotData[i][j] = nHotDataIn[i][j];\n+\t\t\t}\n+\n+\t\t\tint validDataCount = 1;\n+\t\t\tint invalidDataCount = -1;\n+\t\t\tint expectedValidDataCount = 1;\n+\t\t\tint expectedInvalidDataCount = -1;\n+\t\t\tfor (int i = 0; i < nSteps; i++){\n+\n+\t\t\t\tint thisValidCount = 0;\n+\t\t\t\tfor (int j = 0; j < nHots; j++){\n+\t\t\t\t\tif (nHotData[i][j]) {\n+\t\t\t\t\t\tthisValidCount++;\n+\t\t\t\t\t\texpectedOutput[i][j] = expectedValidDataCount;\n+\t\t\t\t\t\texpectedValidDataCount++;\n+\t\t\t\t\t} else {\n+\t\t\t\t\t\texpectedOutput[i][j] = expectedInvalidDataCount;\n+\t\t\t\t\t\texpectedInvalidDataCount--;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t\tvalidData[i] = thisValidCount;\n+\t\t\t\tfor (int j = 0; j < nHots; j++){\n+\n+\t\t\t\t\tif (j < thisValidCount){\n+\t\t\t\t\t\tdata[i][j] = validDataCount;\n+\t\t\t\t\t\tvalidDataCount++;\n+\t\t\t\t\t} else {\n+\t\t\t\t\t\tdata[i][j] = invalidDataCount;\n+\t\t\t\t\t\tinvalidDataCount--;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\tprivate class MuxTestData extends TestData {\n+\n+\t\tprotected MuxTestData(boolean[][] nHotDataIn) {\n+\t\t\tsuper(nHotDataIn);\n+\n+\t\t\tfor (int i = 0; i < nSteps; i++){\n+\t\t\t\tfor(int j = 0; j < nHots; j++) nHotData[i][j] = nHotDataIn[i][j];\n+\t\t\t}\n+\n+\t\t\tint validDataCount = 1;\n+\t\t\tint invalidDataCount = -1;\n+\t\t\tint expectedValidDataCount = 1;\n+\t\t\tint expectedInvalidDataCount = -1;\n+\t\t\tfor (int i = 0; i < nSteps; i++){\n+\n+\t\t\t\tint thisValidCount = 0;\n+\t\t\t\tfor (int j = 0; j < nHots; j++){\n+\t\t\t\t\tif (nHotData[i][j]) {\n+\t\t\t\t\t\tthisValidCount++;\n+\t\t\t\t\t\tdata[i][j] = validDataCount;\n+\t\t\t\t\t\tvalidDataCount++;\n+\t\t\t\t\t} else {\n+\t\t\t\t\t\tdata[i][j] = invalidDataCount;\n+\t\t\t\t\t\tinvalidDataCount--;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t\tvalidData[i] = thisValidCount;\n+\t\t\t\tfor (int j = 0; j < nHots; j++){\n+\n+\t\t\t\t\tif (j < validData[i]){\n+\t\t\t\t\t\texpectedOutput[i][j] = expectedValidDataCount;\n+\t\t\t\t\t\texpectedValidDataCount++;\n+\t\t\t\t\t} else {\n+\t\t\t\t\t\texpectedOutput[i][j] = expectedInvalidDataCount;\n+\t\t\t\t\t\texpectedInvalidDataCount--;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\n+\tprivate class NHotDemuxTestKernel extends Kernel {\n+\t\tprotected NHotDemuxTestKernel (KernelParameters parameters, DFEVectorType<DFEVar> vectorType) {\n+\t\t\tsuper(parameters);\n+\n+\t\t\tDFEVector<DFEVar> data = io.input(\"data\", vectorType);\n+\t\t\tDFEVectorType<DFEVar> hotVectorType = new DFEVectorType<DFEVar>(dfeBool(),data.getSize());\n+\t\t\tDFEVector<DFEVar> hots = io.input(\"hots\", hotVectorType);\n+\t\t\tDFEVar nhots = io.input(\"nhots\", dfeUInt(32));\n+\n+\t\t\tDFEVector<DFEVar> output = NHotMux.demux(data,hots,nhots);\n+\n+\t\t\tio.output(\"output\",output,vectorType);\n+\t\t}\n+\t}\n+\n+\tprivate class NHotMuxTestKernel extends Kernel {\n+\t\tprotected NHotMuxTestKernel (KernelParameters parameters, DFEVectorType<DFEVar> vectorType) {\n+\t\t\tsuper(parameters);\n+\n+\t\t\tDFEVector<DFEVar> data = io.input(\"data\", vectorType);\n+\t\t\tDFEVectorType<DFEVar> hotVectorType = new DFEVectorType<DFEVar>(dfeBool(),data.getSize());\n+\t\t\tDFEVector<DFEVar> hots = io.input(\"hots\", hotVectorType);\n+\t\t\tDFEVar nhots = io.input(\"nhots\", dfeUInt(32));\n+\n+\t\t\tDFEVector<DFEVar> output = NHotMux.mux(data,hots,nhots);\n+\n+\t\t\tio.output(\"output\",output,vectorType);\n+\t\t}\n+\t}\n+\n+\tprivate void testNHotDemux(final boolean[][] nHotData) {\n+\t\tfinal int nSteps = nHotData.length;\n+\t\tfinal int nHots = nHotData[0].length;\n+\t\tfinal DFEType type   = KernelLib.dfeFloat(11,53);\n+\t\tfinal DFEVectorType<DFEVar> vectorType = new DFEVectorType<DFEVar>(type,nHots);\n+\n+\t\tDemuxTestData data = new DemuxTestData(nHotData);\n+\n+\t\tSimulationManager m = new SimulationManager(\"NHotDemuxTest\");\n+\t\tm.setKernel(new NHotDemuxTestKernel(m.makeKernelParameters(), vectorType));\n+\t\tm.setKernelCycles(nSteps);\n+\t\tm.setInputDataRaw(\"data\", data.encodeInputData(type));\n+\t\tm.setInputDataRaw(\"hots\", data.encodeHots());\n+\t\tm.setInputDataRaw(\"nhots\", data.encodeNHots());\n+\t\tm.build();\n+\t\tm.run();\n+\n+\t\tdouble[][] output = data.decodeOutputData(m.getOutputDataRaw(\"output\"), type);\n+\t\tdouble[][] expectedOutput = data.getExpectedOutput();\n+\t\tfor (int i = 0; i < output.length; i++) {\n+\t\t\tSystem.out.println(\"Expected \" + Arrays.toString(expectedOutput[i]));\n+\t\t\tSystem.out.println(\"Got      \" + Arrays.toString(output[i]) + \"\\n\");\n+\n+\t\t}\n+\t\tfor (int i = 0; i < output.length; i++) {\n+\t\t\tassertArrayEquals(expectedOutput[i],output[i],0.0);\n+\t\t}\n+\t}\n+\n+\tprivate void testNHotMux(final boolean[][] nHotData) {\n+\t\tfinal int nSteps = nHotData.length;\n+\t\tfinal int nHots = nHotData[0].length;\n+\t\tfinal DFEType type   = KernelLib.dfeFloat(11,53);\n+\t\tfinal DFEVectorType<DFEVar> vectorType = new DFEVectorType<DFEVar>(type,nHots);\n+\n+\t\tMuxTestData data = new MuxTestData(nHotData);\n+\n+\t\tSimulationManager m = new SimulationManager(\"NHotMuxTest\");\n+\t\tm.setKernel(new NHotMuxTestKernel(m.makeKernelParameters(), vectorType));\n+\t\tm.setKernelCycles(nSteps);\n+\t\tm.setInputDataRaw(\"data\", data.encodeInputData(type));\n+\t\tm.setInputDataRaw(\"hots\", data.encodeHots());\n+\t\tm.setInputDataRaw(\"nhots\", data.encodeNHots());\n+\t\tm.build();\n+\t\tm.run();\n+\n+\t\tdouble[][] output = data.decodeOutputData(m.getOutputDataRaw(\"output\"), type);\n+\t\tdouble[][] expectedOutput = data.getExpectedOutput();\n+\t\tfor (int i = 0; i < output.length; i++) {\n+\t\t\tSystem.out.println(\"Expected \" + Arrays.toString(expectedOutput[i]));\n+\t\t\tSystem.out.println(\"Got      \" + Arrays.toString(output[i]) + \"\\n\");\n+\n+\t\t}\n+\t\tfor (int i = 0; i < output.length; i++) {\n+\t\t\tassertArrayEquals(expectedOutput[i],output[i],0.0);\n+\t\t}\n+\t}\n+\n+\t@Test public void testMuxAsPassThrough() { testNHotMux(new boolean[][]{{true,true,true,true}} ); }\n+\t@Test public void testMuxPassNoneThrough() { testNHotMux(new boolean[][]{{false,false,false,false}} ); }\n+\t@Test public void testMuxOneCycle() { testNHotMux(new boolean[][]{{false,true,false,true}} ); }\n+\t@Test public void testMuxFewCycles() { testNHotMux(new boolean[][]{{false,true,false,true},\n+\t                                                                   {true,false,true,true},\n+\t                                                                   {false,false,false,true}} ); }\n+\n+\t@Test public void testDemuxAsPassThrough() { testNHotDemux(new boolean[][]{{true,true,true,true}} ); }\n+\t@Test public void testDemuxPassNoneThrough() { testNHotDemux(new boolean[][]{{false,false,false,false}} ); }\n+\t@Test public void testDemuxOneCycle() { testNHotDemux(new boolean[][]{{false,true,false,true}} ); }\n+\t@Test public void testDemuxFewCycles() { testNHotDemux(new boolean[][]{{false,true,false,true},\n+\t                                                                       {true,false,true,true},","path":"test/maxpower/kernel/NHotMuxTest.maxj","position":270,"original_position":270,"commit_id":"9cec03b86d8d3b57f8edfb31c1c3ce42773576a7","original_commit_id":"9cec03b86d8d3b57f8edfb31c1c3ce42773576a7","user":{"login":"simontilbury","id":13101368,"avatar_url":"https://avatars.githubusercontent.com/u/13101368?v=3","gravatar_id":"","url":"https://api.github.com/users/simontilbury","html_url":"https://github.com/simontilbury","followers_url":"https://api.github.com/users/simontilbury/followers","following_url":"https://api.github.com/users/simontilbury/following{/other_user}","gists_url":"https://api.github.com/users/simontilbury/gists{/gist_id}","starred_url":"https://api.github.com/users/simontilbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simontilbury/subscriptions","organizations_url":"https://api.github.com/users/simontilbury/orgs","repos_url":"https://api.github.com/users/simontilbury/repos","events_url":"https://api.github.com/users/simontilbury/events{/privacy}","received_events_url":"https://api.github.com/users/simontilbury/received_events","type":"User","site_admin":false},"body":"Spaces after commas in method calls please (throughout).","created_at":"2015-11-25T15:03:59Z","updated_at":"2015-11-25T15:03:59Z","html_url":"https://github.com/maxeler/maxpower/pull/48#discussion_r45876208","pull_request_url":"https://api.github.com/repos/maxeler/maxpower/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/maxeler/maxpower/pulls/comments/45876208"},"html":{"href":"https://github.com/maxeler/maxpower/pull/48#discussion_r45876208"},"pull_request":{"href":"https://api.github.com/repos/maxeler/maxpower/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/maxeler/maxpower/pulls/48","id":51673172,"html_url":"https://github.com/maxeler/maxpower/pull/48","diff_url":"https://github.com/maxeler/maxpower/pull/48.diff","patch_url":"https://github.com/maxeler/maxpower/pull/48.patch","issue_url":"https://api.github.com/repos/maxeler/maxpower/issues/48","number":48,"state":"open","locked":false,"title":"Add NHotMux","user":{"login":"dpackwood","id":13117660,"avatar_url":"https://avatars.githubusercontent.com/u/13117660?v=3","gravatar_id":"","url":"https://api.github.com/users/dpackwood","html_url":"https://github.com/dpackwood","followers_url":"https://api.github.com/users/dpackwood/followers","following_url":"https://api.github.com/users/dpackwood/following{/other_user}","gists_url":"https://api.github.com/users/dpackwood/gists{/gist_id}","starred_url":"https://api.github.com/users/dpackwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpackwood/subscriptions","organizations_url":"https://api.github.com/users/dpackwood/orgs","repos_url":"https://api.github.com/users/dpackwood/repos","events_url":"https://api.github.com/users/dpackwood/events{/privacy}","received_events_url":"https://api.github.com/users/dpackwood/received_events","type":"User","site_admin":false},"body":"NHotMux is a class to mux a variable amount of data per tick between hot positions and the beginning of an input.","created_at":"2015-11-24T15:23:12Z","updated_at":"2015-11-25T15:03:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"172c096d1266acad4ee21df0d38fd22f90254b35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maxeler/maxpower/pulls/48/commits","review_comments_url":"https://api.github.com/repos/maxeler/maxpower/pulls/48/comments","review_comment_url":"https://api.github.com/repos/maxeler/maxpower/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maxeler/maxpower/issues/48/comments","statuses_url":"https://api.github.com/repos/maxeler/maxpower/statuses/9cec03b86d8d3b57f8edfb31c1c3ce42773576a7","head":{"label":"dpackwood:NHotMuxDevel","ref":"NHotMuxDevel","sha":"9cec03b86d8d3b57f8edfb31c1c3ce42773576a7","user":{"login":"dpackwood","id":13117660,"avatar_url":"https://avatars.githubusercontent.com/u/13117660?v=3","gravatar_id":"","url":"https://api.github.com/users/dpackwood","html_url":"https://github.com/dpackwood","followers_url":"https://api.github.com/users/dpackwood/followers","following_url":"https://api.github.com/users/dpackwood/following{/other_user}","gists_url":"https://api.github.com/users/dpackwood/gists{/gist_id}","starred_url":"https://api.github.com/users/dpackwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpackwood/subscriptions","organizations_url":"https://api.github.com/users/dpackwood/orgs","repos_url":"https://api.github.com/users/dpackwood/repos","events_url":"https://api.github.com/users/dpackwood/events{/privacy}","received_events_url":"https://api.github.com/users/dpackwood/received_events","type":"User","site_admin":false},"repo":{"id":43893860,"name":"maxpower","full_name":"dpackwood/maxpower","owner":{"login":"dpackwood","id":13117660,"avatar_url":"https://avatars.githubusercontent.com/u/13117660?v=3","gravatar_id":"","url":"https://api.github.com/users/dpackwood","html_url":"https://github.com/dpackwood","followers_url":"https://api.github.com/users/dpackwood/followers","following_url":"https://api.github.com/users/dpackwood/following{/other_user}","gists_url":"https://api.github.com/users/dpackwood/gists{/gist_id}","starred_url":"https://api.github.com/users/dpackwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpackwood/subscriptions","organizations_url":"https://api.github.com/users/dpackwood/orgs","repos_url":"https://api.github.com/users/dpackwood/repos","events_url":"https://api.github.com/users/dpackwood/events{/privacy}","received_events_url":"https://api.github.com/users/dpackwood/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dpackwood/maxpower","description":"Maxeler standard library","fork":true,"url":"https://api.github.com/repos/dpackwood/maxpower","forks_url":"https://api.github.com/repos/dpackwood/maxpower/forks","keys_url":"https://api.github.com/repos/dpackwood/maxpower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dpackwood/maxpower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dpackwood/maxpower/teams","hooks_url":"https://api.github.com/repos/dpackwood/maxpower/hooks","issue_events_url":"https://api.github.com/repos/dpackwood/maxpower/issues/events{/number}","events_url":"https://api.github.com/repos/dpackwood/maxpower/events","assignees_url":"https://api.github.com/repos/dpackwood/maxpower/assignees{/user}","branches_url":"https://api.github.com/repos/dpackwood/maxpower/branches{/branch}","tags_url":"https://api.github.com/repos/dpackwood/maxpower/tags","blobs_url":"https://api.github.com/repos/dpackwood/maxpower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dpackwood/maxpower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dpackwood/maxpower/git/refs{/sha}","trees_url":"https://api.github.com/repos/dpackwood/maxpower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dpackwood/maxpower/statuses/{sha}","languages_url":"https://api.github.com/repos/dpackwood/maxpower/languages","stargazers_url":"https://api.github.com/repos/dpackwood/maxpower/stargazers","contributors_url":"https://api.github.com/repos/dpackwood/maxpower/contributors","subscribers_url":"https://api.github.com/repos/dpackwood/maxpower/subscribers","subscription_url":"https://api.github.com/repos/dpackwood/maxpower/subscription","commits_url":"https://api.github.com/repos/dpackwood/maxpower/commits{/sha}","git_commits_url":"https://api.github.com/repos/dpackwood/maxpower/git/commits{/sha}","comments_url":"https://api.github.com/repos/dpackwood/maxpower/comments{/number}","issue_comment_url":"https://api.github.com/repos/dpackwood/maxpower/issues/comments{/number}","contents_url":"https://api.github.com/repos/dpackwood/maxpower/contents/{+path}","compare_url":"https://api.github.com/repos/dpackwood/maxpower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dpackwood/maxpower/merges","archive_url":"https://api.github.com/repos/dpackwood/maxpower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dpackwood/maxpower/downloads","issues_url":"https://api.github.com/repos/dpackwood/maxpower/issues{/number}","pulls_url":"https://api.github.com/repos/dpackwood/maxpower/pulls{/number}","milestones_url":"https://api.github.com/repos/dpackwood/maxpower/milestones{/number}","notifications_url":"https://api.github.com/repos/dpackwood/maxpower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dpackwood/maxpower/labels{/name}","releases_url":"https://api.github.com/repos/dpackwood/maxpower/releases{/id}","created_at":"2015-10-08T14:24:44Z","updated_at":"2015-10-08T14:24:45Z","pushed_at":"2015-11-24T18:18:18Z","git_url":"git://github.com/dpackwood/maxpower.git","ssh_url":"git@github.com:dpackwood/maxpower.git","clone_url":"https://github.com/dpackwood/maxpower.git","svn_url":"https://github.com/dpackwood/maxpower","homepage":null,"size":862,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"maxeler:master","ref":"master","sha":"89dea69ba529178e87fd0eee23dd792f7f942436","user":{"login":"maxeler","id":10088478,"avatar_url":"https://avatars.githubusercontent.com/u/10088478?v=3","gravatar_id":"","url":"https://api.github.com/users/maxeler","html_url":"https://github.com/maxeler","followers_url":"https://api.github.com/users/maxeler/followers","following_url":"https://api.github.com/users/maxeler/following{/other_user}","gists_url":"https://api.github.com/users/maxeler/gists{/gist_id}","starred_url":"https://api.github.com/users/maxeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxeler/subscriptions","organizations_url":"https://api.github.com/users/maxeler/orgs","repos_url":"https://api.github.com/users/maxeler/repos","events_url":"https://api.github.com/users/maxeler/events{/privacy}","received_events_url":"https://api.github.com/users/maxeler/received_events","type":"Organization","site_admin":false},"repo":{"id":27921920,"name":"maxpower","full_name":"maxeler/maxpower","owner":{"login":"maxeler","id":10088478,"avatar_url":"https://avatars.githubusercontent.com/u/10088478?v=3","gravatar_id":"","url":"https://api.github.com/users/maxeler","html_url":"https://github.com/maxeler","followers_url":"https://api.github.com/users/maxeler/followers","following_url":"https://api.github.com/users/maxeler/following{/other_user}","gists_url":"https://api.github.com/users/maxeler/gists{/gist_id}","starred_url":"https://api.github.com/users/maxeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxeler/subscriptions","organizations_url":"https://api.github.com/users/maxeler/orgs","repos_url":"https://api.github.com/users/maxeler/repos","events_url":"https://api.github.com/users/maxeler/events{/privacy}","received_events_url":"https://api.github.com/users/maxeler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/maxeler/maxpower","description":"Maxeler standard library","fork":false,"url":"https://api.github.com/repos/maxeler/maxpower","forks_url":"https://api.github.com/repos/maxeler/maxpower/forks","keys_url":"https://api.github.com/repos/maxeler/maxpower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxeler/maxpower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxeler/maxpower/teams","hooks_url":"https://api.github.com/repos/maxeler/maxpower/hooks","issue_events_url":"https://api.github.com/repos/maxeler/maxpower/issues/events{/number}","events_url":"https://api.github.com/repos/maxeler/maxpower/events","assignees_url":"https://api.github.com/repos/maxeler/maxpower/assignees{/user}","branches_url":"https://api.github.com/repos/maxeler/maxpower/branches{/branch}","tags_url":"https://api.github.com/repos/maxeler/maxpower/tags","blobs_url":"https://api.github.com/repos/maxeler/maxpower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxeler/maxpower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxeler/maxpower/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxeler/maxpower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxeler/maxpower/statuses/{sha}","languages_url":"https://api.github.com/repos/maxeler/maxpower/languages","stargazers_url":"https://api.github.com/repos/maxeler/maxpower/stargazers","contributors_url":"https://api.github.com/repos/maxeler/maxpower/contributors","subscribers_url":"https://api.github.com/repos/maxeler/maxpower/subscribers","subscription_url":"https://api.github.com/repos/maxeler/maxpower/subscription","commits_url":"https://api.github.com/repos/maxeler/maxpower/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxeler/maxpower/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxeler/maxpower/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxeler/maxpower/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxeler/maxpower/contents/{+path}","compare_url":"https://api.github.com/repos/maxeler/maxpower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxeler/maxpower/merges","archive_url":"https://api.github.com/repos/maxeler/maxpower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxeler/maxpower/downloads","issues_url":"https://api.github.com/repos/maxeler/maxpower/issues{/number}","pulls_url":"https://api.github.com/repos/maxeler/maxpower/pulls{/number}","milestones_url":"https://api.github.com/repos/maxeler/maxpower/milestones{/number}","notifications_url":"https://api.github.com/repos/maxeler/maxpower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxeler/maxpower/labels{/name}","releases_url":"https://api.github.com/repos/maxeler/maxpower/releases{/id}","created_at":"2014-12-12T13:40:35Z","updated_at":"2015-10-13T09:44:13Z","pushed_at":"2015-11-25T14:34:20Z","git_url":"git://github.com/maxeler/maxpower.git","ssh_url":"git@github.com:maxeler/maxpower.git","clone_url":"https://github.com/maxeler/maxpower.git","svn_url":"https://github.com/maxeler/maxpower","homepage":null,"size":2702,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":12,"forks":7,"open_issues":12,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maxeler/maxpower/pulls/48"},"html":{"href":"https://github.com/maxeler/maxpower/pull/48"},"issue":{"href":"https://api.github.com/repos/maxeler/maxpower/issues/48"},"comments":{"href":"https://api.github.com/repos/maxeler/maxpower/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/maxeler/maxpower/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/maxeler/maxpower/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maxeler/maxpower/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/maxeler/maxpower/statuses/9cec03b86d8d3b57f8edfb31c1c3ce42773576a7"}}}}