Run like
> decode_saml_request.sh sample_data
#!/usr/bin/env python3 | |
import zlib | |
import base64 | |
import string | |
import sys | |
plantuml_alphabet = ( | |
string.digits + string.ascii_uppercase + string.ascii_lowercase + "-_" | |
) | |
base64_alphabet = string.ascii_uppercase + string.ascii_lowercase + string.digits + "+/" |
diff --git a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
index 327d3df0..0b64d616 100644 | |
--- a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
+++ b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
@@ -56,7 +56,9 @@ class PythonSG(spec: TestSpec, provider: ClassTypeProvider) extends BaseGenerato | |
override def nullAssert(actual: Ast.expr): Unit = { | |
val actStr = translateAct(actual) | |
- out.puts(s"self.assertIsNone($actStr)") | |
+ val attrStr = actStr.substring(actStr.lastIndexOf('.') + 1) |
Translating: imports_abs | |
[error] (run-main-0) io.kaitai.struct.precompile.ErrorInInput: imports_abs: /meta/imports/0: Unable to find 'common/vlq_base128_le' in import search paths, using: List(../../formats) | |
[error] io.kaitai.struct.precompile.ErrorInInput: imports_abs: /meta/imports/0: Unable to find 'common/vlq_base128_le' in import search paths, using: List(../../formats) | |
[error] at io.kaitai.struct.formats.JavaClassSpecs$.cached(JavaClassSpecs.scala:75) | |
[error] at io.kaitai.struct.formats.JavaClassSpecs.$anonfun$importAbsolute$1(JavaClassSpecs.scala:31) | |
[error] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658) | |
[error] at scala.util.Success.$anonfun$map$1(Try.scala:255) | |
[error] at scala.util.Success.map(Try.scala:213) | |
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:292) | |
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) |
<?php | |
declare(strict_types=1); | |
namespace App\Controller; | |
use Cake\Controller\Controller; | |
use Closure; | |
use ReflectionFunction; | |
class AppController extends Controller |
Run like
> decode_saml_request.sh sample_data
<?php | |
$parsed = Router::parseRequest($this->request); | |
unset($parsed['_matchedRoute']); | |
echo $this->Html->link('Čeština', array_merge($parsed, ['lang' => 'cz'])); | |
echo ' | '; | |
echo $this->Html->link('English', array_merge($parsed, ['lang' => 'en'])); | |
echo ' | '; | |
echo $this->Html->link('French', array_merge($parsed, ['lang' => 'fr'])); | |
?> |
<?php | |
public function entityStripAssociations(Entity &$entity) | |
{ | |
/** @var Table $table */ | |
$table = TableRegistry::getTableLocator()->get($entity->getSource()); | |
foreach ($table->associations() as $asoc) { | |
$entity->unsetProperty($asoc->getProperty()); | |
} | |
return $entity; | |
} |
# picocom /dev/ttyUSB2 | |
ATI | |
Manufacturer: Sierra Wireless, Incorporated | |
Model: EM7455 | |
Revision: SWI9X30C_02.30.03.00 r7804 CARMD-EV-FRMWR2 2018/07/25 01:10:04 | |
MEID: -redacted- | |
IMEI: -redacted- | |
IMEI SV: 17 | |
FSN: LF818679700410 | |
+GCAP: +CGSM |