---
# System prepended metadata

title: MWEs by Xin Liu - Batch 2
tags: [decompiler]

---

---
tags: decompiler
---

# MWEs by Xin Liu - Batch 2

## Error 1/213
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=
def getPath(self):
    if self.path is None:
        if x is None or len(x) == 0 or y is None or len(y) == 0:
            a = 1
        else:
            b = 1
    return self.path
```
#### Closest Solution:
```python=
def getPath(self):
    if self.path is None:
        m = x is None or len(x) == 0 or y is None or len(y) == 0
        if m:
            a = 1
        else:
            b = 1
    return self.path
```
```c=
  1           0 LOAD_CONST               0 (<code object getPath at 0x7f7aed5e1e40, file "main.py", line 1>)
              2 LOAD_CONST               1 ('getPath')
              4 MAKE_FUNCTION            0
              6 STORE_NAME               0 (getPath)
              8 LOAD_CONST               2 (None)
             10 RETURN_VALUE

Disassembly of <code object getPath at 0x7f7aed5e1e40, file "main.py", line 1>:
  2           0 LOAD_FAST                0 (self)
              2 LOAD_ATTR                0 (path)
              4 LOAD_CONST               0 (None)
              6 COMPARE_OP               8 (is)
              8 POP_JUMP_IF_FALSE       64

  3          10 LOAD_GLOBAL              1 (x)
             12 LOAD_CONST               0 (None)
             14 COMPARE_OP               8 (is)
             16 JUMP_IF_TRUE_OR_POP     48
             18 LOAD_GLOBAL              2 (len)
             20 LOAD_GLOBAL              1 (x)
             22 CALL_FUNCTION            1
             24 LOAD_CONST               1 (0)
             26 COMPARE_OP               2 (==)
             28 JUMP_IF_TRUE_OR_POP     48
             30 LOAD_GLOBAL              3 (y)
             32 LOAD_CONST               0 (None)
             34 COMPARE_OP               8 (is)
             36 JUMP_IF_TRUE_OR_POP     48
             38 LOAD_GLOBAL              2 (len)
             40 LOAD_GLOBAL              3 (y)
             42 CALL_FUNCTION            1
             44 LOAD_CONST               1 (0)
             46 COMPARE_OP               2 (==)
        >>   48 STORE_FAST               1 (m)

  4          50 LOAD_FAST                1 (m)
             52 POP_JUMP_IF_FALSE       60

  5          54 LOAD_CONST               2 (1)
             56 STORE_FAST               2 (a)
             58 JUMP_FORWARD             4 (to 64)

  7     >>   60 LOAD_CONST               2 (1)
             62 STORE_FAST               3 (b)

  8     >>   64 LOAD_FAST                0 (self)
             66 LOAD_ATTR                0 (path)
             68 RETURN_VALUE
```
#### MWE data:
Bytecode for MWE:
```c=
  1           0 LOAD_CONST               0 (<code object getPath at 0x7f1eaebe5e40, file "main.py", line 1>)
              2 LOAD_CONST               1 ('getPath')
              4 MAKE_FUNCTION            0
              6 STORE_NAME               0 (getPath)
              8 LOAD_CONST               2 (None)
             10 RETURN_VALUE

Disassembly of <code object getPath at 0x7f1eaebe5e40, file "main.py", line 1>:
  2           0 LOAD_FAST                0 (self)
              2 LOAD_ATTR                0 (path)
              4 LOAD_CONST               0 (None)
              6 COMPARE_OP               8 (is)
              8 POP_JUMP_IF_FALSE       60

  3          10 LOAD_GLOBAL              1 (x)
             12 LOAD_CONST               0 (None)
             14 COMPARE_OP               8 (is)
             16 POP_JUMP_IF_TRUE        50
             18 LOAD_GLOBAL              2 (len)
             20 LOAD_GLOBAL              1 (x)
             22 CALL_FUNCTION            1
             24 LOAD_CONST               1 (0)
             26 COMPARE_OP               2 (==)
             28 POP_JUMP_IF_TRUE        50
             30 LOAD_GLOBAL              3 (y)
             32 LOAD_CONST               0 (None)
             34 COMPARE_OP               8 (is)
             36 POP_JUMP_IF_TRUE        50
             38 LOAD_GLOBAL              2 (len)
             40 LOAD_GLOBAL              3 (y)
             42 CALL_FUNCTION            1
             44 LOAD_CONST               1 (0)
             46 COMPARE_OP               2 (==)
             48 POP_JUMP_IF_FALSE       56

  4     >>   50 LOAD_CONST               2 (1)
             52 STORE_FAST               1 (a)
             54 JUMP_FORWARD             4 (to 60)

  6     >>   56 LOAD_CONST               2 (1)
             58 STORE_FAST               2 (b)

  7     >>   60 LOAD_FAST                0 (self)
             62 LOAD_ATTR                0 (path)
             64 RETURN_VALUE

