<commit_before>"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""

import sys
import lldb

def fuzz_obj(obj):
    obj.AppendString("another string")
    obj.AppendList(None, 0)
    obj.AppendList(lldb.SBStringList())
    obj.GetSize()
    obj.GetStringAtIndex(0xffffffff)
    obj.Clear()
    for str in obj:
        print str<commit_msg>Add fuzz call to SBStringList.AppendString(None).  LLDB should not crash.<commit_after>"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""

import sys
import lldb

def fuzz_obj(obj):
    obj.AppendString("another string")
    obj.AppendString(None)
    obj.AppendList(None, 0)
    obj.AppendList(lldb.SBStringList())
    obj.GetSize()
    obj.GetStringAtIndex(0xffffffff)
    obj.Clear()
    for str in obj:
        print str
{'fraction_non_alphanumeric': 0.0984759671746776, 'fraction_numerical': 0.004689331770222743, 'mean_word_length': 3.616216216216216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7386753', 'n_tokens_mistral': 281, 'n_tokens_neox': 272, 'n_words': 82}