<jupyter_start><jupyter_text>------ Percolation Tests on 5 x 5 Grid----- TODO- `PercolationGrid` functions tests```- connect_unblocked_neighbors()- check_scope()- x unblock_cell()- x cell_to_node()- x node_to_cell()```<jupyter_code>PTest = PercolationGrid5x5Test()
PTest.cell_given_node_test()
PTest.node_given_cell_test()
for c in range(1, 6):
  PTest.test_case_A(COL = c)
P = PercolationGrid(5)
test = PercolationGrid5x5Test()
test.draw(P)
trials = PercolationTrial5x5()
for i in range(5):
  trials.single_run(draw_each=False, draw_last=True)
  print("trial:", i)
trials.single_run(draw_each=True, draw_last=False)
trials.run_trials(30)
trials.run_trials(100)
trials.run_trials(1000)<jupyter_output>mean:   0.5963599999999999
stdev:  0.10650677956869269
0.95lo: 0.5897586414101434
0.95hi: 0.6029613585898563
{'fraction_non_alphanumeric': 0.138442521631644, 'fraction_numerical': 0.11866501854140915, 'mean_word_length': 6.864077669902913, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '289983', 'license': 'MIT', 'n_tokens_mistral': 398, 'n_tokens_neox': 336, 'n_words': 57, 'path': 'princeton-course/L2-percolation/n2-percolation-tests-5x5.ipynb', 'repo_name': 'sravyapulavarthi/algorithm-playground', 'size': '809'}