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XR0b250ZXh0ID0gYnV0dG9uLmlubmVyVGV4dC50cmltKCkudG9Mb3dlckNhc2UoKTsKCQlpZiAoYnV0dG9udGV4dC5pbmRleE9mKCdjb25uZWN0JykgIT0gLTEpCgkJewoJCQljb25zb2xlLmxvZyhgJHt1c2VybmFtZX0gLT4gJHtqb2J9IENMSUNLIWApOwoJCQlidXR0b24uY2xpY2soKTsKCQl9Cgl9Cn0KCnNldFRpbWVvdXQoKCk9PnsKY29uc29sZS5sb2coJ0NoYW5nZSBwYWdlJyk7CmRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ2Rpdi5lbWJlci12aWV3IGJ1dHRvblthcmlhLWxhYmVsPSJOZXh0Il0nKS5jbGljaygpOwp9LCAyMDAwKTs=
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top