<commit_before>'''Conway's Game of Life
'''

static = { 
    'block':'xx\nxx',
    'beehive':' xx \nx  x\n xx ',
    'loaf':' xx \nx  x\n x x\n   x',
    'boat':'xx \nx x\n x '
}

movers = {
    'glider':' x \n  x\nxxx',
    'lws':'x  x\n    x\nx   x\n xxxx'
}

blinkers = {             
    'blinker': 'xxx',
    'toad': ' xxx\nxxx ',
    'beacon': 'xx  \nxx  \n  xx\n  xx\n',
    'pulsar':'  xxx   xxx\n\nx    x x    x\nx    x x    x\nx    x x    x\n  xxx   xxx\n\n  xxx   xxx\nx    x x    x\nx    x x    x\nx    x x    x\n\n  xxx   xxx'
}

factories = {

}

Patterns = {}
for _ in [ static, movers, blinkers, factories ]:
    Patterns.update(_)


def rotate_90(pattern,ccw=False):
    '''
    :param: pattern - list of strings
    :param: ccw - boolean
    :return: list of strings

    '''

    nRows = len(pattern)
    nCols = max([len(r) for r in pattern])

    for y in range(nRows):
        for x in range(nCols):
            pass
    
    return ''
<commit_msg>thinking outloud<commit_after>'''Conway's Game of Life
'''

static = { 
    'block':'xx\nxx',
    'beehive':' xx \nx  x\n xx ',
    'loaf':' xx \nx  x\n x x\n   x',
    'boat':'xx \nx x\n x '
}

movers = {
    'glider':' x \n  x\nxxx',
    'lws':'x  x\n    x\nx   x\n xxxx'
}

blinkers = {             
    'blinker': 'xxx',
    'toad': ' xxx\nxxx ',
    'beacon': 'xx  \nxx  \n  xx\n  xx\n',
    'pulsar':'  xxx   xxx\n\nx    x x    x\nx    x x    x\nx    x x    x\n  xxx   xxx\n\n  xxx   xxx\nx    x x    x\nx    x x    x\nx    x x    x\n\n  xxx   xxx'
}

factories = {

}

Patterns = {}
for _ in [ static, movers, blinkers, factories ]:
    Patterns.update(_)


class Pattern(object):
    pass


def pattern_dimesions(pattern):
    '''
    :return: tuple(nRows,nColumns)

    '''
    return len(pattern),max([len(r) for r in pattern])


def rotate_90(pattern,ccw=False):
    '''
    :param: pattern - list of strings
    :param: ccw - boolean
    :return: list of strings

    '''
    
    nRows,nCols = pattern_dimensions(pattern)

    for y in range(nRows):
        for x in range(nCols):
            pass
    
    return ''

{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.0019047619047619048, 'mean_word_length': 1.7392438070404173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6680636', 'n_tokens_mistral': 927, 'n_tokens_neox': 859, 'n_words': 230}