<commit_before>Celluhs
=======

Fun with cellular automata<commit_msg>added build instructions for example simulation<commit_after><script type="text/javascript" 
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>

Celluhs
=======

Fun with cellular automata

Examples
--------

Currently the best working example is test_fredkins. To build:

    cd /path/to/Celluhs_root
    mkdir build
    cd build
    cmake ../test/ -D CMAKE_BUILD_TYPE=release
    make
    bin/test_fredkin
    
Fredkin's game has simple rules which leads to self-replication. Each cell with 
an even number of live neighbors will be dead at next time level and alive 
otherwise. An initial pattern of live cells will reproduce itself four times 
after $$2^n$$ iterations. For the 'F' pattern in the example, $$n=2$$. 
This example was adapted from <NAME>, _Lattice-Gas Cellular Automata 
and Lattice Boltzmann Models_, 2000.
{'fraction_non_alphanumeric': 0.09513513513513513, 'fraction_numerical': 0.006486486486486486, 'mean_word_length': 4.087912087912088, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2905989', 'n_tokens_mistral': 287, 'n_tokens_neox': 261, 'n_words': 103}