{"action":"created","comment":{"url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/comments/65518447","id":65518447,"diff_hunk":"@@ -1,204 +1,763 @@\n-// All arrays - separated by ',' or ';' or ' ' are taken to be 1 Dimensional\n // Only during printing, their nomenclature will change\n // Good read: http://javascript.info/tutorial/arguments#keyword-arguments\n+/*\n+Author name: ASP1234, Chhavi2208\n+*/\n+/*\n+function findModel() {\n+\tvar model = [\"model\", \"sim\", \"in\", \"in2\", \"intyp\", \"out\", \"out2\", \"outtyp\", \"evtin\", \"evtout\", \"state\", \"dstate\", \"odstate\", \"rpar\", \"ipar\", \"opar\", \"blocktype\", \"firing\", \"dep_ut\", \"label\", \"nzcross\", \"nmode\", \"equations\", \"uid\"];\n+\treturn model.indexOf(arguments[0]);\n+}\n+\n+function findBlock() {\n+\tvar block = [\"Block\", \"graphics\", \"model\", \"gui\", \"doc\"];\n+\treturn block.indexOf(arguments[0]);\n \n-function scicos_block() {\n-\tvar options = arguments[0] || new Object();\n-\tthis.graphics = options.graphics || new scicos_graphics();\n-\tthis.model = options.model || new scicos_model();\n-\tthis.gui = options.gui || '';\n-\tthis.docs = options.docs || [];\n }\n \n-function scicos_graphics() {\n-\tvar options = arguments[0] || new Object();\n-\tthis.orig = options.orig || [0, 0];\n-\tthis.sz = options.sz || [80, 80]; // Space and comma works the same!\n-\tthis.flip = options.flip || true;\n-\tthis.theta = options.theta || 0;\n-\tthis.exprs = options.exprs || [];\n-\tthis.pin = options.pin || [];\n-\tthis.pout = options.pout || [];\n-\tthis.pein = options.pein || [];\n-\tthis.peout = options.peout || [];\n-\tthis.gr_i = options.gr_i || [];\n-\tthis.id = options.id || '';\n-\tthis.in_implicit = options.in_implicit || [];\n-\tthis.out_implicit = options.out_implicit || ''; // There is only one!\n-\tthis.in_style = options.in_style || [];\n-\tthis.out_style = options.out_style || '';\n-\tthis.in_label = options.in_label || [];\n-\tthis.out_label = options.out_label || '';\n-\tthis.style = options.style || '';\n+function findGraphics() {\n+\tvar graphics = [\"graphics\", \"orig\", \"sz\", \"flip\", \"theta\", \"exprs\", \"pin\", \"pout\", \"pein\", \"peout\", \"gr_i\", \"id\", \"in_implicit\", \"out_implicit\", \"in_style\", \"out_style\", \"in_label\", \"out_label\", \"style\"];\n+\treturn graphics.indexOf(arguments[0]);\n }\n+*/\n+//graphics start\n+const orig=1;\n+const sz=2;\n+const flip=3;\n+const theta=4;\n+const exprs=5;\n+const pin=6;\n+const pout=7;\n+const pein=8;\n+const peout=9;\n+const gr_i=10;\n+const id=11;\n+const in_implicit=12;\n+const out_implicit=13;\n+const in_style=14;\n+const out_style=15;\n+const in_label=16;\n+const out_label=17;\n+const style=18;\n+// graphics end\n+\n+//model begins\n+const sim=1;\n+const in1=2; //Can't use 'in' as const name -- keyword in javascript\n+const in2=3;\n+const intyp=4;\n+const out=5;\n+const out2=6;\n+const outtyp=7;\n+const evtin=8;\n+const evtout=9;\n+const state=10;\n+const dstate=11;\n+const odstate=12;\n+const rpar=13;\n+const ipar=14;\n+const opar=15;\n+const blocktype=16;\n+const firing=17;\n+const dep_ut=18;\n+const label=19;\n+const nzcross=20;\n+const nmode=21;\n+const equations=22;\n+const uid=23;\n+//model ends\n+\n+//block begin\n+const graphics=1;\n+const model=2;\n+const gui=3;\n+const doc=4;\n+//block ends\n+\n+//Diagram begins\n+const props=1;\n+const objs=2;\n+const version=3;\n+const contrib=4;\n+//Diagram ends\n+\n+//Params begins\n+const wpar=1;\n+const title=2;\n+const tol=3;\n+const tf=4;\n+const context=5;\n+const void1=6;\n+const options=7;\n+const void2=8;\n+const void3=9;\n+//const doc=10;\n+//Params ends\n+\n+//Default options begins\n+const D3=1; // 3D\n+const Background=2;\n+const Link=3;\n+const ID=4;\n+const Cmap=5;\n+//Default options ends\n \n-function scicos_model() {\n+function scicos_block() {\n \tvar options = arguments[0] || new Object();\n-\tthis.sim = options.sim || '';\n-\tthis.in = options.in || [];\n-\tthis.in2 = options.in2 || [];\n-\tthis.intyp = options.intyp || [];\n-\tthis.out = options.out || [];\n-\tthis.out2 = options.out2 || [];\n-\tthis.outtyp = options.outtyp || 1;\n-\tthis.evtin = options.evtin || [];\n-\tthis.evtout = options.evtout || [];\n-\tthis.state = options.state || [];\n-\tthis.dstate = options.dstate || [];\n-\tthis.odstate = options.odstate || [];\n-\tthis.ipar = options.ipar || [];\n-\tthis.rpar = options.rpar || [];\n-\tthis.opar = options.opar || [];\n-\tthis.blocktype = options.blocktype || 'c';\n-\tthis.firing = options.firing || [];\n-\tthis.dep_ut = options.dep_ut || [false, false];\n-\tthis.label = options.label || ''; // If label not available, use image\n-\tthis.nzcross = options.nzcross || 0;\n-\tthis.nmode = options.nmode || 0;\n-\tthis.equations = options.equations || [];\n-\tthis.uid = options.uid || '';\t\n-}\n+\tvar i = 0;\n+\tvar l = 0;\n \n-// This might also have to be overloaded\n-function scicos_diagram() {\n-\tthis.props = new scicos_params();\n-\tthis.objs = [];\n-\tthis.version = '';\n-\tthis.contrib = [];\n-}\n+\tthis.type = new ScilabString(new data(\"block\", i++, l), new data(\"graphics\", i++, l), new data(\"model\", i++, l), new data(\"gui\", i++, l), new data(\"docs\", i++, l));\n+\tthis.graphics = options.graphics || new scicos_graphics();\n+\tthis.model = options.model || new scicos_model();\n+\tthis.gui = options.gui || new ScilabString();\n+\tthis.docs = options.docs || list();\n \n-// This might also have to be overloaded\n-function scicos_params() {\n-\tthis.wpar = [600, 450, 0, 0, 600, 450];\n-\tthis.titlex = 'Untitled';\n-\tthis.tf = 100000;\n-\tthis.tol = [Math.pow(10, -6), Math.pow(10, -6), Math.pow(10, -10), this.tf+1, 0, 1, 0];\n-\tthis.context = [];\n-\tthis.void1 = [];\n-\tthis.options = new default_options();\n-\tthis.void2 = [];\n-\tthis.void3 = [];\n-\tthis.doc = [];\n+\treturn mlist(this.type, this.graphics, this.model, this.gui, this.docs);\n }\n \n-// This might also have to be overloaded\n-function default_options() {\n-\tvar options = new Object();\n-    var col3d = [0.8, 0.8, 0.8];\n-    options['3D'] = [true, 33];\n-    options['Background'] = [8, 1]; // white,black\n-    options['Link'] = [1, 5]; // black,red\n-    options['ID'] = [[4, 1, 10, 1], [4, 1, 2, 1]];\n-    options['Cmap'] = col3d;\n-    return options;\n-}\n+function scicos_graphics() {\n+\tvar options = arguments[0] || new Object();\n+\tvar i = 0;\n+\tvar l = 0;\n+\n+\tthis.type = new ScilabString(new data(\"graphics\", i++, l), new data(\"orig\", i++, l), new data(\"sz\", i++, l), new data(\"flip\", i++, l), new data(\"theta\", i++, l), new data(\"exprs\", i++, l), new data(\"pin\", i++, l), new data(\"pout\", i++, l), new data(\"pein\", i++, l), new data(\"peout\", i++, l), new data(\"gr_i\", i++, l), new data(\"id\", i++, l), new data(\"in_implicit\", i++, l), new data(\"out_implicit\", i++, l), new data(\"in_style\", i++, l), new data(\"out_style\", i++, l), new data(\"in_label\", i++, l), new data(\"out_label\", i++, l), new data(\"style\", i++, l));\n+\tthis.orig = options.orig || new ScilabDouble(new data(0, 0, 0), new data(0, 1, 0));\n+\tthis.sz = options.sz || new ScilabDouble(new data(80, 0, 0), new data(80, 1, 0));\n+\tthis.flip = options.flip || new ScilabBoolean(new data(\"true\", 0, 0));\n+\tthis.theta = options.theta || new ScilabDouble(new data(0, 0, 0));\n+\tthis.exprs = options.exprs || new ScilabDouble();\n+\tthis.pin = options.pin || new ScilabDouble();;\n+\tthis.pout = options.pout || new ScilabDouble();;\n+\tthis.pein = options.pein || new ScilabDouble();;\n+\tthis.peout = options.peout || new ScilabDouble();;\n+\tthis.gr_i = options.gr_i || new ScilabString();\n+\tthis.id = options.id || new ScilabString(new data(\"\", 0, 0));\n+\tthis.in_implicit = options.in_implicit || new ScilabDouble();\n+\tthis.out_implicit = options.out_implicit || new ScilabDouble();\n+\tthis.in_style = options.in_style || new ScilabDouble();\n+\tthis.out_style = options.out_style || new ScilabDouble();\n+\tthis.in_label = options.in_label || new ScilabDouble();\n+\tthis.out_label = options.out_label || new ScilabDouble();\n+\tthis.style = options.style || new ScilabString();\n+\n+\treturn mlist(this.type, this.orig, this.sz, this.flip, this.theta, this.exprs, this.pin, this.pout, this.pein, this.peout, this.gr_i, this.id, this.in_implicit, this.out_implicit, this.in_style, this.out_style, this.in_label, this.out_label, this.style);\n+\n \n-function zeros(n){\n-\treturn new Array(n+1).join('0').split('').map(parseFloat);\n }\n \n function standard_define() {\n \tvar sz = arguments[0];\n \tvar model = arguments[1];\n \tvar label = arguments[2];\n-\tvar gr_i = arguments[3] || [];\n-\t\n-\tvar pin = [];\n-\tvar pout = [];\n-\tvar pein = [];\n-\tvar peout = [];\n-\t\n-\tvar nin = model.in.length;\n-\tif(nin > 0){\n+\tvar gr_i = arguments[3] || new ScilabString();\n+\n+\tvar pin = new ScilabDouble();\n+\tvar pout = new ScilabDouble();\n+\tvar pein = new ScilabDouble();\n+\tvar peout = new ScilabDouble();\n+\n+\tvar nin = model[in1].length;\n+\tif (nin > 0) {\n \t\tpin = zeros(nin);\n \t}\n-\tvar nout = model.out.length;\n-\tif(nout > 0){\n+\tvar nout = model[out].length;\n+\tif (nout > 0) {\n \t\tpout = zeros(nout);\n \t}\n-\tvar ncin = model.evtin.length;\n-\tif(ncin > 0){\n+\tvar ncin = model[evtin].length;\n+\tif (ncin > 0) {\n \t\tpein = zeros(ncin);\n \t}\n-\tvar ncout = model.evtout.length;\n-\tif(ncout > 0){\n+\tvar ncout = model[evtout].length;\n+\tif (ncout > 0) {\n \t\tpeout = zeros(ncout);\n \t}\n-\tgr_i = [gr_i, 8];\n-\tif(gr_i[1] == []){\n-\t\tgr_i[1] = 8;\n+\n+\tgr_i = list(gr_i, new ScilabDouble(new data(8, 0, 0)));\n+\t\n+\tif (gr_i[1] == []) {\n+\t\tgr_i[1] = new ScilabDouble(new data(8, 0, 0));\n \t}\n-\tif(gr_i[1] == 0){\n-\t\tgr_i[1] = [];\n+\tif (gr_i[1] == 0) {\n+\t\tgr_i[1] = new ScilabDouble();\n \t}\n+\n \tvar graphics_options = {\n-\t  sz: sz,\n-\t  pin: pin,\n-\t  pout: pout,\n-\t  pein: pein,\n-\t  peout: peout,\n-\t  gr_i: gr_i,\n-\t  exprs: label\n+\t\tsz: sz,\n+\t\tpin: pin,\n+\t\tpout: pout,\n+\t\tpein: pein,\n+\t\tpeout: peout,\n+\t\tgr_i: gr_i,\n+\t\texprs: label\n \t};\n \tvar graphics = new scicos_graphics(graphics_options);\n \tvar block_options = {\n-\t  graphics: graphics,\n-\t  model: model,\n-\t  gui: arguments.callee.caller.name\n+\t\tgraphics: graphics,\n+\t\tmodel: model,\n+\t\tgui: new ScilabString(new data(arguments.callee.caller.name, 0, 0))\n \t};\n \treturn new scicos_block(block_options);\n }\n \n-function scicos_link (){\n-\tthis.xx = [];\n-\tthis.yy = [];\n-\tthis.id = '';\n-\tthis.thick = [0, 0];\n-\tthis.ct = [1, 1];\n-\tthis.from = [];\n-\tthis.to = [];\n+function ScilabString() {\n+\tvar i = 0;\n+\n+\tfor (i = 0; i < arguments.length; i++)\n+\t\tthis['data' + i] = arguments[i];\n+\tif(arguments.length>1)\n+\t{\n+\t\tif(arguments[arguments.length-1].line>0)\n+\t\t{\n+\t\t\tthis.height=arguments.length;\n+\t\t\tthis.width=arguments[0].column+1;\n+\t\t}\n+\t\telse\n+\t\t{\n+\t\t\tthis.height = arguments[0].line+1;\n+\t\t\tthis.width = arguments.length;\n+\t\t}\n+\t}\n+\n+}\n+\n+function ScilabBoolean() {\n+\tvar i = 0;\n+\n+\tfor (i = 0; i < arguments.length; i++)\n+\t\tthis['data' + i] = arguments[i];\n+\tif(arguments.length>1)\n+\t{\n+\t\tif(arguments[arguments.length-1].line>0)\n+\t\t{\n+\t\t\tthis.height=arguments.length;\n+\t\t\tthis.width=arguments[0].column+1;\n+\t\t}\n+\t\telse\n+\t\t{\n+\t\t\tthis.height = arguments[0].line+1;\n+\t\t\tthis.width = arguments.length;\n+\t\t}\n+\t}\n }\n \n-function ANDLOG_f(){\n-    var model = new scicos_model();\n-    model.sim = \"andlog\";\n-    model.out = [1];\n-    model.out2 = [1]; // null -> 1\n-    model.evtin = [-1,-1]; // 1, 1 -> -1, -1\n-    model.blocktype = \"d\";\n-    model.firing = [];\n-    model.dep_ut = [false, false];\n-    var gr_i = \"xstringb(orig(1),orig(2),txt,sz(1),sz(2),'fill');\";\n-    var block = new standard_define([80,80], model, 'LOGICAL<BR>AND', gr_i); // 3 -> 80\n-    \n-    // Style\n-    block.graphics.out_implicit = \"E\";\n-    //block.graphics.out_style = \"ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0\";\n-    block.graphics.style = \"ANDLOG_f\";\n-    return block;\n+function ScilabDouble() {\n+\tvar i = 0;\n+\n+\tfor (i = 0; i < arguments.length; i++)\n+\t\tthis['data' + i] = arguments[i]\n+\tif(arguments.length>1)\n+\t{\n+\t\tif(arguments[arguments.length-1].line>0) //@ASP1234 Inverse Array\n+\t\t{\n+\t\t\tthis.height=arguments.length;\n+\t\t\tthis.width=arguments[0].column+1;\n+\t\t}\n+\t\telse\t\t\t\t\t\t\t\t\t//@ASP1234 Normal Array\n+\t\t{\n+\t\t\tthis.height = arguments[0].line+1;\n+\t\t\tthis.width = arguments.length;\n+\t\t}\n+\t}\n }\n \n+function isNumber(obj) {\n+\tif(obj===\"\")\n+\t\treturn false;\n+\tif(typeof obj == \"string\")\n+\t\treturn false;\n+\t\treturn !isNaN(obj);\n+}\n \n+function data() {\n+\tif (isNumber(arguments[0])) {\n+\t\tthis.column = arguments[1];\n+\t\tthis.line = arguments[2];\n+\t\tthis.realPart = arguments[0];\n+\t}\n \n+\telse {\n+\t\tthis.column = arguments[1];\n+\t\tthis.line = arguments[2];\n+\t\tthis.value = arguments[0];\n+\t}\n \n+}\n \n+function list() {\n+\tthis.ScilabList = [];\n+\tvar i = 0;\n \n+\tfor (i = 0; i < arguments.length; i++)\n+\t\tthis.ScilabList.push(arguments[i]);\n \n+\tthis.ScilabList.scilabClass = \"ScilabList\";\n \n+\treturn this.ScilabList;\n \n+}\n \n+function mlist() {\n+\tthis.ScilabMList = [];\n+\tvar i = 0;\n \n+\tfor (i = 0; i < arguments.length; i++)\n+\t\tthis.ScilabMList.push(arguments[i]);\n+\t\t\n+\tthis.ScilabMList.varName=\"\";\n+\tthis.ScilabMList.scilabClass = \"ScilabMList\";\n \n+\treturn this.ScilabMList;\n \n+}\n \n+function tlist() {\n+\tthis.ScilabTList = [];\n+\tvar i = 0;\n \n+\tfor (i = 0; i < arguments.length; i++)\n+\t\tthis.ScilabTList.push(arguments[i]);\n \n+\tthis.ScilabTList.scilabClass = \"ScilabTList\";\n \n+\treturn this.ScilabTList;\n \n+}\n \n \n+function scicos_model() {\n+\tvar options = arguments[0] || new Object();\n+\tvar i = 0;\n+\tvar l = 0\n+\n+\tthis.type = new ScilabString(new data(\"model\", i++, l), new data(\"sim\", i++, l), new data(\"in\", i++, l), new data(\"in2\", i++, l), new data(\"intyp\", i++, l), new data(\"out\", i++, l), new data(\"out2\", i++, l), new data(\"outtyp\", i++, l), new data(\"evtin\", i++, l), new data(\"evtout\", i++, l), new data(\"state\", i++, l), new data(\"dstate\", i++, l), new data(\"odstate\", i++, l), new data(\"rpar\", i++, l), new data(\"ipar\", i++, l), new data(\"opar\", i++, l), new data(\"blocktype\", i++, l), new data(\"firing\", i++, l), new data(\"dep_ut\", i++, l), new data(\"label\", i++, l), new data(\"nzcross\", i++, l), new data(\"nmode\", i++, l), new data(\"equations\", i++, l), new data(\"uid\", i++, l));\n+\tthis.sim = options.sim || new ScilabString();\n+\tthis.in = options.in || new ScilabDouble();\n+\tthis.in2 = options.in2 || new ScilabDouble();\n+\tthis.intyp = options.intyp || new ScilabDouble();//new data(1, 0, 0)\n+\tthis.out = options.out || new ScilabDouble();\n+\tthis.out2 = options.out2 || new ScilabDouble();\n+\tthis.outtyp = options.outtyp || new ScilabDouble(new data(1, 0, 0));\n+\tthis.evtin = options.evtin || new ScilabDouble();\n+\tthis.evtout = options.evtout || new ScilabDouble();\n+\tthis.state = options.state || new ScilabDouble();\n+\tthis.dstate = options.dstate || new ScilabDouble();\n+\tthis.odstate = options.odstate || list();\n+\tthis.ipar = options.ipar || new ScilabDouble();\n+\tthis.rpar = options.rpar || new ScilabDouble();\n+\tthis.opar = options.opar || list();//new ScilabDouble();\n+\tthis.blocktype = options.blocktype || new ScilabString(new data('c', 0, 0));\n+\tthis.firing = options.firing || new ScilabDouble();\n+\tthis.dep_ut = options.dep_ut || new ScilabBoolean(new data('false', 0, 0), new data('false', 1, 0));\n+\tthis.label = options.label || new ScilabString(new data(\"\",0,0)); // If label not available, use image\n+\tthis.nzcross = options.nzcross || new ScilabDouble(new data(0, 0, 0));\n+\tthis.nmode = options.nmode || new ScilabDouble(new data(0, 0, 0));;\n+\tthis.equations = options.equations || list();\n+\tthis.uid = options.uid || new ScilabString();\n+\n+\treturn mlist(this.type, this.sim, this.in, this.in2, this.intyp, this.out, this.out2, this.outtyp, this.evtin, this.evtout, this.state, this.dstate, this.odstate, this.ipar, this.rpar, this.opar, this.blocktype, this.firing, this.dep_ut, this.label, this.nzcross, this.nmode, this.equations, this.uid);\n+}\n \n \n \n+function scicos_diagram() {\n+\t\n+\tvar options = arguments[0] || new Object();\n+\tvar i = 0;\n+\tvar l = 0;\n+\t\n+\tthis.type2=new ScilabString(new data(\"diagram\",i++,l),new data(\"props\",i++,l),new data(\"objs\",i++,l),new data(\"version\",i++,l),new data(\"contrib\",i++,l));\n+\tthis.props = options.props|| scicos_params();\n+\tthis.objs = options.objs || list();\n+\tthis.version = options.version || new ScilabString(new data(\"\",0,0));\n+\tthis.contrib = options.contrib || list();\n+\t\n+\treturn mlist(this.type2,this.props,this.objs,this.version,this.contrib);\n+}\n+\n \n+function scicos_params() {\n+\t\n+\tvar options = arguments[0] || new Object();\n+\tvar i = 0;\n+\tvar l = 0;\n+\t\n+\tthis.type=new ScilabString(new data(\"params\",i++,l),new data(\"wpar\",i++,l),new data(\"title\",i++,l),new data(\"tol\",i++,l),new data(\"tf\",i++,l),new data(\"context\",i++,l),new data(\"void1\",i++,l),new data(\"options\",i++,l),new data(\"void2\",i++,l),new data(\"void3\",i++,l),new data(\"doc\",i++,l));\n+\tthis.wpar = options.wpar || new ScilabDouble(new data(600,0,0),new data(450,1,0),new data(0,2,0),new data(0,3,0),new data(600,4,0),new data(450,5,0));\n+\tthis.titlex = options.title||options.Title||new ScilabString(new data(\"Untitled\",0,0));\n+\tthis.tf = options.tf|| new ScilabDouble(new data(100000,0,0));\n+\tthis.tol = options.tol|| new ScilabDouble(new data(Math.pow(10, -6),0,0),new data(Math.pow(10, -6),0,1),new data(Math.pow(10, -10),0,2),new data(100001,0,3),new data(0,0,4),new data(1,0,5),new data(0,0,6));\n+\tthis.context = options.context|| new ScilabString(new data(\"\",0,0));\n+\tthis.void1 = new ScilabDouble();\n+\tthis.options = options.options||new default_options();\n+\tthis.void2 = new ScilabDouble();\n+\tthis.void3 = new ScilabDouble();\n+\tthis.doc = options.doc || list();\n+\t\n+\t\n+\treturn tlist(this.type,this.wpar,this.titlex,this.tol,this.tf,this.context,this.void1,this.options,this.void2,this.void3,this.doc);\n+\t\n+}\n \n+// This might also have to be overloaded\n+function default_options() {\n+\t\n+\tvar i=0;\n+\tvar l=0;\n+\t\n+\tthis.type=new ScilabString(new data(\"scsopt\",i++,l),new data(\"3D\",i++,l),new data(\"Background\",i++,l),new data(\"Link\",i++,l),new data(\"ID\",i++,l),new data(\"Cmap\",i++,l));\n+\tthis.D3=list(new ScilabBoolean(new data(\"true\",0,0)),new ScilabDouble(new data(33,0,0)));\n+\tthis.Background=new ScilabDouble(new data(8,0,0),new data(1,1,0));\n+\tthis.Link=new ScilabDouble(new data(1,0,0),new data(5,1,0));\n+\tthis.ID=list(new ScilabDouble(new data(4,0,0),new data(1,1,0),new data(10,2,0),new data(1,3,0)),new ScilabDouble(new data(4,0,0),new data(1,1,0),new data(2,2,0),new data(1,3,0)));\n+\tthis.Cmap=new ScilabDouble(new data(0.8,0,0),new data(0.8,1,0),new data(0.8,2,0));\n+\t\n+\treturn tlist(this.type,this.D3,this.Background,this.Link,this.ID,this.Cmap);\n+}\n+//Returns ScilabDouble which contains a list with size =n and all values=0\n+function zeros(n) {\n+\tvar arg=new  Array(n + 1).join('0').split('').map(parseFloat);\n+\tvar port = new ScilabDouble();\n+\tvar i = 0;\n+\n+\tfor (i = 0; i < arg[0].length; i++)\n+\t\tport.list.push(new data(arg[0][i], i, 0));\n+\n+\treturn port;\n+}\n+\n+\n+function scicos_link() {\n+\tvar options=arguments[0];\n+\tvar i=0;\n+\tvar l=0;\n+\tthis.type = new ScilabString(new data(\"Link\", i++, l),new data(\"xx\", i++, l),new data(\"yy\", i++, l),new data(\"id\", i++, l),new data(\"thick\", i++, l),new data(\"ct\", i++, l),new data(\"from\", i++, l),new data(\"to\", i++, l));\n+\tthis.xx = options.xx || new ScilabDouble(); //inverse array\n+\tthis.yy = options.yy || new ScilabDouble(); //inverse array\n+\tthis.id = options.id || new ScilabString();\n+\tthis.thick =options.thick || new ScilabDouble(new data(0,0,0),new data(0,1,0));\n+\tthis.ct = options.ct || new ScilabDouble(new data(1,0,0), new data(1,1,0));\n+\tthis.from = options.from || new ScilabDouble();\n+\tthis.to = options.xx || new ScilabDouble();\n+\t\n+\treturn mlist(this.type,this.xx,this.yy,this.id,this.thick,this.ct,this.from,this.to);\n+}\n+\n+function CLKIN_f() {\n+\tvar model = scicos_model();\n+\tvar port=1;\n+\t\n+\tmodel[sim] = new ScilabString(new data('input', 0, 0));\n+\tmodel[evtout] = new ScilabDouble(); // 1, 1 -> -1, -1\n+\tmodel[ipar]=new ScilabDouble(new data(port,0,0));\n+\tmodel[blocktype] = new ScilabString(new data('d', 0, 0));\n+\tmodel[firing] = new ScilabDouble(new data(-1,0,0));\n+\tmodel[dep_ut] = new ScilabBoolean(new data('false', 0, 0), new data('false', 1, 0));\n+\t\n+\tvar exprs=ScilabString(new data(\"\"+port,0,0));\n+\tvar gr_i = new ScilabString(new data(\"xstringb(orig(1),orig(2),\\\"CLKIN_f\\\",sz(1),sz(2));\", 0, 0));\n+\tvar block = new standard_define(new ScilabDouble(new data(80, 0, 0), new data(80, 1, 0)), model,exprs,gr_i); // 1 -> 80\n+\t\n+\tblock[graphics][style] = new ScilabString(new data(\"CLKIN_f\", 0, 0));\n+\treturn block\n+}\n+\n+function CLKOUT_f() {\n+\tvar model = scicos_model();\n+\tvar port=1;\n+\t\n+\tmodel[sim] = new ScilabString(new data('output', 0, 0));\n+\tmodel[evtin] = new ScilabDouble(new data(-1,0,0)); // 1, 1 -> -1, -1\n+\tmodel[ipar]=new ScilabDouble(new data(port,0,0));\n+\tmodel[blocktype] = new ScilabString(new data('d', 0, 0));\n+\tmodel[firing] = new ScilabDouble();\n+\tmodel[dep_ut] = new ScilabBoolean(new data('false', 0, 0), new data('false', 1, 0));\n+\t\n+\tvar exprs=ScilabString(new data(\"\"+port,0,0));\n+\tvar gr_i = new ScilabString(new data(\"xstringb(orig(1),orig(2),\\\"CLKOUT_f\\\",sz(1),sz(2));\", 0, 0));\n+\tvar block = new standard_define(new ScilabDouble(new data(80, 0, 0), new data(80, 1, 0)), model,exprs,gr_i); // 1 -> 80\n+\t\n+\tblock[graphics][style] = new ScilabString(new data(\"CLKOUT_f\", 0, 0));\n+\treturn block\n+}\n+\n+\n+function IFTHEL_f() {\n+\tvar model = scicos_model();\n+\tmodel[sim] = list(new ScilabString(new data('ifthel', 0, 0)),new ScilabDouble(new data(-1,0,0)));\n+\tmodel[in1]=new ScilabDouble(new data(1,0,0));\n+\tmodel[in2]=new ScilabDouble(new data(1,0,0));\n+\tmodel[intyp]=new ScilabDouble(new data(-1,0,0));\n+\tmodel[evtin]=new ScilabDouble(new data(-1,0,0));\n+\tmodel[evtout] = new ScilabDouble(new data(-1, 0, 0), new data(-1, 0, 1)) // 1, 1 -> -1, -1 inverse\n+\tmodel[blocktype] = new ScilabString(new data('l', 0, 0));\n+\tmodel[firing] = new ScilabDouble(new data(-1, 0, 0), new data(-1, 0, 1)); // inverse\n+\tmodel[dep_ut] = new ScilabBoolean(new data('true', 0, 0), new data('false', 1, 0));\n+\tmodel[nmode] = new ScilabDouble(new data(1,0,0));\n+\tmodel[nzcross] = new ScilabDouble(new data(1,0,0));\n+\t\n+\tvar gr_i = new ScilabString(new data(\"xstringb(orig(1),orig(2),\\\"IFTHEL_f\\\",sz(1),sz(2));\", 0, 0));\n+\tvar exprs=new ScilabString(new data(\"1\",0,0),new data(\"1\",0,1)); //value model.in, model.nmode inverse\n+\tvar block = new standard_define(new ScilabDouble(new data(80, 0, 0), new data(80, 1, 0)), model, exprs, gr_i); // 3 -> 80\n+\tblock[graphics][style] = new ScilabString(new data(\"IFTHEL_f\", 0, 0));\n+\treturn block;\n+}\n+\n+\n+\n+function CLKSPLIT_f() {\n+\tvar model = scicos_model();\n+\tmodel[sim] = new ScilabString(new data('split', 0, 0));\n+\tmodel[evtin]=new ScilabDouble(new data(-1,0,0));\n+\tmodel[evtout] = new ScilabDouble(new data(-1, 0, 0), new data(-1, 0, 1)) // 1, 1 -> -1, -1 inverse\n+\tmodel[blocktype] = new ScilabString(new data('d', 0, 0));\n+\tmodel[firing] = new ScilabDouble(new data(-1, 0, 0), new data(-1, 0, 1)); // inverse\n+\tmodel[dep_ut] = new ScilabBoolean(new data('true', 0, 0), new data('false', 1, 0));\n+\t\n+\tvar gr_i = new ScilabString(new data(\"xstringb(orig(1),orig(2),\\\"CLKSPLIT_f\\\",sz(1),sz(2));\", 0, 0));\n+\t\n+\tvar block = new standard_define(new ScilabDouble(new data(80, 0, 0), new data(80, 1, 0)), model, new ScilabDouble(), gr_i); // 1 -> 80\n+\tblock[graphics][style] = new ScilabString(new data(\"CLKSPLIT_f\", 0, 0));\n+\treturn block;\n+}\n+\n+\n+function ANDLOG_f() {\n+\tvar model = scicos_model();\n+\tmodel[sim] = new ScilabString(new data('andlog', 0, 0));\n+\tmodel[out] = new ScilabDouble(new data(1, 0, 0));\n+\tmodel[out2] = new ScilabDouble(new data(1, 0, 0)); // null -> 1\n+\tmodel[evtin] = new ScilabDouble(new data(-1, 0, 0), new data(-1, 1, 0)) // 1, 1 -> -1, -1\n+\tmodel[blocktype] = new ScilabString(new data('d', 0, 0));\n+\tmodel[firing] = new ScilabDouble();\n+\tmodel[dep_ut] = new ScilabBoolean(new data('false', 0, 0), new data('false', 1, 0));\n+\n+\tvar gr_i = new ScilabString(new data(\"xstringb(orig(1),orig(2),\\\"ANDLOG_f\\\",sz(1),sz(2));\", 0, 0));\n+\tvar block = new standard_define(new ScilabDouble(new data(80, 0, 0), new data(80, 1, 0)), model, new ScilabDouble(), gr_i); // 3 -> 80\n+\t\n+\t// Style\n+\tblock[graphics][out_implicit] = new ScilabString(new data(\"E\",0,0));\n+\t//block.graphics.out_style = \"ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0\";\n+\tblock[graphics][style] = new ScilabString(new data(\"ANDLOG_f\", 0, 0));\n+\treturn block;\n+}\n+\n+function BasicBlock()\n+{\n+\tswitch(arguments[0])\n+\t{\n+\t\tcase \"ANDBLK\":\n+\t\t\tvar attributes = {\n+\t\t\t\tstyle: \"ANDBLK\",\n+\t\t\t\tsimulationFunctionName: \"csuper\",\n+\t\t\t\tsimulationFunctionType: \"DEFAULT\",\n+\t\t\t\tblockType: \"h\",\n+\t\t\t\tinterfaceFunctionName: \"ANDBLK\"\n+\t\t\t};\n+\t\t\tbreak;\n+\t\tcase \"CONST_m\":\n+\t\t\tvar attributes = {\n+\t\t\t\tstyle: \"CONST_m\",\n+\t\t\t\tsimulationFunctionName: \"cstblk4\",\n+\t\t\t\tsimulationFunctionType: \"C_OR_FORTRAN\",\n+\t\t\t\tblockType: \"d\",\n+\t\t\t\tinterfaceFunctionName: \"CONST_m\"\n+\t\t\t};\n+\t\t\tbreak;\n+\t}\n+\tvar options = attributes || new Object();\n+\t\n+\tthis.angle=options.angle||\"\";\n+\tthis.blockType=options.blockType||\"\";\n+\tthis.connectable=options.connectable||\"\";\n+\tthis.dependsOnT=options.dependsOnT||\"\";\n+\tthis.dependsOnU=options.dependsOnU||\"\";\n+\tthis.id=options.id||\"\";\n+\tthis.interfaceFunctionName=options.interfaceFunctionName||\"\";\n+\tthis.ordering=options.ordering||\"\";\n+\tthis.parent=options.parent||\"\";\n+\tthis.simulationFunctionName=options.simulationFunctionName||\"\";\n+\tthis.simulationFunctionType=options.simulationFunctionType||\"\";\n+\tthis.style=options.style||\"\";\n+\tthis.value=options.value||\"\";\n+\tthis.vertex=options.vertex||\"\";\n+\tthis.visible=options.visible||\"\";\n+\t\n+\tswitch(arguments[0])\n+\t{\n+\t\tcase \"ANDBLK\":\n+\t\t\tthis.realParameters=ANDBLK();\n+\t\t\tbreak;\n+\t\tcase \"CONST_m\":\n+\t\t\tthis.realParameters=CONST_m(\"define\");\n+\t\t\tbreak;\n+\t}\n+}\n+\n+function ANDBLK() {\n+\t\n+\tvar andlog=ANDLOG_f(\"define\");\n+\tandlog[graphics][orig]=new ScilabDouble(new data(194,0,0),new data(133,1,0));\n+\tandlog[graphics][sz]=new ScilabDouble(new data(60,0,0),new data(60,1,0));\n+\tandlog[graphics][flip]=new ScilabBoolean(new data(\"true\",0,0));\n+\tandlog[graphics][pout]=new ScilabDouble(new data(9,0,0));\n+\tandlog[graphics][pein]=new ScilabDouble(new data(4,0,0),new data(11,0,1));\n+\t\n+\tvar input_port1=CLKIN_f(\"define\");\n+\tinput_port1[graphics][orig]=new ScilabDouble(new data(149,0,0),new data(287,1,0));\n+\tinput_port1[graphics][sz]=new ScilabDouble(new data(20,0,0),new data(20,1,0));\n+\tinput_port1[graphics][flip]=new ScilabBoolean(new data(\"true\",0,0));\n+\tinput_port1[graphics][exprs]=new ScilabString(new data(\"1\",0,0));\n+\tinput_port1[graphics][peout]=new ScilabDouble(new data(4,0,0));\n+\tinput_port1[graphics][ipar]=new ScilabDouble(new data(1,0,0));\n+\t\n+\tvar output_port=CLKOUT_f(\"define\");\n+\toutput_port[graphics][orig]=new ScilabDouble(new data(450,0,0),new data(83,1,0));\n+\toutput_port[graphics][sz]=new ScilabDouble(new data(20,0,0),new data(20,1,0));\n+\toutput_port[graphics][flip]=new ScilabBoolean(new data(\"true\",0,0));\n+\toutput_port[graphics][exprs]=new ScilabString(new data(\"1\",0,0));\n+\toutput_port[graphics][pein]=new ScilabDouble(new data(8,0,0));\n+\toutput_port[graphics][ipar]=new ScilabDouble(new data(1,0,0));\n+\t\n+\tvar input_port2=CLKIN_f(\"define\");\n+\tinput_port2[graphics][orig]=new ScilabDouble(new data(141,0,0),new data(330,1,0));\n+\tinput_port2[graphics][sz]=new ScilabDouble(new data(20,0,0),new data(20,1,0));\n+\tinput_port2[graphics][flip]=new ScilabBoolean(new data(\"true\",0,0));\n+\tinput_port2[graphics][exprs]=new ScilabString(new data(\"2\",0,0));\n+\tinput_port2[graphics][peout]=new ScilabDouble(new data(6,0,0));\n+\tinput_port2[graphics][ipar]=new ScilabDouble(new data(2,0,0));\n+\t\n+\tvar ifthel=IFTHEL_f(\"define\");\n+\tifthel[graphics][orig]=new ScilabDouble(new data(331,0,0),new data(137,1,0));\n+\tifthel[graphics][sz]=new ScilabDouble(new data(60,0,0),new data(60,1,0));\n+\tifthel[graphics][flip]=new ScilabBoolean(new data(\"true\",0,0));\n+\tifthel[graphics][pin]=new ScilabDouble(new data(9,0,0));\n+\tifthel[graphics][pein]=new ScilabDouble(new data(12,0,0));\n+\tifthel[graphics][peout]=new ScilabDouble(new data(8,0,0),new data(0,0,1));\n+\t\n+\tvar split=CLKSPLIT_f(\"define\");\n+\tsplit[graphics][orig]=new ScilabDouble(new data(234,0,0),new data(275.78348,1,0));\n+\tsplit[graphics][pein]=new ScilabDouble(new data(6,0,0));\n+\tsplit[graphics][peout]=new ScilabDouble(new data(11,0,0),new data(12,1,0));\n+\t\n+\tvar diagram=scicos_diagram();\n+\tdiagram[objs].push(andlog);\n+\tdiagram[objs].push(input_port1);\n+\tdiagram[objs].push(output_port);\n+\tvar scicos_link1={xx : new ScilabDouble(new data(169,0,0),new data(214,1,0),new data(214,2,0)), \n+\t\t\t\t\t  yy : new ScilabDouble(new data(297,0,0),new data(297,1,0),new data(198.71,2,0)),\n+\t\t\t\t\t  ct : new ScilabDouble(new data(5,0,0),new data(-1,1,0)),\n+\t\t\t\t\t  from : new ScilabDouble(new data(2,0,0),new data(1,1,0)),\n+\t\t\t\t\t  to : new ScilabDouble(new data(1,0,0),new data(1,1,0))\n+\t};\n+\tdiagram[objs].push(scicos_link(scicos_link1));\n+\tdiagram[objs].push(input_port2);\n+\tvar scicos_link2={xx : new ScilabDouble(new data(161,0,0),new data(234,1,0),new data(234,2,0)), \n+\t\t\t\t\t  yy : new ScilabDouble(new data(340,0,0),new data(340,1,0),new data(275.78,2,0)),\n+\t\t\t\t\t  ct : new ScilabDouble(new data(5,0,0),new data(-1,1,0)),\n+\t\t\t\t\t  from : new ScilabDouble(new data(5,0,0),new data(1,1,0)),\n+\t\t\t\t\t  to : new ScilabDouble(new data(10,0,0),new data(1,1,0))\n+\t};\n+\tdiagram[objs].push(scicos_link(scicos_link2));\n+\tdiagram[objs].push(ifthel);\n+\tvar scicos_link3={xx : new ScilabDouble(new data(351,0,0),new data(351,1,0),new data(450,2,0)), \n+\t\t\t\t\t  yy : new ScilabDouble(new data(131.29,0,0),new data(93,1,0),new data(93,2,0)),\n+\t\t\t\t\t  ct : new ScilabDouble(new data(5,0,0),new data(-1,1,0)),\n+\t\t\t\t\t  from : new ScilabDouble(new data(7,0,0),new data(1,1,0)),\n+\t\t\t\t\t  to : new ScilabDouble(new data(3,0,0),new data(1,1,0))\n+\t};\n+\tdiagram[objs].push(scicos_link(scicos_link3));\n+\tvar scicos_link4={xx : new ScilabDouble(new data(262.57,0,0),new data(322.43,1,0)), \n+\t\t\t\t\t  yy : new ScilabDouble(new data(163,0,0),new data(167,1,0)),\n+\t\t\t\t\t  ct : new ScilabDouble(new data(1,0,0),new data(1,1,0)),\n+\t\t\t\t\t  from : new ScilabDouble(new data(1,0,0),new data(1,1,0)),\n+\t\t\t\t\t  to : new ScilabDouble(new data(7,0,0),new data(1,1,0))\n+\t};\n+\tdiagram[objs].push(scicos_link(scicos_link4));\n+\tdiagram[objs].push(split);\n+\tvar scicos_link5={xx : new ScilabDouble(new data(234,0,0),new data(234,1,0)), \n+\t\t\t\t\t  yy : new ScilabDouble(new data(275.78,0,0),new data(198.71,1,0)),\n+\t\t\t\t\t  ct : new ScilabDouble(new data(5,0,0),new data(-1,1,0)),\n+\t\t\t\t\t  from : new ScilabDouble(new data(10,0,0),new data(1,1,0)),\n+\t\t\t\t\t  to : new ScilabDouble(new data(1,0,0),new data(2,1,0))\n+\t};\n+\tdiagram[objs].push(scicos_link(scicos_link5));\n+\tvar scicos_link6={xx : new ScilabDouble(new data(234,0,0),new data(361,1,0),new data(361,2,0)), \n+\t\t\t\t\t  yy : new ScilabDouble(new data(275.78,0,0),new data(275.78,1,0),new data(202.71,2,0)),\n+\t\t\t\t\t  ct : new ScilabDouble(new data(5,0,0),new data(-1,1,0)),\n+\t\t\t\t\t  from : new ScilabDouble(new data(10,0,0),new data(2,1,0)),\n+\t\t\t\t\t  to : new ScilabDouble(new data(7,0,0),new data(1,1,0))\n+\t};\n+\tdiagram[objs].push(scicos_link(scicos_link6));\n+\t\n+\t\n+\tvar x=scicos_block();\n+\tx[gui]=new ScilabString(new data(\"ANDBLK\",0,0));\n+\tx[graphics][sz]= new ScilabDouble(new data(2,0,0),new data(2,1,0));\n+\tx[graphics][gr_i]=new ScilabDouble();\n+\tx[graphics][pein]=new ScilabDouble(new data(0,0,0),new data(0,1,0));\n+\tx[graphics][peout]=new ScilabDouble(new data(0,0,0));\n+\tx[model][sim]= new ScilabString(new data(\"csuper\",0,0));\n+\tx[model][evtin]=new ScilabDouble(new data(1,0,0), new data(1,1,0));\n+\tx[model][evtout]=new ScilabDouble(new data(1,0,0));\n+\tx[model][blocktype]= new ScilabString(new data(\"h\",0,0));\n+\tx[model][firing]= new ScilabBoolean(new data(\"false\",0,0));\n+\tx[model][dep_ut]= new ScilabBoolean(new data(\"false\",0,0),new data(\"false\",1,0));\n+\tx[model][rpar]=diagram;\n+\treturn x;\n+}\n+\n+function sci2exp(c)\n+{\n+\tif(c.length==1)\n+\treturn new ScilabString(new data(c.toString(),0,0));\n+\telse\n+\treturn new ScilabString(new data(\"[\"+c.toString()+\"]\",0,0));\n+}\n+\n+\n+function C()","path":"details.js","position":859,"original_position":859,"commit_id":"ecd382ad3ad98423edf4790c21107d976064557e","original_commit_id":"ecd382ad3ad98423edf4790c21107d976064557e","user":{"login":"kamakshidasan","id":9362064,"avatar_url":"https://avatars.githubusercontent.com/u/9362064?v=3","gravatar_id":"","url":"https://api.github.com/users/kamakshidasan","html_url":"https://github.com/kamakshidasan","followers_url":"https://api.github.com/users/kamakshidasan/followers","following_url":"https://api.github.com/users/kamakshidasan/following{/other_user}","gists_url":"https://api.github.com/users/kamakshidasan/gists{/gist_id}","starred_url":"https://api.github.com/users/kamakshidasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamakshidasan/subscriptions","organizations_url":"https://api.github.com/users/kamakshidasan/orgs","repos_url":"https://api.github.com/users/kamakshidasan/repos","events_url":"https://api.github.com/users/kamakshidasan/events{/privacy}","received_events_url":"https://api.github.com/users/kamakshidasan/received_events","type":"User","site_admin":false},"body":"Will be removed.","created_at":"2016-06-02T10:44:07Z","updated_at":"2016-06-02T10:44:07Z","html_url":"https://github.com/FOSSEE/xcos-on-web/pull/7#discussion_r65518447","pull_request_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/comments/65518447"},"html":{"href":"https://github.com/FOSSEE/xcos-on-web/pull/7#discussion_r65518447"},"pull_request":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7","id":72314853,"html_url":"https://github.com/FOSSEE/xcos-on-web/pull/7","diff_url":"https://github.com/FOSSEE/xcos-on-web/pull/7.diff","patch_url":"https://github.com/FOSSEE/xcos-on-web/pull/7.patch","issue_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues/7","number":7,"state":"open","locked":false,"title":"Implement CONST_m and add images","user":{"login":"Chhavi2208","id":10887092,"avatar_url":"https://avatars.githubusercontent.com/u/10887092?v=3","gravatar_id":"","url":"https://api.github.com/users/Chhavi2208","html_url":"https://github.com/Chhavi2208","followers_url":"https://api.github.com/users/Chhavi2208/followers","following_url":"https://api.github.com/users/Chhavi2208/following{/other_user}","gists_url":"https://api.github.com/users/Chhavi2208/gists{/gist_id}","starred_url":"https://api.github.com/users/Chhavi2208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chhavi2208/subscriptions","organizations_url":"https://api.github.com/users/Chhavi2208/orgs","repos_url":"https://api.github.com/users/Chhavi2208/repos","events_url":"https://api.github.com/users/Chhavi2208/events{/privacy}","received_events_url":"https://api.github.com/users/Chhavi2208/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-02T09:29:41Z","updated_at":"2016-06-02T10:44:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6f5f388a76ae1af605cd16ef37713b14434d0a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7/commits","review_comments_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7/comments","review_comment_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues/7/comments","statuses_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/statuses/ecd382ad3ad98423edf4790c21107d976064557e","head":{"label":"Chhavi2208:master","ref":"master","sha":"ecd382ad3ad98423edf4790c21107d976064557e","user":{"login":"Chhavi2208","id":10887092,"avatar_url":"https://avatars.githubusercontent.com/u/10887092?v=3","gravatar_id":"","url":"https://api.github.com/users/Chhavi2208","html_url":"https://github.com/Chhavi2208","followers_url":"https://api.github.com/users/Chhavi2208/followers","following_url":"https://api.github.com/users/Chhavi2208/following{/other_user}","gists_url":"https://api.github.com/users/Chhavi2208/gists{/gist_id}","starred_url":"https://api.github.com/users/Chhavi2208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chhavi2208/subscriptions","organizations_url":"https://api.github.com/users/Chhavi2208/orgs","repos_url":"https://api.github.com/users/Chhavi2208/repos","events_url":"https://api.github.com/users/Chhavi2208/events{/privacy}","received_events_url":"https://api.github.com/users/Chhavi2208/received_events","type":"User","site_admin":false},"repo":{"id":60151203,"name":"xcos-on-web-1","full_name":"Chhavi2208/xcos-on-web-1","owner":{"login":"Chhavi2208","id":10887092,"avatar_url":"https://avatars.githubusercontent.com/u/10887092?v=3","gravatar_id":"","url":"https://api.github.com/users/Chhavi2208","html_url":"https://github.com/Chhavi2208","followers_url":"https://api.github.com/users/Chhavi2208/followers","following_url":"https://api.github.com/users/Chhavi2208/following{/other_user}","gists_url":"https://api.github.com/users/Chhavi2208/gists{/gist_id}","starred_url":"https://api.github.com/users/Chhavi2208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chhavi2208/subscriptions","organizations_url":"https://api.github.com/users/Chhavi2208/orgs","repos_url":"https://api.github.com/users/Chhavi2208/repos","events_url":"https://api.github.com/users/Chhavi2208/events{/privacy}","received_events_url":"https://api.github.com/users/Chhavi2208/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chhavi2208/xcos-on-web-1","description":"","fork":true,"url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1","forks_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/forks","keys_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/teams","hooks_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/hooks","issue_events_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/issues/events{/number}","events_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/events","assignees_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/assignees{/user}","branches_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/branches{/branch}","tags_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/tags","blobs_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/languages","stargazers_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/stargazers","contributors_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/contributors","subscribers_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/subscribers","subscription_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/subscription","commits_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/contents/{+path}","compare_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/merges","archive_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/downloads","issues_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/issues{/number}","pulls_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/labels{/name}","releases_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/releases{/id}","deployments_url":"https://api.github.com/repos/Chhavi2208/xcos-on-web-1/deployments","created_at":"2016-06-01T06:27:48Z","updated_at":"2016-06-01T06:27:49Z","pushed_at":"2016-06-02T09:26:11Z","git_url":"git://github.com/Chhavi2208/xcos-on-web-1.git","ssh_url":"git@github.com:Chhavi2208/xcos-on-web-1.git","clone_url":"https://github.com/Chhavi2208/xcos-on-web-1.git","svn_url":"https://github.com/Chhavi2208/xcos-on-web-1","homepage":null,"size":1207,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"FOSSEE:master","ref":"master","sha":"b2ae20e4a0670ec888a7af07fb25569bbc841556","user":{"login":"FOSSEE","id":703487,"avatar_url":"https://avatars.githubusercontent.com/u/703487?v=3","gravatar_id":"","url":"https://api.github.com/users/FOSSEE","html_url":"https://github.com/FOSSEE","followers_url":"https://api.github.com/users/FOSSEE/followers","following_url":"https://api.github.com/users/FOSSEE/following{/other_user}","gists_url":"https://api.github.com/users/FOSSEE/gists{/gist_id}","starred_url":"https://api.github.com/users/FOSSEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOSSEE/subscriptions","organizations_url":"https://api.github.com/users/FOSSEE/orgs","repos_url":"https://api.github.com/users/FOSSEE/repos","events_url":"https://api.github.com/users/FOSSEE/events{/privacy}","received_events_url":"https://api.github.com/users/FOSSEE/received_events","type":"Organization","site_admin":false},"repo":{"id":55413291,"name":"xcos-on-web","full_name":"FOSSEE/xcos-on-web","owner":{"login":"FOSSEE","id":703487,"avatar_url":"https://avatars.githubusercontent.com/u/703487?v=3","gravatar_id":"","url":"https://api.github.com/users/FOSSEE","html_url":"https://github.com/FOSSEE","followers_url":"https://api.github.com/users/FOSSEE/followers","following_url":"https://api.github.com/users/FOSSEE/following{/other_user}","gists_url":"https://api.github.com/users/FOSSEE/gists{/gist_id}","starred_url":"https://api.github.com/users/FOSSEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOSSEE/subscriptions","organizations_url":"https://api.github.com/users/FOSSEE/orgs","repos_url":"https://api.github.com/users/FOSSEE/repos","events_url":"https://api.github.com/users/FOSSEE/events{/privacy}","received_events_url":"https://api.github.com/users/FOSSEE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FOSSEE/xcos-on-web","description":"","fork":false,"url":"https://api.github.com/repos/FOSSEE/xcos-on-web","forks_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/forks","keys_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/teams","hooks_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/hooks","issue_events_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues/events{/number}","events_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/events","assignees_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/assignees{/user}","branches_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/branches{/branch}","tags_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/tags","blobs_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/statuses/{sha}","languages_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/languages","stargazers_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/stargazers","contributors_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/contributors","subscribers_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/subscribers","subscription_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/subscription","commits_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/contents/{+path}","compare_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/merges","archive_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/downloads","issues_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues{/number}","pulls_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls{/number}","milestones_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/milestones{/number}","notifications_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/labels{/name}","releases_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/releases{/id}","deployments_url":"https://api.github.com/repos/FOSSEE/xcos-on-web/deployments","created_at":"2016-04-04T13:28:14Z","updated_at":"2016-06-01T09:53:34Z","pushed_at":"2016-06-02T09:41:15Z","git_url":"git://github.com/FOSSEE/xcos-on-web.git","ssh_url":"git@github.com:FOSSEE/xcos-on-web.git","clone_url":"https://github.com/FOSSEE/xcos-on-web.git","svn_url":"https://github.com/FOSSEE/xcos-on-web","homepage":null,"size":1238,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7"},"html":{"href":"https://github.com/FOSSEE/xcos-on-web/pull/7"},"issue":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues/7"},"comments":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/FOSSEE/xcos-on-web/statuses/ecd382ad3ad98423edf4790c21107d976064557e"}}}}
{"actor":{"display_login":"kamakshidasan"}}