id
stringlengths 42
42
| src_hexsha
stringlengths 40
40
| example
stringlengths 80
1.37M
|
---|---|---|
ab9313659b25f67f2b987d4eb52820b18ee40e26-3 | ab9313659b25f67f2b987d4eb52820b18ee40e26 | PHxmaW1fcHJlZml4fD4KIiIiCiAgICBweWdtZW50cy5sZXhlcnMuamF2YXNjcmlwdAogICAgfn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn4KCiAgICBMZXhlcnMgZm9yIEphdmFTY3JpcHQgYW5kIHJlbGF0ZWQgbGFuZ3VhZ2VzLgoKICAgIDpjb3B5cmlnaHQ6IENvcHlyaWdodCAyMDA2LTIwMjEgYnkgdGhlIFB5Z21lbnRzIHRlYW0sIHNlZSBBVVRIT1JTLgogICAgOmxpY2Vuc2U6IEJTRCwgc2VlIExJQ0VOU0UgZm9yIGRldGFpbHMuCiIiIgoKaW1wb3J0IHJlCgpmcm9tIHB5Z21lbnRzLmxleGVyIGltcG9ydCBSZWdleExleGVyLCBpbmNsdWRlLCBieWdyb3VwcywgZGVmYXVsdCwgdXNpbmcsIFwKICAgIHRoaXMsIHdvcmRzLCBjb21iaW5lZApmcm9tIHB5Z21lbnRzLnRva2VuIGltcG9ydCBUZXh0LCBDb21tZW50LCBPcGVyYXRvciwgS2V5d29yZCwgTmFtZSwgU3RyaW5nLCBcCiAgICBOdW1iZXIsIFB1bmN0dWF0aW9uLCBPdGhlcgpmcm9tIHB5Z21lbnRzLnV0aWwgaW1wb3J0IGdldF9ib29sX29wdAppbXBvcnQgcHlnbWVudHMudW5pc3RyaW5nIGFzIHVuaQoKSlNfSURFTlRfU1RBUlQgPSAoJyg/OlskXycgKyB1bmkuY29tYmluZSgnTHUnLCAnTGwnLCAnTHQnLCAnTG0nLCAnTG8nLCAnTmwnKSArCjx8ZmltX2hvbGV8PgpKU19JREVOVF9QQVJUID0gKCcoPzpbJCcgKyB1bmkuY29tYmluZSgnTHUnLCAnTGwnLCAnTHQnLCAnTG0nLCAnTG8nLCAnTmwnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnTW4nLCAnTWMnLCAnTmQnLCAnUGMnKSArCiAgICAgICAgICAgICAgICAgJ1x1MjAwY1x1MjAwZF18XFxcXHVbYS1mQS1GMC05XXs0fSknKQpKU19JREVOVCA9IEpTX0lERU5UX1NUQVJUICsgJyg/OicgKyBKU19JREVOVF9QQVJUICsgJykqJwoKCmNsYXNzIEphdmFTY3JpcHQoUmVnZXhMZXhlcik6CiAgICAiIiIKICAgIEZvciBKYXZhU2NyaXB0IHNvdXJjZSBjb2RlLgogICAgIiIiCgogICAgbmFtZSA9ICdKYXZhU2NyaXB0JwogICAgYWxpYXNlcyA9IFsnanMnLCAnamF2YXNjcmlwdCddCiAgICBmaWxlbmFtZXMgPSBbJyouanMnLCAnKi5qc20nLCAnKi5tanMnXQogICAgbWltZXR5cGVzID0gWydhcHBsaWNhdGlvbi9qYXZhc2NyaXB0JywgJ2FwcGxpY2F0aW9uL3gtamF2YXNjcmlwdCcsCiAgICAgICAgICAgICAgICAgJ3RleHQveC1qYXZhc2NyaXB0JywgJ3RleHQvamF2YXNjcmlwdCddCgogICAgZmxhZ3MgPSByZS5ET1RBTEwgfCByZS5VTklDT0RFIHwgcmUuTVVMVElMSU5FCgogICAgdG9rZW5zID0gewogICAgICAgICdjb21tZW50c2FuZHdoaXRlc3BhY2UnOiBbCiAgICAgICAgICAgIChyJ1xzKycsIFRleHQpLAogICAgICAgICAgICAocic8IS0tJywgQ29tbWVudCksCiAgICAgICAgICAgIChyJy8vLio/XG4nLCBDb21tZW50LlNpbmdsZSksCiAgICAgICAgICAgIChyJy9cKi4qP1wqLycsIENvbW1lbnQuTXVsdGlsaW5lKQogICAgICAgIF0sCiAgICAgICAgJ3NsYXNoc3RhcnRzcmVnZXgnOiBbCiAgICAgICAgICAgIGluY2x1ZGUoJ2NvbW1lbnRzYW5kd2hpdGVzcGFjZScpLAogICAgICAgICAgICAocicvKFxcLnxbXlsvXFxcbl18XFsoXFwufFteXF1cXFxuXSkqXSkrLycKICAgICAgICAgICAgIHInKFtnaW11eXNdK1xifFxCKScsIFN0cmluZy5SZWdleCwgJyNwb3AnKSwKICAgICAgICAgICAgKHInKD89LyknLCBUZXh0LCAoJyNwb3AnLCAnYmFkcmVnZXgnKSksCiAgICAgICAgICAgIGRlZmF1bHQoJyNwb3AnKQogICAgICAgIF0sCiAgICAgICAgJ2JhZHJlZ2V4JzogWwogICAgICAgICAgICAocidcbicsIFRleHQsICcjcG9wJykKICAgICAgICBdLAogICAgICAgICdyb290JzogWwogICAgICAgICAgICAocidcQSMhID8vLio/XG4nLCBDb21tZW50Lkhhc2hiYW5nKSwgICMgcmVjb2duaXplZCBieSBub2RlLmpzCiAgICAgICAgICAgIChyJ14oPz1cc3wvfDwhLS0pJywgVGV4dCwgJ3NsYXNoc3RhcnRzcmVnZXgnKSwKICAgICAgICAgICAgaW5jbHVkZSgnY29tbWVudHNhbmR3aGl0ZXNwYWNlJyksCgogICAgICAgICAgICAjIE51bWVyaWMgbGl0ZXJhbHMKICAgICAgICAgICAgKHInMFtiQl1bMDFdK24/JywgTnVtYmVyLkJpbiksCiAgICAgICAgICAgIChyJzBbb09dP1swLTddK24/JywgTnVtYmVyLk9jdCksICAjIEJyb3dzZXJzIHN1cHBvcnQgIjBvNyIgYW5kICIwNyIgKDwgRVM1KSBub3RhdGlvbnMKICAgICAgICAgICAgKHInMFt4WF1bMC05YS1mQS1GXStuPycsIE51bWJlci5IZXgpLAogICAgICAgICAgICAocidbMC05XStuJywgTnVtYmVyLkludGVnZXIpLCAgIyBKYXZhc2NyaXB0IEJpZ0ludCByZXF1aXJlcyBhbiAibiIgcG9zdGZpeAogICAgICAgICAgICAjIEphdmFzY3JpcHQgZG9lc24ndCBoYXZlIGFjdHVhbCBpbnRlZ2VyIGxpdGVyYWxzLCBzbyBldmVyeSBvdGhlcgogICAgICAgICAgICAjIG51bWVyaWMgbGl0ZXJhbCBpcyBoYW5kbGVkIGJ5IHRoZSByZWdleCBi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gJ2ludGVycCc6IFsKICAgICAgICAgICAgKHInYCcsIFN0cmluZy5CYWNrdGljaywgJyNwb3AnKSwKICAgICAgICAgICAgKHInXFwuJywgU3RyaW5nLkJhY2t0aWNrKSwKICAgICAgICAgICAgKHInXCRceycsIFN0cmluZy5JbnRlcnBvbCwgJ2ludGVycC1pbnNpZGUnKSwKICAgICAgICAgICAgKHInXCQnLCBTdHJpbmcuQmFja3RpY2spLAogICAgICAgICAgICAocidbXmBcXCRdKycsIFN0cmluZy5CYWNrdGljayksCiAgICAgICAgXSwKICAgICAgICAnaW50ZXJwLWluc2lkZSc6IFsKICAgICAgICAgICAgIyBUT0RPOiBzaG91bGQgdGhpcyBpbmNsdWRlIHNpbmdsZS1saW5lIGNvbW1lbnRzIGFuZCBhbGxvdyBuZXN0aW5nIHN0cmluZ3M/CiAgICAgICAgICAgIChyJ1x9JywgU3RyaW5nLkludGVycG9sLCAnI3BvcCcpLAogICAgICAgICAgICBpbmNsdWRlKCdyb290JyksCiAgICAgICAgXSwKICAgIH0KPHxmaW1fc3VmZml4fD4KICAgICAgICAgICAgICAgICAgJ118XFxcXHVbYS1mQS1GMC05XXs0fSknKQo8fGZpbV9lbmR8Pg== |
ab9313659b25f67f2b987d4eb52820b18ee40e26-4 | ab9313659b25f67f2b987d4eb52820b18ee40e26 | PHxmaW1fcHJlZml4fD4KIiIiCiAgICBweWdtZW50cy5sZXhlcnMuamF2YXNjcmlwdAo8fGZpbV9ob2xlfD4KICAgIDpjb3B5cmlnaHQ6IENvcHlyaWdodCAyMDA2LTIwMjEgYnkgdGhlIFB5Z21lbnRzIHRlYW0sIHNlZSBBVVRIT1JTLgogICAgOmxpY2Vuc2U6IEJTRCwgc2VlIExJQ0VOU0UgZm9yIGRldGFpbHMuCiIiIgoKaW1wb3J0IHJlCgpmcm9tIHB5Z21lbnRzLmxleGVyIGltcG9ydCBSZWdleExleGVyLCBpbmNsdWRlLCBieWdyb3VwcywgZGVmYXVsdCwgdXNpbmcsIFwKICA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AgICAgICAgICAgICd0ZXh0L3gtamF2YXNjcmlwdCcsICd0ZXh0L2phdmFzY3JpcHQnXQoKICAgIGZsYWdzID0gcmUuRE9UQUxMIHwgcmUuVU5JQ09ERSB8IHJlLk1VTFRJTElORQoKICAgIHRva2VucyA9IHsKICAgICAgICAnY29tbWVudHNhbmR3aGl0ZXNwYWNlJzogWwogICAgICAgICAgICAocidccysnLCBUZXh0KSwKICAgICAgICAgICAgKHInPCEtLScsIENvbW1lbnQpLAogICAgICAgICAgICAocicvLy4qP1xuJywgQ29tbWVudC5TaW5nbGUpLAogICAgICAgICAgICAocicvXCouKj9cKi8nLCBDb21tZW50Lk11bHRpbGluZSkKICAgICAgICBdLAogICAgICAgICdzbGFzaHN0YXJ0c3JlZ2V4JzogWwogICAgICAgICAgICBpbmNsdWRlKCdjb21tZW50c2FuZHdoaXRlc3BhY2UnKSwKICAgICAgICAgICAgKHInLyhcXC58W15bL1xcXG5dfFxbKFxcLnxbXlxdXFxcbl0pKl0pKy8nCiAgICAgICAgICAgICByJyhbZ2ltdXlzXStcYnxcQiknLCBTdHJpbmcuUmVnZXgsICcjcG9wJyksCiAgICAgICAgICAgIChyJyg/PS8pJywgVGV4dCwgKCcjcG9wJywgJ2JhZHJlZ2V4JykpLAogICAgICAgICAgICBkZWZhdWx0KCcjcG9wJykKICAgICAgICBdLAogICAgICAgICdiYWRyZWdleCc6IFsKICAgICAgICAgICAgKHInXG4nLCBUZXh0LCAnI3BvcCcpCiAgICAgICAgXSwKICAgICAgICAncm9vdCc6IFsKICAgICAgICAgICAgKHInXEEjISA/Ly4qP1xuJywgQ29tbWVudC5IYXNoYmFuZyksICAjIHJlY29nbml6ZWQgYnkgbm9kZS5qcwogICAgICAgICAgICAocideKD89XHN8L3w8IS0tKScsIFRleHQsICdzbGFzaHN0YXJ0c3JlZ2V4JyksCiAgICAgICAgICAgIGluY2x1ZGUoJ2NvbW1lbnRzYW5kd2hpdGVzcGFjZScpLAoKICAgICAgICAgICAgIyBOdW1lcmljIGxpdGVyYWxzCiAgICAgICAgICAgIChyJzBbYkJdWzAxXStuPycsIE51bWJlci5CaW4pLAogICAgICAgICAgICAocicwW29PXT9bMC03XStuPycsIE51bWJlci5PY3QpLCAgIyBCcm93c2VycyBzdXBwb3J0ICIwbzciIGFuZCAiMDciICg8IEVTNSkgbm90YXRpb25zCiAgICAgICAgICAgIChyJzBbeFhdWzAtOWEtZkEtRl0rbj8nLCBOdW1iZXIuSGV4KSwKICAgICAgICAgICAgKHInWzAtOV0rbicsIE51bWJlci5JbnRlZ2VyKSwgICMgSmF2YXNjcmlwdCBCaWdJbnQgcmVxdWlyZXMgYW4gIm4iIHBvc3RmaXgKICAgICAgICAgICAgIyBKYXZhc2NyaXB0IGRvZXNuJ3QgaGF2ZSBhY3R1YWwgaW50ZWdlciBsaXRlcmFscywgc28gZXZlcnkgb3RoZXIKICAgICAgICAgICAgIyBudW1lcmljIGxpdGVyYWwgaXMgaGFuZGxlZCBieSB0aGUgcmVnZXggYmVsb3cgKGluY2x1ZGluZyAibm9ybWFsIikKICAgICAgICAgICAgIyBpbnRlZ2VycwogICAgICAgICAgICAocicoXC5bMC05XSt8WzAtOV0rXC5bMC05XSp8WzAtOV0rKShbZUVdWy0rXT9bMC05XSspPycsIE51bWJlci5GbG9hdCksCgogICAgICAgICAgICAocidcLlwuXC58PT4nLCBQdW5jdHVhdGlvbiksCiAgICAgICAgICAgIChyJ1wrXCt8LS18fnwmJnxcP3w6fFx8XHx8XFwoPz1cbil8JwogICAgICAgICAgICAgcicoPDx8Pj4+P3w9PT98IT0/fFstPD4rKiUmfF4vXSk9PycsIE9wZXJhdG9yLCAnc2xhc2hzdGFydHNyZWdleCcpLAogICAgICAgICAgICAocidbeyhcWzssXScsIFB1bmN0dWF0aW9uLCAnc2xhc2hzdGFydHNyZWdleCcpLAogICAgICAgICAgICAocidbfSlcXS5dJywgUHVuY3R1YXRpb24pLAogICAgICAgICAgICAocicoZm9yfGlufHdoaWxlfGRvfGJyZWF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VVJJfGVuY29kZVVSSUNvbXBvbmVudHwnCiAgICAgICAgICAgICByJ0Vycm9yfGV2YWx8aXNGaW5pdGV8aXNOYU58aXNTYWZlSW50ZWdlcnxwYXJzZUZsb2F0fHBhcnNlSW50fCcKICAgICAgICAgICAgIHInZG9jdW1lbnR8dGhpc3x3aW5kb3d8Z2xvYmFsVGhpc3xTeW1ib2wpXGInLCBOYW1lLkJ1aWx0aW4pLAogICAgICAgICAgICAoSlNfSURFTlQsIE5hbWUuT3RoZXIpLAogICAgICAgICAgICAociciKFxcXFx8XFxbXlxcXXxbXiJcXF0pKiInLCBTdHJpbmcuRG91YmxlKSwKICAgICAgICAgICAgKHIiJyhcXFxcfFxcW15cXF18W14nXFxdKSonIiwgU3RyaW5nLlNpbmdsZSksCiAgICAgICAgICAgIChyJ2AnLCBTdHJpbmcuQmFja3RpY2ssICdpbnRlcnAnKSwKICAgICAgICBdLAogICAgICAgICdpbnRlcnAnOiBbCiAgICAgICAgICAgIChyJ2AnLCBTdHJpbmcuQmFja3RpY2ssICcjcG9wJyksCiAgICAgICAgICAgIChyJ1xcLicsIFN0cmluZy5CYWNrdGljayksCiAgICAgICAgICAgIChyJ1wkXHsnLCBTdHJpbmcuSW50ZXJwb2wsICdpbnRlcnAtaW5zaWRlJyksCiAgICAgICAgICAgIChyJ1wkJywgU3RyaW5nLkJhY2t0aWNrKSwKICAgICAgICAgICAgKHInW15gXFwkXSsnLCBTdHJpbmcuQmFja3RpY2spLAogICAgICAgIF0sCiAgICAgICAgJ2ludGVycC1pbnNpZGUnOiBbCiAgICAgICAgICAgICMgVE9ETzogc2hvdWxkIHRoaXMgaW5jbHVkZSBzaW5nbGUtbGluZSBjb21tZW50cyBhbmQgYWxsb3cgbmVzdGluZyBzdHJpbmdzPwogICAgICAgICAgICAocidcfScsIFN0cmluZy5JbnRlcnBvbCwgJyNwb3AnKSwKICAgICAgICAgICAgaW5jbHVkZSgncm9vdCcpLAogICAgICAgIF0sCiAgICB9Cjx8Zmlt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YWRhdGFfcGxhaW4oc2VsZik6CiAgICAgICAgcGFydCA9IE1hZ2ljTW9jaygpCiAgICAgICAgc2VsZi5sb2NhbF9kYXRhWyJtdWx0aXBhcnRzIl0uYXBwZW5kKGlkKHBhcnQpKQogICAgICAgIHBhcnQuZ2V0X2NvbnRlbnRfdHlwZS5yZXR1cm5fdmFsdWUgPSAidGV4dC9wbGFpbiIKCiAgICAgICAgc2VsZi5wbHVnaW4uZXh0cmFjdF9tZXRhZGF0YShzZWxmLm1vY2tfbXNnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlc3QgdG9rZW4gdGVzdCIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVzdCB0b2tlbiB0ZXN0IiwgcGFydCkKCiAgICAgICAgc2VsZi5hc3NlcnRFcXVhbChkaWN0KHNlbGYubG9jYWxfZGF0YVsidGV4dF90b2tlbnMiXSksIHsKICAgICAgICAgICAgInRlc3QiOiAyLAogICAgICAgICAgICAidG9rZW4iOiAxLAogICAgICAgIH0pCiAgICAgICAgc2VsZi5hc3NlcnRFcXVhbChkaWN0KHNlbGYubG9jYWxfZGF0YVsiaHRtbF90b2tlbnMiXSksIHt9KQoKICAgIGRlZiB0ZXN0X2V4dHJhY3RfbWV0YWRhdGFfaHRtbChzZWxmKToKICAgICAgICBwYXJ0ID0gTWFnaWNNb2NrKCkKICAgICAgICBzZWxmLmxvY2FsX2RhdGFbIm11bHRpcGFydHMiXS5hcHBlbmQoaWQocGFydCkpCiAgICAgICAgcGFydC5nZXRfY29udGVudF90eXBlLnJldHVybl92YWx1ZSA9ICJ0ZXh0L2h0bWwiCgogICAgICAgIHNlbGYucGx1Z2luLmV4dHJhY3RfbWV0YWRhdGEoc2VsZi5tb2NrX21zZywKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICI8aHRtbD48Ym9keT4iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVzdCB0b2tlbiB0ZXN0IgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIjwvYm9keT48L2h0bWw+IiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZXN0IHRva2VuIHRlc3QiLCBwYXJ0KQoKICAgICAgICBzZWxmLmFzc2VydEVxdWFsKGRpY3Qoc2VsZi5sb2NhbF9kYXRhWyJ0ZXh0X3Rva2VucyJdKSwge30pCiAgICAgICAgc2VsZi5hc3NlcnRFcXVhbChkaWN0KHNlbGYubG9jYWxfZGF0YVsiaHRtbF90b2tlbnMiXSksIHsKICAgICAgICAgICAgInRlc3QiOiAyLAogICAgICAgICAgICAidG9rZW4iOiAxLAogICAgICAgIH0pCgogICAgZGVmIHRlc3RfcGFyc2VkX21ldGFkYXRhX2NoZWNrX2RpZmZfMChzZWxmKToKICAgICAgICBzZWxmLmxvY2FsX2RhdGFbInRleHRfdG9rZW5zIl0udXBkYXRlKFsKICAgICAgICAgICAgInRva2VuMSIsICJ0b2tlbjIiLCAidG9rZW4xIgogICAgICAgIF0pCiAgICAgICAgc2VsZi5sb2NhbF9kYXRhWyJodG1sX3Rva2VucyJdLnVwZGF0ZShbCiAgICAgICAgICAgICJ0b2tlbjEiLCAidG9rZW4yIiwgInRva2VuMSIKICAgICAgICBdKQogICAgICAgIHNlbGYubW9ja19tc2cucmF3X3RleHQgPSAidG9rZW4xIHRva2VuMiB0b2tlbjEiCgogICAgICAgIHNlbGYucGx1Z2luLnBhcnNlZF9tZXRhZGF0YShzZWxmLm1vY2tfbXNnKQogICAgICAgIHNlbGYuYXNzZXJ0RXF1YWwoc2VsZi5sb2NhbF9kYXRhWyJtYWRpZmYiXSwgMC4wKQoKICAgIGRlZiB0ZXN0X3BhcnNlZF9tZXRhZGF0YV9jaGVja19kaWZmXzUwKHNlbGYpOgogICAgICAgIHNlbGYubG9jYWxfZGF0YVsidGV4dF90b2tlbnMiXS51cGRhdGUoWwogICAgICAgICAgICAidG9rZW4xIiwgInR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Lm11bHRpcGFydF9hbHRlcm5hdGl2ZV9kaWZmZXJlbmNlX2NvdW50KAogICAgICAgICAgICBzZWxmLm1vY2tfbXNnLCAwLjY1LCAxCiAgICAgICAgKQogICAgICAgIHNlbGYuYXNzZXJ0VHJ1ZShyZXN1bHQpCgogICAgZGVmIHRlc3RfbWFfZGlmZl9jb3VudF9mYWxzZShzZWxmKToKICAgICAgICAjIFRoZSBjb3VudCByYXRpbyBoZXJlIGlzIDAuNjYKICAgICAgICBzZWxmLmxvY2FsX2RhdGFbInRleHRfdG9rZW5zIl0udXBkYXRlKFsKICAgICAgICAgICAgInRva2VuMSIsICJ0b2tlbjIiLCAidG9rZW4xIgogICAgICAgIF0pCiAgICAgICAgc2VsZi5sb2NhbF9kYXRhWyJodG1sX3Rva2VucyJdLnVwZGF0ZShbCiAgICAgICAgICAgICJ0b2tlbjMiLCAidG9rZW40IiwgInRva2VuNSIKICAgICAgICBdKQogICAgICAgIHJlc3VsdCA9IHNlbGYucGx1Z2luLm11bHRpcGFydF9hbHRlcm5hdGl2ZV9kaWZmZXJlbmNlX2NvdW50KAogICAgICAgICAgICBzZWxmLm1vY2tfbXNnLCAwLjY3LCAxCiAgICAgICAgKQogICAgICAgIHNlbGYuYXNzZXJ0RmFsc2UocmVzdWx0KQoKICAgIGRlZiB0ZXN0X21hX2RpZmZfY291bnRfZmFsc2Vfbm90X2Vub3VnaF9odG1sKHNlbGYpOgogICAgICAgICMgVGhlIGNvdW50IHJhdGlvIGhlcmUgaXMgMC42NgogICAgICAgIHNlbGYubG9jYWxfZGF0YVsidGV4dF90b2tlbnMiXS51cGRhdGUoWwogICAgICAgICAgICAidG9rZW4xIiwgInRva2VuMiIsICJ0b2tlbjEiCiAgICAgICAgXSkKICAgICAgICBzZWxmLmxvY2FsX2RhdGFbImh0bWxfdG9rZW5zIl0udXBkYXRlKFsKICAgICAgICAgICAgInRva2VuMyIsICJ0b2tlbjQiLCAidG9rZW41IgogICAgICAgIF0pCiAgICAgICAgcmV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CB7fSkKCiAgICBkZWYgdGVzdF9leHRyYWN0X21ldGFkYXRhX2h0bWwoc2VsZik6CiAgICAgICAgcGFydCA9IE1hZ2ljTW9jaygpCiAgICAgICAgc2VsZi5sb2NhbF9kYXRhWyJtdWx0aXBhcnRzIl0uYXBwZW5kKGlkKHBhcnQpKQogICAgICAgIHBhcnQuZ2V0X2NvbnRlbnRfdHlwZS5yZXR1cm5fdmFsdWUgPSAidGV4dC9odG1sIgoKICAgICAgICBzZWxmLnBsdWdpbi5leHRyYWN0X21ldGFkYXRhKHNlbGYubW9ja19tc2csCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPGh0bWw+PGJvZHk+IgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlc3QgdG9rZW4gdGVzdCIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICI8L2JvZHk+PC9odG1sPiIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVzdCB0b2tlbiB0ZXN0IiwgcGFydCkKCiAgICAgICAgc2VsZi5hc3NlcnRFcXVhbChkaWN0KHNlbGYubG9jYWxfZGF0YVsidGV4dF90b2tlbnMiXSksIHt9KQogICAgICAgIHNlbGYuYXNzZXJ0RXF1YWwoZGljdChzZWxmLmxvY2FsX2RhdGFbImh0bWxfdG9rZW5zIl0pLCB7CiAgICAgICAgICAgICJ0ZXN0IjogMiwKICAgICAgICAgICAgInRva2VuIjogMSwKICAgICAgICB9KQoKICAgIGRlZiB0ZXN0X3BhcnNlZF9tZXRhZGF0YV9jaGVja19kaWZmXzAoc2VsZik6CiAgICAgICAgc2VsZi5sb2NhbF9kYXRhWyJ0ZXh0X3Rva2VucyJdLnVwZGF0ZShbCiAgICAgICAgICAgICJ0b2tlbjEiLCAidG9rZW4yIiwgInRva2VuMSIKICAgICAgICBdKQogICAgICAgIHNlbGYubG9jYWxfZGF0YVsiaHRtbF90b2tlbnMiXS51cGRhdGUoWwogICA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8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KICAgICAgICBvZmZfaWR4ID0gb2ZmW2ldCiAgICAgICAgIyBwbG90dGluZyBob3Jpem9udGFsIGxpbmUgZm9yIGVhY2ggT24vT2ZmIHBhaXIKICAgICAgICBheC5wbG90KFt0aW1lY29kZVtvbl9pZHhdLCB0aW1lY29kZVtvZmZfaWR4XV0sIFt5LCB5XSwgY29sb3I9Y29sKQo8fGZpbV9lbmR8Pg== |
59a813149e76eb1f8ee3d348413e0b56465fc547-1 | 59a813149e76eb1f8ee3d348413e0b56465fc547 | PHxmaW1fcHJlZml4fD4KZnJvbSB0aW1lIGltcG9ydCB0aW1lCmZyb20gcmFuZG9tIGltcG9ydCByYW5kcmFuZ2UKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgoKCmRlZiBteV9oYXNoX2NvZGUoc3RyaW5nKToKICAgIGggPSAwCjx8ZmltX2VuZHw+ |
59a813149e76eb1f8ee3d348413e0b56465fc547-2 | 59a813149e76eb1f8ee3d348413e0b56465fc547 | PHxmaW1fcHJlZml4fD4KZnJvbSB0aW1lIGltcG9ydCB0aW1lCmZyb20gcmFuZG9tIGltcG9ydCByYW5kcmFuZ2UKCgpkZWYgbXlfaGFzaF9jb2RlKHN0cmluZyk6CiAgICBoID0gMAogICAgZm9yIGMgaW4gc3RyaW5nOgogICAgICAgIGggKz0gb3JkKGMpCiAgICByZXR1cm4gaAoKCmRlZiBtYWluKCk6CgogICAgdmFsdWVzID0nYWJjZGVmZ2hpZ2tsbW9wcXJzdHV2d3h5ekFCQzAxMjM0NTY3ODknCiAgICBsZW5fdmFsdWVzID0gbGVuKHZhbHVlcykKICAgIHN0cl9vdXQgPSAnJwogICAgZm9yIGNvdW50IGluIHJhbmdlKDEwMDAwMDApOgogICAgICAgIHN0cl9vdXQgKz0gdmFsdWVzW3JhbmRyYW5nZShsZW5fdmFsdWVzLTEpXQoKICAgIHQxID0gdGltZSgpCiAgICBoYXNoMSA9IG15X2hhc2hfY29kZShzdHJfb3V0KQogICAgdDIgPSB0aW1lKCkKICAgIHQgPSAodDIgLSB0MSkKICAgIHByaW50KCdleGVjdXRlZCBpbiB7fScuZm9ybWF0KHQpKQogICAgcHJpbnQoaGFzaDEpCgoKaWYgX19uYW1lX18gPT0gJ19fbWFpbl9fJzoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgbWFpbigpCjx8ZmltX2VuZHw+ |
59a813149e76eb1f8ee3d348413e0b56465fc547-3 | 59a813149e76eb1f8ee3d348413e0b56465fc547 | PHxmaW1fcHJlZml4fD4KZnJvbSB0aW1lIGltcG9ydCB0aW1lCmZyb20gcmFuZG9tIGltcG9ydCByYW5kcmFuZ2UKCgpkZWYgbXlfaGFzaF9jb2RlKHN0cmluZyk6CiAgICBoID0gMAogICAgZm9yIGMgaW4gc3RyaW5nOgogICAgICAgIGggKz0gb3JkKGMpCiAgICByZXR1cm4gaAoKCmRlZiBtYWluKCk6CgogICAgdmFsdWVzID0nYWJjZGVmZ2hpZ2tsbW9wcXJzdHV2d3h5ekFCQzAxMjM0NTY3ODknCiAgICBsZW5fdmFsdWVzID0gbGVuKHZhbHVlcykKICAgIHN0cl9vdXQgPSAnJwogICAgZm9yIGNvdW50IGluIHJhbmdlKDEwMDAwMDApOgogICAgICAgIHN0cl9vdXQgKz0gdmFsdWVzW3JhbmRyYW5nZShsZW5fdmFsdWVzLTEpXQoKICAgIHQxID0gdGltZSgpCiAgICBoYXNoMSA9IG15X2hhc2hfY29kZShzdHJfb3V0KQogICAgdDIgPSB0aW1lKCkKICAgIHQgPSAodDIgLSB0MSkKICAgIHByaW50KCdleGVjdXRlZCBpbiB7fScuZm9ybWF0KHQpKQo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICBwcmludChoYXNoMSkKCgo8fGZpbV9lbmR8Pg== |
59a813149e76eb1f8ee3d348413e0b56465fc547-4 | 59a813149e76eb1f8ee3d348413e0b56465fc547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zKToKICAgICAgICAgICAgbGluZSA9IGxpbmUuc3RyaXAoKQogICAgICAgICAgICBpZiBpc19kaXN0cmlidXRlZDoKICAgICAgICAgICAgICAgIHJhbmsgPSBmbGVldC53b3JrZXJfaW5kZXgoKQogICAgICAgICAgICAgICAgbnJhbmtzID0gZmxlZXQud29ya2VyX251bSgpCiAgICAgICAgICAgICAgICBpZiBpZHggJSBucmFua3MgPT0gcmFuazoKICAgICAgICAgICAgICAgICAgICBmaWxlcy5hcHBlbmQobGluZSkKICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIGZpbGVzLmFwcGVuZChsaW5lKQogICAgcmV0dXJuIGZpbGVzCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KCmRlZiBjcmVhdGVfZGF0YXNldChmZWVkX3Zhcl9saXN0LCBmaWxlbGlzdCwgYmF0Y2hfc2l6ZSwgCiAgICAgICAgdGhyZWFkX251bSwgZGljdF9wYXRoLCBtYXhfdHVybl9udW0sIG1heF90dXJuX2xlbiwgCiAgICAgICAgZGF0YV9zb3VyY2UpOgo8fGZpbV9lbmR8Pg== |
3c592a78f6b836d4b1fb94cdfdd059b927acadc3-1 | 3c592a78f6b836d4b1fb94cdfdd059b927acadc3 | PHxmaW1fcHJlZml4fD4KI35+fn5+fn5+fiBYTUwgRklMRSBSRUFERVIgfn5+fn5+fn5+Cgojfn5+fn5+IElNUE9SVFMgfn5+fn5+CgojLS0tLS0tIFN0YW5kYXJkIGxpYnJhcnkgaW1wb3J0cyAtLS0tLS0KZnJvbSBvcyBpbXBvcnQgcGF0aApmcm9tIGx4bWwgaW1wb3J0IGV0cmVlCgoKI35+fn5+fiBJTklUSUFMSVpBVElPTiB+fn5+fn4KCiMtLS0tLS0gUGF0aHMgZm9yIGZpbGVzIC0tLS0tLQpwYXRoX2Zvcl94bWxfZmlsZSA9IHBhdGguam9pbihwYXRoLmFic3BhdGgoJy4uL3NhdmVnYW1lcy8nKSwndGVtcGxhdGVfc2F2ZV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EYXRhRnJhbWUoKQoKICAgIGRlZiBwbG90KHNlbGYsICphcmdzLCAqKmt3YXJncyk6CiAgICAgICAgIiIiIFRoZSBmdW5jdGlvbiBmb3IgcHJvZHVjaW5nIGFueSBwbG90cy4KCiAgICAgICAgIiIiCiAgICAgICAgcGFzcwo8fGZpbV9zdWZmaXh8PgogICAgICAgIHNlbGYudW5pdCA9IHVuaXRzCiAgICAgICAgc2VsZi5maWxlX2xpc3QgPSBbXQogICAgICAgIHNlbGYub3V0ID0gb3V0Cgo8fGZpbV9lbmR8Pg== |
ab97e9408fec1bf4afedf1a0a3b2ff27de1596a6-1 | ab97e9408fec1bf4afedf1a0a3b2ff27de1596a6 | PHxmaW1fcHJlZml4fD4KIyBjb2Rpbmc9dXRmLTgKCiIiIgrpqozor4Hkuozlj4nmn6Xmib7moJEK57uZ5a6a5LiA5Liq5LqM5Y+J5qCR77yM5Yik5pat5a6D5piv5ZCm5piv5ZCI5rOV55qE5LqM5Y+J5p+l5om+5qCRKEJTVCkKCuS4gOajtUJTVOWumuS5ieS4uu+8mgoK6IqC54K555qE5bem5a2Q5qCR5Lit55qE5YC86KaB5Lil5qC85bCP5LqO6K+l6IqC54K555qE5YC844CCCuiKgueCueeahOWPs+WtkOagkeS4reeahOWAvOimgeS4peagvOWkp+S6juivpeiKgueCueeahOWAvOOAggrlt6blj7PlrZDmoJHkuZ/lv4XpobvmmK/kuozlj4nmn6Xmib7moJHjgIIK5LiA5Liq6IqC54K555qE5qCR5Lmf5piv5LqM5Y+J5p+l5om+5qCR44CCCgoK5oCd6LevOumdnuW4uOW3p+WmmeWVigoK5LiN5pat5Y6L57yp5Yy66Ze077yM5Y+N5q2j5bem6L655bCPIOWPs+i+ueWkp+WwseihjOS6hgoiIiIKCiIiIgpEZWZpbml0aW9uIG9mIFRyZWVOb2RlOgpjbGFzcyBUcmVlTm9kZToKICAgIGRlZiBfX2luaXRfXyhzZWxmLCB2YWwpOgogICAgICAgIHNlbGYudmFsID0gdmFsCiAg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X3JobyA9IHNlbGYuYWxnLnByZWRpY3Qob2JzKQoKICAgIGRlZiBwcmVkaWN0KHNlbGYsIG9ic2VydmF0aW9uKToKICAgICAgICBwcm9jZXNzZWRfb2JzID0gc2VsZi51bml0YXJ5X2ZlYXR1cmVfcHJvY2Vzc29yLnByb2Nlc3Mob2JzZXJ2YXRpb24pCiAgICAgICAgcHJvY2Vzc2VkX29icyA9IG5wLmFycmF5KAogICAgICAgICAgICBwcm9jZXNzZWRfb2JzLCBkdHlwZT1ucC5mbG9hdDMyKS5yZXNoYXBlKDEsIC0xKQogICAgICAgIHByZWRpY3RlZF9yaG8gPSBzZWxmLmZsdWlkX2V4ZWN1dG9yLnJ1bigKICAgICAgICAgICAgc2VsZi5wcmVkaWN0X3Byb2dyYW0sCiAgICAgICAgICAgIGZlZWQ9eydvYnMnOiBwcm9jZXNzZWRfb2JzfSwKICAgICAgICAgICAgZmV0Y2hfbGlzdD1bc2VsZi5wcmVkaWN0ZWRfcmhvXSlbMF0ucmVzaGFwZSgtMSkKICAgICAgICByZXR1cm4gcHJlZGljdGVkX3JobwoKICAgIGRlZiByZXN0b3JlKHNlbGYsIHNhdmVfcGF0aCwgZmlsZW5hbWUpOgogICAgICAgIGZsdWlkLmlvLmxvYWRfcGFyYW1zKHNlbGYuZmx1aWRfZXhlY3V0b3IsIHNhdmVfcGF0aCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLnByZWRpY3RfcHJvZ3JhbSwgZmlsZW5hbWUpCjx8ZmltX3N1ZmZpeHw+CiAgICAgICAgICAgIHNlbGYucHJlZGljdF9wcm9ncmFtLAogICAgICAgICAgICBmZWVkPXsnb2JzJzogcHJvY2Vzc2VkX29ic30sCiAgICAgICAgICAgIGZldGNoX2xpc3Q9W3NlbGYucHJlZGljdGVkX3Job10pWzBdLnJlc2hhcGUoLTEpCjx8ZmltX2VuZHw+ |
af2959300bd3cb04578bb78f134189f29a9058eb-3 | af2959300bd3cb04578bb78f134189f29a9058eb | P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cHJvZ3JhbShzZWxmKToKICAgICAgICBzZWxmLnByZWRpY3RfcHJvZ3JhbSA9IGZsdWlkLlByb2dyYW0oKQogICAgICAgIHdpdGggZmx1aWQucHJvZ3JhbV9ndWFyZChzZWxmLnByZWRpY3RfcHJvZ3JhbSk6CiAgICAgICAgICAgIG9icyA9IGxheWVycy5kYXRhKG5hbWU9J29icycsIHNoYXBlPVs2MzZdLCBkdHlwZT0nZmxvYXQzMicpCjx8ZmltX2VuZHw+ |
05435b1d91bf75c0e28bda7d29d46f9287b46515-1 | 05435b1d91bf75c0e28bda7d29d46f9287b46515 | PHxmaW1fcHJlZml4fD4KZnJvbSBzZXR1cHRvb2xzIGltcG9ydCBzZXR1cAppbXBvcnQgdmVyc2lvbmVlcgoKc2V0dXAoCiAgICBuYW1lPSdjb25kYS1idWlsZC13aGVlbCcsCiAgICB2ZXJzaW9uPXZlcnNpb25lZXIuZ2V0X3ZlcnNpb24oKSwKICAgIGNtZGNsYXNzPXZlcnNpb25lZXIuZ2V0X2NtZGNsYXNzKCksCiAgICBkZXNjcmlwdGlvbj0nQnVpbGQgYSB3aGVlbCBmcm9tIGEgY29uZGEgKGxpa2UpIHJlY2lwZS4nLAogICAgYXV0aG9yPSdKYW4gU2NodWx6JywKICAgIGF1dGhvcl9lbWFpbD0namFzY0BnbXgubmV0JywKICAgIHVybD0naHR0cHM6Ly9naXRodWIuY29tL2phbnNjaHVsei9jb25kYS1idWlsZC13aGVlbCcsCjx8ZmltX2hvbGV8PgogICAgICAgICAgICAjIFRoaXMgaXMgbmVlZGVkIGFzIGNvbmRhIGNhbid0IGRlYWwgd2l0aCBkYXNoZXMgaW4gc3ViY29tbWFuZHMgeWV0CiAgICAgICAgICAgICMgKHNlZSBodHRwczovL2dpdGh1Yi5jb20vY29uZGEvY29uZGEvcHVsbC8xODQwKS4KICAgICAgICAgICAgJ2NvbmRhLWJ1aWxkd2hlZWwgPSBjb25kYV9idWlsZF93aGVlbC5jbGk6bWFpbicsCiAgICAgICAgXQogICAgfSwgKQo8fGZpbV9zdWZmaXh8PgogICAgcGFja2FnZXM9Wydjb25kYV9idWlsZF93aGVlbCddLAogICAgZW50cnlfcG9pbnRzPXsKICAgICAgICAnY29uc29sZV9zY3JpcHRzJzogWwogICAgICAgICAgICAnY29uZGEtYnVpbGQtd2hlZWwgPSBjb25kYV9idWlsZF93aGVlbC5jbGk6bWFpbicsCjx8ZmltX2VuZHw+ |
05435b1d91bf75c0e28bda7d29d46f9287b46515-2 | 05435b1d91bf75c0e28bda7d29d46f9287b46515 | PHxmaW1fcHJlZml4fD4KZnJvbSBzZXR1cHRvb2xzIGltcG9ydCBzZXR1cAppbXBvcnQgdmVyc2lvbmVlcgo8fGZpbV9ob2xlfD4KICAgIGNtZGNsYXNzPXZlcnNpb25lZXIuZ2V0X2NtZGNsYXNzKCksCiAgICBkZXNjcmlwdGlvbj0nQnVpbGQgYSB3aGVlbCBmcm9tIGEgY29uZGEgKGxpa2UpIHJlY2lwZS4nLAogICAgYXV0aG9yPSdKYW4gU2NodWx6JywKICAgIGF1dGhvcl9lbWFpbD0namFzY0BnbXgubmV0JywKICAgIHVybD0naHR0cHM6Ly9naXRodWIuY29tL2phbnNjaHVsei9jb25kYS1idWlsZC13aGVlbCcsCiAgICBwYWNrYWdlcz1bJ2NvbmRhX2J1aWxkX3doZWVsJ10sCiAgICBlbnRyeV9wb2ludHM9ewogICAgICAgICdjb25zb2xlX3NjcmlwdHMnOiBbCiAgICAgICAgICAgICdjb25kYS1idWlsZC13aGVlbCA9IGNvbmRhX2J1aWxkX3doZWVsLmNsaTptYWluJywKICAgICAgICAgICAgIyBUaGlzIGlzIG5lZWRlZCBhcyBjb25kYSBjYW4ndCBkZWFsIHdpdGggZGFzaGVzIGluIHN1YmNvbW1hbmRzIHlldAogICAgICAgICAgICAjIChzZWUgaHR0cHM6Ly9naXRodWIuY29tL2NvbmRhL2NvbmRhL3B1bGwvMTg0MCkuCiAgICAgICAgICAgICdjb25kYS1idWlsZHdoZWVsID0gY29uZGFfYnVpbGRfd2hlZWwuY2xpOm1haW4nLAogICAgICAgIF0KICAgIH0sICkKPHxmaW1fc3VmZml4fD4KCnNldHVwKAogICAgbmFtZT0nY29uZGEtYnVpbGQtd2hlZWwnLAogICAgdmVyc2lvbj12ZXJzaW9uZWVyLmdldF92ZXJzaW9uKCksCjx8ZmltX2VuZHw+ |
05435b1d91bf75c0e28bda7d29d46f9287b46515-3 | 05435b1d91bf75c0e28bda7d29d46f9287b46515 | PHxmaW1fcHJlZml4fD4KZnJvbSBzZXR1cHRvb2xzIGltcG9ydCBzZXR1cAppbXBvcnQgdmVyc2lvbmVlcgoKc2V0dXAoCiAgICBuYW1lPSdjb25kYS1idWlsZC13aGVlbCcsCiAgICB2ZXJzaW9uPXZlcnNpb25lZXIuZ2V0X3ZlcnNpb24oKSwKICAgIGNtZGNsYXNzPXZlcnNpb25lZXIuZ2V0X2NtZGNsYXNzKCksCiAgICBkZXNjcmlwdGlvbj0nQnVpbGQgYSB3aGVlbCBmcm9tIGEgY29uZGEgKGxpa2UpIHJlY2lwZS4nLAogICAgYXV0aG9yPSdKYW4gU2NodWx6JywKICAgIGF1dGhvcl9lbWFpbD0namFzY0BnbXgubmV0JywKICAgIHVybD0naHR0cHM6Ly9naXRodWIuY29tL2phbnNjaHVsei9jb25kYS1idWlsZC13aGVlbCcsCiAgICBwYWNrYWdlcz1bJ2NvbmRhX2J1aWxkX3doZWVsJ10sCiAgICBlbnRyeV9wb2ludHM9ewo8fGZpbV9ob2xlfD4KICAgICAgICAgICAgJ2NvbmRhLWJ1aWxkd2hlZWwgPSBjb25kYV9idWlsZF93aGVlbC5jbGk6bWFpbicsCiAgICAgICAgXQogICAgfSwgKQo8fGZpbV9zdWZmaXh8PgogICAgICAgICdjb25zb2xlX3NjcmlwdHMnOiBbCiAgICAgICAgICAgICdjb25kYS1idWlsZC13aGVlbCA9IGNvbmRhX2J1aWxkX3doZWVsLmNsaTptYWluJywKICAgICAgICAgICAgIyBUaGlzIGlzIG5lZWRlZCBhcyBjb25kYSBjYW4ndCBkZWFsIHdpdGggZGFzaGVzIGluIHN1YmNvbW1hbmRzIHlldAogICAgICAgICAgICAjIChzZWUgaHR0cHM6Ly9naXRodWIuY29tL2NvbmRhL2NvbmRhL3B1bGwvMTg0MCkuCjx8ZmltX2VuZHw+ |
b1d907f90e5992acd308c904a337e73acd98e091-1 | b1d907f90e5992acd308c904a337e73acd98e091 | PHxmaW1fcHJlZml4fD4KZnJvbSB0cml2aWFfZ2VuZXJhdG9yLndlYl9zY3JhcGVyIGltcG9ydCBXZWJTY3JhcGVyCmZyb20gdHJpdmlhX2dlbmVyYXRvciBpbXBvcnQgTkxQUHJlUHJvY2Vzc29yCmZyb20gdHJpdmlhX2dlbmVyYXRvciBpbXBvcnQgVFVuaXQKCiMgVE9ETyBtYWtlIGFjdHVhbCB1bml0IHRlc3RzIGZvciBOTFBQcmVQcm9jZXNzb3IKCnByaW50KCdHZXR0aW5nIEFydGljbGUgb2JqZWN0Li4uJykKYXJ0aWNsZSA9IFdlYlNjcmFwZXIuZ2V0X3BhZ2VfYnlfcmFuZG9tKCkKPHxmaW1faG9sZXw+CnByaW50KCdUVW5pdHMgd3JpdHRlbiB0byBUU1YgZmlsZS4nKQo8fGZpbV9zdWZmaXh8PgpwcmludCgnQ3JlYXRpbmcgVFVuaXRzLi4uJykKdHVuaXRzID0gTkxQUHJlUHJvY2Vzc29yLmNyZWF0ZV9UVW5pdHMoYXJ0aWNsZSkKcHJpbnQoJ1JldHJpZXZlZCcsIGxlbih0dW5pdHMpLCAnVFVuaXRzIGZyb20gYXJ0aWNsZS4nKQpUVW5pdC50dW5pdF9saXN0X3RvX3Rzdih0dW5pdHMpCjx8ZmltX2VuZHw+ |
b1d907f90e5992acd308c904a337e73acd98e091-2 | b1d907f90e5992acd308c904a337e73acd98e091 | PHxmaW1fcHJlZml4fD4KZnJvbSB0cml2aWFfZ2VuZXJhdG9yLndlYl9zY3JhcGVyIGltcG9ydCBXZWJT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yBhbHJlYWR5IGluIGxpc3QuIikKICAgICAgICAgICAgcHJpbnQoIlRvIHZvdGUgZm9yIHRoaXMgdHlwZSAnLnVwICVkJyIgJWluZGV4KQogICAgICAgICAgICByZXR1cm4gVHJ1ZQogICAgcmV0dXJuIEZhbHNlCmRlZiBzYXZlX2RiKGYsZGIpOgogICAgd2l0aCBvcGVuKGYsInciKSBhcyB4OgogICAgICAgIGpzb24uZHVtcChkYix4KQoKZGVmIHNvcnRfYnlfdm90ZXMoZGIpOgogICAgcmV0dXJuIHNvcnRlZChkYixrZXk9bGFtYmRhIGVudHJ5OnN1bShlbnRyeVsndm90ZXMnXS52YWx1ZXMoKSkscmV2ZXJzZT1UcnVlKQo8fGZpbV9zdWZmaXh8PgogICAgICAgIHJldHVybiBbXQoKPHxmaW1fZW5kfD4= |
595ab269be72e1ac4f4b00e9a9fc71eac7a06f8a-2 | 595ab269be72e1ac4f4b00e9a9fc71eac7a06f8a | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCmltcG9ydCBqc29uCjx8ZmltX2hvbGV8PgogICAgZXhjZXB0OgogICAgICAgICNkZWZhdWx0IGRiIGlzIFtdCiAgICAgICAgcmV0dXJuIFtdCgpkZWYgdGl0bGVfaW5fZGIodCxkKToKICAgIGZvciBpbmRleCxlbnRyeSBpbiBlbnVtZXJhdGUoZCk6CiAgICAgICAgaWYgdCA9PSBlbnRyeVsndGl0bGUnXToKICAgICAgICAgICAgcHJpbnQoIlRpdGxlIGlzIGFscmVhZHkgaW4gbGlzdC4iKQogICAgICAgICAgICBwcmludCgiVG8gdm90ZSBmb3IgdGhpcyB0eXBlICcudXAgJWQnIiAlaW5kZXgpCiAgICAgICAgICAgIHJldHVybiBUcnVlCiAgICByZXR1cm4gRmFsc2UKZGVmIHNhdmVfZGIoZixkYik6CiAgICB3aXRoIG9wZW4oZiwidyIpIGFzIHg6CiAgICAgICAganNvbi5kdW1wKGRiLHgpCgpkZWYgc29ydF9ieV92b3RlcyhkYik6CiAgICByZXR1cm4gc29ydGVkKGRiLGtleT1sYW1iZGEgZW50cnk6c3VtKGVudHJ5Wyd2b3RlcyddLnZhbHVlcygpKSxyZXZlcnNlPVRydWUpCjx8ZmltX3N1ZmZpeHw+CmRlZiBsb2FkX2RiKGYpOgogICAgdHJ5OgogICAgICAgIHdpdGggb3BlbihmKSBhcyBmbDoKICAgICAgICAgICAgcmV0dXJuIGpzb24ubG9hZChmbCkKPHxmaW1fZW5kfD4= |
595ab269be72e1ac4f4b00e9a9fc71eac7a06f8a-3 | 595ab269be72e1ac4f4b00e9a9fc71eac7a06f8a | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCmltcG9ydCBqc29uCmRlZiBsb2FkX2RiKGYpOgogICAgdHJ5OgogICAgICAgIHdpdGggb3BlbihmKSBhcyBmbDoKICAgICAgICAgICAgcmV0dXJuIGpzb24ubG9hZChmbCkKICAgIGV4Y2VwdDoKICAgICAgICAjZGVmYXVsdCBkYiBpcyBbXQogICAgICAgIHJldHVybiBbXQoKZGVmIHRpdGxlX2luX2RiKHQsZCk6CiAgICBmb3IgaW5kZXgsZW50cnkgaW4gZW51bWVyYXRlKGQpOgogICAgICAgIGlmIHQgPT0gZW50cnlbJ3RpdGxlJ106Cjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KICAgICAgICAgICAgcHJpbnQoIlRpdGxlIGlzIGFscmVhZHkgaW4gbGlzdC4iKQogICAgICAgICAgICBwcmludCgiVG8gdm90ZSBmb3IgdGhpcyB0eXBlICcudXAgJWQnIiAlaW5kZXgpCiAgICAgICAgICAgIHJldHVybiBUcnVlCjx8ZmltX2VuZHw+ |
595ab269be72e1ac4f4b00e9a9fc71eac7a06f8a-4 | 595ab269be72e1ac4f4b00e9a9fc71eac7a06f8a | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCmltcG9ydCBqc29uCmRlZiBsb2FkX2RiKGYpOgogICAgdHJ5OgogICAgICAgIHdpdGggb3BlbihmKSBhcyBmbDoKICAgICAgICAgICAgcmV0dXJuIGpzb24ubG9hZChmbCkKICAgIGV4Y2VwdDoKICAgICAgICAjZGVmYXVsdCBkYiBpcyBbXQogICAgICAgIHJldHVybiBbXQoKZGVmIHRpdGxlX2luX2RiKHQsZCk6CiAgICBmb3IgaW5kZXgsZW50cnkgaW4gZW51bWVyYXRlKGQpOgogICAgICAgIGlmIHQgPT0gZW50cnlbJ3RpdGxlJ106Cjx8ZmltX2hvbGV8PgogICAgcmV0dXJuIEZhbHNlCmRlZiBzYXZlX2RiKGYsZGIpOgogICAgd2l0aCBvcGVuKGYsInciKSBhcyB4OgogICAgICAgIGpzb24uZHVtcChkYix4KQoKZGVmIHNvcnRfYnlfdm90ZXMoZGIpOgogICAgcmV0dXJuIHNvcnRlZChkYixrZXk9bGFtYmRhIGVudHJ5OnN1bShlbnRyeVsndm90ZXMnXS52YWx1ZXMoKSkscmV2ZXJzZT1UcnVlKQo8fGZpbV9zdWZmaXh8PgogICAgICAgICAgICBwcmludCgiVGl0bGUgaXMgYWxyZWFkeSBpbiBsaXN0LiIpCiAgICAgICAgICAgIHByaW50KCJUbyB2b3RlIGZvciB0aGlzIHR5cGUgJy51cCAlZCciICVpbmRleCkKICAgICAgICAgICAgcmV0dXJuIFRydWUKPHxmaW1fZW5kfD4= |
598864867d80b2817b0291428a90348bfed27680-1 | 598864867d80b2817b0291428a90348bfed27680 | PHxmaW1fcHJlZml4fD4KcHJpbnQoIkhlbGxvIFdvcmxkICEiKQpwcmludCgiSSBhbSBBa3NoYXQgQWdhcndhbCIpCnByaW50KCJJIGFtIEZyb20gIEdoYXppYWJhZCwgRGVsaGkgTkNSIikKcHJpbnQoIkkgYW0gSUlUIElTTSBEaGFuYmFkIGFuZCBpbiAybmQgeWVhciBvZiBCdGVjaCBvZiBFbnZpcm9ubWVudGFsIEVuZ2luZWVyaW5nLiIpCnByaW50KCJFbWFpbCBJRCA6IGFrc2hhdEAyNzExMDJAZ21haWwuY29tIikKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgpwcmludCgiR2l0aHViIDogYWtzaGF0eCIpCgo8fGZpbV9lbmR8Pg== |
598864867d80b2817b0291428a90348bfed27680-2 | 598864867d80b2817b0291428a90348bfed27680 | PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KcHJpbnQoIkhlbGxvIFdvcmxkICEiKQpwcmludCgiSSBhbSBBa3NoYXQgQWdhcndhbCIpCnByaW50KCJJIGFtIEZyb20gIEdoYXppYWJhZCwgRGVsaGkgTkNSIikKcHJpbnQoIkkgYW0gSUlUIElTTSBEaGFuYmFkIGFuZCBpbiAybmQgeWVhciBvZiBCdGVjaCBvZiBFbnZpcm9ubWVudGFsIEVuZ2luZWVyaW5nLiIpCjx8ZmltX2VuZHw+ |
598864867d80b2817b0291428a90348bfed27680-3 | 598864867d80b2817b0291428a90348bfed27680 | PHxmaW1fcHJlZml4fD4KcHJpbnQoIkhlbGxvIFdvcmxkICEiKQpwcmludCgiSSBhbSBBa3NoYXQgQWdhcndhbCIpCnByaW50KCJJIGFtIEZyb20gIEdoYXppYWJhZCwgRGVsaGkgTkNSIikKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgpwcmludCgiSSBhbSBJSVQgSVNNIERoYW5iYWQgYW5kIGluIDJuZCB5ZWFyIG9mIEJ0ZWNoIG9mIEVudmlyb25tZW50YWwgRW5naW5lZXJpbmcuIikKcHJpbnQoIkVtYWlsIElEIDogYWtzaGF0QDI3MTEwMkBnbWFpbC5jb20iKQpwcmludCgiR2l0aHViIDogYWtzaGF0eCIpCgo8fGZpbV9lbmR8Pg== |
055f1dcf15e779d94d65e3e0e29b816b0070ee49-1 | 055f1dcf15e779d94d65e3e0e29b816b0070ee49 | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMjIyMjI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YWdlIGluIG9zLmxpc3RkaXIob3MuZ2V0Y3dkKCkpOgogICAgICAgICMgb3BlbiB0aGUgaW1hZ2UKICAgICAgICBwcmludChpbWFnZSkKICAgICAgICBpZiBpbWFnZS5lbmRzd2l0aCgiLnB5Iik6CiAgICAgICAgICAgIGNvbnRpbnVlCiAgICAgICAgaW1nID0gY3YyLmltcmVhZChpbWFnZSkKICAgICAgICAjIHJvdGF0ZSBhbmQgc2F2ZSB0aGUgaW1hZ2Ugd2l0aCB0aGUgc2FtZSBmaWxlbmFtZQogICAgICAgIHJvdGF0ZWQgPSBpbXV0aWxzLnJvdGF0ZV9ib3VuZChpbWcsIHJvdGF0aW9uQW10KQogICAgICAgICMgY2xvc2UgdGhlIGltYWdlCiAgICAgICAgbmFtZSA9IGYiX3tyb3RhdGlvbkFtdH0ucG5nIgogICAgICAgIGN2Mi5pbXdyaXRlKGltYWdlK25hbWUsIHJvdGF0ZWQpCgppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgogICAgcGFyc2VyID0gYXJncGFyc2UuQXJndW1lbnRQYXJzZXIoCiAgICAgICAgZGVzY3JpcHRpb249IlB5dGhvIFNjcmlwdCB0byByb3RhdGUgYWxsIGltYWdlcyBpbiBnaXZlbiBkaXJlY3RvcnkgYnkgc3BlY2lmaWVkIGFuZ2xlIgogICAgKQo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CgogICAgcGFyc2VyLmFkZF9hcmd1bWVudCgKICAgICAgICAiLWEiLAogICAgICAgICItLWFuZ2xlIiwKPHxmaW1fZW5kfD4= |
af6e9112cc125f666fee10eeb969930baf1cce4f-2 | af6e9112cc125f666fee10eeb969930baf1cce4f | PHxmaW1fcHJlZml4fD4KaW1wb3J0IGN2MgppbXBvcnQgaW11dGlscwoKaW1wb3J0IGFyZ3BhcnNlCmltcG9ydCBvcwoKCmRlZiByb3RhdGVJbWFnZXMocm90YXRpb25BbXQpOgogICAgIyBmb3IgZWFjaCBpbWFnZSBpbiB0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ICAgIHByaW50KGltYWdlKQogICAgICAgIGlmIGltYWdlLmVuZHN3aXRoKCIucHkiKToKICAgICAgICAgICAgY29udGludWUKPHxmaW1fZW5kfD4= |
af6e9112cc125f666fee10eeb969930baf1cce4f-3 | af6e9112cc125f666fee10eeb969930baf1cce4f | PHxmaW1fcHJlZml4fD4KaW1wb3J0IGN2MgppbXBvcnQgaW11dGlscwoKaW1wb3J0IGFyZ3BhcnNlCmltcG9ydCBvcwoKCmRlZiByb3RhdGVJbWFnZXMocm90YXRpb25BbXQpOgogICAgIyBmb3IgZWFjaCBpbWFnZSBpbiB0aGUgY3VycmVudCBkaXJlY3RvcnkKICAgIHByaW50KHJvdGF0aW9uQW10KQogICAgZm9yIGltYWdlIGluIG9zLmxpc3RkaXIob3MuZ2V0Y3dkKCkpOgogICAgICAgICMgb3BlbiB0aGUgaW1hZ2UKICAgICAgICBwcmludChpbWFnZSkKICAgICAgICBpZiBpbWFnZS5lbmRzd2l0aCgiLnB5Iik6CiAgICAgICAgICAgIGNvbnRpbnVlCiAgICAgICAgaW1nID0gY3YyLmltcmVhZChpbWFnZSkKICAgICAgICAjIHJvdGF0ZSBhbmQgc2F2ZSB0aGUgaW1hZ2Ugd2l0aCB0aGUgc2FtZSBmaWxlbmFtZQogICAgICAgIHJvdGF0ZWQgPSBpbXV0aWxzLnJvdGF0ZV9ib3VuZChpbWcsIHJvdGF0aW9uQW10KQogICAgICAgICMgY2xvc2UgdGhlIGltYWdlCiAgICAgICAgbmFtZSA9IGYiX3tyb3RhdGlvbkFtdH0ucG5nIgogICAgICAgIGN2Mi5pbXdyaXRlKGltYWdlK25hbWUsIHJvdGF0ZWQpCgppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgogICAgcGFyc2VyID0gYXJncGFyc2UuQXJndW1lbnRQYXJzZXIoCiAgICAgICAgZGVzY3JpcHRpb249IlB5dGhvIFNjcmlwdCB0byByb3RhdGUgYWxsIGltYWdlcyBpbiBnaXZlbiBkaXJlY3RvcnkgYnkgc3BlY2lmaWVkIGFuZ2xlIgo8fGZpbV9ob2xlfD4KICAgICAgICAiLS1hbmdsZSIsCiAgICAgICAgaGVscD0iQW5nbGUgb2Ygcm90YXRpb24iLAogICAgICAgIHJlcXVpcmVkPVRydWUsCiAgICAgICAgZGVzdD0iYW5nbGUiLAogICAgKQoKICAgIGFyZ3MgPSBwYXJzZXIucGFyc2VfYXJncygpCgogICAgcm90YXRpb25fYW5nbGUgPSBpbnQoYXJncy5hbmdsZSkKICAgIHByaW50KHJvdGF0aW9uX2FuZ2xlKQogICAgcm90YXRlSW1hZ2VzKHJvdGF0aW9uX2FuZ2xlKQo8fGZpbV9zdWZmaXh8PgogICAgKQoKICAgIHBhcnNlci5hZGRfYXJndW1lbnQoCiAgICAgICAgIi1hIiwKPHxmaW1fZW5kfD4= |
af6e9112cc125f666fee10eeb969930baf1cce4f-4 | af6e9112cc125f666fee10eeb969930baf1cce4f | PHxmaW1fcHJlZml4fD4KaW1wb3J0IGN2MgppbXBvcnQgaW11dGlscwoKaW1wb3J0IGFyZ3BhcnNlCmltcG9ydCBvcwoKCmRlZiByb3RhdGVJbWFnZXMocm90YXRpb25BbXQpOgogICAgIyBmb3IgZWFjaCBpbWFnZSBpbiB0aGUgY3VycmVudCBkaXJlY3RvcnkKICAgIHByaW50KHJvdGF0aW9uQW10KQogICAgZm9yIGltYWdlIGluIG9zLmxpc3RkaXIob3MuZ2V0Y3dkKCkpOgogICAgICAgICMgb3BlbiB0aGUgaW1hZ2UKICAgICAgICBwcmludChpbWFnZSkKICAgICAgICBpZiBpbWFnZS5lbmRzd2l0aCgiLnB5Iik6CiAgICAgICAgICAgIGNvbnRpbnVlCiAgICAgICAgaW1nID0gY3YyLmltcmVhZChpbWFnZSkKICAgICAgICAjIHJvdGF0ZSBhbmQgc2F2ZSB0aGUgaW1hZ2Ugd2l0aCB0aGUgc2FtZSBmaWxlbmFtZQogICAgICAgIHJvdGF0ZWQgPSBpbXV0aWxzLnJvdGF0ZV9ib3VuZChpbWcsIHJvdGF0aW9uQW10KQogICAgICAgICMgY2xvc2UgdGhlIGltYWdlCiAgICAgICAgbmFtZSA9IGYiX3tyb3RhdGlvbkFtdH0ucG5nIgogICAgICAgIGN2Mi5pbXdyaXRlKGltYWdlK25hbWUsIHJvdGF0ZWQpCgppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgogICAgcGFyc2VyID0gYXJncGFyc2UuQXJndW1lbnRQYXJzZXIoCiAgICAgICAgZGVzY3JpcHRpb249IlB5dGhvIFNjcmlwdCB0byByb3RhdGUgYWxsIGltYWdlcyBpbiBnaXZlbiBkaXJlY3RvcnkgYnkgc3BlY2lmaWVkIGFuZ2xlIgogICAgKQoKICAgIHBhcnNlci5hZGRfYXJndW1lbnQoCiAgICAgICAgIi1hIiwKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgICAgICItLWFuZ2xlIiwKICAgICAgICBoZWxwPSJBbmdsZSBvZiByb3RhdGlvbiIsCiAgICAgICAgcmVxdWlyZWQ9VHJ1ZSwKICAgICAgICBkZXN0PSJhbmdsZSIsCjx8ZmltX2VuZHw+ |
abca12da854515506befa0d5e4ae1bcc70b51a21-1 | abca12da854515506befa0d5e4ae1bcc70b51a21 | PHxmaW1fcHJlZml4fD4KaW1wb3J0IGNvcHkKCmZyb20gbWFuaW1saWIuY29uc3RhbnRzIGltcG9ydCAqCmZyb20gbWFuaW1saWIubW9iamVjdC5tb2JqZWN0IGltcG9ydCBNb2JqZWN0CmZyb20gbWFuaW1saWIudXRpbHMuY29uZmlnX29wcyBpbXBvcnQgZGlnZXN0X2NvbmZpZwoKCmNsYXNzIENvbnRpbnVhbEFuaW1hdGlvbihvYmplY3QpOgogICAgQ09ORklHID0gewogICAgICAgICJzdGFydF91cF90aW1lIjogMSwKICAgICAgICAid2luZF9kb3duX3RpbWUiOiAxLAogICAgICAgICJlbmRfdGltZSI6IG5wLmluZiwKICAgIH0KCiAgICBkZWYgX19pbml0X18oc2VsZiwgb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VsZi53aW5kX2Rvd25fdGltZSwKICAgICAgICAgICAgICAgIDAsIDEKICAgICAgICAgICAgKQogICAgICAgIHNlbGYuaW50ZXJuYWxfdGltZSArPSBkdAogICAgICAgIHNlbGYudXBkYXRlX21vYmplY3QoZHQpCgogICAgZGVmIHVwZGF0ZV9tb2JqZWN0KHNlbGYsIGR0KToKICAgICAgICAjIFRvIGltcGxlbWVudCBpbiBzdWJjbGFzcwogICAgICAgIHBhc3MKCiAgICBkZWYgY29weShzZWxmKToKICAgICAgICByZXR1cm4gY29weS5kZWVwY29weShzZWxmKQo8fGZpbV9zdWZmaXh8PgogICAgICAgICMgdW53YW50ZWQgY29uc2VxdWVuY2VzPwogICAgICAgIHNlbGYuZXh0ZXJuYWxfdGltZSArPSBkdAogICAgICAgIGlmIHNlbGYuZXh0ZXJuYWxfdGltZSA8IHNlbGYuc3RhcnRfdXBfdGltZToKICAgICAgICAgICAgZHQgKj0gZmxvYXQoc2VsZi5leHRlcm5hbF90aW1lKSAvIHNlbGYuc3RhcnRfdXBfdGltZQo8fGZpbV9lbmR8Pg== |
af2ad1b888d6a703758f1100d19dda2cf0c547c1-1 | af2ad1b888d6a703758f1100d19dda2cf0c547c1 | PHxmaW1fcHJlZml4fD4KZGVmIGZpbmQodHBsLGl0ZW0pOgo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICBpZiBpdGVtIGluIHRwbDoKICAgICAgICBwcmludCgiRm91bmQiKQogICAgZWxzZToKICAgICAgICBwcmludCgiTm90IGZvdW5kIikKPHxmaW1fZW5kfD4= |
af2ad1b888d6a703758f1100d19dda2cf0c547c1-2 | af2ad1b888d6a703758f1100d19dda2cf0c547c1 | PHxmaW1fcHJlZml4fD4KZGVmIGZpbmQodHBsLGl0ZW0pOgogICAgaWYgaXRlbSBpbiB0cGw6CiAgICAgICAgcHJpbnQoIkZvdW5kIikKICAgIGVsc2U6CiAgICAgICAgcHJpbnQoIk5vdCBmb3VuZCIpCmE9KDEsMiwxMykKZmluZCgoMSwyLDMpLDIpCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KCiMgZm91bmQKPHxmaW1fZW5kfD4= |
af2ad1b888d6a703758f1100d19dda2cf0c547c1-3 | af2ad1b888d6a703758f1100d19dda2cf0c547c1 | PHxmaW1fcHJlZml4fD4KZGVmIGZpbmQodHBsLGl0ZW0pOgogICAgaWYgaXRlbSBpbiB0cGw6CiAgICAgICAgcHJpbnQoIkZvdW5kIikKPHxmaW1faG9sZXw+CmE9KDEsMiwxMykKZmluZCgoMSwyLDMpLDIpCgojIGZvdW5kCjx8ZmltX3N1ZmZpeHw+CiAgICBlbHNlOgogICAgICAgIHByaW50KCJOb3QgZm91bmQiKQo8fGZpbV9lbmR8Pg== |
af2ad1b888d6a703758f1100d19dda2cf0c547c1-4 | af2ad1b888d6a703758f1100d19dda2cf0c547c1 | PHxmaW1fcHJlZml4fD4KZGVmIGZpbmQodHBsLGl0ZW0pOgogICAgaWYgaXRlbSBpbiB0cGw6CiAgICAgICAgcHJpbnQoIkZvdW5kIikKICAgIGVsc2U6CiAgICAgICAgcHJpbnQoIk5vdCBmb3VuZCIpCmE9KDEsMiwxMykKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgpmaW5kKCgxLDIsMyksMikKCiMgZm91bmQKPHxmaW1fZW5kfD4= |
3c02c49653b2741c90fba07c28bd1ce8e642bbb7-1 | 3c02c49653b2741c90fba07c28bd1ce8e642bbb7 | PHxmaW1fcHJlZml4fD4KZnJvbSBvcyBpbXBvcnQgbGlzdGRpcgpmcm9tIG9zLnBhdGggaW1wb3J0IGlzZmlsZSwgam9pbgppbXBvcnQgbnVtcHkgYXMgbnAKaW1wb3J0IHRvcmNoCgpmcm9tIGVudiBpbXBvcnQgKgpmcm9tIGltYWdlX3RyZWF0bWVudCBpbXBvcnQgKgoKZGVmIGdldF90cmFpbmluZ19pbWFnZXNfZnJvbV9kaXJlY3RvcmllcyhmYWNlX3BhcnQp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yMl9sMScsICdyMl9sMiddKQogICAgICAgIHNlbGYuYXNzZXJ0RXF1YWwoaWRzMiwgWydyNF9sMScsICdyNF9sMiddKQogICAgICAgIHB4bWwuYWRkVG9Hcm91cChncm91cDEsIChncm91cDIsKSkKPHxmaW1fZW5kfD4= |
59e09a7e08448ba7b6431f0c7994cf80ca7bb486-3 | 59e09a7e08448ba7b6431f0c7994cf80ca7bb486 | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KCmltcG9ydCB1bml0dGVzdAppbXBvcnQgb3MKaW1wb3J0IHBhZ2V4bWwKPHxmaW1fZW5kfD4= |
595592d674856e00c55016d74c2d6b59bf066e95-1 | 595592d674856e00c55016d74c2d6b59bf066e95 | PHxmaW1fcHJlZml4fD4KIiIiCkNvbnRpZW50IGRpdmVyc2VzIGZvbmN0aW9ucyB1dGlsaXRhaXJlcwphdXRldXIgOiBjbWFyaWNoYWwKIiIiCgpmcm9tIHR5cGluZyBpbXBvcnQgVHVwbGUKZnJvbSBudW1weSBpbXBvcnQgYW5nbGUKCgpkZWYgYW5nbGVfc29tbWV0cyhzMTogVHVwbGVbaW50LCBpbnRdLCBzMjogVHVwbGVbaW50LCBpbnRdKSAtPiBmbG9hdDoKICAgICIiImNhbGN1bGUgbCdhcmd1bWVudCBkZSBsJ2FmZml4ZSBkdSB2ZWN0ZXVyIGFzc29jacOpIMOgIDIgc29tbWV0cyIiIgo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICBjb21wID0gY29tcGxleChzMlsxXSAtIHMxWzFdLCBzMlswXSAtIHMxWzBdKQogICAgcmV0dXJuIGFuZ2xlKGNvbXApCgoKPHxmaW1fZW5kfD4= |
595592d674856e00c55016d74c2d6b59bf066e95-2 | 595592d674856e00c55016d74c2d6b59bf066e95 | PHxmaW1fcHJlZml4fD4KIiIiCkNvbnRpZW50IGRpdmVyc2VzIGZvbmN0aW9ucyB1dGlsaXRhaXJlcwphdXRldXIgOiBjbWFyaWNoYWwKIiIiCgpmcm9tIHR5cGluZyBpbXBvcnQgVHVwbGUKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8Pgpmcm9tIG51bXB5IGltcG9ydCBhbmdsZQoKCmRlZiBhbmdsZV9zb21tZXRzKHMxOiBUdXBsZVtpbnQsIGludF0sIHMyOiBUdXBsZVtpbnQsIGludF0pIC0+IGZsb2F0Ogo8fGZpbV9lbmR8Pg== |
595592d674856e00c55016d74c2d6b59bf066e95-3 | 595592d674856e00c55016d74c2d6b59bf066e95 | PHxmaW1fcHJlZml4fD4KIiIiCkNvbnRpZW50IGRpdmVyc2VzIGZvbmN0aW9ucyB1dGlsaXRhaXJlcwphdXRldXIgOiBjbWFyaWNoYWwKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgoiIiIKCmZyb20gdHlwaW5nIGltcG9ydCBUdXBsZQpmcm9tIG51bXB5IGltcG9ydCBhbmdsZQo8fGZpbV9lbmR8Pg== |
abf736e52bf380e389d719530b473b5bf9d336c7-1 | abf736e52bf380e389d719530b473b5bf9d336c7 | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgLSotIGNvZGluZzogdXRmLTggLSotCmltcG9ydCBzcWxpdGUzCmltcG9ydCB0aW1lCmZyb20gZGF0ZXRpbWUgaW1wb3J0IGRhdGV0aW1lCmZyb20gZGV2aWNlX2RiX21hcHBpbmcgaW1wb3J0IGRldmljZV9kYl9tYXBwaW5nCmZyb20gZGF0YXNldF9jb250YWluZXIgaW1wb3J0IERhdGFzZXRDb250YWluZXIKCmNsYXNzIFJlc3VsdEl0ZXJhdG9yOgogICAgIiIiQSBjbGFzcyB1c2VkIHRvIGl0ZXJhdGUgb3ZlciBzcWxpdGUzIGN1cnNvciByZXN1bHRzIGluIGEgZm9yIGxvb3AuIiIiCiAgICAKICAgIGRlZiBfX2luaXRfXyhzZWxmLCBjdXJzb3IpOgogICAgICAgICIiIkluaXRpYWxpemUgdGhlIGludGVyZmFjZSB3aXRoIGEgY3Vyc29yLgogICAgICAgIAogICAgICAgIFBhcmFtZXRlcnMKICAgICAgICAtLS0tLS0tLS0tCiAgICAgICAgICAgIGN1cnNvciA6IHNxbGl0ZS5DdXJzb3IKICAgICAgICAgICAgICAgIFRoZSBkYXRhYmFzZSBjdXJzb3IgcG9pbnRpbmcgdG8gdGhlIHJlc3VsdHMKICAgICAgICAKICAgICAgICBSZXR1cm5zCiAgICAgICAgLS0tLS0tLQogICAgICAgICAgICBOb25lCiAgICAgICAgIiIiCiAgICAgICAgc2VsZi5fY3Vyc29yID0gY3Vyc29yCgogICAgZGVmIF9faXRlcl9fKHNlbGYpOgogICAgICAgICIiIlJldHVybiBzZWxmIGZvciBpdGVyYXRpb24uCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgIAogICAgICAgIFJldHVybnMKICAgICAgICAtLS0tLS0tCiAgICAgICAgICAgIHNlbGYgOiBSZXN1bHRJdGVyYXRvcgogICAgICAgICAgICAgICAgVGhpcyBpbnN0YW5jZQogICAgICAgICIiIgogICAgICAgIHJldHVybiBzZWxmCiAgICAKICAgIGRlZiBuZXh0KHNlbGYpOgogICAgICAgICIiIkl0ZXJhdGUgb3ZlciB0aGUgY3Vyc29yIHJlc3VsdCBpdGVtcy4KICAgICAgICAKICAgICAgICBQYXJhbWV0ZXJzCiAgICAgICAgLS0tLS0tLS0tLQogICAgICAgICAgICBOb25lCiAgICAgICAgICAgIAogICAgICAgIFJldHVybnMKICAgICAgICAtLS0tLS0tCiAgICAgICAgICAgIGl0ZW0gOiBzZXF1ZW5jZQogICAgICAgICAgICAgICAgT25lIHJvdyBvZiByZXN1bHRzCiAgICAgICAgIiIiCiAgICAgICAgaXRlbSA9IHNlbGYuX2N1cnNvci5mZXRjaG9uZSgpCiAgICAgICAgaWYgbm90IGl0ZW0gaXMgTm9uZToKICAgICAgICAgICAgcmV0dXJuIGl0ZW0KICAgICAgICBlbHNlOgogICAgICAgICAgICByYWlzZSBTdG9wSXRlcmF0aW9uCiAgICAgICAgICAgIAogICAgZGVmIGFsbChzZWxmKToKICAgICAgICAiIiJDb252ZW5pZW5jZSBmdW5jdGlvbiB0byByZXR1cm4gYWxsIHJlc3VsdCBpdGVtcyBhdCBvbmNlLgogICAgICAgIAogICAgICAgIFBhcmFtZXRlcnMKICAgICAgICAtLS0tLS0tLS0tCiAgICAgICAgICAgIE5vbmUKICAgICAgICAKICAgICAgICBSZXR1cm5zCiAgICAgICAgLS0tLS0tLQogICAgICAgICAgICBsaXN0CiAgICAgICAgICAgICAgICBBIGxpc3QgY29udGFpbmluZyBhbGwgcm93cwogICAgICAgICIiIgogICAgICAgIHJldHVybiBzZWxmLl9jdXJzb3IuZmV0Y2hhbGwoKQoKY2xhc3MgR2FkZ2V0YnJpZGdlRGF0YWJhc2U6CiAgICAiIiJQcm92aWRlcyBhIHNpbXBsZSBhYnN0cmFjdGlvbiBsYXllciBhcm91bmQgdGhlIFNxbGl0ZSBEQi4iIiIKICAgIAogICAgZGVmIF9faW5pdF9fKHNlbGYsIGZpbGVuYW1lLCBkZXZpY2UpOgogICAgICAgICIiIkluaXRpYXRlIHRoZSBpbnRlcmZhY2UuIFBhc3MgYSBmaWxlbmFtZSBhbmQgYSBkZXZpY2UgbmFtZS4gVGhlIGRldmljZQogICAgICAgIG5hbWUgaXMgdXNlZCB0byBwdWxsIGRhdGFiYXNlIHRhYmxlIG1hcHBpbmcuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgZmlsZW5hbWUgOiBzdHJpbmcKICAgICAgICAgICAgICAgIFRoZSBuYW1lIG9mIHRoZSBTUUxpdGUgZGF0YWJhc2UgZmlsZSB0byBvcGVuCiAgICAgICAgICAgIGRldmljZSA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIG5hbWUgb2YgdGhlIGRldmljZSB0aGUgZGF0YSBpcyBzdG9yZWQgZm9yLiBUaGlzIHNlbGVjdHMKICAgICAgICAgICAgICAgIHRhYmxlIG1hcHBpbmdzIGZvciB0aGUgZGF0YWJhc2UuCiAgICAgICAgCiAgICAgICAgUmV0dXJucwogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgICIiIgogICAgICAgIHNlbGYuX2RiX2ZpbGVuYW1lID0gZmlsZW5hbWUKICAgICAgICBzZWxmLl9kYiA9IHNxbGl0ZTMuY29ubmVjdChzZWxmLl9kYl9maWxlbmFtZSkKICAgICAgICBzZWxmLl9jdXJzb3IgPSBzZWxmLl9kYi5jdXJzb3IoKQogICAgICAgIHNlbGYucmVzdWx0cyA9IFJlc3VsdEl0ZXJhdG9yKHNlbGYuX2N1cnNvcikKICAgICAgICBzZWxmLl9xdWVyeSgnU0VMRUNUIG5hbWUgRlJPTSBzcWxpdGVfbWFzdGVyIFdIRVJFIHR5cGU9InRhYmxlIjsnKQogICAgICAgIHNlbGYudGFibGVzID0gW3hbMF0gZm9yIHggaW4gc2VsZi5yZXN1bHRzLmFsbCgpXQogICAgICAgIHNlbGYuZGV2aWNlID0gZGV2aWNlCiAgICAgICAgc2VsZi5fZGJfbmFtZXMgPSBkZXZpY2VfZGJfbWFwcGluZ1tzZWxmLmRldmljZV0KICAgICAgICAKICAgIGRlZiBfX2RlbF9fKHNlbGYpOgogICAgICAgICIiIkNsZWFyIHRoZSBjbGFzcyBpbnN0YW5jZS4gVGhpcyBjbG9zZXMgdGhlIGRhdGFiYXNlIGNsZWFubHkuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgIAogICAgICAgIFJldHVybnMKICAgICAgICAtLS0tLS0tCiAgICAgICAgICAgIE5vbmUKICAgICAgICAiIiIKICAgICAgICBzZWxmLl9jdXJzb3IuY2xvc2UoKQogICAgICAgIHNlbGYuX2RiLmNsb3NlKCkKICAgICAgICAKICAgIGRlZiBfcXVlcnkoc2VsZiwgcXVlcnlzdHJpbmcpOgogICAgICAgICIiIkV4ZWN1dGUgYSBxdWVyeSBvbiB0aGUgZGF0YWJhc2UuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgcXVlcnlzdHJpbmcgOiBzdHJpbmcKICAgICAgICAgICAgICAgIFRoZSBTUUxpdGUgcXVlcnkgc3RyaW5nCiAgICAgICAgCiAgICAgICAgUmV0dXJucwogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgICIiIgogICAgICAgIHNlbGYuX2N1cnNvci5leGVjdXRlKHF1ZXJ5c3RyaW5nKQogICAgICAgIAogICAgZGVmIHF1ZXJ5X3RhYmxlaW5mbyhzZWxmLCB0YWJsZV9uYW1lKToKICAgICAgICAiIiJSZXRyaWV2ZSBpbmZvIGFib3V0IGEgdGFibGUgaW4gdGhlIGRhdGFiYXNlLiBSZXR1cm5zIGEgZGljdCAKICAgICAgICBjb250YWluaW5nIHRoZSBlbnRyaWVzOgogICAgICAgICAgICAqIGluZGV4CiAgICAgICAgICAgICogbmFtZQogICAgICAgICAgICAqIHR5cGUKICAgICAgICBmb3IgZWFjaCBvZiB0aGUgY29sdW1ucyBpbiB0aGUgdGFibGUuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgdGFibGVfbmFtZSA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIG5hbWUgb2YgdGhlIHRhYmxlIHRoYXQgdGhlIGxheW91dCBzaG91bGQgYmUgcXVlcmllZCBmb3IuCiAgICAgICAgCiAgICAgICAgUmV0dXJucwogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgICIiIgogICAgICAgIGlmIHRhYmxlX25hbWUgaW4gc2VsZi50YWJsZXM6CiAgICAgICAgICAgIHNlbGYucXVlcnkoJ3ByYWdtYSB0YWJsZV9pbmZvKHt0YWJsZV9uYW1lOnN9KTsnLmZvcm1hdCgKICAgICAgICAgICAgICAgICAgICB0YWJsZV9uYW1lPXRhYmxlX25hbWUpKQogICAgICAgICAgICByZXMgPSB7J25hbWUnOiBbXSwgJ3R5cGUnOiBbXSwgJ2luZGV4JzogW119CiAgICAgICAgICAgIGZvciByb3cgaW4gc2VsZi5yZXN1bHRzOgogICAgICAgICAgICAgICAgcmVzWydpbmRleCddLmFwcGVuZChyb3dbMF0pCiAgICAgICAgICAgICAgICByZXNbJ25hbWUnXS5hcHBlbmQocm93WzFdKQogICAgICAgICAgICAgICAgcmVzWyd0eXBlJ10uYXBwZW5kKHJvd1syXSkKICAgICAgICAgICAgcmV0dXJuIHJlcwogICAgICAgIGVsc2U6CiAgICAgICAgICAgIHJldHVybiBOb25lCgogICAgZGVmIF9idWlsZF9xdWVyeXN0cmluZyhzZWxmLCBkYXRhc2V0LCB0aW1lc3RhbXBfbWluPU5vbmUsIAogICAgICAgICAgICAgICAgICAgICAgICAgICB0aW1lc3RhbXBfbWF4PU5vbmUpOgogICAgICAgICIiIkJ1aWxkIGEgU3FsaXRlIHF1ZXJ5IHRvIHB1bGwgdGhlIGRhdGFzZXQgZnJvbSB0aGUgZGF0YWJhc2UuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgZGF0YXNldCA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIGRhdGFzZXQgdG8gYnVpbGQgYSBxdWVyeSBzdHJpbmcgZm9yLiBNdXN0IGJlIG9uZSBvZiB0aGUgCiAgICAgICAgICAgICAgICBmb2xsb3dpbmc6CiAgICAgICAgICAgICAgICAgICAgKiB0aW1lc3RhbXAKICAgICAgICAgICAgICAgICAgICAqIGhlYXJ0cmF0ZQogICAgICAgICAgICAgICAgICAgICogaW50ZW5zaXR5CiAgICAgICAgICAgICAgICAgICAgKiBhY3Rpdml0eQogICAgICAgICAgICAgICAgICAgICogc3RlcHMKICAgICAgICAgICAgdGltZXN0YW1wX21pbiA6IGRhdGV0aW1lLmRhdGV0aW1lLCBOb25lCiAgICAgICAgICAgICAgICBUaGUgbG93ZXIgbGltaXQgKGluY2x1ZGVkKSB0byByZXR1cm4gZGF0YSBmb3IuIElmIE5vbmUsIG5vIAogICAgICAgICAgICAgICAgbG93ZXIgbGltaXQgd2lsbCBiZSBzZXQuCiAgICAgICAgICAgIHRpbWVzdGFtcF9tYXggOiBkYXRldGltZS5kYXRldGltZSwgTm9uZQogICAgICAgICAgICAgICAgVGhlIHVwcGVyIGxpbWl0IChub3QgaW5jbHVkZWQpIHRvIHJldHVybiBkYXRhIGZvciBJZiBOb25lLCBubwogICAgICAgICAgICAgICAgdXBwZXIgbGltaXQgd2lsbCBiZSBzZXQuCiAgICAgICAgCiAgICAgICAgUmV0dXJucwogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgc3RyaW5nCiAgICAgICAgICAgICAgICBBbiBTUUxpdGUgcXVlcnkgc3RyaW5nIGZvciB0aGUgcmVxdWVzdGVkIGRhdGFzZXQKICAgICAgICAiIiIKICAgICAgICByZXN0cmljdGlvbnMgPSBbXQogICAgICAgIGlmIG5vdCB0aW1lc3RhbXBfbWluIGlzIE5vbmU6CiAgICAgICAgICAgICN2YWwgaXMgdGhlIHN0cmluZyBvZiB0aGUgVW5peCB0aW1lc3RhbXAgb2YgdGhlIGRhdGV0aW1lOgogICAgICAgICAgICB2YWwgPSBzdHIoaW50KHRpbWUubWt0aW1lKHRpbWVzdGFtcF9taW4udGltZXR1cGxlKCkpKSkKICAgICAgICAgICAgcmVzdHJpY3Rpb25zLmFwcGVuZChbc2VsZi5fZGJfbmFtZXNbJ3RpbWVzdGFtcCddLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnPj0nLCB2YWxdKQ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gJyArIG9wZXJhdG9yICsgJyAnXAogICAgICAgICAgICAgICAgKyBsaW1pdAogICAgICAgICAgICBmb3IgZmllbGQsIG9wZXJhdG9yLCBsaW1pdCBpbiByZXN0cmljdGlvbnNbMTpdOgogICAgICAgICAgICAgICAgcXVlcnlfcmVzdHJpY3Rpb25zICs9ICcgQU5EICcgKyBmaWVsZCArICcgJyArIG9wZXJhdG9yICsgJyAnXAogICAgICAgICAgICAgICAgICAgICsgbGltaXQKICAgICAgICAgICAgcmVzICs9IHF1ZXJ5X3Jlc3RyaWN0aW9ucyAKICAgICAgICByZXR1cm4gcmVzICsgJzsnCiAgICAgICAgCiAgICBkZWYgcXVlcnlfZGF0YXNldChzZWxmLCBkYXRhc2V0LCB0aW1lc3RhbXBfbWluPU5vbmUsIHRpbWVzdGFtcF9tYXg9Tm9uZSk6CiAgICAgICAgIiIiQnVpbGRzIHRoZSBxdWVyeSB0byBwdWxsIGEgZGF0YXNldCBmcm9tIHRoZSBkYXRhYmFzZSBhbmQgZXhlY3V0ZXMgaXQuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgZGF0YXNldCA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIGRhdGFzZXQgdG8gcXVlcnkgZnJvbSB0aGUgZGF0YWJhc2UuIE11c3QgYmUgb25lIG9mIHRoZSAKICAgICAgICAgICAgICAgIGZvbGxvd2luZzoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgICAgICAgICAgICAgICAgICogdGltZXN0YW1wCiAgICAgICAgICAgICAgICAgICAgKiBoZWFydHJhdGUKICAgICAgICAgICAgICAgICAgICAqIGludGVuc2l0eQogICAgICAgICAgICAgICAgICAgICogYWN0aXZpdHkKPHxmaW1fZW5kfD4= |
abf736e52bf380e389d719530b473b5bf9d336c7-2 | abf736e52bf380e389d719530b473b5bf9d336c7 | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgLSotIGNvZGluZzogdXRmLTggLSotCmltcG9ydCBzcWxpdGUzCmltcG9ydCB0aW1lCmZyb20gZGF0ZXRpbWUgaW1wb3J0IGRhdGV0aW1lCmZyb20gZGV2aWNlX2RiX21hcHBpbmcgaW1wb3J0IGRldmljZV9kYl9tYXBwaW5nCmZyb20gZGF0YXNldF9jb250YWluZXIgaW1wb3J0IERhdGFzZXRDb250YWluZXIKCmNsYXNzIFJlc3VsdEl0ZXJhdG9yOgogICAgIiIiQSBjbGFzcyB1c2VkIHRvIGl0ZXJhdGUgb3ZlciBzcWxpdGUzIGN1cnNvciByZXN1bHRzIGluIGEgZm9yIGxvb3AuIiIiCiAgICAKICAgIGRlZiBfX2luaXRfXyhzZWxmLCBjdXJzb3IpOgogICAgICAgICIiIkluaXRpYWxpemUgdGhlIGludGVyZmFjZSB3aXRoIGEgY3Vyc29yLgogICAgICAgIAogICAgICAgIFBhcmFtZXRlcnMKICAgICAgICAtLS0tLS0tLS0tCiAgICAgICAgICAgIGN1cnNvciA6IHNxbGl0ZS5DdXJzb3IKICAgICAgICAgICAgICAgIFRoZSBkYXRhYmFzZSBjdXJzb3IgcG9pbnRpbmcgdG8gdGhlIHJlc3VsdHMKICAgICAgICAKICAgICAgICBSZXR1cm5zCiAgICAgICAgLS0tLS0tLQogICAgICAgICAgICBOb25lCiAgICAgICAgIiIiCiAgICAgICAgc2VsZi5fY3Vyc29yID0gY3Vyc29yCgogICAgZGVmIF9faXRlcl9fKHNlbGYpOgogICAgICAgICIiIlJldHVybiBzZWxmIGZvciBpdGVyYXRpb24uCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgIAogICAgICAgIFJldHVybnMKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgc2VsZiA6IFJlc3VsdEl0ZXJhdG9yCiAgICAgICAgICAgICAgICBUaGlzIGluc3RhbmNlCiAgICAgICAgIiIiCjx8ZmltX2VuZHw+ |
abf736e52bf380e389d719530b473b5bf9d336c7-3 | abf736e52bf380e389d719530b473b5bf9d336c7 | PHxmaW1fcHJlZml4fD4KIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgLSotIGNvZGluZzogdXRmLTggLSotCmltcG9ydCBzcWxpdGUzCmltcG9ydCB0aW1lCmZyb20gZGF0ZXRpbWUgaW1wb3J0IGRhdGV0aW1lCmZyb20gZGV2aWNlX2RiX21hcHBpbmcgaW1wb3J0IGRldmljZV9kYl9tYXBwaW5nCmZyb20gZGF0YXNldF9jb250YWluZXIgaW1wb3J0IERhdGFzZXRDb250YWluZXIKCmNsYXNzIFJlc3VsdEl0ZXJhdG9yOgogICAgIiIiQSBjbGFzcyB1c2VkIHRvIGl0ZXJhdGUgb3ZlciBzcWxpdGUzIGN1cnNvciByZXN1bHRzIGluIGEgZm9yIGxvb3AuIiIiCiAgICAKICAgIGRlZiBfX2luaXRfXyhzZWxmLCBjdXJzb3IpOgogICAgICAgICIiIkluaXRpYWxpemUgdGhlIGludGVyZmFjZSB3aXRoIGEgY3Vyc29yLgogICAgICAgIAogICAgICAgIFBhcmFtZXRlcnMKICAgICAgICAtLS0tLS0tLS0tCiAgICAgICAgICAgIGN1cnNvciA6IHNxbGl0ZS5DdXJzb3IKICAgICAgICAgICAgICAgIFRoZSBkYXRhYmFzZSBjdXJzb3IgcG9pbnRpbmcgdG8gdGhlIHJlc3VsdHMKICAgICAgICAKICAgICAgICBSZXR1cm5zCiAgICAgICAgLS0tLS0tLQogICAgICAgICAgICBOb25lCiAgICAgICAgIiIiCiAgICAgICAgc2VsZi5fY3Vyc29yID0gY3Vyc29yCgogICAgZGVmIF9faXRlcl9fKHNlbGYpOgogICAgICAgICIiIlJldHVybiBzZWxmIGZvciBpdGVyYXRpb24uCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgIAogICAgICAgIFJldHVybnMKICAgICAgICAtLS0tLS0tCiAgICAgICAgICAgIHNlbGYgOiBSZXN1bHRJdGVyYXRvcgogICAgICAgICAgICAgICAgVGhpcyBpbnN0YW5jZQogICAgICAgICIiIgogICAgICAgIHJldHVybiBzZWxmCiAgICAKICAgIGRlZiBuZXh0KHNlbGYpOgogICAgICAgICIiIkl0ZXJhdGUgb3ZlciB0aGUgY3Vyc29yIHJlc3VsdCBpdGVtcy4KICAgICAgICAKICAgICAgICBQYXJhbWV0ZXJzCiAgICAgICAgLS0tLS0tLS0tLQogICAgICAgICAgICBOb25lCiAgICAgICAgICAgIAogICAgICAgIFJldHVybnMKICAgICAgICAtLS0tLS0tCiAgICAgICAgICAgIGl0ZW0gOiBzZXF1ZW5jZQogICAgICAgICAgICAgICAgT25lIHJvdyBvZiByZXN1bHRzCiAgICAgICAgIiIiCiAgICAgICAgaXRlbSA9IHNlbGYuX2N1cnNvci5mZXRjaG9uZSgpCiAgICAgICAgaWYgbm90IGl0ZW0gaXMgTm9uZToKICAgICAgICAgICAgcmV0dXJuIGl0ZW0KICAgICAgICBlbHNlOgogICAgICAgICAgICByYWlzZSBTdG9wSXRlcmF0aW9uCiAgICAgICAgICAgIAogICAgZGVmIGFsbChzZWxmKToKICAgICAgICAiIiJDb252ZW5pZW5jZSBmdW5jdGlvbiB0byByZXR1cm4gYWxsIHJlc3VsdCBpdGVtcyBhdCBvbmNlLgogICAgICAgIAogICAgICAgIFBhcmFtZXRlcnMKICAgICAgICAtLS0tLS0tLS0tCiAgICAgICAgICAgIE5vbmUKICAgICAgICAKICAgICAgICBSZXR1cm5zCiAgICAgICAgLS0tLS0tLQogICAgICAgICAgICBsaXN0CiAgICAgICAgICAgICAgICBBIGxpc3QgY29udGFpbmluZyBhbGwgcm93cwogICAgICAgICIiIgogICAgICAgIHJldHVybiBzZWxmLl9jdXJzb3IuZmV0Y2hhbGwoKQo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iBSZXR1cm5zIGEgZGljdCAKICAgICAgICBjb250YWluaW5nIHRoZSBlbnRyaWVzOgogICAgICAgICAgICAqIGluZGV4CiAgICAgICAgICAgICogbmFtZQogICAgICAgICAgICAqIHR5cGUKICAgICAgICBmb3IgZWFjaCBvZiB0aGUgY29sdW1ucyBpbiB0aGUgdGFibGUuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgdGFibGVfbmFtZSA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIG5hbWUgb2YgdGhlIHRhYmxlIHRoYXQgdGhlIGxheW91dCBzaG91bGQgYmUgcXVlcmllZCBmb3IuCiAgICAgICAgCiAgICAgICAgUmV0dXJucwogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgTm9uZQogICAgICAgICIiIgogICAgICAgIGlmIHRhYmxlX25hbWUgaW4gc2VsZi50YWJsZXM6CiAgICAgICAgICAgIHNlbGYucXVlcnkoJ3ByYWdtYSB0YWJsZV9pbmZvKHt0YWJsZV9uYW1lOnN9KTsnLmZvcm1hdCgKICAgICAgICAgICAgICAgICAgICB0YWJsZV9uYW1lPXRhYmxlX25hbWUpKQogICAgICAgICAgICByZXMgPSB7J25hbWUnOiBbXSwgJ3R5cGUnOiBbXSwgJ2luZGV4JzogW119CiAgICAgICAgICAgIGZvciByb3cgaW4gc2VsZi5yZXN1bHRzOgogICAgICAgICAgICAgICAgcmVzWydpbmRleCddLmFwcGVuZChyb3dbMF0pCiAgICAgICAgICAgICAgICByZXNbJ25hbWUnXS5hcHBlbmQocm93WzFdKQogICAgICAgICAgICAgICAgcmVzWyd0eXBlJ10uYXBwZW5kKHJvd1syXSkKICAgICAgICAgICAgcmV0dXJuIHJlcwogICAgICAgIGVsc2U6CiAgICAgICAgICAgIHJldHVybiBOb25lCgogICAgZGVmIF9idWlsZF9xdWVyeXN0cmluZyhzZWxmLCBkYXRhc2V0LCB0aW1lc3RhbXBfbWluPU5vbmUsIAogICAgICAgICAgICAgICAgICAgICAgICAgICB0aW1lc3RhbXBfbWF4PU5vbmUpOgogICAgICAgICIiIkJ1aWxkIGEgU3FsaXRlIHF1ZXJ5IHRvIHB1bGwgdGhlIGRhdGFzZXQgZnJvbSB0aGUgZGF0YWJhc2UuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgZGF0YXNldCA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIGRhdGFzZXQgdG8gYnVpbGQgYSBxdWVyeSBzdHJpbmcgZm9yLiBNdXN0IGJlIG9uZSBvZiB0aGUgCiAgICAgICAgICAgICAgICBmb2xsb3dpbmc6CiAgICAgICAgICAgICAgICAgICAgKiB0aW1lc3RhbXAKICAgICAgICAgICAgICAgICAgICAqIGhlYXJ0cmF0ZQogICAgICAgICAgICAgICAgICAgICogaW50ZW5zaXR5CiAgICAgICAgICAgICAgICAgICAgKiBhY3Rpdml0eQogICAgICAgICAgICAgICAgICAgICogc3RlcHMKICAgICAgICAgICAgdGltZXN0YW1wX21pbiA6IGRhdGV0aW1lLmRhdGV0aW1lLCBOb25lCiAgICAgICAgICAgICAgICBUaGUgbG93ZXIgbGltaXQgKGluY2x1ZGVkKSB0byByZXR1cm4gZGF0YSBmb3IuIElmIE5vbmUsIG5vIAogICAgICAgICAgICAgICAgbG93ZXIgbGltaXQgd2lsbCBiZSBzZXQuCiAgICAgICAgICAgIHRpbWVzdGFtcF9tYXggOiBkYXRldGltZS5kYXRldGltZSwgTm9uZQogICAgICAgICAgICAgICAgVGhlIHVwcGVyIGxpbWl0IChub3QgaW5jbHVkZWQpIHRvIHJldHVybiBkYXRhIGZvciBJZiBOb25lLCBubwogICAgICAgICAgICAgICAgdXBwZXIgbGltaXQgd2lsbCBiZSBzZXQuCiAgICAgICAgCiAgICAgICAgUmV0dXJucwogICAgICAgIC0tLS0tLS0KICAgICAgICAgICAgc3RyaW5nCiAgICAgICAgICAgICAg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AnXAogICAgICAgICAgICArIHNlbGYuX2RiX25hbWVzW2RhdGFzZXRdCiAgICAgICAgcmVzID0gcXVlcnlfdGVtcGxhdGUuZm9ybWF0KGRhdGFzZXRfY29sPWRhdGFzZXRfY29scywKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhYmxlPXNlbGYuX2RiX25hbWVzWyd0YWJsZSddKQogICAgICAgICNBcHBlbmQgcmVzdHJpY3Rpb24gZXhwcmVzc2lvbnMsIGlmIHRoZXJlIGFyZSBhbnk6CiAgICAgICAgaWYgbGVuKHJlc3RyaWN0aW9ucykgIT0gMDoKICAgICAgICAgICAgZmllbGQsIG9wZXJhdG9yLCBsaW1pdCA9IHJlc3RyaWN0aW9uc1swXQogICAgICAgICAgICBxdWVyeV9yZXN0cmljdGlvbnMgPSAnIFdIRVJFICcgKyBmaWVsZCArICcgJyArIG9wZXJhdG9yICsgJyAnXAogICAgICAgICAgICAgICAgKyBsaW1pdAogICAgICAgICAgICBmb3IgZmllbGQsIG9wZXJhdG9yLCBsaW1pdCBpbiByZXN0cmljdGlvbnNbMTpdOgogICAgICAgICAgICAgICAgcXVlcnlfcmVzdHJpY3Rpb25zICs9ICcgQU5EICcgKyBmaWVsZCArICcgJyArIG9wZXJhdG9yICsgJyAnXAogICAgICAgICAgICAgICAgICAgICsgbGltaXQKICAgICAgICAgICAgcmVzICs9IHF1ZXJ5X3Jlc3RyaWN0aW9ucyAKICAgICAgICByZXR1cm4gcmVzICsgJzsnCiAgICAgICAgCiAgICBkZWYgcXVlcnlfZGF0YXNldChzZWxmLCBkYXRhc2V0LCB0aW1lc3RhbXBfbWluPU5vbmUsIHRpbWVzdGFtcF9tYXg9Tm9uZSk6CiAgICAgICAgIiIiQnVpbGRzIHRoZSBxdWVyeSB0byBwdWxsIGEgZGF0YXNldCBmcm9tIHRoZSBkYXRhYmFzZSBhbmQgZXhlY3V0ZXMgaXQuCiAgICAgICAgCiAgICAgICAgUGFyYW1ldGVycwogICAgICAgIC0tLS0tLS0tLS0KICAgICAgICAgICAgZGF0YXNldCA6IHN0cmluZwogICAgICAgICAgICAgICAgVGhlIGRhdGFzZXQgdG8gcXVlcnkgZnJvbSB0aGUgZGF0YWJhc2UuIE11c3QgYmUgb25lIG9mIHRoZSAKICAgICAgICAgICAgICAgIGZvbGxvd2luZzoKICAgICAgICAgICAgICAgICAgICAqIHRpbWVzdGFtcAogICAgICAgICAgICAgICAgICAgICogaGVhcnRyYXRlCiAgICAgICAgICAgICAgICAgICAgKiBpbnRlbnNpdHkKICAgICAgICAgICAgICAgICAgICAqIGFjdGl2aXR5CiAgICAgICAgICAgICAgICAgICAgKiBzdGVwcwogICAgICAgICAgICB0aW1lc3RhbXBfbWluIDogZGF0ZXRpbWUuZGF0ZXRpbWUsIE5vbmUKICAgICAgICAgICAgICAgIFRoZSBsb3dlciBsaW1pdCAoaW5jbHVkZWQpIHRvIHJldHVybiBkYXRhIGZvci4gSWYgTm9uZSwgbm8gCiAgICAgICAgICAgICAgICBsb3dlciBsaW1pdCB3aWxsIGJlIHNldC4KICAgICAgICAgICAgdGltZXN0YW1wX21heCA6IGRhdGV0aW1lLmRhdGV0aW1lLCBOb25lCiAgICAgICAgICAgICAgICBUaGUgdXBwZXIgbGltaXQgKG5vdCBpbmNsdWRlZCkgdG8gcmV0dXJuIGRhdGEgZm9yIElmIE5vbmUsIG5vCiAgICAgICAgICAgICAgICB1cHBlciBsaW1pdCB3aWxsIGJlIHNldC4KICAgICAgICAKICAgICAgICBSZXR1cm5zCiAgICAgICAgLS0tLS0tLQogICAgICAgICAgICBOb25lCiAgICAgICAgIiIiCiAgICAgICAgZGF0YXNldHMgPSBzZWxmLl9kYl9uYW1lcy5rZXlzKCkKICAgICAgICBkYXRhc2V0cy5yZW1vdmUoJ3RhYmxlJykKICAgICAgICBkYXRhc2V0cy5yZW1vdmUoJ3RpbWVzdGFtcCcpCiAgICAgICAgaWYgbm90IGRhdGFzZXQgaW4gZGF0YXNldHM6CiAgICAgICAgICAgIHJhaXNlIExvb2t1cEVycm9yKCdEYXRhc2V0IG5vdCBhdmFpbGFibGUsIG11c3QgYmUgaW4gJyArIFwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RyKGRhdGFzZXRzKSkKICAgICAgICBzZWxmLl9xdWVyeShzZWxmLl9idWlsZF9xdWVyeXN0cmluZyhkYXRhc2V0LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVzdGFtcF9taW49dGltZXN0YW1wX21pbiwgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGltZXN0YW1wX21heD10aW1lc3RhbXBfbWF4KSkKICAgICAgICAKICAgIGRlZiByZXRyaWV2ZV9kYXRhc2V0KHNlbGYsIGRhdGFzZXQsIHRpbWVzdGFtcF9taW49Tm9uZSwgdGltZXN0YW1wX21heD1Ob25lLAogICAgICAgICAgICAgICAgICAgICAgICAgdGltZV9yZXNvbHV0aW9uPU5vbmUpOgogICAgICAgICIiIlJldHJpZXZlIGEgZGF0YXNldCBmcm9tIHRoZSBkYXRhYmFzZS4KICAgICAgICAKICAgICAgICBQYXJhbWV0ZXJzCiAgICAgICAgLS0tLS0tLS0tLQogICAgICAgICAgICBkYXRhc2V0IDogc3RyaW5nCiAgICAgICAgICAgICAgICBUaGUgZGF0YXNldCB0byByZXRyaWV2ZSBmcm9tIHRoZSBkYXRhYmFzZS4gTXVzdCBiZSBvbmUgb2YgdGhlIAogICAgICAgICAgICBmb2xsb3dpbmc6CiAgICAgICAgICAgICAgICAqIHRpbWVzdGFtcAogICAgICAgICAgICAgICAgKiBoZWFydHJhdGUKICAgICAgICAgICAgICAgICogaW50ZW5zaXR5CiAgICAgICAgICAgICAgICAqIGFjdGl2aXR5CiAgICAgICAgICAgICAgICAqIHN0ZXBzCiAgICAgICAgICAgIHRpbWVzdGFtcF9taW4gOiBkYXRldGltZS5kYXRldGltZSwgTm9uZQogICAgICAgICAgICAgICAgVGhlIGxvd2VyIGxpbWl0IChpbmNsdWRlZCkgdG8gcmV0dXJuIGRhdGEgZm9yLiBJZiBOb25lLCBubyAKICAgICAgICAgICAgICAgIGxvd2VyIGxpbWl0IHdpbGwgYmUgc2V0LgogICAgICAgICAgICB0aW1lc3RhbXBfbWF4IDogZGF0ZXRpbWUuZGF0ZXRpbWUsIE5vbmUKICAgICAgICAgICAgICAgIFRoZSB1cHBlciBsaW1pdCAobm90IGluY2x1ZGVkKSB0byByZXR1cm4gZGF0YSBmb3IgSWYgTm9uZSwgbm8KICAgICAgICAgICAgICAgIHVwcGVyIGxpbWl0IHdpbGwgYmUgc2V0LgogICAgICAgICAgICB0aW1lX3Jlc29sdXRpb24gOiBkYXRldGltZS50aW1lZGVsdGEsIE5vbmUKICAgICAgICAgICAgICAgIFRoZSB0aW1lIHJlc29sdXRpb24gb2YgdGhlIGRhdGFzZXQgY29udGFpbmVyIHJldHVybmVkLiBJZiBOb25lLAogICAgICAgICAgICAgICAgdGhlIGRlZmF1bHQgb2YgMSBtaW51dGUgd2lsbCBiZSB1c2VkLgogICAgICAgIAogICAgICAgIFJldHVybnMKICAgICAgICAtLS0tLS0tCiAgICAgICAgICAgIHJlcyA6IERhdGFzZXRDb250YWluZXIKICAgICAgICAgICAgICAgIFRoZSBjb250YWluZXIgd2l0aCB0aGUgcmV0cmlldmVkIGRhdGFzZXQuCiAgICAgICAgIiIiCiAgICAgICAgc2VsZi5xdWVyeV9kYXRhc2V0KGRhdGFzZXQsIHRpbWVzdGFtcF9taW49dGltZXN0YW1wX21pbiwgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVzdGFtcF9tYXg9dGltZXN0YW1wX21heCkKICAgICAgICByZXMgPSBEYXRhc2V0Q29udGFpbmVyKGRhdGFzZXQsIHRpbWVfcmVzb2x1dGlvbj10aW1lX3Jlc29sdXRpb24pCiAgICAgICAgZm9yIHRzLCB2YWwgaW4gc2VsZi5yZXN1bHRzOgogICAgICAgICAgICByZXMuYXBwZW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AiIiJFeGVjdXRlIGEgcXVlcnkgb24gdGhlIGRhdGFiYXNlLgogICAgICAgIAogICAgICAgIFBhcmFtZXRlcnMKICAgICAgICAtLS0tLS0tLS0tCjx8ZmltX2VuZHw+ |
bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6-1 | bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6 | PHxmaW1fcHJlZml4fD4KZnJvbSAubG9naW4gaW1wb3J0ICogIyBub3FhCmZyb20gLnJlZ2lzdGVyIGltcG9ydCAqICMgbm9xYQo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CmZyb20gLnVzZXIgaW1wb3J0ICogIyBub3FhCjx8ZmltX2VuZHw+ |
bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6-2 | bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6 | PHxmaW1fcHJlZml4fD4KZnJvbSAubG9naW4gaW1wb3J0ICogIyBub3FhCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KZnJvbSAucmVnaXN0ZXIgaW1wb3J0ICogIyBub3FhCmZyb20gLnVzZXIgaW1wb3J0ICogIyBub3FhCjx8ZmltX2VuZHw+ |
bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6-3 | bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6 | PHxmaW1fcHJlZml4fD4KZnJvbSAubG9naW4gaW1wb3J0ICogIyBub3FhCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KZnJvbSAucmVnaXN0ZXIgaW1wb3J0ICogIyBub3FhCmZyb20gLnVzZXIgaW1wb3J0ICogIyBub3FhCjx8ZmltX2VuZHw+ |
bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6-4 | bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6 | PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KZnJvbSAubG9naW4gaW1wb3J0ICogIyBub3FhCmZyb20gLnJlZ2lzdGVyIGltcG9ydCAqICMgbm9xYQpmcm9tIC51c2VyIGltcG9ydCAqICMgbm9xYQo8fGZpbV9lbmR8Pg== |
bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6-5 | bb7f636ddc5baf6c483d2dfbf89a0848b34e63e6 | PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KZnJvbSAubG9naW4gaW1wb3J0ICogIyBub3FhCmZyb20gLnJlZ2lzdGVyIGltcG9ydCAqICMgbm9xYQpmcm9tIC51c2VyIGltcG9ydCAqICMgbm9xYQo8fGZpbV9lbmR8Pg== |
ab803084e90eba0f8e97e663fe103f87f623b192-1 | ab803084e90eba0f8e97e663fe103f87f623b192 | PHxmaW1fcHJlZml4fD4KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCB0ZW5zb3JmbG93IGFzIHRmCmltcG9ydCB1bml0dGVzdAoKZnJvbSBUZW5zb3JGbG93X01ELkFuYWx5emUgaW1wb3J0IGVuZXJneQoKCmNsYXNzIFRlc3RFbmVyeUZ1bmN0aW9ucyh1bml0dGVzdC5UZXN0Q2FzZSk6CgogICAgZGVmIHRlc3RfY2FsY19raW5ldGljKHNlbGYpOgogICAgICAgIG5wLnJhbmRvbS5zZWVkKDApCgogICAgICAgIG4gPSAxMAogICAgICAgIG5kID0gMwoKICAgICAgICBzaGFwZSA9IChuLCBuZCkKICAgICAgICBtID0gbnAucmFuZG9tLnJhbmQobikKICAgICAgICB2XzAgPSBucC5yYW5kb20ucmFuZG4obiwgbmQpCgogICAgICAgIHZfdCA9IHRmLnBsYWNlaG9sZGVyX3dpdGhfZGVmYXVsdChpbnB1dD12XzAsIHNoYXBlPXNoYXBlKQogICAgICAgIGtlX3QgPSBlbmVyZ3kuY2FsY19raW5ldGljKHZfdCwgbSkKCiAgICAgICAgd2l0aCB0Zi5TZXNzaW9uKCkgYXMgc2Vzc2lvbjoKICAgICAgICAgICAga2UgPSBzZXNzaW9uL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ICAgIHVfaWpfdCA9IHRmLnBsYWNlaG9sZGVyX3dpdGhfZGVmYXVsdChpbnB1dD11X2lqXzAsIHNoYXBlPXNoYXBlKQogICAgICAgIHVfdCA9IGVuZXJneS5jYWxjX3BvdGVudGlhbCh1X2lqX3QpCgogICAgICAgIHdpdGggdGYuU2Vzc2lvbigpIGFzIHNlc3Npb246Cjx8ZmltX2VuZHw+ |
ab803084e90eba0f8e97e663fe103f87f623b192-2 | ab803084e90eba0f8e97e663fe103f87f623b192 | PHxmaW1fcHJlZml4fD4KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCB0ZW5zb3JmbG93IGFzIHRmCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KaW1wb3J0IHVuaXR0ZXN0Cgpmcm9tIFRlbnNvckZsb3dfTUQuQW5hbHl6ZSBpbXBvcnQgZW5lcmd5Cgo8fGZpbV9lbmR8Pg== |
ab803084e90eba0f8e97e663fe103f87f623b192-3 | ab803084e90eba0f8e97e663fe103f87f623b192 | PHxmaW1fcHJlZml4fD4KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCB0ZW5zb3JmbG93IGFzIHRmCmltcG9ydCB1bml0dGVzdAoKZnJvbSBUZW5zb3JGbG93X01ELkFuYWx5emUgaW1wb3J0IGVuZXJneQoKCmNsYXNzIFRlc3RFbmVyeUZ1bmN0aW9ucyh1bml0dGVzdC5UZXN0Q2FzZSk6CgogICAgZGVmIHRlc3RfY2FsY19raW5ldGljKHNlbGYpOgogICAgICAgIG5wLnJhbmRvbS5zZWVkKDApCgogICAgICAgIG4gPSAxMAogICAgICAgIG5kID0gMwoKICAgICAgICBzaGFwZSA9IChuLCBuZCkKICAgICAgICBtID0gbnAucmFuZG9tLnJhbmQobikKICAgICAgICB2XzAgPSBucC5yYW5kb20ucmFuZG4obiwgbmQpCgogICAgICAgIHZfdCA9IHRmLnBsYWNlaG9sZGVyX3dpdGhfZGVmYXVsdChpbnB1dD12XzAsIHNoYXBlPXN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hc3Moc291bmRfZGljdGlvbmFyeSwgcGFyYW1faW5mbywgc2NyZWVuX3NpemUpCiAgICAgICAgZXhjZXB0IEtleUVycm9yIGFzIGU6CiAgICAgICAgICAgIHJhaXNlIFBpY3R1cmVFcnJvcihlKQoKICAgICAgICByZXR1cm4gcGljdHVyZQoKCmNsYXNzIFBpY3R1cmVFcnJvcihFeGNlcHRpb24pOgogICAgcGFzcwo8fGZpbV9zdWZmaXh8PgoKICAgICAgICByZXR1cm4gZGVjb3JhdG9yCgogICAgQGNsYXNzbWV0aG9kCjx8ZmltX2VuZHw+ |
a51eedbce504de6a3a8af8776f46eb926da9dcd0-3 | a51eedbce504de6a3a8af8776f46eb926da9dcd0 | PHxmaW1fcHJlZml4fD4KaW1wb3J0IGFiYwpmcm9tIG11dmltYWtlciBpbXBvcnQgbWFpbl9sb2dnZXIKCgpsb2dnZXIgPSBtYWluX2xvZ2dlci5nZXRDaGlsZChfX25hbWVfXykKCgpjbGFzcyBCYXNlUGljdHVyZShhYmMuQUJDKToKCiAgICBzdWJjbGFzc2VzID0ge30KICAgIG5lZWRzX2ZhY2VfcmVjb19jYWNoZSA9IEZhbHNlCgogICAgZGVmIF9faW5pdF9fKHNlbGYsIHNvdW5kX2RpY3Rpb25hcnksIHBhcmFtX2luZm8sIHNjcmVlbl9zaXplKToKCiAgICAgICAgc2VsZi5zb3VuZF9kaWN0ID0gc291bmRfZGljdGlvbmFyeQogICAgICAgIHNlbGYucGFyYW1faW5mbyA9IHBhcmFtX2luZm8KICAgICAgICBzZWxmLnNjcmVlbl9zaXplID0gc2NyZWVuX3NpemUKCiAgICAgICAgc2VsZi5fY2FjaGVkX2ZyYW1lcyA9IGRpY3QoKQogICAgICAgIHNlbGYuY2FjaGVfYm9vbCA9IFRydWUKCiAgICBkZWYgZ2V0X2ZyYW1lKHNlbGYsIGluZCk6CiAgICAgICAgaWYgc2VsZi5jYWNoZV9ib29sOgogICAgICAgICAgICAjIHN0b3JlIHRoZSBmcmFtZXMgY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1cmUgdGhhdCBjZXJ0YWluIGtleXMgYXJlIGF2YWlsYWJsZS4KICAgICAgICAgICAgLSBleGNoYW5nZQogICAgICAgICAgICAtIHBlcmlvZAogICAgIiIiCiAgICBpZiBub3QgaXNpbnN0YW5jZShwcmljZV9xdWVyeV9kaWN0LCBkaWN0KToKICAgICAgICByYWlzZSBUeXBlRXJyb3IoImRpY3RfbGlzdCBpcyBub3QgYSBsaXN0LiBQbGVhc2UgdHJ5IGFnYWluIikKICAgIHJlcXVpcmVkID0gWyJwZXJpb2QiLCAiZXhjaGFuZ2UiXQogICAgcGtleXMgPSBwcmljZV9xdWVyeV9kaWN0LmtleXMoKQogICAgZm9yIHIgaW4gcmVxdWlyZWQ6CiAgICAgICAgaWYgciBub3QgaW4gcGtleXM6CiAgICAgICAgICAgIHJhaXNlIEtleUVycm9yKCJBbiBpbXBvcnRhbnQga2V5IGlzIG5vdCBhdmFpbGFibGUge30iLmZvcm1hdChyKSkKICAgIHJldHVybiBUcnVlCgoKIyBpZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgojICAgICAjIHByaW50KGZpbHRlcl9xdWVyeSh7InR5cGUiOiAicHJpY2UifSwgWyJ0eXBlIl0pKQo8fGZpbV9zdWZmaXh8PgogICAgaWYgbm90IGlzaW5zdGFuY2UoZmlsdGVyX2RpY3QsIGRpY3QpOgogICAgICAgIHJhaXNlIFR5cGVFcnJvcigiZGljdF9saXN0IGlzIG5vdCBhIGxpc3QuIFBsZWFzZSB0cnkgYWdhaW4iKQoKICAgIGlmIG5vdCBpc2luc3RhbmNlKHJlcXVpcmVkX2tleXMsIGxpc3QpOgo8fGZpbV9lbmR8Pg== |
a57a0530e8c1738f1bc3c32801d68b0709e35600-2 | a57a0530e8c1738f1bc3c32801d68b0709e35600 | PHxmaW1fcHJlZml4fD4KIiIiCiAgICBUaGlzIGlzIHRoZSBjbGFzcyB0byBoYW5kbGUgdGhlIHRpY2tlciBkaWN0aW9uYXJ5IGluZm9ybWF0aW9uLiBV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aXMgbm90IGEgbGlzdC4gUGxlYXNlIHRyeSBhZ2FpbiIpCgogICAgaWYgbm90IGlzaW5zdGFuY2UocmVxdWlyZWRfa2V5cywgbGlzdCk6CiAgICAgICAgcmFpc2UgVHlwZUVycm9yKCJkaWN0X2xpc3QgaXMgbm90IGEgbGlzdC4gUGxlYXNlIHRyeSBhZ2FpbiIpCgogICAgYXZhaWxhYmxlID0gW10KICAgIGZvciBrLHYgaW4gZmlsdGVyX2RpY3QuaXRlbXMoKToKICAgICAgICAjIHByaW50KGssIHYpCiAgICAgICAgaWYgayBpbiByZXF1aXJlZF9rZXlzOgogICAgICAgICAgICBhdmFpbGFibGUuYXBwZW5kKGspCiAgICByZXR1cm4gYXZhaWxhYmxlCjx8ZmltX2hvbGV8PgogICAgICAgIFByaWNlIGhhcyBhIHNldCBvZiByZXF1aXJlbWVudHM6CiAgICAgICAgICAgIC0gcGVyaW9kIC0+IFttaW51dGUsIGhvdXIsIGRheV0KICAgICAgICAgICAgLSBleGNoYW5nZQogICAgICAgICAgICAtIG9wZW4KICAgICAgICAgICAgLSBjbG9zZQogICAgICAgICAgICAtIGhpZ2gKICAgICAgICAgICAgLSBsb3cKICAgICAgICAgICAgLSB2b2x1bWVmcm9tCiAgICAgICAgICAgIC0gdm9sdW1ldG8KICAgICAgICBFbnN1cmUgdGhhdCB3ZSBoYXZlIGFsbCBvZiB0aGVtIGZvciBpbnNlcnRzLiBXaWxsCiAgICAiIiIKICAgIGlmIG5vdCBpc2luc3RhbmNlKHByaWNlX2RpY3QsIGRpY3QpOgogICAgICAgIHJhaXNlIFR5cGVFcnJvcigiZGljdF9saXN0IGlzIG5vdCBhIGxpc3QuIFBsZWFzZSB0cnkgYWdhaW4iKQogICAgcmVxdWlyZWQgPSBbInBlcmlvZCIsICJleGNoYW5nZSIsICJvcGVuIiwgImNsb3NlIiwgImhpZ2giLCAibG93IiwgInZvbHVtZWZyb20iLCAidm9sdW1ldG8iXQoKICAgIHBrZXlzID0gcHJpY2VfZGljdC5rZXlzKCkKICAgIGZvciByIGluIHJlcXVpcmVkOgogICAgICAgIGlmIHIgbm90IGluIHBrZXlzOgogICAgICAgICAgICByYWlzZSBLZXlFcnJvcigiQW4gaW1wb3J0YW50IGtleSBpcyBub3QgYXZhaWxhYmxlIikKICAgIHJldHVybiBUcnVlCgpkZWYgcHJpY2VfcXVlcnlfZmlsdGVyKHByaWNlX3F1ZXJ5X2RpY3QpOgogICAgIiIiCiAgICAgICAgRW5zdXJlIHRoYXQgY2VydGFpbiBrZXlzIGFyZSBhdmFpbGFibGUuCiAgICAgICAgICAgIC0gZXhjaGFuZ2UKICAgICAgICAgICAgLSBwZXJpb2QKICAgICIiIgogICAgaWYgbm90IGlzaW5zdGFuY2UocHJpY2VfcXVlcnlfZGljdCwgZGljdCk6CiAgICAgICAgcmFpc2UgVHlwZUVycm9yKCJkaWN0X2xpc3QgaXMgbm90IGEgbGlzdC4gUGxlYXNlIHRyeSBhZ2FpbiIpCiAgICByZXF1aXJlZCA9IFsicGVyaW9kIiwgImV4Y2hhbmdlIl0KICAgIHBrZXlzID0gcHJpY2VfcXVlcnlfZGljdC5rZXlzKCkKICAgIGZvciByIGluIHJlcXVpcmVkOgogICAgICAgIGlmIHIgbm90IGluIHBrZXlzOgogICAgICAgICAgICByYWlzZSBLZXlFcnJvcigiQW4gaW1wb3J0YW50IGtleSBpcyBub3QgYXZhaWxhYmxlIHt9Ii5mb3JtYXQocikpCiAgICByZXR1cm4gVHJ1ZQoKCiMgaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKIyAgICAgIyBwcmludChmaWx0ZXJfcXVlcnkoeyJ0eXBlIjogInByaWNlIn0sIFsidHlwZSJdKSkKPHxmaW1fc3VmZml4fD4KCgpkZWYgcHJpY2VfaW5zZXJ0X2ZpbHRlcihwcmljZV9kaWN0KToKICAgICIiIgo8fGZpbV9lbmR8Pg== |
a57a0530e8c1738f1bc3c32801d68b0709e35600-3 | a57a0530e8c1738f1bc3c32801d68b0709e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hc2UgdHJ5IGFnYWluIikKICAgIHJlcXVpcmVkID0gWyJwZXJpb2QiLCAiZXhjaGFuZ2UiLCAib3BlbiIsICJjbG9zZSIsICJoaWdoIiwgImxvdyIsICJ2b2x1bWVmcm9tIiwgInZvbHVtZXRvIl0KCiAgICBwa2V5cyA9IHByaWNlX2RpY3Qua2V5cygpCiAgICBmb3IgciBpbiByZXF1aXJlZDoKICAgICAgICBpZiByIG5vdCBpbiBwa2V5czoKICAgICAgICAgICAgcmFpc2UgS2V5RXJyb3IoIkFuIGltcG9ydGFudCBrZXkgaXMgbm90IGF2YWlsYWJsZSIpCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KICAgIHJldHVybiBUcnVlCgo8fGZpbV9lbmR8Pg== |
a57a0530e8c1738f1bc3c32801d68b0709e35600-4 | a57a0530e8c1738f1bc3c32801d68b0709e35600 | PHxmaW1fcHJlZml4fD4KIiIiCiAgICBUaGlzIGlzIHRoZSBjbGFzcyB0byBoYW5kbGUgdGhlIHRpY2tlciBkaWN0aW9uYXJ5IGluZm9ybWF0aW9uLiBVc2VkIHRvIHByZXZlbnQgZHVwbGljYXRlcwoiIiIKCmRlZiBtZXJnZV9kaWN0cygqZGljdF9saXN0KToKICAgICIiIkV4dHJhY3QgYWxsIG9mIHRoZSBkaWN0aW9uYXJpZXMgZnJvbSB0aGlzIGxpc3QsIHRoZW4gbWVyZ2UgdGhlbSB0b2dldGhlciAiIiIKICAgICMgaWYgbm90IGlzaW5zdGFuY2UoZGljdF9saXN0LCBsaXN0KToKICAgICMgICAgIHJhaXNlIFR5cGVFcnJvcigiZGljdF9saXN0IGlzIG5vdCBhIGxpc3QuIFBsZWFzZSB0cnkgYWdhaW4iKQogICAgIyBwcmludChkaWN0X2xpc3QpCiAgICBhbGxfZGljdHMgPSBbXQogICAgZm9yIGFnIGluIGRpY3RfbGlzdDoKICAgICAgICBpZiBpc2luc3RhbmNlKGFnLCBkaWN0KToKICAgICAgICAgICAgYWxsX2Rp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