<s> __author__ = """<STR_LIT>""" <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from os import getcwd <EOL> from os import sys <EOL> sys . path . append ( getcwd ( ) ) <EOL> from MOAL . helpers . display import Section <EOL> from MOAL . helpers . display import prnt <EOL> from MOAL . helpers . display import print_h2 <EOL> from MOAL . helpers . datamaker import make_sparselist <EOL> from MOAL . helpers . datamaker import make_sparsematrix <EOL> from MOAL . helpers . text import gibberish2 <EOL> from pprint import pprint as ppr <EOL> from random import randrange as rr <EOL> DEBUG = True if __name__ == '<STR_LIT:__main__>' else False <EOL> if DEBUG : <EOL> with Section ( '<STR_LIT>' ) : <EOL> max = <NUM_LIT:100> <EOL> density = <NUM_LIT:0.1> <EOL> items = { rr ( <NUM_LIT:0> , max ) : gibberish2 ( ) for _ in range ( int ( max * density ) ) } <EOL> splist = make_sparselist ( items , max ) <EOL> prnt ( '<STR_LIT>' , splist ) <EOL> sparse_data = { ( x , x ) : gibberish2 ( ) for x in range ( <NUM_LIT:0> , <NUM_LIT:10> ) } <EOL> sparsematrix = make_sparsematrix ( sparse_data , max , rows = <NUM_LIT:10> , cols = <NUM_LIT:10> ) <EOL> print_h2 ( '<STR_LIT>' ) <EOL> ppr ( sparsematrix ) </s>
