MCPcopy Create free account
hub / github.com/ActiveState/code / grid_size

Function grid_size

recipes/Python/578062_Markov/recipe-578062.py:403–405  ·  view source on GitHub ↗
(string, word_size, plain_chars)

Source from the content-addressed store, hash-verified

401 return cyphertext.decode(CODEC, 'ignore'), sudoku_key, boot_strap
402
403def grid_size(string, word_size, plain_chars):
404 encode_on = set(string.encode()).difference(set(plain_chars.encode()))
405 return len(encode_on) ** word_size
406
407################################################################################
408

Callers 1

reevaluateMethod · 0.85

Calls 3

setFunction · 0.50
differenceMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected