Automated Code Retrieval and Summarization
Evaluating and Demonstrating Neural and non-Neural Methods
See it in Action
Effortless Retrieval
Input Summary: "Create a Python list from a native set's items."
def _native_set_to_python_list(typ, payload, c):
nitems = payload.used
listobj = c.pyapi.list_new(nitems)
ok = cgutils.is_not_null(c.builder, listobj)
with c.builder.if_then(ok, likely=True):
index = cgutils.alloca_once_value(c.builder, ir.Constant(nitems.type, 0))
with payload._iterate() as loop:
i = c.builder.load(index)
item = loop.entry.key
itemobj = c.box(typ.dtype, item)
c.pyapi.list_setitem(listobj, i, itemobj)
i = c.builder.add(i, ir.Constant(i.type, 1))
c.builder.store(i, index)
return (ok, listobj)
Effortless Documentation
string url = baseUrl + "/api/Entry/SendEmail?emailId=" + emailId;
WebRequest req = WebRequest.Create(url);
req.Method = "GET";
BVAE Predicted Summary: "send a web request for a web api call"
By using a Gated Recurrent Unit for the language decoder, the BVAE can be used for automated summarization
Do you have any idea what this code does? No. Does your manager? No. But does it need to be documented, by company policy? Yes.
public int getCellsPnt() {
Iterator i = cells.keySet().iterator();
int size = 0;
for (; i.hasNext(); ) {
Character c = (Character) i.next();
Cell e = at(c);
if (e.ref >= 0) {
size++;
}
}
return size;
}
BVAE Predicted Summary: "Returns the number of all children in a particular cell by position"