<commit_before>import unittest, sys, random, time
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_browse as h2b, h2o_exec as h2e, h2o_hosts, h2o_import as h2i

zeroList = [
        'Result9 = c.hex',
        'Result8 = c.hex',
        'Result7 = c.hex',
        'Result6 = c.hex',
        'Result5 = c.hex',
        'Result4 = c.hex',
        'Result3 = c.hex',
        'Result2 = c.hex',
        'Result1 = c.hex',
        'Result0 = c.hex',
        'Result = c.hex',
]

# randomBitVector
# randomFilter
# log
# makeEnum
# bug?
#        ['Result<n> = slice(c.hex[<col1>],<row>)',
exprList = [
        'Result<n>[,1] = (c.hex[,2]==0) ? 54321 : 54321',
        'Result<n> = c.hex[,<col1>]',
        'Result<n> = min(c.hex[,<col1>])',
        'Result<n> = max(c.hex[,<col1>]) + Result[,1]',
        'Result<n> = sum(c.hex[,<col1>]) + Result[,1]',
    ]

class Basic(unittest.TestCase):
    def tearDown(self):
        h2o.check_sandbox_for_errors()<commit_msg>assigning scalar to name of existing key, makes the name not visible to the next exec. don't do that<commit_after>import unittest, sys, random, time
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_browse as h2b, h2o_exec as h2e, h2o_hosts, h2o_import as h2i

zeroList = [
        'Result9 = c.hex',
        'Result8 = c.hex',
        'Result7 = c.hex',
        'Result6 = c.hex',
        'Result5 = c.hex',
        'Result4 = c.hex',
        'Result3 = c.hex',
        'Result2 = c.hex',
        'Result1 = c.hex',
        'Result0 = c.hex',
        'Result = c.hex',
]

# randomBitVector
# randomFilter
# log
# makeEnum
# bug?
#        ['Result<n> = slice(c.hex[<col1>],<row>)',
exprList = [
        'Result<n>[,1] = (c.hex[,2]==0) ? 54321 : 54321',
        'Result<n> = c.hex[,<col1>]',
        # assigning a scalar to an existing key, makes it get
        # treated like a scalar and disappear from visibility by the next exec
        # 'Result<n> = min(c.hex[,<col1>])',
        # 'Result<n> = max(c.hex[,<col1>]) + Result[,1]',
        # 'Result<n> = sum(c.hex[,<col1>]) + Result[,1]',
    ]

class Basic(unittest.TestCase):
    def tearDown(self):
        h2o.check_sandbox_for_errors()
{'fraction_non_alphanumeric': 0.19216589861751152, 'fraction_numerical': 0.03686635944700461, 'mean_word_length': 2.49597423510467, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '6639757', 'n_tokens_mistral': 887, 'n_tokens_neox': 846, 'n_words': 177}