<commit_before>#!/usr/bin/env python3

import random
import gym
from gym_minigrid.register import envSet

print('%d environments registered' % len(envSet))

for envName in sorted(envSet):
    #print(envName)

    # Load the gym environment
    env = gym.make(envName)
    env.reset()
    env.render('rgb_array')

    numActions = env.action_space.n
    for i in range(500):
        action = random.randint(0, numActions - 1)
        env.step(action)
        env.render('rgb_array')<commit_msg>Added to run_tests.sh<commit_after>#!/usr/bin/env python3

import random
import gym
from gym_minigrid.register import envSet

print('%d environments registered' % len(envSet))

for envName in sorted(envSet):
    print('testing "%s"' % envName)

    # Load the gym environment
    env = gym.make(envName)
    env.reset()
    env.render('rgb_array')

    env.seed()
    env.reset()

    numActions = env.action_space.n
    for i in range(500):
        action = random.randint(0, numActions - 1)
        env.step(action)
        env.render('rgb_array')

    env.close()
{'fraction_non_alphanumeric': 0.11992445703493862, 'fraction_numerical': 0.0113314447592068, 'mean_word_length': 3.156862745098039, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6363967', 'n_tokens_mistral': 362, 'n_tokens_neox': 346, 'n_words': 84}