INNER CODE UNIT · Python

odd

Cooler2/ApusGameEngine · tools/normalize_indent.py:55

    odd = sum(1 for x in indents if x % 2 != 0)
    pct = 100 * odd // total

    if pct > 20:
        return 'one'
    elif pct < 10:
        return 'two'
    else:
        return 'mixed'


# ---------------------------------------------------------------------------
# Transform
# ---------------------------------------------------------------------------

import re as _re

# Block-opening keywords (each matched begin/asm/try/case adds +1 to depth)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…