MCPcopy
hub / github.com/apache/caldera / decode_bytes

Method decode_bytes

app/utility/base_world.py:50–52  ·  view source on GitHub ↗
(s, strip_newlines=True)

Source from the content-addressed store, hash-verified

48
49 @staticmethod
50 def decode_bytes(s, strip_newlines=True):
51 decoded = b64decode(s).decode('utf-8', errors='ignore')
52 return decoded.replace('\r\n', '').replace('\n', '') if strip_newlines else decoded
53
54 @staticmethod
55 def encode_string(s):

Callers 15

operation_loopMethod · 0.80
_accept_beaconMethod · 0.80
get_resultsMethod · 0.80
get_beaconsMethod · 0.80
handle_uploadsMethod · 0.80
_beaconMethod · 0.80
get_resultsMethod · 0.80
get_beaconsMethod · 0.80
handle_uploadsMethod · 0.80
runMethod · 0.80
replace_app_propsMethod · 0.80
reportMethod · 0.80

Calls 2

replaceMethod · 0.80
decodeMethod · 0.45

Tested by 3

test_replace_app_propsFunction · 0.64