sS ai_performJavaCheck_safe(S s) { new Matches m; if (!swic_trim(s, "java check:", m)) null; S code = $1; if (!isSafeCodeFragment(code)) ret null with print("Skipping unsafe code: " + code); O result = javaEvalOrInterpret(code); if (isTrue(result)) ret "Yes"; if (isFalse(result)) ret "No"; ret "Not sure"; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021420 |
Snippet name: | ai_performJavaCheck_safe [boolean-returning code fragment] |
Eternal ID of this version: | #1021420/2 |
Text MD5: | 107436f47742630bc327053f060a2eb2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-11 13:32:25 |
Source code size: | 338 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 289 |
Version history: | 1 change(s) |
Referenced in: | [show references] |