code stringlengths 3 6.57k |
|---|
optional(str) |
optional(bool) |
dict_of(str, str) |
optional(bool) |
TransactionalResource.__init__(self, name) |
connect(self) |
TransactionalResource.connect(self) |
self._http_resource.connect() |
disconnect(self) |
self._http_resource.disconnect() |
TransactionalResource.disconnect(self) |
set_idle_timeout(self, idle_timeout) |
self._http_resource.set_idle_timeout(idle_timeout) |
TransactionalResource.set_idle_timeout(self, idle_timeout) |
reset_idle_timeout(self) |
self._http_resource.reset_idle_timeout() |
TransactionalResource.reset_idle_timeout(self) |
set_max_age(self, max_age) |
self._http_resource.set_max_age(max_age) |
TransactionalResource.set_max_age(self, max_age) |
_expired(self) |
TransactionalResource._expired(self) |
__getattr__(self, name) |
self._attrs.append(name) |
__call__(self, *args) |
join(self._attrs) |
format(method, self._http_resource.server_info) |
ResourceError.rethrow(recoverable = True) |
pmnc.log.info("sending {0:s}".format(request_description) |
self._http_resource.post(self._server_uri, request.encode(self._request_encoding) |
Exception("HTTP request returned code {0:d}".format(status_code) |
loads(content) |
format(request_description, e.faultCode, e.faultString) |
format(request_description, exc_string() |
pmnc.log.info("XMLRPC request returned successfully") |
self_test() |
sendall(ifc, data) |
socket(AF_INET, SOCK_STREAM) |
s.connect(ifc.listener_address) |
s.sendall(data) |
recvall(s) |
s.recv(1024) |
s.recv(1024) |
post_string(ifc, method, s, request_encoding) |
format(request_encoding, method, s) |
encode(request_encoding) |
format(len(req) |
sendall(ifc, hdr.encode(request_encoding) |
recvall(s) |
resp.startswith(b"HTTP/1.1 200 OK\r\n") |
resp.split(b"\r\n\r\n", 1) |
loads(resp) |
interface_config(**kwargs) |
test_interface_config.copy() |
result.update(kwargs) |
test_interface_start_stop() |
process_xmlrpc_request(request, response) |
active_interface("xmlrpc_1", **interface_config(process_xmlrpc_request = process_xmlrpc_request) |
test_interface_start_stop() |
test_interface_broken_requests() |
process_xmlrpc_request(request, response) |
active_interface("xmlrpc_1", **interface_config(process_xmlrpc_request = process_xmlrpc_request) |
sendall(ifc, b"POST / HTTP/1.0\nContent-Type: text/plain\n\n") |
recvall(s) |
resp.startswith(b"HTTP/1.1 415 Unsupported Media Type\r\n") |
sendall(ifc, b"POST / HTTP/1.0\nContent-Type: text/xml\nContent-Length: 3\n\nfoo") |
recvall(s) |
resp.startswith(b"HTTP/1.1 500 Internal Server Error\r\n") |
test_interface_broken_requests() |
test_interface_marshaling() |
process_xmlrpc_request(request, response) |
Exception(request["args"][0]) |
active_interface("xmlrpc_1", **interface_config(process_xmlrpc_request = process_xmlrpc_request) |
post_string(ifc, "MethodName", "foo", "utf-8") |
post_string(ifc, rus, rus, "cp866") |
post_string(ifc, "raise", "foo", "iso-8859-5") |
e.faultString.startswith("Exception(\"foo\") |
post_string(ifc, "raise", rus, "utf-8") |
e.faultString.startswith("Exception(\"" + rus + "\") |
test_interface_marshaling() |
test_resource() |
process_xmlrpc_request(request, response) |
Exception(request["args"][0]) |
active_interface("xmlrpc_1", **interface_config(process_xmlrpc_request = process_xmlrpc_request) |
fake_request(10.0) |
range(16) |
str(i) |
pmnc.transaction.xmlrpc_1.Module.Method(i, s, [ s ], { s: i, n: None }) |
pmnc.transaction.xmlrpc_1.ShouldBe.Failing("some error") |
e.description.startswith("Exception(\"some error\") |
test_resource() |
pmnc.self_test.run() |
connection_example() |
EthernetNetwork() |
print(servo.read('DRV_ID_SOFTWARE_VERSION') |
net.disconnect_from_slave(servo) |
connection_example() |
sys.exit(0) |
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c') |
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/9010.c') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.