<commit_before>"""
Objects capable of generating a two-dimensional array of values.

Such patterns can be used as input to a Sheet, as initial or fixed
weight patterns, or for any other purpose where a two-dimensional
pattern may be needed.  Any new PatternGenerator classes added to this
directory will automatically become available for any model.

$Id$
"""
__version__='$Revision$'
# Automatically discover all .py files in this directory. 
import re,os
__all__ = [re.sub('\.py$','',f) for f in os.listdir(__path__[0])
           if re.match('^[^_].*\.py$',f)]


# CEBHACKALERT: see topo/outputfns/__init__.py
import topo
from topo.base.patterngenerator import PatternGenerator
from topo.base.parameter import PackageParameter
class PatternGeneratorParameter(PackageParameter):
    """
    """
    def __init__(self,default=None,doc='',**params):
        """
        """
        super(PatternGeneratorParameter,self).__init__(topo.patterns,PatternGenerator,default=default,doc=doc,**params)
<commit_msg>Added HACKALERT.<commit_after>"""
Objects capable of generating a two-dimensional array of values.

Such patterns can be used as input to a Sheet, as initial or fixed
weight patterns, or for any other purpose where a two-dimensional
pattern may be needed.  Any new PatternGenerator classes added to this
directory will automatically become available for any model.

$Id$
"""
__version__='$Revision$'
# Automatically discover all .py files in this directory. 
import re,os
__all__ = [re.sub('\.py$','',f) for f in os.listdir(__path__[0])
           if re.match('^[^_].*\.py$',f)]


# CEBHACKALERT: see topo/outputfns/__init__.py
import topo
from topo.base.patterngenerator import PatternGenerator
from topo.base.parameter import PackageParameter
class PatternGeneratorParameter(PackageParameter):
    """
    """
    def __init__(self,default=None,doc='',**params):
        """
        """
        super(PatternGeneratorParameter,self).__init__(topo.patterns,PatternGenerator,default=default,doc=doc,**params)


# CEBHACKALERT: Parameters such as density need to be set the same in the others that
# could be chosen...or else the pattern_present stuff needs to do things like install
# the right density and bounds...
{'fraction_non_alphanumeric': 0.10666066606660667, 'fraction_numerical': 0.0009000900090009, 'mean_word_length': 4.585427135678392, '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': '1043684', 'n_tokens_mistral': 636, 'n_tokens_neox': 615, 'n_words': 216}