```

## Error 1/214 (not solved)
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```
## Error 1/215
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=
def writeHDF5Meta():
    if x:
        a = 1
    elif isinstance(data, int) or isinstance(data, float) or isinstance(data, np.integer) or isinstance(data, np.floating):
        b = 1
    else:
        c = 1
```
#### Closest Solution:
```python=
def writeHDF5Meta():
    z = isinstance(data, int) or isinstance(data, float) or isinstance(data, np.integer) or isinstance(data, np.floating)
    if x:
        a = 1
    elif z:
        b = 1
    else:
        c = 1
```
```c=
  1           0 LOAD_CONST               0 (<code object writeHDF5Meta at 0x7f2a3ea3ae40, file "main.py", line 1>)
              2 LOAD_CONST               1 ('writeHDF5Meta')
              4 MAKE_FUNCTION            0
              6 STORE_NAME               0 (writeHDF5Meta)
              8 LOAD_CONST               2 (None)
             10 RETURN_VALUE

Disassembly of <code object writeHDF5Meta at 0x7f2a3ea3ae40, file "main.py", line 1>:
  2           0 LOAD_GLOBAL              0 (isinstance)
              2 LOAD_GLOBAL              1 (data)
              4 LOAD_GLOBAL              2 (int)
              6 CALL_FUNCTION            2
              8 JUMP_IF_TRUE_OR_POP     42
             10 LOAD_GLOBAL              0 (isinstance)
             12 LOAD_GLOBAL              1 (data)
             14 LOAD_GLOBAL              3 (float)
             16 CALL_FUNCTION            2
             18 JUMP_IF_TRUE_OR_POP     42
             20 LOAD_GLOBAL              0 (isinstance)
             22 LOAD_GLOBAL              1 (data)
             24 LOAD_GLOBAL              4 (np)
             26 LOAD_ATTR                5 (integer)
             28 CALL_FUNCTION            2
             30 JUMP_IF_TRUE_OR_POP     42
             32 LOAD_GLOBAL              0 (isinstance)
             34 LOAD_GLOBAL              1 (data)
             36 LOAD_GLOBAL              4 (np)
             38 LOAD_ATTR                6 (floating)
             40 CALL_FUNCTION            2
        >>   42 STORE_FAST               0 (z)

  3          44 LOAD_GLOBAL              7 (x)
             46 POP_JUMP_IF_FALSE       54

  4          48 LOAD_CONST               1 (1)
             50 STORE_FAST               1 (a)
             52 JUMP_FORWARD            14 (to 68)

  5     >>   54 LOAD_FAST                0 (z)
             56 POP_JUMP_IF_FALSE       64

  6          58 LOAD_CONST               1 (1)
             60 STORE_FAST               2 (b)
             62 JUMP_FORWARD             4 (to 68)

  8     >>   64 LOAD_CONST               1 (1)
             66 STORE_FAST               3 (c)
        >>   68 LOAD_CONST               0 (None)
             70 RETURN_VALUE
```
#### MWE data:
Bytecode for MWE:
```c=
  1           0 LOAD_CONST               0 (<code object writeHDF5Meta at 0x7f74d2146e40, file "main.py", line 1>)
              2 LOAD_CONST               1 ('writeHDF5Meta')
              4 MAKE_FUNCTION            0
              6 STORE_NAME               0 (writeHDF5Meta)
              8 LOAD_CONST               2 (None)
             10 RETURN_VALUE

Disassembly of <code object writeHDF5Meta at 0x7f74d2146e40, file "main.py", line 1>:
  2           0 LOAD_GLOBAL              0 (x)
              2 POP_JUMP_IF_FALSE       10

  3           4 LOAD_CONST               1 (1)
              6 STORE_FAST               0 (a)
              8 JUMP_FORWARD            54 (to 64)

  4     >>   10 LOAD_GLOBAL              1 (isinstance)
             12 LOAD_GLOBAL              2 (data)
             14 LOAD_GLOBAL              3 (int)
             16 CALL_FUNCTION            2
             18 POP_JUMP_IF_TRUE        54
             20 LOAD_GLOBAL              1 (isinstance)
             22 LOAD_GLOBAL              2 (data)
             24 LOAD_GLOBAL              4 (float)
             26 CALL_FUNCTION            2
             28 POP_JUMP_IF_TRUE        54
             30 LOAD_GLOBAL              1 (isinstance)
             32 LOAD_GLOBAL              2 (data)
             34 LOAD_GLOBAL              5 (np)
             36 LOAD_ATTR                6 (integer)
             38 CALL_FUNCTION            2
             40 POP_JUMP_IF_TRUE        54
             42 LOAD_GLOBAL              1 (isinstance)
             44 LOAD_GLOBAL              2 (data)
             46 LOAD_GLOBAL              5 (np)
             48 LOAD_ATTR                7 (floating)
             50 CALL_FUNCTION            2
             52 POP_JUMP_IF_FALSE       60

  5     >>   54 LOAD_CONST               1 (1)
             56 STORE_FAST               1 (b)
             58 JUMP_FORWARD             4 (to 64)

  7     >>   60 LOAD_CONST               1 (1)
             62 STORE_FAST               2 (c)
        >>   64 LOAD_CONST               0 (None)
             66 RETURN_VALUE
```

## Error 1/216
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE: Comment out one line will work (why?)
```python=
def handleRequest(self):
    for i in range(nByteMsgs):
        while True:
            try:
                break
            except EOFError:
                raise ClosedError()
    try:
        if b == 1:
            a = 2
        elif b == 2:
            if len(fnkwds) == 0:
                a = 3
            else:
                result = obj(*fnargs, **fnkwds)
                
        elif b == 3:
            returnType = 'value'
        elif b == 4:
            returnType = 'proxy'
        elif b == 5:
            result = np.fromstring(byteData[0], dtype=opts['dtype']).reshape(opts['shape'])
            returnType = 'proxy'
        elif b == 6:
            name = opts['module']
            fromlist = opts.get('fromlist', [])
            mod = builtins.__import__(name, fromlist=fromlist)
            
            if len(fromlist) == 0:
                parts = name.lstrip('.').split('.')
                result = mod
                for part in parts[1:]:
                    result = getattr(result, part)
            else:
                result = map(mod.__getattr__, fromlist)
            
        elif b == 7:
            LocalObjectProxy.releaseProxyId(opts['proxyId'])
            
        elif b == 8:
            if reqId is not None:
                result = True
                returnType = 'value'       
    except:
        z = 1
```
#### Closest Solution:
```python=
def handleRequest(self):
    for i in range(nByteMsgs):
        while True:
            try:
                break
            except EOFError:
                raise ClosedError()
    try:
        if b == 1:
            a = 2
        elif b == 2:
            if len(fnkwds) == 0:
                a = 3
            else:
                result = obj(*fnargs, **fnkwds)
                
        elif b == 3:
            returnType = 'value'
        elif b == 4:
            returnType = 'proxy'
        elif b == 5:
            result = np.fromstring(byteData[0], dtype=opts['dtype']).reshape(opts['shape'])
            returnType = 'proxy'
        elif b == 6:
            name = opts['module']
            fromlist = opts.get('fromlist', [])
            mod = builtins.__import__(name, fromlist=fromlist)
            
            if len(fromlist) == 0:
                parts = name.lstrip('.').split('.')
                result = mod
                for part in parts[1:]:
                    result = getattr(result, part)
            else:
                result = map(mod.__getattr__, fromlist)
            
        elif b == 7:
            LocalObjectProxy.releaseProxyId(opts['proxyId'])
            
        elif b == 8:
            if reqId is not None:
                # result = True
                returnType = 'value'       
    except:
        z = 1
```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```
## Error 1/217
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```

## Error 1/218
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```

## Error 1/219
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```

## Error 1/222
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```

## Error 1/223
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```

## Error 1/228
Python version: 3.7
Decompyle3: Failed
Uncompyle6: Failed
Error: `Deparsing stopped due to parse error`

### MWE:
```python=

```
#### Closest Solution:
```python=

```
```c=

```
#### MWE data:
Bytecode for MWE:
```c=

```