code stringlengths 458 137k | apis list | extract_api stringlengths 287 754k |
|---|---|---|
import io
import os
import re
import shutil
import sys
import typing
import webbrowser
from time import sleep
import click
import pandas as pd
from whylogs.app import SessionConfig, WriterConfig
from whylogs.app.session import session_from_config
from whylogs.cli import (
OBSERVATORY_EXPLANATION,
PIPELINE_DESCRIPTION,
PROJECT_DESCRIPTION,
generate_notebooks,
)
LENDING_CLUB_CSV = "lending_club_1000.csv"
def echo(message: typing.Union[str, list], **styles):
if isinstance(message, list):
for msg in message:
click.secho(msg, **styles)
else:
click.secho(message, **styles)
NAME_FORMAT = re.compile(r"^(\w|-|_)+$")
class NameParamType(click.ParamType):
def convert(self, value, param, ctx):
if NAME_FORMAT.fullmatch(value) is None:
raise click.BadParameter(
"must contain only alphanumeric, underscore and dash characters"
)
return value
@click.command()
@click.option(
"--project-dir",
"-d",
default="./",
help="The root of the new WhyLogs profiling project.",
)
def init(project_dir):
"""
Initialize and configure a new WhyLogs project.
This guided input walks the user through setting up a new project and also
onboards a new developer in an existing project.
It scaffolds directories, sets up notebooks, creates a project file, and
appends to a `.gitignore` file.
"""
echo(INTRO_MESSAGE, fg="green")
project_dir = os.path.abspath(project_dir)
echo(f"Project path: {project_dir}")
is_project_dir_empty = len(os.listdir(path=project_dir)) == 0
if not is_project_dir_empty:
echo(EMPTY_PATH_WARNING, fg="yellow")
if not click.confirm(OVERRIDE_CONFIRM, default=False, show_default=True):
echo(DOING_NOTHING_ABORTING)
sys.exit(0)
os.chdir(project_dir)
echo(BEGIN_WORKFLOW)
echo(PROJECT_DESCRIPTION)
project_name = click.prompt(PROJECT_NAME_PROMPT, type=NameParamType())
echo(f"Using project name: {project_name}", fg="green")
echo(PIPELINE_DESCRIPTION)
pipeline_name = click.prompt(
"Pipeline name (leave blank for default pipeline name)",
type=NameParamType(),
default="default-pipeline",
)
echo(f"Using pipeline name: {pipeline_name}", fg="green")
output_path = click.prompt(
"Specify the WhyLogs output path", default="output", show_default=True
)
echo(f"Using output path: {output_path}", fg="green")
writer = WriterConfig("local", ["all"], output_path)
session_config = SessionConfig(
project_name, pipeline_name, writers=[writer], verbose=False
)
config_yml = os.path.join(project_dir, "whylogs.yml")
with open(file=config_yml, mode="w") as f:
session_config.to_yaml(f)
echo(f"Config YAML file was written to: {config_yml}\n")
if click.confirm(INITIAL_PROFILING_CONFIRM, default=True):
echo(DATA_SOURCE_MESSAGE)
choices = [
"CSV on the file system",
]
for i in range(len(choices)):
echo(f"\t{i + 1}. {choices[i]}")
choice = click.prompt("", type=click.IntRange(min=1, max=len(choices)))
assert choice == 1
full_input = profile_csv(session_config, project_dir)
echo(
f"You should find the WhyLogs output under: {os.path.join(project_dir, output_path, project_name)}",
fg="green",
)
echo(GENERATE_NOTEBOOKS)
# Hack: Takes first all numeric directory as generated datetime for now
output_full_path = os.path.join(project_dir, output_path)
generated_datetime = list(
filter(lambda x: re.match("[0-9]*", x), os.listdir(output_full_path))
)[0]
full_output_path = os.path.join(output_path, generated_datetime)
generate_notebooks(
project_dir,
{
"INPUT_PATH": full_input,
"PROFILE_DIR": full_output_path,
"GENERATED_DATETIME": generated_datetime,
},
)
echo(
f'You should find the output under: {os.path.join(project_dir, "notebooks")}'
)
echo(OBSERVATORY_EXPLANATION)
echo("Your original data (CSV file) will remain locally.")
should_upload = click.confirm(
"Would you like to proceed with sending us your statistic data?",
default=False,
show_default=True,
)
if should_upload:
echo("Uploading data to WhyLabs Observatory...")
sleep(5)
webbrowser.open(
"https://www.figma.com/proto/QBTk0N6Ad0D9hRijjhBaE0/Usability-Study-Navigation?node-id=1%3A90&viewport=185%2C235%2C0.25&scaling=min-zoom"
)
else:
echo("Skip uploading")
echo(DONE)
else:
echo("Skip initial profiling and notebook generation")
echo(DONE)
def profile_csv(session_config: SessionConfig, project_dir: str) -> str:
package_nb_path = os.path.join(os.path.dirname(__file__), "notebooks")
demo_csv = os.path.join(package_nb_path, LENDING_CLUB_CSV)
file: io.TextIOWrapper = click.prompt(
"CSV input path (leave blank to use our demo dataset)",
type=click.File(mode="rt"),
default=io.StringIO(),
show_default=False,
)
if type(file) is io.StringIO:
echo("Using the demo Lending Club Data (1K randomized samples)", fg="green")
destination_csv = os.path.join(project_dir, LENDING_CLUB_CSV)
echo("Copying the demo file to: %s" % destination_csv)
shutil.copy(demo_csv, destination_csv)
full_input = os.path.realpath(destination_csv)
else:
file.close()
full_input = os.path.realpath(file.name)
echo(f"Input file: {full_input}")
echo(RUN_PROFILING)
session = session_from_config(session_config)
df = pd.read_csv(full_input)
session.log_dataframe(df)
session.close()
return full_input
| [
"whylogs.cli.generate_notebooks",
"whylogs.app.WriterConfig",
"whylogs.app.session.session_from_config",
"whylogs.app.SessionConfig"
] | [((647, 673), 're.compile', 're.compile', (['"""^(\\\\w|-|_)+$"""'], {}), "('^(\\\\w|-|_)+$')\n", (657, 673), False, 'import re\n'), ((962, 977), 'click.command', 'click.command', ([], {}), '()\n', (975, 977), False, 'import click\n'), ((979, 1088), 'click.option', 'click.option', (['"""--project-dir"""', '"""-d"""'], {'default': '"""./"""', 'help': '"""The root of the new WhyLogs profiling project."""'}), "('--project-dir', '-d', default='./', help=\n 'The root of the new WhyLogs profiling project.')\n", (991, 1088), False, 'import click\n'), ((1495, 1523), 'os.path.abspath', 'os.path.abspath', (['project_dir'], {}), '(project_dir)\n', (1510, 1523), False, 'import os\n'), ((1851, 1872), 'os.chdir', 'os.chdir', (['project_dir'], {}), '(project_dir)\n', (1859, 1872), False, 'import os\n'), ((2346, 2434), 'click.prompt', 'click.prompt', (['"""Specify the WhyLogs output path"""'], {'default': '"""output"""', 'show_default': '(True)'}), "('Specify the WhyLogs output path', default='output',\n show_default=True)\n", (2358, 2434), False, 'import click\n'), ((2516, 2559), 'whylogs.app.WriterConfig', 'WriterConfig', (['"""local"""', "['all']", 'output_path'], {}), "('local', ['all'], output_path)\n", (2528, 2559), False, 'from whylogs.app import SessionConfig, WriterConfig\n'), ((2581, 2656), 'whylogs.app.SessionConfig', 'SessionConfig', (['project_name', 'pipeline_name'], {'writers': '[writer]', 'verbose': '(False)'}), '(project_name, pipeline_name, writers=[writer], verbose=False)\n', (2594, 2656), False, 'from whylogs.app import SessionConfig, WriterConfig\n'), ((2688, 2728), 'os.path.join', 'os.path.join', (['project_dir', '"""whylogs.yml"""'], {}), "(project_dir, 'whylogs.yml')\n", (2700, 2728), False, 'import os\n'), ((2879, 2933), 'click.confirm', 'click.confirm', (['INITIAL_PROFILING_CONFIRM'], {'default': '(True)'}), '(INITIAL_PROFILING_CONFIRM, default=True)\n', (2892, 2933), False, 'import click\n'), ((5109, 5156), 'os.path.join', 'os.path.join', (['package_nb_path', 'LENDING_CLUB_CSV'], {}), '(package_nb_path, LENDING_CLUB_CSV)\n', (5121, 5156), False, 'import os\n'), ((5875, 5910), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (5894, 5910), False, 'from whylogs.app.session import session_from_config\n'), ((5920, 5943), 'pandas.read_csv', 'pd.read_csv', (['full_input'], {}), '(full_input)\n', (5931, 5943), True, 'import pandas as pd\n'), ((600, 630), 'click.secho', 'click.secho', (['message'], {}), '(message, **styles)\n', (611, 630), False, 'import click\n'), ((1723, 1788), 'click.confirm', 'click.confirm', (['OVERRIDE_CONFIRM'], {'default': '(False)', 'show_default': '(True)'}), '(OVERRIDE_CONFIRM, default=False, show_default=True)\n', (1736, 1788), False, 'import click\n'), ((1835, 1846), 'sys.exit', 'sys.exit', (['(0)'], {}), '(0)\n', (1843, 1846), False, 'import sys\n'), ((3591, 3629), 'os.path.join', 'os.path.join', (['project_dir', 'output_path'], {}), '(project_dir, output_path)\n', (3603, 3629), False, 'import os\n'), ((3787, 3832), 'os.path.join', 'os.path.join', (['output_path', 'generated_datetime'], {}), '(output_path, generated_datetime)\n', (3799, 3832), False, 'import os\n'), ((3841, 3979), 'whylogs.cli.generate_notebooks', 'generate_notebooks', (['project_dir', "{'INPUT_PATH': full_input, 'PROFILE_DIR': full_output_path,\n 'GENERATED_DATETIME': generated_datetime}"], {}), "(project_dir, {'INPUT_PATH': full_input, 'PROFILE_DIR':\n full_output_path, 'GENERATED_DATETIME': generated_datetime})\n", (3859, 3979), False, 'from whylogs.cli import OBSERVATORY_EXPLANATION, PIPELINE_DESCRIPTION, PROJECT_DESCRIPTION, generate_notebooks\n'), ((4318, 4435), 'click.confirm', 'click.confirm', (['"""Would you like to proceed with sending us your statistic data?"""'], {'default': '(False)', 'show_default': '(True)'}), "('Would you like to proceed with sending us your statistic data?',\n default=False, show_default=True)\n", (4331, 4435), False, 'import click\n'), ((5054, 5079), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (5069, 5079), False, 'import os\n'), ((5510, 5553), 'os.path.join', 'os.path.join', (['project_dir', 'LENDING_CLUB_CSV'], {}), '(project_dir, LENDING_CLUB_CSV)\n', (5522, 5553), False, 'import os\n'), ((5625, 5663), 'shutil.copy', 'shutil.copy', (['demo_csv', 'destination_csv'], {}), '(demo_csv, destination_csv)\n', (5636, 5663), False, 'import shutil\n'), ((5685, 5718), 'os.path.realpath', 'os.path.realpath', (['destination_csv'], {}), '(destination_csv)\n', (5701, 5718), False, 'import os\n'), ((5771, 5798), 'os.path.realpath', 'os.path.realpath', (['file.name'], {}), '(file.name)\n', (5787, 5798), False, 'import os\n'), ((555, 581), 'click.secho', 'click.secho', (['msg'], {}), '(msg, **styles)\n', (566, 581), False, 'import click\n'), ((823, 912), 'click.BadParameter', 'click.BadParameter', (['"""must contain only alphanumeric, underscore and dash characters"""'], {}), "(\n 'must contain only alphanumeric, underscore and dash characters')\n", (841, 912), False, 'import click\n'), ((1597, 1625), 'os.listdir', 'os.listdir', ([], {'path': 'project_dir'}), '(path=project_dir)\n', (1607, 1625), False, 'import os\n'), ((4578, 4586), 'time.sleep', 'sleep', (['(5)'], {}), '(5)\n', (4583, 4586), False, 'from time import sleep\n'), ((4599, 4763), 'webbrowser.open', 'webbrowser.open', (['"""https://www.figma.com/proto/QBTk0N6Ad0D9hRijjhBaE0/Usability-Study-Navigation?node-id=1%3A90&viewport=185%2C235%2C0.25&scaling=min-zoom"""'], {}), "(\n 'https://www.figma.com/proto/QBTk0N6Ad0D9hRijjhBaE0/Usability-Study-Navigation?node-id=1%3A90&viewport=185%2C235%2C0.25&scaling=min-zoom'\n )\n", (4614, 4763), False, 'import webbrowser\n'), ((5277, 5298), 'click.File', 'click.File', ([], {'mode': '"""rt"""'}), "(mode='rt')\n", (5287, 5298), False, 'import click\n'), ((5316, 5329), 'io.StringIO', 'io.StringIO', ([], {}), '()\n', (5327, 5329), False, 'import io\n'), ((3360, 3412), 'os.path.join', 'os.path.join', (['project_dir', 'output_path', 'project_name'], {}), '(project_dir, output_path, project_name)\n', (3372, 3412), False, 'import os\n'), ((3717, 3745), 'os.listdir', 'os.listdir', (['output_full_path'], {}), '(output_full_path)\n', (3727, 3745), False, 'import os\n'), ((4137, 4175), 'os.path.join', 'os.path.join', (['project_dir', '"""notebooks"""'], {}), "(project_dir, 'notebooks')\n", (4149, 4175), False, 'import os\n'), ((3694, 3715), 're.match', 're.match', (['"""[0-9]*"""', 'x'], {}), "('[0-9]*', x)\n", (3702, 3715), False, 'import re\n')] |
import json
from uuid import uuid4
import datetime
from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile
from whylogs.core.annotation_profiling import TrackBB, BB_ATTRIBUTES
import os
TEST_DATA_PATH = os.path.abspath(os.path.join(os.path.realpath(
os.path.dirname(__file__)), os.pardir, os.pardir, os.pardir, "testdata"))
def test_track_bb_annotation():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
test_annotation_path = os.path.join(
TEST_DATA_PATH, "files", "yolo_bounding_box.jsonl")
# total_default_features = num_image_features + num_metadata_features
profile_1 = DatasetProfile(name="test",
session_id=shared_session_id,
session_timestamp=now,
tags={"key": "value"},
metadata={"key": "x1"},)
trackbb = TrackBB(test_annotation_path)
trackbb(profile_1)
columns = profile_1.columns
assert len(columns) == len(BB_ATTRIBUTES)
for each_attribute in BB_ATTRIBUTES:
assert columns.get(each_attribute, None) is not None
if each_attribute in ("annotation_count", "area_coverage", "annotation_density"):
assert columns[each_attribute].number_tracker.count == 100
else:
assert columns[each_attribute].number_tracker.count == 4183
def test_track_json_annotation():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
num_bb_features = len(BB_ATTRIBUTES)
test_annotation_path = os.path.join(
TEST_DATA_PATH, "files", "yolo_bounding_box.jsonl")
profile_1 = DatasetProfile(name="test",
session_id=shared_session_id,
session_timestamp=now,
tags={"key": "value"},
metadata={"key": "x1"},)
objs = [json.loads(eachline)
for eachline in open(test_annotation_path, "r")]
trackbb = TrackBB(obj=objs)
trackbb(profile_1)
columns = profile_1.columns
assert len(columns) == len(BB_ATTRIBUTES)
assert columns["annotation_count"].number_tracker.count == 100
| [
"whylogs.core.annotation_profiling.TrackBB",
"whylogs.core.datasetprofile.DatasetProfile"
] | [((409, 435), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (433, 435), False, 'import datetime\n'), ((500, 564), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""files"""', '"""yolo_bounding_box.jsonl"""'], {}), "(TEST_DATA_PATH, 'files', 'yolo_bounding_box.jsonl')\n", (512, 564), False, 'import os\n'), ((665, 797), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'x1'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'x1'})\n", (679, 797), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((932, 961), 'whylogs.core.annotation_profiling.TrackBB', 'TrackBB', (['test_annotation_path'], {}), '(test_annotation_path)\n', (939, 961), False, 'from whylogs.core.annotation_profiling import TrackBB, BB_ATTRIBUTES\n'), ((1460, 1486), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (1484, 1486), False, 'import datetime\n'), ((1592, 1656), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""files"""', '"""yolo_bounding_box.jsonl"""'], {}), "(TEST_DATA_PATH, 'files', 'yolo_bounding_box.jsonl')\n", (1604, 1656), False, 'import os\n'), ((1683, 1815), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'x1'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'x1'})\n", (1697, 1815), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((2045, 2062), 'whylogs.core.annotation_profiling.TrackBB', 'TrackBB', ([], {'obj': 'objs'}), '(obj=objs)\n', (2052, 2062), False, 'from whylogs.core.annotation_profiling import TrackBB, BB_ATTRIBUTES\n'), ((460, 467), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (465, 467), False, 'from uuid import uuid4\n'), ((1511, 1518), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (1516, 1518), False, 'from uuid import uuid4\n'), ((1949, 1969), 'json.loads', 'json.loads', (['eachline'], {}), '(eachline)\n', (1959, 1969), False, 'import json\n'), ((290, 315), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (305, 315), False, 'import os\n')] |
import logging
import re
from typing import List, Mapping, Optional
from google.protobuf.json_format import Parse
from whylogs.proto import (
DatasetConstraintMsg,
DatasetProperties,
NumberSummary,
Op,
SummaryConstraintMsg,
SummaryConstraintMsgs,
ValueConstraintMsg,
ValueConstraintMsgs,
)
from whylogs.util.protobuf import message_to_json
logger = logging.getLogger(__name__)
"""
Dict indexed by constraint operator.
These help translate from constraint schema to language-specific functions that are faster to evaluate.
This is just a form of currying, and I chose to bind the boolean comparison operator first.
"""
_value_funcs = {
# functions that compare an incoming feature value to a literal value.
Op.LT: lambda x: lambda v: v < x, # assert incoming value 'v' is less than some fixed value 'x'
Op.LE: lambda x: lambda v: v <= x,
Op.EQ: lambda x: lambda v: v == x,
Op.NE: lambda x: lambda v: v != x,
Op.GE: lambda x: lambda v: v >= x,
Op.GT: lambda x: lambda v: v > x, # assert incoming value 'v' is greater than some fixed value 'x'
Op.MATCH: lambda x: lambda v: re.match(x, v) is not None,
Op.NOMATCH: lambda x: lambda v: re.match(x, v) is None,
}
_summary_funcs1 = {
# functions that compare a summary field to a literal value.
Op.LT: lambda f, v: lambda s: getattr(s, f) < v,
Op.LE: lambda f, v: lambda s: getattr(s, f) <= v,
Op.EQ: lambda f, v: lambda s: getattr(s, f) == v,
Op.NE: lambda f, v: lambda s: getattr(s, f) != v,
Op.GE: lambda f, v: lambda s: getattr(s, f) >= v,
Op.GT: lambda f, v: lambda s: getattr(s, f) > v,
}
_summary_funcs2 = {
# functions that compare two summary fields.
Op.LT: lambda f, f2: lambda s: getattr(s, f) < getattr(s, f2),
Op.LE: lambda f, f2: lambda s: getattr(s, f) <= getattr(s, f2),
Op.EQ: lambda f, f2: lambda s: getattr(s, f) == getattr(s, f2),
Op.NE: lambda f, f2: lambda s: getattr(s, f) != getattr(s, f2),
Op.GE: lambda f, f2: lambda s: getattr(s, f) >= getattr(s, f2),
Op.GT: lambda f, f2: lambda s: getattr(s, f) > getattr(s, f2),
}
class ValueConstraint:
"""
ValueConstraints express a binary boolean relationship between an implied numeric value and a literal.
When associated with a ColumnProfile, the relation is evaluated for every incoming value that is processed by whylogs.
Parameters
----------
op : whylogs.proto.Op (required)
Enumeration of binary comparison operator applied between static value and incoming stream.
Enum values are mapped to operators like '==', '<', and '<=', etc.
value : (required)
Static value to compare against incoming stream using operator specified in `op`.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
"""
def __init__(self, op: Op, value=None, regex_pattern: str = None, name: str = None, verbose=False):
self._name = name
self._verbose = verbose
self.op = op
self.total = 0
self.failures = 0
if value is not None and regex_pattern is None:
# numeric value
self.value = value
self.func = _value_funcs[op](value)
elif regex_pattern is not None and value is None:
# Regex pattern
self.regex_pattern = regex_pattern
self.func = _value_funcs[op](regex_pattern)
else:
raise ValueError("Value constraint must specify a numeric value or regex pattern, but not both")
@property
def name(self):
if getattr(self, "value", None):
return self._name if self._name is not None else f"value {Op.Name(self.op)} {self.value}"
else:
return self._name if self._name is not None else f"value {Op.Name(self.op)} {self.regex_pattern}"
def update(self, v) -> bool:
self.total += 1
if self.op in [Op.MATCH, Op.NOMATCH] and not isinstance(v, str):
self.failures += 1
if self._verbose:
logger.info(f"value constraint {self.name} failed: value {v} not a string")
elif not self.func(v):
self.failures += 1
if self._verbose:
logger.info(f"value constraint {self.name} failed on value {v}")
@staticmethod
def from_protobuf(msg: ValueConstraintMsg) -> "ValueConstraint":
return ValueConstraint(msg.op, msg.value, name=msg.name, verbose=msg.verbose)
def to_protobuf(self) -> ValueConstraintMsg:
if hasattr(self, "value"):
return ValueConstraintMsg(
name=self.name,
op=self.op,
value=self.value,
verbose=self._verbose,
)
else:
return ValueConstraintMsg(
name=self.name,
op=self.op,
regex_pattern=self.regex_pattern,
verbose=self._verbose,
)
def report(self):
return (self.name, self.total, self.failures)
class SummaryConstraint:
"""
Summary constraints specify a relationship between a summary field and a static value,
or between two summary fields.
e.g. 'min' < 6
'std_dev' < 2.17
'min' > 'avg'
Parameters
----------
first_field : str
Name of field in NumberSummary that will be compared against either a second field or a static value.
op : whylogs.proto.Op (required)
Enumeration of binary comparison operator applied between summary values.
Enum values are mapped to operators like '==', '<', and '<=', etc.
value : (one-of)
Static value to be compared against summary field specified in `first_field`.
Only one of `value` or `second_field` should be supplied.
second_field : (one-of)
Name of second field in NumberSummary to be compared against summary field specified in `first_field`.
Only one of `value` or `second_field` should be supplied.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
"""
def __init__(
self,
first_field: str,
op: Op,
value=None,
second_field: str = None,
name: str = None,
verbose=False,
):
self._verbose = verbose
self._name = name
self.op = op
self.first_field = first_field
self.second_field = second_field
self.total = 0
self.failures = 0
if value is not None and second_field is None:
# field-value summary comparison
self.value = value
self.func = _summary_funcs1[op](first_field, value)
elif second_field is not None and value is None:
# field-field summary comparison
self.second_field = second_field
self.func = _summary_funcs2[op](first_field, second_field)
else:
raise ValueError("Summary constraint must specify a second value or field name, but not both")
@property
def name(self):
return self._name if self._name is not None else f"summary {self.first_field} {Op.Name(self.op)} {self.value}/{self.second_field}"
def update(self, summ: NumberSummary) -> bool:
self.total += 1
if not self.func(summ):
self.failures += 1
if self._verbose:
logger.info(f"summary constraint {self.name} failed")
@staticmethod
def from_protobuf(msg: SummaryConstraintMsg) -> "SummaryConstraint":
if msg.HasField("value") and not msg.HasField("second_field"):
return SummaryConstraint(
msg.first_field,
msg.op,
value=msg.value,
name=msg.name,
verbose=msg.verbose,
)
elif msg.HasField("second_field") and not msg.HasField("value"):
return SummaryConstraint(
msg.first_field,
msg.op,
second_field=msg.second_field,
name=msg.name,
verbose=msg.verbose,
)
else:
raise ValueError("SummaryConstraintMsg must specify a value or second field name, but not both")
def to_protobuf(self) -> SummaryConstraintMsg:
if self.second_field is None:
msg = SummaryConstraintMsg(
name=self.name,
first_field=self.first_field,
op=self.op,
value=self.value,
verbose=self._verbose,
)
else:
msg = SummaryConstraintMsg(
name=self.name,
first_field=self.first_field,
op=self.op,
second_field=self.second_field,
verbose=self._verbose,
)
return msg
def report(self):
return (self.name, self.total, self.failures)
class ValueConstraints:
def __init__(self, constraints: List[ValueConstraint] = []):
self.constraints = constraints
@staticmethod
def from_protobuf(msg: ValueConstraintMsgs) -> "ValueConstraints":
v = [ValueConstraint.from_protobuf(c) for c in msg.constraints]
if len(v) > 0:
return ValueConstraints(v)
return None
def to_protobuf(self) -> ValueConstraintMsgs:
v = [c.to_protobuf() for c in self.constraints]
if len(v) > 0:
vcmsg = ValueConstraintMsgs()
vcmsg.constraints.extend(v)
return vcmsg
return None
def update(self, v):
for c in self.constraints:
c.update(v)
def report(self) -> List[tuple]:
v = [c.report() for c in self.constraints]
if len(v) > 0:
return v
return None
class SummaryConstraints:
def __init__(self, constraints: List[SummaryConstraint]):
self.constraints = constraints
@staticmethod
def from_protobuf(msg: SummaryConstraintMsgs) -> "SummaryConstraints":
v = [SummaryConstraint.from_protobuf(c) for c in msg.constraints]
if len(v) > 0:
return SummaryConstraints(v)
return None
def to_protobuf(self) -> SummaryConstraintMsgs:
v = [c.to_protobuf() for c in self.constraints]
if len(v) > 0:
scmsg = SummaryConstraintMsgs()
scmsg.constraints.extend(v)
return scmsg
return None
def update(self, v):
for c in self.constraints:
c.update(v)
def report(self) -> List[tuple]:
v = [c.report() for c in self.constraints]
if len(v) > 0:
return v
return None
class DatasetConstraints:
def __init__(
self,
props: DatasetProperties,
value_constraints: Optional[Mapping[str, ValueConstraints]] = None,
summary_constraints: Optional[Mapping[str, SummaryConstraints]] = None,
):
self.dataset_properties = props
# repackage lists of constraints if necessary
if value_constraints is None:
value_constraints = dict()
for k, v in value_constraints.items():
if isinstance(v, list):
value_constraints[k] = ValueConstraints(v)
self.value_constraint_map = value_constraints
if summary_constraints is None:
summary_constraints = dict()
for k, v in summary_constraints.items():
if isinstance(v, list):
summary_constraints[k] = SummaryConstraints(v)
self.summary_constraint_map = summary_constraints
def __getitem__(self, key):
if key in self.value_constraint_map:
return self.value_constraint_map[key]
return None
@staticmethod
def from_protobuf(msg: DatasetConstraintMsg) -> "DatasetConstraints":
vm = dict([(k, ValueConstraints.from_protobuf(v)) for k, v in msg.value_constraints.items()])
sm = dict([(k, SummaryConstraints.from_protobuf(v)) for k, v in msg.summary_constraints.items()])
return DatasetConstraints(msg.properties, vm, sm)
@staticmethod
def from_json(data: str) -> "DatasetConstraints":
msg = Parse(data, DatasetConstraintMsg())
return DatasetConstraints.from_protobuf(msg)
def to_protobuf(self) -> DatasetConstraintMsg:
# construct tuple for each column, (name, [constraints,...])
# turn that into a map indexed by column name
vm = dict([(k, v.to_protobuf()) for k, v in self.value_constraint_map.items()])
sm = dict([(k, s.to_protobuf()) for k, s in self.summary_constraint_map.items()])
return DatasetConstraintMsg(
properties=self.dataset_properties,
value_constraints=vm,
summary_constraints=sm,
)
def to_json(self) -> str:
return message_to_json(self.to_protobuf())
def report(self):
l1 = [(k, v.report()) for k, v in self.value_constraint_map.items()]
l2 = [(k, s.report()) for k, s in self.summary_constraint_map.items()]
return l1 + l2
| [
"whylogs.proto.DatasetConstraintMsg",
"whylogs.proto.SummaryConstraintMsg",
"whylogs.proto.Op.Name",
"whylogs.proto.SummaryConstraintMsgs",
"whylogs.proto.ValueConstraintMsg",
"whylogs.proto.ValueConstraintMsgs"
] | [((384, 411), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (401, 411), False, 'import logging\n'), ((12934, 13041), 'whylogs.proto.DatasetConstraintMsg', 'DatasetConstraintMsg', ([], {'properties': 'self.dataset_properties', 'value_constraints': 'vm', 'summary_constraints': 'sm'}), '(properties=self.dataset_properties, value_constraints=\n vm, summary_constraints=sm)\n', (12954, 13041), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((4729, 4821), 'whylogs.proto.ValueConstraintMsg', 'ValueConstraintMsg', ([], {'name': 'self.name', 'op': 'self.op', 'value': 'self.value', 'verbose': 'self._verbose'}), '(name=self.name, op=self.op, value=self.value, verbose=\n self._verbose)\n', (4747, 4821), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((4929, 5037), 'whylogs.proto.ValueConstraintMsg', 'ValueConstraintMsg', ([], {'name': 'self.name', 'op': 'self.op', 'regex_pattern': 'self.regex_pattern', 'verbose': 'self._verbose'}), '(name=self.name, op=self.op, regex_pattern=self.\n regex_pattern, verbose=self._verbose)\n', (4947, 5037), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((8651, 8775), 'whylogs.proto.SummaryConstraintMsg', 'SummaryConstraintMsg', ([], {'name': 'self.name', 'first_field': 'self.first_field', 'op': 'self.op', 'value': 'self.value', 'verbose': 'self._verbose'}), '(name=self.name, first_field=self.first_field, op=self.\n op, value=self.value, verbose=self._verbose)\n', (8671, 8775), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((8898, 9036), 'whylogs.proto.SummaryConstraintMsg', 'SummaryConstraintMsg', ([], {'name': 'self.name', 'first_field': 'self.first_field', 'op': 'self.op', 'second_field': 'self.second_field', 'verbose': 'self._verbose'}), '(name=self.name, first_field=self.first_field, op=self.\n op, second_field=self.second_field, verbose=self._verbose)\n', (8918, 9036), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((9747, 9768), 'whylogs.proto.ValueConstraintMsgs', 'ValueConstraintMsgs', ([], {}), '()\n', (9766, 9768), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((10625, 10648), 'whylogs.proto.SummaryConstraintMsgs', 'SummaryConstraintMsgs', ([], {}), '()\n', (10646, 10648), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((12489, 12511), 'whylogs.proto.DatasetConstraintMsg', 'DatasetConstraintMsg', ([], {}), '()\n', (12509, 12511), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((1142, 1156), 're.match', 're.match', (['x', 'v'], {}), '(x, v)\n', (1150, 1156), False, 'import re\n'), ((1206, 1220), 're.match', 're.match', (['x', 'v'], {}), '(x, v)\n', (1214, 1220), False, 'import re\n'), ((7459, 7475), 'whylogs.proto.Op.Name', 'Op.Name', (['self.op'], {}), '(self.op)\n', (7466, 7475), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((3838, 3854), 'whylogs.proto.Op.Name', 'Op.Name', (['self.op'], {}), '(self.op)\n', (3845, 3854), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((3954, 3970), 'whylogs.proto.Op.Name', 'Op.Name', (['self.op'], {}), '(self.op)\n', (3961, 3970), False, 'from whylogs.proto import DatasetConstraintMsg, DatasetProperties, NumberSummary, Op, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n')] |
import numpy as np
import pandas as pd
import pytest
from whylogs.core.types import TypedDataConverter
_TEST_NULL_DATA = [
([None, np.nan, None] * 3, 9),
([pd.Series(data={"a": None, "b": None}, index=["x", "y"]), pd.Series(data={"c": None, "d": 1}, index=["x", "y"])], 2),
([[None, np.nan], [np.nan], [None]], 3),
([[None, 1], [None]], 1),
([np.zeros(3)], 0),
]
def test_invalid_yaml_returns_string():
x = " \tSr highway safety Specialist"
assert x == TypedDataConverter.convert(x)
# Just verify that `x` is invalid yaml
import yaml
try:
yaml.safe_load(x)
raise RuntimeError("Should raise exception")
except yaml.scanner.ScannerError:
pass
@pytest.mark.parametrize("data,nulls_expected", _TEST_NULL_DATA)
def test_are_nulls(data, nulls_expected):
null_count = 0
for val in data:
if TypedDataConverter._are_nulls(val):
null_count += 1
assert null_count == nulls_expected
| [
"whylogs.core.types.TypedDataConverter._are_nulls",
"whylogs.core.types.TypedDataConverter.convert"
] | [((718, 781), 'pytest.mark.parametrize', 'pytest.mark.parametrize', (['"""data,nulls_expected"""', '_TEST_NULL_DATA'], {}), "('data,nulls_expected', _TEST_NULL_DATA)\n", (741, 781), False, 'import pytest\n'), ((485, 514), 'whylogs.core.types.TypedDataConverter.convert', 'TypedDataConverter.convert', (['x'], {}), '(x)\n', (511, 514), False, 'from whylogs.core.types import TypedDataConverter\n'), ((593, 610), 'yaml.safe_load', 'yaml.safe_load', (['x'], {}), '(x)\n', (607, 610), False, 'import yaml\n'), ((875, 909), 'whylogs.core.types.TypedDataConverter._are_nulls', 'TypedDataConverter._are_nulls', (['val'], {}), '(val)\n', (904, 909), False, 'from whylogs.core.types import TypedDataConverter\n'), ((166, 222), 'pandas.Series', 'pd.Series', ([], {'data': "{'a': None, 'b': None}", 'index': "['x', 'y']"}), "(data={'a': None, 'b': None}, index=['x', 'y'])\n", (175, 222), True, 'import pandas as pd\n'), ((224, 277), 'pandas.Series', 'pd.Series', ([], {'data': "{'c': None, 'd': 1}", 'index': "['x', 'y']"}), "(data={'c': None, 'd': 1}, index=['x', 'y'])\n", (233, 277), True, 'import pandas as pd\n'), ((365, 376), 'numpy.zeros', 'np.zeros', (['(3)'], {}), '(3)\n', (373, 376), True, 'import numpy as np\n')] |
#!/usr/bin/env python3
"""
TODO:
* Date parsing compatible with EasyDateTimeParser (Java)
"""
from logging import getLogger
from whylogs.util import protobuf
CSV_READER_BATCH_SIZE = int(1e4)
OUTPUT_DATE_FORMAT = "%Y/%m/%d"
LOGGER = "whylogs.logs.profiler"
def write_protobuf(vals: list, fname):
"""
Write a list of objects with a `to_protobuf()` method to a binary file.
`vals` must be iterable
"""
serialized = [x.to_protobuf() for x in vals]
getLogger(LOGGER).info("Writing to protobuf binary file: {}".format(fname))
protobuf.write_multi_msg(serialized, fname)
def df_to_records(df, dropna=True):
"""
Convert a dataframe to a list of dictionaries, one per row, dropping null
values
"""
import pandas as pd
records = df.to_dict(orient="records")
if dropna:
records = [{k: v for k, v in m.items() if pd.notnull(v)} for m in records]
return records
def csv_reader(f, date_format: str = None, dropna=False, infer_dtypes=False, **kwargs):
"""
Wrapper for `pandas.read_csv` to return an iterator to return dict
records for a CSV file
See also `pandas.read_csv`
Parameters
----------
f : str, path object, or file-like object
File to read from. See `pandas.read_csv` documentation
date_format : str
If specified, string format for the date. See `pd.datetime.strptime`
dropna : bool
Remove null values from returned records
infer_dtypes : bool
Automatically infer data types (standard pandas behavior). Else,
return all items as strings (except specified date columns)
**kwargs : passed to `pandas.read_csv`
"""
import pandas as pd
date_parser = None
if date_format is not None:
def date_parser(x):
return pd.datetime.strptime(x, date_format) # noqa pep8
opts = {
"chunksize": CSV_READER_BATCH_SIZE,
"date_parser": date_parser,
}
if not infer_dtypes:
# HACKY way not parse any entries and return strings
opts["converters"] = {i: str for i in range(10000)}
opts.update(kwargs)
for batch in pd.read_csv(f, **opts):
records = df_to_records(batch, dropna=dropna)
for record in records:
yield record
def run(
input_path,
datetime: str = None,
delivery_stream=None,
fmt=None,
limit=-1,
output_prefix=None,
region=None,
separator=None,
dropna=False,
infer_dtypes=False,
):
"""
Run the profiler on CSV data
Output Notes
------------
<output_prefix>_<name>_summary.csv
Dataset profile. Contains scalar statistics per column
<output_prefix>_<name>_histogram.json
Histograms for each column for dataset `name`
<output_prefix>_<name>_strings.json
Frequent strings
<output_prefix>.json
DatasetSummaries, nested JSON summaries of dataset statistics
<output_prefix>.bin
Binary protobuf output of DatasetProfile
Parameters
----------
input_path : str
Input CSV file
datetime : str
Column containing timestamps. If missing, we assume the dataset is
running in batch mode
delivery_stream : str
[IGNORED] The delivery stream name
fmt : str
Format of the datetime column, used if `datetime` is specified.
If not specified, the format will be attempt to be inferred.
limit : int
Limit the number of entries to processes
output_prefix : str
Specify a prefix for the output files. By default, this will be
derived from the input path to generate files in the input directory.
Can include folders
region : str
[IGNORED] AWS region name for Firehose
separator : str
Record separator. Default = ','
dropna : bool
Drop null values when reading
infer_dtypes : bool
Infer input datatypes when reading. If false, treat inputs as
un-converted strings.
"""
datetime_col = datetime # don't shadow the standard module name
import os
from datetime import datetime
from whylogs.logs import DatasetProfile, DatasetSummaries
from whylogs.util import message_to_json
logger = getLogger(LOGGER)
# Parse arguments
if separator is None:
separator = ","
name = os.path.basename(input_path)
parse_dates = False
if datetime_col is not None:
parse_dates = [datetime_col]
nrows = None
if limit > 0:
nrows = limit
if output_prefix is None:
import random
import time
parent_folder = os.path.dirname(os.path.realpath(input_path))
basename = os.path.splitext(os.path.basename(input_path))[0]
epoch_minutes = int(time.time() / 60)
output_base = "{}.{}-{}-{}".format(
basename,
epoch_minutes,
random.randint(100000, 999999),
random.randint(100000, 999999),
)
output_prefix = os.path.join(parent_folder, output_base)
output_base = output_prefix
binary_output_path = output_base + ".bin"
json_output_path = output_base + ".json"
# Process records
reader = csv_reader(
input_path,
fmt,
parse_dates=parse_dates,
nrows=nrows,
sep=separator,
dropna=dropna,
infer_dtypes=infer_dtypes,
)
profiles = {}
for record in reader:
dt = record.get(datetime_col, datetime.now(datetime.timezone.utc))
assert isinstance(dt, datetime)
dt_str = dt.strftime(OUTPUT_DATE_FORMAT)
try:
ds = profiles[dt_str]
except KeyError:
ds = DatasetProfile(name, dt)
profiles[dt_str] = ds
ds.track(record)
logger.info("Finished collecting statistics")
# Build summaries for the JSON output
summaries = DatasetSummaries(profiles={k: v.to_summary() for k, v in profiles.items()})
with open(json_output_path, "wt") as fp:
logger.info("Writing JSON summaries to: {}".format(json_output_path))
fp.write(message_to_json(summaries))
# Write the protobuf binary file
write_protobuf(profiles.values(), binary_output_path)
return profiles
if __name__ == "__main__":
import argh
from whylogs.logs import display_logging
display_logging("DEBUG")
argh.dispatch_command(run)
| [
"whylogs.logs.display_logging",
"whylogs.logs.DatasetProfile",
"whylogs.util.message_to_json",
"whylogs.util.protobuf.write_multi_msg"
] | [((558, 601), 'whylogs.util.protobuf.write_multi_msg', 'protobuf.write_multi_msg', (['serialized', 'fname'], {}), '(serialized, fname)\n', (582, 601), False, 'from whylogs.util import protobuf\n'), ((2149, 2171), 'pandas.read_csv', 'pd.read_csv', (['f'], {}), '(f, **opts)\n', (2160, 2171), True, 'import pandas as pd\n'), ((4250, 4267), 'logging.getLogger', 'getLogger', (['LOGGER'], {}), '(LOGGER)\n', (4259, 4267), False, 'from logging import getLogger\n'), ((4352, 4380), 'os.path.basename', 'os.path.basename', (['input_path'], {}), '(input_path)\n', (4368, 4380), False, 'import os\n'), ((6339, 6363), 'whylogs.logs.display_logging', 'display_logging', (['"""DEBUG"""'], {}), "('DEBUG')\n", (6354, 6363), False, 'from whylogs.logs import display_logging\n'), ((6368, 6394), 'argh.dispatch_command', 'argh.dispatch_command', (['run'], {}), '(run)\n', (6389, 6394), False, 'import argh\n'), ((5005, 5045), 'os.path.join', 'os.path.join', (['parent_folder', 'output_base'], {}), '(parent_folder, output_base)\n', (5017, 5045), False, 'import os\n'), ((478, 495), 'logging.getLogger', 'getLogger', (['LOGGER'], {}), '(LOGGER)\n', (487, 495), False, 'from logging import getLogger\n'), ((1811, 1847), 'pandas.datetime.strptime', 'pd.datetime.strptime', (['x', 'date_format'], {}), '(x, date_format)\n', (1831, 1847), True, 'import pandas as pd\n'), ((4645, 4673), 'os.path.realpath', 'os.path.realpath', (['input_path'], {}), '(input_path)\n', (4661, 4673), False, 'import os\n'), ((4895, 4925), 'random.randint', 'random.randint', (['(100000)', '(999999)'], {}), '(100000, 999999)\n', (4909, 4925), False, 'import random\n'), ((4939, 4969), 'random.randint', 'random.randint', (['(100000)', '(999999)'], {}), '(100000, 999999)\n', (4953, 4969), False, 'import random\n'), ((5474, 5509), 'datetime.datetime.now', 'datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (5486, 5509), False, 'from datetime import datetime\n'), ((6099, 6125), 'whylogs.util.message_to_json', 'message_to_json', (['summaries'], {}), '(summaries)\n', (6114, 6125), False, 'from whylogs.util import message_to_json\n'), ((4711, 4739), 'os.path.basename', 'os.path.basename', (['input_path'], {}), '(input_path)\n', (4727, 4739), False, 'import os\n'), ((4772, 4783), 'time.time', 'time.time', ([], {}), '()\n', (4781, 4783), False, 'import time\n'), ((5689, 5713), 'whylogs.logs.DatasetProfile', 'DatasetProfile', (['name', 'dt'], {}), '(name, dt)\n', (5703, 5713), False, 'from whylogs.logs import DatasetProfile, DatasetSummaries\n'), ((878, 891), 'pandas.notnull', 'pd.notnull', (['v'], {}), '(v)\n', (888, 891), True, 'import pandas as pd\n')] |
import copy
import datetime
import json
import logging
import numbers
import re
from typing import Any, List, Mapping, Optional, Set, Tuple, Union
import datasketches
import jsonschema
import numpy as np
import pandas as pd
from datasketches import theta_a_not_b, update_theta_sketch
from dateutil.parser import parse
from google.protobuf.json_format import Parse
from google.protobuf.struct_pb2 import ListValue
from jsonschema import validate
from whylogs.core.statistics.hllsketch import HllSketch
from whylogs.core.statistics.numbertracker import DEFAULT_HIST_K
from whylogs.core.summaryconverters import (
compute_chi_squared_test_p_value,
compute_kl_divergence,
ks_test_compute_p_value,
single_quantile_from_sketch,
)
from whylogs.core.types import TypedDataConverter
from whylogs.proto import (
ApplyFunctionMsg,
DatasetConstraintMsg,
DatasetProperties,
InferredType,
KllFloatsSketchMessage,
MultiColumnValueConstraintMsg,
Op,
ReferenceDistributionContinuousMessage,
ReferenceDistributionDiscreteMessage,
SummaryBetweenConstraintMsg,
SummaryConstraintMsg,
SummaryConstraintMsgs,
ValueConstraintMsg,
ValueConstraintMsgs,
)
from whylogs.util.dsketch import FrequentItemsSketch
from whylogs.util.protobuf import message_to_json
TYPES = InferredType.Type
logger = logging.getLogger(__name__)
def _try_parse_strftime_format(strftime_val: str, format: str) -> Optional[datetime.datetime]:
"""
Return whether the string is in a strftime format.
:param strftime_val: str, string to check for date
:param format: format to check if strftime_val can be parsed
:return None if not parseable, otherwise the parsed datetime.datetime object
"""
parsed = None
try:
parsed = datetime.datetime.strptime(strftime_val, format)
except (ValueError, TypeError):
pass
return parsed
def _try_parse_dateutil(dateutil_val: str, ref_val=None) -> Optional[datetime.datetime]:
"""
Return whether the string can be interpreted as a date.
:param dateutil_val: str, string to check for date
:param ref_val: any, not used, interface design requirement
:return None if not parseable, otherwise the parsed datetime.datetime object
"""
parsed = None
try:
parsed = parse(dateutil_val)
except (ValueError, TypeError):
pass
return parsed
def _try_parse_json(json_string: str, ref_val=None) -> Optional[dict]:
"""
Return whether the string can be interpreted as json.
:param json_string: str, string to check for json
:param ref_val: any, not used, interface design requirement
:return None if not parseable, otherwise the parsed json object
"""
parsed = None
try:
parsed = json.loads(json_string)
except (ValueError, TypeError):
pass
return parsed
def _matches_json_schema(json_data: Union[str, dict], json_schema: Union[str, dict]) -> bool:
"""
Return whether the provided json matches the provided schema.
:param json_data: json object to check
:param json_schema: schema to check if the json object matches it
:return True if the json data matches the schema, False otherwise
"""
if isinstance(json_schema, str):
try:
json_schema = json.loads(json_schema)
except (ValueError, TypeError):
return False
if isinstance(json_data, str):
try:
json_data = json.loads(json_data)
except (ValueError, TypeError):
return False
try:
validate(instance=json_data, schema=json_schema)
except (jsonschema.exceptions.ValidationError, jsonschema.exceptions.SchemaError):
return False
return True
# restrict the set length for printing the name of the constraint which contains a reference set
MAX_SET_DISPLAY_MESSAGE_LENGTH = 20
"""
Dict indexed by constraint operator.
These help translate from constraint schema to language-specific functions that are faster to evaluate.
This is just a form of currying, and I chose to bind the boolean comparison operator first.
"""
_value_funcs = {
# functions that compare an incoming feature value to a literal value.
Op.LT: lambda x: lambda v: v < x, # assert incoming value 'v' is less than some fixed value 'x'
Op.LE: lambda x: lambda v: v <= x,
Op.EQ: lambda x: lambda v: v == x,
Op.NE: lambda x: lambda v: v != x,
Op.GE: lambda x: lambda v: v >= x,
Op.GT: lambda x: lambda v: v > x, # assert incoming value 'v' is greater than some fixed value 'x'
Op.MATCH: lambda x: lambda v: x.match(v) is not None,
Op.NOMATCH: lambda x: lambda v: x.match(v) is None,
Op.IN: lambda x: lambda v: v in x,
Op.APPLY_FUNC: lambda apply_function, reference_value: lambda v: apply_function(v, reference_value),
}
_summary_funcs1 = {
# functions that compare a summary field to a literal value.
Op.LT: lambda f, v: lambda s: getattr(s, f) < v,
Op.LE: lambda f, v: lambda s: getattr(s, f) <= v,
Op.EQ: lambda f, v: lambda s: getattr(s, f) == v,
Op.NE: lambda f, v: lambda s: getattr(s, f) != v,
Op.GE: lambda f, v: lambda s: getattr(s, f) >= v,
Op.GT: lambda f, v: lambda s: getattr(s, f) > v,
Op.BTWN: lambda f, v1, v2: lambda s: v1 <= getattr(s, f) <= v2,
Op.IN_SET: lambda f, ref_str_sketch, ref_num_sketch: lambda update_obj: round(
theta_a_not_b().compute(getattr(update_obj, f)["string_theta"], ref_str_sketch).get_estimate(), 1
)
== round(theta_a_not_b().compute(getattr(update_obj, f)["number_theta"], ref_num_sketch).get_estimate(), 1)
== 0.0,
Op.CONTAIN_SET: lambda f, ref_str_sketch, ref_num_sketch: lambda update_obj: round(
theta_a_not_b().compute(ref_str_sketch, getattr(update_obj, f)["string_theta"]).get_estimate(), 1
)
== round(theta_a_not_b().compute(ref_num_sketch, getattr(update_obj, f)["number_theta"]).get_estimate(), 1)
== 0.0,
Op.EQ_SET: lambda f, ref_str_sketch, ref_num_sketch: lambda update_obj: round(
theta_a_not_b().compute(getattr(update_obj, f)["string_theta"], ref_str_sketch).get_estimate(), 1
)
== round(theta_a_not_b().compute(getattr(update_obj, f)["number_theta"], ref_num_sketch).get_estimate(), 1)
== round(theta_a_not_b().compute(ref_str_sketch, getattr(update_obj, f)["string_theta"]).get_estimate(), 1)
== round(theta_a_not_b().compute(ref_num_sketch, getattr(update_obj, f)["number_theta"]).get_estimate(), 1)
== 0.0,
Op.IN: lambda f, v: lambda s: getattr(s, f) in v,
Op.CONTAIN: lambda f, v: lambda s: v in getattr(s, f),
}
_summary_funcs2 = {
# functions that compare two summary fields.
Op.LT: lambda f, f2: lambda s: getattr(s, f) < getattr(s, f2),
Op.LE: lambda f, f2: lambda s: getattr(s, f) <= getattr(s, f2),
Op.EQ: lambda f, f2: lambda s: getattr(s, f) == getattr(s, f2),
Op.NE: lambda f, f2: lambda s: getattr(s, f) != getattr(s, f2),
Op.GE: lambda f, f2: lambda s: getattr(s, f) >= getattr(s, f2),
Op.GT: lambda f, f2: lambda s: getattr(s, f) > getattr(s, f2),
Op.BTWN: lambda f, f2, f3: lambda s: getattr(s, f2) <= getattr(s, f) <= getattr(s, f3),
}
_multi_column_value_funcs = {
Op.LT: lambda v2: lambda v1: v1 < v2,
Op.LE: lambda v2: lambda v1: v1 <= v2,
Op.EQ: lambda v2: lambda v1: v1 == v2,
Op.NE: lambda v2: lambda v1: v1 != v2,
Op.GE: lambda v2: lambda v1: v1 >= v2,
Op.GT: lambda v2: lambda v1: v1 > v2, # assert incoming value 'v' is greater than some fixed value 'x'
Op.IN: lambda v2: lambda v1: v1 in v2,
Op.NOT_IN: lambda v2: lambda v1: v1 not in v2,
Op.SUM: lambda v: sum(v),
}
class ValueConstraint:
"""
ValueConstraints express a binary boolean relationship between an implied numeric value and a literal.
When associated with a ColumnProfile, the relation is evaluated for every incoming value that is processed by whylogs.
Parameters
----------
op : whylogs.proto.Op (required)
Enumeration of binary comparison operator applied between static value and incoming stream.
Enum values are mapped to operators like '==', '<', and '<=', etc.
value : (one-of)
When value is provided, regex_pattern must be None.
Static value to compare against incoming stream using operator specified in `op`.
regex_pattern : (one-of)
When regex_pattern is provided, value must be None.
Regex pattern to use when MATCH or NOMATCH operations are used.
apply_function:
To be supplied only when using APPLY_FUNC operation.
In case when the apply_function requires argument, to be supplied in the value param.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
"""
def __init__(self, op: Op, value=None, regex_pattern: str = None, apply_function=None, name: str = None, verbose=False):
self._name = name
self._verbose = verbose
self.op = op
self.apply_function = apply_function
self.total = 0
self.failures = 0
if (apply_function is not None) != (self.op == Op.APPLY_FUNC):
raise ValueError("A function must be provided if and only if using the APPLY_FUNC operator")
if isinstance(value, set) != (op == Op.IN):
raise ValueError("Value constraint must provide a set of values for using the IN operator!")
if self.op == Op.APPLY_FUNC:
if apply_function.__name__ not in globals() or "lambda" in apply_function.__name__:
raise ValueError("Cannot initialize constraint with APPLY_FUNC using an unknown function!")
if value is not None:
value = self.apply_func_validate(value)
self.value = value
self.func = _value_funcs[op](apply_function, value)
elif value is not None and regex_pattern is None:
# numeric value
self.value = value
self.func = _value_funcs[op](value)
elif regex_pattern is not None and value is None:
# Regex pattern
self.regex_pattern = regex_pattern
self.func = _value_funcs[op](re.compile(self.regex_pattern))
else:
raise ValueError("Value constraint must specify a numeric value or regex pattern, but not both")
@property
def name(self):
if self._name:
return self._name
if self.op == Op.APPLY_FUNC:
val_or_funct = self.apply_function.__name__
elif hasattr(self, "value"):
val_or_funct = self.value
else:
val_or_funct = self.regex_pattern
return f"value {Op.Name(self.op)} {val_or_funct}"
def update(self, v) -> bool:
self.total += 1
if self.op in [Op.MATCH, Op.NOMATCH] and not isinstance(v, str):
self.failures += 1
if self._verbose:
logger.info(f"value constraint {self.name} failed: value {v} not a string")
elif not self.func(v):
self.failures += 1
if self._verbose:
logger.info(f"value constraint {self.name} failed on value {v}")
def apply_func_validate(self, value) -> str:
if not isinstance(value, str):
if self.apply_function == _matches_json_schema:
try:
value = json.dumps(value)
except (ValueError, TypeError):
raise ValueError("Json schema invalid. When matching json schema, the schema provided must be valid.")
else:
value = str(value)
return value
def merge(self, other) -> "ValueConstraint":
if not other:
return self
val = None
pattern = None
assert self.name == other.name, f"Cannot merge constraints with different names: ({self.name}) and ({other.name})"
assert self.op == other.op, f"Cannot merge constraints with different ops: {self.op} and {other.op}"
assert (
self.apply_function == other.apply_function
), f"Cannot merge constraints with different apply_function: {self.apply_function} and {other.apply_function}"
if self.apply_function is not None:
if hasattr(self, "value") != hasattr(other, "value"):
raise TypeError("Cannot merge one constraint with provided value and one without")
elif hasattr(self, "value") and hasattr(other, "value"):
val = self.value
assert self.value == other.value, f"Cannot merge value constraints with different values: {self.value} and {other.value}"
elif all([hasattr(v, "value") for v in (self, other)]):
val = self.value
assert self.value == other.value, f"Cannot merge value constraints with different values: {self.value} and {other.value}"
elif all([hasattr(v, "regex_pattern") for v in (self, other)]):
pattern = self.regex_pattern
assert (
self.regex_pattern == other.regex_pattern
), f"Cannot merge value constraints with different values: {self.regex_pattern} and {other.regex_pattern}"
else:
raise TypeError("Cannot merge a numeric value constraint with a string value constraint")
merged_value_constraint = ValueConstraint(
op=self.op, value=val, regex_pattern=pattern, apply_function=self.apply_function, name=self.name, verbose=self._verbose
)
merged_value_constraint.total = self.total + other.total
merged_value_constraint.failures = self.failures + other.failures
return merged_value_constraint
@staticmethod
def from_protobuf(msg: ValueConstraintMsg) -> "ValueConstraint":
val = None
regex_pattern = None
apply_function = None
name = msg.name if msg.name else None
if msg.HasField("function"):
val = None if msg.function.reference_value == "" else msg.function.reference_value
apply_function = globals()[msg.function.function]
elif msg.regex_pattern != "":
regex_pattern = msg.regex_pattern
elif len(msg.value_set.values) != 0:
val = set(msg.value_set.values[0].list_value)
else:
val = msg.value
constraint = ValueConstraint(msg.op, value=val, regex_pattern=regex_pattern, apply_function=apply_function, name=name, verbose=msg.verbose)
constraint.total = msg.total
constraint.failures = msg.failures
return constraint
def to_protobuf(self) -> ValueConstraintMsg:
set_vals_message = None
regex_pattern = None
value = None
apply_func = None
if self.op == Op.APPLY_FUNC:
if hasattr(self, "value"):
apply_func = ApplyFunctionMsg(function=self.apply_function.__name__, reference_value=self.value)
else:
apply_func = ApplyFunctionMsg(function=self.apply_function.__name__)
elif hasattr(self, "value"):
if isinstance(self.value, set):
set_vals_message = ListValue()
set_vals_message.append(list(self.value))
else:
value = self.value
elif hasattr(self, "regex_pattern"):
regex_pattern = self.regex_pattern
return ValueConstraintMsg(
name=self.name,
op=self.op,
value=value,
value_set=set_vals_message,
regex_pattern=regex_pattern,
function=apply_func,
verbose=self._verbose,
total=self.total,
failures=self.failures,
)
def report(self):
return (self.name, self.total, self.failures)
class SummaryConstraint:
"""
Summary constraints specify a relationship between a summary field and a static value,
or between two summary fields.
e.g. 'min' < 6
'std_dev' < 2.17
'min' > 'avg'
Parameters
----------
first_field : str
Name of field in NumberSummary that will be compared against either a second field or a static value.
op : whylogs.proto.Op (required)
Enumeration of binary comparison operator applied between summary values.
Enum values are mapped to operators like '==', '<', and '<=', etc.
value : (one-of)
Static value to be compared against summary field specified in `first_field`.
Only one of `value` or `second_field` should be supplied.
upper_value : (one-of)
Only to be supplied when using Op.BTWN.
Static upper boundary value to be compared against summary field specified in `first_field`.
Only one of `upper_value` or `third_field` should be supplied.
second_field : (one-of)
Name of second field in NumberSummary to be compared against summary field specified in `first_field`.
Only one of `value` or `second_field` should be supplied.
third_field : (one-of)
Only to be supplied when op == Op.BTWN. Name of third field in NumberSummary, used as an upper boundary,
to be compared against summary field specified in `first_field`.
Only one of `upper_value` or `third_field` should be supplied.
reference_set : (one-of)
Only to be supplied when using set operations or distributional measures.
Used as a reference set to be compared with the column distinct values.
Or is instance of datasketches.kll_floats_sketch or ReferenceDistributionDiscreteMessage.
Only to be supplied for constraints on distributional measures, such as KS test, KL divergence and Chi-Squared test.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
"""
def __init__(
self,
first_field: str,
op: Op,
value=None,
upper_value=None,
quantile_value: Union[int, float] = None,
second_field: str = None,
third_field: str = None,
reference_set: Union[List[Any], Set[Any], datasketches.kll_floats_sketch, ReferenceDistributionDiscreteMessage] = None,
name: str = None,
verbose=False,
):
self._verbose = verbose
self._name = name
self.op = op
self.first_field = first_field
self.second_field = second_field
self.third_field = third_field
self.total = 0
self.failures = 0
self.value = value
self.upper_value = upper_value
self.quantile_value = quantile_value
if self.first_field == "quantile" and not self.quantile_value:
raise ValueError("Summary quantile constraint must specify quantile value")
if self.first_field != "quantile" and self.quantile_value is not None:
raise ValueError("Summary constraint applied on non-quantile field should not specify quantile value")
table_shape_constraint = self._check_and_init_table_shape_constraint(reference_set)
set_constraint = False
distributional_measure_constraint = False
between_constraint = False
if not table_shape_constraint:
set_constraint = self._check_and_init_valid_set_constraint(reference_set)
if not any([table_shape_constraint, set_constraint]):
distributional_measure_constraint = self._check_and_init_distributional_measure_constraint(reference_set)
if not any([table_shape_constraint, set_constraint, distributional_measure_constraint]):
between_constraint = self._check_and_init_between_constraint()
if not any([table_shape_constraint, set_constraint, distributional_measure_constraint, between_constraint]):
if upper_value is not None or third_field is not None:
raise ValueError("Summary constraint with other than BETWEEN operation must NOT specify upper value NOR third field name")
if value is not None and second_field is None:
# field-value summary comparison
self.func = _summary_funcs1[op](first_field, value)
elif second_field is not None and value is None:
# field-field summary comparison
self.func = _summary_funcs2[op](first_field, second_field)
else:
raise ValueError("Summary constraint must specify a second value or field name, but not both")
@property
def name(self):
if self._name:
return self._name
constraint_type_str = self._get_constraint_type()
field_name = self._get_field_name()
value_or_field = self._get_value_or_field()
return f"{constraint_type_str} {field_name} {Op.Name(self.op)} {value_or_field}"
def _get_field_name(self):
if self.first_field == "quantile":
return f"{self.first_field} {self.quantile_value}"
elif hasattr(self, "reference_distribution"):
if self.first_field == "kl_divergence":
return f"{self.first_field} threshold"
else:
return f"{self.first_field} p-value"
else:
return self.first_field
def _get_value_or_field(self):
if self.first_field == "column_values_type":
if self.value is not None:
return InferredType.Type.Name(self.value)
else:
return {InferredType.Type.Name(element) for element in list(self.reference_set)[:MAX_SET_DISPLAY_MESSAGE_LENGTH]}
elif hasattr(self, "reference_set"):
return self._get_str_from_ref_set()
elif self.op == Op.BTWN:
lower_target = self.value if self.value is not None else self.second_field
upper_target = self.upper_value if self.upper_value is not None else self.third_field
return f"{lower_target} and {upper_target}"
elif self.first_field in ("columns", "total_row_number"):
return str(self.value)
else:
return f"{self.value if self.value is not None else self.second_field}"
def _get_constraint_type(self):
return "table" if self.first_field in ("columns", "total_row_number") else "summary"
def _check_and_init_table_shape_constraint(self, reference_set):
if self.first_field in ("columns", "total_row_number"): # table shape constraint
if self.first_field == "columns":
if self.op == Op.EQ:
if any([self.value, self.upper_value, self.second_field, self.third_field, not reference_set]):
raise ValueError("When using set operations only set should be provided and not values or field names!")
self.reference_set = reference_set
reference_set = self._try_cast_set()
else:
if any([not self.value, self.upper_value, self.second_field, self.third_field, reference_set]):
raise ValueError("When using table shape columns constraint only value should be provided and no fields or reference set!")
if isinstance(self.value, (float)):
self.value = int(self.value)
if (self.op == Op.CONTAIN and not isinstance(self.value, str)) or all(
[self.op == Op.EQ, not isinstance(self.value, int), not isinstance(reference_set, set)]
):
raise ValueError("Table shape constraints require value of type string or string set for columns and type int for number of rows!")
target_val = self.value if self.value is not None else self.reference_set
self.func = _summary_funcs1[self.op](self.first_field, target_val)
return True
return False
def _check_and_init_valid_set_constraint(self, reference_set):
if self.op in (Op.IN_SET, Op.CONTAIN_SET, Op.EQ_SET, Op.IN):
if any([self.value, self.upper_value, self.second_field, self.third_field, not reference_set]):
raise ValueError("When using set operations only set should be provided and not values or field names!")
self.reference_set = reference_set
reference_set = self._try_cast_set()
if self.op != Op.IN:
self.ref_string_set, self.ref_numbers_set = self._get_string_and_numbers_sets()
self.string_theta_sketch = self._create_theta_sketch(self.ref_string_set)
self.numbers_theta_sketch = self._create_theta_sketch(self.ref_numbers_set)
self.func = _summary_funcs1[self.op](self.first_field, self.string_theta_sketch, self.numbers_theta_sketch)
else:
self.func = _summary_funcs1[self.op](self.first_field, reference_set)
return True
return False
def _check_and_init_distributional_measure_constraint(self, reference_set):
if reference_set and self.op not in (Op.IN_SET, Op.CONTAIN_SET, Op.EQ_SET, Op.IN):
if not isinstance(reference_set, (datasketches.kll_floats_sketch, ReferenceDistributionDiscreteMessage)):
raise TypeError("The reference distribution should be an object of type datasketches.kll_floats_sketch or ReferenceDistributionDiscreteMessage")
if self.value is None or any([v is not None for v in (self.upper_value, self.second_field, self.third_field)]):
raise ValueError(
"Summary constraint with reference_distribution must specify value for comparing with the p_value or threshold,"
" and must not specify lower_value, second_field or third_field"
)
self.reference_distribution = reference_set
self.func = _summary_funcs1[self.op](self.first_field, self.value)
return True
return False
def _check_and_init_between_constraint(self):
if self.op == Op.BTWN:
if all([v is not None for v in (self.value, self.upper_value)]) and all([v is None for v in (self.second_field, self.third_field)]):
# field-value summary comparison
if not isinstance(self.value, (int, float)) or not isinstance(self.upper_value, (int, float)):
raise TypeError("When creating Summary constraint with BETWEEN operation, upper and lower value must be of type (int, float)")
if self.value >= self.upper_value:
raise ValueError("Summary constraint with BETWEEN operation must specify lower value to be less than upper value")
self.func = _summary_funcs1[self.op](self.first_field, self.value, self.upper_value)
return True
elif all([v is not None for v in (self.second_field, self.third_field)]) and all([v is None for v in (self.value, self.upper_value)]):
# field-field summary comparison
if not isinstance(self.second_field, str) or not isinstance(self.third_field, str):
raise TypeError("When creating Summary constraint with BETWEEN operation, upper and lower field must be of type string")
self.func = _summary_funcs2[self.op](self.first_field, self.second_field, self.third_field)
return True
else:
raise ValueError("Summary constraint with BETWEEN operation must specify lower and upper value OR lower and third field name, but not both")
return False
def _get_str_from_ref_set(self) -> str:
reference_set_str = ""
if len(self.reference_set) > MAX_SET_DISPLAY_MESSAGE_LENGTH:
tmp_set = set(list(self.reference_set)[:MAX_SET_DISPLAY_MESSAGE_LENGTH])
reference_set_str = f"{str(tmp_set)[:-1]}, ...}}"
else:
reference_set_str = str(self.reference_set)
return reference_set_str
def _try_cast_set(self) -> Set[Any]:
if not isinstance(self.reference_set, set):
try:
logger.warning(f"Trying to cast provided value of {type(self.reference_set)} to type set!")
self.reference_set = set(self.reference_set)
except TypeError:
provided_type_name = self.reference_set.__class__.__name__
raise TypeError(f"When using set operations, provided value must be set or set castable, instead type: '{provided_type_name}' was provided!")
return self.reference_set
def _get_string_and_numbers_sets(self):
string_set = set()
numbers_set = set()
for item in self.reference_set:
if isinstance(item, str):
string_set.add(item)
elif isinstance(item, numbers.Real) and not isinstance(item, bool):
numbers_set.add(item)
return string_set, numbers_set
def _create_theta_sketch(self, ref_set: set = None):
theta = update_theta_sketch()
target_set = self.reference_set if ref_set is None else ref_set
for item in target_set:
theta.update(item)
return theta
def update(self, update_summary: object) -> bool:
constraint_type_str = "table shape" if self.first_field in ("columns", "total_row_number") else "summary"
self.total += 1
if self.first_field == "quantile":
kll_sketch = update_summary.quantile
update_summary = single_quantile_from_sketch(kll_sketch, self.quantile_value)
elif self.first_field == "ks_test":
update_summary = ks_test_compute_p_value(update_summary.ks_test, self.reference_distribution)
elif self.first_field == "kl_divergence":
update_summary = compute_kl_divergence(update_summary.kl_divergence, self.reference_distribution)
elif self.first_field == "chi_squared_test":
update_summary = compute_chi_squared_test_p_value(update_summary.chi_squared_test, self.reference_distribution)
if not self.func(update_summary):
self.failures += 1
if self._verbose:
logger.info(f"{constraint_type_str} constraint {self.name} failed")
def merge(self, other) -> "SummaryConstraint":
if not other:
return self
second_field = None
third_field = None
upper_value = None
quantile = None
reference_dist = None
assert self.name == other.name, f"Cannot merge constraints with different names: ({self.name}) and ({other.name})"
assert self.op == other.op, f"Cannot merge constraints with different ops: {self.op} and {other.op}"
assert self.value == other.value, f"Cannot merge constraints with different values: {self.value} and {other.value}"
assert self.first_field == other.first_field, f"Cannot merge constraints with different first_field: {self.first_field} and {other.first_field}"
assert self.second_field == other.second_field, f"Cannot merge constraints with different second_field: {self.second_field} and {other.second_field}"
assert (
self.quantile_value == other.quantile_value
), f"Cannot merge constraints with different quantile_value: {self.quantile_value} and {other.quantile_value}"
if self.quantile_value is not None:
quantile = self.quantile_value
elif hasattr(self, "reference_distribution") and hasattr(other, "reference_distribution"):
reference_dist = self.reference_distribution
if all([isinstance(dist, ReferenceDistributionDiscreteMessage) for dist in (self.reference_distribution, other.reference_distribution)]):
assert self.reference_distribution == other.reference_distribution, "Cannot merge constraints with different reference_distribution"
elif all([isinstance(dist, datasketches.kll_floats_sketch)] for dist in (self.reference_distribution, other.reference_distribution)):
assert (
self.reference_distribution.serialize() == other.reference_distribution.serialize()
), "Cannot merge constraints with different reference_distribution"
else:
raise AssertionError("Cannot merge constraints with different reference_distribution")
if hasattr(self, "reference_set"):
assert hasattr(other, "reference_set"), "Cannot merge constraint that doesn't have reference set with one that does."
assert (
self.reference_set == other.reference_set
), f"Cannot merge constraints with different reference sets: {self._get_str_from_ref_set()} and {other._get_str_from_ref_set()}"
reference_dist = self.reference_set
elif self.op == Op.BTWN:
assert self.upper_value == other.upper_value, f"Cannot merge constraints with different upper values: {self.upper_value} and {other.upper_value}"
assert self.third_field == other.third_field, f"Cannot merge constraints with different third_field: {self.third_field} and {other.third_field}"
third_field = self.third_field
upper_value = self.upper_value
merged_constraint = SummaryConstraint(
first_field=self.first_field,
op=self.op,
value=self.value,
upper_value=upper_value,
second_field=second_field,
third_field=third_field,
reference_set=reference_dist,
quantile_value=quantile,
name=self.name,
verbose=self._verbose,
)
merged_constraint.total = self.total + other.total
merged_constraint.failures = self.failures + other.failures
return merged_constraint
def _check_if_summary_constraint_message_is_valid(msg: SummaryConstraintMsg):
if msg.HasField("reference_set") and not any([msg.HasField(f) for f in ("value", "value_str", "second_field", "between")]):
return True
elif msg.HasField("value") and not any([msg.HasField(f) for f in ("value_str", "second_field", "between", "reference_set")]):
return True
elif msg.HasField("value_str") and not any([msg.HasField(f) for f in ("second_field", "between", "reference_set")]):
return True
elif msg.HasField("second_field") and not any([msg.HasField(f) for f in ("value", "value_str", "between", "reference_set")]):
return True
elif msg.HasField("between") and not any([msg.HasField(f) for f in ("value", "value_str", "second_field", "reference_set")]):
if all([msg.between.HasField(f) for f in ("lower_value", "upper_value")]) and not any(
[msg.between.HasField(f) for f in ("second_field", "third_field")]
):
return True
elif all([msg.between.HasField(f) for f in ("second_field", "third_field")]) and not any(
[msg.between.HasField(f) for f in ("lower_value", "upper_value")]
):
return True
elif (
((msg.HasField("continuous_distribution") and msg.continuous_distribution.HasField("sketch")) or msg.HasField("discrete_distribution"))
and msg.HasField("value")
and not any([msg.HasField(f) for f in ("second_field", "between")])
):
return True
return False
@staticmethod
def from_protobuf(msg: SummaryConstraintMsg) -> "SummaryConstraint":
if not SummaryConstraint._check_if_summary_constraint_message_is_valid(msg):
raise ValueError("SummaryConstraintMsg must specify a value OR second field name OR SummaryBetweenConstraintMsg, but only one of them")
value = None
second_field = None
lower_value = None
upper_value = None
third_field = None
quantile_value = None
ref_distribution = None
name = msg.name if msg.name else None
if msg.first_field == "quantile":
quantile_value = msg.quantile_value
if msg.HasField("continuous_distribution") and msg.continuous_distribution.HasField("sketch"):
ref_distribution = datasketches.kll_floats_sketch.deserialize(msg.continuous_distribution.sketch.sketch)
elif msg.HasField("discrete_distribution"):
ref_distribution = msg.discrete_distribution
if msg.HasField("reference_set"):
ref_distribution = set(msg.reference_set)
elif msg.HasField("value"):
value = msg.value
elif msg.HasField("value_str"):
value = msg.value_str
elif msg.HasField("second_field"):
second_field = msg.second_field
elif msg.HasField("between"):
if all([msg.between.HasField(f) for f in ("lower_value", "upper_value")]):
lower_value = msg.between.lower_value
upper_value = msg.between.upper_value
elif all([msg.between.HasField(f) for f in ("second_field", "third_field")]):
second_field = msg.between.second_field
third_field = msg.between.third_field
return SummaryConstraint(
msg.first_field,
msg.op,
value=value if value is not None else lower_value,
upper_value=upper_value,
second_field=second_field,
quantile_value=quantile_value,
third_field=third_field,
reference_set=ref_distribution,
name=name,
verbose=msg.verbose,
)
def to_protobuf(self) -> SummaryConstraintMsg:
reference_set_msg = None
summary_between_constraint_msg = None
quantile_value = None
value = None
value_str = None
second_field = None
continuous_dist = None
discrete_dist = None
if hasattr(self, "reference_distribution"):
if isinstance(self.reference_distribution, datasketches.kll_floats_sketch):
kll_floats_sketch = KllFloatsSketchMessage(sketch=self.reference_distribution.serialize())
continuous_dist = ReferenceDistributionContinuousMessage(sketch=kll_floats_sketch)
elif isinstance(self.reference_distribution, ReferenceDistributionDiscreteMessage):
discrete_dist = self.reference_distribution
elif self.quantile_value is not None:
quantile_value = self.quantile_value
if hasattr(self, "reference_set"):
reference_set_msg = ListValue()
reference_set_msg.extend(self.reference_set)
elif self.op == Op.BTWN:
if self.second_field is None and self.third_field is None:
summary_between_constraint_msg = SummaryBetweenConstraintMsg(lower_value=self.value, upper_value=self.upper_value)
else:
summary_between_constraint_msg = SummaryBetweenConstraintMsg(second_field=self.second_field, third_field=self.third_field)
elif self.second_field:
second_field = self.second_field
elif self.value is not None:
if isinstance(self.value, str):
value_str = self.value
else:
value = self.value
return SummaryConstraintMsg(
name=self.name,
first_field=self.first_field,
second_field=second_field,
value=value,
value_str=value_str,
between=summary_between_constraint_msg,
reference_set=reference_set_msg,
quantile_value=quantile_value,
continuous_distribution=continuous_dist,
discrete_distribution=discrete_dist,
op=self.op,
verbose=self._verbose,
)
def report(self):
return (self.name, self.total, self.failures)
class ValueConstraints:
def __init__(self, constraints: Mapping[str, ValueConstraint] = None):
"""
ValueConstraints is a container for multiple value constraints,
generally associated with a single ColumnProfile.
Parameters
----------
constraints : Mapping[str, ValueConstraint]
A dictionary of value constraints with their names as keys.
Can also accept a list of value constraints.
"""
if constraints is None:
constraints = dict()
raw_values_operators = (Op.MATCH, Op.NOMATCH, Op.APPLY_FUNC)
self.raw_value_constraints = {}
self.coerced_type_constraints = {}
if isinstance(constraints, list):
constraints = {constraint.name: constraint for constraint in constraints}
for name, constraint in constraints.items():
if constraint.op in raw_values_operators:
self.raw_value_constraints.update({name: constraint})
else:
self.coerced_type_constraints.update({name: constraint})
@staticmethod
def from_protobuf(msg: ValueConstraintMsgs) -> "ValueConstraints":
value_constraints = [ValueConstraint.from_protobuf(c) for c in msg.constraints]
if len(value_constraints) > 0:
return ValueConstraints({v.name: v for v in value_constraints})
return None
def __getitem__(self, name: str) -> Optional[ValueConstraint]:
if self.raw_value_constraints:
constraint = self.raw_value_constraints.get(name)
if constraint:
return constraint
if self.coerced_type_constraints:
return self.coerced_type_constraints.get(name)
return None
def to_protobuf(self) -> ValueConstraintMsgs:
v = [c.to_protobuf() for c in self.raw_value_constraints.values()]
v.extend([c.to_protobuf() for c in self.coerced_type_constraints.values()])
if len(v) > 0:
vcmsg = ValueConstraintMsgs()
vcmsg.constraints.extend(v)
return vcmsg
return None
def update(self, v):
for c in self.raw_value_constraints.values():
c.update(v)
def update_typed(self, v):
for c in self.coerced_type_constraints.values():
c.update(v)
def merge(self, other) -> "ValueConstraints":
if not other or not other.raw_value_constraints and not other.coerced_type_constraints:
return self
merged_constraints = other.raw_value_constraints.copy()
merged_constraints.update(other.coerced_type_constraints.copy())
for name, constraint in self.raw_value_constraints.items():
merged_constraints[name] = constraint.merge(other.raw_value_constraints.get(name))
for name, constraint in self.coerced_type_constraints.items():
merged_constraints[name] = constraint.merge(other.coerced_type_constraints.get(name))
return ValueConstraints(merged_constraints)
def report(self) -> List[tuple]:
v = [c.report() for c in self.raw_value_constraints.values()]
v.extend([c.report() for c in self.coerced_type_constraints.values()])
if len(v) > 0:
return v
return None
class SummaryConstraints:
def __init__(self, constraints: Mapping[str, SummaryConstraint] = None):
"""
SummaryConstraints is a container for multiple summary constraints,
generally associated with a single ColumnProfile.
Parameters
----------
constraints : Mapping[str, SummaryConstrain]
A dictionary of summary constraints with their names as keys.
Can also accept a list of summary constraints.
"""
if constraints is None:
constraints = dict()
# Support list of constraints for back compat with previous version.
if isinstance(constraints, list):
self.constraints = {constraint.name: constraint for constraint in constraints}
else:
self.constraints = constraints
@staticmethod
def from_protobuf(msg: SummaryConstraintMsgs) -> "SummaryConstraints":
constraints = [SummaryConstraint.from_protobuf(c) for c in msg.constraints]
if len(constraints) > 0:
return SummaryConstraints({v.name: v for v in constraints})
return None
def __getitem__(self, name: str) -> Optional[SummaryConstraint]:
if self.contraints:
return self.constraints.get(name)
return None
def to_protobuf(self) -> SummaryConstraintMsgs:
v = [c.to_protobuf() for c in self.constraints.values()]
if len(v) > 0:
scmsg = SummaryConstraintMsgs()
scmsg.constraints.extend(v)
return scmsg
return None
def update(self, v):
for c in self.constraints.values():
c.update(v)
def merge(self, other) -> "SummaryConstraints":
if not other or not other.constraints:
return self
merged_constraints = other.constraints.copy()
for name, constraint in self.constraints:
merged_constraints[name] = constraint.merge(other.constraints.get(name))
return SummaryConstraints(merged_constraints)
def report(self) -> List[tuple]:
v = [c.report() for c in self.constraints.values()]
if len(v) > 0:
return v
return None
class MultiColumnValueConstraint(ValueConstraint):
def __init__(
self,
dependent_columns: Union[str, List[str], Tuple[str], np.ndarray],
op: Op,
reference_columns: Union[str, List[str], Tuple[str], np.ndarray] = None,
internal_dependent_cols_op: Op = None,
value=None,
name: str = None,
verbose: bool = False,
):
"""
MultiColumnValueConstraint defines a dependency relationship between multiple columns,
they can be relationships between column pairs and value pairs, between a single or multiple dependent and
a single or multiple reference columns, or between multiple columns and a single value.
Parameters
----------
dependent_columns : Union[str, List[str], Tuple[str], np.ndarray] (required)
The dependent column(s), can be a single string representing one dependent column, or
a list, tuple or numpy array of strings representing the names of a set of dependent columns.
op - whylogs.proto.Op (required)
Enumeration of binary comparison operator applied between multiple columns, or multiple columns and values.
Enum values are mapped to operators like '==', '<', and '<=', etc.
reference_columns : Union[str, List[str], Tuple[str], np.ndarray] (one-of)
The reference column(s), can be a single string representing one reference column, or
A list, tuple or numpy array of strings representing the names of a set of reference columns.
If provided, the reference column(s) will be compared against
the dependent column(s) specified in `dependent_columns`, using the given operator.
Only one of `reference_columns` or `value` should be supplied.
internal_dependent_cols_op : whylogs.proto.Op
Enumeration of arithmetic operators applied to the dependent columns, if a transformation is necessary.
Enum values are mapped to operators like '+', '-', etc.
e.g. dependent_columns = ['A', 'B', 'C'], internal_dependent_cols_op = Op.SUM
A sum operation is performed over each value of column 'A', 'B', and 'C', in each row of the table
value : Any
Static value to be compared against the dependent columns specified in `dependent_columns`.
Only one of `value` or `reference_columns` should be supplied.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
"""
self._name = name
self._verbose = verbose
self.op = op
self.total = 0
self.failures = 0
if dependent_columns is None:
raise ValueError("The dependent_columns attribute must be provided when creating a MultiColumnValueConstraint")
if not isinstance(dependent_columns, (str, list, tuple, np.ndarray)):
raise TypeError(
"The dependent_columns attribute should be a str indicating a column name in the dataframe, or an array-like object of column names"
)
self.dependent_columns = dependent_columns
self.func = _multi_column_value_funcs[op]
if (reference_columns is None) == (value is None):
raise ValueError("One of value and reference_columns attributes should be provided when creating a MultiColumnValueConstraint," " but not both")
if reference_columns:
if not isinstance(reference_columns, (str, list, tuple, np.ndarray)):
raise TypeError("The reference_columns attribute should be a str indicating a column name in the dataframe," " or a list of column names")
else:
self.reference_columns = reference_columns
elif value is not None:
self.value = value
if internal_dependent_cols_op:
self.internal_op = internal_dependent_cols_op
self.internal_dependent_cols_func = _multi_column_value_funcs[internal_dependent_cols_op]
@property
def name(self):
if self._name:
return self._name
dependent_cols = str(self.dependent_columns)
if hasattr(self, "value"):
val_or_ref_columns = self.value
else:
val_or_ref_columns = self.reference_columns
if hasattr(self, "internal_op"):
dependent_cols = Op.Name(self.internal_op) + " " + dependent_cols
return f"multi column value {dependent_cols} {Op.Name(self.op)} {val_or_ref_columns}"
def update(self, column_values_dictionary):
columns = copy.deepcopy(column_values_dictionary)
self.total += 1
if isinstance(self.dependent_columns, str):
v1 = columns[self.dependent_columns]
else:
if hasattr(self, "internal_dependent_cols_func"):
v1 = self.internal_dependent_cols_func([columns[col] for col in self.dependent_columns])
else:
v1 = tuple([columns[col] for col in self.dependent_columns])
if hasattr(self, "reference_columns"):
if isinstance(self.reference_columns, str):
if self.reference_columns == "all":
columns.pop(self.dependent_columns)
v2 = columns.values()
else:
v2 = columns[self.reference_columns]
else:
v2 = tuple([columns[col] for col in self.reference_columns])
else:
v2 = self.value
if not self.func(v2)(v1):
self.failures += 1
if self._verbose:
logger.info(f"multi column value constraint {self.name} failed on values: {v1}, {v2}")
def merge(self, other) -> "MultiColumnValueConstraint":
if not other:
return self
val = None
reference_columns = None
internal_op = None
assert (
self.dependent_columns == other.dependent_columns
), f"Cannot merge multicolumn constraints with different dependent columns: ({self.dependent_columns}) and ({other.dependent_columns})"
assert self.name == other.name, f"Cannot merge multicolumn constraints with different names: ({self.name}) and ({other.name})"
assert self.op == other.op, f"Cannot merge multicolumn constraints with different ops: {self.op} and {other.op}"
if all([hasattr(obj, "value") for obj in (self, other)]):
val = self.value
assert self.value == other.value, f"Cannot merge multicolumn value constraints with different values: {self.value} and {other.value}"
elif all([hasattr(obj, "reference_columns") for obj in (self, other)]):
reference_columns = self.reference_columns
assert (
self.reference_columns == other.reference_columns
), f"Cannot merge multicolumn value constraints with different reference_columns: {self.reference_columns} and {other.reference_columns}"
else:
raise AssertionError(
"Cannot merge multicolumn value constraints from which one has a value attribute and the other has a reference_columns attribute"
)
if hasattr(self, "internal_op") != hasattr(other, "internal_op"):
raise AssertionError("Cannot merge multicolumn value constraint that has an internal op, with one that does not")
elif hasattr(self, "internal_op"):
assert self.internal_op == other.internal_op, "Cannot merge multicolumn value constraints with different internal ops"
internal_op = self.internal_op
merged_value_constraint = MultiColumnValueConstraint(
dependent_columns=self.dependent_columns,
op=self.op,
value=val,
name=self.name,
reference_columns=reference_columns,
internal_dependent_cols_op=internal_op,
verbose=self._verbose,
)
merged_value_constraint.total = self.total + other.total
merged_value_constraint.failures = self.failures + other.failures
return merged_value_constraint
@staticmethod
def from_protobuf(msg: MultiColumnValueConstraintMsg) -> "MultiColumnValueConstraint":
internal_op = None
value = None
ref_cols = None
name = msg.name if msg.name else None
if msg.HasField("dependent_columns"):
dependent_cols = list(msg.dependent_columns)
else:
dependent_cols = msg.dependent_column
if msg.internal_dependent_columns_op:
internal_op = msg.internal_dependent_columns_op
if len(msg.value_set.values) != 0:
value = {TypedDataConverter.convert(tuple(v)) if hasattr(v, "values") else TypedDataConverter.convert(v) for v in msg.value_set}
elif msg.value:
value = msg.value
elif msg.reference_columns:
ref_cols = list(msg.reference_columns)
if ref_cols == ["all"]:
ref_cols = "all"
else:
raise ValueError("MultiColumnValueConstraintMsg should contain one of the attributes: value_set, value or reference_columns, but none were found")
mcv_constraint = MultiColumnValueConstraint(
dependent_cols, msg.op, value=value, reference_columns=ref_cols, name=name, internal_dependent_cols_op=internal_op, verbose=msg.verbose
)
mcv_constraint.total = msg.total
mcv_constraint.failures = msg.failures
return mcv_constraint
def to_protobuf(self) -> MultiColumnValueConstraintMsg:
value = None
set_vals_message = None
ref_cols = None
dependent_single_col = None
dependent_multiple_cols = None
internal_op = None
if isinstance(self.dependent_columns, str):
dependent_single_col = self.dependent_columns
else:
dependent_multiple_cols = ListValue()
dependent_multiple_cols.extend(self.dependent_columns)
if hasattr(self, "value"):
if isinstance(self.value, (set, list, np.ndarray, pd.Series)):
set_vals_message = ListValue()
for val in self.value:
if isinstance(val, (set, list, tuple)):
internal_list_value = ListValue()
internal_list_value.extend(list(val))
set_vals_message.append(internal_list_value)
else:
set_vals_message.append(val)
else:
value = self.value
else:
ref_cols = ListValue()
if isinstance(self.reference_columns, str):
ref_cols.append(self.reference_columns)
else:
ref_cols.extend(self.reference_columns)
if hasattr(self, "internal_op"):
internal_op = self.internal_op
return MultiColumnValueConstraintMsg(
dependent_columns=dependent_multiple_cols,
dependent_column=dependent_single_col,
name=self.name,
op=self.op,
value=value,
value_set=set_vals_message,
reference_columns=ref_cols,
internal_dependent_columns_op=internal_op,
verbose=self._verbose,
total=self.total,
failures=self.failures,
)
class MultiColumnValueConstraints(ValueConstraints):
def __init__(self, constraints: Mapping[str, MultiColumnValueConstraint] = None):
"""
MultiColumnValueConstraints is a container for multiple MultiColumnValueConstraint objects
Parameters
----------
constraints : Mapping[str, MultiColumnValueConstraint]
A dictionary of multi column vale constraints with their names as keys.
Can also accept a list of multi column value constraints.
"""
super().__init__(constraints=constraints)
@staticmethod
def from_protobuf(msg: ValueConstraintMsgs) -> "MultiColumnValueConstraints":
value_constraints = [MultiColumnValueConstraint.from_protobuf(c) for c in msg.multi_column_constraints]
if len(value_constraints) > 0:
return MultiColumnValueConstraints({v.name: v for v in value_constraints})
return None
def to_protobuf(self) -> ValueConstraintMsgs:
v = [c.to_protobuf() for c in self.raw_value_constraints.values()]
v.extend([c.to_protobuf() for c in self.coerced_type_constraints.values()])
if len(v) > 0:
vcmsg = ValueConstraintMsgs()
vcmsg.multi_column_constraints.extend(v)
return vcmsg
return None
class DatasetConstraints:
def __init__(
self,
props: DatasetProperties,
value_constraints: Mapping[str, ValueConstraints] = None,
summary_constraints: Mapping[str, SummaryConstraints] = None,
table_shape_constraints: Mapping[str, SummaryConstraints] = None,
multi_column_value_constraints: Optional[MultiColumnValueConstraints] = None,
):
"""
DatasetConstraints is a container for multiple types of constraint containers, such as ValueConstraints,
SummaryConstraints, and MultiColumnValueConstraints.
Used for wrapping constraints that should be applied on a single data set.
Parameters
----------
props : whylogs.proto.DatasetProperties
Specifies the properties of the data set such as schema major and minor versions, session and
data timestamps, tags and other metadata
value_constraints : Mapping[str, ValueConstraints]
A dictionary where the keys correspond to the name of the feature for which the supplied value
represents the ValueConstraints to be executed
summary_constraints : Mapping[str, SummaryConstraints]
A dictionary where the keys correspond to the name of the feature for which the supplied value
represents the SummaryConstraints to be executed
table_shape_constraints : Mapping[str, SummaryConstraints]
A dictionary where the keys correspond to the name of the feature for which the supplied value
represents the table-shape constraints to be executed
multi_column_value_constraints : Mapping[str, MultiColumnValueConstraints]
A list of MultiColumnValueConstraint, or a container of MultiColumnValueConstraints representing
the multi-column value constraints to be executed over the predefined features in the constraints.
"""
self.dataset_properties = props
# repackage lists of constraints if necessary
if value_constraints is None:
value_constraints = dict()
for k, v in value_constraints.items():
if isinstance(v, list):
value_constraints[k] = ValueConstraints(v)
self.value_constraint_map = value_constraints
if summary_constraints is None:
summary_constraints = dict()
for k, v in summary_constraints.items():
if isinstance(v, list):
summary_constraints[k] = SummaryConstraints(v)
self.summary_constraint_map = summary_constraints
if table_shape_constraints is None:
table_shape_constraints = SummaryConstraints()
if isinstance(table_shape_constraints, list):
table_shape_constraints = SummaryConstraints(table_shape_constraints)
self.table_shape_constraints = table_shape_constraints
if multi_column_value_constraints is None:
multi_column_value_constraints = MultiColumnValueConstraints()
if isinstance(multi_column_value_constraints, list):
multi_column_value_constraints = MultiColumnValueConstraints(multi_column_value_constraints)
self.multi_column_value_constraints = multi_column_value_constraints
def __getitem__(self, key):
if key in self.value_constraint_map:
return self.value_constraint_map[key]
return None
@staticmethod
def from_protobuf(msg: DatasetConstraintMsg) -> "DatasetConstraints":
vm = dict([(k, ValueConstraints.from_protobuf(v)) for k, v in msg.value_constraints.items()])
sm = dict([(k, SummaryConstraints.from_protobuf(v)) for k, v in msg.summary_constraints.items()])
table_shape_m = SummaryConstraints.from_protobuf(msg.table_shape_constraints)
multi_column_value_m = MultiColumnValueConstraints.from_protobuf(msg.multi_column_value_constraints)
return DatasetConstraints(msg.properties, vm, sm, table_shape_m, multi_column_value_m)
@staticmethod
def from_json(data: str) -> "DatasetConstraints":
msg = Parse(data, DatasetConstraintMsg())
return DatasetConstraints.from_protobuf(msg)
def to_protobuf(self) -> DatasetConstraintMsg:
# construct tuple for each column, (name, [constraints,...])
# turn that into a map indexed by column name
vm = dict([(k, v.to_protobuf()) for k, v in self.value_constraint_map.items()])
sm = dict([(k, s.to_protobuf()) for k, s in self.summary_constraint_map.items()])
table_shape_constraints_message = self.table_shape_constraints.to_protobuf()
multi_column_value_m = self.multi_column_value_constraints.to_protobuf()
return DatasetConstraintMsg(
properties=self.dataset_properties,
value_constraints=vm,
summary_constraints=sm,
table_shape_constraints=table_shape_constraints_message,
multi_column_value_constraints=multi_column_value_m,
)
def to_json(self) -> str:
return message_to_json(self.to_protobuf())
def report(self):
l1 = [(k, v.report()) for k, v in self.value_constraint_map.items()]
l2 = [(k, s.report()) for k, s in self.summary_constraint_map.items()]
l3 = self.table_shape_constraints.report() if self.table_shape_constraints.report() else []
l4 = self.multi_column_value_constraints.report() if self.multi_column_value_constraints.report() else []
return l1 + l2 + l3 + l4
def _check_between_constraint_valid_initialization(lower_value, upper_value, lower_field, upper_field):
if (
(lower_value is not None and upper_field is not None)
or (lower_value is None and upper_value is not None)
or (upper_value is None and lower_field is None)
or (lower_field is not None and upper_field is None)
):
raise ValueError("Summary constraint with BETWEEN operation must specify lower and upper value OR lower and upper field name, but not both")
def _set_between_constraint_default_name(field, lower_value, upper_value, lower_field, upper_field):
if all([v is not None for v in (lower_value, upper_value)]):
return f"{field} is between {lower_value} and {upper_value}"
else:
return f"{field} is between {lower_field} and {upper_field}"
def _format_set_values_for_display(reference_set):
if len(reference_set) > MAX_SET_DISPLAY_MESSAGE_LENGTH:
tmp_set = set(list(reference_set)[:MAX_SET_DISPLAY_MESSAGE_LENGTH])
return f"{str(tmp_set)[:-1]}, ...}}"
else:
return str(reference_set)
def stddevBetweenConstraint(lower_value=None, upper_value=None, lower_field=None, upper_field=None, name=None, verbose=False):
"""
Defines a summary constraint on the standard deviation of a feature. The standard deviation can be defined to be
between two values, or between the values of two other summary fields of the same feature,
such as the minimum and the maximum.
The defined interval is a closed interval, which includes both of its limit points.
Parameters
----------
lower_value : numeric (one-of)
Represents the lower value limit of the interval for the standard deviation.
If `lower_value` is supplied, then `upper_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
upper_value : numeric (one-of)
Represents the upper value limit of the interval for the standard deviation.
If `upper_value` is supplied, then `lower_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
lower_field : str (one-of)
Represents the lower field limit of the interval for the standard deviation.
The lower field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as a lower bound.
If `lower_field` is supplied, then `upper_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
upper_field : str (one-of)
Represents the upper field limit of the interval for the standard deviation.
The upper field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as an upper bound.
If `upper_field` is supplied, then `lower_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining an interval of values for the standard deviation of a feature
"""
_check_between_constraint_valid_initialization(lower_value, upper_value, lower_field, upper_field)
if name is None:
name = _set_between_constraint_default_name("standard deviation", lower_value, upper_value, lower_field, upper_field)
return SummaryConstraint(
"stddev", Op.BTWN, value=lower_value, upper_value=upper_value, second_field=lower_field, third_field=upper_field, name=name, verbose=verbose
)
def meanBetweenConstraint(lower_value=None, upper_value=None, lower_field=None, upper_field=None, name=None, verbose=False):
"""
Defines a summary constraint on the mean (average) of a feature. The mean can be defined to be
between two values, or between the values of two other summary fields of the same feature,
such as the minimum and the maximum.
The defined interval is a closed interval, which includes both of its limit points.
Parameters
----------
lower_value : numeric (one-of)
Represents the lower value limit of the interval for the mean.
If `lower_value` is supplied, then `upper_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
upper_value : numeric (one-of)
Represents the upper value limit of the interval for the mean.
If `upper_value` is supplied, then `lower_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
lower_field : str (one-of)
Represents the lower field limit of the interval for the mean.
The lower field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as a lower bound.
If `lower_field` is supplied, then `upper_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
upper_field : str (one-of)
Represents the upper field limit of the interval for the mean.
The upper field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as an upper bound.
If `upper_field` is supplied, then `lower_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining an interval of values for the mean of a feature
"""
_check_between_constraint_valid_initialization(lower_value, upper_value, lower_field, upper_field)
if name is None:
name = _set_between_constraint_default_name("mean", lower_value, upper_value, lower_field, upper_field)
return SummaryConstraint(
"mean", Op.BTWN, value=lower_value, upper_value=upper_value, second_field=lower_field, third_field=upper_field, name=name, verbose=verbose
)
def minBetweenConstraint(lower_value=None, upper_value=None, lower_field=None, upper_field=None, name=None, verbose=False):
"""
Defines a summary constraint on the minimum value of a feature. The minimum can be defined to be
between two values, or between the values of two other summary fields of the same feature,
such as the minimum and the maximum.
The defined interval is a closed interval, which includes both of its limit points.
Parameters
----------
lower_value : numeric (one-of)
Represents the lower value limit of the interval for the minimum.
If `lower_value` is supplied, then `upper_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
upper_value : numeric (one-of)
Represents the upper value limit of the interval for the minimum.
If `upper_value` is supplied, then `lower_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
lower_field : str (one-of)
Represents the lower field limit of the interval for the minimum.
The lower field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as a lower bound.
If `lower_field` is supplied, then `upper_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
upper_field : str (one-of)
Represents the upper field limit of the interval for the minimum.
The upper field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as an upper bound.
If `upper_field` is supplied, then `lower_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining an interval of values for the minimum value of a feature
"""
_check_between_constraint_valid_initialization(lower_value, upper_value, lower_field, upper_field)
if name is None:
name = _set_between_constraint_default_name("minimum", lower_value, upper_value, lower_field, upper_field)
return SummaryConstraint(
"min", Op.BTWN, value=lower_value, upper_value=upper_value, second_field=lower_field, third_field=upper_field, name=name, verbose=verbose
)
def minGreaterThanEqualConstraint(value=None, field=None, name=None, verbose=False):
"""
Defines a summary constraint on the minimum value of a feature. The minimum can be defined to be
greater than or equal to some value,
or greater than or equal to the values of another summary field of the same feature, such as the mean (average).
Parameters
----------
value : numeric (one-of)
Represents the value which should be compared to the minimum value of the specified feature,
for checking the greater than or equal to constraint.
Only one of `value` and `field` should be supplied.
field : str (one-of)
The field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used for
checking the greater than or equal to constraint.
Only one of `field` and `value` should be supplied.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a constraint on the minimum value to be greater than
or equal to some value / summary field
"""
if name is None:
name = f"minimum is greater than or equal to {value}"
return SummaryConstraint("min", Op.GE, value=value, second_field=field, name=name, verbose=verbose)
def maxBetweenConstraint(lower_value=None, upper_value=None, lower_field=None, upper_field=None, name=None, verbose=False):
"""
Defines a summary constraint on the maximum value of a feature. The maximum can be defined to be
between two values, or between the values of two other summary fields of the same feature,
such as the minimum and the maximum.
The defined interval is a closed interval, which includes both of its limit points.
Parameters
----------
lower_value : numeric (one-of)
Represents the lower value limit of the interval for the maximum.
If `lower_value` is supplied, then `upper_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
upper_value : numeric (one-of)
Represents the upper value limit of the interval for the maximum.
If `upper_value` is supplied, then `lower_value` must also be supplied,
and none of `lower_field` and `upper_field` should be provided.
lower_field : str (one-of)
Represents the lower field limit of the interval for the maximum.
The lower field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as a lower bound.
If `lower_field` is supplied, then `upper_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
upper_field : str (one-of)
Represents the upper field limit of the interval for the maximum.
The upper field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used as an upper bound.
If `upper_field` is supplied, then `lower_field` must also be supplied,
and none of `lower_value` and `upper_value` should be provided.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining an interval of values for the maximum value of a feature
"""
_check_between_constraint_valid_initialization(lower_value, upper_value, lower_field, upper_field)
if name is None:
name = _set_between_constraint_default_name("maximum", lower_value, upper_value, lower_field, upper_field)
return SummaryConstraint("max", Op.BTWN, value=lower_value, upper_value=upper_value, second_field=lower_field, third_field=upper_field, verbose=verbose)
def maxLessThanEqualConstraint(value=None, field=None, name=None, verbose=False):
"""
Defines a summary constraint on the maximum value of a feature. The maximum can be defined to be
less than or equal to some value,
or less than or equal to the values of another summary field of the same feature, such as the mean (average).
Parameters
----------
value : numeric (one-of)
Represents the value which should be compared to the maximum value of the specified feature,
for checking the less than or equal to constraint.
Only one of `value` and `field` should be supplied.
field : str (one-of)
The field is a string representing a summary field
e.g. `min`, `mean`, `max`, `stddev`, etc., for which the value will be used for
checking the less than or equal to constraint.
Only one of `field` and `value` should be supplied.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a constraint on the maximum value to be less than
or equal to some value / summary field
"""
if name is None:
name = f"maximum is less than or equal to {value}"
return SummaryConstraint("max", Op.LE, value=value, second_field=field, name=name, verbose=verbose)
def distinctValuesInSetConstraint(reference_set: Set[Any], name=None, verbose=False):
"""
Defines a summary constraint on the distinct values of a feature. All of the distinct values should
belong in the user-provided set or reference values `reference_set`.
Useful for categorical features, for checking if the set of values present in a feature
is contained in the set of expected categories.
Parameters
----------
reference_set : Set[Any] (required)
Represents the set of reference (expected) values for a feature.
The provided values can be of any type.
If at least one of the distinct values of the feature is not in the user specified
set `reference_set`, then the constraint will fail.
name : str
The name of the constraint.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a constraint on the distinct values of a feature
to belong in a user supplied set of values
"""
if name is None:
ref_name = _format_set_values_for_display(reference_set)
name = f"distinct values are in {ref_name}"
return SummaryConstraint("distinct_column_values", Op.IN_SET, reference_set=reference_set, name=name, verbose=verbose)
def distinctValuesEqualSetConstraint(reference_set: Set[Any], name=None, verbose=False):
"""
Defines a summary constraint on the distinct values of a feature. The set of the distinct values should
be equal to the user-provided set or reference values, `reference_set`.
Useful for categorical features, for checking if the set of values present in a feature
is the same as the set of expected categories.
Parameters
----------
reference_set : Set[Any] (required)
Represents the set of reference (expected) values for a feature.
The provided values can be of any type.
If the distinct values of the feature are not equal to the user specified
set `reference_set`, then the constraint will fail.
name : str
The name of the constraint.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a constraint on the distinct values of a feature
to be equal to a user supplied set of values
"""
if name is None:
ref_name = _format_set_values_for_display(reference_set)
name = f"distinct values are equal to the set {ref_name}"
return SummaryConstraint("distinct_column_values", Op.EQ_SET, reference_set=reference_set, name=name, verbose=verbose)
def distinctValuesContainSetConstraint(reference_set: Set[Any], name=None, verbose=False):
"""
Defines a summary constraint on the distinct values of a feature. The set of user-supplied reference values,
`reference_set` should be a subset of the set of distinct values for the current feature.
Useful for categorical features, for checking if the set of values present in a feature
is a superset of the set of expected categories.
Parameters
----------
reference_set : Set[Any] (required)
Represents the set of reference (expected) values for a feature.
The provided values can be of any type.
If at least one of the values of the reference set, specified in `reference_set`,
is not contained in the set of distinct values of the feature, then the constraint will fail.
name : str
The name of the constraint.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a constraint on the distinct values of a feature
to be a super set of the user supplied set of values
"""
if name is None:
ref_name = _format_set_values_for_display(reference_set)
name = f"distinct values contain the set {ref_name}"
return SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=reference_set, name=name, verbose=verbose)
def columnValuesInSetConstraint(value_set: Set[Any], name=None, verbose=False):
"""
Defines a value constraint with set operations on the values of a single feature.
The values of the feature should all be in the set of user-supplied values,
specified in `value_set`.
Useful for categorical features, for checking if the values in a feature
belong in a predefined set.
Parameters
----------
value_set : Set[Any] (required)
Represents the set of expected values for a feature.
The provided values can be of any type.
Each value in the feature is checked against the constraint.
The total number of failures equals the number of values not in the provided set `value_set`.
name : str
The name of the constraint.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint specifying a constraint on the values of a feature
to be drawn from a predefined set of values.
"""
try:
value_set = set(value_set)
except Exception:
raise TypeError("The value set should be an iterable data type")
if name is None:
val_name = _format_set_values_for_display(value_set)
name = f"values are in {val_name}"
return ValueConstraint(Op.IN, value=value_set, name=name, verbose=verbose)
def containsEmailConstraint(regex_pattern: "str" = None, name=None, verbose=False):
"""
Defines a value constraint with email regex matching operations on the values of a single feature.
The constraint defines a default email regex pattern, but a user-defined pattern can be supplied to override it.
Useful for checking the validity of features with values representing email addresses.
Parameters
----------
regex_pattern : str (optional)
User-defined email regex pattern.
If supplied, will override the default email regex pattern provided by whylogs.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for email regex matching of the values of a single feature
"""
if regex_pattern is not None:
logger.warning("Warning: supplying your own regex pattern might cause slower evaluation of the containsEmailConstraint, depending on its complexity.")
email_pattern = regex_pattern
else:
email_pattern = (
r"^(?i)(?:[a-z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+/=?^_`{|}~-]+)*"
r'|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")'
r"@"
r"(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)$"
)
if name is None:
name = "column values match the email regex pattern"
return ValueConstraint(Op.MATCH, regex_pattern=email_pattern, name=name, verbose=verbose)
def containsCreditCardConstraint(regex_pattern: "str" = None, name=None, verbose=False):
"""
Defines a value constraint with credit card number regex matching operations on the values of a single feature.
The constraint defines a default credit card number regex pattern,
but a user-defined pattern can be supplied to override it.
Useful for checking the validity of features with values representing credit card numbers.
Parameters
----------
regex_pattern : str (optional)
User-defined credit card number regex pattern.
If supplied, will override the default credit card number regex pattern provided by whylogs.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for credit card number regex matching of the values of a single feature
"""
if regex_pattern is not None:
logger.warning(
"Warning: supplying your own regex pattern might cause slower evaluation of the containsCreditCardConstraint, depending on its complexity."
)
credit_card_pattern = regex_pattern
else:
credit_card_pattern = (
r"^(?:(4[0-9]{3}([\s-]?[0-9]{4}){2}[\s-]?[0-9]{1,4})"
r"|(?:(5[1-5][0-9]{2}([\s-]?[0-9]{4}){3}))"
r"|(?:(6(?:011|5[0-9]{2})([\s-]?[0-9]{4}){3}))"
r"|(?:(3[47][0-9]{2}[\s-]?[0-9]{6}[\s-]?[0-9]{5}))"
r"|(?:(3(?:0[0-5]|[68][0-9])[0-9][\s-]?[0-9]{6}[\s-]?[0-9]{4}))"
r"|(?:2131|1800|35[0-9]{2,3}([\s-]?[0-9]{4}){3}))$"
)
if name is None:
name = "column values match the credit card regex pattern"
return ValueConstraint(Op.MATCH, regex_pattern=credit_card_pattern, name=name, verbose=verbose)
def dateUtilParseableConstraint(name=None, verbose=False):
"""
Defines a value constraint which checks if the values of a single feature
can be parsed by the dateutil parser.
Useful for checking if the date time values of a feature are compatible with dateutil.
Parameters
----------
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for checking if a feature's values are dateutil parseable
"""
if name is None:
name = "column values are dateutil parseable"
return ValueConstraint(Op.APPLY_FUNC, apply_function=_try_parse_dateutil, name=name, verbose=verbose)
def jsonParseableConstraint(name=None, verbose=False):
"""
Defines a value constraint which checks if the values of a single feature
are JSON parseable.
Useful for checking if the values of a feature can be serialized to JSON.
Parameters
----------
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for checking if a feature's values are JSON parseable
"""
if name is None:
name = "column values are JSON parseable"
return ValueConstraint(Op.APPLY_FUNC, apply_function=_try_parse_json, name=name, verbose=verbose)
def matchesJsonSchemaConstraint(json_schema, name=None, verbose=False):
"""
Defines a value constraint which checks if the values of a single feature
match a user-provided JSON schema.
Useful for checking if the values of a feature can be serialized to match a predefined JSON schema.
Parameters
----------
json_schema: Union[str, dict] (required)
A string or dictionary of key-value pairs representing the expected JSON schema.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for checking if a feature's values match a user-provided JSON schema
"""
if name is None:
name = f"column values match the provided JSON schema {json_schema}"
return ValueConstraint(Op.APPLY_FUNC, json_schema, apply_function=_matches_json_schema, name=name, verbose=verbose)
def strftimeFormatConstraint(format, name=None, verbose=False):
"""
Defines a value constraint which checks if the values of a single feature
are strftime parsable.
Parameters
----------
format: str (required)
A string representing the expected strftime format for parsing the values.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for checking if a feature's values are strftime parseable
"""
if name is None:
name = "column values are strftime parseable"
return ValueConstraint(Op.APPLY_FUNC, format, apply_function=_try_parse_strftime_format, name=name, verbose=verbose)
def containsSSNConstraint(regex_pattern: "str" = None, name=None, verbose=False):
"""
Defines a value constraint with social security number (SSN) matching operations
on the values of a single feature.
The constraint defines a default SSN regex pattern, but a user-defined pattern can be supplied to override it.
Useful for checking the validity of features with values representing SNN numbers.
Parameters
----------
regex_pattern : str (optional)
User-defined SSN regex pattern.
If supplied, will override the default SSN regex pattern provided by whylogs.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for SSN regex matching of the values of a single feature
"""
if regex_pattern is not None:
logger.warning("Warning: supplying your own regex pattern might cause slower evaluation of the containsSSNConstraint, depending on its complexity.")
ssn_pattern = regex_pattern
else:
ssn_pattern = r"^(?!000|666|9[0-9]{2})[0-9]{3}[\s-]?(?!00)[0-9]{2}[\s-]?(?!0000)[0-9]{4}$"
if name is None:
name = "column values match the SSN regex pattern"
return ValueConstraint(Op.MATCH, regex_pattern=ssn_pattern, name=name, verbose=verbose)
def containsURLConstraint(regex_pattern: "str" = None, name=None, verbose=False):
"""
Defines a value constraint with URL regex matching operations on the values of a single feature.
The constraint defines a default URL regex pattern, but a user-defined pattern can be supplied to override it.
Useful for checking the validity of features with values representing URL addresses.
Parameters
----------
regex_pattern : str (optional)
User-defined URL regex pattern.
If supplied, will override the default URL regex pattern provided by whylogs.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for URL regex matching of the values of a single feature
"""
if regex_pattern is not None:
logger.warning("Warning: supplying your own regex pattern might cause slower evaluation of the containsURLConstraint, depending on its complexity.")
url_pattern = regex_pattern
else:
url_pattern = (
r"^(?:http(s)?:\/\/)?((www)|(?:[a-zA-z0-9-]+)\.)"
r"(?:[-a-zA-Z0-9@:%._\+~#=]{1,256}\."
r"(?:[a-zA-Z0-9]{1,6})\b"
r"(?:[-a-zA-Z0-9@:%_\+.~#?&//=]*))$"
)
if name is None:
name = "column values match the URL regex pattern"
return ValueConstraint(Op.MATCH, regex_pattern=url_pattern, name=name, verbose=verbose)
def stringLengthEqualConstraint(length: int, name=None, verbose=False):
"""
Defines a value constraint which checks if the string values of a single feature
have a predefined length.
Parameters
----------
length: int (required)
A numeric value which represents the expected length of the string values in the specified feature.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for checking if a feature's string values have a predefined length
"""
length_pattern = f"^.{{{length}}}$"
if name is None:
name = f"length of the string values is equal to {length}"
return ValueConstraint(Op.MATCH, regex_pattern=length_pattern, name=name, verbose=verbose)
def stringLengthBetweenConstraint(lower_value: int, upper_value: int, name=None, verbose=False):
"""
Defines a value constraint which checks if the string values' length of a single feature
is in some predefined interval.
Parameters
----------
lower_value: int (required)
A numeric value which represents the expected lower bound of the length
of the string values in the specified feature.
upper_value: int (required)
A numeric value which represents the expected upper bound of the length
of the string values in the specified feature.
name : str
Name of the constraint used for reporting
verbose : bool (optional)
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
ValueConstraint - a value constraint for checking if a feature's string values'
length is in a predefined interval
"""
length_pattern = rf"^.{{{lower_value},{upper_value}}}$"
if name is None:
name = f"length of the string values is between {lower_value} and {upper_value}"
return ValueConstraint(Op.MATCH, regex_pattern=length_pattern, name=name, verbose=verbose)
def quantileBetweenConstraint(
quantile_value: Union[int, float], lower_value: Union[int, float], upper_value: Union[int, float], name=None, verbose: "bool" = False
):
"""
Defines a summary constraint on the n-th quantile value of a numeric feature.
The n-th quantile can be defined to be between two values.
The defined interval is a closed interval, which includes both of its limit points.
Parameters
----------
quantile_value: numeric (required)
The n-the quantile for which the constraint will be executed
lower_value : numeric (required)
Represents the lower value limit of the interval for the n-th quantile.
upper_value : numeric (required)
Represents the upper value limit of the interval for the n-th quantile.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a closed interval of valid values
for the n-th quantile value of a specific feature
"""
if not all([isinstance(v, (int, float)) for v in (quantile_value, upper_value, lower_value)]):
raise TypeError("The quantile, lower and upper values must be of type int or float")
if lower_value > upper_value:
raise ValueError("The lower value must be less than or equal to the upper value")
if name is None:
name = f"{quantile_value}-th quantile value is between {lower_value} and {upper_value}"
return SummaryConstraint("quantile", value=lower_value, upper_value=upper_value, quantile_value=quantile_value, op=Op.BTWN, name=name, verbose=verbose)
def columnUniqueValueCountBetweenConstraint(lower_value: int, upper_value: int, name=None, verbose: bool = False):
"""
Defines a summary constraint on the cardinality of a specific feature.
The cardinality can be defined to be between two values.
The defined interval is a closed interval, which includes both of its limit points.
Useful for checking the unique count of values for discrete features.
Parameters
----------
lower_value : numeric (required)
Represents the lower value limit of the interval for the feature cardinality.
upper_value : numeric (required)
Represents the upper value limit of the interval for the feature cardinality.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a closed interval
for the valid cardinality of a specific feature
"""
if not all([isinstance(v, int) and v >= 0 for v in (lower_value, upper_value)]):
raise ValueError("The lower and upper values should be non-negative integers")
if lower_value > upper_value:
raise ValueError("The lower value should be less than or equal to the upper value")
if name is None:
name = f"number of unique values is between {lower_value} and {upper_value}"
return SummaryConstraint("unique_count", op=Op.BTWN, value=lower_value, upper_value=upper_value, name=name, verbose=verbose)
def columnUniqueValueProportionBetweenConstraint(lower_fraction: float, upper_fraction: float, name=None, verbose: bool = False):
"""
Defines a summary constraint on the proportion of unique values of a specific feature.
The proportion of unique values can be defined to be between two values.
The defined interval is a closed interval, which includes both of its limit points.
Useful for checking the frequency of unique values for discrete features.
Parameters
----------
lower_fraction : fraction between 0 and 1 (required)
Represents the lower fraction limit of the interval for the feature unique value proportion.
upper_fraction : fraction between 0 and 1 (required)
Represents the upper fraction limit of the interval for the feature cardinality.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a closed interval
for the valid proportion of unique values of a specific feature
"""
if not all([isinstance(v, float) and 0 <= v <= 1 for v in (lower_fraction, upper_fraction)]):
raise ValueError("The lower and upper fractions should be between 0 and 1")
if lower_fraction > upper_fraction:
raise ValueError("The lower fraction should be decimal values less than or equal to the upper fraction")
if name is None:
name = f"proportion of unique values is between {lower_fraction} and {upper_fraction}"
return SummaryConstraint("unique_proportion", op=Op.BTWN, value=lower_fraction, upper_value=upper_fraction, name=name, verbose=verbose)
def columnExistsConstraint(column: str, name=None, verbose=False):
"""
Defines a constraint on the data set schema.
Checks if the user-supplied column, identified by `column`, is present in the data set schema.
Parameters
----------
column : str (required)
Represents the name of the column to be checked for existence in the data set.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint which checks the existence of a column
in the current data set.
"""
if name is None:
name = f"The column {column} exists in the table"
return SummaryConstraint("columns", Op.CONTAIN, value=column, name=name, verbose=verbose)
def numberOfRowsConstraint(n_rows: int, name=None, verbose=False):
"""
Defines a constraint on the data set schema.
Checks if the number of rows in the data set equals the user-supplied number of rows.
Parameters
----------
n_rows : int (required)
Represents the user-supplied expected number of rows.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint which checks the number of rows in the data set
"""
if name is None:
name = f"The number of rows in the table equals {n_rows}"
return SummaryConstraint("total_row_number", Op.EQ, value=n_rows, name=name, verbose=verbose)
def columnsMatchSetConstraint(reference_set: Set[str], name=None, verbose=False):
"""
Defines a constraint on the data set schema.
Checks if the set of columns in the data set is equal to the user-supplied set of expected columns.
Parameters
----------
reference_set : Set[str] (required)
Represents the expected columns in the current data set.
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint which checks if the column set
of the current data set matches the expected column set
"""
if name is None:
ref_name = _format_set_values_for_display(reference_set)
name = f"The columns of the table are equal to the set {ref_name}"
return SummaryConstraint("columns", Op.EQ, reference_set=reference_set, name=name, verbose=verbose)
def columnMostCommonValueInSetConstraint(value_set: Set[Any], name=None, verbose=False):
"""
Defines a summary constraint on the most common value of a feature.
The most common value of the feature should be in the set of user-supplied values, `value_set`.
Useful for categorical features, for checking if the most common value of a feature
belongs in an expected set of common categories.
Parameters
----------
value_set : Set[Any] (required)
Represents the set of expected values for a feature.
The provided values can be of any type.
If the most common value of the feature is not in the values of the user-specified `value_set`,
the constraint will fail.
name : str
The name of the constraint.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a constraint on the most common value of a feature
to belong to a set of user-specified expected values
"""
try:
value_set = set(value_set)
except Exception:
raise TypeError("The value set should be an iterable data type")
if name is None:
val_name = _format_set_values_for_display(value_set)
name = f"most common value is in {val_name}"
return SummaryConstraint("most_common_value", op=Op.IN, reference_set=value_set, name=name, verbose=verbose)
def columnValuesNotNullConstraint(name=None, verbose=False):
"""
Defines a non-null summary constraint on the value of a feature.
Useful for features for which there is no tolerance for missing values.
The constraint will fail if there is at least one missing value in the specified feature.
Parameters
----------
name : str
The name of the constraint.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining that no missing values
are allowed for the specified feature
"""
if name is None:
name = "does not contain missing values"
return SummaryConstraint("null_count", value=0, op=Op.EQ, name=name, verbose=verbose)
def missingValuesProportionBetweenConstraint(lower_fraction: float, upper_fraction: float, name: str = None, verbose: bool = False):
"""
Defines a summary constraint on the proportion of missing values of a specific feature.
The proportion of missing values can be defined to be between two frequency values.
The defined interval is a closed interval, which includes both of its limit points.
Useful for checking features with expected amounts of missing values.
Parameters
----------
lower_fraction : fraction between 0 and 1 (required)
Represents the lower fraction limit of the interval for the feature missing value proportion.
upper_fraction : fraction between 0 and 1 (required)
Represents the upper fraction limit of the interval for the feature missing value proportion.
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining a closed interval
for the valid proportion of missing values of a specific feature
"""
if not all([isinstance(v, float) and 0 <= v <= 1 for v in (lower_fraction, upper_fraction)]):
raise ValueError("The lower and upper fractions should be between 0 and 1")
if lower_fraction > upper_fraction:
raise ValueError("The lower fraction should be decimal values less than or equal to the upper fraction")
if not name:
name = f"missing values proportion is between {lower_fraction * 100}% and {upper_fraction * 100}%"
return SummaryConstraint("missing_values_proportion", op=Op.BTWN, value=lower_fraction, upper_value=upper_fraction, name=name, verbose=verbose)
def columnValuesTypeEqualsConstraint(expected_type: Union[InferredType, int], name=None, verbose: bool = False):
"""
Defines a summary constraint on the type of the feature values.
The type of values should be equal to the user-provided expected type.
Parameters
----------
expected_type: Union[InferredType, int]
whylogs.proto.InferredType.Type - Enumeration of allowed inferred data types
If supplied as integer value, should be one of:
UNKNOWN = 0
NULL = 1
FRACTIONAL = 2
INTEGRAL = 3
BOOLEAN = 4
STRING = 5
name : str
Name of the constraint used for reporting
verbose: bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining that the feature values type should be
equal to a user-provided expected type
"""
if not isinstance(expected_type, (InferredType, int)):
raise ValueError("The expected_type parameter should be of type whylogs.proto.InferredType or int")
if isinstance(expected_type, InferredType):
expected_type = expected_type.type
if name is None:
name = f"type of the column values is {InferredType.Type.Name(expected_type)}"
return SummaryConstraint("column_values_type", op=Op.EQ, value=expected_type, name=name, verbose=verbose)
def columnValuesTypeInSetConstraint(type_set: Set[int], name=None, verbose: bool = False):
"""
Defines a summary constraint on the type of the feature values.
The type of values should be in the set of to the user-provided expected types.
Parameters
----------
type_set: Set[int]
whylogs.proto.InferredType.Type - Enumeration of allowed inferred data types
If supplied as integer value, should be one of:
UNKNOWN = 0
NULL = 1
FRACTIONAL = 2
INTEGRAL = 3
BOOLEAN = 4
STRING = 5
name : str
Name of the constraint used for reporting
verbose: bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining that the feature values type should be
in the set of user-provided expected types
"""
try:
type_set = set(type_set)
except Exception:
raise TypeError("The type_set parameter should be an iterable of int values")
if not all([isinstance(t, int) for t in type_set]):
raise TypeError("All of the elements of the type_set parameter should be of type int")
if name is None:
type_names = {InferredType.Type.Name(t) if isinstance(t, int) else InferredType.Type.Name(t.type) for t in type_set}
type_names = _format_set_values_for_display(type_names)
name = f"type of the column values is in {type_names}"
return SummaryConstraint("column_values_type", op=Op.IN, reference_set=type_set, name=name, verbose=verbose)
def approximateEntropyBetweenConstraint(lower_value: Union[int, float], upper_value: float, name=None, verbose=False):
"""
Defines a summary constraint specifying the expected interval of the features estimated entropy.
The defined interval is a closed interval, which includes both of its limit points.
Parameters
----------
lower_value : numeric (required)
Represents the lower value limit of the interval for the feature's estimated entropy.
upper_value : numeric (required)
Represents the upper value limit of the interval for the feature's estimated entropy.
name : str
Name of the constraint used for reporting
verbose: bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint defining the interval of valid values
of the feature's estimated entropy
"""
if not all([isinstance(v, (int, float)) for v in (lower_value, upper_value)]):
raise TypeError("The lower and upper values should be of type int or float")
if not all([v >= 0 for v in (lower_value, upper_value)]):
raise ValueError("The value of the entropy cannot be a negative number")
if lower_value > upper_value:
raise ValueError("The supplied lower bound should be less than or equal to the supplied upper bound")
if name is None:
name = f"approximate entropy is between {lower_value} and {upper_value}"
return SummaryConstraint("entropy", op=Op.BTWN, value=lower_value, upper_value=upper_value, name=name, verbose=verbose)
def parametrizedKSTestPValueGreaterThanConstraint(reference_distribution: Union[List[float], np.ndarray], p_value=0.05, name=None, verbose=False):
"""
Defines a summary constraint specifying the expected
upper limit of the p-value for rejecting the null hypothesis of the KS test.
Can be used only for continuous data.
Parameters
----------
reference_distribution: Array-like
Represents the reference distribution for calculating the KS Test p_value of the column,
should be an array-like object with floating point numbers,
Only numeric distributions are accepted
p_value: float
Represents the reference p_value value to compare with the p_value of the test
Should be between 0 and 1, inclusive
name : str
Name of the constraint used for reporting
verbose: bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint specifying the upper limit of the
KS test p-value for rejecting the null hypothesis
"""
if not isinstance(p_value, float):
raise TypeError("The p_value should be a of type float")
if not 0 <= p_value <= 1:
raise ValueError("The p_value should be a float value between 0 and 1 inclusive")
if not isinstance(reference_distribution, (list, np.ndarray)):
raise TypeError("The reference distribution must be a list or numpy array with float values")
kll_floats = datasketches.kll_floats_sketch(DEFAULT_HIST_K)
for value in reference_distribution:
if TypedDataConverter.get_type(value) != TYPES.FRACTIONAL:
raise ValueError("The reference distribution should be a continuous distribution")
kll_floats.update(value)
if name is None:
name = f"parametrized KS test p-value is greater than {p_value}"
return SummaryConstraint("ks_test", op=Op.GT, reference_set=kll_floats, value=p_value, name=name, verbose=verbose)
def columnKLDivergenceLessThanConstraint(reference_distribution: Union[List[Any], np.ndarray], threshold: float = 0.5, name=None, verbose: bool = False):
"""
Defines a summary constraint specifying the expected
upper limit of the threshold for the KL divergence of the specified feature.
Parameters
----------
reference_distribution: Array-like
Represents the reference distribution for calculating the KL Divergence of the column,
should be an array-like object with floating point numbers, or integers, strings and booleans, but not both
Both numeric and categorical distributions are accepted
threshold: float
Represents the threshold value which if exceeded from the KL Divergence, the constraint would fail
name : str
Name of the constraint used for reporting
verbose: bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint specifying the upper threshold of the
feature's KL divergence
"""
if not isinstance(reference_distribution, (list, np.ndarray)):
raise TypeError("The reference distribution should be an array-like instance of values")
if not isinstance(threshold, float):
raise TypeError("The threshold value should be of type float")
type_error_message = (
"The provided reference distribution should have only categorical (int, string, bool) or only numeric types (float, double) of values, but not both"
)
cardinality_sketch = HllSketch()
frequent_items_sketch = FrequentItemsSketch()
quantiles_sketch = datasketches.kll_floats_sketch(DEFAULT_HIST_K)
data_type = TYPES.UNKNOWN
categorical_types = (TYPES.INTEGRAL, TYPES.STRING, TYPES.BOOLEAN)
numeric_types = (TYPES.FRACTIONAL,)
total_count = 0
for value in reference_distribution:
value_type = TypedDataConverter.get_type(value)
if value_type in numeric_types:
if data_type not in (TYPES.UNKNOWN,) + numeric_types:
raise TypeError(type_error_message)
quantiles_sketch.update(value)
data_type = value_type
elif value_type in categorical_types:
if data_type not in (TYPES.UNKNOWN,) + categorical_types:
raise TypeError(type_error_message)
cardinality_sketch.update(value)
frequent_items_sketch.update(value)
total_count += 1
data_type = value_type
else:
raise TypeError(type_error_message)
if data_type in numeric_types:
ref_summary = quantiles_sketch
else:
ref_summary = ReferenceDistributionDiscreteMessage(
frequent_items=frequent_items_sketch.to_summary(), unique_count=cardinality_sketch.to_summary(), total_count=total_count
)
if name is None:
name = f"KL Divergence is less than {threshold}"
return SummaryConstraint("kl_divergence", op=Op.LT, reference_set=ref_summary, value=threshold, name=name, verbose=verbose)
def columnChiSquaredTestPValueGreaterThanConstraint(
reference_distribution: Union[List[Any], np.ndarray, Mapping[str, int]], p_value: float = 0.05, name=None, verbose: bool = False
):
"""
Defines a summary constraint specifying the expected
upper limit of the p-value for rejecting the null hypothesis of the Chi-Squared test.
Can be used only for discrete data.
Parameters
----------
reference_distribution: Array-like
Represents the reference distribution for calculating the Chi-Squared test,
should be an array-like object with integer, string or boolean values
or a mapping of type key: value where the keys are the items and the values are the per-item counts
Only categorical distributions are accepted
p_value: float
Represents the reference p_value value to compare with the p_value of the test
Should be between 0 and 1, inclusive
name : str
Name of the constraint used for reporting
verbose: bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
SummaryConstraint - a summary constraint specifying the upper limit of the
Chi-Squared test p-value for rejecting the null hypothesis
"""
if not isinstance(reference_distribution, (list, np.ndarray, dict)):
raise TypeError("The reference distribution should be an array-like instance of float values, or a mapping of the counts of the expected items")
if not isinstance(p_value, float) or not 0 <= p_value <= 1:
raise TypeError("The p-value should be a float value between 0 and 1 inclusive")
categorical_types = (TYPES.INTEGRAL, TYPES.STRING, TYPES.BOOLEAN)
frequent_items_sketch = FrequentItemsSketch()
if isinstance(reference_distribution, dict):
frequency_sum = 0
for item, frequency in reference_distribution.items():
if TypedDataConverter.get_type(item) not in categorical_types or not isinstance(frequency, int):
raise ValueError("The provided frequent items mapping should contain only str, int or bool values as items and int values as counts per item")
frequent_items_sketch.update(item, frequency)
frequency_sum += frequency
else:
frequency_sum = len(reference_distribution)
for value in reference_distribution:
if TypedDataConverter.get_type(value) not in categorical_types:
raise ValueError("The provided values in the reference distribution should all be of categorical type (str, int or bool)")
frequent_items_sketch.update(value)
ref_dist = ReferenceDistributionDiscreteMessage(frequent_items=frequent_items_sketch.to_summary(), total_count=frequency_sum)
if name is None:
name = f"Chi-Squared test p-value is greater than {p_value}"
return SummaryConstraint("chi_squared_test", op=Op.GT, reference_set=ref_dist, value=p_value, name=name, verbose=verbose)
def columnValuesAGreaterThanBConstraint(column_A: str, column_B: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that each value in column A,
specified in `column_A`, is greater than the corresponding value of column B, specified in `column_B`
in the same row.
Parameters
----------
column_A : str
The name of column A
column_B : str
The name of column B
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - multi-column value constraint specifying that values from column A
should always be greater than the corresponding values of column B
"""
if not all([isinstance(col, str)] for col in (column_A, column_B)):
raise TypeError("The provided dependent_column and reference_column should be of type str, indicating the name of the columns to be compared")
if name is None:
name = f"The values of the column {column_A} are greater than the corresponding values of the column {column_B}"
return MultiColumnValueConstraint(column_A, op=Op.GT, reference_columns=column_B, name=name, verbose=verbose)
def columnValuesAGreaterThanEqualBConstraint(column_A: str, column_B: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that each value in column A,
specified in `column_A`, is greater than or equal to the corresponding value of column B,
specified in `column_B` in the same row.
Parameters
----------
column_A : str
The name of column A
column_B : str
The name of column B
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - multi-column value constraint specifying that values from column A
should always be greater than or equal to the corresponding values of column B
"""
if not all([isinstance(col, str)] for col in (column_A, column_B)):
raise TypeError("The provided dependent_column and reference_column should be of type str, indicating the name of the columns to be compared")
if name is None:
name = f"The values of the column {column_A} are greater than or equal to the corresponding values of the column {column_B}"
return MultiColumnValueConstraint(column_A, op=Op.GE, reference_columns=column_B, name=name, verbose=verbose)
def columnValuesALessThanBConstraint(column_A: str, column_B: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that each value in column A,
specified in `column_A`, is less than the corresponding value of column B, specified in `column_B`
in the same row.
Parameters
----------
column_A : str
The name of column A
column_B : str
The name of column B
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - multi-column value constraint specifying that values from column A
should always be less the corresponding values of column B
"""
if not all([isinstance(col, str)] for col in (column_A, column_B)):
raise TypeError("The provided dependent_column and reference_column should be of type str, indicating the name of the columns to be compared")
if name is None:
name = f"The values of the column {column_A} are less than the corresponding values of the column {column_B}"
return MultiColumnValueConstraint(column_A, op=Op.LT, reference_columns=column_B, name=name, verbose=verbose)
def columnValuesALessThanEqualBConstraint(column_A: str, column_B: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that each value in column A,
specified in `column_A`, is less than or equal to the corresponding value of column B, specified in `column_B`
in the same row.
Parameters
----------
column_A : str
The name of column A
column_B : str
The name of column B
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - multi-column value constraint specifying that values from column A
should always be less than or equal to the corresponding values of column B
"""
if not all([isinstance(col, str)] for col in (column_A, column_B)):
raise TypeError("The provided dependent_column and reference_column should be of type str, indicating the name of the columns to be compared")
if name is None:
name = f"The values of the column {column_A} are less than or equal to the corresponding values of the column {column_B}"
return MultiColumnValueConstraint(column_A, op=Op.LE, reference_columns=column_B, name=name, verbose=verbose)
def columnValuesAEqualBConstraint(column_A: str, column_B: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that each value in column A,
specified in `column_A`, is equal to the corresponding value of column B, specified in `column_B`
in the same row.
Parameters
----------
column_A : str
The name of column A
column_B : str
The name of column B
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - multi-column value constraint specifying that values from column A
should always be equal to the corresponding values of column B
"""
if not all([isinstance(col, str)] for col in (column_A, column_B)):
raise TypeError("The provided dependent_column and reference_column should be of type str, indicating the name of the columns to be compared")
if name is None:
name = f"The values of the column {column_A} are equal to the corresponding values of the column {column_B}"
return MultiColumnValueConstraint(column_A, op=Op.EQ, reference_columns=column_B, name=name, verbose=verbose)
def columnValuesANotEqualBConstraint(column_A: str, column_B: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that each value in column A,
specified in `column_A`, is different from the corresponding value of column B, specified in `column_B`
in the same row.
Parameters
----------
column_A : str
The name of column A
column_B : str
The name of column B
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - multi-column value constraint specifying that values from column A
should always be different from the corresponding values of column B
"""
if not all([isinstance(col, str)] for col in (column_A, column_B)):
raise TypeError("The provided dependent_column and reference_column should be of type str, indicating the name of the columns to be compared")
if name is None:
name = f"The values of the column {column_A} are not equal to the corresponding values of the column {column_B}"
return MultiColumnValueConstraint(column_A, op=Op.NE, reference_columns=column_B, name=name, verbose=verbose)
def sumOfRowValuesOfMultipleColumnsEqualsConstraint(
columns: Union[List[str], Set[str], np.array], value: Union[float, int, str], name=None, verbose: bool = False
):
"""
Defines a multi-column value constraint which specifies that the sum of the values in each row
of the provided columns, specified in `columns`, should be equal to the user-predefined value, specified in `value`,
or to the corresponding value of another column, which will be specified with a name in the `value` parameter.
Parameters
----------
columns : List[str]
List of columns for which the sum of row values should equal the provided-value
value : Union[float, int, str]
Numeric value to compare with the sum of the column row values,
or a string indicating a column name for which the row value will be compared with the sum
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - specifying the expected value of the sum of the values in multiple columns
"""
if not isinstance(columns, (list, set, np.array)) or not all(isinstance(col, str) for col in columns):
raise TypeError(
"The column list should be an array-like data type of only string values, indicating the column names, for which the values are going to be summed"
)
if not isinstance(value, (float, int, str)):
raise TypeError(
"The value should be a numeric value equal to the expected sum,"
" or a string indicating the column name for which the row value will be taken as the reference sum value"
)
reference_cols = None
if isinstance(value, str):
reference_cols = [value]
value = None
if name is None:
coumn_names = ""
for i in range(len(columns) - 1):
if i == len(columns) - 2:
coumn_names += columns[i] + " "
else:
coumn_names += columns[i] + ", "
coumn_names += "and " + columns[-1]
value_or_column_name = f"the corresponding value of the column {reference_cols[0]}" if reference_cols else value
name = f"The sum of the values of {coumn_names} is equal to {value_or_column_name}"
return MultiColumnValueConstraint(
dependent_columns=columns, op=Op.EQ, value=value, reference_columns=reference_cols, internal_dependent_cols_op=Op.SUM, name=name, verbose=verbose
)
def columnPairValuesInSetConstraint(column_A: str, column_B: str, value_set: Set[Tuple[Any, Any]], name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that the pair of values of columns A and B,
should be in a user-predefined set of expected pairs of values.
Parameters
----------
column_A : str
The name of the first column
column_B : str
The name of the second column
value_set : Set[Tuple[Any, Any]]
A set of expected pairs of values for the columns A and B, in that order
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - specifying the expected set of value pairs of two columns in the data set
"""
if not all([isinstance(col, str) for col in (column_A, column_B)]):
raise TypeError("The provided column_A and column_B should be of type str, indicating the name of the columns to be compared")
if isinstance(value_set, str):
raise TypeError("The value_set should be an array-like data type of tuple values")
try:
value_set = set(value_set)
except Exception:
raise TypeError("The value_set should be an array-like data type of tuple values")
if name is None:
val_name = _format_set_values_for_display(value_set)
name = f"The pair of values of the columns {column_A} and {column_B} are in {val_name}"
return MultiColumnValueConstraint(dependent_columns=[column_A, column_B], op=Op.IN, value=value_set, name=name, verbose=verbose)
def columnValuesUniqueWithinRow(column_A: str, name=None, verbose: bool = False):
"""
Defines a multi-column value constraint which specifies that the values of column A
should be unique within each row of the data set.
Parameters
----------
column_A : str
The name of the column for which it is expected that the values are unique within each row
name : str
Name of the constraint used for reporting
verbose : bool
If true, log every application of this constraint that fails.
Useful to identify specific streaming values that fail the constraint.
Returns
-------
MultiColumnValueConstraint - specifying that the provided column's values are unique within each row
"""
if not isinstance(column_A, str):
raise TypeError("The provided column_A should be of type str, indicating the name of the column to be checked")
if name is None:
name = f"The values of the column {column_A} are unique within each row"
return MultiColumnValueConstraint(dependent_columns=column_A, op=Op.NOT_IN, reference_columns="all", name=name, verbose=verbose)
| [
"whylogs.core.summaryconverters.ks_test_compute_p_value",
"whylogs.core.statistics.hllsketch.HllSketch",
"whylogs.core.summaryconverters.single_quantile_from_sketch",
"whylogs.proto.MultiColumnValueConstraintMsg",
"whylogs.core.summaryconverters.compute_chi_squared_test_p_value",
"whylogs.core.types.Typed... | [((1343, 1370), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (1360, 1370), False, 'import logging\n'), ((116222, 116268), 'datasketches.kll_floats_sketch', 'datasketches.kll_floats_sketch', (['DEFAULT_HIST_K'], {}), '(DEFAULT_HIST_K)\n', (116252, 116268), False, 'import datasketches\n'), ((118374, 118385), 'whylogs.core.statistics.hllsketch.HllSketch', 'HllSketch', ([], {}), '()\n', (118383, 118385), False, 'from whylogs.core.statistics.hllsketch import HllSketch\n'), ((118414, 118435), 'whylogs.util.dsketch.FrequentItemsSketch', 'FrequentItemsSketch', ([], {}), '()\n', (118433, 118435), False, 'from whylogs.util.dsketch import FrequentItemsSketch\n'), ((118459, 118505), 'datasketches.kll_floats_sketch', 'datasketches.kll_floats_sketch', (['DEFAULT_HIST_K'], {}), '(DEFAULT_HIST_K)\n', (118489, 118505), False, 'import datasketches\n'), ((121706, 121727), 'whylogs.util.dsketch.FrequentItemsSketch', 'FrequentItemsSketch', ([], {}), '()\n', (121725, 121727), False, 'from whylogs.util.dsketch import FrequentItemsSketch\n'), ((1784, 1832), 'datetime.datetime.strptime', 'datetime.datetime.strptime', (['strftime_val', 'format'], {}), '(strftime_val, format)\n', (1810, 1832), False, 'import datetime\n'), ((2311, 2330), 'dateutil.parser.parse', 'parse', (['dateutil_val'], {}), '(dateutil_val)\n', (2316, 2330), False, 'from dateutil.parser import parse\n'), ((2775, 2798), 'json.loads', 'json.loads', (['json_string'], {}), '(json_string)\n', (2785, 2798), False, 'import json\n'), ((3570, 3618), 'jsonschema.validate', 'validate', ([], {'instance': 'json_data', 'schema': 'json_schema'}), '(instance=json_data, schema=json_schema)\n', (3578, 3618), False, 'from jsonschema import validate\n'), ((15503, 15714), 'whylogs.proto.ValueConstraintMsg', 'ValueConstraintMsg', ([], {'name': 'self.name', 'op': 'self.op', 'value': 'value', 'value_set': 'set_vals_message', 'regex_pattern': 'regex_pattern', 'function': 'apply_func', 'verbose': 'self._verbose', 'total': 'self.total', 'failures': 'self.failures'}), '(name=self.name, op=self.op, value=value, value_set=\n set_vals_message, regex_pattern=regex_pattern, function=apply_func,\n verbose=self._verbose, total=self.total, failures=self.failures)\n', (15521, 15714), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((29146, 29167), 'datasketches.update_theta_sketch', 'update_theta_sketch', ([], {}), '()\n', (29165, 29167), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((39405, 39766), 'whylogs.proto.SummaryConstraintMsg', 'SummaryConstraintMsg', ([], {'name': 'self.name', 'first_field': 'self.first_field', 'second_field': 'second_field', 'value': 'value', 'value_str': 'value_str', 'between': 'summary_between_constraint_msg', 'reference_set': 'reference_set_msg', 'quantile_value': 'quantile_value', 'continuous_distribution': 'continuous_dist', 'discrete_distribution': 'discrete_dist', 'op': 'self.op', 'verbose': 'self._verbose'}), '(name=self.name, first_field=self.first_field,\n second_field=second_field, value=value, value_str=value_str, between=\n summary_between_constraint_msg, reference_set=reference_set_msg,\n quantile_value=quantile_value, continuous_distribution=continuous_dist,\n discrete_distribution=discrete_dist, op=self.op, verbose=self._verbose)\n', (39425, 39766), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((50228, 50267), 'copy.deepcopy', 'copy.deepcopy', (['column_values_dictionary'], {}), '(column_values_dictionary)\n', (50241, 50267), False, 'import copy\n'), ((56559, 56892), 'whylogs.proto.MultiColumnValueConstraintMsg', 'MultiColumnValueConstraintMsg', ([], {'dependent_columns': 'dependent_multiple_cols', 'dependent_column': 'dependent_single_col', 'name': 'self.name', 'op': 'self.op', 'value': 'value', 'value_set': 'set_vals_message', 'reference_columns': 'ref_cols', 'internal_dependent_columns_op': 'internal_op', 'verbose': 'self._verbose', 'total': 'self.total', 'failures': 'self.failures'}), '(dependent_columns=dependent_multiple_cols,\n dependent_column=dependent_single_col, name=self.name, op=self.op,\n value=value, value_set=set_vals_message, reference_columns=ref_cols,\n internal_dependent_columns_op=internal_op, verbose=self._verbose, total\n =self.total, failures=self.failures)\n', (56588, 56892), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((63028, 63255), 'whylogs.proto.DatasetConstraintMsg', 'DatasetConstraintMsg', ([], {'properties': 'self.dataset_properties', 'value_constraints': 'vm', 'summary_constraints': 'sm', 'table_shape_constraints': 'table_shape_constraints_message', 'multi_column_value_constraints': 'multi_column_value_m'}), '(properties=self.dataset_properties, value_constraints=\n vm, summary_constraints=sm, table_shape_constraints=\n table_shape_constraints_message, multi_column_value_constraints=\n multi_column_value_m)\n', (63048, 63255), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((118729, 118763), 'whylogs.core.types.TypedDataConverter.get_type', 'TypedDataConverter.get_type', (['value'], {}), '(value)\n', (118756, 118763), False, 'from whylogs.core.types import TypedDataConverter\n'), ((3303, 3326), 'json.loads', 'json.loads', (['json_schema'], {}), '(json_schema)\n', (3313, 3326), False, 'import json\n'), ((3465, 3486), 'json.loads', 'json.loads', (['json_data'], {}), '(json_data)\n', (3475, 3486), False, 'import json\n'), ((29641, 29701), 'whylogs.core.summaryconverters.single_quantile_from_sketch', 'single_quantile_from_sketch', (['kll_sketch', 'self.quantile_value'], {}), '(kll_sketch, self.quantile_value)\n', (29668, 29701), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, compute_kl_divergence, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((36342, 36432), 'datasketches.kll_floats_sketch.deserialize', 'datasketches.kll_floats_sketch.deserialize', (['msg.continuous_distribution.sketch.sketch'], {}), '(msg.continuous_distribution.\n sketch.sketch)\n', (36384, 36432), False, 'import datasketches\n'), ((38677, 38688), 'google.protobuf.struct_pb2.ListValue', 'ListValue', ([], {}), '()\n', (38686, 38688), False, 'from google.protobuf.struct_pb2 import ListValue\n'), ((41992, 42013), 'whylogs.proto.ValueConstraintMsgs', 'ValueConstraintMsgs', ([], {}), '()\n', (42011, 42013), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((44712, 44735), 'whylogs.proto.SummaryConstraintMsgs', 'SummaryConstraintMsgs', ([], {}), '()\n', (44733, 44735), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((55566, 55577), 'google.protobuf.struct_pb2.ListValue', 'ListValue', ([], {}), '()\n', (55575, 55577), False, 'from google.protobuf.struct_pb2 import ListValue\n'), ((56260, 56271), 'google.protobuf.struct_pb2.ListValue', 'ListValue', ([], {}), '()\n', (56269, 56271), False, 'from google.protobuf.struct_pb2 import ListValue\n'), ((58203, 58224), 'whylogs.proto.ValueConstraintMsgs', 'ValueConstraintMsgs', ([], {}), '()\n', (58222, 58224), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((62417, 62439), 'whylogs.proto.DatasetConstraintMsg', 'DatasetConstraintMsg', ([], {}), '()\n', (62437, 62439), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((116321, 116355), 'whylogs.core.types.TypedDataConverter.get_type', 'TypedDataConverter.get_type', (['value'], {}), '(value)\n', (116348, 116355), False, 'from whylogs.core.types import TypedDataConverter\n'), ((10818, 10834), 'whylogs.proto.Op.Name', 'Op.Name', (['self.op'], {}), '(self.op)\n', (10825, 10834), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((14967, 15055), 'whylogs.proto.ApplyFunctionMsg', 'ApplyFunctionMsg', ([], {'function': 'self.apply_function.__name__', 'reference_value': 'self.value'}), '(function=self.apply_function.__name__, reference_value=\n self.value)\n', (14983, 15055), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((15098, 15153), 'whylogs.proto.ApplyFunctionMsg', 'ApplyFunctionMsg', ([], {'function': 'self.apply_function.__name__'}), '(function=self.apply_function.__name__)\n', (15114, 15153), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((21003, 21019), 'whylogs.proto.Op.Name', 'Op.Name', (['self.op'], {}), '(self.op)\n', (21010, 21019), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((21610, 21644), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['self.value'], {}), '(self.value)\n', (21632, 21644), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((29775, 29851), 'whylogs.core.summaryconverters.ks_test_compute_p_value', 'ks_test_compute_p_value', (['update_summary.ks_test', 'self.reference_distribution'], {}), '(update_summary.ks_test, self.reference_distribution)\n', (29798, 29851), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, compute_kl_divergence, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((38284, 38348), 'whylogs.proto.ReferenceDistributionContinuousMessage', 'ReferenceDistributionContinuousMessage', ([], {'sketch': 'kll_floats_sketch'}), '(sketch=kll_floats_sketch)\n', (38322, 38348), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((50121, 50137), 'whylogs.proto.Op.Name', 'Op.Name', (['self.op'], {}), '(self.op)\n', (50128, 50137), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((55791, 55802), 'google.protobuf.struct_pb2.ListValue', 'ListValue', ([], {}), '()\n', (55800, 55802), False, 'from google.protobuf.struct_pb2 import ListValue\n'), ((111095, 111132), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['expected_type'], {}), '(expected_type)\n', (111117, 111132), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((112595, 112620), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['t'], {}), '(t)\n', (112617, 112620), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((112648, 112678), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['t.type'], {}), '(t.type)\n', (112670, 112678), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((122354, 122388), 'whylogs.core.types.TypedDataConverter.get_type', 'TypedDataConverter.get_type', (['value'], {}), '(value)\n', (122381, 122388), False, 'from whylogs.core.types import TypedDataConverter\n'), ((11507, 11524), 'json.dumps', 'json.dumps', (['value'], {}), '(value)\n', (11517, 11524), False, 'import json\n'), ((15271, 15282), 'google.protobuf.struct_pb2.ListValue', 'ListValue', ([], {}), '()\n', (15280, 15282), False, 'from google.protobuf.struct_pb2 import ListValue\n'), ((21687, 21718), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['element'], {}), '(element)\n', (21709, 21718), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((29931, 30016), 'whylogs.core.summaryconverters.compute_kl_divergence', 'compute_kl_divergence', (['update_summary.kl_divergence', 'self.reference_distribution'], {}), '(update_summary.kl_divergence, self.reference_distribution\n )\n', (29952, 30016), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, compute_kl_divergence, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((38900, 38986), 'whylogs.proto.SummaryBetweenConstraintMsg', 'SummaryBetweenConstraintMsg', ([], {'lower_value': 'self.value', 'upper_value': 'self.upper_value'}), '(lower_value=self.value, upper_value=self.\n upper_value)\n', (38927, 38986), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((39049, 39143), 'whylogs.proto.SummaryBetweenConstraintMsg', 'SummaryBetweenConstraintMsg', ([], {'second_field': 'self.second_field', 'third_field': 'self.third_field'}), '(second_field=self.second_field, third_field=\n self.third_field)\n', (39076, 39143), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((50018, 50043), 'whylogs.proto.Op.Name', 'Op.Name', (['self.internal_op'], {}), '(self.internal_op)\n', (50025, 50043), False, 'from whylogs.proto import ApplyFunctionMsg, DatasetConstraintMsg, DatasetProperties, InferredType, KllFloatsSketchMessage, MultiColumnValueConstraintMsg, Op, ReferenceDistributionContinuousMessage, ReferenceDistributionDiscreteMessage, SummaryBetweenConstraintMsg, SummaryConstraintMsg, SummaryConstraintMsgs, ValueConstraintMsg, ValueConstraintMsgs\n'), ((54394, 54423), 'whylogs.core.types.TypedDataConverter.convert', 'TypedDataConverter.convert', (['v'], {}), '(v)\n', (54420, 54423), False, 'from whylogs.core.types import TypedDataConverter\n'), ((121882, 121915), 'whylogs.core.types.TypedDataConverter.get_type', 'TypedDataConverter.get_type', (['item'], {}), '(item)\n', (121909, 121915), False, 'from whylogs.core.types import TypedDataConverter\n'), ((10322, 10352), 're.compile', 're.compile', (['self.regex_pattern'], {}), '(self.regex_pattern)\n', (10332, 10352), False, 'import re\n'), ((30094, 30193), 'whylogs.core.summaryconverters.compute_chi_squared_test_p_value', 'compute_chi_squared_test_p_value', (['update_summary.chi_squared_test', 'self.reference_distribution'], {}), '(update_summary.chi_squared_test, self.\n reference_distribution)\n', (30126, 30193), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, compute_kl_divergence, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((55948, 55959), 'google.protobuf.struct_pb2.ListValue', 'ListValue', ([], {}), '()\n', (55957, 55959), False, 'from google.protobuf.struct_pb2 import ListValue\n'), ((5402, 5417), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (5415, 5417), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((5519, 5534), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (5532, 5534), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((5726, 5741), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (5739, 5741), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((5843, 5858), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (5856, 5858), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((6045, 6060), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (6058, 6060), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((6162, 6177), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (6175, 6177), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((6274, 6289), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (6287, 6289), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n'), ((6386, 6401), 'datasketches.theta_a_not_b', 'theta_a_not_b', ([], {}), '()\n', (6399, 6401), False, 'from datasketches import theta_a_not_b, update_theta_sketch\n')] |
import datetime
import json
import os
from uuid import uuid4
import pytest
import numpy as np
from pandas import util
from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile
from whylogs.core.model_profile import ModelProfile
from whylogs.util import time
from whylogs.util.protobuf import message_to_dict, message_to_json
from whylogs.util.time import to_utc_ms
def test_all_zeros_returns_summary_with_stats():
stats = ("min", "max", "stddev", "mean")
array = np.zeros([100, 1])
prof = array_profile(array)
msg = prof.to_summary()
d = message_to_dict(msg)
d1 = json.loads(message_to_json(msg))
number_summary = d["columns"]["0"]["numberSummary"]
missing_stats = [k for k in stats if k not in number_summary]
if len(missing_stats) > 0:
raise RuntimeError(f"Stats missing from number summary: {missing_stats}")
assert d == d1
def test_empty_valid_datasetprofiles_empty():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
x1 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
x2 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
merged = x1.merge(x2)
assert merged.name == "test"
assert merged.session_id == shared_session_id
assert merged.session_timestamp == now
assert merged.columns == {}
def test_merge_different_columns():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
x1 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "x1"}, )
x1.track("col1", "value")
x2 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "x2"}, )
x2.track("col2", "value")
merged = x1.merge(x2)
assert merged.name == "test"
assert merged.session_id == shared_session_id
assert merged.session_timestamp == now
assert set(list(merged.columns.keys())) == {"col1", "col2"}
assert merged.columns["col1"].counters.count == 1
assert merged.columns["col2"].counters.count == 1
assert merged.tags == dict({"name": "test", "key": "value"})
assert merged.metadata == dict({"key": "x1"})
def test_merge_lhs_no_profile():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
x1 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
x2 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, model_profile=ModelProfile())
merged = x1.merge(x2)
assert merged.name == "test"
assert merged.session_id == shared_session_id
assert merged.session_timestamp == now
assert merged.columns == {}
assert merged.model_profile is not None
def test_merge_rhs_no_profile():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
x1 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, model_profile=ModelProfile())
x2 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
merged = x1.merge(x2)
assert merged.name == "test"
assert merged.session_id == shared_session_id
assert merged.session_timestamp == now
assert merged.columns == {}
assert merged.model_profile is not None
def test_merge_same_columns():
now = datetime.datetime.utcnow()
shared_session_id = uuid4().hex
x1 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
x1.track("col1", "value1")
x2 = DatasetProfile(name="test", session_id=shared_session_id, session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
x2.track("col1", "value1")
x2.track("col2", "value")
merged = x1.merge(x2)
assert merged.name == "test"
assert merged.session_id == shared_session_id
assert merged.session_timestamp == now
assert set(list(merged.columns.keys())) == {"col1", "col2"}
assert merged.columns["col1"].counters.count == 2
assert merged.columns["col2"].counters.count == 1
def test_protobuf_round_trip():
now = datetime.datetime.utcnow()
tags = {"k1": "rock", "k2": "scissors", "k3": "paper"}
original = DatasetProfile(name="test", dataset_timestamp=now, tags=tags, )
original.track("col1", "value")
original.track("col2", "value")
msg = original.to_protobuf()
roundtrip = DatasetProfile.from_protobuf(msg)
assert roundtrip.name == "test"
assert roundtrip.session_id == original.session_id
assert to_utc_ms(roundtrip.session_timestamp) == to_utc_ms(
original.session_timestamp)
assert set(list(roundtrip.columns.keys())) == {"col1", "col2"}
assert roundtrip.columns["col1"].counters.count == 1
assert roundtrip.columns["col2"].counters.count == 1
tags["name"] = "test"
assert set(roundtrip.tags) == set(tags)
assert roundtrip.metadata == original.metadata
def test_non_string_tag_raises_assert_error():
now = datetime.datetime.utcnow()
tags = {"key": "value"}
x = DatasetProfile("test", now, tags=tags)
x.validate()
# Include a non-string tag
x._tags["number"] = 1
try:
x.validate()
raise RuntimeError("validate should raise an AssertionError")
except AssertionError:
pass
def test_mismatched_tags_raises_assertion_error():
now = datetime.datetime.utcnow()
x1 = DatasetProfile("test", now, tags={"key": "foo"})
x2 = DatasetProfile("test", now, tags={"key": "bar"})
try:
x1.merge_strict(x2)
raise RuntimeError("Assertion error not raised")
except AssertionError:
pass
def test_mismatched_tags_merge_succeeds():
now = datetime.datetime.utcnow()
x1 = DatasetProfile("test", now, tags={"key": "foo"})
x2 = DatasetProfile("test2", now, tags={"key": "bar"})
result = x1.merge(x2)
assert result.tags.get("key") == "foo"
def test_name_always_appear_in_tags():
x1 = DatasetProfile(name="test")
assert x1.tags["name"] == "test"
def test_parse_delimited_from_java_single():
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(dir_path, "output_from_java_08242020.bin"), "rb") as f:
data = f.read()
assert DatasetProfile.parse_delimited_single(data) is not None
with open(os.path.join(dir_path, "output_from_java_01212021.bin"), "rb") as f:
data = f.read()
assert DatasetProfile.parse_delimited_single(data) is not None
def test_parse_from_protobuf():
dir_path = os.path.dirname(os.path.realpath(__file__))
DatasetProfile.read_protobuf(os.path.join(
dir_path, "output_from_java_08242020.bin"))
def test_parse_delimited_from_java_multiple():
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(dir_path, "output_from_java_08242020.bin"), "rb") as f:
data = f.read()
multiple = data + data
result = DatasetProfile.parse_delimited(multiple)
assert len(result) == 2
def test_write_delimited_single():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
original.track("col1", "value")
output_bytes = original.serialize_delimited()
pos, roundtrip = DatasetProfile.parse_delimited_single(output_bytes)
assert roundtrip.session_id == original.session_id
# Python time precision includes nanoseconds
assert time.to_utc_ms(roundtrip.session_timestamp) == time.to_utc_ms(
original.session_timestamp)
assert roundtrip.tags == original.tags
assert roundtrip.metadata == original.metadata
def test_write_delimited_multiple():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
original.track("col1", "value")
output_bytes = original.serialize_delimited()
multiple_entries = output_bytes
for i in range(1, 5):
multiple_entries += output_bytes
entries = DatasetProfile.parse_delimited(multiple_entries)
assert len(entries) == 5
for entry in entries:
assert entry.session_id == original.session_id
# Python time precisions are different
assert time.to_utc_ms(entry.session_timestamp) == time.to_utc_ms(
original.session_timestamp)
assert entry.tags == original.tags
assert entry.metadata == original.metadata
def test_verify_schema_version():
dp = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=datetime.datetime.now(
), tags={"key": "value"}, metadata={"key": "value"}, )
props = dp.to_properties()
assert props.schema_major_version == 1
assert props.schema_minor_version == 1
def tests_timestamp():
time = datetime.datetime.now()
dp = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=datetime.datetime.now(
), tags={"key": "value"}, metadata={"key": "value"}, )
time_2 = dp.session_timestamp_ms
assert time_2 == int(time.replace(
tzinfo=datetime.timezone.utc).timestamp() * 1000.0)
def test_dataframe_profile():
time = datetime.datetime.now()
df = util.testing.makeDataFrame()
profile = DatasetProfile("test", time)
profile.track_dataframe(df)
profile_factory = dataframe_profile(df, name="test", timestamp=time)
assert profile_factory.columns["A"].number_tracker.variance.mean == profile.columns[
"A"].number_tracker.variance.mean
profile_factory_2 = dataframe_profile(df)
assert profile_factory_2.columns["A"].number_tracker.variance.mean == profile.columns[
"A"].number_tracker.variance.mean
profile_factory_3 = dataframe_profile(df, timestamp=103433)
assert profile_factory_3.columns["A"].number_tracker.variance.mean == profile.columns[
"A"].number_tracker.variance.mean
def test_track():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
data = {
"rows": 1,
"names": "roger roger",
}
original.track(columns=data)
def test_errors():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
with pytest.raises(TypeError):
original.track(columns=1, data=34)
def test_flat_summary():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
flat_summary = original.flat_summary()
assert flat_summary is not None
assert len(original.flat_summary()) == 4
def test_chunk_iterator():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
data = {
"rows": 1,
"names": "roger roger",
}
original.track(columns=data)
for each_chuck in original.chunk_iterator():
assert each_chuck is not None
def test_array():
now = datetime.datetime.utcnow()
original = DatasetProfile(name="test", session_id="test.session.id", session_timestamp=now, tags={
"key": "value"}, metadata={"key": "value"}, )
with pytest.raises(ValueError):
original.track_array(np.random.rand(3))
| [
"whylogs.core.datasetprofile.DatasetProfile.parse_delimited_single",
"whylogs.util.protobuf.message_to_json",
"whylogs.util.time.to_utc_ms",
"whylogs.util.protobuf.message_to_dict",
"whylogs.core.datasetprofile.dataframe_profile",
"whylogs.core.datasetprofile.DatasetProfile.from_protobuf",
"whylogs.util... | [((506, 524), 'numpy.zeros', 'np.zeros', (['[100, 1]'], {}), '([100, 1])\n', (514, 524), True, 'import numpy as np\n'), ((537, 557), 'whylogs.core.datasetprofile.array_profile', 'array_profile', (['array'], {}), '(array)\n', (550, 557), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((594, 614), 'whylogs.util.protobuf.message_to_dict', 'message_to_dict', (['msg'], {}), '(msg)\n', (609, 614), False, 'from whylogs.util.protobuf import message_to_dict, message_to_json\n'), ((970, 996), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (994, 996), False, 'import datetime\n'), ((1042, 1177), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (1056, 1177), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((1193, 1328), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (1207, 1328), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((1568, 1594), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (1592, 1594), False, 'import datetime\n'), ((1640, 1772), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'x1'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'x1'})\n", (1654, 1772), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((1818, 1950), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'x2'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'x2'})\n", (1832, 1950), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((2473, 2499), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (2497, 2499), False, 'import datetime\n'), ((2545, 2680), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (2559, 2680), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((3140, 3166), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (3164, 3166), False, 'import datetime\n'), ((3391, 3526), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (3405, 3526), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((3805, 3831), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (3829, 3831), False, 'import datetime\n'), ((3877, 4012), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (3891, 4012), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((4059, 4194), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (4073, 4194), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((4631, 4657), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (4655, 4657), False, 'import datetime\n'), ((4732, 4793), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'dataset_timestamp': 'now', 'tags': 'tags'}), "(name='test', dataset_timestamp=now, tags=tags)\n", (4746, 4793), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((4918, 4951), 'whylogs.core.datasetprofile.DatasetProfile.from_protobuf', 'DatasetProfile.from_protobuf', (['msg'], {}), '(msg)\n', (4946, 4951), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((5506, 5532), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (5530, 5532), False, 'import datetime\n'), ((5569, 5607), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""test"""', 'now'], {'tags': 'tags'}), "('test', now, tags=tags)\n", (5583, 5607), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((5886, 5912), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (5910, 5912), False, 'import datetime\n'), ((5922, 5970), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""test"""', 'now'], {'tags': "{'key': 'foo'}"}), "('test', now, tags={'key': 'foo'})\n", (5936, 5970), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((5980, 6028), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""test"""', 'now'], {'tags': "{'key': 'bar'}"}), "('test', now, tags={'key': 'bar'})\n", (5994, 6028), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((6218, 6244), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (6242, 6244), False, 'import datetime\n'), ((6254, 6302), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""test"""', 'now'], {'tags': "{'key': 'foo'}"}), "('test', now, tags={'key': 'foo'})\n", (6268, 6302), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((6312, 6361), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""test2"""', 'now'], {'tags': "{'key': 'bar'}"}), "('test2', now, tags={'key': 'bar'})\n", (6326, 6361), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((6482, 6509), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""'}), "(name='test')\n", (6496, 6509), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((7587, 7613), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (7611, 7613), False, 'import datetime\n'), ((7630, 7765), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (7644, 7765), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((7880, 7931), 'whylogs.core.datasetprofile.DatasetProfile.parse_delimited_single', 'DatasetProfile.parse_delimited_single', (['output_bytes'], {}), '(output_bytes)\n', (7917, 7931), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((8290, 8316), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (8314, 8316), False, 'import datetime\n'), ((8333, 8468), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (8347, 8468), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((8681, 8729), 'whylogs.core.datasetprofile.DatasetProfile.parse_delimited', 'DatasetProfile.parse_delimited', (['multiple_entries'], {}), '(multiple_entries)\n', (8711, 8729), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((9452, 9475), 'datetime.datetime.now', 'datetime.datetime.now', ([], {}), '()\n', (9473, 9475), False, 'import datetime\n'), ((9822, 9845), 'datetime.datetime.now', 'datetime.datetime.now', ([], {}), '()\n', (9843, 9845), False, 'import datetime\n'), ((9855, 9883), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (9881, 9883), False, 'from pandas import util\n'), ((9899, 9927), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""test"""', 'time'], {}), "('test', time)\n", (9913, 9927), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((9983, 10033), 'whylogs.core.datasetprofile.dataframe_profile', 'dataframe_profile', (['df'], {'name': '"""test"""', 'timestamp': 'time'}), "(df, name='test', timestamp=time)\n", (10000, 10033), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((10191, 10212), 'whylogs.core.datasetprofile.dataframe_profile', 'dataframe_profile', (['df'], {}), '(df)\n', (10208, 10212), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((10370, 10409), 'whylogs.core.datasetprofile.dataframe_profile', 'dataframe_profile', (['df'], {'timestamp': '(103433)'}), '(df, timestamp=103433)\n', (10387, 10409), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((10574, 10600), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (10598, 10600), False, 'import datetime\n'), ((10617, 10752), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (10631, 10752), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((10894, 10920), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (10918, 10920), False, 'import datetime\n'), ((10937, 11072), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (10951, 11072), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((11194, 11220), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (11218, 11220), False, 'import datetime\n'), ((11237, 11372), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (11251, 11372), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((11542, 11568), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (11566, 11568), False, 'import datetime\n'), ((11585, 11720), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (11599, 11720), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((11948, 11974), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (11972, 11974), False, 'import datetime\n'), ((11991, 12126), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': '"""test.session.id"""', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'value'}"}), "(name='test', session_id='test.session.id', session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'value'})\n", (12005, 12126), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((635, 655), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['msg'], {}), '(msg)\n', (650, 655), False, 'from whylogs.util.protobuf import message_to_dict, message_to_json\n'), ((1021, 1028), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (1026, 1028), False, 'from uuid import uuid4\n'), ((1619, 1626), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (1624, 1626), False, 'from uuid import uuid4\n'), ((2524, 2531), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (2529, 2531), False, 'from uuid import uuid4\n'), ((3191, 3198), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (3196, 3198), False, 'from uuid import uuid4\n'), ((3856, 3863), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (3861, 3863), False, 'from uuid import uuid4\n'), ((5055, 5093), 'whylogs.util.time.to_utc_ms', 'to_utc_ms', (['roundtrip.session_timestamp'], {}), '(roundtrip.session_timestamp)\n', (5064, 5093), False, 'from whylogs.util.time import to_utc_ms\n'), ((5097, 5134), 'whylogs.util.time.to_utc_ms', 'to_utc_ms', (['original.session_timestamp'], {}), '(original.session_timestamp)\n', (5106, 5134), False, 'from whylogs.util.time import to_utc_ms\n'), ((6625, 6651), 'os.path.realpath', 'os.path.realpath', (['__file__'], {}), '(__file__)\n', (6641, 6651), False, 'import os\n'), ((7076, 7102), 'os.path.realpath', 'os.path.realpath', (['__file__'], {}), '(__file__)\n', (7092, 7102), False, 'import os\n'), ((7137, 7192), 'os.path.join', 'os.path.join', (['dir_path', '"""output_from_java_08242020.bin"""'], {}), "(dir_path, 'output_from_java_08242020.bin')\n", (7149, 7192), False, 'import os\n'), ((7283, 7309), 'os.path.realpath', 'os.path.realpath', (['__file__'], {}), '(__file__)\n', (7299, 7309), False, 'import os\n'), ((7467, 7507), 'whylogs.core.datasetprofile.DatasetProfile.parse_delimited', 'DatasetProfile.parse_delimited', (['multiple'], {}), '(multiple)\n', (7497, 7507), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((8048, 8091), 'whylogs.util.time.to_utc_ms', 'time.to_utc_ms', (['roundtrip.session_timestamp'], {}), '(roundtrip.session_timestamp)\n', (8062, 8091), False, 'from whylogs.util import time\n'), ((8095, 8137), 'whylogs.util.time.to_utc_ms', 'time.to_utc_ms', (['original.session_timestamp'], {}), '(original.session_timestamp)\n', (8109, 8137), False, 'from whylogs.util import time\n'), ((11088, 11112), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (11101, 11112), False, 'import pytest\n'), ((12142, 12167), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (12155, 12167), False, 'import pytest\n'), ((2850, 2864), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (2862, 2864), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((3366, 3380), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (3378, 3380), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((6668, 6723), 'os.path.join', 'os.path.join', (['dir_path', '"""output_from_java_08242020.bin"""'], {}), "(dir_path, 'output_from_java_08242020.bin')\n", (6680, 6723), False, 'import os\n'), ((6776, 6819), 'whylogs.core.datasetprofile.DatasetProfile.parse_delimited_single', 'DatasetProfile.parse_delimited_single', (['data'], {}), '(data)\n', (6813, 6819), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((6847, 6902), 'os.path.join', 'os.path.join', (['dir_path', '"""output_from_java_01212021.bin"""'], {}), "(dir_path, 'output_from_java_01212021.bin')\n", (6859, 6902), False, 'import os\n'), ((6955, 6998), 'whylogs.core.datasetprofile.DatasetProfile.parse_delimited_single', 'DatasetProfile.parse_delimited_single', (['data'], {}), '(data)\n', (6992, 6998), False, 'from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile\n'), ((7326, 7381), 'os.path.join', 'os.path.join', (['dir_path', '"""output_from_java_08242020.bin"""'], {}), "(dir_path, 'output_from_java_08242020.bin')\n", (7338, 7381), False, 'import os\n'), ((8903, 8942), 'whylogs.util.time.to_utc_ms', 'time.to_utc_ms', (['entry.session_timestamp'], {}), '(entry.session_timestamp)\n', (8917, 8942), False, 'from whylogs.util import time\n'), ((8946, 8988), 'whylogs.util.time.to_utc_ms', 'time.to_utc_ms', (['original.session_timestamp'], {}), '(original.session_timestamp)\n', (8960, 8988), False, 'from whylogs.util import time\n'), ((9217, 9240), 'datetime.datetime.now', 'datetime.datetime.now', ([], {}), '()\n', (9238, 9240), False, 'import datetime\n'), ((9561, 9584), 'datetime.datetime.now', 'datetime.datetime.now', ([], {}), '()\n', (9582, 9584), False, 'import datetime\n'), ((12198, 12215), 'numpy.random.rand', 'np.random.rand', (['(3)'], {}), '(3)\n', (12212, 12215), True, 'import numpy as np\n'), ((9705, 9747), 'whylogs.util.time.replace', 'time.replace', ([], {'tzinfo': 'datetime.timezone.utc'}), '(tzinfo=datetime.timezone.utc)\n', (9717, 9747), False, 'from whylogs.util import time\n')] |
# -*- coding: utf-8 -*-
"""The app module, containing the app factory function."""
import atexit
import logging
import os
import pandas as pd
from dotenv import load_dotenv
from extensions import init_swagger
from flask import Flask, jsonify
from flask_cors import CORS
from joblib import load
from utils import MessageException, message_exception_handler
from whylogs import get_or_create_session
# Load environment variables
load_dotenv()
# Initialize Dataset
df = pd.read_csv(os.environ["DATASET_URL"])
# Load model with joblib
model = load(os.environ["MODEL_PATH"])
whylabs_session = get_or_create_session(os.environ["WHYLABS_CONFIG"])
whylabs_logger = None
# # blueprints
# from api.views import blueprint
def create_app(config_object="settings"):
"""Create application factory, as explained here: http://flask.pocoo.org/docs/patterns/appfactories/.
:param config_object: The configuration object to use.
"""
app = Flask(__name__.split(".")[0])
# Adding CORS
CORS(app)
# Adding Logging
logging.basicConfig(level=logging.DEBUG)
app.config.from_object(config_object)
register_extensions(app)
register_blueprints(app)
register_error_handlers(app)
atexit.register(close_logger_at_exit)
return app
def register_extensions(app):
"""Register Flask extensions."""
init_swagger(app)
return None
def register_blueprints(app):
"""Register Flask blueprints."""
# blueprints
from api.views import blueprint
app.register_blueprint(blueprint)
return None
def register_error_handlers(app):
"""Register error handlers."""
app.register_error_handler(MessageException, message_exception_handler)
def render_error(error):
response = jsonify(error.to_dict())
response.status_code = error.status_code
return response
def close_logger_at_exit():
whylabs_logger.close()
| [
"whylogs.get_or_create_session"
] | [((431, 444), 'dotenv.load_dotenv', 'load_dotenv', ([], {}), '()\n', (442, 444), False, 'from dotenv import load_dotenv\n'), ((472, 510), 'pandas.read_csv', 'pd.read_csv', (["os.environ['DATASET_URL']"], {}), "(os.environ['DATASET_URL'])\n", (483, 510), True, 'import pandas as pd\n'), ((545, 575), 'joblib.load', 'load', (["os.environ['MODEL_PATH']"], {}), "(os.environ['MODEL_PATH'])\n", (549, 575), False, 'from joblib import load\n'), ((594, 645), 'whylogs.get_or_create_session', 'get_or_create_session', (["os.environ['WHYLABS_CONFIG']"], {}), "(os.environ['WHYLABS_CONFIG'])\n", (615, 645), False, 'from whylogs import get_or_create_session\n'), ((1000, 1009), 'flask_cors.CORS', 'CORS', (['app'], {}), '(app)\n', (1004, 1009), False, 'from flask_cors import CORS\n'), ((1036, 1076), 'logging.basicConfig', 'logging.basicConfig', ([], {'level': 'logging.DEBUG'}), '(level=logging.DEBUG)\n', (1055, 1076), False, 'import logging\n'), ((1216, 1253), 'atexit.register', 'atexit.register', (['close_logger_at_exit'], {}), '(close_logger_at_exit)\n', (1231, 1253), False, 'import atexit\n'), ((1342, 1359), 'extensions.init_swagger', 'init_swagger', (['app'], {}), '(app)\n', (1354, 1359), False, 'from extensions import init_swagger\n')] |
from logging import getLogger
from typing import List, Union
import numpy as np
from sklearn.utils.multiclass import type_of_target
from whylogs.core.statistics import NumberTracker
from whylogs.proto import ScoreMatrixMessage
from whylogs.util.util_functions import encode_to_integers
SUPPORTED_TYPES = ("binary", "multiclass")
MODEL_METRICS_MAX_LABELS = 256
MODEL_METRICS_LABEL_SIZE_WARNING_THRESHOLD = 64
_logger = getLogger("whylogs")
class ConfusionMatrix:
"""
Confusion Matrix Class to hold labels and matrix data.
Attributes:
labels: list of labels in a sorted order
prediction_field: name of the prediction field
target_field: name of the target field
score_field: name of the score field
confusion_matrix (nd.array): Confusion Matrix kept as matrix of NumberTrackers
labels (List[str]): list of labels for the confusion_matrix axes
"""
def __init__(
self,
labels: List[str] = None,
prediction_field: str = None,
target_field: str = None,
score_field: str = None,
):
self.prediction_field = prediction_field
self.target_field = target_field
self.score_field = score_field
if labels:
labels_size = len(labels)
if labels_size > MODEL_METRICS_LABEL_SIZE_WARNING_THRESHOLD:
_logger.warning(
f"The initialized confusion matrix has {labels_size} labels and the resulting"
" confusion matrix will be larger than is recommended with whylogs current"
" representation of the model metric for a confusion matrix of this size."
)
if labels_size > MODEL_METRICS_MAX_LABELS:
raise ValueError(
f"The initialized confusion matrix has {labels_size} labels and the resulting"
" confusion matrix will be larger than is supported by whylogs current"
" representation of the model metric for a confusion matrix of this size,"
" selectively log the most important labels or configure the threshold of"
" {MODEL_METRICS_MAX_LABELS} higher by setting MODEL_METRICS_MAX_LABELS."
)
self.labels = sorted(labels)
num_labels = len(self.labels)
self.confusion_matrix = np.empty([num_labels, num_labels], dtype=object)
for each_ind_i in range(num_labels):
for each_ind_j in range(num_labels):
self.confusion_matrix[each_ind_i, each_ind_j] = NumberTracker()
else:
self.labels = None
self.confusion_matrix = None
def add(
self,
predictions: List[Union[str, int, bool]],
targets: List[Union[str, int, bool]],
scores: List[float],
):
"""
Function adds predictions and targets to confusion matrix with scores.
Args:
predictions (List[Union[str, int, bool]]):
targets (List[Union[str, int, bool]]):
scores (List[float]):
Raises:
NotImplementedError: in case targets do not fall into binary or
multiclass suport
ValueError: incase missing validation or predictions
"""
tgt_type = type_of_target(targets)
if tgt_type not in ("binary", "multiclass"):
raise NotImplementedError("target type not supported yet")
if not isinstance(targets, list):
targets = [targets]
if not isinstance(predictions, list):
predictions = [predictions]
if scores is None:
scores = [1.0 for _ in range(len(targets))]
if len(targets) != len(predictions):
raise ValueError("both targets and predictions need to have the same length")
targets_indx = encode_to_integers(targets, self.labels)
prediction_indx = encode_to_integers(predictions, self.labels)
for ind in range(len(predictions)):
self.confusion_matrix[prediction_indx[ind], targets_indx[ind]].track(scores[ind])
def merge(self, other_cm):
"""
Merge two seperate confusion matrix which may or may not overlap in labels.
Args:
other_cm (Optional[ConfusionMatrix]): confusion_matrix to merge with self
Returns:
ConfusionMatrix: merged confusion_matrix
"""
# TODO: always return new objects
if other_cm is None:
return self
if self.labels is None or self.labels == []:
return other_cm
if other_cm.labels is None or other_cm.labels == []:
return self
labels = list(set(self.labels + other_cm.labels))
conf_matrix = ConfusionMatrix(labels)
conf_matrix = _merge_CM(self, conf_matrix)
conf_matrix = _merge_CM(other_cm, conf_matrix)
return conf_matrix
def to_protobuf(
self,
):
"""
Convert to protobuf
Returns:
TYPE: Description
"""
return ScoreMatrixMessage(
labels=[str(i) for i in self.labels],
prediction_field=self.prediction_field,
target_field=self.target_field,
score_field=self.score_field,
scores=[nt.to_protobuf() if nt else NumberTracker.to_protobuf(NumberTracker()) for nt in np.ravel(self.confusion_matrix)],
)
@classmethod
def from_protobuf(
cls,
message: ScoreMatrixMessage,
):
if message.ByteSize() == 0:
return None
labels = message.labels
num_labels = len(labels)
matrix = np.array([NumberTracker.from_protobuf(score) for score in message.scores]).reshape((num_labels, num_labels)) if num_labels > 0 else None
cm_instance = ConfusionMatrix(
labels=labels,
prediction_field=message.prediction_field,
target_field=message.target_field,
score_field=message.score_field,
)
cm_instance.confusion_matrix = matrix
return cm_instance
def _merge_CM(old_conf_matrix: ConfusionMatrix, new_conf_matrix: ConfusionMatrix):
"""
Merges two confusion_matrix since distinc or overlaping labels
Args:
old_conf_matrix (ConfusionMatrix)
new_conf_matrix (ConfusionMatrix): Will be overridden
"""
new_indxes = encode_to_integers(old_conf_matrix.labels, new_conf_matrix.labels)
old_indxes = encode_to_integers(old_conf_matrix.labels, old_conf_matrix.labels)
res_conf_matrix = ConfusionMatrix(new_conf_matrix.labels)
res_conf_matrix.confusion_matrix = new_conf_matrix.confusion_matrix
for old_row_idx, each_row_indx in enumerate(new_indxes):
for old_column_idx, each_column_inx in enumerate(new_indxes):
res_conf_matrix.confusion_matrix[each_row_indx, each_column_inx] = new_conf_matrix.confusion_matrix[each_row_indx, each_column_inx].merge(
old_conf_matrix.confusion_matrix[old_indxes[old_row_idx], old_indxes[old_column_idx]]
)
return res_conf_matrix
| [
"whylogs.core.statistics.NumberTracker.from_protobuf",
"whylogs.core.statistics.NumberTracker",
"whylogs.util.util_functions.encode_to_integers"
] | [((422, 442), 'logging.getLogger', 'getLogger', (['"""whylogs"""'], {}), "('whylogs')\n", (431, 442), False, 'from logging import getLogger\n'), ((6451, 6517), 'whylogs.util.util_functions.encode_to_integers', 'encode_to_integers', (['old_conf_matrix.labels', 'new_conf_matrix.labels'], {}), '(old_conf_matrix.labels, new_conf_matrix.labels)\n', (6469, 6517), False, 'from whylogs.util.util_functions import encode_to_integers\n'), ((6535, 6601), 'whylogs.util.util_functions.encode_to_integers', 'encode_to_integers', (['old_conf_matrix.labels', 'old_conf_matrix.labels'], {}), '(old_conf_matrix.labels, old_conf_matrix.labels)\n', (6553, 6601), False, 'from whylogs.util.util_functions import encode_to_integers\n'), ((3344, 3367), 'sklearn.utils.multiclass.type_of_target', 'type_of_target', (['targets'], {}), '(targets)\n', (3358, 3367), False, 'from sklearn.utils.multiclass import type_of_target\n'), ((3897, 3937), 'whylogs.util.util_functions.encode_to_integers', 'encode_to_integers', (['targets', 'self.labels'], {}), '(targets, self.labels)\n', (3915, 3937), False, 'from whylogs.util.util_functions import encode_to_integers\n'), ((3964, 4008), 'whylogs.util.util_functions.encode_to_integers', 'encode_to_integers', (['predictions', 'self.labels'], {}), '(predictions, self.labels)\n', (3982, 4008), False, 'from whylogs.util.util_functions import encode_to_integers\n'), ((2398, 2446), 'numpy.empty', 'np.empty', (['[num_labels, num_labels]'], {'dtype': 'object'}), '([num_labels, num_labels], dtype=object)\n', (2406, 2446), True, 'import numpy as np\n'), ((2617, 2632), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (2630, 2632), False, 'from whylogs.core.statistics import NumberTracker\n'), ((5432, 5463), 'numpy.ravel', 'np.ravel', (['self.confusion_matrix'], {}), '(self.confusion_matrix)\n', (5440, 5463), True, 'import numpy as np\n'), ((5405, 5420), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (5418, 5420), False, 'from whylogs.core.statistics import NumberTracker\n'), ((5726, 5760), 'whylogs.core.statistics.NumberTracker.from_protobuf', 'NumberTracker.from_protobuf', (['score'], {}), '(score)\n', (5753, 5760), False, 'from whylogs.core.statistics import NumberTracker\n')] |
from typing import List, Union
from whylogs.core.metrics.confusion_matrix import ConfusionMatrix
from whylogs.proto import ModelMetricsMessage
class ModelMetrics:
"""
Container class for various model-related metrics
Attributes:
confusion_matrix (ConfusionMatrix): ConfusionMatrix which keeps it track of counts with NumberTracker
"""
def __init__(self, confusion_matrix: ConfusionMatrix = None):
if confusion_matrix is None:
confusion_matrix = ConfusionMatrix()
self.confusion_matrix = confusion_matrix
def to_protobuf(self, ) -> ModelMetricsMessage:
return ModelMetricsMessage(scoreMatrix=self.confusion_matrix.to_protobuf() if self.confusion_matrix else None)
@classmethod
def from_protobuf(cls, message, ):
return ModelMetrics(confusion_matrix=ConfusionMatrix.from_protobuf(message.scoreMatrix))
def compute_confusion_matrix(self, predictions: List[Union[str, int, bool]],
targets: List[Union[str, int, bool]],
scores: List[float] = None,
target_field: str = None,
prediction_field: str = None,
score_field: str = None):
"""
computes the confusion_matrix, if one is already present merges to old one.
Args:
predictions (List[Union[str, int, bool]]):
targets (List[Union[str, int, bool]]):
scores (List[float], optional):
target_field (str, optional):
prediction_field (str, optional):
score_field (str, optional):
"""
labels = sorted(list(set(targets + predictions)))
confusion_matrix = ConfusionMatrix(labels,
target_field=target_field,
prediction_field=prediction_field,
score_field=score_field)
confusion_matrix.add(predictions, targets, scores)
if self.confusion_matrix.labels is None or self.confusion_matrix.labels == []:
self.confusion_matrix = confusion_matrix
else:
self.confusion_matrix = self.confusion_matrix.merge(
confusion_matrix)
def merge(self, other):
"""
:type other: ModelMetrics
"""
if other is None:
return self
if other.confusion_matrix is None:
# TODO: return a copy instead
return self
if self.confusion_matrix is None:
return other
return ModelMetrics(confusion_matrix=self.confusion_matrix.merge(other.confusion_matrix))
| [
"whylogs.core.metrics.confusion_matrix.ConfusionMatrix.from_protobuf",
"whylogs.core.metrics.confusion_matrix.ConfusionMatrix"
] | [((1773, 1888), 'whylogs.core.metrics.confusion_matrix.ConfusionMatrix', 'ConfusionMatrix', (['labels'], {'target_field': 'target_field', 'prediction_field': 'prediction_field', 'score_field': 'score_field'}), '(labels, target_field=target_field, prediction_field=\n prediction_field, score_field=score_field)\n', (1788, 1888), False, 'from whylogs.core.metrics.confusion_matrix import ConfusionMatrix\n'), ((498, 515), 'whylogs.core.metrics.confusion_matrix.ConfusionMatrix', 'ConfusionMatrix', ([], {}), '()\n', (513, 515), False, 'from whylogs.core.metrics.confusion_matrix import ConfusionMatrix\n'), ((839, 889), 'whylogs.core.metrics.confusion_matrix.ConfusionMatrix.from_protobuf', 'ConfusionMatrix.from_protobuf', (['message.scoreMatrix'], {}), '(message.scoreMatrix)\n', (868, 889), False, 'from whylogs.core.metrics.confusion_matrix import ConfusionMatrix\n')] |
import pandas as pd
from whylogs import get_or_create_session
def log_session(dataset_name, session_data):
session = get_or_create_session()
df = pd.DataFrame(session_data)
df["timestamp"] = pd.to_datetime(df["timestamp"], unit="ms")
df_minutes = df.groupby(pd.Grouper(key="timestamp", freq="min"))
for minute_batch, batch in df_minutes:
with session.logger(dataset_name=dataset_name, dataset_timestamp=minute_batch) as logger:
logger.log_dataframe(batch)
| [
"whylogs.get_or_create_session"
] | [((124, 147), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (145, 147), False, 'from whylogs import get_or_create_session\n'), ((157, 183), 'pandas.DataFrame', 'pd.DataFrame', (['session_data'], {}), '(session_data)\n', (169, 183), True, 'import pandas as pd\n'), ((206, 248), 'pandas.to_datetime', 'pd.to_datetime', (["df['timestamp']"], {'unit': '"""ms"""'}), "(df['timestamp'], unit='ms')\n", (220, 248), True, 'import pandas as pd\n'), ((277, 316), 'pandas.Grouper', 'pd.Grouper', ([], {'key': '"""timestamp"""', 'freq': '"""min"""'}), "(key='timestamp', freq='min')\n", (287, 316), True, 'import pandas as pd\n')] |
"""
Defines the ColumnProfile class for tracking per-column statistics
"""
from whylogs.core.statistics import (
CountersTracker,
NumberTracker,
SchemaTracker,
StringTracker,
)
from whylogs.core.statistics.constraints import (
MultiColumnValueConstraints,
SummaryConstraints,
ValueConstraints,
columnMostCommonValueInSetConstraint,
columnUniqueValueCountBetweenConstraint,
columnValuesTypeEqualsConstraint,
maxLessThanEqualConstraint,
meanBetweenConstraint,
minGreaterThanEqualConstraint,
)
from whylogs.core.statistics.hllsketch import HllSketch
from whylogs.core.types import TypedDataConverter
from whylogs.proto import ColumnMessage, ColumnSummary, InferredType, UniqueCountSummary
from whylogs.util.dsketch import FrequentItemsSketch
_TYPES = InferredType.Type
_NUMERIC_TYPES = {_TYPES.FRACTIONAL, _TYPES.INTEGRAL}
_UNIQUE_COUNT_BOUNDS_STD = 1
class ColumnProfile:
"""
Statistics tracking for a column (i.e. a feature)
The primary method for
Parameters
----------
name : str (required)
Name of the column profile
number_tracker : NumberTracker
Implements numeric data statistics tracking
string_tracker : StringTracker
Implements string data-type statistics tracking
schema_tracker : SchemaTracker
Implements tracking of schema-related information
counters : CountersTracker
Keep count of various things
frequent_items : FrequentItemsSketch
Keep track of all frequent items, even for mixed datatype features
cardinality_tracker : HllSketch
Track feature cardinality (even for mixed data types)
constraints : ValueConstraints
Static assertions to be applied to numeric data tracked in this column
TODO:
* Proper TypedDataConverter type checking
* Multi-threading/parallelism
"""
def __init__(
self,
name: str,
number_tracker: NumberTracker = None,
string_tracker: StringTracker = None,
schema_tracker: SchemaTracker = None,
counters: CountersTracker = None,
frequent_items: FrequentItemsSketch = None,
cardinality_tracker: HllSketch = None,
constraints: ValueConstraints = None,
):
# Handle default values
if counters is None:
counters = CountersTracker()
if number_tracker is None:
number_tracker = NumberTracker()
if string_tracker is None:
string_tracker = StringTracker()
if schema_tracker is None:
schema_tracker = SchemaTracker()
if frequent_items is None:
frequent_items = FrequentItemsSketch()
if cardinality_tracker is None:
cardinality_tracker = HllSketch()
if constraints is None:
constraints = ValueConstraints()
# Assign values
self.column_name = name
self.number_tracker = number_tracker
self.string_tracker = string_tracker
self.schema_tracker = schema_tracker
self.counters = counters
self.frequent_items = frequent_items
self.cardinality_tracker = cardinality_tracker
self.constraints = constraints
def track(self, value, character_list=None, token_method=None):
"""
Add `value` to tracking statistics.
"""
self.counters.increment_count()
if TypedDataConverter._are_nulls(value):
self.schema_tracker.track(InferredType.Type.NULL)
return
if TypedDataConverter._is_array_like(value):
return
# TODO: ignore this if we already know the data type
if isinstance(value, str):
self.string_tracker.update(value, character_list=character_list, token_method=token_method)
# TODO: Implement real typed data conversion
self.constraints.update(value)
typed_data = TypedDataConverter.convert(value)
if not TypedDataConverter._are_nulls(typed_data):
self.cardinality_tracker.update(typed_data)
self.frequent_items.update(typed_data)
dtype = TypedDataConverter.get_type(typed_data)
self.schema_tracker.track(dtype)
if isinstance(typed_data, bool):
# Note: bools are sub-classes of ints in python, so we should check
# for bool type first
self.counters.increment_bool()
# prevent errors in number tracker on unknown types
if TypedDataConverter._is_array_like(typed_data) or dtype == _TYPES.UNKNOWN:
return
self.number_tracker.track(typed_data)
self.constraints.update_typed(typed_data)
def _unique_count_summary(self) -> UniqueCountSummary:
cardinality_summary = self.cardinality_tracker.to_summary(_UNIQUE_COUNT_BOUNDS_STD)
if cardinality_summary:
return cardinality_summary
inferred_type = self.schema_tracker.infer_type()
if inferred_type.type == _TYPES.STRING:
cardinality_summary = self.string_tracker.theta_sketch.to_summary()
else: # default is number summary
cardinality_summary = self.number_tracker.theta_sketch.to_summary()
return cardinality_summary
def to_summary(self):
"""
Generate a summary of the statistics
Returns
-------
summary : ColumnSummary
Protobuf summary message.
"""
schema = None
if self.schema_tracker is not None:
schema = self.schema_tracker.to_summary()
# TODO: implement the real schema/type checking
null_count = self.schema_tracker.get_count(InferredType.Type.NULL)
opts = dict(
counters=self.counters.to_protobuf(null_count=null_count),
frequent_items=self.frequent_items.to_summary(),
unique_count=self._unique_count_summary(),
)
if self.string_tracker is not None and self.string_tracker.count > 0:
opts["string_summary"] = self.string_tracker.to_summary()
if self.number_tracker is not None and self.number_tracker.count > 0:
opts["number_summary"] = self.number_tracker.to_summary()
if schema is not None:
opts["schema"] = schema
return ColumnSummary(**opts)
def generate_constraints(self) -> SummaryConstraints:
items = []
if self.number_tracker is not None and self.number_tracker.count > 0:
summ = self.number_tracker.to_summary()
if summ.min >= 0:
items.append(minGreaterThanEqualConstraint(value=0))
mean_lower = summ.mean - summ.stddev
mean_upper = summ.mean + summ.stddev
if mean_lower != mean_upper:
items.append(
meanBetweenConstraint(
lower_value=mean_lower,
upper_value=mean_upper,
)
)
if summ.max <= 0:
items.append(maxLessThanEqualConstraint(value=0))
schema_summary = self.schema_tracker.to_summary()
inferred_type = schema_summary.inferred_type.type
if inferred_type not in (InferredType.UNKNOWN, InferredType.NULL):
items.append(columnValuesTypeEqualsConstraint(expected_type=inferred_type))
if self.cardinality_tracker and inferred_type != InferredType.FRACTIONAL:
unique_count = self.cardinality_tracker.to_summary()
if unique_count and unique_count.estimate > 0:
low = int(max(0, unique_count.lower - 1))
up = int(unique_count.upper + 1)
items.append(
columnUniqueValueCountBetweenConstraint(
lower_value=low,
upper_value=up,
)
)
frequent_items_summary = self.frequent_items.to_summary(max_items=5)
if frequent_items_summary and len(frequent_items_summary.items) > 0:
most_common_value_set = {val.json_value for val in frequent_items_summary.items}
items.append(columnMostCommonValueInSetConstraint(value_set=most_common_value_set))
if len(items) > 0:
return SummaryConstraints(items)
return None
def merge(self, other):
"""
Merge this columnprofile with another.
Parameters
----------
other : ColumnProfile
Returns
-------
merged : ColumnProfile
A new, merged column profile.
"""
assert self.column_name == other.column_name
return ColumnProfile(
self.column_name,
number_tracker=self.number_tracker.merge(other.number_tracker),
string_tracker=self.string_tracker.merge(other.string_tracker),
schema_tracker=self.schema_tracker.merge(other.schema_tracker),
counters=self.counters.merge(other.counters),
frequent_items=self.frequent_items.merge(other.frequent_items),
cardinality_tracker=self.cardinality_tracker.merge(other.cardinality_tracker),
)
def to_protobuf(self):
"""
Return the object serialized as a protobuf message
Returns
-------
message : ColumnMessage
"""
return ColumnMessage(
name=self.column_name,
counters=self.counters.to_protobuf(),
schema=self.schema_tracker.to_protobuf(),
numbers=self.number_tracker.to_protobuf(),
strings=self.string_tracker.to_protobuf(),
frequent_items=self.frequent_items.to_protobuf(),
cardinality_tracker=self.cardinality_tracker.to_protobuf(),
)
@staticmethod
def from_protobuf(message):
"""
Load from a protobuf message
Returns
-------
column_profile : ColumnProfile
"""
schema_tracker = SchemaTracker.from_protobuf(message.schema, legacy_null_count=message.counters.null_count.value)
return ColumnProfile(
message.name,
counters=(CountersTracker.from_protobuf(message.counters)),
schema_tracker=schema_tracker,
number_tracker=NumberTracker.from_protobuf(message.numbers),
string_tracker=StringTracker.from_protobuf(message.strings),
frequent_items=FrequentItemsSketch.from_protobuf(message.frequent_items),
cardinality_tracker=HllSketch.from_protobuf(message.cardinality_tracker),
)
class MultiColumnProfile:
"""
Statistics tracking for a multiple columns (i.e. a features)
The primary method for
Parameters
----------
constraints : MultiColumnValueConstraints
Static assertions to be applied to data tracked between all columns
"""
def __init__(
self,
constraints: MultiColumnValueConstraints = None,
):
self.constraints = constraints or MultiColumnValueConstraints()
def track(self, column_dict, character_list=None, token_method=None):
"""
TODO: Add `column_dict` to tracking statistics.
"""
# update the MultiColumnTrackers code
self.constraints.update(column_dict)
self.constraints.update_typed(column_dict)
def to_summary(self):
"""
Generate a summary of the statistics
Returns
-------
summary : (Multi)ColumnSummary
Protobuf summary message.
"""
# TODO: summaries for the multi column trackers and statistics
raise NotImplementedError()
def merge(self, other) -> "MultiColumnProfile":
"""
Merge this columnprofile with another.
Parameters
----------
other : MultiColumnProfile
Returns
-------
merged : MultiColumnProfile
A new, merged multi column profile.
"""
return MultiColumnProfile(self.constraints.merge(other.constraints))
def to_protobuf(self):
"""
Return the object serialized as a protobuf message
Returns
-------
message : ColumnMessage
"""
# TODO: implement new type of multicolumn message
raise NotImplementedError()
@staticmethod
def from_protobuf(message):
"""
Load from a protobuf message
Returns
-------
column_profile : MultiColumnProfile
"""
# TODO: implement new type of multicolumn message
raise NotImplementedError()
| [
"whylogs.core.statistics.constraints.meanBetweenConstraint",
"whylogs.core.statistics.hllsketch.HllSketch",
"whylogs.core.statistics.NumberTracker.from_protobuf",
"whylogs.core.types.TypedDataConverter._is_array_like",
"whylogs.core.statistics.constraints.MultiColumnValueConstraints",
"whylogs.core.statis... | [((3409, 3445), 'whylogs.core.types.TypedDataConverter._are_nulls', 'TypedDataConverter._are_nulls', (['value'], {}), '(value)\n', (3438, 3445), False, 'from whylogs.core.types import TypedDataConverter\n'), ((3540, 3580), 'whylogs.core.types.TypedDataConverter._is_array_like', 'TypedDataConverter._is_array_like', (['value'], {}), '(value)\n', (3573, 3580), False, 'from whylogs.core.types import TypedDataConverter\n'), ((3917, 3950), 'whylogs.core.types.TypedDataConverter.convert', 'TypedDataConverter.convert', (['value'], {}), '(value)\n', (3943, 3950), False, 'from whylogs.core.types import TypedDataConverter\n'), ((4133, 4172), 'whylogs.core.types.TypedDataConverter.get_type', 'TypedDataConverter.get_type', (['typed_data'], {}), '(typed_data)\n', (4160, 4172), False, 'from whylogs.core.types import TypedDataConverter\n'), ((6291, 6312), 'whylogs.proto.ColumnSummary', 'ColumnSummary', ([], {}), '(**opts)\n', (6304, 6312), False, 'from whylogs.proto import ColumnMessage, ColumnSummary, InferredType, UniqueCountSummary\n'), ((9972, 10073), 'whylogs.core.statistics.SchemaTracker.from_protobuf', 'SchemaTracker.from_protobuf', (['message.schema'], {'legacy_null_count': 'message.counters.null_count.value'}), '(message.schema, legacy_null_count=message.\n counters.null_count.value)\n', (9999, 10073), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((2350, 2367), 'whylogs.core.statistics.CountersTracker', 'CountersTracker', ([], {}), '()\n', (2365, 2367), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((2432, 2447), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (2445, 2447), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((2512, 2527), 'whylogs.core.statistics.StringTracker', 'StringTracker', ([], {}), '()\n', (2525, 2527), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((2592, 2607), 'whylogs.core.statistics.SchemaTracker', 'SchemaTracker', ([], {}), '()\n', (2605, 2607), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((2672, 2693), 'whylogs.util.dsketch.FrequentItemsSketch', 'FrequentItemsSketch', ([], {}), '()\n', (2691, 2693), False, 'from whylogs.util.dsketch import FrequentItemsSketch\n'), ((2768, 2779), 'whylogs.core.statistics.hllsketch.HllSketch', 'HllSketch', ([], {}), '()\n', (2777, 2779), False, 'from whylogs.core.statistics.hllsketch import HllSketch\n'), ((2838, 2856), 'whylogs.core.statistics.constraints.ValueConstraints', 'ValueConstraints', ([], {}), '()\n', (2854, 2856), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((3967, 4008), 'whylogs.core.types.TypedDataConverter._are_nulls', 'TypedDataConverter._are_nulls', (['typed_data'], {}), '(typed_data)\n', (3996, 4008), False, 'from whylogs.core.types import TypedDataConverter\n'), ((4485, 4530), 'whylogs.core.types.TypedDataConverter._is_array_like', 'TypedDataConverter._is_array_like', (['typed_data'], {}), '(typed_data)\n', (4518, 4530), False, 'from whylogs.core.types import TypedDataConverter\n'), ((8265, 8290), 'whylogs.core.statistics.constraints.SummaryConstraints', 'SummaryConstraints', (['items'], {}), '(items)\n', (8283, 8290), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((10999, 11028), 'whylogs.core.statistics.constraints.MultiColumnValueConstraints', 'MultiColumnValueConstraints', ([], {}), '()\n', (11026, 11028), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((7285, 7346), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': 'inferred_type'}), '(expected_type=inferred_type)\n', (7317, 7346), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((8147, 8216), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': 'most_common_value_set'}), '(value_set=most_common_value_set)\n', (8183, 8216), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((10147, 10194), 'whylogs.core.statistics.CountersTracker.from_protobuf', 'CountersTracker.from_protobuf', (['message.counters'], {}), '(message.counters)\n', (10176, 10194), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((10267, 10311), 'whylogs.core.statistics.NumberTracker.from_protobuf', 'NumberTracker.from_protobuf', (['message.numbers'], {}), '(message.numbers)\n', (10294, 10311), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((10340, 10384), 'whylogs.core.statistics.StringTracker.from_protobuf', 'StringTracker.from_protobuf', (['message.strings'], {}), '(message.strings)\n', (10367, 10384), False, 'from whylogs.core.statistics import CountersTracker, NumberTracker, SchemaTracker, StringTracker\n'), ((10413, 10470), 'whylogs.util.dsketch.FrequentItemsSketch.from_protobuf', 'FrequentItemsSketch.from_protobuf', (['message.frequent_items'], {}), '(message.frequent_items)\n', (10446, 10470), False, 'from whylogs.util.dsketch import FrequentItemsSketch\n'), ((10504, 10556), 'whylogs.core.statistics.hllsketch.HllSketch.from_protobuf', 'HllSketch.from_protobuf', (['message.cardinality_tracker'], {}), '(message.cardinality_tracker)\n', (10527, 10556), False, 'from whylogs.core.statistics.hllsketch import HllSketch\n'), ((6581, 6619), 'whylogs.core.statistics.constraints.minGreaterThanEqualConstraint', 'minGreaterThanEqualConstraint', ([], {'value': '(0)'}), '(value=0)\n', (6610, 6619), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((6812, 6881), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_value': 'mean_lower', 'upper_value': 'mean_upper'}), '(lower_value=mean_lower, upper_value=mean_upper)\n', (6833, 6881), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((7031, 7066), 'whylogs.core.statistics.constraints.maxLessThanEqualConstraint', 'maxLessThanEqualConstraint', ([], {'value': '(0)'}), '(value=0)\n', (7057, 7066), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n'), ((7712, 7784), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': 'low', 'upper_value': 'up'}), '(lower_value=low, upper_value=up)\n', (7751, 7784), False, 'from whylogs.core.statistics.constraints import MultiColumnValueConstraints, SummaryConstraints, ValueConstraints, columnMostCommonValueInSetConstraint, columnUniqueValueCountBetweenConstraint, columnValuesTypeEqualsConstraint, maxLessThanEqualConstraint, meanBetweenConstraint, minGreaterThanEqualConstraint\n')] |
import os
import numpy as np
import pytest
from PIL import Image
from whylogs.core.image_profiling import image_loader
from whylogs.features.transforms import (
Brightness,
ComposeTransforms,
Hue,
Saturation,
SimpleBlur,
)
TEST_DATA_PATH = os.path.abspath(
os.path.join(
os.path.realpath(os.path.dirname(__file__)),
os.pardir,
os.pardir,
os.pardir,
"testdata",
)
)
def test_hue():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transform = Hue()
res_img = transform(img)
assert np.array(res_img)[100][0] == 39
def test_saturation():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transform = Saturation()
res_img = transform(img)
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 133.1
res_img = transform(np.array(img))
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 133.1
# Compute brightness of a black image
def test_zero_brightness():
zero_images = np.zeros((3, 3, 3))
transform = Brightness()
im = Image.fromarray(zero_images.astype("uint8")).convert("RGBA")
res_img = transform(im)
for each_va in res_img:
assert each_va[0] == 0
res_img = transform(zero_images.astype("uint8"))
for each_va in res_img:
assert each_va[0] == 0
# Compute brightness of a white image
def test_one_brightness():
ones_images = np.ones((3, 3, 3)) * 255
transform = Brightness()
im = Image.fromarray(ones_images.astype("uint8")).convert("RGBA")
res_img = transform(im)
for each_va in res_img:
assert each_va[0] == 255
res_img = transform(ones_images.astype("uint8"))
for each_va in res_img:
assert each_va[0] == 255
def test_Brightness():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transform = Brightness()
res_img = transform(img)
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 117.1
res_img = transform(np.array(img))
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 117.1
def test_simple_blur(image_files):
expected_results = [
3754.4,
449.4,
700.7,
1392.5,
382.6,
239.1,
300.9,
851.9,
594.9,
729.9,
895.8,
13544.2,
]
transform = SimpleBlur()
for idx, eachimg in enumerate(image_files):
img = image_loader(eachimg)
res = transform(img)
assert pytest.approx(res, 0.1) == expected_results[idx], f"index:{idx} res:{res} expected: {expected_results[idx]}"
def test_compose():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transforms = ComposeTransforms([Saturation(), np.mean])
res_compose = transforms(img)
transform_sat_only = Saturation()
res_img = transform_sat_only(img)
# compute average brightness
res = np.mean(res_img)
assert res == res_compose
| [
"whylogs.features.transforms.Saturation",
"whylogs.core.image_profiling.image_loader",
"whylogs.features.transforms.SimpleBlur",
"whylogs.features.transforms.Brightness",
"whylogs.features.transforms.Hue"
] | [((550, 555), 'whylogs.features.transforms.Hue', 'Hue', ([], {}), '()\n', (553, 555), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((748, 760), 'whylogs.features.transforms.Saturation', 'Saturation', ([], {}), '()\n', (758, 760), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((833, 849), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (840, 849), True, 'import numpy as np\n'), ((976, 992), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (983, 992), True, 'import numpy as np\n'), ((1124, 1143), 'numpy.zeros', 'np.zeros', (['(3, 3, 3)'], {}), '((3, 3, 3))\n', (1132, 1143), True, 'import numpy as np\n'), ((1160, 1172), 'whylogs.features.transforms.Brightness', 'Brightness', ([], {}), '()\n', (1170, 1172), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((1573, 1585), 'whylogs.features.transforms.Brightness', 'Brightness', ([], {}), '()\n', (1583, 1585), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((1981, 1993), 'whylogs.features.transforms.Brightness', 'Brightness', ([], {}), '()\n', (1991, 1993), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((2066, 2082), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (2073, 2082), True, 'import numpy as np\n'), ((2209, 2225), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (2216, 2225), True, 'import numpy as np\n'), ((2538, 2550), 'whylogs.features.transforms.SimpleBlur', 'SimpleBlur', ([], {}), '()\n', (2548, 2550), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((3007, 3019), 'whylogs.features.transforms.Saturation', 'Saturation', ([], {}), '()\n', (3017, 3019), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((3101, 3117), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (3108, 3117), True, 'import numpy as np\n'), ((478, 531), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (490, 531), False, 'import os\n'), ((677, 730), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (689, 730), False, 'import os\n'), ((861, 884), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (874, 884), False, 'import pytest\n'), ((918, 931), 'numpy.array', 'np.array', (['img'], {}), '(img)\n', (926, 931), True, 'import numpy as np\n'), ((1004, 1027), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (1017, 1027), False, 'import pytest\n'), ((1532, 1550), 'numpy.ones', 'np.ones', (['(3, 3, 3)'], {}), '((3, 3, 3))\n', (1539, 1550), True, 'import numpy as np\n'), ((1910, 1963), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (1922, 1963), False, 'import os\n'), ((2094, 2117), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (2107, 2117), False, 'import pytest\n'), ((2151, 2164), 'numpy.array', 'np.array', (['img'], {}), '(img)\n', (2159, 2164), True, 'import numpy as np\n'), ((2237, 2260), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (2250, 2260), False, 'import pytest\n'), ((2613, 2634), 'whylogs.core.image_profiling.image_loader', 'image_loader', (['eachimg'], {}), '(eachimg)\n', (2625, 2634), False, 'from whylogs.core.image_profiling import image_loader\n'), ((2833, 2886), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (2845, 2886), False, 'import os\n'), ((323, 348), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (338, 348), False, 'import os\n'), ((2679, 2702), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (2692, 2702), False, 'import pytest\n'), ((2924, 2936), 'whylogs.features.transforms.Saturation', 'Saturation', ([], {}), '()\n', (2934, 2936), False, 'from whylogs.features.transforms import Brightness, ComposeTransforms, Hue, Saturation, SimpleBlur\n'), ((596, 613), 'numpy.array', 'np.array', (['res_img'], {}), '(res_img)\n', (604, 613), True, 'import numpy as np\n')] |
"""
Defines the primary interface class for tracking dataset statistics.
"""
import datetime
import io
import logging
from typing import Dict, List, Mapping, Optional, Union
from uuid import uuid4
import numpy as np
import pandas as pd
from google.protobuf.internal.decoder import _DecodeVarint32
from google.protobuf.internal.encoder import _VarintBytes
from smart_open import open
from whylogs.core import ColumnProfile
from whylogs.core.flatten_datasetprofile import flatten_summary
from whylogs.core.model_profile import ModelProfile
from whylogs.core.statistics.constraints import DatasetConstraints, SummaryConstraints
from whylogs.proto import (
ColumnsChunkSegment,
DatasetMetadataSegment,
DatasetProfileMessage,
DatasetProperties,
DatasetSummary,
MessageSegment,
ModelType,
)
from whylogs.util import time
from whylogs.util.time import from_utc_ms, to_utc_ms
logger = logging.getLogger(__name__)
# Optional import for cudf
try:
# noinspection PyUnresolvedReferences
from cudf.core.dataframe import DataFrame as cudfDataFrame
except ImportError as e:
logger.debug(str(e))
logger.debug("Failed to import CudaDataFrame. Install cudf for CUDA support")
cudfDataFrame = None
COLUMN_CHUNK_MAX_LEN_IN_BYTES = int(1e6) - 10 #: Used for chunking serialized dataset profile messages
class DatasetProfile:
"""
Statistics tracking for a dataset.
A dataset refers to a collection of columns.
Parameters
----------
name: str
A human readable name for the dataset profile. Could be model name.
This is stored under "name" tag
dataset_timestamp: datetime.datetime
The timestamp associated with the data (i.e. batch run). Optional.
session_timestamp : datetime.datetime
Timestamp of the dataset
columns : dict
Dictionary lookup of `ColumnProfile`s
tags : dict
A dictionary of key->value. Can be used upstream for aggregating data. Tags must match when merging
with another dataset profile object.
metadata: dict
Metadata that can store arbitrary string mapping. Metadata is not used when aggregating data
and can be dropped when merging with another dataset profile object.
session_id : str
The unique session ID run. Should be a UUID.
constraints: DatasetConstraints
Static assertions to be applied to tracked numeric data and profile summaries.
"""
def __init__(
self,
name: str,
dataset_timestamp: datetime.datetime = None,
session_timestamp: datetime.datetime = None,
columns: dict = None,
tags: Dict[str, str] = None,
metadata: Dict[str, str] = None,
session_id: str = None,
model_profile: ModelProfile = None,
constraints: DatasetConstraints = None,
):
# Default values
if columns is None:
columns = {}
if tags is None:
tags = {}
if metadata is None:
metadata = {}
if session_id is None:
session_id = uuid4().hex
self.session_id = session_id
self.session_timestamp = session_timestamp
self.dataset_timestamp = dataset_timestamp
self._tags = dict(tags)
self._metadata = metadata.copy()
self.columns = columns
self.constraints = constraints
self.model_profile = model_profile
# Store Name attribute
self._tags["name"] = name
@property
def name(self):
return self._tags["name"]
@property
def tags(self):
return self._tags.copy()
@property
def metadata(self):
return self._metadata.copy()
@property
def session_timestamp(self):
return self._session_timestamp
@session_timestamp.setter
def session_timestamp(self, x):
if x is None:
x = datetime.datetime.now(datetime.timezone.utc)
assert isinstance(x, datetime.datetime)
self._session_timestamp = x
@property
def session_timestamp_ms(self):
"""
Return the session timestamp value in epoch milliseconds.
"""
return time.to_utc_ms(self.session_timestamp)
def add_output_field(self, field: Union[str, List[str]]):
if self.model_profile is None:
self.model_profile = ModelProfile()
if isinstance(field, list):
for field_name in field:
self.model_profile.add_output_field(field_name)
else:
self.model_profile.add_output_field(field)
def track_metrics(
self,
targets: List[Union[str, bool, float, int]],
predictions: List[Union[str, bool, float, int]],
scores: List[float] = None,
model_type: ModelType = None,
target_field: str = None,
prediction_field: str = None,
score_field: str = None,
):
"""
Function to track metrics based on validation data.
user may also pass the associated attribute names associated with
target, prediction, and/or score.
Parameters
----------
targets : List[Union[str, bool, float, int]]
actual validated values
predictions : List[Union[str, bool, float, int]]
inferred/predicted values
scores : List[float], optional
assocaited scores for each inferred, all values set to 1 if not
passed
target_field : str, optional
Description
prediction_field : str, optional
Description
score_field : str, optional
Description
model_type : ModelType, optional
Defaul is Classification type.
target_field : str, optional
prediction_field : str, optional
score_field : str, optional
score_field : str, optional
"""
if self.model_profile is None:
self.model_profile = ModelProfile()
self.model_profile.compute_metrics(
predictions=predictions,
targets=targets,
scores=scores,
model_type=model_type,
target_field=target_field,
prediction_field=prediction_field,
score_field=score_field,
)
def track(self, columns, data=None, character_list=None, token_method=None):
"""
Add value(s) to tracking statistics for column(s).
Parameters
----------
columns : str, dict
Either the name of a column, or a dictionary specifying column
names and the data (value) for each column
If a string, `data` must be supplied. Otherwise, `data` is
ignored.
data : object, None
Value to track. Specify if `columns` is a string.
"""
if data is not None:
if type(columns) != str:
raise TypeError("Unambiguous column to data mapping")
self.track_datum(columns, data)
else:
if isinstance(columns, dict):
for column_name, data in columns.items():
self.track_datum(column_name, data, character_list=None, token_method=None)
elif isinstance(columns, str):
self.track_datum(columns, None, character_list=None, token_method=None)
else:
raise TypeError("Data type of: {} not supported for tracking".format(columns.__class__.__name__))
def track_datum(self, column_name, data, character_list=None, token_method=None):
try:
prof = self.columns[column_name]
except KeyError:
constraints = None if self.constraints is None else self.constraints[column_name]
prof = ColumnProfile(column_name, constraints=constraints)
self.columns[column_name] = prof
prof.track(data, character_list=None, token_method=None)
def track_array(self, x: np.ndarray, columns=None):
"""
Track statistics for a numpy array
Parameters
----------
x : np.ndarray
2D array to track.
columns : list
Optional column labels
"""
x = np.asanyarray(x)
if np.ndim(x) != 2:
raise ValueError("Expected 2 dimensional array")
if columns is None:
columns = np.arange(x.shape[1])
columns = [str(c) for c in columns]
return self.track_dataframe(pd.DataFrame(x, columns=columns))
def track_dataframe(self, df: pd.DataFrame, character_list=None, token_method=None):
"""
Track statistics for a dataframe
Parameters
----------
df : pandas.DataFrame
DataFrame to track
"""
# workaround for CUDF due to https://github.com/rapidsai/cudf/issues/6743
if cudfDataFrame is not None and isinstance(df, cudfDataFrame):
df = df.to_pandas()
for col in df.columns:
col_str = str(col)
x = df[col].values
for xi in x:
self.track(col_str, xi, character_list=None, token_method=None)
def to_properties(self):
"""
Return dataset profile related metadata
Returns
-------
properties : DatasetProperties
The metadata as a protobuf object.
"""
tags = self.tags
metadata = self.metadata
if len(metadata) < 1:
metadata = None
session_timestamp = to_utc_ms(self.session_timestamp)
data_timestamp = to_utc_ms(self.dataset_timestamp)
return DatasetProperties(
schema_major_version=1,
schema_minor_version=1,
session_id=self.session_id,
session_timestamp=session_timestamp,
data_timestamp=data_timestamp,
tags=tags,
metadata=metadata,
)
def to_summary(self):
"""
Generate a summary of the statistics
Returns
-------
summary : DatasetSummary
Protobuf summary message.
"""
self.validate()
column_summaries = {name: colprof.to_summary() for name, colprof in self.columns.items()}
return DatasetSummary(
properties=self.to_properties(),
columns=column_summaries,
)
def generate_constraints(self) -> DatasetConstraints:
"""
Assemble a sparse dict of constraints for all features.
Returns
-------
summary : DatasetConstraints
Protobuf constraints message.
"""
self.validate()
constraints = [(name, col.generate_constraints()) for name, col in self.columns.items()]
# filter empty constraints
constraints = [(n, c) for n, c in constraints if c is not None]
return DatasetConstraints(self.to_properties(), None, dict(constraints))
def flat_summary(self):
"""
Generate and flatten a summary of the statistics.
See :func:`flatten_summary` for a description
"""
summary = self.to_summary()
return flatten_summary(summary)
def _column_message_iterator(self):
self.validate()
for k, col in self.columns.items():
yield col.to_protobuf()
def chunk_iterator(self):
"""
Generate an iterator to iterate over chunks of data
"""
# Generate unique identifier
marker = self.session_id + str(uuid4())
# Generate metadata
properties = self.to_properties()
yield MessageSegment(
marker=marker,
metadata=DatasetMetadataSegment(
properties=properties,
),
)
chunked_columns = self._column_message_iterator()
for msg in columns_chunk_iterator(chunked_columns, marker):
yield MessageSegment(columns=msg)
def validate(self):
"""
Sanity check for this object. Raises an AssertionError if invalid
"""
for attr in (
"name",
"session_id",
"session_timestamp",
"columns",
"tags",
"metadata",
):
assert getattr(self, attr) is not None
assert all(isinstance(tag, str) for tag in self.tags.values())
def merge(self, other):
"""
Merge this profile with another dataset profile object.
We will use metadata and timestamps from the current DatasetProfile in the result.
This operation will drop the metadata from the 'other' profile object.
Parameters
----------
other : DatasetProfile
Returns
-------
merged : DatasetProfile
New, merged DatasetProfile
"""
self.validate()
other.validate()
return self._do_merge(other)
def _do_merge(self, other):
columns_set = set(list(self.columns.keys()) + list(other.columns.keys()))
columns = {}
for col_name in columns_set:
constraints = None if self.constraints is None else self.constraints[col_name]
empty_column = ColumnProfile(col_name, constraints=constraints)
this_column = self.columns.get(col_name, empty_column)
other_column = other.columns.get(col_name, empty_column)
columns[col_name] = this_column.merge(other_column)
if self.model_profile is not None:
new_model_profile = self.model_profile.merge(other.model_profile)
else:
new_model_profile = other.model_profile
return DatasetProfile(
name=self.name,
session_id=self.session_id,
session_timestamp=self.session_timestamp,
dataset_timestamp=self.dataset_timestamp,
columns=columns,
tags=self.tags,
metadata=self.metadata,
model_profile=new_model_profile,
)
def merge_strict(self, other):
"""
Merge this profile with another dataset profile object. This throws exception
if session_id, timestamps and tags don't match.
This operation will drop the metadata from the 'other' profile object.
Parameters
----------
other : DatasetProfile
Returns
-------
merged : DatasetProfile
New, merged DatasetProfile
"""
self.validate()
other.validate()
assert self.session_id == other.session_id
assert self.session_timestamp == other.session_timestamp
assert self.dataset_timestamp == other.dataset_timestamp
assert self.tags == other.tags
return self._do_merge(other)
def serialize_delimited(self) -> bytes:
"""
Write out in delimited format (data is prefixed with the length of the
datastream).
This is useful when you are streaming multiple dataset profile objects
Returns
-------
data : bytes
A sequence of bytes
"""
with io.BytesIO() as f:
protobuf: DatasetProfileMessage = self.to_protobuf()
size = protobuf.ByteSize()
f.write(_VarintBytes(size))
f.write(protobuf.SerializeToString(deterministic=True))
return f.getvalue()
def to_protobuf(self) -> DatasetProfileMessage:
"""
Return the object serialized as a protobuf message
Returns
-------
message : DatasetProfileMessage
"""
properties = self.to_properties()
if self.model_profile is not None:
model_profile_msg = self.model_profile.to_protobuf()
else:
model_profile_msg = None
return DatasetProfileMessage(
properties=properties,
columns={k: v.to_protobuf() for k, v in self.columns.items()},
modeProfile=model_profile_msg,
)
def write_protobuf(self, protobuf_path: str, delimited_file: bool = True):
"""
Write the dataset profile to disk in binary format
Parameters
----------
protobuf_path : str
local path or any path supported supported by smart_open:
https://github.com/RaRe-Technologies/smart_open#how.
The parent directory must already exist
delimited_file : bool, optional
whether to prefix the data with the length of output or not.
Default is True
"""
with open(protobuf_path, "wb") as f:
msg = self.to_protobuf()
size = msg.ByteSize()
if delimited_file:
f.write(_VarintBytes(size))
f.write(msg.SerializeToString())
@staticmethod
def read_protobuf(protobuf_path: str, delimited_file: bool = True) -> "DatasetProfile":
"""
Parse a protobuf file and return a DatasetProfile object
Parameters
----------
protobuf_path : str
the path of the protobuf data, can be local or any other path supported by smart_open: https://github.com/RaRe-Technologies/smart_open#how
delimited_file : bool, optional
whether the data is delimited or not. Default is `True`
Returns
-------
DatasetProfile
whylogs.DatasetProfile object from the protobuf
"""
with open(protobuf_path, "rb") as f:
data = f.read()
if delimited_file:
msg_len, new_pos = _DecodeVarint32(data, 0)
else:
msg_len = len(data)
new_pos = 0
msg_buf = data[new_pos : new_pos + msg_len]
return DatasetProfile.from_protobuf_string(msg_buf)
@staticmethod
def from_protobuf(message: DatasetProfileMessage) -> "DatasetProfile":
"""
Load from a protobuf message
Parameters
----------
message : DatasetProfileMessage
The protobuf message. Should match the output of
`DatasetProfile.to_protobuf()`
Returns
-------
dataset_profile : DatasetProfile
"""
properties: DatasetProperties = message.properties
name = (properties.tags or {}).get("name", None) or (properties.tags or {}).get("Name", None) or ""
return DatasetProfile(
name=name,
session_id=properties.session_id,
session_timestamp=from_utc_ms(properties.session_timestamp),
dataset_timestamp=from_utc_ms(properties.data_timestamp),
columns={k: ColumnProfile.from_protobuf(v) for k, v in message.columns.items()},
tags=dict(properties.tags or {}),
metadata=dict(properties.metadata or {}),
model_profile=ModelProfile.from_protobuf(message.modeProfile),
)
@staticmethod
def from_protobuf_string(data: bytes) -> "DatasetProfile":
"""
Deserialize a serialized `DatasetProfileMessage`
Parameters
----------
data : bytes
The serialized message
Returns
-------
profile : DatasetProfile
The deserialized dataset profile
"""
msg = DatasetProfileMessage.FromString(data)
return DatasetProfile.from_protobuf(msg)
@staticmethod
def _parse_delimited_generator(data: bytes):
pos = 0
data_len = len(data)
while pos < data_len:
pos, profile = DatasetProfile.parse_delimited_single(data, pos)
yield profile
@staticmethod
def parse_delimited_single(data: bytes, pos=0):
"""
Parse a single delimited entry from a byte stream
Parameters
----------
data : bytes
The bytestream
pos : int
The starting position. Default is zero
Returns
-------
pos : int
Current position in the stream after parsing
profile : DatasetProfile
A dataset profile
"""
msg_len, new_pos = _DecodeVarint32(data, pos)
pos = new_pos
msg_buf = data[pos : pos + msg_len]
pos += msg_len
profile = DatasetProfile.from_protobuf_string(msg_buf)
return pos, profile
@staticmethod
def parse_delimited(data: bytes):
"""
Parse delimited data (i.e. data prefixed with the message length).
Java protobuf writes delimited messages, which is convenient for
storing multiple dataset profiles. This means that the main data is
prefixed with the length of the message.
Parameters
----------
data : bytes
The input byte stream
Returns
-------
profiles : list
List of all Dataset profile objects
"""
return list(DatasetProfile._parse_delimited_generator(data))
def apply_summary_constraints(self, summary_constraints: Optional[Mapping[str, SummaryConstraints]] = None):
if summary_constraints is None:
summary_constraints = self.constraints.summary_constraint_map
for k, v in summary_constraints.items():
if isinstance(v, list):
summary_constraints[k] = SummaryConstraints(v)
for feature_name, constraints in summary_constraints.items():
if feature_name in self.columns:
colprof = self.columns[feature_name]
summ = colprof.to_summary()
constraints.update(summ.number_summary)
else:
logger.debug(f"unkown feature '{feature_name}' in summary constraints")
return [(k, s.report()) for k, s in summary_constraints.items()]
def columns_chunk_iterator(iterator, marker: str):
"""
Create an iterator to return column messages in batches
Parameters
----------
iterator
An iterator which returns protobuf column messages
marker
Value used to mark a group of column messages
"""
# Initialize
max_len = COLUMN_CHUNK_MAX_LEN_IN_BYTES
content_len = 0
message = ColumnsChunkSegment(marker=marker)
# Loop over columns
for col_message in iterator:
message_len = col_message.ByteSize()
candidate_content_size = content_len + message_len
if candidate_content_size <= max_len:
# Keep appending columns
message.columns.append(col_message)
content_len = candidate_content_size
else:
yield message
message = ColumnsChunkSegment(marker=marker)
message.columns.append(col_message)
content_len = message_len
# Take care of any remaining messages
if len(message.columns) > 0:
yield message
def dataframe_profile(df: pd.DataFrame, name: str = None, timestamp: datetime.datetime = None):
"""
Generate a dataset profile for a dataframe
Parameters
----------
df : pandas.DataFrame
Dataframe to track, treated as a complete dataset.
name : str
Name of the dataset
timestamp : datetime.datetime, float
Timestamp of the dataset. Defaults to current UTC time. Can be a
datetime or UTC epoch seconds.
Returns
-------
prof : DatasetProfile
"""
if name is None:
name = "dataset"
if timestamp is None:
timestamp = datetime.datetime.utcnow()
elif not isinstance(timestamp, datetime.datetime):
# Assume UTC epoch seconds
timestamp = datetime.datetime.utcfromtimestamp(float(timestamp))
prof = DatasetProfile(name, timestamp)
prof.track_dataframe(df)
return prof
def array_profile(
x: np.ndarray,
name: str = None,
timestamp: datetime.datetime = None,
columns: list = None,
):
"""
Generate a dataset profile for an array
Parameters
----------
x : np.ndarray
Array-like object to track. Will be treated as an full dataset
name : str
Name of the dataset
timestamp : datetime.datetime
Timestamp of the dataset. Defaults to current UTC time
columns : list
Optional column labels
Returns
-------
prof : DatasetProfile
"""
if name is None:
name = "dataset"
if timestamp is None:
timestamp = datetime.datetime.utcnow()
prof = DatasetProfile(name, timestamp)
prof.track_array(x, columns)
return prof
| [
"whylogs.core.flatten_datasetprofile.flatten_summary",
"whylogs.core.model_profile.ModelProfile",
"whylogs.util.time.from_utc_ms",
"whylogs.proto.DatasetProfileMessage.FromString",
"whylogs.proto.DatasetProperties",
"whylogs.util.time.to_utc_ms",
"whylogs.core.statistics.constraints.SummaryConstraints",... | [((908, 935), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (925, 935), False, 'import logging\n'), ((22136, 22170), 'whylogs.proto.ColumnsChunkSegment', 'ColumnsChunkSegment', ([], {'marker': 'marker'}), '(marker=marker)\n', (22155, 22170), False, 'from whylogs.proto import ColumnsChunkSegment, DatasetMetadataSegment, DatasetProfileMessage, DatasetProperties, DatasetSummary, MessageSegment, ModelType\n'), ((4173, 4211), 'whylogs.util.time.to_utc_ms', 'time.to_utc_ms', (['self.session_timestamp'], {}), '(self.session_timestamp)\n', (4187, 4211), False, 'from whylogs.util import time\n'), ((8205, 8221), 'numpy.asanyarray', 'np.asanyarray', (['x'], {}), '(x)\n', (8218, 8221), True, 'import numpy as np\n'), ((9503, 9536), 'whylogs.util.time.to_utc_ms', 'to_utc_ms', (['self.session_timestamp'], {}), '(self.session_timestamp)\n', (9512, 9536), False, 'from whylogs.util.time import from_utc_ms, to_utc_ms\n'), ((9562, 9595), 'whylogs.util.time.to_utc_ms', 'to_utc_ms', (['self.dataset_timestamp'], {}), '(self.dataset_timestamp)\n', (9571, 9595), False, 'from whylogs.util.time import from_utc_ms, to_utc_ms\n'), ((9612, 9811), 'whylogs.proto.DatasetProperties', 'DatasetProperties', ([], {'schema_major_version': '(1)', 'schema_minor_version': '(1)', 'session_id': 'self.session_id', 'session_timestamp': 'session_timestamp', 'data_timestamp': 'data_timestamp', 'tags': 'tags', 'metadata': 'metadata'}), '(schema_major_version=1, schema_minor_version=1,\n session_id=self.session_id, session_timestamp=session_timestamp,\n data_timestamp=data_timestamp, tags=tags, metadata=metadata)\n', (9629, 9811), False, 'from whylogs.proto import ColumnsChunkSegment, DatasetMetadataSegment, DatasetProfileMessage, DatasetProperties, DatasetSummary, MessageSegment, ModelType\n'), ((11133, 11157), 'whylogs.core.flatten_datasetprofile.flatten_summary', 'flatten_summary', (['summary'], {}), '(summary)\n', (11148, 11157), False, 'from whylogs.core.flatten_datasetprofile import flatten_summary\n'), ((19250, 19288), 'whylogs.proto.DatasetProfileMessage.FromString', 'DatasetProfileMessage.FromString', (['data'], {}), '(data)\n', (19282, 19288), False, 'from whylogs.proto import ColumnsChunkSegment, DatasetMetadataSegment, DatasetProfileMessage, DatasetProperties, DatasetSummary, MessageSegment, ModelType\n'), ((20089, 20115), 'google.protobuf.internal.decoder._DecodeVarint32', '_DecodeVarint32', (['data', 'pos'], {}), '(data, pos)\n', (20104, 20115), False, 'from google.protobuf.internal.decoder import _DecodeVarint32\n'), ((23412, 23438), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (23436, 23438), False, 'import datetime\n'), ((24338, 24364), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (24362, 24364), False, 'import datetime\n'), ((3888, 3932), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (3909, 3932), False, 'import datetime\n'), ((4347, 4361), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (4359, 4361), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((5953, 5967), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (5965, 5967), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((8233, 8243), 'numpy.ndim', 'np.ndim', (['x'], {}), '(x)\n', (8240, 8243), True, 'import numpy as np\n'), ((8361, 8382), 'numpy.arange', 'np.arange', (['x.shape[1]'], {}), '(x.shape[1])\n', (8370, 8382), True, 'import numpy as np\n'), ((8463, 8495), 'pandas.DataFrame', 'pd.DataFrame', (['x'], {'columns': 'columns'}), '(x, columns=columns)\n', (8475, 8495), True, 'import pandas as pd\n'), ((13181, 13229), 'whylogs.core.ColumnProfile', 'ColumnProfile', (['col_name'], {'constraints': 'constraints'}), '(col_name, constraints=constraints)\n', (13194, 13229), False, 'from whylogs.core import ColumnProfile\n'), ((15086, 15098), 'io.BytesIO', 'io.BytesIO', ([], {}), '()\n', (15096, 15098), False, 'import io\n'), ((16533, 16558), 'smart_open.open', 'open', (['protobuf_path', '"""wb"""'], {}), "(protobuf_path, 'wb')\n", (16537, 16558), False, 'from smart_open import open\n'), ((17412, 17437), 'smart_open.open', 'open', (['protobuf_path', '"""rb"""'], {}), "(protobuf_path, 'rb')\n", (17416, 17437), False, 'from smart_open import open\n'), ((22575, 22609), 'whylogs.proto.ColumnsChunkSegment', 'ColumnsChunkSegment', ([], {'marker': 'marker'}), '(marker=marker)\n', (22594, 22609), False, 'from whylogs.proto import ColumnsChunkSegment, DatasetMetadataSegment, DatasetProfileMessage, DatasetProperties, DatasetSummary, MessageSegment, ModelType\n'), ((3078, 3085), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (3083, 3085), False, 'from uuid import uuid4\n'), ((7755, 7806), 'whylogs.core.ColumnProfile', 'ColumnProfile', (['column_name'], {'constraints': 'constraints'}), '(column_name, constraints=constraints)\n', (7768, 7806), False, 'from whylogs.core import ColumnProfile\n'), ((11494, 11501), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (11499, 11501), False, 'from uuid import uuid4\n'), ((11886, 11913), 'whylogs.proto.MessageSegment', 'MessageSegment', ([], {'columns': 'msg'}), '(columns=msg)\n', (11900, 11913), False, 'from whylogs.proto import ColumnsChunkSegment, DatasetMetadataSegment, DatasetProfileMessage, DatasetProperties, DatasetSummary, MessageSegment, ModelType\n'), ((15229, 15247), 'google.protobuf.internal.encoder._VarintBytes', '_VarintBytes', (['size'], {}), '(size)\n', (15241, 15247), False, 'from google.protobuf.internal.encoder import _VarintBytes\n'), ((17538, 17562), 'google.protobuf.internal.decoder._DecodeVarint32', '_DecodeVarint32', (['data', '(0)'], {}), '(data, 0)\n', (17553, 17562), False, 'from google.protobuf.internal.decoder import _DecodeVarint32\n'), ((18476, 18517), 'whylogs.util.time.from_utc_ms', 'from_utc_ms', (['properties.session_timestamp'], {}), '(properties.session_timestamp)\n', (18487, 18517), False, 'from whylogs.util.time import from_utc_ms, to_utc_ms\n'), ((18549, 18587), 'whylogs.util.time.from_utc_ms', 'from_utc_ms', (['properties.data_timestamp'], {}), '(properties.data_timestamp)\n', (18560, 18587), False, 'from whylogs.util.time import from_utc_ms, to_utc_ms\n'), ((18808, 18855), 'whylogs.core.model_profile.ModelProfile.from_protobuf', 'ModelProfile.from_protobuf', (['message.modeProfile'], {}), '(message.modeProfile)\n', (18834, 18855), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((21274, 21295), 'whylogs.core.statistics.constraints.SummaryConstraints', 'SummaryConstraints', (['v'], {}), '(v)\n', (21292, 21295), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, SummaryConstraints\n'), ((11653, 11698), 'whylogs.proto.DatasetMetadataSegment', 'DatasetMetadataSegment', ([], {'properties': 'properties'}), '(properties=properties)\n', (11675, 11698), False, 'from whylogs.proto import ColumnsChunkSegment, DatasetMetadataSegment, DatasetProfileMessage, DatasetProperties, DatasetSummary, MessageSegment, ModelType\n'), ((16691, 16709), 'google.protobuf.internal.encoder._VarintBytes', '_VarintBytes', (['size'], {}), '(size)\n', (16703, 16709), False, 'from google.protobuf.internal.encoder import _VarintBytes\n'), ((18613, 18643), 'whylogs.core.ColumnProfile.from_protobuf', 'ColumnProfile.from_protobuf', (['v'], {}), '(v)\n', (18640, 18643), False, 'from whylogs.core import ColumnProfile\n')] |
from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur
from whylogs.core.image_profiling import image_loader
import os
import numpy as np
from PIL import Image
import pytest
TEST_DATA_PATH = os.path.abspath(os.path.join(os.path.realpath(
os.path.dirname(__file__)), os.pardir, os.pardir, os.pardir, "testdata"))
def test_hue():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transform = Hue()
res_img = transform(img)
assert np.array(res_img)[100][0] == 39
def test_saturation():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transform = Saturation()
res_img = transform(img)
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 133.1
res_img = transform(np.array(img))
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 133.1
# Compute brightness of a black image
def test_zero_brightness():
zero_images = np.zeros((3, 3, 3))
transform = Brightness()
im = Image.fromarray(zero_images.astype('uint8')).convert('RGBA')
res_img = transform(im)
for each_va in res_img:
assert each_va[0] == 0
res_img = transform(zero_images.astype('uint8'))
for each_va in res_img:
assert each_va[0] == 0
# Compute brightness of a white image
def test_one_brightness():
ones_images = np.ones((3, 3, 3))*255
transform = Brightness()
im = Image.fromarray(ones_images.astype('uint8')).convert('RGBA')
res_img = transform(im)
for each_va in res_img:
assert each_va[0] == 255
res_img = transform(ones_images.astype('uint8'))
for each_va in res_img:
assert each_va[0] == 255
def test_Brightness():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transform = Brightness()
res_img = transform(img)
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 117.1
res_img = transform(np.array(img))
# compute average brightness
res = np.mean(res_img)
assert pytest.approx(res, 0.1) == 117.1
def test_simple_blur(image_files):
expected_results = [3754.4, 1392.5, 13544.2, ]
transform = SimpleBlur()
for idx, eachimg in enumerate(image_files):
img = image_loader(eachimg)
res = transform(img)
# compute average brightness
assert pytest.approx(res, 0.1) == expected_results[idx]
def test_compose():
img = image_loader(os.path.join(TEST_DATA_PATH, "images", "flower2.jpg"))
transforms = ComposeTransforms([Saturation(), np.mean])
res_compose = transforms(img)
transform_sat_only = Saturation()
res_img = transform_sat_only(img)
# compute average brightness
res = np.mean(res_img)
assert res == res_compose
| [
"whylogs.features.transforms.SimpleBlur",
"whylogs.core.image_profiling.image_loader",
"whylogs.features.transforms.Saturation",
"whylogs.features.transforms.Hue",
"whylogs.features.transforms.Brightness"
] | [((477, 482), 'whylogs.features.transforms.Hue', 'Hue', ([], {}), '()\n', (480, 482), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((675, 687), 'whylogs.features.transforms.Saturation', 'Saturation', ([], {}), '()\n', (685, 687), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((760, 776), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (767, 776), True, 'import numpy as np\n'), ((903, 919), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (910, 919), True, 'import numpy as np\n'), ((1051, 1070), 'numpy.zeros', 'np.zeros', (['(3, 3, 3)'], {}), '((3, 3, 3))\n', (1059, 1070), True, 'import numpy as np\n'), ((1087, 1099), 'whylogs.features.transforms.Brightness', 'Brightness', ([], {}), '()\n', (1097, 1099), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((1497, 1509), 'whylogs.features.transforms.Brightness', 'Brightness', ([], {}), '()\n', (1507, 1509), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((1905, 1917), 'whylogs.features.transforms.Brightness', 'Brightness', ([], {}), '()\n', (1915, 1917), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((1990, 2006), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (1997, 2006), True, 'import numpy as np\n'), ((2133, 2149), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (2140, 2149), True, 'import numpy as np\n'), ((2298, 2310), 'whylogs.features.transforms.SimpleBlur', 'SimpleBlur', ([], {}), '()\n', (2308, 2310), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((2745, 2757), 'whylogs.features.transforms.Saturation', 'Saturation', ([], {}), '()\n', (2755, 2757), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((2839, 2855), 'numpy.mean', 'np.mean', (['res_img'], {}), '(res_img)\n', (2846, 2855), True, 'import numpy as np\n'), ((405, 458), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (417, 458), False, 'import os\n'), ((604, 657), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (616, 657), False, 'import os\n'), ((788, 811), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (801, 811), False, 'import pytest\n'), ((845, 858), 'numpy.array', 'np.array', (['img'], {}), '(img)\n', (853, 858), True, 'import numpy as np\n'), ((931, 954), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (944, 954), False, 'import pytest\n'), ((1458, 1476), 'numpy.ones', 'np.ones', (['(3, 3, 3)'], {}), '((3, 3, 3))\n', (1465, 1476), True, 'import numpy as np\n'), ((1834, 1887), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (1846, 1887), False, 'import os\n'), ((2018, 2041), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (2031, 2041), False, 'import pytest\n'), ((2075, 2088), 'numpy.array', 'np.array', (['img'], {}), '(img)\n', (2083, 2088), True, 'import numpy as np\n'), ((2161, 2184), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (2174, 2184), False, 'import pytest\n'), ((2373, 2394), 'whylogs.core.image_profiling.image_loader', 'image_loader', (['eachimg'], {}), '(eachimg)\n', (2385, 2394), False, 'from whylogs.core.image_profiling import image_loader\n'), ((2571, 2624), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (2583, 2624), False, 'import os\n'), ((289, 314), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (304, 314), False, 'import os\n'), ((2477, 2500), 'pytest.approx', 'pytest.approx', (['res', '(0.1)'], {}), '(res, 0.1)\n', (2490, 2500), False, 'import pytest\n'), ((2662, 2674), 'whylogs.features.transforms.Saturation', 'Saturation', ([], {}), '()\n', (2672, 2674), False, 'from whylogs.features.transforms import Hue, Brightness, Saturation, ComposeTransforms, SimpleBlur\n'), ((523, 540), 'numpy.array', 'np.array', (['res_img'], {}), '(res_img)\n', (531, 540), True, 'import numpy as np\n')] |
from whylogs.core.model_profile import ModelProfile
from whylogs.proto import ModelProfileMessage
def test_model_profile():
mod_prof = ModelProfile()
assert mod_prof.output_fields == []
assert mod_prof.metrics is not None
assert mod_prof.metrics.confusion_matrix is not None
message = mod_prof.to_protobuf()
ModelProfile.from_protobuf(message)
def test_model_profile_2():
targets_1 = ["cat", "dog", "pig"]
predictions_1 = ["cat", "dog", "dog"]
scores_1 = [0.1, 0.2, 0.4]
mod_prof = ModelProfile()
assert mod_prof.output_fields == []
mod_prof.compute_metrics(predictions_1, targets_1, scores_1)
assert mod_prof.metrics is not None
assert mod_prof.metrics.confusion_matrix is not None
message = mod_prof.to_protobuf()
model_profile = ModelProfile.from_protobuf(message)
assert model_profile.metrics is not None
assert mod_prof.metrics.confusion_matrix is not None
assert mod_prof.metrics.confusion_matrix.labels is not None
assert model_profile.metrics.confusion_matrix.labels == mod_prof.metrics.confusion_matrix.labels
def test_merge_profile():
targets_1 = ["cat", "dog", "pig"]
predictions_1 = ["cat", "dog", "dog"]
scores_1 = [0.1, 0.2, 0.4]
mod_prof = ModelProfile()
assert mod_prof.output_fields == []
mod_prof.compute_metrics(predictions_1, targets_1, scores_1)
assert mod_prof.metrics is not None
mod_prof_2 = ModelProfile()
assert mod_prof_2.output_fields == []
mod_prof_3 = mod_prof.merge(mod_prof_2)
mod_prof_3.metrics.confusion_matrix
def test_roundtrip_serialization():
original = ModelProfile(output_fields=["test"])
serialized_bytes = original.to_protobuf().SerializeToString()
roundtrip = ModelProfile.from_protobuf(ModelProfileMessage.FromString(serialized_bytes))
roundtrip.to_protobuf()
assert roundtrip.output_fields == ["test"]
assert isinstance(roundtrip.output_fields, list)
| [
"whylogs.core.model_profile.ModelProfile",
"whylogs.proto.ModelProfileMessage.FromString",
"whylogs.core.model_profile.ModelProfile.from_protobuf"
] | [((141, 155), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (153, 155), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((334, 369), 'whylogs.core.model_profile.ModelProfile.from_protobuf', 'ModelProfile.from_protobuf', (['message'], {}), '(message)\n', (360, 369), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((527, 541), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (539, 541), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((803, 838), 'whylogs.core.model_profile.ModelProfile.from_protobuf', 'ModelProfile.from_protobuf', (['message'], {}), '(message)\n', (829, 838), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((1261, 1275), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (1273, 1275), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((1441, 1455), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {}), '()\n', (1453, 1455), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((1636, 1672), 'whylogs.core.model_profile.ModelProfile', 'ModelProfile', ([], {'output_fields': "['test']"}), "(output_fields=['test'])\n", (1648, 1672), False, 'from whylogs.core.model_profile import ModelProfile\n'), ((1782, 1830), 'whylogs.proto.ModelProfileMessage.FromString', 'ModelProfileMessage.FromString', (['serialized_bytes'], {}), '(serialized_bytes)\n', (1812, 1830), False, 'from whylogs.proto import ModelProfileMessage\n')] |
"""
Class and functions for whylogs logging
"""
import datetime
import hashlib
import json
import logging
from typing import List, Optional, Dict, Union, Callable, AnyStr
from typing.io import IO
from pathlib import Path
from tqdm import tqdm
import pandas as pd
from whylogs.app.writers import Writer
from whylogs.core import DatasetProfile, TrackImage, METADATA_DEFAULT_ATTRIBUTES, TrackBB
from whylogs.core.statistics.constraints import DatasetConstraints
from whylogs.io import LocalDataset
TIME_ROTATION_VALUES = ["s", "m", "h", "d"]
# TODO upgrade to Classes
SegmentTag = Dict[str, any]
Segment = List[SegmentTag]
logger = logging.getLogger(__name__)
class Logger:
"""
Class for logging whylogs statistics.
:param session_id: The session ID value. Should be set by the Session boject
:param dataset_name: The name of the dataset. Gets included in the DatasetProfile metadata and can be used in generated filenames.
:param dataset_timestamp: Optional. The timestamp that the logger represents
:param session_timestamp: Optional. The time the session was created
:param tags: Optional. Dictionary of key, value for aggregating data upstream
:param metadata: Optional. Dictionary of key, value. Useful for debugging (associated with every single dataset profile)
:param writers: List of Writer objects used to write out the data
:param with_rotation_time. Whether to rotate with time, takes values of overall rotation interval,
"s" for seconds
"m" for minutes
"h" for hours
"d" for days
:param interval. Additinal time rotation multipler.
:param verbose: enable debug logging or not
:param cache_size: set how many dataprofiles to cache
:param segments:
Can be either:
- Autosegmentation source, one of ["auto", "local"]
- List of tag key value pairs for tracking data segments
- List of tag keys for which we will track every value
- None, no segments will be used
:param profile_full_dataset: when segmenting dataset, an option to keep the full unsegmented profile of the dataset.
:param constraints: static assertions to be applied to streams and summaries.
"""
def __init__(self,
session_id: str,
dataset_name: str,
dataset_timestamp: Optional[datetime.datetime] = None,
session_timestamp: Optional[datetime.datetime] = None,
tags: Dict[str, str] = {},
metadata: Dict[str, str] = None,
writers=List[Writer],
verbose: bool = False,
with_rotation_time: Optional[str] = None,
interval: int = 1,
cache_size: int = 1,
segments: Optional[Union[List[Segment], List[str], str]] =
None,
profile_full_dataset: bool = False,
constraints: DatasetConstraints = None,
):
"""
"""
self._active = True
if session_timestamp is None:
self.session_timestamp = datetime.datetime.now(
datetime.timezone.utc)
else:
self.session_timestamp = session_timestamp
self.dataset_name = dataset_name
self.writers = writers
self.verbose = verbose
self.cache_size = cache_size
self.tags = tags
self.session_id = session_id
self.metadata = metadata
self.profile_full_dataset = profile_full_dataset
self.constraints = constraints
self.set_segments(segments)
self._profiles = []
self._intialize_profiles(dataset_timestamp)
# intialize to seconds in the day
self.interval = interval
self.with_rotation_time = with_rotation_time
self._set_rotation(with_rotation_time)
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()
@property
def profile(self, ) -> DatasetProfile:
"""
:return: the last backing dataset profile
:rtype: DatasetProfile
"""
return self._profiles[-1]["full_profile"]
def tracking_checks(self):
if not self._active:
return False
if self.should_rotate():
self._rotate_time()
return True
@property
def segmented_profiles(self, ) -> Dict[str, DatasetProfile]:
"""
:return: the last backing dataset profile
:rtype: Dict[str, DatasetProfile]
"""
return self._profiles[-1]["segmented_profiles"]
def get_segment(self, segment: Segment) -> Optional[DatasetProfile]:
hashed_seg = hash_segment(segment)
segment_profile = self._profiles[-1]["segmented_profiles"].get(
hashed_seg, None)
return segment_profile
def set_segments(self,
segments: Union[List[Segment], List[str], str]) -> None:
if segments:
if segments == "auto":
segments = self._retrieve_local_segments()
if segments == "local":
segments = self._retrieve_local_segments()
if segments:
if all(isinstance(elem, str) for elem in segments):
self.segment_type = "keys"
self.segments = segments
else:
self.segments = segments
self.segment_type = "set"
else:
self.segments = None
self.segment_type = None
def _retrieve_local_segments(self) -> \
Optional[Union[List[Segment], List[str], str]]:
"""Retrieves local segments"""
def _intialize_profiles(self,
dataset_timestamp: Optional[datetime.datetime] = datetime.datetime.now(
datetime.timezone.utc)) -> None:
full_profile = None
if self.full_profile_check():
full_profile = DatasetProfile(
self.dataset_name,
dataset_timestamp=dataset_timestamp,
session_timestamp=self.session_timestamp,
tags=self.tags,
metadata=self.metadata,
session_id=self.session_id,
constraints=self.constraints,
)
self._profiles.append(
{"full_profile": full_profile, "segmented_profiles": {}})
def _set_rotation(self, with_rotation_time: str = None):
if with_rotation_time is not None:
self.with_rotation_time = with_rotation_time.lower()
if self.with_rotation_time == 's':
interval = 1 # one second
self.suffix = "%Y-%m-%d_%H-%M-%S"
self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}(\.\w+)?$"
elif self.with_rotation_time == 'm':
interval = 60 # one minute
self.suffix = "%Y-%m-%d_%H-%M"
self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}(\.\w+)?$"
elif self.with_rotation_time == 'h':
interval = 60 * 60 # one hour
self.suffix = "%Y-%m-%d_%H"
self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}(\.\w+)?$"
elif self.with_rotation_time == 'd':
interval = 60 * 60 * 24 # one day
self.suffix = "%Y-%m-%d"
self.extMatch = r"^\d{4}-\d{2}-\d{2}(\.\w+)?$"
else:
raise TypeError("Invalid choice of rotation time, valid choices are {}".format(
TIME_ROTATION_VALUES))
# time in seconds
current_time = int(datetime.datetime.utcnow().timestamp())
self.interval = interval * self.interval
self.rotate_at = self.rotate_when(current_time)
def rotate_when(self, time):
result = time + self.interval
return result
def should_rotate(self, ):
if self.with_rotation_time is None:
return False
current_time = int(datetime.datetime.utcnow().timestamp())
if current_time >= self.rotate_at:
return True
return False
def _rotate_time(self):
"""
rotate with time add a suffix
"""
current_time = int(datetime.datetime.utcnow().timestamp())
# get the time that this current logging rotation started
sequence_start = self.rotate_at - self.interval
time_tuple = datetime.datetime.fromtimestamp(sequence_start)
rotation_suffix = "." + time_tuple.strftime(self.suffix)
log_datetime = datetime.datetime.strptime(
time_tuple.strftime(self.suffix), self.suffix)
# modify the segment datetime stamps
if (self.segments is None) or ((self.segments is not None) and self.profile_full_dataset):
self._profiles[-1]["full_profile"].dataset_timestamp = log_datetime
if self.segments is not None:
for _, each_prof in self._profiles[-1]["segmented_profiles"].items():
each_prof.dataset_timestamp = log_datetime
self.flush(rotation_suffix)
if len(self._profiles) > self.cache_size:
self._profiles[-self.cache_size - 1] = None
self._intialize_profiles()
# compute new rotate_at and while loop in case current function
# takes longer than interval
self.rotate_at = self.rotate_when(current_time)
while self.rotate_at <= current_time:
self.rotate_at += self.interval
def flush(self, rotation_suffix: str = None):
"""
Synchronously perform all remaining write tasks
"""
if not self._active:
print("WARNING: attempting to flush a closed logger")
return None
for writer in self.writers:
# write full profile
if self.full_profile_check():
if rotation_suffix is None:
writer.write(self._profiles[-1]["full_profile"])
else:
writer.write(
self._profiles[-1]["full_profile"], rotation_suffix)
if self.segments is not None:
for hashseg, each_seg_prof in self._profiles[-1]["segmented_profiles"].items():
seg_suffix = hashseg
full_suffix = "_" + seg_suffix
if rotation_suffix is None:
writer.write(each_seg_prof, full_suffix)
else:
full_suffix += rotation_suffix
writer.write(each_seg_prof, full_suffix)
def full_profile_check(self, ) -> bool:
"""
returns a bool to determine if unsegmented dataset should be profiled.
"""
return (self.segments is None) or ((self.segments is not None) and self.profile_full_dataset)
def close(self) -> Optional[DatasetProfile]:
"""
Flush and close out the logger, outputs the last profile
:return: the result dataset profile. None if the logger is closed
"""
if not self._active:
print("WARNING: attempting to close a closed logger")
return None
if self.with_rotation_time is None:
self.flush()
else:
self._rotate_time()
_ = self._profiles.pop()
self._active = False
profile = self._profiles[-1]["full_profile"]
self._profiles = None
return profile
def log(
self,
features: Optional[Dict[str, any]] = None,
feature_name: str = None,
value: any = None,
):
"""
Logs a collection of features or a single feature (must specify one or the other).
:param features: a map of key value feature for model input
:param feature_name: a dictionary of key->value for multiple features. Each entry represent a single columnar feature
:param feature_name: name of a single feature. Cannot be specified if 'features' is specified
:param value: value of as single feature. Cannot be specified if 'features' is specified
"""
if not self.tracking_checks():
return None
if features is None and feature_name is None:
return
if features is not None and feature_name is not None:
raise ValueError("Cannot specify both features and feature_name")
if features is not None:
# full profile
self.log_dataframe(pd.DataFrame([features]))
else:
if self.full_profile_check():
self._profiles[-1]["full_profile"].track_datum(
feature_name, value)
if self.segments:
self.log_segment_datum(feature_name, value)
def log_segment_datum(self, feature_name, value):
segment = [{"key": feature_name, "value": value}]
segment_profile = self.get_segment(segment)
if self.segment_type == "keys":
if feature_name in self.segments:
if segment_profile is None:
return
else:
segment_profile.track_datum(feature_name, value)
else:
for each_profile in self._profiles[-1]["segmented_profiles"]:
each_profile.track_datum(feature_name, value)
elif self.segment_type == "set":
if segment not in self.segments:
return
else:
segment_profile.track_datum(feature_name, value)
def log_metrics(self,
targets, predictions,
scores=None, target_field=None, prediction_field=None,
score_field=None):
self._profiles[-1]["full_profile"].track_metrics(
targets, predictions, scores, target_field=target_field,
prediction_field=prediction_field,
score_field=score_field)
def log_image(self,
image,
feature_transforms: Optional[List[Callable]] = None,
metadata_attributes: Optional[List[str]] = METADATA_DEFAULT_ATTRIBUTES,
feature_name: str = ""):
"""
API to track an image, either in PIL format or as an input path
:param feature_name: name of the feature
:param metadata_attributes: metadata attributes to extract for the images
:param feature_transforms: a list of callables to transform the input into metrics
:type image: Union[str, PIL.image]
"""
if not self.tracking_checks():
return None
if isinstance(image, str):
track_image = TrackImage(image, feature_transforms=feature_transforms,
metadata_attributes=metadata_attributes, feature_name=feature_name)
else:
track_image = TrackImage(img=image, feature_transforms=feature_transforms,
metadata_attributes=metadata_attributes, feature_name=feature_name)
track_image(self._profiles[-1]["full_profile"])
def log_local_dataset(self, root_dir, folder_feature_name="folder_feature", image_feature_transforms=None, show_progress=False):
"""
Log a local folder dataset
It will log data from the files, along with structure file data like
metadata, and magic numbers. If the folder has single layer for children
folders, this will pick up folder names as a segmented feature
Args:
root_dir (str): directory where dataset is located.
folder_feature_name (str, optional): Name for the subfolder features, i.e. class, store etc.
v (None, optional): image transform that you would like to use with the image log
Raises:
NotImplementedError: Description
"""
try:
from PIL.Image import Image as ImageType
except ImportError as e:
ImageType = None
logger.debug(str(e))
logger.debug(
"Unable to load PIL; install Pillow for image support")
dst = LocalDataset(root_dir)
for idx in tqdm(range(len(dst)), disable=(not show_progress)):
# load internal and metadata from the next file
((data, magic_data), fmt), segment_value = dst[idx]
# log magic number data if any, fmt, and folder name.
self.log(feature_name="file_format", value=fmt)
self.log(feature_name=folder_feature_name, value=segment_value)
self.log(features=magic_data)
if isinstance(data, pd.DataFrame):
self.log_dataframe(data)
elif isinstance(data, Dict) or isinstance(data, list):
self.log_annotation(annotation_data=data)
elif isinstance(data, ImageType):
if image_feature_transforms:
self.log_image(
data, feature_transforms=image_feature_transforms, metadata_attributes=[])
else:
self.log_image(
data, metadata_attributes=[])
else:
raise NotImplementedError(
"File format not supported {}, format:{}".format(type(data), fmt))
def log_annotation(self, annotation_data):
"""
Log structured annotation data ie. JSON like structures
Args:
annotation_data (Dict or List): Description
Returns:
TYPE: Description
"""
if not self.tracking_checks():
return None
track_bounding_box = TrackBB(obj=annotation_data)
track_bounding_box(self._profiles[-1]["full_profile"])
def log_csv(self,
filepath_or_buffer: Union[str, Path, IO[AnyStr]],
segments: Optional[Union[List[Segment], List[str]]] = None,
profile_full_dataset: bool = False, **kwargs, ):
"""
Log a CSV file. This supports the same parameters as :func`pandas.red_csv<pandas.read_csv>` function.
:param filepath_or_buffer: the path to the CSV or a CSV buffer
:type filepath_or_buffer: FilePathOrBuffer
:param kwargs: from pandas:read_csv
:param segments: define either a list of segment keys or a list of segments tags: `[ {"key":<featurename>,"value": <featurevalue>},... ]`
:param profile_full_dataset: when segmenting dataset, an option to keep the full unsegmented profile of the
dataset.
"""
self.profile_full_dataset = profile_full_dataset
if segments is not None:
self.set_segments(segments)
df = pd.read_csv(filepath_or_buffer, **kwargs)
self.log_dataframe(df)
def log_dataframe(self, df,
segments: Optional[Union[List[Segment], List[str]]] = None,
profile_full_dataset: bool = False, ):
"""
Generate and log a whylogs DatasetProfile from a pandas dataframe
:param profile_full_dataset: when segmenting dataset, an option to keep the full unsegmented profile of the
dataset.
:param segments: specify the tag key value pairs for segments
:param df: the Pandas dataframe to log
"""
if not self.tracking_checks():
return None
# segment check in case segments are just keys
self.profile_full_dataset = profile_full_dataset
if segments is not None:
self.set_segments(segments)
if self.full_profile_check():
self._profiles[-1]["full_profile"].track_dataframe(df)
if self.segments:
self.log_segments(df)
def log_segments(self, data):
if self.segment_type == "keys":
self.log_segments_keys(data)
elif self.segment_type == "set":
self.log_fixed_segments(data)
else:
raise TypeError("segments type not supported")
def log_segments_keys(self, data):
try:
grouped_data = data.groupby(self.segments)
except KeyError as e:
raise e
segments = grouped_data.groups.keys()
for each_segment in segments:
try:
segment_df = grouped_data.get_group(each_segment)
segment_tags = []
for i in range(len(self.segments)):
segment_tags.append(
{"key": self.segments[i], "value": each_segment[i]})
self.log_df_segment(segment_df, segment_tags)
except KeyError:
continue
def log_fixed_segments(self, data):
# we group each segment seperately since the segment tags are allowed
# to overlap
for segment_tag in self.segments:
# create keys
segment_keys = [feature["key"] for feature in segment_tag]
seg = tuple([feature["value"] for feature in segment_tag])
grouped_data = data.groupby(segment_keys)
if len(seg) == 1:
seg = seg[0]
# check if segment exist
if seg not in grouped_data.groups:
continue
segment_df = grouped_data.get_group(seg)
self.log_df_segment(segment_df, segment_tag)
def log_df_segment(self, df, segment: Segment):
segment = sorted(segment, key=lambda x: x["key"])
segment_profile = self.get_segment(segment)
if segment_profile is None:
segment_profile = DatasetProfile(
self.dataset_name,
dataset_timestamp=datetime.datetime.now(datetime.timezone.utc),
session_timestamp=self.session_timestamp,
tags={**self.tags, **{"segment": json.dumps(segment)}},
metadata=self.metadata,
session_id=self.session_id,
constraints=self.constraints,
)
segment_profile.track_dataframe(df)
hashed_seg = hash_segment(segment)
self._profiles[-1]["segmented_profiles"][hashed_seg] = segment_profile
else:
segment_profile.track_dataframe(df)
def is_active(self):
"""
Return the boolean state of the logger
"""
return self._active
def hash_segment(seg: List[Dict]) -> str:
return hashlib.sha256(json.dumps(seg).encode('utf-8')).hexdigest()
| [
"whylogs.core.DatasetProfile",
"whylogs.core.TrackBB",
"whylogs.io.LocalDataset",
"whylogs.core.TrackImage"
] | [((635, 662), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (652, 662), False, 'import logging\n'), ((5840, 5884), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (5861, 5884), False, 'import datetime\n'), ((8505, 8552), 'datetime.datetime.fromtimestamp', 'datetime.datetime.fromtimestamp', (['sequence_start'], {}), '(sequence_start)\n', (8536, 8552), False, 'import datetime\n'), ((16225, 16247), 'whylogs.io.LocalDataset', 'LocalDataset', (['root_dir'], {}), '(root_dir)\n', (16237, 16247), False, 'from whylogs.io import LocalDataset\n'), ((17739, 17767), 'whylogs.core.TrackBB', 'TrackBB', ([], {'obj': 'annotation_data'}), '(obj=annotation_data)\n', (17746, 17767), False, 'from whylogs.core import DatasetProfile, TrackImage, METADATA_DEFAULT_ATTRIBUTES, TrackBB\n'), ((18787, 18828), 'pandas.read_csv', 'pd.read_csv', (['filepath_or_buffer'], {}), '(filepath_or_buffer, **kwargs)\n', (18798, 18828), True, 'import pandas as pd\n'), ((3150, 3194), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (3171, 3194), False, 'import datetime\n'), ((6022, 6241), 'whylogs.core.DatasetProfile', 'DatasetProfile', (['self.dataset_name'], {'dataset_timestamp': 'dataset_timestamp', 'session_timestamp': 'self.session_timestamp', 'tags': 'self.tags', 'metadata': 'self.metadata', 'session_id': 'self.session_id', 'constraints': 'self.constraints'}), '(self.dataset_name, dataset_timestamp=dataset_timestamp,\n session_timestamp=self.session_timestamp, tags=self.tags, metadata=self\n .metadata, session_id=self.session_id, constraints=self.constraints)\n', (6036, 6241), False, 'from whylogs.core import DatasetProfile, TrackImage, METADATA_DEFAULT_ATTRIBUTES, TrackBB\n'), ((14764, 14892), 'whylogs.core.TrackImage', 'TrackImage', (['image'], {'feature_transforms': 'feature_transforms', 'metadata_attributes': 'metadata_attributes', 'feature_name': 'feature_name'}), '(image, feature_transforms=feature_transforms,\n metadata_attributes=metadata_attributes, feature_name=feature_name)\n', (14774, 14892), False, 'from whylogs.core import DatasetProfile, TrackImage, METADATA_DEFAULT_ATTRIBUTES, TrackBB\n'), ((14966, 15098), 'whylogs.core.TrackImage', 'TrackImage', ([], {'img': 'image', 'feature_transforms': 'feature_transforms', 'metadata_attributes': 'metadata_attributes', 'feature_name': 'feature_name'}), '(img=image, feature_transforms=feature_transforms,\n metadata_attributes=metadata_attributes, feature_name=feature_name)\n', (14976, 15098), False, 'from whylogs.core import DatasetProfile, TrackImage, METADATA_DEFAULT_ATTRIBUTES, TrackBB\n'), ((12583, 12607), 'pandas.DataFrame', 'pd.DataFrame', (['[features]'], {}), '([features])\n', (12595, 12607), True, 'import pandas as pd\n'), ((8076, 8102), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (8100, 8102), False, 'import datetime\n'), ((8322, 8348), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (8346, 8348), False, 'import datetime\n'), ((21723, 21767), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (21744, 21767), False, 'import datetime\n'), ((7699, 7725), 'datetime.datetime.utcnow', 'datetime.datetime.utcnow', ([], {}), '()\n', (7723, 7725), False, 'import datetime\n'), ((22478, 22493), 'json.dumps', 'json.dumps', (['seg'], {}), '(seg)\n', (22488, 22493), False, 'import json\n'), ((21876, 21895), 'json.dumps', 'json.dumps', (['segment'], {}), '(segment)\n', (21886, 21895), False, 'import json\n')] |
import datetime
import os
from uuid import uuid4
from PIL import Image
from whylogs.core.datasetprofile import DatasetProfile
from whylogs.core.image_profiling import _METADATA_DEFAULT_ATTRIBUTES, TrackImage
METADATA_IMAGE_TAGS = {
"ImageWidth",
"ImageLength",
"BitsPerSample",
"Compression",
"Quality",
"PhotometricInterpretation",
"SamplesPerPixel",
"Model",
"Software",
"ResolutionUnit",
"X-Resolution",
"Y-Resolution",
"Orientation",
"RowsPerStrip",
"ExposureTime",
"BrightnessValue",
"Flash",
}
TEST_DATA_PATH = os.path.abspath(
os.path.join(
os.path.realpath(os.path.dirname(__file__)),
os.pardir,
os.pardir,
os.pardir,
"testdata",
)
)
def test_track_image():
now = datetime.datetime.now(datetime.timezone.utc)
shared_session_id = uuid4().hex
test_image_path = os.path.join(TEST_DATA_PATH, "images", "flower2.jpg")
total_default_features = _METADATA_DEFAULT_ATTRIBUTES
profile_1 = DatasetProfile(
name="test",
session_id=shared_session_id,
session_timestamp=now,
tags={"key": "value"},
metadata={"key": "x1"},
)
trackImage = TrackImage(test_image_path)
trackImage(profile_1)
columns = profile_1.columns
for feature_name in total_default_features:
assert feature_name in columns, f"{feature_name} not in {columns}"
assert columns["Saturation.mean"].number_tracker.count == 1
assert columns["Saturation.stddev"].number_tracker.count == 1
assert columns["ImagePixelWidth"].counters.count == 1
trackImage = TrackImage(test_image_path)
trackImage(profile_1)
columns = profile_1.columns
for feature_name in total_default_features:
assert feature_name in columns, f"{feature_name} not in {columns}"
assert columns["Saturation.mean"].number_tracker.count == 2
assert columns["Saturation.stddev"].number_tracker.count == 2
assert columns["ImagePixelHeight"].counters.count == 2
def test_track_PIL_img():
now = datetime.datetime.now(datetime.timezone.utc)
shared_session_id = uuid4().hex
total_default_features = _METADATA_DEFAULT_ATTRIBUTES
test_image_path = os.path.join(TEST_DATA_PATH, "images", "flower2.jpg")
profile_1 = DatasetProfile(
name="test",
session_id=shared_session_id,
session_timestamp=now,
tags={"key": "value"},
metadata={"key": "x1"},
)
img = Image.open(open(test_image_path, "rb"))
trackImage = TrackImage(img=img)
trackImage(profile_1)
columns = profile_1.columns
for feature_name in total_default_features:
assert feature_name in columns, f"{feature_name} not in {columns}"
assert columns["Hue.mean"].number_tracker.count == 1
assert columns["Saturation.mean"].number_tracker.count == 1
assert columns["Brightness.mean"].number_tracker.count == 1
assert columns["ImagePixelWidth"].counters.count == 1
assert columns["ImagePixelHeight"].counters.count == 1
| [
"whylogs.core.image_profiling.TrackImage",
"whylogs.core.datasetprofile.DatasetProfile"
] | [((798, 842), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (819, 842), False, 'import datetime\n'), ((901, 954), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (913, 954), False, 'import os\n'), ((1031, 1163), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'x1'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'x1'})\n", (1045, 1163), False, 'from whylogs.core.datasetprofile import DatasetProfile\n'), ((1223, 1250), 'whylogs.core.image_profiling.TrackImage', 'TrackImage', (['test_image_path'], {}), '(test_image_path)\n', (1233, 1250), False, 'from whylogs.core.image_profiling import _METADATA_DEFAULT_ATTRIBUTES, TrackImage\n'), ((1640, 1667), 'whylogs.core.image_profiling.TrackImage', 'TrackImage', (['test_image_path'], {}), '(test_image_path)\n', (1650, 1667), False, 'from whylogs.core.image_profiling import _METADATA_DEFAULT_ATTRIBUTES, TrackImage\n'), ((2077, 2121), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (2098, 2121), False, 'import datetime\n'), ((2239, 2292), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""images"""', '"""flower2.jpg"""'], {}), "(TEST_DATA_PATH, 'images', 'flower2.jpg')\n", (2251, 2292), False, 'import os\n'), ((2310, 2442), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', ([], {'name': '"""test"""', 'session_id': 'shared_session_id', 'session_timestamp': 'now', 'tags': "{'key': 'value'}", 'metadata': "{'key': 'x1'}"}), "(name='test', session_id=shared_session_id, session_timestamp\n =now, tags={'key': 'value'}, metadata={'key': 'x1'})\n", (2324, 2442), False, 'from whylogs.core.datasetprofile import DatasetProfile\n'), ((2552, 2571), 'whylogs.core.image_profiling.TrackImage', 'TrackImage', ([], {'img': 'img'}), '(img=img)\n', (2562, 2571), False, 'from whylogs.core.image_profiling import _METADATA_DEFAULT_ATTRIBUTES, TrackImage\n'), ((867, 874), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (872, 874), False, 'from uuid import uuid4\n'), ((2146, 2153), 'uuid.uuid4', 'uuid4', ([], {}), '()\n', (2151, 2153), False, 'from uuid import uuid4\n'), ((649, 674), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (664, 674), False, 'import os\n')] |
import pytest
import unittest
from pandas import util
import time
import os
import shutil
import datetime
from freezegun import freeze_time
from whylogs.app.session import session_from_config, get_or_create_session
from whylogs.app.config import SessionConfig, WriterConfig
def test_log_rotation_seconds(tmpdir):
output_path = tmpdir.mkdir("whylogs")
shutil.rmtree(output_path)
writer_config = WriterConfig("local", ["protobuf"], output_path.realpath())
yaml_data = writer_config.to_yaml()
WriterConfig.from_yaml(yaml_data)
session_config = SessionConfig(
"project", "pipeline", writers=[writer_config])
with freeze_time("2012-01-14 03:21:34", tz_offset=-4) as frozen_time:
session = session_from_config(session_config)
with session.logger("test", with_rotation_time='s', cache_size=1) as logger:
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(seconds=1))
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(seconds=1))
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
output_files = []
for root, subdirs, files in os.walk(output_path):
output_files += files
assert len(output_files) == 3
shutil.rmtree(output_path)
def test_log_rotation_minutes(tmpdir):
output_path = tmpdir.mkdir("whylogs")
shutil.rmtree(output_path)
writer_config = WriterConfig("local", ["protobuf"], output_path.realpath())
yaml_data = writer_config.to_yaml()
WriterConfig.from_yaml(yaml_data)
session_config = SessionConfig(
"project", "pipeline", writers=[writer_config])
with freeze_time("2012-01-14 03:21:34", tz_offset=-4) as frozen_time:
session = session_from_config(session_config)
with session.logger("test", with_rotation_time='m', cache_size=1) as logger:
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(minutes=2))
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(minutes=2))
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
output_files = []
for root, subdirs, files in os.walk(output_path):
output_files += files
assert len(output_files) == 3
shutil.rmtree(output_path)
def test_log_rotation_days(tmpdir):
output_path = tmpdir.mkdir("whylogs")
shutil.rmtree(output_path)
writer_config = WriterConfig("local", ["protobuf"], output_path.realpath())
yaml_data = writer_config.to_yaml()
WriterConfig.from_yaml(yaml_data)
session_config = SessionConfig(
"project", "pipeline", writers=[writer_config])
with freeze_time("2012-01-14 03:21:34", tz_offset=-4) as frozen_time:
session = session_from_config(session_config)
with session.logger("test", with_rotation_time='d', cache_size=1) as logger:
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(days=1))
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(days=2))
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
output_files = []
for root, subdirs, files in os.walk(output_path):
output_files += files
assert len(output_files) == 3
shutil.rmtree(output_path)
def test_log_rotation_hour(tmpdir):
output_path = tmpdir.mkdir("whylogs")
shutil.rmtree(output_path)
writer_config = WriterConfig("local", ["protobuf"], output_path.realpath())
yaml_data = writer_config.to_yaml()
WriterConfig.from_yaml(yaml_data)
session_config = SessionConfig(
"project", "pipeline", writers=[writer_config])
with freeze_time("2012-01-14 03:21:34", tz_offset=-4) as frozen_time:
session = session_from_config(session_config)
with session.logger("test", with_rotation_time='h', cache_size=1) as logger:
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
frozen_time.tick(delta=datetime.timedelta(hours=3))
logger.log(feature_name="E", value=4)
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
output_files = []
for root, subdirs, files in os.walk(output_path):
output_files += files
assert len(output_files) == 2
shutil.rmtree(output_path)
def test_incorrect_rotation_time():
with pytest.raises(TypeError):
session = get_or_create_session()
with session.logger("test2", with_rotation_time='W2') as logger:
df = util.testing.makeDataFrame()
logger.log_dataframe(df)
| [
"whylogs.app.session.get_or_create_session",
"whylogs.app.session.session_from_config",
"whylogs.app.config.WriterConfig.from_yaml",
"whylogs.app.config.SessionConfig"
] | [((363, 389), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (376, 389), False, 'import shutil\n'), ((514, 547), 'whylogs.app.config.WriterConfig.from_yaml', 'WriterConfig.from_yaml', (['yaml_data'], {}), '(yaml_data)\n', (536, 547), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((570, 631), 'whylogs.app.config.SessionConfig', 'SessionConfig', (['"""project"""', '"""pipeline"""'], {'writers': '[writer_config]'}), "('project', 'pipeline', writers=[writer_config])\n", (583, 631), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((1372, 1392), 'os.walk', 'os.walk', (['output_path'], {}), '(output_path)\n', (1379, 1392), False, 'import os\n'), ((1462, 1488), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (1475, 1488), False, 'import shutil\n'), ((1576, 1602), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (1589, 1602), False, 'import shutil\n'), ((1727, 1760), 'whylogs.app.config.WriterConfig.from_yaml', 'WriterConfig.from_yaml', (['yaml_data'], {}), '(yaml_data)\n', (1749, 1760), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((1783, 1844), 'whylogs.app.config.SessionConfig', 'SessionConfig', (['"""project"""', '"""pipeline"""'], {'writers': '[writer_config]'}), "('project', 'pipeline', writers=[writer_config])\n", (1796, 1844), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((2585, 2605), 'os.walk', 'os.walk', (['output_path'], {}), '(output_path)\n', (2592, 2605), False, 'import os\n'), ((2675, 2701), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (2688, 2701), False, 'import shutil\n'), ((2786, 2812), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (2799, 2812), False, 'import shutil\n'), ((2937, 2970), 'whylogs.app.config.WriterConfig.from_yaml', 'WriterConfig.from_yaml', (['yaml_data'], {}), '(yaml_data)\n', (2959, 2970), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((2993, 3054), 'whylogs.app.config.SessionConfig', 'SessionConfig', (['"""project"""', '"""pipeline"""'], {'writers': '[writer_config]'}), "('project', 'pipeline', writers=[writer_config])\n", (3006, 3054), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((3789, 3809), 'os.walk', 'os.walk', (['output_path'], {}), '(output_path)\n', (3796, 3809), False, 'import os\n'), ((3879, 3905), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (3892, 3905), False, 'import shutil\n'), ((3990, 4016), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (4003, 4016), False, 'import shutil\n'), ((4141, 4174), 'whylogs.app.config.WriterConfig.from_yaml', 'WriterConfig.from_yaml', (['yaml_data'], {}), '(yaml_data)\n', (4163, 4174), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((4197, 4258), 'whylogs.app.config.SessionConfig', 'SessionConfig', (['"""project"""', '"""pipeline"""'], {'writers': '[writer_config]'}), "('project', 'pipeline', writers=[writer_config])\n", (4210, 4258), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((4816, 4836), 'os.walk', 'os.walk', (['output_path'], {}), '(output_path)\n', (4823, 4836), False, 'import os\n'), ((4906, 4932), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (4919, 4932), False, 'import shutil\n'), ((650, 698), 'freezegun.freeze_time', 'freeze_time', (['"""2012-01-14 03:21:34"""'], {'tz_offset': '(-4)'}), "('2012-01-14 03:21:34', tz_offset=-4)\n", (661, 698), False, 'from freezegun import freeze_time\n'), ((733, 768), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (752, 768), False, 'from whylogs.app.session import session_from_config, get_or_create_session\n'), ((1863, 1911), 'freezegun.freeze_time', 'freeze_time', (['"""2012-01-14 03:21:34"""'], {'tz_offset': '(-4)'}), "('2012-01-14 03:21:34', tz_offset=-4)\n", (1874, 1911), False, 'from freezegun import freeze_time\n'), ((1946, 1981), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (1965, 1981), False, 'from whylogs.app.session import session_from_config, get_or_create_session\n'), ((3073, 3121), 'freezegun.freeze_time', 'freeze_time', (['"""2012-01-14 03:21:34"""'], {'tz_offset': '(-4)'}), "('2012-01-14 03:21:34', tz_offset=-4)\n", (3084, 3121), False, 'from freezegun import freeze_time\n'), ((3156, 3191), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (3175, 3191), False, 'from whylogs.app.session import session_from_config, get_or_create_session\n'), ((4277, 4325), 'freezegun.freeze_time', 'freeze_time', (['"""2012-01-14 03:21:34"""'], {'tz_offset': '(-4)'}), "('2012-01-14 03:21:34', tz_offset=-4)\n", (4288, 4325), False, 'from freezegun import freeze_time\n'), ((4360, 4395), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (4379, 4395), False, 'from whylogs.app.session import session_from_config, get_or_create_session\n'), ((4981, 5005), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (4994, 5005), False, 'import pytest\n'), ((5025, 5048), 'whylogs.app.session.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (5046, 5048), False, 'from whylogs.app.session import session_from_config, get_or_create_session\n'), ((871, 899), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (897, 899), False, 'from pandas import util\n'), ((1020, 1048), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (1046, 1048), False, 'from pandas import util\n'), ((1103, 1131), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (1129, 1131), False, 'from pandas import util\n'), ((1252, 1280), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (1278, 1280), False, 'from pandas import util\n'), ((2084, 2112), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (2110, 2112), False, 'from pandas import util\n'), ((2233, 2261), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (2259, 2261), False, 'from pandas import util\n'), ((2316, 2344), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (2342, 2344), False, 'from pandas import util\n'), ((2465, 2493), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (2491, 2493), False, 'from pandas import util\n'), ((3294, 3322), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (3320, 3322), False, 'from pandas import util\n'), ((3440, 3468), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (3466, 3468), False, 'from pandas import util\n'), ((3523, 3551), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (3549, 3551), False, 'from pandas import util\n'), ((3669, 3697), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (3695, 3697), False, 'from pandas import util\n'), ((4498, 4526), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (4524, 4526), False, 'from pandas import util\n'), ((4695, 4723), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (4721, 4723), False, 'from pandas import util\n'), ((5139, 5167), 'pandas.util.testing.makeDataFrame', 'util.testing.makeDataFrame', ([], {}), '()\n', (5165, 5167), False, 'from pandas import util\n'), ((972, 1001), 'datetime.timedelta', 'datetime.timedelta', ([], {'seconds': '(1)'}), '(seconds=1)\n', (990, 1001), False, 'import datetime\n'), ((1204, 1233), 'datetime.timedelta', 'datetime.timedelta', ([], {'seconds': '(1)'}), '(seconds=1)\n', (1222, 1233), False, 'import datetime\n'), ((2185, 2214), 'datetime.timedelta', 'datetime.timedelta', ([], {'minutes': '(2)'}), '(minutes=2)\n', (2203, 2214), False, 'import datetime\n'), ((2417, 2446), 'datetime.timedelta', 'datetime.timedelta', ([], {'minutes': '(2)'}), '(minutes=2)\n', (2435, 2446), False, 'import datetime\n'), ((3395, 3421), 'datetime.timedelta', 'datetime.timedelta', ([], {'days': '(1)'}), '(days=1)\n', (3413, 3421), False, 'import datetime\n'), ((3624, 3650), 'datetime.timedelta', 'datetime.timedelta', ([], {'days': '(2)'}), '(days=2)\n', (3642, 3650), False, 'import datetime\n'), ((4599, 4626), 'datetime.timedelta', 'datetime.timedelta', ([], {'hours': '(3)'}), '(hours=3)\n', (4617, 4626), False, 'import datetime\n')] |
import io
import logging
import os
import re
import shutil
import subprocess
import sys
import tempfile
import webbrowser
import click
import pandas as pd
from whylogs import __version__ as whylogs_version
from whylogs.app import SessionConfig, WriterConfig
from whylogs.app.config import WHYLOGS_YML
from whylogs.app.session import session_from_config
from whylogs.cli.utils import echo
from .cli_text import (
BEGIN_WORKFLOW,
DATA_SOURCE_MESSAGE,
DOING_NOTHING_ABORTING,
DONE,
EMPTY_PATH_WARNING,
GENERATE_NOTEBOOKS,
INITIAL_PROFILING_CONFIRM,
INTRO_MESSAGE,
OBSERVATORY_EXPLANATION,
OVERRIDE_CONFIRM,
PIPELINE_DESCRIPTION,
PROJECT_DESCRIPTION,
PROJECT_NAME_PROMPT,
RUN_PROFILING,
)
_LENDING_CLUB_CSV = "lending_club_1000.csv"
_EXAMPLE_REPO = "https://github.com/whylabs/whylogs-examples.git"
def _set_up_logger():
# Log to console with a simple formatter; used by CLI
formatter = logging.Formatter("%(message)s")
handler = logging.StreamHandler()
handler.setFormatter(formatter)
module_logger = logging.getLogger("whylogs")
module_logger.addHandler(handler)
module_logger.setLevel(level=logging.WARNING)
return module_logger
NAME_FORMAT = re.compile(r"^(\w|-|_)+$")
class NameParamType(click.ParamType):
def convert(self, value, param, ctx):
if NAME_FORMAT.fullmatch(value) is None:
raise click.BadParameter("must contain only alphanumeric, underscore and dash characters")
return value
@click.command()
@click.option(
"--project-dir",
"-d",
default="./",
help="The root of the new whylogs demo project.",
)
def init(project_dir):
"""
Initialize and configure a new whylogs project.
This guided input walks the user through setting up a new project and also
on-boards a new developer in an existing project.
It scaffolds directories, sets up notebooks, creates a project file, and
appends to a `.gitignore` file.
"""
echo(INTRO_MESSAGE, fg="green")
project_dir = os.path.abspath(project_dir)
echo(f"Project path: {project_dir}")
is_project_dir_empty = len(os.listdir(path=project_dir)) == 0
if not is_project_dir_empty:
echo(EMPTY_PATH_WARNING, fg="yellow")
if not click.confirm(OVERRIDE_CONFIRM, default=False, show_default=True):
echo(DOING_NOTHING_ABORTING)
sys.exit(0)
os.chdir(project_dir)
echo(BEGIN_WORKFLOW)
echo(PROJECT_DESCRIPTION)
project_name = click.prompt(PROJECT_NAME_PROMPT, type=NameParamType())
echo(f"Using project name: {project_name}", fg="green")
echo(PIPELINE_DESCRIPTION)
pipeline_name = click.prompt(
"Pipeline name (leave blank for default pipeline name)",
type=NameParamType(),
default="default-pipeline",
)
echo(f"Using pipeline name: {pipeline_name}", fg="green")
output_path = click.prompt("Specify the whylogs output path", default="output", show_default=True)
echo(f"Using output path: {output_path}", fg="green")
writer = WriterConfig("local", ["all"], output_path)
session_config = SessionConfig(project_name, pipeline_name, writers=[writer], verbose=False)
echo("Adding example notebooks to your workspace")
git = shutil.which("git")
if git is None:
echo("We can't seem to find git utility on your system. We'll have kip this step")
echo("You can check out our repo on: https://github.com/whylabs/whylogs-examples")
else:
# do git checkout here
tmp_path = tempfile.mkdtemp("profiler")
subprocess.run(
[git, "clone", "--depth", "1", _EXAMPLE_REPO],
cwd=tmp_path,
check=True,
)
example_python = os.path.join(tmp_path, "whylogs-examples", "python")
files = os.listdir(example_python)
for f in files:
shutil.copy(os.path.join(example_python, f), os.path.join(project_dir, f))
shutil.rmtree(tmp_path)
config_yml = os.path.join(project_dir, WHYLOGS_YML)
with open(file=config_yml, mode="wt") as f:
session_config.to_yaml(f)
echo(f"Config YAML file was written to: {config_yml}\n")
if click.confirm(INITIAL_PROFILING_CONFIRM, default=True):
echo(DATA_SOURCE_MESSAGE)
choices = [
"CSV on the file system",
]
for i in range(len(choices)):
echo(f"\t{i + 1}. {choices[i]}")
choice = click.prompt("", type=click.IntRange(min=1, max=len(choices)))
assert choice == 1
profile_csv(session_config, project_dir)
echo(
f"You should find the whylogs output under: {os.path.join(project_dir, output_path, project_name)}",
fg="green",
)
echo(GENERATE_NOTEBOOKS)
# Hack: Takes first all numeric directory as generated datetime for now
output_full_path = os.path.join(project_dir, output_path)
generated_datetime = list(filter(lambda x: re.match("[0-9]*", x), os.listdir(output_full_path)))[0]
full_output_path = os.path.join(output_path, generated_datetime)
echo(f"You should find the output under: {full_output_path}")
echo(OBSERVATORY_EXPLANATION)
echo("Your original data (CSV file) will remain locally.")
should_open = click.confirm(
"Would you like to proceed to WhyLabs Playground to see how our data visualization works?",
default=False,
show_default=True,
)
if should_open:
webbrowser.open("https://try.whylabsapp.com/?utm_source=whylogs")
echo(DONE)
else:
echo("Skip initial profiling and notebook generation")
echo(DONE)
def profile_csv(session_config: SessionConfig, project_dir: str) -> str:
file: io.TextIOWrapper = click.prompt(
"CSV input path (leave blank to use our demo dataset)",
type=click.File(mode="rt"),
default=io.StringIO(),
show_default=False,
)
if type(file) is io.StringIO:
echo("Using the demo Lending Club Data (1K randomized samples)", fg="green")
destination_csv = os.path.join(project_dir, _LENDING_CLUB_CSV)
full_input = os.path.realpath(destination_csv)
else:
file.close()
full_input = os.path.realpath(file.name)
echo(f"Input file: {full_input}")
echo(RUN_PROFILING)
session = session_from_config(session_config)
df = pd.read_csv(full_input)
session.log_dataframe(df)
session.close()
return full_input
@click.group()
@click.version_option(version=whylogs_version)
@click.option(
"--verbose",
"-v",
is_flag=True,
default=False,
help="Set whylogs CLI to use verbose output.",
)
def cli(verbose):
"""
Welcome to whylogs Demo CLI!
Supported commands:
- whylogs-demo init : create a demo whylogs project with example data and notebooks
"""
logger = _set_up_logger()
if verbose:
logger.setLevel(logging.DEBUG)
cli.add_command(init)
def main():
_set_up_logger()
cli()
if __name__ == "__main__":
main()
| [
"whylogs.app.WriterConfig",
"whylogs.app.session.session_from_config",
"whylogs.cli.utils.echo",
"whylogs.app.SessionConfig"
] | [((1240, 1266), 're.compile', 're.compile', (['"""^(\\\\w|-|_)+$"""'], {}), "('^(\\\\w|-|_)+$')\n", (1250, 1266), False, 'import re\n'), ((1525, 1540), 'click.command', 'click.command', ([], {}), '()\n', (1538, 1540), False, 'import click\n'), ((1542, 1646), 'click.option', 'click.option', (['"""--project-dir"""', '"""-d"""'], {'default': '"""./"""', 'help': '"""The root of the new whylogs demo project."""'}), "('--project-dir', '-d', default='./', help=\n 'The root of the new whylogs demo project.')\n", (1554, 1646), False, 'import click\n'), ((6540, 6553), 'click.group', 'click.group', ([], {}), '()\n', (6551, 6553), False, 'import click\n'), ((6555, 6600), 'click.version_option', 'click.version_option', ([], {'version': 'whylogs_version'}), '(version=whylogs_version)\n', (6575, 6600), False, 'import click\n'), ((6602, 6714), 'click.option', 'click.option', (['"""--verbose"""', '"""-v"""'], {'is_flag': '(True)', 'default': '(False)', 'help': '"""Set whylogs CLI to use verbose output."""'}), "('--verbose', '-v', is_flag=True, default=False, help=\n 'Set whylogs CLI to use verbose output.')\n", (6614, 6714), False, 'import click\n'), ((953, 985), 'logging.Formatter', 'logging.Formatter', (['"""%(message)s"""'], {}), "('%(message)s')\n", (970, 985), False, 'import logging\n'), ((1000, 1023), 'logging.StreamHandler', 'logging.StreamHandler', ([], {}), '()\n', (1021, 1023), False, 'import logging\n'), ((1081, 1109), 'logging.getLogger', 'logging.getLogger', (['"""whylogs"""'], {}), "('whylogs')\n", (1098, 1109), False, 'import logging\n'), ((2004, 2035), 'whylogs.cli.utils.echo', 'echo', (['INTRO_MESSAGE'], {'fg': '"""green"""'}), "(INTRO_MESSAGE, fg='green')\n", (2008, 2035), False, 'from whylogs.cli.utils import echo\n'), ((2054, 2082), 'os.path.abspath', 'os.path.abspath', (['project_dir'], {}), '(project_dir)\n', (2069, 2082), False, 'import os\n'), ((2087, 2123), 'whylogs.cli.utils.echo', 'echo', (['f"""Project path: {project_dir}"""'], {}), "(f'Project path: {project_dir}')\n", (2091, 2123), False, 'from whylogs.cli.utils import echo\n'), ((2410, 2431), 'os.chdir', 'os.chdir', (['project_dir'], {}), '(project_dir)\n', (2418, 2431), False, 'import os\n'), ((2437, 2457), 'whylogs.cli.utils.echo', 'echo', (['BEGIN_WORKFLOW'], {}), '(BEGIN_WORKFLOW)\n', (2441, 2457), False, 'from whylogs.cli.utils import echo\n'), ((2462, 2487), 'whylogs.cli.utils.echo', 'echo', (['PROJECT_DESCRIPTION'], {}), '(PROJECT_DESCRIPTION)\n', (2466, 2487), False, 'from whylogs.cli.utils import echo\n'), ((2567, 2622), 'whylogs.cli.utils.echo', 'echo', (['f"""Using project name: {project_name}"""'], {'fg': '"""green"""'}), "(f'Using project name: {project_name}', fg='green')\n", (2571, 2622), False, 'from whylogs.cli.utils import echo\n'), ((2627, 2653), 'whylogs.cli.utils.echo', 'echo', (['PIPELINE_DESCRIPTION'], {}), '(PIPELINE_DESCRIPTION)\n', (2631, 2653), False, 'from whylogs.cli.utils import echo\n'), ((2829, 2886), 'whylogs.cli.utils.echo', 'echo', (['f"""Using pipeline name: {pipeline_name}"""'], {'fg': '"""green"""'}), "(f'Using pipeline name: {pipeline_name}', fg='green')\n", (2833, 2886), False, 'from whylogs.cli.utils import echo\n'), ((2905, 2993), 'click.prompt', 'click.prompt', (['"""Specify the whylogs output path"""'], {'default': '"""output"""', 'show_default': '(True)'}), "('Specify the whylogs output path', default='output',\n show_default=True)\n", (2917, 2993), False, 'import click\n'), ((2994, 3047), 'whylogs.cli.utils.echo', 'echo', (['f"""Using output path: {output_path}"""'], {'fg': '"""green"""'}), "(f'Using output path: {output_path}', fg='green')\n", (2998, 3047), False, 'from whylogs.cli.utils import echo\n'), ((3061, 3104), 'whylogs.app.WriterConfig', 'WriterConfig', (['"""local"""', "['all']", 'output_path'], {}), "('local', ['all'], output_path)\n", (3073, 3104), False, 'from whylogs.app import SessionConfig, WriterConfig\n'), ((3126, 3201), 'whylogs.app.SessionConfig', 'SessionConfig', (['project_name', 'pipeline_name'], {'writers': '[writer]', 'verbose': '(False)'}), '(project_name, pipeline_name, writers=[writer], verbose=False)\n', (3139, 3201), False, 'from whylogs.app import SessionConfig, WriterConfig\n'), ((3207, 3257), 'whylogs.cli.utils.echo', 'echo', (['"""Adding example notebooks to your workspace"""'], {}), "('Adding example notebooks to your workspace')\n", (3211, 3257), False, 'from whylogs.cli.utils import echo\n'), ((3268, 3287), 'shutil.which', 'shutil.which', (['"""git"""'], {}), "('git')\n", (3280, 3287), False, 'import shutil\n'), ((4005, 4043), 'os.path.join', 'os.path.join', (['project_dir', 'WHYLOGS_YML'], {}), '(project_dir, WHYLOGS_YML)\n', (4017, 4043), False, 'import os\n'), ((4130, 4186), 'whylogs.cli.utils.echo', 'echo', (['f"""Config YAML file was written to: {config_yml}\n"""'], {}), "(f'Config YAML file was written to: {config_yml}\\n')\n", (4134, 4186), False, 'from whylogs.cli.utils import echo\n'), ((4195, 4249), 'click.confirm', 'click.confirm', (['INITIAL_PROFILING_CONFIRM'], {'default': '(True)'}), '(INITIAL_PROFILING_CONFIRM, default=True)\n', (4208, 4249), False, 'import click\n'), ((6324, 6357), 'whylogs.cli.utils.echo', 'echo', (['f"""Input file: {full_input}"""'], {}), "(f'Input file: {full_input}')\n", (6328, 6357), False, 'from whylogs.cli.utils import echo\n'), ((6362, 6381), 'whylogs.cli.utils.echo', 'echo', (['RUN_PROFILING'], {}), '(RUN_PROFILING)\n', (6366, 6381), False, 'from whylogs.cli.utils import echo\n'), ((6396, 6431), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (6415, 6431), False, 'from whylogs.app.session import session_from_config\n'), ((6441, 6464), 'pandas.read_csv', 'pd.read_csv', (['full_input'], {}), '(full_input)\n', (6452, 6464), True, 'import pandas as pd\n'), ((2232, 2269), 'whylogs.cli.utils.echo', 'echo', (['EMPTY_PATH_WARNING'], {'fg': '"""yellow"""'}), "(EMPTY_PATH_WARNING, fg='yellow')\n", (2236, 2269), False, 'from whylogs.cli.utils import echo\n'), ((2282, 2347), 'click.confirm', 'click.confirm', (['OVERRIDE_CONFIRM'], {'default': '(False)', 'show_default': '(True)'}), '(OVERRIDE_CONFIRM, default=False, show_default=True)\n', (2295, 2347), False, 'import click\n'), ((2357, 2385), 'whylogs.cli.utils.echo', 'echo', (['DOING_NOTHING_ABORTING'], {}), '(DOING_NOTHING_ABORTING)\n', (2361, 2385), False, 'from whylogs.cli.utils import echo\n'), ((2394, 2405), 'sys.exit', 'sys.exit', (['(0)'], {}), '(0)\n', (2402, 2405), False, 'import sys\n'), ((3316, 3408), 'whylogs.cli.utils.echo', 'echo', (['"""We can\'t seem to find git utility on your system. We\'ll have kip this step"""'], {}), '(\n "We can\'t seem to find git utility on your system. We\'ll have kip this step"\n )\n', (3320, 3408), False, 'from whylogs.cli.utils import echo\n'), ((3407, 3499), 'whylogs.cli.utils.echo', 'echo', (['"""You can check out our repo on: https://github.com/whylabs/whylogs-examples"""'], {}), "(\n 'You can check out our repo on: https://github.com/whylabs/whylogs-examples'\n )\n", (3411, 3499), False, 'from whylogs.cli.utils import echo\n'), ((3550, 3578), 'tempfile.mkdtemp', 'tempfile.mkdtemp', (['"""profiler"""'], {}), "('profiler')\n", (3566, 3578), False, 'import tempfile\n'), ((3587, 3678), 'subprocess.run', 'subprocess.run', (["[git, 'clone', '--depth', '1', _EXAMPLE_REPO]"], {'cwd': 'tmp_path', 'check': '(True)'}), "([git, 'clone', '--depth', '1', _EXAMPLE_REPO], cwd=tmp_path,\n check=True)\n", (3601, 3678), False, 'import subprocess\n'), ((3748, 3800), 'os.path.join', 'os.path.join', (['tmp_path', '"""whylogs-examples"""', '"""python"""'], {}), "(tmp_path, 'whylogs-examples', 'python')\n", (3760, 3800), False, 'import os\n'), ((3817, 3843), 'os.listdir', 'os.listdir', (['example_python'], {}), '(example_python)\n', (3827, 3843), False, 'import os\n'), ((3963, 3986), 'shutil.rmtree', 'shutil.rmtree', (['tmp_path'], {}), '(tmp_path)\n', (3976, 3986), False, 'import shutil\n'), ((4259, 4284), 'whylogs.cli.utils.echo', 'echo', (['DATA_SOURCE_MESSAGE'], {}), '(DATA_SOURCE_MESSAGE)\n', (4263, 4284), False, 'from whylogs.cli.utils import echo\n'), ((4762, 4786), 'whylogs.cli.utils.echo', 'echo', (['GENERATE_NOTEBOOKS'], {}), '(GENERATE_NOTEBOOKS)\n', (4766, 4786), False, 'from whylogs.cli.utils import echo\n'), ((4894, 4932), 'os.path.join', 'os.path.join', (['project_dir', 'output_path'], {}), '(project_dir, output_path)\n', (4906, 4932), False, 'import os\n'), ((5068, 5113), 'os.path.join', 'os.path.join', (['output_path', 'generated_datetime'], {}), '(output_path, generated_datetime)\n', (5080, 5113), False, 'import os\n'), ((5122, 5183), 'whylogs.cli.utils.echo', 'echo', (['f"""You should find the output under: {full_output_path}"""'], {}), "(f'You should find the output under: {full_output_path}')\n", (5126, 5183), False, 'from whylogs.cli.utils import echo\n'), ((5193, 5222), 'whylogs.cli.utils.echo', 'echo', (['OBSERVATORY_EXPLANATION'], {}), '(OBSERVATORY_EXPLANATION)\n', (5197, 5222), False, 'from whylogs.cli.utils import echo\n'), ((5231, 5289), 'whylogs.cli.utils.echo', 'echo', (['"""Your original data (CSV file) will remain locally."""'], {}), "('Your original data (CSV file) will remain locally.')\n", (5235, 5289), False, 'from whylogs.cli.utils import echo\n'), ((5312, 5461), 'click.confirm', 'click.confirm', (['"""Would you like to proceed to WhyLabs Playground to see how our data visualization works?"""'], {'default': '(False)', 'show_default': '(True)'}), "(\n 'Would you like to proceed to WhyLabs Playground to see how our data visualization works?'\n , default=False, show_default=True)\n", (5325, 5461), False, 'import click\n'), ((5609, 5619), 'whylogs.cli.utils.echo', 'echo', (['DONE'], {}), '(DONE)\n', (5613, 5619), False, 'from whylogs.cli.utils import echo\n'), ((5638, 5692), 'whylogs.cli.utils.echo', 'echo', (['"""Skip initial profiling and notebook generation"""'], {}), "('Skip initial profiling and notebook generation')\n", (5642, 5692), False, 'from whylogs.cli.utils import echo\n'), ((5701, 5711), 'whylogs.cli.utils.echo', 'echo', (['DONE'], {}), '(DONE)\n', (5705, 5711), False, 'from whylogs.cli.utils import echo\n'), ((6037, 6113), 'whylogs.cli.utils.echo', 'echo', (['"""Using the demo Lending Club Data (1K randomized samples)"""'], {'fg': '"""green"""'}), "('Using the demo Lending Club Data (1K randomized samples)', fg='green')\n", (6041, 6113), False, 'from whylogs.cli.utils import echo\n'), ((6140, 6184), 'os.path.join', 'os.path.join', (['project_dir', '_LENDING_CLUB_CSV'], {}), '(project_dir, _LENDING_CLUB_CSV)\n', (6152, 6184), False, 'import os\n'), ((6206, 6239), 'os.path.realpath', 'os.path.realpath', (['destination_csv'], {}), '(destination_csv)\n', (6222, 6239), False, 'import os\n'), ((6292, 6319), 'os.path.realpath', 'os.path.realpath', (['file.name'], {}), '(file.name)\n', (6308, 6319), False, 'import os\n'), ((1416, 1505), 'click.BadParameter', 'click.BadParameter', (['"""must contain only alphanumeric, underscore and dash characters"""'], {}), "(\n 'must contain only alphanumeric, underscore and dash characters')\n", (1434, 1505), False, 'import click\n'), ((2156, 2184), 'os.listdir', 'os.listdir', ([], {'path': 'project_dir'}), '(path=project_dir)\n', (2166, 2184), False, 'import os\n'), ((4403, 4435), 'whylogs.cli.utils.echo', 'echo', (['f"""\t{i + 1}. {choices[i]}"""'], {}), "(f'\\t{i + 1}. {choices[i]}')\n", (4407, 4435), False, 'from whylogs.cli.utils import echo\n'), ((5535, 5600), 'webbrowser.open', 'webbrowser.open', (['"""https://try.whylabsapp.com/?utm_source=whylogs"""'], {}), "('https://try.whylabsapp.com/?utm_source=whylogs')\n", (5550, 5600), False, 'import webbrowser\n'), ((5907, 5928), 'click.File', 'click.File', ([], {'mode': '"""rt"""'}), "(mode='rt')\n", (5917, 5928), False, 'import click\n'), ((5946, 5959), 'io.StringIO', 'io.StringIO', ([], {}), '()\n', (5957, 5959), False, 'import io\n'), ((3892, 3923), 'os.path.join', 'os.path.join', (['example_python', 'f'], {}), '(example_python, f)\n', (3904, 3923), False, 'import os\n'), ((3925, 3953), 'os.path.join', 'os.path.join', (['project_dir', 'f'], {}), '(project_dir, f)\n', (3937, 3953), False, 'import os\n'), ((4663, 4715), 'os.path.join', 'os.path.join', (['project_dir', 'output_path', 'project_name'], {}), '(project_dir, output_path, project_name)\n', (4675, 4715), False, 'import os\n'), ((5007, 5035), 'os.listdir', 'os.listdir', (['output_full_path'], {}), '(output_full_path)\n', (5017, 5035), False, 'import os\n'), ((4984, 5005), 're.match', 're.match', (['"""[0-9]*"""', 'x'], {}), "('[0-9]*', x)\n", (4992, 5005), False, 'import re\n')] |
import datetime
import os
import numpy as np
import pandas as pd
from whylogs import get_or_create_session
from whylogs.core.statistics.constraints import (
DatasetConstraints,
Op,
SummaryConstraint,
ValueConstraint,
columnPairValuesInSetConstraint,
columnsMatchSetConstraint,
columnValuesInSetConstraint,
columnValuesUniqueWithinRow,
sumOfRowValuesOfMultipleColumnsEqualsConstraint,
)
from whylogs.viz import NotebookProfileVisualizer
def __generate_target_profile():
session = get_or_create_session()
with session.logger("mytestytest", dataset_timestamp=datetime.datetime(2021, 6, 2)) as logger:
for _ in range(5):
logger.log({"uniform_integers": np.random.randint(0, 50)})
logger.log({"nulls": None})
return logger.profile
def __generate_reference_profile():
session = get_or_create_session()
with session.logger("mytestytest", dataset_timestamp=datetime.datetime(2021, 6, 2)) as logger:
for _ in range(5):
logger.log({"uniform_integers": np.random.randint(0, 50)})
logger.log({"nulls": None})
return logger.profile
def __generate_categorical_target_profile():
session = get_or_create_session()
credit_cards = pd.DataFrame(
[
{"credit_card": "3714-496353-98431"},
{"credit_card": "3787 344936 71000"},
{"credit_card": "3056 930902 5904"},
{"credit_card": "3065 133242 2899"},
]
)
return session.log_dataframe(credit_cards, "test.data")
def __generate_categorical_reference_profile():
session = get_or_create_session()
credit_cards = pd.DataFrame(
[
{"credit_card": "6011 1111 1111 1117"},
{"credit_card": "6011-0009-9013-9424"},
{"credit_card": "3530 1113 3330 0000"},
{"credit_card": "3566-0020-2036-0505"},
]
)
return session.log_dataframe(credit_cards, "test.data")
def _get_sample_dataset_constraints():
cvisc = columnValuesInSetConstraint(value_set={2, 5, 8})
ltc = ValueConstraint(Op.LT, 1)
min_gt_constraint = SummaryConstraint("min", Op.GT, value=100)
max_le_constraint = SummaryConstraint("max", Op.LE, value=5)
set1 = set(["col1", "col2"])
columns_match_constraint = columnsMatchSetConstraint(set1)
val_set = {(1, 2), (3, 5)}
col_set = ["A", "B"]
mcv_constraints = [
columnValuesUniqueWithinRow(column_A="A", verbose=True),
columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set=val_set),
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value=100),
]
return DatasetConstraints(
None,
value_constraints={"annual_inc": [cvisc, ltc]},
summary_constraints={"annual_inc": [max_le_constraint, min_gt_constraint]},
table_shape_constraints=[columns_match_constraint],
multi_column_value_constraints=mcv_constraints,
)
def test_notebook_profile_visualizer_set_profiles():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
def test_summary_drift_report_without_preferred_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.summary_drift_report()
def test_summary_drift_report_with_preferred_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.summary_drift_report()
def test_feature_statistics_not_passing_profile_type():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.feature_statistics("uniform_integers")
def test_feature_statistics_passing_profile_type():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.feature_statistics("uniform_integers", "target")
def test_feature_statistics_passing_profile_type_and_prefered_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.feature_statistics("uniform_integers", "target", "1000px")
def test_download_passing_all_arguments(tmpdir):
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
download = viz.download(viz.summary_drift_report(), tmpdir, html_file_name="foo")
assert os.path.exists(tmpdir + "/foo.html")
def test_constraints_report_without_preferred_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
dc = _get_sample_dataset_constraints()
viz.constraints_report(dc)
def test_constraints_report_with_preferred_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
dc = _get_sample_dataset_constraints()
viz.constraints_report(dc, preferred_cell_height="1000px")
def test_double_histogram_without_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.double_histogram("uniform_integers")
def test_double_histogram_with_height():
target_profile = __generate_target_profile()
reference_profile = __generate_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.double_histogram("uniform_integers", "1000px")
def test_distribution_chart_without_height():
target_profile = __generate_categorical_target_profile()
reference_profile = __generate_categorical_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.distribution_chart("credit_card")
def test_distribution_chart_with_height():
target_profile = __generate_categorical_target_profile()
reference_profile = __generate_categorical_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.distribution_chart("credit_card", "1000px")
def test_difference_distribution_chart_without_height():
target_profile = __generate_categorical_target_profile()
reference_profile = __generate_categorical_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.difference_distribution_chart("credit_card")
def test_difference_distribution_chart_with_height():
target_profile = __generate_categorical_target_profile()
reference_profile = __generate_categorical_reference_profile()
viz = NotebookProfileVisualizer()
viz.set_profiles(target_profile=target_profile, reference_profile=reference_profile)
viz.difference_distribution_chart("credit_card", "1000px")
| [
"whylogs.viz.NotebookProfileVisualizer",
"whylogs.core.statistics.constraints.ValueConstraint",
"whylogs.core.statistics.constraints.columnPairValuesInSetConstraint",
"whylogs.core.statistics.constraints.DatasetConstraints",
"whylogs.core.statistics.constraints.SummaryConstraint",
"whylogs.get_or_create_s... | [((524, 547), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (545, 547), False, 'from whylogs import get_or_create_session\n'), ((870, 893), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (891, 893), False, 'from whylogs import get_or_create_session\n'), ((1224, 1247), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (1245, 1247), False, 'from whylogs import get_or_create_session\n'), ((1267, 1440), 'pandas.DataFrame', 'pd.DataFrame', (["[{'credit_card': '3714-496353-98431'}, {'credit_card': '3787 344936 71000'},\n {'credit_card': '3056 930902 5904'}, {'credit_card': '3065 133242 2899'}]"], {}), "([{'credit_card': '3714-496353-98431'}, {'credit_card':\n '3787 344936 71000'}, {'credit_card': '3056 930902 5904'}, {\n 'credit_card': '3065 133242 2899'}])\n", (1279, 1440), True, 'import pandas as pd\n'), ((1629, 1652), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (1650, 1652), False, 'from whylogs import get_or_create_session\n'), ((1672, 1855), 'pandas.DataFrame', 'pd.DataFrame', (["[{'credit_card': '6011 1111 1111 1117'}, {'credit_card':\n '6011-0009-9013-9424'}, {'credit_card': '3530 1113 3330 0000'}, {\n 'credit_card': '3566-0020-2036-0505'}]"], {}), "([{'credit_card': '6011 1111 1111 1117'}, {'credit_card':\n '6011-0009-9013-9424'}, {'credit_card': '3530 1113 3330 0000'}, {\n 'credit_card': '3566-0020-2036-0505'}])\n", (1684, 1855), True, 'import pandas as pd\n'), ((2033, 2081), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': '{2, 5, 8}'}), '(value_set={2, 5, 8})\n', (2060, 2081), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2092, 2117), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (2107, 2117), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2143, 2185), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GT'], {'value': '(100)'}), "('min', Op.GT, value=100)\n", (2160, 2185), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2210, 2250), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""max"""', 'Op.LE'], {'value': '(5)'}), "('max', Op.LE, value=5)\n", (2227, 2250), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2316, 2347), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', (['set1'], {}), '(set1)\n', (2341, 2347), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2685, 2945), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'annual_inc': [cvisc, ltc]}", 'summary_constraints': "{'annual_inc': [max_le_constraint, min_gt_constraint]}", 'table_shape_constraints': '[columns_match_constraint]', 'multi_column_value_constraints': 'mcv_constraints'}), "(None, value_constraints={'annual_inc': [cvisc, ltc]},\n summary_constraints={'annual_inc': [max_le_constraint,\n min_gt_constraint]}, table_shape_constraints=[columns_match_constraint],\n multi_column_value_constraints=mcv_constraints)\n", (2703, 2945), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3150, 3177), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (3175, 3177), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((3441, 3468), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (3466, 3468), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((3760, 3787), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (3785, 3787), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((4080, 4107), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (4105, 4107), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((4412, 4439), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (4437, 4439), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((4774, 4801), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (4799, 4801), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((5123, 5150), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (5148, 5150), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((5338, 5374), 'os.path.exists', 'os.path.exists', (["(tmpdir + '/foo.html')"], {}), "(tmpdir + '/foo.html')\n", (5352, 5374), False, 'import os\n'), ((5547, 5574), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (5572, 5574), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((5907, 5934), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (5932, 5934), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((6290, 6317), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (6315, 6317), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((6609, 6636), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (6634, 6636), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((6967, 6994), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (6992, 6994), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((7309, 7336), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (7334, 7336), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((7675, 7702), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (7700, 7702), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((8039, 8066), 'whylogs.viz.NotebookProfileVisualizer', 'NotebookProfileVisualizer', ([], {}), '()\n', (8064, 8066), False, 'from whylogs.viz import NotebookProfileVisualizer\n'), ((2437, 2492), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""', 'verbose': '(True)'}), "(column_A='A', verbose=True)\n", (2464, 2492), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2502, 2580), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': 'val_set'}), "(column_A='A', column_B='B', value_set=val_set)\n", (2533, 2580), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2590, 2665), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '(100)'}), '(columns=col_set, value=100)\n', (2637, 2665), False, 'from whylogs.core.statistics.constraints import DatasetConstraints, Op, SummaryConstraint, ValueConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnValuesInSetConstraint, columnValuesUniqueWithinRow, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((606, 635), 'datetime.datetime', 'datetime.datetime', (['(2021)', '(6)', '(2)'], {}), '(2021, 6, 2)\n', (623, 635), False, 'import datetime\n'), ((952, 981), 'datetime.datetime', 'datetime.datetime', (['(2021)', '(6)', '(2)'], {}), '(2021, 6, 2)\n', (969, 981), False, 'import datetime\n'), ((719, 743), 'numpy.random.randint', 'np.random.randint', (['(0)', '(50)'], {}), '(0, 50)\n', (736, 743), True, 'import numpy as np\n'), ((1065, 1089), 'numpy.random.randint', 'np.random.randint', (['(0)', '(50)'], {}), '(0, 50)\n', (1082, 1089), True, 'import numpy as np\n')] |
import shutil
from whylogs.app.session import session_from_config
from whylogs.app.config import SessionConfig, WriterConfig
from PIL import Image
def test_log_image(tmpdir, image_files):
output_path = tmpdir.mkdir("whylogs")
shutil.rmtree(output_path)
writer_config = WriterConfig("local", ["protobuf"], output_path.realpath())
yaml_data = writer_config.to_yaml()
WriterConfig.from_yaml(yaml_data)
session_config = SessionConfig(
"project", "pipeline", writers=[writer_config])
session = session_from_config(session_config)
with session.logger("image_test") as logger:
for image_file_path in image_files:
logger.log_image(image_file_path)
profile = logger.profile
columns = profile.columns
assert len(columns) == 19
shutil.rmtree(output_path)
def test_log_pil_image(tmpdir, image_files):
output_path = tmpdir.mkdir("whylogs")
shutil.rmtree(output_path)
writer_config = WriterConfig("local", ["protobuf"], output_path.realpath())
yaml_data = writer_config.to_yaml()
WriterConfig.from_yaml(yaml_data)
session_config = SessionConfig(
"project", "pipeline", writers=[writer_config])
session = session_from_config(session_config)
with session.logger("image_pil_test", with_rotation_time="s", cache_size=1) as logger:
for image_file_path in image_files:
img = Image.open(image_file_path)
logger.log_image(img)
profile = logger.profile
columns = profile.columns
assert len(columns) == 19
shutil.rmtree(output_path)
| [
"whylogs.app.session.session_from_config",
"whylogs.app.config.WriterConfig.from_yaml",
"whylogs.app.config.SessionConfig"
] | [((236, 262), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (249, 262), False, 'import shutil\n'), ((387, 420), 'whylogs.app.config.WriterConfig.from_yaml', 'WriterConfig.from_yaml', (['yaml_data'], {}), '(yaml_data)\n', (409, 420), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((443, 504), 'whylogs.app.config.SessionConfig', 'SessionConfig', (['"""project"""', '"""pipeline"""'], {'writers': '[writer_config]'}), "('project', 'pipeline', writers=[writer_config])\n", (456, 504), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((529, 564), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (548, 564), False, 'from whylogs.app.session import session_from_config\n'), ((812, 838), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (825, 838), False, 'import shutil\n'), ((932, 958), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (945, 958), False, 'import shutil\n'), ((1083, 1116), 'whylogs.app.config.WriterConfig.from_yaml', 'WriterConfig.from_yaml', (['yaml_data'], {}), '(yaml_data)\n', (1105, 1116), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((1139, 1200), 'whylogs.app.config.SessionConfig', 'SessionConfig', (['"""project"""', '"""pipeline"""'], {'writers': '[writer_config]'}), "('project', 'pipeline', writers=[writer_config])\n", (1152, 1200), False, 'from whylogs.app.config import SessionConfig, WriterConfig\n'), ((1225, 1260), 'whylogs.app.session.session_from_config', 'session_from_config', (['session_config'], {}), '(session_config)\n', (1244, 1260), False, 'from whylogs.app.session import session_from_config\n'), ((1584, 1610), 'shutil.rmtree', 'shutil.rmtree', (['output_path'], {}), '(output_path)\n', (1597, 1610), False, 'import shutil\n'), ((1416, 1443), 'PIL.Image.open', 'Image.open', (['image_file_path'], {}), '(image_file_path)\n', (1426, 1443), False, 'from PIL import Image\n')] |
from whylogs.core.datasetprofile import DatasetProfile
def test_track_null_item():
prof = DatasetProfile("name")
prof.track("column_name", 1)
prof = DatasetProfile("name")
prof.track("column_name", None)
assert prof.flat_summary()["summary"]["column"][0] == "column_name"
assert prof.flat_summary()["summary"]["null_count"][0] == 1
prof.track("column_name", None)
assert prof.flat_summary()["summary"]["null_count"][0] == 2
assert prof.flat_summary()["summary"]["column"][0] == "column_name"
| [
"whylogs.core.datasetprofile.DatasetProfile"
] | [((98, 120), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""name"""'], {}), "('name')\n", (112, 120), False, 'from whylogs.core.datasetprofile import DatasetProfile\n'), ((165, 187), 'whylogs.core.datasetprofile.DatasetProfile', 'DatasetProfile', (['"""name"""'], {}), "('name')\n", (179, 187), False, 'from whylogs.core.datasetprofile import DatasetProfile\n')] |
from whylogs.core.metrics.model_metrics import ModelMetrics
def tests_model_metrics():
mod_met = ModelMetrics()
targets_1 = ["cat", "dog", "pig"]
predictions_1 = ["cat", "dog", "dog"]
scores_1 = [0.1, 0.2, 0.4]
expected_1 = [[1, 0, 0], [0, 1, 1], [0, 0, 0]]
mod_met.compute_confusion_matrix(predictions_1, targets_1, scores_1)
print(mod_met.confusion_matrix.labels)
for idx, value in enumerate(mod_met.confusion_matrix.labels):
for jdx, value_2 in enumerate(mod_met.confusion_matrix.labels):
print(idx, jdx)
assert mod_met.confusion_matrix.confusion_matrix[idx,
jdx].floats.count == expected_1[idx][jdx]
def tests_model_metrics_to_protobuf():
mod_met = ModelMetrics()
targets_1 = ["cat", "dog", "pig"]
predictions_1 = ["cat", "dog", "dog"]
scores_1 = [0.1, 0.2, 0.4]
expected_1 = [[1, 0, 0], [0, 1, 1], [0, 0, 0]]
mod_met.compute_confusion_matrix(predictions_1, targets_1, scores_1)
message = mod_met.to_protobuf()
ModelMetrics.from_protobuf(message)
def test_merge_none():
metrics = ModelMetrics()
metrics.merge(None)
def test_merge_metrics_with_none_confusion_matrix():
metrics = ModelMetrics()
other = ModelMetrics()
other.confusion_matrix = None
metrics.merge(other)
| [
"whylogs.core.metrics.model_metrics.ModelMetrics",
"whylogs.core.metrics.model_metrics.ModelMetrics.from_protobuf"
] | [((103, 117), 'whylogs.core.metrics.model_metrics.ModelMetrics', 'ModelMetrics', ([], {}), '()\n', (115, 117), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n'), ((790, 804), 'whylogs.core.metrics.model_metrics.ModelMetrics', 'ModelMetrics', ([], {}), '()\n', (802, 804), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n'), ((1085, 1120), 'whylogs.core.metrics.model_metrics.ModelMetrics.from_protobuf', 'ModelMetrics.from_protobuf', (['message'], {}), '(message)\n', (1111, 1120), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n'), ((1160, 1174), 'whylogs.core.metrics.model_metrics.ModelMetrics', 'ModelMetrics', ([], {}), '()\n', (1172, 1174), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n'), ((1268, 1282), 'whylogs.core.metrics.model_metrics.ModelMetrics', 'ModelMetrics', ([], {}), '()\n', (1280, 1282), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n'), ((1295, 1309), 'whylogs.core.metrics.model_metrics.ModelMetrics', 'ModelMetrics', ([], {}), '()\n', (1307, 1309), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n')] |
import time
import pandas as pd
from whylogs import get_or_create_session
if __name__ == "__main__":
df = pd.read_csv("data/lending-club-accepted-10.csv")
session = get_or_create_session()
with session.logger("test", with_rotation_time="s", cache_size=1) as logger:
logger.log_dataframe(df)
time.sleep(2)
logger.log_dataframe(df)
logger.log_dataframe(df)
time.sleep(2)
logger.log_dataframe(df)
| [
"whylogs.get_or_create_session"
] | [((113, 161), 'pandas.read_csv', 'pd.read_csv', (['"""data/lending-club-accepted-10.csv"""'], {}), "('data/lending-club-accepted-10.csv')\n", (124, 161), True, 'import pandas as pd\n'), ((177, 200), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (198, 200), False, 'from whylogs import get_or_create_session\n'), ((323, 336), 'time.sleep', 'time.sleep', (['(2)'], {}), '(2)\n', (333, 336), False, 'import time\n'), ((411, 424), 'time.sleep', 'time.sleep', (['(2)'], {}), '(2)\n', (421, 424), False, 'import time\n')] |
import numpy as np
from whylogs.core.metrics.model_metrics import ModelMetrics
from whylogs.proto import ModelProfileMessage, ModelType
SUPPORTED_TYPES = ("binary", "multiclass")
class ModelProfile:
"""
Model Class for sketch metrics for model outputs
Attributes
----------
metrics : ModelMetrics
the model metrics object
model_type : ModelType
Type of mode, CLASSIFICATION, REGRESSION, UNKNOWN, etc.
output_fields : list
list of fields that map to model outputs
"""
def __init__(self, output_fields=None, metrics: ModelMetrics = None):
super().__init__()
if output_fields is None:
output_fields = []
self.output_fields = output_fields
if metrics is None:
metrics = ModelMetrics()
self.metrics = metrics
def add_output_field(self, field: str):
if field not in self.output_fields:
self.output_fields.append(field)
def compute_metrics(
self,
targets,
predictions,
scores=None,
model_type: ModelType = None,
target_field=None,
prediction_field=None,
score_field=None,
):
"""
Compute and track metrics for confusion_matrix
Parameters
----------
targets : List
targets (or actuals) for validation, if these are floats it is assumed the model is a regression type model
predictions : List
predictions (or inferred values)
scores : List, optional
associated scores for each prediction (for binary and multiclass problems)
target_field : str, optional
prediction_field : str, optional
score_field : str, optional (for binary and multiclass problems)
Raises
------
NotImplementedError
"""
metric_type = self.metrics.init_or_get_model_type(scores)
if metric_type == ModelType.REGRESSION:
self.metrics.compute_regression_metrics(
predictions=predictions,
targets=targets,
target_field=target_field,
prediction_field=prediction_field,
)
elif metric_type == ModelType.CLASSIFICATION:
# if score are not present set them to 1.
if scores is None:
scores = np.ones(len(targets))
scores = np.array(scores)
# compute confusion_matrix
self.metrics.compute_confusion_matrix(
predictions=predictions,
targets=targets,
scores=scores,
target_field=target_field,
prediction_field=prediction_field,
score_field=score_field,
)
else:
raise NotImplementedError(f"Model type {metric_type} not supported yet")
def to_protobuf(self):
return ModelProfileMessage(output_fields=self.output_fields, metrics=self.metrics.to_protobuf())
@classmethod
def from_protobuf(cls, message: ModelProfileMessage):
# convert google.protobuf.pyext._message.RepeatedScalarContainer to a list
output_fields = [f for f in message.output_fields]
return ModelProfile(
output_fields=output_fields,
metrics=ModelMetrics.from_protobuf(message.metrics),
)
def merge(self, model_profile):
if model_profile is None:
return self
output_fields = list(set(self.output_fields + model_profile.output_fields))
metrics = self.metrics.merge(model_profile.metrics)
return ModelProfile(output_fields=output_fields, metrics=metrics)
| [
"whylogs.core.metrics.model_metrics.ModelMetrics",
"whylogs.core.metrics.model_metrics.ModelMetrics.from_protobuf"
] | [((789, 803), 'whylogs.core.metrics.model_metrics.ModelMetrics', 'ModelMetrics', ([], {}), '()\n', (801, 803), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n'), ((2422, 2438), 'numpy.array', 'np.array', (['scores'], {}), '(scores)\n', (2430, 2438), True, 'import numpy as np\n'), ((3324, 3367), 'whylogs.core.metrics.model_metrics.ModelMetrics.from_protobuf', 'ModelMetrics.from_protobuf', (['message.metrics'], {}), '(message.metrics)\n', (3350, 3367), False, 'from whylogs.core.metrics.model_metrics import ModelMetrics\n')] |
import atexit
import datetime
from logging import getLogger
from typing import Union
import numpy as np
import pandas as pd
import whylogs
from whylogs.app.config import WHYLOGS_YML
logger = getLogger(__name__)
PyFuncOutput = Union[pd.DataFrame, pd.Series, np.ndarray, list]
class ModelWrapper(object):
def __init__(self, model):
self.model = model
self.session = whylogs.get_or_create_session("/opt/ml/model/" + WHYLOGS_YML)
self.ylog = self.create_logger()
self.last_upload_time = datetime.datetime.now(datetime.timezone.utc)
atexit.register(self.ylog.close)
def create_logger(self):
# TODO: support different rotation mode and support custom name here
return self.session.logger("live", with_rotation_time="m")
def predict(self, data: pd.DataFrame) -> PyFuncOutput:
"""
Wrapper around https://www.mlflow.org/docs/latest/_modules/mlflow/pyfunc.html#PyFuncModel.predict
This allows us to capture input and predictions into whylogs
"""
self.ylog.log_dataframe(data)
output = self.model.predict(data)
if isinstance(output, np.ndarray) or isinstance(output, pd.Series):
data = pd.DataFrame(data=output, columns=["prediction"])
self.ylog.log_dataframe(data)
elif isinstance(output, pd.DataFrame):
self.ylog.log_dataframe(output)
elif isinstance(output, list):
for e in output:
self.ylog.log(feature_name="prediction", value=e)
else:
logger.warning("Unsupported output type: %s", type(output))
return output
| [
"whylogs.get_or_create_session"
] | [((194, 213), 'logging.getLogger', 'getLogger', (['__name__'], {}), '(__name__)\n', (203, 213), False, 'from logging import getLogger\n'), ((390, 451), 'whylogs.get_or_create_session', 'whylogs.get_or_create_session', (["('/opt/ml/model/' + WHYLOGS_YML)"], {}), "('/opt/ml/model/' + WHYLOGS_YML)\n", (419, 451), False, 'import whylogs\n'), ((525, 569), 'datetime.datetime.now', 'datetime.datetime.now', (['datetime.timezone.utc'], {}), '(datetime.timezone.utc)\n', (546, 569), False, 'import datetime\n'), ((578, 610), 'atexit.register', 'atexit.register', (['self.ylog.close'], {}), '(self.ylog.close)\n', (593, 610), False, 'import atexit\n'), ((1220, 1269), 'pandas.DataFrame', 'pd.DataFrame', ([], {'data': 'output', 'columns': "['prediction']"}), "(data=output, columns=['prediction'])\n", (1232, 1269), True, 'import pandas as pd\n')] |
import json
from whylogs.proto import DoublesMessage
from whylogs.util import protobuf
def test_message_to_dict_returns_default_values():
msg1 = DoublesMessage(min=0, max=0, sum=0, count=10)
d1 = protobuf.message_to_dict(msg1)
msg2 = DoublesMessage(count=10)
d2 = protobuf.message_to_dict(msg2)
true_val = {
"min": 0.0,
"max": 0.0,
"sum": 0.0,
"count": "10",
}
assert d1 == true_val
assert d2 == true_val
def test_message_to_dict_equals_message_to_json():
msg = DoublesMessage(min=0, max=1.0, sum=2.0, count=10)
d1 = protobuf.message_to_dict(msg)
d2 = json.loads(protobuf.message_to_json(msg))
assert d1 == d2
| [
"whylogs.util.protobuf.message_to_dict",
"whylogs.proto.DoublesMessage",
"whylogs.util.protobuf.message_to_json"
] | [((152, 197), 'whylogs.proto.DoublesMessage', 'DoublesMessage', ([], {'min': '(0)', 'max': '(0)', 'sum': '(0)', 'count': '(10)'}), '(min=0, max=0, sum=0, count=10)\n', (166, 197), False, 'from whylogs.proto import DoublesMessage\n'), ((207, 237), 'whylogs.util.protobuf.message_to_dict', 'protobuf.message_to_dict', (['msg1'], {}), '(msg1)\n', (231, 237), False, 'from whylogs.util import protobuf\n'), ((250, 274), 'whylogs.proto.DoublesMessage', 'DoublesMessage', ([], {'count': '(10)'}), '(count=10)\n', (264, 274), False, 'from whylogs.proto import DoublesMessage\n'), ((284, 314), 'whylogs.util.protobuf.message_to_dict', 'protobuf.message_to_dict', (['msg2'], {}), '(msg2)\n', (308, 314), False, 'from whylogs.util import protobuf\n'), ((537, 586), 'whylogs.proto.DoublesMessage', 'DoublesMessage', ([], {'min': '(0)', 'max': '(1.0)', 'sum': '(2.0)', 'count': '(10)'}), '(min=0, max=1.0, sum=2.0, count=10)\n', (551, 586), False, 'from whylogs.proto import DoublesMessage\n'), ((596, 625), 'whylogs.util.protobuf.message_to_dict', 'protobuf.message_to_dict', (['msg'], {}), '(msg)\n', (620, 625), False, 'from whylogs.util import protobuf\n'), ((646, 675), 'whylogs.util.protobuf.message_to_json', 'protobuf.message_to_json', (['msg'], {}), '(msg)\n', (670, 675), False, 'from whylogs.util import protobuf\n')] |
import json
from whylogs.core.summaryconverters import (
compute_chi_squared_test_p_value,
ks_test_compute_p_value,
single_quantile_from_sketch,
)
from whylogs.proto import InferredType, ReferenceDistributionDiscreteMessage
categorical_types = (InferredType.Type.STRING, InferredType.Type.BOOLEAN)
def __calculate_variance(profile_jsons, feature_name):
"""
Calculates variance for single feature
Parameters
----------
profile_jsons: Profile summary serialized json
feature_name: Name of feature
Returns
-------
variance : Calculated variance for feature
"""
feature = profile_jsons.get("columns").get(feature_name)
variance = feature.get("numberSummary").get("stddev") ** 2 if feature.get("numberSummary") is not None else 0
return variance
def __calculate_coefficient_of_variation(profile_jsons, feature_name):
"""
Calculates coefficient of variation for single feature
Parameters
----------
profile_jsons: Profile summary serialized json
feature_name: Name of feature
Returns
-------
coefficient_of_variation : Calculated coefficient of variation for feature
"""
feature = profile_jsons.get("columns").get(feature_name)
coefficient_of_variation = (
feature.get("numberSummary").get("stddev") / feature.get("numberSummary").get("mean") if feature.get("numberSummary") is not None else 0
)
return coefficient_of_variation
def __calculate_sum(profile_jsons, feature_name):
"""
Calculates sum for single feature
Parameters
----------
profile_jsons: Profile summary serialized json
feature_name: Name of feature
Returns
-------
coefficient_of_variation : Calculated sum for feature
"""
feature = profile_jsons.get("columns").get(feature_name)
feature_number_summary = feature.get("numberSummary")
if feature_number_summary:
sum = feature_number_summary.get("mean") * int(feature.get("counters").get("count"))
else:
sum = 0
return sum
def __calculate_quantile_statistics(feature, profile_jsons, feature_name):
"""
Calculates sum for single feature
Parameters
----------
profile_jsons: Profile summary serialized json
feature_name: Name of feature
Returns
-------
coefficient_of_variation : Calculated sum for feature
"""
quantile_statistics = {}
feature_number_summary = profile_jsons.get("columns").get(feature_name).get("numberSummary")
if feature.number_tracker and feature.number_tracker.histogram.get_n() > 0:
kll_sketch = feature.number_tracker.histogram
quantile_statistics["fifth_percentile"] = single_quantile_from_sketch(kll_sketch, quantile=0.05).quantile
quantile_statistics["q1"] = single_quantile_from_sketch(kll_sketch, quantile=0.25).quantile
quantile_statistics["median"] = single_quantile_from_sketch(kll_sketch, quantile=0.5).quantile
quantile_statistics["q3"] = single_quantile_from_sketch(kll_sketch, quantile=0.75).quantile
quantile_statistics["ninety_fifth_percentile"] = single_quantile_from_sketch(kll_sketch, quantile=0.95).quantile
quantile_statistics["range"] = feature_number_summary.get("max") - feature_number_summary.get("min")
quantile_statistics["iqr"] = quantile_statistics["q3"] - quantile_statistics["q1"]
return quantile_statistics
def add_drift_val_to_ref_profile_json(target_profile, reference_profile, reference_profile_json):
"""
Calculates drift value for reference profile based on profile type and inserts that data into reference profile
Parameters
----------
target_profile: Target profile
reference_profile: Reference profile
reference_profile_json: Reference profile summary serialized json
Returns
-------
reference_profile_json : Reference profile summary serialized json with drift value for every feature
"""
observations = 0
missing_cells = 0
total_count = 0
for target_col_name in target_profile.columns.keys():
target_col = target_profile.columns[target_col_name]
observations += target_col.counters.to_protobuf().count
null_count = target_col.to_summary().counters.null_count.value
missing_cells += null_count if null_count else 0
total_count += target_col.to_summary().counters.count
if target_col_name in reference_profile.columns:
ref_col = reference_profile.columns[target_col_name]
target_type = target_col.schema_tracker.to_summary().inferred_type.type
unique_count = target_col.to_summary().unique_count
ref_type = ref_col.schema_tracker.to_summary().inferred_type.type
if all([type == InferredType.FRACTIONAL or type == InferredType.INTEGRAL for type in (ref_type, target_type)]):
target_kll_sketch = target_col.number_tracker.histogram
reference_kll_sketch = ref_col.number_tracker.histogram
ks_p_value = ks_test_compute_p_value(target_kll_sketch, reference_kll_sketch)
reference_profile_json["columns"][target_col_name]["drift_from_ref"] = ks_p_value.ks_test
elif all([type in categorical_types for type in (ref_type, target_type)]) and ref_type == target_type:
target_frequent_items_sketch = target_col.frequent_items
reference_frequent_items_sketch = ref_col.frequent_items
if any([msg.to_summary() is None for msg in (target_frequent_items_sketch, reference_frequent_items_sketch)]):
continue
target_total_count = target_col.counters.count
target_message = ReferenceDistributionDiscreteMessage(
frequent_items=target_frequent_items_sketch.to_summary(), unique_count=unique_count, total_count=target_total_count
)
ref_total_count = ref_col.counters.count
reference_message = ReferenceDistributionDiscreteMessage(
frequent_items=reference_frequent_items_sketch.to_summary(), total_count=ref_total_count
)
chi_squared_p_value = compute_chi_squared_test_p_value(target_message, reference_message)
if chi_squared_p_value.chi_squared_test is not None:
reference_profile_json["columns"][target_col_name]["drift_from_ref"] = chi_squared_p_value.chi_squared_test
else:
reference_profile_json["columns"][target_col_name]["drift_from_ref"] = None
reference_profile_json["properties"]["observations"] = observations
reference_profile_json["properties"]["missing_cells"] = missing_cells
reference_profile_json["properties"]["total_count"] = total_count
reference_profile_json["properties"]["missing_percentage"] = (missing_cells / total_count) * 100 if total_count else 0
return reference_profile_json
def add_feature_statistics(feature, profile_json, feature_name):
"""
Calculates different values for feature statistics
Parameters
----------
feature:
profile_json: Profile summary serialized json
feature_name: Name of feature
Returns
-------
feature: Feature data with appended values for statistics report
"""
profile_features = json.loads(profile_json)
feature_with_statistics = {}
feature_with_statistics["properties"] = profile_features.get("properties")
feature_with_statistics[feature_name] = profile_features.get("columns").get(feature_name)
feature_with_statistics[feature_name]["sum"] = __calculate_sum(profile_features, feature_name)
feature_with_statistics[feature_name]["variance"] = __calculate_variance(profile_features, feature_name)
feature_with_statistics[feature_name]["coefficient_of_variation"] = __calculate_coefficient_of_variation(profile_features, feature_name)
feature_with_statistics[feature_name]["quantile_statistics"] = __calculate_quantile_statistics(feature, profile_features, feature_name)
return feature_with_statistics
| [
"whylogs.core.summaryconverters.compute_chi_squared_test_p_value",
"whylogs.core.summaryconverters.single_quantile_from_sketch",
"whylogs.core.summaryconverters.ks_test_compute_p_value"
] | [((7343, 7367), 'json.loads', 'json.loads', (['profile_json'], {}), '(profile_json)\n', (7353, 7367), False, 'import json\n'), ((2689, 2743), 'whylogs.core.summaryconverters.single_quantile_from_sketch', 'single_quantile_from_sketch', (['kll_sketch'], {'quantile': '(0.05)'}), '(kll_sketch, quantile=0.05)\n', (2716, 2743), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((2789, 2843), 'whylogs.core.summaryconverters.single_quantile_from_sketch', 'single_quantile_from_sketch', (['kll_sketch'], {'quantile': '(0.25)'}), '(kll_sketch, quantile=0.25)\n', (2816, 2843), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((2893, 2946), 'whylogs.core.summaryconverters.single_quantile_from_sketch', 'single_quantile_from_sketch', (['kll_sketch'], {'quantile': '(0.5)'}), '(kll_sketch, quantile=0.5)\n', (2920, 2946), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((2992, 3046), 'whylogs.core.summaryconverters.single_quantile_from_sketch', 'single_quantile_from_sketch', (['kll_sketch'], {'quantile': '(0.75)'}), '(kll_sketch, quantile=0.75)\n', (3019, 3046), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((3113, 3167), 'whylogs.core.summaryconverters.single_quantile_from_sketch', 'single_quantile_from_sketch', (['kll_sketch'], {'quantile': '(0.95)'}), '(kll_sketch, quantile=0.95)\n', (3140, 3167), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((5030, 5094), 'whylogs.core.summaryconverters.ks_test_compute_p_value', 'ks_test_compute_p_value', (['target_kll_sketch', 'reference_kll_sketch'], {}), '(target_kll_sketch, reference_kll_sketch)\n', (5053, 5094), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n'), ((6203, 6270), 'whylogs.core.summaryconverters.compute_chi_squared_test_p_value', 'compute_chi_squared_test_p_value', (['target_message', 'reference_message'], {}), '(target_message, reference_message)\n', (6235, 6270), False, 'from whylogs.core.summaryconverters import compute_chi_squared_test_p_value, ks_test_compute_p_value, single_quantile_from_sketch\n')] |
import math
from whylogs.proto import DoublesMessage
class FloatTracker:
"""
Track statistics for floating point numbers
Parameters
---------
min : float
Current min value
max : float
Current max value
sum : float
Sum of the numbers
count : int
Total count of numbers
"""
def __init__(
self,
min: float = None,
max: float = None,
sum: float = None,
count: int = None,
):
if min is None:
min = math.inf
if max is None:
max = -math.inf
if sum is None:
sum = 0.0
if count is None:
count = 0
self.min = min
self.max = max
self.sum = sum
self.count = count
def update(self, value: float):
"""
Add a number to the tracking statistics
"""
# Python: force the value to be a float
value = float(value)
if value > self.max:
self.max = value
if value < self.min:
self.min = value
self.count += 1
self.sum += value
def add_integers(self, tracker):
"""
Copy data from a IntTracker into this object, overwriting the current
values.
Parameters
----------
tracker : IntTracker
"""
if tracker is not None and tracker.count != 0:
# Copy data over from the ints, casting as floats
self.min = float(tracker.min)
self.max = float(tracker.max)
self.sum = float(tracker.sum)
self.count = tracker.count
def mean(self):
"""
Calculate the current mean
"""
try:
return self.sum / self.count
except ZeroDivisionError:
return math.nan
def merge(self, other):
"""
Merge this tracker with another.
Parameters
----------
other : FloatTracker
The other float tracker
Returns
-------
merged : FloatTracker
A new float tracker
"""
this_copy = FloatTracker(self.min, self.max, self.sum, self.count)
if other.min < this_copy.min:
this_copy.min = other.min
if other.max > this_copy.max:
this_copy.max = other.max
this_copy.sum += other.sum
this_copy.count += other.count
return this_copy
def to_protobuf(self):
"""
Return the object serialized as a protobuf message
Returns
-------
message : DoublesMessage
"""
return DoublesMessage(count=self.count, max=self.max, min=self.min, sum=self.sum)
@staticmethod
def from_protobuf(message):
"""
Load from a protobuf message
Returns
-------
number_tracker : FloatTracker
"""
return FloatTracker(min=message.min, max=message.max, sum=message.sum, count=message.count)
| [
"whylogs.proto.DoublesMessage"
] | [((2650, 2724), 'whylogs.proto.DoublesMessage', 'DoublesMessage', ([], {'count': 'self.count', 'max': 'self.max', 'min': 'self.min', 'sum': 'self.sum'}), '(count=self.count, max=self.max, min=self.min, sum=self.sum)\n', (2664, 2724), False, 'from whylogs.proto import DoublesMessage\n')] |
import time
import pandas as pd
from whylogs import get_or_create_session
if __name__ == "__main__":
df = pd.read_csv("data/lending_club_1000.csv")
print(df.head())
session = get_or_create_session()
profile_seg = None
# example with 4 seperate loggers
# logger with two specific segments
with session.logger(
"segment",
segments=[
[{"key": "home_ownership", "value": "RENT"}],
[{"key": "home_ownership", "value": "MORTGAGE"}],
],
cache_size=1,
) as logger:
print(session.get_config())
logger.log_dataframe(df)
profile_seg = logger.segmented_profiles
# logger with rotation with time and single key segment
with session.logger(
"rotated_segments",
segments=["home_ownership"],
with_rotation_time="s",
cache_size=1,
) as logger:
print(session.get_config())
logger.log_dataframe(df)
time.sleep(2)
logger.log_dataframe(df)
profile_seg = logger.segmented_profiles
# logger with rotation with time and two keys segment
with session.logger(
"rotated_seg_two_keys",
segments=["home_ownership", "sub_grade"],
with_rotation_time="s",
cache_size=1,
) as logger:
print(session.get_config())
logger.log_csv("data/lending_club_1000.csv")
time.sleep(2)
logger.log_dataframe(df)
profile_seg = logger.segmented_profiles
# logger
with session.logger(
"rotated_seg_two_keys",
segments=["home_ownership"],
profile_full_dataset=True,
with_rotation_time="s",
cache_size=1,
) as logger:
print(session.get_config())
logger.log_csv("data/lending_club_1000.csv")
time.sleep(2)
logger.log_dataframe(df)
profile_seg = logger.segmented_profiles
full_profile = logger.profile
# each segment profile has a tag associated with the segment
for k, prof in profile_seg.items():
print(prof.tags)
| [
"whylogs.get_or_create_session"
] | [((113, 154), 'pandas.read_csv', 'pd.read_csv', (['"""data/lending_club_1000.csv"""'], {}), "('data/lending_club_1000.csv')\n", (124, 154), True, 'import pandas as pd\n'), ((190, 213), 'whylogs.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (211, 213), False, 'from whylogs import get_or_create_session\n'), ((966, 979), 'time.sleep', 'time.sleep', (['(2)'], {}), '(2)\n', (976, 979), False, 'import time\n'), ((1395, 1408), 'time.sleep', 'time.sleep', (['(2)'], {}), '(2)\n', (1405, 1408), False, 'import time\n'), ((1801, 1814), 'time.sleep', 'time.sleep', (['(2)'], {}), '(2)\n', (1811, 1814), False, 'import time\n')] |
import json
from logging import getLogger
import numpy as np
import pandas as pd
import pytest
from whylogs.app.config import load_config
from whylogs.app.session import session_from_config
from whylogs.core.statistics.constraints import (
MAX_SET_DISPLAY_MESSAGE_LENGTH,
DatasetConstraints,
MultiColumnValueConstraint,
MultiColumnValueConstraints,
Op,
SummaryConstraint,
SummaryConstraints,
ValueConstraint,
ValueConstraints,
_matches_json_schema,
_summary_funcs1,
_value_funcs,
approximateEntropyBetweenConstraint,
columnChiSquaredTestPValueGreaterThanConstraint,
columnExistsConstraint,
columnKLDivergenceLessThanConstraint,
columnMostCommonValueInSetConstraint,
columnPairValuesInSetConstraint,
columnsMatchSetConstraint,
columnUniqueValueCountBetweenConstraint,
columnUniqueValueProportionBetweenConstraint,
columnValuesAGreaterThanBConstraint,
columnValuesInSetConstraint,
columnValuesNotNullConstraint,
columnValuesTypeEqualsConstraint,
columnValuesTypeInSetConstraint,
columnValuesUniqueWithinRow,
containsCreditCardConstraint,
containsEmailConstraint,
containsSSNConstraint,
containsURLConstraint,
dateUtilParseableConstraint,
distinctValuesContainSetConstraint,
distinctValuesEqualSetConstraint,
distinctValuesInSetConstraint,
jsonParseableConstraint,
matchesJsonSchemaConstraint,
maxBetweenConstraint,
meanBetweenConstraint,
minBetweenConstraint,
missingValuesProportionBetweenConstraint,
numberOfRowsConstraint,
parametrizedKSTestPValueGreaterThanConstraint,
quantileBetweenConstraint,
stddevBetweenConstraint,
strftimeFormatConstraint,
stringLengthBetweenConstraint,
stringLengthEqualConstraint,
sumOfRowValuesOfMultipleColumnsEqualsConstraint,
)
from whylogs.proto import InferredType, Op
from whylogs.util.protobuf import message_to_json
TEST_LOGGER = getLogger(__name__)
def test_value_summary_serialization():
for each_op, _ in _value_funcs.items():
if each_op == Op.APPLY_FUNC:
continue
if each_op == Op.IN:
value = ValueConstraint(each_op, {3.6})
else:
value = ValueConstraint(each_op, 3.6)
msg_value = value.to_protobuf()
json_value = json.loads(message_to_json(msg_value))
if each_op == Op.IN:
assert json_value["name"] == "value " + Op.Name(each_op) + " {3.6}"
assert json_value["valueSet"][0] == [3.6]
else:
assert json_value["name"] == "value " + Op.Name(each_op) + " 3.6"
assert pytest.approx(json_value["value"], 0.001) == 3.6
assert json_value["op"] == Op.Name(each_op)
assert json_value["verbose"] is False
for each_op, _ in _summary_funcs1.items():
if each_op in (Op.BTWN, Op.IN_SET, Op.CONTAIN_SET, Op.EQ_SET, Op.CONTAIN, Op.IN):
continue
# constraints may have an optional name
sum_constraint = SummaryConstraint("min", each_op, 300000, name="< 30K")
msg_sum_const = sum_constraint.to_protobuf()
json_summary = json.loads(message_to_json(msg_sum_const))
assert json_summary["name"] == "< 30K"
assert pytest.approx(json_summary["value"], 0.1) == 300000
assert json_summary["firstField"] == "min"
assert json_summary["op"] == str(Op.Name(each_op))
assert json_summary["verbose"] is False
def test_value_constraints(df_lending_club, local_config_path):
conforming_loan = ValueConstraint(Op.LT, 548250)
smallest_loan = ValueConstraint(Op.GT, 2500.0, verbose=True)
high_fico = ValueConstraint(Op.GT, 4000)
dc = DatasetConstraints(None, value_constraints={"loan_amnt": [conforming_loan, smallest_loan], "fico_range_high": [high_fico]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = dc.report()
assert len(report) == 2
# make sure it checked every value
for each_feat in report:
for each_constraint in each_feat[1]:
assert each_constraint[1] == 50
assert report[1][1][0][2] == 50
def test_value_constraints_pattern_match(df_lending_club, local_config_path):
regex_state_abbreviation = r"^[a-zA-Z]{2}$"
contains_state = ValueConstraint(Op.MATCH, regex_pattern=regex_state_abbreviation)
regex_date = r"^[a-zA-Z]{3}-[0-9]{4}$"
not_contains_date = ValueConstraint(Op.NOMATCH, regex_pattern=regex_date)
# just to test applying regex patterns on non-string values
contains_state_loan_amnt = ValueConstraint(Op.MATCH, regex_pattern=regex_state_abbreviation)
dc = DatasetConstraints(
None, value_constraints={"addr_state": [contains_state], "earliest_cr_line": [not_contains_date], "loan_amnt": [contains_state_loan_amnt]}
)
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = dc.report()
# checks there are constraints for 3 features
assert len(report) == 3
# make sure it checked every value
for each_feat in report:
for each_constraint in each_feat[1]:
assert each_constraint[1] == 50
# Every row should match a state abbreviation
assert report[0][1][0][2] == 0
# At least 1 should be a match w/ the given pattern (# of failures of NOMATCH = # Matches)
assert report[1][1][0][2] > 0
# Every row should be a failure, because "loan_amnt" is not a string type
assert report[2][1][0][2] == 50
def test_summary_constraints(df_lending_club, local_config_path):
non_negative = SummaryConstraint("min", Op.GE, 0)
dc = DatasetConstraints(None, summary_constraints={"annual_inc": [non_negative]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = r = profile.apply_summary_constraints()
assert len(report) == 1
# make sure it checked every value
for each_feat in report:
for each_constraint in each_feat[1]:
assert each_constraint[1] == 1
def test_value_constraints_no_merge_different_names():
constraint1 = ValueConstraint(Op.LT, 1, name="c1")
constraint2 = ValueConstraint(Op.LT, 1, name="c2")
with pytest.raises(AssertionError):
constraint1.merge(constraint2)
def test_value_constraints_no_merge_different_values():
constraint1 = ValueConstraint(Op.LT, 1)
constraint2 = ValueConstraint(Op.LT, 2)
with pytest.raises(AssertionError):
constraint1.merge(constraint2)
def test_summary_constraints_no_merge_different_names():
constraint1 = SummaryConstraint("min", Op.GE, 0, name="non-negative")
constraint2 = SummaryConstraint("min", Op.GE, 0, name="positive-number")
with pytest.raises(AssertionError):
constraint1.merge(constraint2)
def test_summary_constraints_no_merge_different_values():
constraint1 = SummaryConstraint("min", Op.GE, 1, name="GreaterThanThreshold")
constraint2 = SummaryConstraint("min", Op.GE, 2, name="GreaterThanThreshold")
with pytest.raises(AssertionError):
constraint1.merge(constraint2)
def test_value_constraints_merge():
constraint1 = ValueConstraint(Op.LT, 1)
constraint2 = ValueConstraint(Op.LT, 1)
merged = constraint1.merge(constraint2)
assert merged.report() == ("value LT 1", 0, 0), "merging unlogged constraints should not change them from initiat state"
def test_value_constraints_merge_empty():
constraint1 = ValueConstraint(Op.LT, 1)
constraint2 = None
merged = constraint1.merge(constraint2)
assert merged == constraint1, "merging empty constraints should preserve left hand side"
def test_value_constraints_with_zero_as_value():
c1 = ValueConstraint(Op.LT, 0)
json_value = json.loads(message_to_json(c1.to_protobuf()))
assert json_value["name"] == f"value {Op.Name(Op.LT)} 0"
assert pytest.approx(json_value["value"], 0.01) == 0.0
assert json_value["op"] == Op.Name(Op.LT)
assert json_value["verbose"] is False
def test_value_constraints_raw_and_coerced_types_serialize_deserialize():
pattern = r"\S+@\S+"
c1 = ValueConstraint(Op.GE, 0)
c2 = ValueConstraint(Op.MATCH, regex_pattern=pattern)
constraints = ValueConstraints([c1, c2])
constraints.update("abc")
constraints.update_typed(1)
constraints.from_protobuf(constraints.to_protobuf())
msg_const = constraints.to_protobuf()
json_val = json.loads(message_to_json(msg_const))
first_val_constraint = json_val["constraints"][0]
second_val_constraint = json_val["constraints"][1]
assert first_val_constraint["name"] == f"value {Op.Name(Op.MATCH)} {pattern}"
assert first_val_constraint["op"] == Op.Name(Op.MATCH)
assert first_val_constraint["regexPattern"] == pattern
assert first_val_constraint["verbose"] is False
assert second_val_constraint["name"] == f"value {Op.Name(Op.GE)} 0"
assert second_val_constraint["op"] == Op.Name(Op.GE)
assert pytest.approx(second_val_constraint["value"], 0.01) == 0
assert second_val_constraint["verbose"] is False
def test_value_constraints_raw_and_coerced_types_merge():
pattern = r"\S+@\S+"
c1 = ValueConstraint(Op.GE, 0)
c2 = ValueConstraint(Op.MATCH, regex_pattern=pattern)
constraints = ValueConstraints([c1, c2])
c3 = ValueConstraint(Op.GE, 0)
c4 = ValueConstraint(Op.MATCH, regex_pattern=pattern)
constraints2 = ValueConstraints([c3, c4])
merged = constraints.merge(constraints2)
json_val = json.loads(message_to_json(merged.to_protobuf()))
first_val_constraint = json_val["constraints"][0]
second_val_constraint = json_val["constraints"][1]
assert first_val_constraint["name"] == f"value {Op.Name(Op.MATCH)} {pattern}"
assert first_val_constraint["op"] == Op.Name(Op.MATCH)
assert first_val_constraint["regexPattern"] == pattern
assert first_val_constraint["verbose"] is False
assert second_val_constraint["name"] == f"value {Op.Name(Op.GE)} 0"
assert second_val_constraint["op"] == Op.Name(Op.GE)
assert pytest.approx(second_val_constraint["value"], 0.01) == 0
assert second_val_constraint["verbose"] is False
def test_value_constraints_raw_and_coerced_types_report():
pattern = r"\S+@\S+"
c1 = ValueConstraint(Op.GE, 0)
c2 = ValueConstraint(Op.MATCH, regex_pattern=pattern)
constraints = ValueConstraints({c1.name: c1, c2.name: c2})
report = constraints.report()
assert report[0][0] == f"value {Op.Name(Op.MATCH)} {pattern}"
assert report[0][1] == 0
assert report[0][2] == 0
assert report[1][0] == f"value {Op.Name(Op.GE)} 0"
assert report[1][1] == 0
assert report[1][2] == 0
def test_summary_between_serialization_deserialization():
# constraints may have an optional name
sum_constraint = SummaryConstraint("min", Op.BTWN, 0.1, 2.4)
msg_sum_const = sum_constraint.to_protobuf()
json_summary = json.loads(message_to_json(msg_sum_const))
assert json_summary["name"] == "summary min BTWN 0.1 and 2.4"
assert pytest.approx(json_summary["between"]["lowerValue"], 0.1) == 0.1
assert pytest.approx(json_summary["between"]["upperValue"], 0.1) == 2.4
assert json_summary["firstField"] == "min"
assert json_summary["op"] == str(Op.Name(Op.BTWN))
assert json_summary["verbose"] == False
sum_deser_constraint = SummaryConstraint.from_protobuf(sum_constraint.to_protobuf())
json_deser_summary = json.loads(message_to_json(sum_deser_constraint.to_protobuf()))
assert json_summary["name"] == json_deser_summary["name"]
assert pytest.approx(json_summary["between"]["lowerValue"], 0.001) == pytest.approx(json_deser_summary["between"]["lowerValue"], 0.001)
assert pytest.approx(json_summary["between"]["upperValue"], 0.001) == pytest.approx(json_deser_summary["between"]["upperValue"], 0.001)
assert json_summary["firstField"] == json_deser_summary["firstField"]
assert json_summary["op"] == json_deser_summary["op"]
assert json_summary["verbose"] == json_deser_summary["verbose"]
def test_summary_between_constraint_incompatible_parameters():
with pytest.raises(TypeError):
SummaryConstraint("min", Op.BTWN, 0.1, "stddev")
with pytest.raises(ValueError):
SummaryConstraint("min", Op.BTWN, 0.1, second_field="stddev")
with pytest.raises(ValueError):
SummaryConstraint("min", Op.BTWN, 0.1, 2.4, "stddev")
with pytest.raises(ValueError):
SummaryConstraint("min", Op.BTWN, 0.1, 2.4, third_field="stddev")
with pytest.raises(TypeError):
SummaryConstraint("stddev", Op.BTWN, second_field=2, third_field="max")
with pytest.raises(TypeError):
SummaryConstraint("stddev", Op.BTWN, 2, "max")
def _apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, between_constraint):
min_gt_constraint = SummaryConstraint("min", Op.GT, value=100)
max_le_constraint = SummaryConstraint("max", Op.LE, value=5)
dc = DatasetConstraints(None, summary_constraints={"annual_inc": [between_constraint, max_le_constraint], "loan_amnt": [min_gt_constraint]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
assert len(report) == 2
# make sure it checked every value
for each_feat in report:
for each_constraint in each_feat[1]:
assert each_constraint[1] == 1
def test_summary_between_constraints_values(df_lending_club, local_config_path):
std_dev_between = SummaryConstraint("stddev", Op.BTWN, value=100, upper_value=200)
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, std_dev_between)
def test_summary_between_constraints_fields(df_lending_club, local_config_path):
std_dev_between = SummaryConstraint("stddev", Op.BTWN, second_field="mean", third_field="max")
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, std_dev_between)
def test_summary_between_constraints_no_merge_different_values_fields():
std_dev_between1 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=200)
std_dev_between2 = SummaryConstraint("stddev", Op.BTWN, value=0.2, upper_value=200)
with pytest.raises(AssertionError):
std_dev_between1.merge(std_dev_between2)
std_dev_between1 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=200)
std_dev_between2 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=300)
with pytest.raises(AssertionError):
std_dev_between1.merge(std_dev_between2)
std_dev_between1 = SummaryConstraint("stddev", Op.BTWN, second_field="min", third_field="max")
std_dev_between2 = SummaryConstraint("stddev", Op.BTWN, second_field="mean", third_field="max")
with pytest.raises(AssertionError):
std_dev_between1.merge(std_dev_between2)
std_dev_between1 = SummaryConstraint("stddev", Op.BTWN, second_field="min", third_field="mean")
std_dev_between2 = SummaryConstraint("stddev", Op.BTWN, second_field="min", third_field="max")
with pytest.raises(AssertionError):
std_dev_between1.merge(std_dev_between2)
def test_summary_between_constraints_no_merge_different_names():
std_dev_between1 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=200, name="std dev between 1")
std_dev_between2 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=200, name="std dev between 2")
with pytest.raises(AssertionError):
std_dev_between1.merge(std_dev_between2)
def test_summary_between_constraints_merge():
std_dev_between1 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=200)
std_dev_between2 = SummaryConstraint("stddev", Op.BTWN, value=0.1, upper_value=200)
merged = std_dev_between1.merge(std_dev_between2)
pre_merge_json = json.loads(message_to_json(std_dev_between1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pytest.approx(pre_merge_json["between"]["lowerValue"], 0.001) == pytest.approx(merge_json["between"]["lowerValue"], 0.001)
assert pytest.approx(pre_merge_json["between"]["upperValue"], 0.001) == pytest.approx(merge_json["between"]["upperValue"], 0.001)
assert pre_merge_json["firstField"] == merge_json["firstField"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
def test_stddev_between_constraint_value(df_lending_club, local_config_path):
lower = 2.3
upper = 5.4
stddev_between_values = stddevBetweenConstraint(lower_value=lower, upper_value=upper)
# check if all constraints are applied
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_values)
def test_stddev_between_constraint_field(df_lending_club, local_config_path):
lower = "min"
upper = "max"
stddev_between_fields = stddevBetweenConstraint(lower_field=lower, upper_field=upper)
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_fields)
def test_stddev_between_constraint_invalid():
with pytest.raises(ValueError):
stddevBetweenConstraint(lower_value=2)
with pytest.raises(ValueError):
stddevBetweenConstraint(lower_field="min")
with pytest.raises(TypeError):
stddevBetweenConstraint(lower_value="2", upper_value=2)
with pytest.raises(TypeError):
stddevBetweenConstraint(lower_field="max", upper_field=2)
def test_mean_between_constraint_value(df_lending_club, local_config_path):
lower = 2.3
upper = 5.4
stddev_between_values = meanBetweenConstraint(lower_value=lower, upper_value=upper)
# check if all constraints are applied
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_values)
def test_mean_between_constraint_field(df_lending_club, local_config_path):
lower = "min"
upper = "max"
stddev_between_fields = meanBetweenConstraint(lower_field=lower, upper_field=upper)
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_fields)
def test_mean_between_constraint_invalid():
with pytest.raises(ValueError):
meanBetweenConstraint(lower_value=2)
with pytest.raises(ValueError):
meanBetweenConstraint(lower_field="min")
with pytest.raises(TypeError):
meanBetweenConstraint(lower_value="2", upper_value=2)
with pytest.raises(TypeError):
meanBetweenConstraint(lower_field="max", upper_field=2)
def test_min_between_constraint_value(df_lending_club, local_config_path):
lower = 2.3
upper = 5.4
stddev_between_values = minBetweenConstraint(lower_value=lower, upper_value=upper)
# check if all constraints are applied
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_values)
def test_min_between_constraint_field(df_lending_club, local_config_path):
lower = "stddev"
upper = "max"
stddev_between_fields = minBetweenConstraint(lower_field=lower, upper_field=upper)
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_fields)
def test_min_between_constraint_invalid():
with pytest.raises(ValueError):
minBetweenConstraint(lower_value=2)
with pytest.raises(ValueError):
minBetweenConstraint(lower_field="min")
with pytest.raises(TypeError):
minBetweenConstraint(lower_value="2", upper_value=2)
with pytest.raises(TypeError):
minBetweenConstraint(lower_field="max", upper_field=2)
def test_max_between_constraint_value(df_lending_club, local_config_path):
lower = 2.3
upper = 5.4
stddev_between_values = maxBetweenConstraint(lower_value=lower, upper_value=upper)
# check if all constraints are applied
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_values)
def test_max_between_constraint_field(df_lending_club, local_config_path):
lower = "stddev"
upper = "mean"
stddev_between_fields = maxBetweenConstraint(lower_field=lower, upper_field=upper)
_apply_between_summary_constraint_on_dataset(df_lending_club, local_config_path, stddev_between_fields)
def test_max_between_constraint_invalid():
with pytest.raises(ValueError):
maxBetweenConstraint(lower_value=2)
with pytest.raises(ValueError):
maxBetweenConstraint(lower_field="min")
with pytest.raises(TypeError):
maxBetweenConstraint(lower_value="2", upper_value=2)
with pytest.raises(TypeError):
maxBetweenConstraint(lower_field="max", upper_field=2)
def _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints):
dc = DatasetConstraints(None, summary_constraints=summary_constraints)
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
return report
def test_set_summary_constraints(df_lending_club, local_config_path):
org_list = list(df_lending_club["annual_inc"])
org_list2 = list(df_lending_club["annual_inc"])
org_list2.extend([1, 4, 5555, "gfsdgs", 0.00333, 245.32])
in_set = distinctValuesInSetConstraint(reference_set=org_list2, name="True")
in_set2 = distinctValuesInSetConstraint(reference_set=org_list, name="True2")
in_set3 = distinctValuesInSetConstraint(reference_set=org_list[:-1], name="False")
eq_set = distinctValuesEqualSetConstraint(reference_set=org_list, name="True3")
eq_set2 = distinctValuesEqualSetConstraint(reference_set=org_list2, name="False2")
eq_set3 = distinctValuesEqualSetConstraint(reference_set=org_list[:-1], name="False3")
contains_set = distinctValuesContainSetConstraint(reference_set=[org_list[2]], name="True4")
contains_set2 = distinctValuesContainSetConstraint(reference_set=org_list, name="True5")
contains_set3 = distinctValuesContainSetConstraint(reference_set=org_list[:-1], name="True6")
contains_set4 = distinctValuesContainSetConstraint(reference_set=[str(org_list[2])], name="False4")
contains_set5 = distinctValuesContainSetConstraint(reference_set=[2.3456], name="False5")
contains_set6 = distinctValuesContainSetConstraint(reference_set=org_list2, name="False6")
list(df_lending_club["annual_inc"])
constraints = [in_set, in_set2, in_set3, eq_set, eq_set2, eq_set3, contains_set, contains_set2, contains_set3, contains_set4, contains_set5, contains_set6]
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, {"annual_inc": constraints})
for r in report[0][1]:
if "True" in r[0]:
assert r[2] == 0
else:
assert r[2] == 1
def test_set_summary_constraint_invalid_init():
with pytest.raises(TypeError):
SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=1)
with pytest.raises(ValueError):
SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, 1)
with pytest.raises(ValueError):
SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, second_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, third_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, upper_value=2)
def test_set_summary_no_merge_different_set():
set_c_1 = SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=[1, 2, 3])
set_c_2 = SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=[2, 3, 4, 5])
with pytest.raises(AssertionError):
set_c_1.merge(set_c_2)
def test_set_summary_merge():
set_c_1 = SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=[1, 2, 3])
set_c_2 = SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=[1, 2, 3])
merged = set_c_1.merge(set_c_2)
pre_merge_json = json.loads(message_to_json(set_c_1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pre_merge_json["referenceSet"] == merge_json["referenceSet"]
assert pre_merge_json["firstField"] == merge_json["firstField"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
def test_set_summary_serialization():
set1 = SummaryConstraint("distinct_column_values", Op.CONTAIN_SET, reference_set=[1, 2, 3])
set2 = SummaryConstraint.from_protobuf(set1.to_protobuf())
set1_json = json.loads(message_to_json(set1.to_protobuf()))
set2_json = json.loads(message_to_json(set2.to_protobuf()))
assert set1_json["name"] == set2_json["name"]
assert set1_json["referenceSet"] == set2_json["referenceSet"]
assert set1_json["firstField"] == set2_json["firstField"]
assert set1_json["op"] == set2_json["op"]
assert set1_json["verbose"] == set2_json["verbose"]
def test_column_values_in_set_constraint(df_lending_club, local_config_path):
cvisc = columnValuesInSetConstraint(value_set={2, 5, 8, 90671227})
ltc = ValueConstraint(Op.LT, 1)
dc = DatasetConstraints(None, value_constraints={"id": [cvisc, ltc]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = dc.report()
# check if all of the rows have been reported
assert report[0][1][0][1] == len(df_lending_club)
# the number of fails should equal the number of rows - 1 since the column id only has the value 90671227 in set
assert report[0][1][0][2] == len(df_lending_club) - 1
def test_merge_values_in_set_constraint_different_value_set():
cvisc1 = columnValuesInSetConstraint(value_set={1, 2, 3})
cvisc2 = columnValuesInSetConstraint(value_set={3, 4, 5})
with pytest.raises(AssertionError):
cvisc1.merge(cvisc2)
def test_merge_values_in_set_constraint_same_value_set():
val_set = {"abc", "b", "c"}
cvisc1 = columnValuesInSetConstraint(value_set=val_set)
cvisc2 = columnValuesInSetConstraint(value_set=val_set)
merged = cvisc1.merge(cvisc2)
TEST_LOGGER.info(f"Serialize the merged columnValuesInSetConstraint:\n {merged.to_protobuf()}")
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == f"values are in {val_set}"
assert json_value["op"] == Op.Name(Op.IN)
assert json_value["valueSet"][0] == list(val_set)
def test_serialization_deserialization_values_in_set_constraint():
val_set = {"abc", 1, 2}
cvisc = columnValuesInSetConstraint(value_set=val_set)
cvisc.from_protobuf(cvisc.to_protobuf())
json_value = json.loads(message_to_json(cvisc.to_protobuf()))
TEST_LOGGER.info(f"Serialize columnValuesInSetConstraint from deserialized representation:\n {cvisc.to_protobuf()}")
assert json_value["name"] == f"values are in {val_set}"
assert json_value["op"] == Op.Name(Op.IN)
assert json_value["valueSet"][0] == list(val_set)
def test_column_values_in_set_wrong_datatype():
with pytest.raises(TypeError):
cvisc = columnValuesInSetConstraint(value_set=1)
def _report_email_value_constraint_on_data_set(local_config_path, pattern=None):
df = pd.DataFrame(
[
{"email": r"<EMAIL>"}, # valid
{"email": r'"aVrrR Test \@"<EMAIL>'}, # valid
{"email": r"abc..<EMAIL>"}, # invalid
{"email": r'"sdsss\d"@gmail.<EMAIL>'}, # valid
{"email": r"customer/department=shipping?@example-another.some-other.us"}, # valid
{"email": r".<EMAIL>"}, # invalid
{"email": r"<EMAIL>"}, # invalid
{"email": r"abs@yahoo."}, # invalid
]
)
email_constraint = containsEmailConstraint(regex_pattern=pattern)
dc = DatasetConstraints(None, value_constraints={"email": [email_constraint]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
report = dc.report()
return report
def _apply_string_length_constraints(local_config_path, length_constraints):
df = pd.DataFrame(
[
{"str1": "length7"},
{"str1": "length_8"},
{"str1": "length__9"},
{"str1": "a 10"},
{"str1": "11 b"},
{"str1": '(*&^%^&*(24!@_+>:|}?><"\\'},
{"str1": "1b34567"},
]
)
dc = DatasetConstraints(None, value_constraints={"str1": length_constraints})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
report = dc.report()
return report
def test_string_length_constraints(local_config_path):
length_constraint7 = stringLengthEqualConstraint(length=7)
length_constraint24 = stringLengthEqualConstraint(length=24)
length_constraint7to10 = stringLengthBetweenConstraint(lower_value=7, upper_value=10)
length_constraints = [length_constraint7, length_constraint24, length_constraint7to10]
report = _apply_string_length_constraints(local_config_path, length_constraints)
# report[column_n][report_list][report][name total or failure]
assert report[0][1][0][1] == 7 and report[0][1][0][2] == 5 and report[0][1][0][0] == f"length of the string values is equal to 7"
assert report[0][1][1][1] == 7 and report[0][1][1][2] == 6 and report[0][1][1][0] == f"length of the string values is equal to 24"
assert report[0][1][2][1] == 7 and report[0][1][2][2] == 2 and report[0][1][2][0] == f"length of the string values is between 7 and 10"
def test_email_constraint(local_config_path):
report = _report_email_value_constraint_on_data_set(local_config_path)
assert report[0][1][0][1] == 8
assert report[0][1][0][2] == 4
def test_email_constraint_supply_regex_pattern(local_config_path):
report = _report_email_value_constraint_on_data_set(local_config_path, r"\S+@\S+")
assert report[0][1][0][0] == "column values match the email regex pattern"
assert report[0][1][0][1] == 8
assert report[0][1][0][2] == 1
def test_email_constraint_merge_valid():
ec1 = containsEmailConstraint(regex_pattern=r"\S+@\S+", verbose=True)
ec2 = containsEmailConstraint(regex_pattern=r"\S+@\S+")
merged = ec1.merge(ec2)
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == "column values match the email regex pattern"
assert json_value["op"] == Op.Name(Op.MATCH)
assert json_value["regexPattern"] == r"\S+@\S+"
assert json_value["verbose"] is True
def test_email_constraint_merge_invalid():
ec1 = containsEmailConstraint(regex_pattern=r"\S+@\S+", verbose=True)
ec2 = containsEmailConstraint(regex_pattern=r"\W+@\W+")
with pytest.raises(AssertionError):
ec1.merge(ec2)
def _report_credit_card_value_constraint_on_data_set(local_config_path, regex_pattern=None):
df = pd.DataFrame(
[
{"credit_card": "3714-496353-98431"}, # amex
{"credit_card": "3787 344936 71000"}, # amex
{"credit_card": "3056 930902 5904"}, # diners club
{"credit_card": "3065 133242 2899"}, # invalid
{"credit_card": "3852-000002-3237"}, # diners club
{"credit_card": "6011 1111 1111 1117"}, # discover
{"credit_card": "6011-0009-9013-9424"}, # discover
{"credit_card": "3530 1113 3330 0000"}, # jcb
{"credit_card": "3566-0020-2036-0505"}, # jcb
{"credit_card": "5555 5555 5555 4444"}, # master card
{"credit_card": "5105 1051 0510 5100"}, # master card
{"credit_card": "4111 1111 1111 1111"}, # visa
{"credit_card": "4012 8888 8888 1881"}, # visa
{"credit_card": "4222-2222-2222-2222"}, # visa
{"credit_card": "1111-1111-1111-1111"}, # invalid
{"credit_card": "a4111 1111 1111 1111b"}, # invalid
{"credit_card": "4111111111111111"}, # visa
{"credit_card": 12345}, # invalid
{"credit_card": "absfcvs"}, # invalid
]
)
credit_card_constraint = containsCreditCardConstraint(regex_pattern=regex_pattern)
dc = DatasetConstraints(None, value_constraints={"credit_card": [credit_card_constraint]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
return dc.report()
def test_credit_card_constraint(local_config_path):
report = _report_credit_card_value_constraint_on_data_set(local_config_path)
assert report[0][1][0][1] == 19
assert report[0][1][0][2] == 5
def test_credit_card_constraint_supply_regex_pattern(local_config_path):
report = _report_credit_card_value_constraint_on_data_set(local_config_path, r"^(?:[0-9]{4}[\s-]?){3,4}$")
assert report[0][1][0][0] == "column values match the credit card regex pattern"
assert report[0][1][0][1] == 19
assert report[0][1][0][2] == 8
def test_credit_card_constraint_merge_valid():
pattern = r"[0-9]{13,16}"
ccc1 = containsCreditCardConstraint(regex_pattern=pattern, verbose=True)
ccc2 = containsCreditCardConstraint(regex_pattern=pattern)
merged = ccc1.merge(ccc2)
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == "column values match the credit card regex pattern"
assert json_value["op"] == Op.Name(Op.MATCH)
assert json_value["regexPattern"] == pattern
assert json_value["verbose"] is True
def test_credit_card_constraint_merge_invalid():
ccc1 = containsCreditCardConstraint()
ccc2 = containsCreditCardConstraint(regex_pattern=r"[0-9]{13,16}", verbose=False)
with pytest.raises(AssertionError):
ccc1.merge(ccc2)
def test_credit_card_invalid_pattern():
with pytest.raises(TypeError):
containsCreditCardConstraint(123)
def _apply_apply_func_constraints(local_config_path, apply_func_constraints):
df = pd.DataFrame(
[
{"str1": "1990-12-1"}, # dateutil valid; strftime valid
{"str1": "1990/12/1"},
{"str1": "2005/3"},
{"str1": "2005.3.5"},
{"str1": "Jan 19, 1990"},
{"str1": "today is 2019-03-27"}, # dateutil invalid
{"str1": "Monday at 12:01am"},
{"str1": "xyz_not_a_date"}, # dateutil invalid
{"str1": "yesterday"}, # dateutil invalid
{"str1": {"name": "s", "w2w2": "dgsg", "years": 232, "abc": 1}}, # schema valid
{"str1": {"name": "s", "w2w2": 12.38, "years": 232, "abc": 1}}, # schema valid
{"str1": {"name": "s", "years": 232, "abc": 1}}, # schema valid
{"str1": {"name": "s", "abc": 1}}, # schema valid
{"str1": {"name": "s", "w2w2": "dgsg", "years": 232}}, # schema invalid
{"str1": {"name": "s", "w2w2": "dgsg", "years": "232", "abc": 1}}, # schema invalid
{"str1": {"name": 14, "w2w2": "dgsg", "years": "232", "abc": 1}}, # schema invalid
{"str1": {"name": "14", "w2w2": "dgsg", "years": 232.44, "abc": 1}}, # schema invalid
{"str1": {"w2w2": "dgsg", "years": 232, "abc": 1}}, # schema invalid
{"str1": {"years": 232}}, # schema invalid
{"str1": json.dumps({"name": "s", "w2w2": "dgsg", "years": 232, "abc": 1})}, # json valid, schema valid
{"str1": json.dumps({"name": "s", "w2w2": 12.38, "years": 232, "abc": 1})}, # json valid, schema valid
{"str1": json.dumps({"name": "s", "years": 232, "abc": 1})}, # json valid, schema valid
{"str1": json.dumps({"name": "s", "abc": 1})}, # json valid, schema valid
{"str1": json.dumps({"name": "s", "w2w2": "dgsg", "years": "232", "abc": 1})}, # json valid
{"str1": "random str : fail everything"},
{"str1": "2003-12-23"}, # strftime valid
{"str1": "2010-10-18"}, # strftime valid
{"str1": "2003-15-23"}, # strftime invalid
{"str1": "2003-12-32"}, # strftime invalid
{"str1": "10-12-32"}, # strftime invalid, dateutil valid
]
)
dc = DatasetConstraints(None, value_constraints={"str1": apply_func_constraints})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
report = dc.report()
return report
def test_apply_func_value_constraints(local_config_path):
dateutil_parseable = dateUtilParseableConstraint()
json_parseable = jsonParseableConstraint()
json_schema = {
"type": "object",
"properties": {
"name": {"type": "string"},
"years": {"type": "integer"},
},
"required": ["name", "abc"],
}
matches_json_schema = matchesJsonSchemaConstraint(json_schema=json_schema)
is_strftime = strftimeFormatConstraint(format="%Y-%m-%d")
apply_constraints = [dateutil_parseable, json_parseable, matches_json_schema, is_strftime]
report = _apply_apply_func_constraints(local_config_path, apply_constraints)
# report[column_n][report_list][report][name total or failure]
assert report[0][1][0][1] == 30 and report[0][1][0][2] == 21 and report[0][1][0][0] == "column values are dateutil parseable"
assert report[0][1][1][1] == 30 and report[0][1][1][2] == 25 and report[0][1][1][0] == "column values are JSON parseable"
assert report[0][1][2][1] == 30 and report[0][1][2][2] == 22 and report[0][1][2][0] == f"column values match the provided JSON schema {json_schema}"
assert report[0][1][3][1] == 30 and report[0][1][3][2] == 27 and report[0][1][3][0] == "column values are strftime parseable"
def test_apply_func_invalid_init():
with pytest.raises(ValueError):
apply2 = ValueConstraint(Op.APPLY_FUNC, apply_function=lambda x: x)
with pytest.raises(ValueError):
apply2 = ValueConstraint(Op.APPLY_FUNC, apply_function="".startswith)
with pytest.raises(ValueError):
apply2 = ValueConstraint(Op.APPLY_FUNC, apply_function=any)
def test_apply_func_merge():
apply1 = dateUtilParseableConstraint()
apply2 = ValueConstraint(Op.APPLY_FUNC, apply_function=_matches_json_schema)
with pytest.raises(AssertionError):
apply1.merge(apply2)
apply3 = dateUtilParseableConstraint()
merged = apply1.merge(apply3)
pre_merge_json = json.loads(message_to_json(apply1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pre_merge_json["function"] == merge_json["function"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
def test_apply_func_serialization():
apply1 = dateUtilParseableConstraint()
apply2 = ValueConstraint.from_protobuf(apply1.to_protobuf())
apply1_json = json.loads(message_to_json(apply1.to_protobuf()))
apply2_json = json.loads(message_to_json(apply2.to_protobuf()))
apply1.merge(apply2)
apply2.merge(apply1)
assert apply1_json["name"] == apply2_json["name"]
assert apply1_json["function"] == apply2_json["function"]
assert apply1_json["op"] == apply2_json["op"]
assert apply1_json["verbose"] == apply2_json["verbose"]
json_schema = {
"type": "object",
"properties": {
"name": {"type": "string"},
"years": {"type": "integer"},
},
"required": ["name", "abc"],
}
apply1 = matchesJsonSchemaConstraint(json_schema)
apply2 = ValueConstraint.from_protobuf(apply1.to_protobuf())
apply1_json = json.loads(message_to_json(apply1.to_protobuf()))
apply2_json = json.loads(message_to_json(apply2.to_protobuf()))
assert apply1_json["name"] == apply2_json["name"]
assert apply1_json["function"] == apply2_json["function"]
assert apply1_json["op"] == apply2_json["op"]
assert apply1_json["verbose"] == apply2_json["verbose"]
def _report_ssn_value_constraint_on_data_set(local_config_path, regex_pattern=None):
df = pd.DataFrame(
[
{"ssn": "123-01-2335"}, # valid
{"ssn": "039780012"}, # valid
{"ssn": "000231324"}, # invalid
{"ssn": "666781132"}, # invalid
{"ssn": "926-89-1234"}, # invalid
{"ssn": "001-01-0001"}, # valid
{"ssn": "122 23 0001"}, # valid
{"ssn": "1234-12-123"}, # invalid
]
)
ssn_constraint = containsSSNConstraint(regex_pattern=regex_pattern)
dc = DatasetConstraints(None, value_constraints={"ssn": [ssn_constraint]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
return dc.report()
def test_contains_ssn_constraint(local_config_path):
report = _report_ssn_value_constraint_on_data_set(local_config_path)
assert report[0][1][0][1] == 8
assert report[0][1][0][2] == 4
def test_ssn_constraint_supply_regex_pattern(local_config_path):
pattern = r"^[0-9]{3}-[0-9]{2}-[0-9]{4}$"
report = _report_ssn_value_constraint_on_data_set(local_config_path, pattern)
assert report[0][1][0][0] == "column values match the SSN regex pattern"
assert report[0][1][0][1] == 8
assert report[0][1][0][2] == 5
def test_ssn_constraint_merge_valid():
pattern = r"^[0-9]{3}-[0-9]{2}-[0-9]{4}$"
ccc1 = containsSSNConstraint(regex_pattern=pattern, verbose=True)
ccc2 = containsSSNConstraint(regex_pattern=pattern)
merged = ccc1.merge(ccc2)
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == "column values match the SSN regex pattern"
assert json_value["op"] == Op.Name(Op.MATCH)
assert json_value["regexPattern"] == pattern
assert json_value["verbose"] is True
def test_ssn_constraint_merge_invalid():
ccc1 = containsSSNConstraint()
ccc2 = containsSSNConstraint(regex_pattern=r"[0-9]{13,16}", verbose=False)
with pytest.raises(AssertionError):
ccc1.merge(ccc2)
def test_ssn_invalid_pattern():
with pytest.raises(TypeError):
containsSSNConstraint(123)
def _report_url_value_constraint_on_data_set(local_config_path, regex_pattern=None):
df = pd.DataFrame(
[
{"url": "http://www.example.com"}, # valid
{"url": "abc.test.com"}, # valid (without protocol)
{"url": "abc.w23w.asb#abc?a=2"}, # valid (without protocol)
{"url": "https://ab.abc.bc"}, # valid
{"url": "a.b.c"}, # valid
{"url": "abcd"}, # invalid
{"url": "123.w23.235"}, # valid
{"url": "asf://saf.we.12"}, # invalid
{"url": "12345"}, # invalid
{"url": "1.2"}, # invalid
]
)
url_constraint = containsURLConstraint(regex_pattern=regex_pattern)
dc = DatasetConstraints(None, value_constraints={"url": [url_constraint]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
return dc.report()
def test_contains_url_constraint(local_config_path):
report = _report_url_value_constraint_on_data_set(local_config_path)
assert report[0][1][0][1] == 10
assert report[0][1][0][2] == 4
def test_url_constraint_supply_regex_pattern(local_config_path):
pattern = r"^http(s)?:\/\/(www\.)?.+\..+$"
report = _report_url_value_constraint_on_data_set(local_config_path, pattern)
assert report[0][1][0][0] == "column values match the URL regex pattern"
assert report[0][1][0][1] == 10
assert report[0][1][0][2] == 8
def test_url_constraint_merge_valid():
pattern = r"^http(s)?://(www)?\..*\..*$"
ccc1 = containsURLConstraint(regex_pattern=pattern, verbose=False)
ccc2 = containsURLConstraint(regex_pattern=pattern)
merged = ccc1.merge(ccc2)
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == "column values match the URL regex pattern"
assert json_value["op"] == Op.Name(Op.MATCH)
assert json_value["regexPattern"] == pattern
assert json_value["verbose"] is False
def test_url_constraint_merge_invalid():
ccc1 = containsURLConstraint()
ccc2 = containsURLConstraint(regex_pattern=r"http(s)?://.+", verbose=False)
with pytest.raises(AssertionError):
ccc1.merge(ccc2)
def test_url_invalid_pattern():
with pytest.raises(TypeError):
containsURLConstraint(2124)
def test_summary_constraint_quantile_invalid():
with pytest.raises(ValueError):
SummaryConstraint("stddev", op=Op.LT, value=2, quantile_value=0.2)
with pytest.raises(ValueError):
SummaryConstraint("quantile", op=Op.GT, value=2)
def test_quantile_between_constraint_apply(local_config_path, df_lending_club):
qc = quantileBetweenConstraint(quantile_value=0.25, lower_value=13308, upper_value=241001)
summary_constraint = {"annual_inc": [qc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraint)
assert report[0][1][0][0] == f"0.25-th quantile value is between 13308 and 241001"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_merge_quantile_between_constraint_different_values():
qc1 = quantileBetweenConstraint(quantile_value=0.25, lower_value=0, upper_value=2)
qc2 = quantileBetweenConstraint(quantile_value=0.25, lower_value=1, upper_value=2)
with pytest.raises(AssertionError):
qc1.merge(qc2)
def test_merge_quantile_between_constraint_same_values():
qc1 = quantileBetweenConstraint(quantile_value=0.5, lower_value=0, upper_value=5)
qc2 = quantileBetweenConstraint(quantile_value=0.5, lower_value=0, upper_value=5)
merged = qc1.merge(qc2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == f"0.5-th quantile value is between 0 and 5"
assert message["firstField"] == "quantile"
assert message["op"] == Op.Name(Op.BTWN)
assert pytest.approx(message["between"]["lowerValue"], 0.001) == 0.0
assert pytest.approx(message["between"]["upperValue"], 0.001) == 5.0
assert message["verbose"] is False
def test_serialization_deserialization_quantile_between_constraint():
qc1 = quantileBetweenConstraint(quantile_value=0.5, lower_value=1.24, upper_value=6.63, verbose=True)
qc1.from_protobuf(qc1.to_protobuf())
json_value = json.loads(message_to_json(qc1.to_protobuf()))
assert json_value["name"] == f"0.5-th quantile value is between 1.24 and 6.63"
assert json_value["firstField"] == "quantile"
assert json_value["op"] == Op.Name(Op.BTWN)
assert pytest.approx(json_value["between"]["lowerValue"], 0.001) == 1.24
assert pytest.approx(json_value["between"]["upperValue"], 0.001) == 6.63
assert json_value["verbose"] is True
def test_quantile_between_wrong_datatype():
with pytest.raises(TypeError):
quantileBetweenConstraint(quantile_value=[0.5], lower_value=1.24, upper_value=6.63, verbose=True)
with pytest.raises(TypeError):
quantileBetweenConstraint(quantile_value=0.5, lower_value="1.24", upper_value=6.63, verbose=True)
with pytest.raises(TypeError):
quantileBetweenConstraint(quantile_value=0.3, lower_value=1.24, upper_value=[6.63], verbose=True)
with pytest.raises(ValueError):
quantileBetweenConstraint(quantile_value=0.3, lower_value=2.3, upper_value=1.5, verbose=True)
def test_unique_value_count_between_constraint_apply(local_config_path, df_lending_club):
uc = columnUniqueValueCountBetweenConstraint(lower_value=5, upper_value=50)
summary_constraint = {"annual_inc": [uc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraint)
assert report[0][1][0][0] == f"number of unique values is between 5 and 50"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_merge_unique_value_count_between_constraint_different_values():
u1 = columnUniqueValueCountBetweenConstraint(lower_value=0, upper_value=2)
u2 = columnUniqueValueCountBetweenConstraint(lower_value=1, upper_value=2)
with pytest.raises(AssertionError):
u1.merge(u2)
def test_merge_unique_value_count_between_constraint_same_values():
u1 = columnUniqueValueCountBetweenConstraint(lower_value=0, upper_value=5)
u2 = columnUniqueValueCountBetweenConstraint(lower_value=0, upper_value=5)
merged = u1.merge(u2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == f"number of unique values is between 0 and 5"
assert message["firstField"] == "unique_count"
assert message["op"] == Op.Name(Op.BTWN)
assert pytest.approx(message["between"]["lowerValue"], 0.001) == 0.0
assert pytest.approx(message["between"]["upperValue"], 0.001) == 5.0
assert message["verbose"] is False
def test_serialization_deserialization_unique_value_count_between_constraint():
u1 = columnUniqueValueCountBetweenConstraint(lower_value=15, upper_value=50, verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
assert json_value["name"] == f"number of unique values is between 15 and 50"
assert json_value["firstField"] == "unique_count"
assert json_value["op"] == Op.Name(Op.BTWN)
assert pytest.approx(json_value["between"]["lowerValue"], 0.001) == 15
assert pytest.approx(json_value["between"]["upperValue"], 0.001) == 50
assert json_value["verbose"] is True
def test_unique_count_between_constraint_wrong_datatype():
with pytest.raises(ValueError):
columnUniqueValueCountBetweenConstraint(lower_value="0", upper_value=1, verbose=True)
with pytest.raises(ValueError):
columnUniqueValueCountBetweenConstraint(lower_value=5, upper_value=6.63, verbose=True)
with pytest.raises(ValueError):
columnUniqueValueCountBetweenConstraint(lower_value=1, upper_value=0)
def test_unique_value_proportion_between_constraint_apply(local_config_path, df_lending_club):
uc = columnUniqueValueProportionBetweenConstraint(lower_fraction=0.6, upper_fraction=0.9)
summary_constraint = {"annual_inc": [uc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraint)
assert report[0][1][0][0] == f"proportion of unique values is between 0.6 and 0.9"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_merge_unique_value_proportion_between_constraint_different_values():
u1 = columnUniqueValueProportionBetweenConstraint(lower_fraction=0.2, upper_fraction=0.3)
u2 = columnUniqueValueProportionBetweenConstraint(lower_fraction=0.1, upper_fraction=0.3)
with pytest.raises(AssertionError):
u1.merge(u2)
def test_merge_unique_value_proportion_between_constraint_same_values():
u1 = columnUniqueValueProportionBetweenConstraint(lower_fraction=0.1, upper_fraction=0.5)
u2 = columnUniqueValueProportionBetweenConstraint(lower_fraction=0.1, upper_fraction=0.5)
merged = u1.merge(u2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == f"proportion of unique values is between 0.1 and 0.5"
assert message["firstField"] == "unique_proportion"
assert message["op"] == Op.Name(Op.BTWN)
assert pytest.approx(message["between"]["lowerValue"], 0.001) == 0.1
assert pytest.approx(message["between"]["upperValue"], 0.001) == 0.5
assert message["verbose"] is False
def test_serialization_deserialization_unique_value_proportion_between_constraint():
u1 = columnUniqueValueProportionBetweenConstraint(lower_fraction=0.6, upper_fraction=0.7, verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
assert json_value["name"] == f"proportion of unique values is between 0.6 and 0.7"
assert json_value["firstField"] == "unique_proportion"
assert json_value["op"] == Op.Name(Op.BTWN)
assert pytest.approx(json_value["between"]["lowerValue"], 0.001) == 0.6
assert pytest.approx(json_value["between"]["upperValue"], 0.001) == 0.7
assert json_value["verbose"] is True
def test_unique_proportion_between_constraint_wrong_datatype():
with pytest.raises(ValueError):
columnUniqueValueProportionBetweenConstraint(lower_fraction=0, upper_fraction=1.0, verbose=True)
with pytest.raises(ValueError):
columnUniqueValueProportionBetweenConstraint(lower_fraction=0.2, upper_fraction=0.1, verbose=True)
with pytest.raises(ValueError):
columnUniqueValueProportionBetweenConstraint(lower_fraction=0.4, upper_fraction=2)
def test_table_shape_constraints(df_lending_club, local_config_path):
rows = numberOfRowsConstraint(n_rows=10)
rows_2 = numberOfRowsConstraint(n_rows=len(df_lending_club.index))
column_exist = columnExistsConstraint("no_WAY")
column_exist2 = columnExistsConstraint("loan_amnt")
set1 = set(["col1", "col2"])
set2 = set(df_lending_club.columns)
columns_match = columnsMatchSetConstraint(set1)
columns_match2 = columnsMatchSetConstraint(set2)
table_shape_constraints = [rows, rows_2, column_exist, column_exist2, columns_match, columns_match2]
dc = DatasetConstraints(None, table_shape_constraints=table_shape_constraints)
config = load_config(local_config_path)
session = session_from_config(config)
report = None
logger = session.logger(dataset_name="test.data", constraints=dc)
logger.log_dataframe(df_lending_club)
report = logger.profile.apply_table_shape_constraints()
assert len(report) == 6
# table shape {self.value} {Op.Name(self.op)} {self.first_field}
assert report[0][0] == f"The number of rows in the table equals 10"
assert report[0][1] == 1
assert report[0][2] == 1
assert report[1][0] == f"The number of rows in the table equals {len(df_lending_club.index)}"
assert report[1][1] == 1
assert report[1][2] == 0
assert report[2][0] == f"The column no_WAY exists in the table"
assert report[2][1] == 1
assert report[2][2] == 1
assert report[3][0] == f"The column loan_amnt exists in the table"
assert report[3][1] == 1
assert report[3][2] == 0
assert report[4][0] == f"The columns of the table are equal to the set {set1}"
assert report[4][1] == 1
assert report[4][2] == 1
reference_set_str = ""
if len(set2) > MAX_SET_DISPLAY_MESSAGE_LENGTH:
tmp_set = set(list(set2)[:MAX_SET_DISPLAY_MESSAGE_LENGTH])
reference_set_str = f"{str(tmp_set)[:-1]}, ...}}"
else:
reference_set_str = str(set2)
assert report[5][0] == f"The columns of the table are equal to the set {reference_set_str}"
assert report[5][1] == 1
assert report[5][2] == 0
logger.log({"no_WAY": 1}) # logging a new non existent column
report2 = logger.profile.apply_table_shape_constraints()
assert report2[1][0] == f"The number of rows in the table equals {len(df_lending_club.index)}"
assert report2[1][1] == 2
assert report2[1][2] == 0
# applying the table shape constraints the second time, after adding a new column the constraint passes since
# the total row number stays the same
assert report2[2][0] == f"The column no_WAY exists in the table"
assert report2[2][1] == 2
assert report2[2][2] == 1
# after logging the new column 'no_WAY', this constraint DOES NOT fail the second time because the column 'no_way'
# is now present
assert report2[5][0] == f"The columns of the table are equal to the set {reference_set_str}"
assert report2[5][1] == 2
assert report2[5][2] == 1
# after logging the new column 'no_WAY', this constraint fails the second time because the reference set
# does not contain the new column 'no_WAY'
set3 = set(set2)
set3.add("no_WAY")
columns_match3 = columnsMatchSetConstraint(set3)
report3 = logger.profile.apply_table_shape_constraints(SummaryConstraints([columns_match3]))
reference_set_str2 = ""
if len(set3) > MAX_SET_DISPLAY_MESSAGE_LENGTH:
tmp_set = set(list(set3)[:MAX_SET_DISPLAY_MESSAGE_LENGTH])
reference_set_str2 = f"{str(tmp_set)[:-1]}, ...}}"
else:
reference_set_str2 = str(set3)
assert report3[0][0] == f"The columns of the table are equal to the set {reference_set_str2}"
assert report3[0][1] == 1
assert report3[0][2] == 0
# adding the new column to 'set3' and creating a constraint with it, now it doesn't fail
log_dict = dict()
# logging a new value for every column (one more row)
for column in df_lending_club.columns:
value = df_lending_club[column][10] # sample from the column
log_dict[column] = value
logger.log(log_dict)
report4 = logger.profile.apply_table_shape_constraints()
assert report4[1][0] == f"The number of rows in the table equals {len(df_lending_club.index)}"
assert report4[1][1] == 3
assert report4[1][2] == 1
# applying the table shape constraints the third time, and only this time it fails as the new row was logged
rows_3 = numberOfRowsConstraint(n_rows=len(df_lending_club.index) + 1) # 1 new row
report5 = logger.profile.apply_table_shape_constraints(SummaryConstraints([rows_3]))
assert report5[0][0] == f"The number of rows in the table equals {len(df_lending_club.index)+1}"
assert report5[0][1] == 1
assert report5[0][2] == 0
# the new numberOfRowsConstraint with n_rows=previous_n_rows+1 passes
profile = logger.close() # closing the logger and getting the DatasetProfile
assert profile.total_row_number == rows_3.value
def test_table_shape_constraint_invalid_init():
with pytest.raises(TypeError):
SummaryConstraint("columns", Op.EQ, reference_set=1)
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.CONTAIN, reference_set=1)
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.EQ, reference_set=1)
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.CONTAIN, reference_set=1)
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.CONTAIN, 1)
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.CONTAIN, second_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.EQ, 1)
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.EQ, second_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.CONTAIN, 1)
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.CONTAIN, second_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.EQ, second_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.CONTAIN, third_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.EQ, third_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.CONTAIN, third_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.EQ, third_field="aaa")
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.CONTAIN, upper_value=2)
with pytest.raises(ValueError):
SummaryConstraint("columns", Op.EQ, upper_value=2)
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.CONTAIN, upper_value=2)
with pytest.raises(ValueError):
SummaryConstraint("total_row_number", Op.EQ, upper_value=2)
def test_table_shape_no_merge_different_set():
set_c_1 = SummaryConstraint("columns", Op.EQ, reference_set=[1, 2, 3])
set_c_2 = SummaryConstraint("columns", Op.EQ, reference_set=[2, 3, 4, 5])
with pytest.raises(AssertionError):
set_c_1.merge(set_c_2)
def test_table_shape_merge():
set_c_1 = SummaryConstraint("columns", Op.EQ, reference_set=[1, 2, 3])
set_c_2 = columnsMatchSetConstraint(reference_set=[1, 2, 3])
set_c_1._name = set_c_2.name
merged = set_c_1.merge(set_c_2)
pre_merge_json = json.loads(message_to_json(set_c_1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pre_merge_json["referenceSet"] == merge_json["referenceSet"]
assert pre_merge_json["firstField"] == merge_json["firstField"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
set_c_1 = SummaryConstraint("columns", Op.CONTAIN, "c1")
set_c_2 = columnExistsConstraint(column="c1")
set_c_1._name = set_c_2.name
merged = set_c_1.merge(set_c_2)
pre_merge_json = json.loads(message_to_json(set_c_1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pre_merge_json["valueStr"] == merge_json["valueStr"]
assert pre_merge_json["firstField"] == merge_json["firstField"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
set_c_1 = SummaryConstraint("total_row_number", Op.EQ, 2)
set_c_2 = numberOfRowsConstraint(n_rows=2)
set_c_1._name = set_c_2.name
merged = set_c_1.merge(set_c_2)
pre_merge_json = json.loads(message_to_json(set_c_1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pre_merge_json["value"] == merge_json["value"]
assert pre_merge_json["firstField"] == merge_json["firstField"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
def test_table_shape_serialization():
ts1 = columnsMatchSetConstraint([1, 2, 3])
ts2 = SummaryConstraint.from_protobuf(ts1.to_protobuf())
ts1_json = json.loads(message_to_json(ts1.to_protobuf()))
ts2_json = json.loads(message_to_json(ts2.to_protobuf()))
ts1.merge(ts2)
ts2.merge(ts1)
assert ts1_json["name"] == ts2_json["name"]
assert ts1_json["referenceSet"] == ts2_json["referenceSet"]
assert ts1_json["firstField"] == ts2_json["firstField"]
assert ts1_json["op"] == ts2_json["op"]
assert ts1_json["verbose"] == ts2_json["verbose"]
ts1 = columnExistsConstraint("c1")
ts1.to_protobuf()
ts2 = SummaryConstraint.from_protobuf(ts1.to_protobuf())
ts1_json = json.loads(message_to_json(ts1.to_protobuf()))
ts2_json = json.loads(message_to_json(ts2.to_protobuf()))
ts1.merge(ts2)
ts2.merge(ts1)
assert ts1_json["name"] == ts2_json["name"]
assert ts1_json["valueStr"] == ts2_json["valueStr"]
assert ts1_json["firstField"] == ts2_json["firstField"]
assert ts1_json["op"] == ts2_json["op"]
assert ts1_json["verbose"] == ts2_json["verbose"]
ts1 = numberOfRowsConstraint(2)
ts2 = SummaryConstraint.from_protobuf(ts1.to_protobuf())
ts1_json = json.loads(message_to_json(ts1.to_protobuf()))
ts2_json = json.loads(message_to_json(ts2.to_protobuf()))
ts1.merge(ts2)
ts2.merge(ts1)
assert ts1_json["name"] == ts2_json["name"]
assert ts1_json["value"] == ts2_json["value"]
assert ts1_json["firstField"] == ts2_json["firstField"]
assert ts1_json["op"] == ts2_json["op"]
assert ts1_json["verbose"] == ts2_json["verbose"]
def _get_sample_dataset_constraints():
cvisc = columnValuesInSetConstraint(value_set={2, 5, 8})
ltc = ValueConstraint(Op.LT, 1)
min_gt_constraint = SummaryConstraint("min", Op.GT, value=100)
max_le_constraint = SummaryConstraint("max", Op.LE, value=5)
set1 = set(["col1", "col2"])
columns_match_constraint = columnsMatchSetConstraint(set1)
val_set = {(1, 2), (3, 5)}
col_set = ["A", "B"]
mcv_constraints = [
columnValuesUniqueWithinRow(column_A="A", verbose=True),
columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set=val_set),
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value=100),
]
return DatasetConstraints(
None,
value_constraints={"annual_inc": [cvisc, ltc]},
summary_constraints={"annual_inc": [max_le_constraint, min_gt_constraint]},
table_shape_constraints=[columns_match_constraint],
multi_column_value_constraints=mcv_constraints,
)
def _assert_dc_props_equal(dc, dc_deserialized):
props = dc.dataset_properties
deser_props = dc_deserialized.dataset_properties
if all([props, deser_props]):
pm_json = json.loads(message_to_json(props))
deser_pm_json = json.loads(message_to_json(deser_props))
for (k, v), (k_deser, v_deser) in zip(pm_json.items(), deser_pm_json.items()):
assert k == k_deser
if all([v, v_deser]):
v = v.sort() if isinstance(v, list) else v
v_deser = v_deser.sort() if isinstance(v_deser, list) else v_deser
assert v == v_deser
def _assert_constraints_equal(constraints, deserialized_constraints):
for (name, c), (deser_name, deser_c) in zip(constraints.items(), deserialized_constraints.items()):
assert name == deser_name
a = json.loads(message_to_json(c.to_protobuf()))
b = json.loads(message_to_json(deser_c.to_protobuf()))
for (k, v), (k_deser, v_deser) in zip(a.items(), b.items()):
assert k == k_deser
if all([v, v_deser]):
v = v.sort() if isinstance(v, list) else v
v_deser = v_deser.sort() if isinstance(v_deser, list) else v_deser
assert v == v_deser
def _get_all_value_constraints(constraints):
all_v_constraints = dict()
all_v_constraints.update(constraints.raw_value_constraints)
all_v_constraints.update(constraints.coerced_type_constraints)
return all_v_constraints
def test_dataset_constraints_serialization():
dc = _get_sample_dataset_constraints()
dc_deser = DatasetConstraints.from_protobuf(dc.to_protobuf())
_assert_dc_props_equal(dc, dc_deser)
value_constraints = dc.value_constraint_map
summary_constraints = dc.summary_constraint_map
table_shape_constraints = dc.table_shape_constraints
multi_column_value_constraints = dc.multi_column_value_constraints
deser_v_c = dc_deser.value_constraint_map
deser_s_c = dc_deser.summary_constraint_map
deser_ts_c = dc_deser.table_shape_constraints
deser_mcv_c = dc_deser.multi_column_value_constraints
for (column, constraints), (deser_column, deser_constraints) in zip(value_constraints.items(), deser_v_c.items()):
assert column == deser_column
all_v_constraints = _get_all_value_constraints(constraints)
all_v_constraints_deser = _get_all_value_constraints(deser_constraints)
_assert_constraints_equal(all_v_constraints, all_v_constraints_deser)
for (column, constraints), (deser_column, deser_constraints) in zip(summary_constraints.items(), deser_s_c.items()):
assert column == deser_column
_assert_constraints_equal(constraints.constraints, deser_constraints.constraints)
_assert_constraints_equal(table_shape_constraints.constraints, deser_ts_c.constraints)
all_mc_constraints = _get_all_value_constraints(multi_column_value_constraints)
all_mc_constraints_deser = _get_all_value_constraints(deser_mcv_c)
_assert_constraints_equal(all_mc_constraints, all_mc_constraints_deser)
report = dc.report()
report_deser = dc_deser.report()
assert report == report_deser
def test_most_common_value_in_set_constraint_apply(local_config_path, df_lending_club):
val_set1 = {2, 3.5, 5000, 52000.0}
val_set2 = {1, 2.3, "abc"}
mcvc1 = columnMostCommonValueInSetConstraint(value_set=val_set1)
mcvc2 = columnMostCommonValueInSetConstraint(value_set=val_set2)
summary_constraints = {"loan_amnt": [mcvc1], "funded_amnt": [mcvc2]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints)
assert report[0][1][0][0] == f"most common value is in {val_set1}"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
assert report[1][1][0][0] == f"most common value is in {val_set2}"
assert report[1][1][0][1] == 1
assert report[1][1][0][2] == 1
def test_merge_most_common_value_in_set_constraint_different_values():
c1 = columnMostCommonValueInSetConstraint(value_set={1, 3})
c2 = columnMostCommonValueInSetConstraint(value_set={1, 5.0})
with pytest.raises(AssertionError):
c1.merge(c2)
def test_merge_most_common_value_in_set_constraint_same_values():
val_set = {1, 2, 3}
u1 = columnMostCommonValueInSetConstraint(value_set=val_set)
u2 = columnMostCommonValueInSetConstraint(value_set=val_set)
merged = u1.merge(u2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == f"most common value is in {val_set}"
assert message["firstField"] == "most_common_value"
assert message["op"] == Op.Name(Op.IN)
assert message["referenceSet"] == list(val_set)
assert message["verbose"] is False
def test_serialization_deserialization_most_common_value_in_set_constraint():
val_set = {1, "a", "abc"}
u1 = columnMostCommonValueInSetConstraint(value_set=val_set, verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
assert json_value["name"] == f"most common value is in {val_set}"
assert json_value["firstField"] == "most_common_value"
assert json_value["op"] == Op.Name(Op.IN)
assert json_value["referenceSet"] == list(val_set)
assert json_value["verbose"] is True
def test_most_common_value_in_set_constraint_wrong_datatype():
with pytest.raises(TypeError):
columnMostCommonValueInSetConstraint(value_set=2.3, verbose=True)
def test_column_values_not_null_constraint_apply_pass(local_config_path, df_lending_club):
nnc1 = columnValuesNotNullConstraint()
summary_constraints = {"annual_inc": [nnc1]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints)
TEST_LOGGER.info(f"Apply columnValuesNotNullConstraint report:\n{report}")
assert report[0][1][0][0] == f"does not contain missing values"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_column_values_not_null_constraint_apply_fail(local_config_path):
nnc2 = columnValuesNotNullConstraint()
df = pd.DataFrame([{"value": 1}, {"value": 5.2}, {"value": None}, {"value": 2.3}, {"value": None}])
summary_constraints = {"value": [nnc2]}
report = _apply_summary_constraints_on_dataset(df, local_config_path, summary_constraints)
TEST_LOGGER.info(f"Apply columnValuesNotNullConstraint report:\n{report}")
assert report[0][1][0][0] == f"does not contain missing values"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 1
def test_merge_column_values_not_null_constraint_different_values(local_config_path, df_lending_club):
nnc1 = columnValuesNotNullConstraint()
nnc2 = columnValuesNotNullConstraint()
summary_constraints1 = {"annual_inc": [nnc1]}
summary_constraints2 = {"annual_inc": [nnc2]}
report1 = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints1)
report2 = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints2)
assert report1[0][1][0][0] == f"does not contain missing values"
assert report1[0][1][0][1] == 1
assert report1[0][1][0][2] == 0
assert report2[0][1][0][0] == f"does not contain missing values"
assert report2[0][1][0][1] == 1
assert report2[0][1][0][2] == 0
merged = nnc1.merge(nnc2)
report_merged = merged.report()
print(report_merged)
TEST_LOGGER.info(f"Merged report of columnValuesNotNullConstraint: {report_merged}")
assert merged.total == 2
assert merged.failures == 0
def test_serialization_deserialization_column_values_not_null_constraint():
nnc = columnValuesNotNullConstraint(verbose=True)
nnc.from_protobuf(nnc.to_protobuf())
json_value = json.loads(message_to_json(nnc.to_protobuf()))
assert json_value["name"] == f"does not contain missing values"
assert json_value["firstField"] == "null_count"
assert json_value["op"] == Op.Name(Op.EQ)
assert pytest.approx(json_value["value"], 0.01) == 0
assert json_value["verbose"] is True
def test_missing_values_proportion_between_constraint_apply_pass(local_config_path, df_lending_club):
mvpbc = missingValuesProportionBetweenConstraint(lower_fraction=0.0, upper_fraction=0.3)
summary_constraint = {"annual_inc": [mvpbc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraint)
assert report[0][1][0][0] == f"missing values proportion is between 0.0% and 30.0%"
assert report[0][1][0][1] == 1 # number of executions
assert report[0][1][0][2] == 0 # number of failures
def test_missing_values_proportion_between_constraint_apply_fail(local_config_path, df_lending_club):
mvpbc = missingValuesProportionBetweenConstraint(lower_fraction=0.3, upper_fraction=0.8)
summary_constraint = {"annual_inc": [mvpbc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraint)
assert report[0][1][0][0] == f"missing values proportion is between 30.0% and 80.0%"
assert report[0][1][0][1] == 1 # number of executions
assert report[0][1][0][2] == 1 # number of failures
def test_merge_missing_values_proportion_between_constraint_different_values():
m1 = missingValuesProportionBetweenConstraint(lower_fraction=0.2, upper_fraction=0.3)
m2 = missingValuesProportionBetweenConstraint(lower_fraction=0.1, upper_fraction=0.3)
with pytest.raises(AssertionError):
m1.merge(m2)
def test_merge_missing_values_proportion_between_constraint_same_values():
m1 = missingValuesProportionBetweenConstraint(lower_fraction=0.1, upper_fraction=0.5)
m2 = missingValuesProportionBetweenConstraint(lower_fraction=0.1, upper_fraction=0.5)
merged = m1.merge(m2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == "missing values proportion is between 10.0% and 50.0%"
assert message["firstField"] == "missing_values_proportion"
assert message["op"] == Op.Name(Op.BTWN)
assert pytest.approx(message["between"]["lowerValue"], 0.001) == 0.1
assert pytest.approx(message["between"]["upperValue"], 0.001) == 0.5
assert message["verbose"] is False
def test_serialization_deserialization_missing_values_proportion_between_constraint():
u1 = missingValuesProportionBetweenConstraint(lower_fraction=0.4, upper_fraction=0.7, verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
assert json_value["name"] == "missing values proportion is between 40.0% and 70.0%"
assert json_value["firstField"] == "missing_values_proportion"
assert json_value["op"] == Op.Name(Op.BTWN)
assert pytest.approx(json_value["between"]["lowerValue"], 0.001) == 0.4
assert pytest.approx(json_value["between"]["upperValue"], 0.001) == 0.7
assert json_value["verbose"] is True
def test_serialization_deserialization_missing_values_proportion_between_constraint_with_provided_name():
u1 = missingValuesProportionBetweenConstraint(lower_fraction=0.05, upper_fraction=0.1, name="missing values constraint", verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
assert json_value["name"] == "missing values constraint"
assert json_value["firstField"] == "missing_values_proportion"
assert json_value["op"] == Op.Name(Op.BTWN)
assert pytest.approx(json_value["between"]["lowerValue"], 0.001) == 0.05
assert pytest.approx(json_value["between"]["upperValue"], 0.001) == 0.1
assert json_value["verbose"] is True
def test_missing_values_proportion_between_constraint_wrong_datatype():
with pytest.raises(ValueError):
missingValuesProportionBetweenConstraint(lower_fraction=0, upper_fraction=1.0, verbose=True)
with pytest.raises(ValueError):
missingValuesProportionBetweenConstraint(lower_fraction=0.2, upper_fraction=0.1, verbose=True)
with pytest.raises(ValueError):
missingValuesProportionBetweenConstraint(lower_fraction=0.4, upper_fraction=2)
with pytest.raises(ValueError):
missingValuesProportionBetweenConstraint(lower_fraction="1", upper_fraction=2.0, verbose=False)
def test_column_values_type_equals_constraint_apply(local_config_path, df_lending_club):
cvtc = columnValuesTypeEqualsConstraint(expected_type=InferredType.Type.FRACTIONAL)
summary_constraints = {"annual_inc": [cvtc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints)
assert report[0][1][0][0] == f"type of the column values is {InferredType.Type.Name(InferredType.Type.FRACTIONAL)}"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_merge_column_values_type_equals_constraint_different_values():
c1 = columnValuesTypeEqualsConstraint(expected_type=InferredType.Type.FRACTIONAL)
c2 = columnValuesTypeEqualsConstraint(expected_type=InferredType.Type.NULL)
with pytest.raises(AssertionError):
c1.merge(c2)
def test_merge_column_values_type_equals_constraint_same_values():
u1 = columnValuesTypeEqualsConstraint(expected_type=1)
u2 = columnValuesTypeEqualsConstraint(expected_type=1)
merged = u1.merge(u2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == f"type of the column values is {InferredType.Type.Name(1)}"
assert message["firstField"] == "column_values_type"
assert message["op"] == Op.Name(Op.EQ)
assert message["value"] == 1
assert message["verbose"] is False
def test_serialization_deserialization_column_values_type_equals_constraint():
u1 = columnValuesTypeEqualsConstraint(expected_type=InferredType.Type.STRING, verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
assert json_value["name"] == f"type of the column values is {InferredType.Type.Name(InferredType.Type.STRING)}"
assert json_value["firstField"] == "column_values_type"
assert json_value["op"] == Op.Name(Op.EQ)
assert json_value["value"] == InferredType.Type.STRING
assert json_value["verbose"] is True
def test_column_values_type_equals_constraint_wrong_datatype():
with pytest.raises(ValueError):
columnValuesTypeEqualsConstraint(expected_type=2.3, verbose=True)
with pytest.raises(ValueError):
columnValuesTypeEqualsConstraint(expected_type="FRACTIONAL", verbose=True)
def test_column_values_type_in_set_constraint_apply(local_config_path, df_lending_club):
type_set = {InferredType.Type.FRACTIONAL, InferredType.Type.INTEGRAL}
cvtc = columnValuesTypeInSetConstraint(type_set=type_set)
summary_constraint = {"annual_inc": [cvtc]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraint)
type_names = {InferredType.Type.Name(t) for t in type_set}
assert report[0][1][0][0] == f"type of the column values is in {type_names}"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_merge_column_values_type_in_set_constraint_different_values():
c1 = columnValuesTypeInSetConstraint(type_set={InferredType.Type.INTEGRAL, InferredType.Type.STRING})
c2 = columnValuesTypeInSetConstraint(type_set={InferredType.Type.INTEGRAL, InferredType.Type.NULL})
with pytest.raises(AssertionError):
c1.merge(c2)
def test_merge_column_values_type_in_set_constraint_same_values():
type_set = {InferredType.Type.INTEGRAL, InferredType.Type.STRING}
c1 = columnValuesTypeInSetConstraint(type_set=type_set)
c2 = columnValuesTypeInSetConstraint(type_set=type_set)
merged = c1.merge(c2)
message = json.loads(message_to_json(merged.to_protobuf()))
type_names = {InferredType.Type.Name(t) for t in type_set}
assert message["name"] == f"type of the column values is in {type_names}"
assert message["firstField"] == "column_values_type"
assert message["op"] == Op.Name(Op.IN)
assert message["referenceSet"] == list(type_set)
assert message["verbose"] is False
def test_serialization_deserialization_column_values_type_in_set_constraint():
type_set = {InferredType.Type.STRING, InferredType.Type.INTEGRAL}
u1 = columnValuesTypeInSetConstraint(type_set=type_set, verbose=True)
u1.from_protobuf(u1.to_protobuf())
json_value = json.loads(message_to_json(u1.to_protobuf()))
type_names = {InferredType.Type.Name(t) if isinstance(t, int) else InferredType.Type.Name(t.type) for t in type_set}
assert json_value["name"] == f"type of the column values is in {type_names}"
assert json_value["firstField"] == "column_values_type"
assert json_value["op"] == Op.Name(Op.IN)
assert json_value["referenceSet"] == list(type_set)
assert json_value["verbose"] is True
def test_column_values_type_in_set_constraint_wrong_datatype():
with pytest.raises(TypeError):
columnValuesTypeInSetConstraint(type_set={2.3, 1}, verbose=True)
with pytest.raises(TypeError):
columnValuesTypeInSetConstraint(type_set={"FRACTIONAL", 2}, verbose=True)
with pytest.raises(TypeError):
columnValuesTypeInSetConstraint(type_set="ABCD")
def test_entropy_between_constraint_numeric_apply(local_config_path, df_lending_club):
ec = approximateEntropyBetweenConstraint(lower_value=0.4, upper_value=0.5)
summary_constraint = {"annual_inc": [ec]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints=summary_constraint)
# numeric
assert report[0][1][0][0] == f"approximate entropy is between 0.4 and 0.5"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 1
def test_entropy_between_constraint_categorical_apply(local_config_path, df_lending_club):
ec = approximateEntropyBetweenConstraint(lower_value=0.6, upper_value=1.5)
summary_constraint = {"grade": [ec]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints=summary_constraint)
# categorical
assert report[0][1][0][0] == f"approximate entropy is between 0.6 and 1.5"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 0
def test_entropy_between_constraint_null_apply(local_config_path, df_lending_club):
ec = approximateEntropyBetweenConstraint(lower_value=0.6, upper_value=1.5)
summary_constraint = {"member_id": [ec]}
report = _apply_summary_constraints_on_dataset(df_lending_club, local_config_path, summary_constraints=summary_constraint)
# categorical
assert report[0][1][0][0] == f"approximate entropy is between 0.6 and 1.5"
assert report[0][1][0][1] == 1
assert report[0][1][0][2] == 1
def test_merge_entropy_between_constraint_different_values():
e1 = approximateEntropyBetweenConstraint(lower_value=1, upper_value=2.4)
e2 = approximateEntropyBetweenConstraint(lower_value=1, upper_value=2.6)
with pytest.raises(AssertionError):
e1.merge(e2)
def test_merge_entropy_between_constraint_same_values():
e1 = approximateEntropyBetweenConstraint(lower_value=1, upper_value=3.2)
e2 = approximateEntropyBetweenConstraint(lower_value=1, upper_value=3.2)
merged = e1.merge(e2)
message = json.loads(message_to_json(merged.to_protobuf()))
assert message["name"] == f"approximate entropy is between 1 and 3.2"
assert message["firstField"] == "entropy"
assert message["op"] == Op.Name(Op.BTWN)
assert pytest.approx(message["between"]["lowerValue"], 0.01) == 1
assert pytest.approx(message["between"]["upperValue"], 0.01) == 3.2
assert message["verbose"] is False
def test_serialization_deserialization_entropy_between_constraint():
e1 = approximateEntropyBetweenConstraint(lower_value=0.3, upper_value=1.2, verbose=True)
e1.from_protobuf(e1.to_protobuf())
json_value = json.loads(message_to_json(e1.to_protobuf()))
assert json_value["name"] == f"approximate entropy is between 0.3 and 1.2"
assert json_value["firstField"] == "entropy"
assert json_value["op"] == Op.Name(Op.BTWN)
assert pytest.approx(json_value["between"]["lowerValue"], 0.01) == 0.3
assert pytest.approx(json_value["between"]["upperValue"], 0.01) == 1.2
assert json_value["verbose"] is True
def test_entropy_between_constraint_wrong_datatype():
with pytest.raises(TypeError):
approximateEntropyBetweenConstraint(lower_value="2", upper_value=4, verbose=True)
with pytest.raises(ValueError):
approximateEntropyBetweenConstraint(lower_value=-2, upper_value=3, verbose=True)
with pytest.raises(ValueError):
approximateEntropyBetweenConstraint(lower_value=1, upper_value=0.9)
def test_ks_test_p_value_greater_than_constraint_false(df_lending_club, local_config_path):
norm_values = np.random.normal(loc=10000, scale=2.0, size=15000)
kspval = parametrizedKSTestPValueGreaterThanConstraint(norm_values, p_value=0.1)
dc = DatasetConstraints(None, summary_constraints={"loan_amnt": [kspval]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint failed once
assert report[0][1][0][2] == 1
def test_ks_test_p_value_greater_than_constraint_true(df_lending_club, local_config_path):
kspval = parametrizedKSTestPValueGreaterThanConstraint(df_lending_club["loan_amnt"].values, p_value=0.1)
dc = DatasetConstraints(None, summary_constraints={"loan_amnt": [kspval]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint was successfully executed
assert report[0][1][0][2] == 0
def test_ks_test_p_value_greater_than_constraint_merge_different_values():
ks1 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 3.0])
ks2 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 4.0])
with pytest.raises(AssertionError):
ks1.merge(ks2)
ks1 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 3.0], p_value=0.1)
ks2 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 3.0], p_value=0.5)
with pytest.raises(AssertionError):
ks1.merge(ks2)
def test_ks_test_p_value_greater_than_constraint_merge_same_values():
ks1 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 3.0])
ks2 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 3.0])
merged = ks1.merge(ks2)
TEST_LOGGER.info(f"Serialize the merged parametrizedKSTestPValueGreaterThanConstraint:\n {merged.to_protobuf()}")
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == f"parametrized KS test p-value is greater than 0.05"
assert json_value["op"] == Op.Name(Op.GT)
assert json_value["firstField"] == "ks_test"
assert pytest.approx(json_value["value"], 0.01) == 0.05
assert len(json_value["continuousDistribution"]["sketch"]["sketch"]) > 0
assert json_value["verbose"] is False
def test_serialization_deserialization_ks_test_p_value_greater_than_constraint():
ks1 = parametrizedKSTestPValueGreaterThanConstraint([1.0, 2.0, 3.0], p_value=0.15, verbose=True)
ks1.from_protobuf(ks1.to_protobuf())
json_value = json.loads(message_to_json(ks1.to_protobuf()))
TEST_LOGGER.info(f"Serialize parametrizedKSTestPValueGreaterThanConstraint from deserialized representation:\n {ks1.to_protobuf()}")
assert json_value["name"] == f"parametrized KS test p-value is greater than 0.15"
assert json_value["op"] == Op.Name(Op.GT)
assert json_value["firstField"] == "ks_test"
assert pytest.approx(json_value["value"], 0.01) == 0.15
assert len(json_value["continuousDistribution"]["sketch"]["sketch"]) > 0
assert json_value["verbose"] is True
def test_ks_test_p_value_greater_than_constraint_wrong_datatype():
with pytest.raises(ValueError):
parametrizedKSTestPValueGreaterThanConstraint([1, 2, 3], p_value=0.15, verbose=True)
with pytest.raises(TypeError):
parametrizedKSTestPValueGreaterThanConstraint("abc", p_value=0.15, verbose=True)
with pytest.raises(ValueError):
parametrizedKSTestPValueGreaterThanConstraint([1, 2, 3], p_value=1.2, verbose=True)
def test_column_kl_divergence_less_than_constraint_continuous_false(df_lending_club, local_config_path):
norm_values = np.random.normal(loc=10000, scale=2.0, size=15000)
kld = columnKLDivergenceLessThanConstraint(norm_values, threshold=2.1)
dc = DatasetConstraints(None, summary_constraints={"loan_amnt": [kld]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint failed once
assert report[0][1][0][2] == 1
def test_column_kl_divergence_less_than_constraint_continuous_true(df_lending_club, local_config_path):
kld = columnKLDivergenceLessThanConstraint(df_lending_club["loan_amnt"].values, threshold=0.1)
dc = DatasetConstraints(None, summary_constraints={"loan_amnt": [kld]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint was successfully executed
assert report[0][1][0][2] == 0
def test_column_kl_divergence_less_than_constraint_discrete_true(df_lending_club, local_config_path):
np.random.seed(2)
dist_data = np.random.choice(list(set(df_lending_club["grade"].values)), 100)
kld = columnKLDivergenceLessThanConstraint(dist_data, threshold=1.3)
dc = DatasetConstraints(None, summary_constraints={"grade": [kld]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint was successfully executed
assert report[0][1][0][2] == 0
def test_column_kl_divergence_less_than_constraint_discrete_false(df_lending_club, local_config_path):
np.random.seed(2)
dist_data = np.random.choice(list(set(df_lending_club["grade"].values)), 1000, p=[0.005, 0.005, 0.005, 0.03, 0.19, 0.765])
kld = columnKLDivergenceLessThanConstraint(dist_data, threshold=0.4)
dc = DatasetConstraints(None, summary_constraints={"grade": [kld]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint was not successfully executed
assert report[0][1][0][2] == 1
def test_column_kl_divergence_less_than_constraint_merge_different_values():
ks1 = columnKLDivergenceLessThanConstraint([1.0, 2.0, 3.0])
ks2 = columnKLDivergenceLessThanConstraint([1.0, 2.0, 4.0])
with pytest.raises(AssertionError):
ks1.merge(ks2)
ks1 = columnKLDivergenceLessThanConstraint([1.0, 2.0, 3.0], threshold=0.1)
ks2 = columnKLDivergenceLessThanConstraint([1.0, 2.0, 3.0], threshold=0.5)
with pytest.raises(AssertionError):
ks1.merge(ks2)
def test_column_kl_divergence_less_than_constraint_merge_same_values():
ks1 = columnKLDivergenceLessThanConstraint([1.0, 2.0, 3.0])
ks2 = columnKLDivergenceLessThanConstraint([1.0, 2.0, 3.0])
merged = ks1.merge(ks2)
TEST_LOGGER.info(f"Serialize the merged parametrizedKSTestPValueGreaterThanConstraint:\n {merged.to_protobuf()}")
json_value = json.loads(message_to_json(merged.to_protobuf()))
print(json_value)
assert json_value["name"] == f"KL Divergence is less than 0.5"
assert json_value["op"] == Op.Name(Op.LT)
assert json_value["firstField"] == "kl_divergence"
assert pytest.approx(json_value["value"], 0.01) == 0.5
assert len(json_value["continuousDistribution"]["sketch"]["sketch"]) > 0
assert json_value["verbose"] is False
def test_serialization_deserialization_column_kl_divergence_less_than_constraint_discrete():
ks1 = columnKLDivergenceLessThanConstraint([1, 2, 3], threshold=0.15, verbose=True)
ks1.from_protobuf(ks1.to_protobuf())
json_value = json.loads(message_to_json(ks1.to_protobuf()))
TEST_LOGGER.info(f"Serialize columnKLDivergenceLessThanConstraint from deserialized representation:\n {ks1.to_protobuf()}")
assert json_value["name"] == f"KL Divergence is less than 0.15"
assert json_value["op"] == Op.Name(Op.LT)
assert json_value["firstField"] == "kl_divergence"
assert pytest.approx(json_value["value"], 0.01) == 0.15
assert len(json_value["discreteDistribution"]["frequentItems"]["items"]) == 3
assert json_value["discreteDistribution"]["totalCount"] == 3
assert json_value["verbose"] is True
def test_serialization_deserialization_column_kl_divergence_less_than_constraint_continuous():
ks1 = columnKLDivergenceLessThanConstraint([2.0, 2.0, 3.0], threshold=0.15, verbose=True)
ks1.from_protobuf(ks1.to_protobuf())
json_value = json.loads(message_to_json(ks1.to_protobuf()))
TEST_LOGGER.info(f"Serialize columnKLDivergenceLessThanConstraint from deserialized representation:\n {ks1.to_protobuf()}")
assert json_value["name"] == f"KL Divergence is less than 0.15"
assert json_value["op"] == Op.Name(Op.LT)
assert json_value["firstField"] == "kl_divergence"
assert pytest.approx(json_value["value"], 0.01) == 0.15
assert len(json_value["continuousDistribution"]["sketch"]["sketch"]) > 0
assert json_value["verbose"] is True
def test_column_kl_divergence_less_than_constraint_wrong_datatype():
with pytest.raises(TypeError):
columnKLDivergenceLessThanConstraint([1.0, "abc", 3], threshold=0.15, verbose=True)
with pytest.raises(TypeError):
columnKLDivergenceLessThanConstraint("abc", threshold=0.5, verbose=True)
with pytest.raises(TypeError):
columnKLDivergenceLessThanConstraint([1, 2, 3], threshold="1.2", verbose=True)
def test_chi_squared_test_p_value_greater_than_constraint_true(df_lending_club, local_config_path):
test_values = ["A"] * 6 + ["B"] * 13 + ["C"] * 25 + ["D"] * 3 + ["E"] + ["F"] * 2
kspval = columnChiSquaredTestPValueGreaterThanConstraint(test_values, p_value=0.1)
dc = DatasetConstraints(None, summary_constraints={"grade": [kspval]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint was successful
assert report[0][1][0][2] == 0
def test_chi_squared_test_p_value_greater_than_constraint_false(df_lending_club, local_config_path):
test_values = {"C": 1, "B": 5, "A": 2, "D": 18, "E": 32, "F": 1}
chi = columnChiSquaredTestPValueGreaterThanConstraint(test_values, p_value=0.05)
dc = DatasetConstraints(None, summary_constraints={"grade": [chi]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
report = profile.apply_summary_constraints()
# check if all of the rows have been reported
assert report[0][1][0][1] == 1
# check if the constraint failed
assert report[0][1][0][2] == 1
def test_chi_squared_test_p_value_greater_than_constraint_merge_different_values():
ks1 = columnChiSquaredTestPValueGreaterThanConstraint([1, 2, 3])
ks2 = columnChiSquaredTestPValueGreaterThanConstraint([1, 2, 4])
with pytest.raises(AssertionError):
ks1.merge(ks2)
ks1 = columnChiSquaredTestPValueGreaterThanConstraint([1, 2, 3], p_value=0.1)
ks2 = columnChiSquaredTestPValueGreaterThanConstraint([1, 2, 3], p_value=0.5)
with pytest.raises(AssertionError):
ks1.merge(ks2)
def test_column_chi_squared_test_p_value_greater_than_constraint_merge_same_values():
ks1 = columnChiSquaredTestPValueGreaterThanConstraint([1, 3, "A"])
ks2 = columnChiSquaredTestPValueGreaterThanConstraint([1, "A", 3])
merged = ks1.merge(ks2)
TEST_LOGGER.info(f"Serialize the merged columnChiSquaredTestPValueGreaterThanConstraint:\n {merged.to_protobuf()}")
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == f"Chi-Squared test p-value is greater than 0.05"
assert json_value["op"] == Op.Name(Op.GT)
assert json_value["firstField"] == "chi_squared_test"
assert pytest.approx(json_value["value"], 0.01) == 0.05
assert len(json_value["discreteDistribution"]["frequentItems"]["items"]) == 3
assert json_value["verbose"] is False
def test_serialization_deserialization_chi_squared_test_p_value_greater_than_constraint():
ks1 = columnChiSquaredTestPValueGreaterThanConstraint([1, 2, "A", "B"], p_value=0.15, verbose=True)
ks1.from_protobuf(ks1.to_protobuf())
json_value = json.loads(message_to_json(ks1.to_protobuf()))
TEST_LOGGER.info(f"Serialize columnChiSquaredTestPValueGreaterThanConstraint from deserialized representation:\n {ks1.to_protobuf()}")
assert json_value["name"] == f"Chi-Squared test p-value is greater than 0.15"
assert json_value["op"] == Op.Name(Op.GT)
assert json_value["firstField"] == "chi_squared_test"
assert pytest.approx(json_value["value"], 0.01) == 0.15
assert len(json_value["discreteDistribution"]["frequentItems"]["items"]) == 4
assert json_value["verbose"] is True
def test_chi_squared_test_p_value_greater_than_constraint_wrong_datatype():
with pytest.raises(ValueError):
columnChiSquaredTestPValueGreaterThanConstraint([1.0, 2, 3], p_value=0.15, verbose=True)
with pytest.raises(TypeError):
columnChiSquaredTestPValueGreaterThanConstraint("abc", p_value=0.15, verbose=True)
with pytest.raises(ValueError):
columnChiSquaredTestPValueGreaterThanConstraint({"A": 0.3, "B": 1, "C": 12}, p_value=0.2, verbose=True)
with pytest.raises(TypeError):
columnChiSquaredTestPValueGreaterThanConstraint(["a", "b", "c"], p_value=1.2, verbose=True)
def test_generate_default_constraints_categorical(local_config_path):
usernames = ["jd123", "<EMAIL>", "bobsmith", "_anna_"]
emails = ["<EMAIL>", "<EMAIL>", "<EMAIL>", "<EMAIL>"]
data = pd.DataFrame(
{
"username": usernames,
"email": emails,
}
)
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(data, "test.data")
generated_constraints = profile.generate_constraints()
json_summ = json.loads(message_to_json(generated_constraints.to_protobuf()))
constraints_username = json_summ["summaryConstraints"]["username"]["constraints"]
constraints_email = json_summ["summaryConstraints"]["email"]["constraints"]
# username constraints
assert len(constraints_username) == 3 # column value type equals, unique count between and most common value in set
assert constraints_username[0]["name"] == "type of the column values is STRING"
assert constraints_username[0]["firstField"] == "column_values_type"
assert constraints_username[0]["value"] == InferredType.STRING
assert constraints_username[0]["op"] == Op.Name(Op.EQ)
assert constraints_username[0]["verbose"] is False
# there are 4 unique values in the df for username, so the unique count between is in the range 4-1 and 4+1
assert constraints_username[1]["name"] == "number of unique values is between 3 and 5"
assert constraints_username[1]["firstField"] == "unique_count"
assert constraints_username[1]["op"] == Op.Name(Op.BTWN)
assert pytest.approx(constraints_username[1]["between"]["lowerValue"], 0.001) == 3
assert pytest.approx(constraints_username[1]["between"]["upperValue"], 0.001) == 5
assert constraints_username[1]["verbose"] is False
assert f"most common value is in" in constraints_username[2]["name"] # set has different order
assert constraints_username[2]["firstField"] == "most_common_value"
assert constraints_username[2]["op"] == Op.Name(Op.IN)
assert set(constraints_username[2]["referenceSet"]) == set(usernames)
assert constraints_username[2]["verbose"] is False
# email constraints
assert len(constraints_email) == 3 # column value type equals, unique count between and most common value in set
assert constraints_email[0]["name"] == "type of the column values is STRING"
assert constraints_email[0]["firstField"] == "column_values_type"
assert constraints_email[0]["value"] == InferredType.STRING
assert constraints_email[0]["op"] == Op.Name(Op.EQ)
assert constraints_email[0]["verbose"] is False
# there are 4 unique values in the df for username, so the unique count between is in the range 4-1 and 4+1
assert constraints_email[1]["name"] == "number of unique values is between 3 and 5"
assert constraints_email[1]["firstField"] == "unique_count"
assert constraints_email[1]["op"] == Op.Name(Op.BTWN)
assert pytest.approx(constraints_email[1]["between"]["lowerValue"], 0.001) == 3
assert pytest.approx(constraints_email[1]["between"]["upperValue"], 0.001) == 5
assert constraints_email[1]["verbose"] is False
assert f"most common value is in" in constraints_email[2]["name"] # set has different order
assert constraints_email[2]["firstField"] == "most_common_value"
assert constraints_email[2]["op"] == Op.Name(Op.IN)
assert set(constraints_email[2]["referenceSet"]) == set(emails)
assert constraints_email[2]["verbose"] is False
def test_generate_default_constraints_numeric(local_config_path):
data = pd.DataFrame(
{
"followers": [1525, 12268, 51343, 867, 567, 100265, 22113, 3412],
"points": [23.4, 123.2, 432.22, 32.1, 44.1, 42.2, 344.2, 42.1],
}
)
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(data, "test.data")
generated_constraints = profile.generate_constraints()
json_summ = json.loads(message_to_json(generated_constraints.to_protobuf()))
followers_constraints = json_summ["summaryConstraints"]["followers"]["constraints"]
points_constraints = json_summ["summaryConstraints"]["points"]["constraints"]
assert len(followers_constraints) == 5
# min greater than 0, mean between mean-stddev and mean+stddev,
# column values type, most common value in set, unique count between
followers_mean = data["followers"].mean()
followers_stddev = data["followers"].std()
lower_followers = followers_mean - followers_stddev
upper_followers = followers_mean + followers_stddev
assert followers_constraints[0]["name"] == "minimum is greater than or equal to 0"
assert followers_constraints[1]["name"] == f"mean is between {lower_followers} and {upper_followers}"
assert followers_constraints[2]["name"] == "type of the column values is INTEGRAL"
assert followers_constraints[3]["name"] == "number of unique values is between 7 and 9" # we have 8 unique values in the df
assert "most common value is in" in followers_constraints[4]["name"]
assert len(points_constraints) == 4
# min greater than 0, mean between mean-stddev and mean+stddev,
# column values type, most common value in set
points_mean = data["points"].mean()
points_stddev = data["points"].std()
lower_points = points_mean - points_stddev
upper_points = points_mean + points_stddev
assert points_constraints[0]["name"] == "minimum is greater than or equal to 0"
assert points_constraints[1]["name"] == f"mean is between {lower_points} and {upper_points}"
assert points_constraints[2]["name"] == "type of the column values is FRACTIONAL"
assert "most common value is in" in points_constraints[3]["name"]
def test_generate_default_constraints_mixed(local_config_path):
users = ["jd123", "<EMAIL>", "bobsmith", "_anna_"]
followers = [1525, 12268, 51343, 867]
data = pd.DataFrame({"username": users, "followers": followers, "null": [None, None, None, None]})
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(data, "test.data")
generated_constraints = profile.generate_constraints()
json_summ = json.loads(message_to_json(generated_constraints.to_protobuf()))
username_constraints = json_summ["summaryConstraints"]["username"]["constraints"]
followers_constraints = json_summ["summaryConstraints"]["followers"]["constraints"]
# no constraints should be generated for the null column since all values are None
assert "null" not in json_summ["summaryConstraints"]
assert len(username_constraints) == 3 # column value type equals, unique count between and most common value in set
assert username_constraints[0]["name"] == "type of the column values is STRING"
assert username_constraints[1]["name"] == "number of unique values is between 3 and 5" # we have 4 unique values in df
assert f"most common value is in" in username_constraints[2]["name"]
assert len(followers_constraints) == 5
# min greater than 0, mean between mean-stddev and mean+stddev,
# column values type, most common value in set, unique count between
followers_mean = data["followers"].mean()
followers_stddev = data["followers"].std()
lower_followers = followers_mean - followers_stddev
upper_followers = followers_mean + followers_stddev
assert followers_constraints[0]["name"] == "minimum is greater than or equal to 0"
assert followers_constraints[1]["name"] == f"mean is between {lower_followers} and {upper_followers}"
assert followers_constraints[2]["name"] == "type of the column values is INTEGRAL"
assert followers_constraints[3]["name"] == "number of unique values is between 3 and 5" # we have 4 unique values in the df
assert f"most common value is in" in followers_constraints[4]["name"]
def _apply_value_constraints_on_dataset(df_lending_club, local_config_path, value_constraints=None, multi_column_value_constraints=None):
dc = DatasetConstraints(None, value_constraints=value_constraints, multi_column_value_constraints=multi_column_value_constraints)
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df_lending_club, "test.data", constraints=dc)
session.close()
return dc.report()
def test_sum_of_row_values_of_multiple_columns_constraint_apply(local_config_path, df_lending_club):
col_set = ["loan_amnt", "int_rate"]
srveq = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value="total_pymnt", verbose=False)
multi_column_value_constraints = [srveq]
report = _apply_value_constraints_on_dataset(df_lending_club, local_config_path, multi_column_value_constraints=multi_column_value_constraints)
assert report[0][0] == f"The sum of the values of loan_amnt and int_rate is equal to the corresponding value of the column total_pymnt"
assert report[0][1] == 50
assert report[0][2] == 50
def test_sum_of_row_values_of_multiple_columns_constraint_apply_true(local_config_path):
colset = ["A", "B"]
srveq = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=colset, value=100, verbose=False)
dc = DatasetConstraints(None, multi_column_value_constraints=[srveq])
config = load_config(local_config_path)
session = session_from_config(config)
df = pd.DataFrame(
[
{"A": 1, "B": 2}, # fail
{"A": 99, "B": 1}, # pass
{"A": 32, "B": 68}, # pass
{"A": 100, "B": 2}, # fail
{"A": 83, "B": 18}, # fail
]
)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
report = dc.report()
assert report[0][0] == f"The sum of the values of A and B is equal to 100"
assert report[0][1] == 5
assert report[0][2] == 3
def test_merge_sum_of_row_values_different_values():
cpvis1 = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=["annual_inc", "loan_amnt"], value="grade")
cpvis2 = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=["annual_inc", "total_pymnt"], value="grade")
cpvis3 = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=["annual_inc", "total_pymnt"], value="loan_amnt")
with pytest.raises(AssertionError):
cpvis1.merge(cpvis2)
with pytest.raises(AssertionError):
cpvis2.merge(cpvis3)
def test_merge_sum_of_row_values_constraint_valid():
col_set = ["loan_amnt", "int_rate"]
srveq1 = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value="total_pymnt", verbose=False)
srveq1.total = 5
srveq1.failures = 1
srveq2 = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value="total_pymnt", verbose=False)
srveq2.total = 3
srveq2.failures = 2
srveq_merged = srveq1.merge(srveq2)
json_value = json.loads(message_to_json(srveq_merged.to_protobuf()))
assert json_value["name"] == f"The sum of the values of loan_amnt and int_rate is equal to the corresponding value of the column total_pymnt"
assert json_value["dependentColumns"] == col_set
assert json_value["op"] == Op.Name(Op.EQ)
assert json_value["referenceColumns"][0] == "total_pymnt"
assert json_value["verbose"] is False
report = srveq_merged.report()
assert report[1] == 8
assert report[2] == 3
def test_serialization_deserialization_sum_of_row_values_constraint():
columns = ["A", "B", "C"]
c = sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=columns, value=6, verbose=True)
c.from_protobuf(c.to_protobuf())
json_value = json.loads(message_to_json(c.to_protobuf()))
assert json_value["name"] == f"The sum of the values of A, B and C is equal to 6"
assert json_value["dependentColumns"] == columns
assert json_value["op"] == Op.Name(Op.EQ)
assert pytest.approx(json_value["value"], 0.01) == 6
assert json_value["internalDependentColumnsOp"] == Op.Name(Op.SUM)
assert json_value["verbose"] is True
def test_sum_of_row_values_constraint_invalid_params():
with pytest.raises(TypeError):
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=1, value="B")
with pytest.raises(TypeError):
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=[1, 2], value="B")
with pytest.raises(TypeError):
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=1, value=["b"])
def test_multi_column_value_constraints_logical_operation(local_config_path):
a_gt_b = columnValuesAGreaterThanBConstraint("col1", "col2")
df = pd.DataFrame({"col1": [4, 5, 6, 7], "col2": [0, 1, 2, 3]})
dc = DatasetConstraints(None, multi_column_value_constraints=[a_gt_b])
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
report = dc.report()
assert len(report[0]) == 3
assert (
report[0][1] == 4
and report[0][2] == 0
and report[0][0] == f"The values of the column col1 are greater than the corresponding values of the column col2"
)
def test_multi_column_value_constraints_merge_error():
mcvc1 = columnValuesAGreaterThanBConstraint("col1", "col2")
mcvc2 = MultiColumnValueConstraint("col1", op=Op.GT, reference_columns="col5")
with pytest.raises(AssertionError):
mcvc1.merge(mcvc2)
mcvc1 = columnValuesAGreaterThanBConstraint("col1", "col2")
mcvc2 = MultiColumnValueConstraint("col4", op=Op.GT, reference_columns="col2")
with pytest.raises(AssertionError):
mcvc1.merge(mcvc2)
mcvc1 = columnValuesAGreaterThanBConstraint("col1", "col2")
mcvc2 = MultiColumnValueConstraint("col1", op=Op.EQ, reference_columns="col2")
with pytest.raises(AssertionError):
mcvc1.merge(mcvc2)
mcvc1 = columnValuesAGreaterThanBConstraint("col1", "col2")
mcvc2 = MultiColumnValueConstraint("col1", op=Op.GT, value=2)
with pytest.raises(AssertionError):
mcvc1.merge(mcvc2)
def test_multi_column_value_constraints_merge_valid():
mcvc1 = columnValuesAGreaterThanBConstraint("col1", "col2")
mcvc2 = MultiColumnValueConstraint("col1", op=Op.GT, reference_columns="col2", name=mcvc1.name)
merged = mcvc1.merge(mcvc2)
pre_merge_json = json.loads(message_to_json(mcvc1.to_protobuf()))
merge_json = json.loads(message_to_json(merged.to_protobuf()))
assert pre_merge_json["name"] == merge_json["name"]
assert pre_merge_json["dependentColumn"] == merge_json["dependentColumn"]
assert pre_merge_json["referenceColumns"] == merge_json["referenceColumns"]
assert pre_merge_json["op"] == merge_json["op"]
assert pre_merge_json["verbose"] == merge_json["verbose"]
def test_multi_column_value_constraints_invalid_init():
with pytest.raises(ValueError):
mcvc = MultiColumnValueConstraint(None, op=Op.GT, reference_columns="col2")
with pytest.raises(TypeError):
mcvc = MultiColumnValueConstraint(1, op=Op.GT, reference_columns="col2")
with pytest.raises(ValueError):
mcvc = MultiColumnValueConstraint("a", op=Op.GT, reference_columns="col2", value=2)
with pytest.raises(ValueError):
mcvc = MultiColumnValueConstraint("a", op=Op.GT)
with pytest.raises(ValueError):
mcvc = MultiColumnValueConstraint("a", op=Op.GT, internal_dependent_cols_op=Op.GT)
def test_multi_column_value_constraints_serialization_reference_columns():
mcvc1 = MultiColumnValueConstraint(dependent_columns=["col1", "col2"], reference_columns=["col5", "col6"], op=Op.EQ)
mcvc2 = MultiColumnValueConstraint.from_protobuf(mcvc1.to_protobuf())
mcvc1_json = json.loads(message_to_json(mcvc1.to_protobuf()))
mcvc2_json = json.loads(message_to_json(mcvc2.to_protobuf()))
mcvc1.merge(mcvc2)
mcvc2.merge(mcvc1)
assert mcvc1_json["name"] == mcvc2_json["name"]
assert mcvc1.to_protobuf().dependent_columns == mcvc2.to_protobuf().dependent_columns
assert mcvc1.to_protobuf().reference_columns == mcvc2.to_protobuf().reference_columns
assert mcvc1_json["op"] == mcvc2_json["op"]
assert mcvc1_json["verbose"] == mcvc2_json["verbose"]
def test_multi_column_value_constraints_serialization_value():
mcvc1 = MultiColumnValueConstraint(["col1", "col2"], op=Op.GT, value=2)
mcvc2 = MultiColumnValueConstraint.from_protobuf(mcvc1.to_protobuf())
mcvc1_json = json.loads(message_to_json(mcvc1.to_protobuf()))
mcvc2_json = json.loads(message_to_json(mcvc2.to_protobuf()))
mcvc1.merge(mcvc2)
mcvc2.merge(mcvc1)
assert mcvc1_json["name"] == mcvc2_json["name"]
assert mcvc1.to_protobuf().dependent_columns == mcvc2.to_protobuf().dependent_columns
assert mcvc1_json["value"] == mcvc2_json["value"]
assert mcvc1_json["op"] == mcvc2_json["op"]
assert mcvc1_json["verbose"] == mcvc2_json["verbose"]
def test_multi_column_value_constraints_serialization_value_set():
mcvc1 = MultiColumnValueConstraint(["col1", "col2"], op=Op.GT, value=set([1, 2]))
mcvc2 = MultiColumnValueConstraint.from_protobuf(mcvc1.to_protobuf())
mcvc1_json = json.loads(message_to_json(mcvc1.to_protobuf()))
mcvc2_json = json.loads(message_to_json(mcvc2.to_protobuf()))
mcvc1.merge(mcvc2)
mcvc2.merge(mcvc1)
assert mcvc1_json["name"] == mcvc2_json["name"]
assert mcvc1.to_protobuf().dependent_columns == mcvc2.to_protobuf().dependent_columns
assert mcvc1.to_protobuf().value_set == mcvc2.to_protobuf().value_set
assert mcvc1_json["op"] == mcvc2_json["op"]
assert mcvc1_json["verbose"] == mcvc2_json["verbose"]
def test_column_pair_values_in_valid_set_constraint_apply(local_config_path, df_lending_club):
val_set = {("B", "B2"), ("C", "C2"), ("D", "D1")} # the second pair is found in the data set
cpvis = columnPairValuesInSetConstraint(column_A="grade", column_B="sub_grade", value_set=val_set)
multi_column_value_constraints = [cpvis]
report = _apply_value_constraints_on_dataset(df_lending_club, local_config_path, multi_column_value_constraints=multi_column_value_constraints)
assert report[0][0] == f"The pair of values of the columns grade and sub_grade are in {val_set}"
assert report[0][1] == 50
assert report[0][2] == 45 # 5 values are in the set
def test_merge_column_pair_values_in_valid_set_constraint_different_values():
val_set1 = {(12345, "B"), (41000.0, "C"), (42333, "D")}
cpvis1 = columnPairValuesInSetConstraint(column_A="annual_inc", column_B="grade", value_set=val_set1)
val_set2 = {(12345, "B"), (1111, "C"), (42333, "D")}
cpvis2 = columnPairValuesInSetConstraint(column_A="annual_inc", column_B="grade", value_set=val_set2)
cpvis3 = columnPairValuesInSetConstraint(column_A="some", column_B="grade", value_set=val_set2)
cpvis4 = columnPairValuesInSetConstraint(column_A="annual_inc", column_B="b", value_set=val_set1)
with pytest.raises(AssertionError):
cpvis1.merge(cpvis2)
with pytest.raises(AssertionError):
cpvis2.merge(cpvis3)
with pytest.raises(AssertionError):
cpvis1.merge(cpvis4)
def test_merge_column_pair_values_in_valid_set_constraint_valid():
val_set1 = {(12345, "B"), (41000.0, "C"), (42333, "D")}
cpvis1 = columnPairValuesInSetConstraint(column_A="annual_inc", column_B="grade", value_set=val_set1)
cpvis1.total = 5
cpvis1.failures = 1
cpvis2 = columnPairValuesInSetConstraint(column_A="annual_inc", column_B="grade", value_set=val_set1)
cpvis2.total = 3
cpvis2.failures = 2
cpvis_merged = cpvis1.merge(cpvis2)
json_value = json.loads(message_to_json(cpvis_merged.to_protobuf()))
col_set = ["annual_inc", "grade"]
assert json_value["name"] == f"The pair of values of the columns annual_inc and grade are in {val_set1}"
assert json_value["dependentColumns"] == col_set
assert json_value["op"] == Op.Name(Op.IN)
assert json_value["valueSet"] == [list(t) for t in val_set1]
assert json_value["verbose"] is False
report = cpvis_merged.report()
assert report[1] == 8
assert report[2] == 3
def test_serialization_deserialization_column_pair_values_in_valid_set_constraint():
val_set1 = {(12345, "B"), (41000.0, "C"), (42333, "D")}
c = columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set=val_set1, verbose=True)
c.from_protobuf(c.to_protobuf())
json_value = json.loads(message_to_json(c.to_protobuf()))
val_set1 = set(val_set1)
col_set = ["A", "B"]
assert json_value["name"] == f"The pair of values of the columns A and B are in {val_set1}"
assert json_value["dependentColumns"] == col_set
assert json_value["op"] == Op.Name(Op.IN)
assert json_value["valueSet"] == [list(t) for t in val_set1]
assert json_value["verbose"] is True
def test_column_pair_values_in_set_constraint_invalid_params():
with pytest.raises(TypeError):
columnPairValuesInSetConstraint(column_A=1, column_B="B", value_set={("A", "B")})
with pytest.raises(TypeError):
columnPairValuesInSetConstraint(column_A="A", column_B=["A"], value_set={("A", "B")})
with pytest.raises(TypeError):
columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set=1.0)
with pytest.raises(TypeError):
columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set="ABC")
def test_column_values_unique_within_row_constraint_apply(local_config_path, df_lending_club):
cvu = columnValuesUniqueWithinRow(column_A="grade", verbose=True)
multi_column_value_constraints = [cvu]
report = _apply_value_constraints_on_dataset(df_lending_club, local_config_path, multi_column_value_constraints=multi_column_value_constraints)
assert report[0][0] == f"The values of the column grade are unique within each row"
assert report[0][1] == 50
assert report[0][2] == 0
def test_merge_column_values_unique_within_row_constraint_different_values():
cvu1 = columnValuesUniqueWithinRow(column_A="A")
cvu2 = columnValuesUniqueWithinRow(column_A="A1", verbose=True)
with pytest.raises(AssertionError):
cvu1.merge(cvu2)
def test_merge_column_values_unique_within_row_constraint_valid():
cvu1 = columnValuesUniqueWithinRow(column_A="A")
cvu1.total = 5
cvu1.failures = 1
cvu2 = columnValuesUniqueWithinRow(column_A="A", verbose=True)
cvu2.total = 3
cvu2.failures = 2
merged = cvu1.merge(cvu2)
json_value = json.loads(message_to_json(merged.to_protobuf()))
assert json_value["name"] == f"The values of the column A are unique within each row"
assert json_value["dependentColumn"] == "A"
assert json_value["op"] == Op.Name(Op.NOT_IN)
assert json_value["referenceColumns"] == ["all"]
assert json_value["verbose"] is False
report = merged.report()
assert report[1] == 8
assert report[2] == 3
def test_serialization_deserialization_column_values_unique_within_row_constraint():
c = columnValuesUniqueWithinRow(column_A="A", verbose=True)
c.from_protobuf(c.to_protobuf())
json_value = json.loads(message_to_json(c.to_protobuf()))
assert json_value["name"] == f"The values of the column A are unique within each row"
assert json_value["dependentColumn"] == "A"
assert json_value["op"] == Op.Name(Op.NOT_IN)
assert json_value["referenceColumns"] == ["all"]
assert json_value["verbose"] is True
def test_column_values_unique_within_row_constraint_invalid_params():
with pytest.raises(TypeError):
columnValuesUniqueWithinRow(column_A=1)
with pytest.raises(TypeError):
columnValuesUniqueWithinRow(column_A=["A"])
def test_multicolumn_value_constraints_report(local_config_path):
data = pd.DataFrame(
{
"A": [50, 23, 42, 11],
"B": [52, 77, 58, 100],
}
)
val_set = {(1, 2), (3, 5)}
col_set = ["A", "B"]
constraints = [
columnValuesUniqueWithinRow(column_A="A", verbose=True),
columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set=val_set),
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value=100),
]
mcvc = MultiColumnValueConstraints(constraints)
report = _apply_value_constraints_on_dataset(data, local_config_path, multi_column_value_constraints=mcvc)
assert len(report) == 3
assert report[0][0] == "The values of the column A are unique within each row"
assert report[0][1] == 4
assert report[0][2] == 0
assert report[1][0] == f"The pair of values of the columns A and B are in {val_set}"
assert report[1][1] == 4
assert report[1][2] == 4
assert report[2][0] == "The sum of the values of A and B is equal to 100"
assert report[2][1] == 4
assert report[2][2] == 2
def test_multicolumn_value_constraints_serialization_deserialization():
val_set = {(1, 2), (3, 5)}
col_set = ["A", "B"]
constraints = [
columnValuesUniqueWithinRow(column_A="A", verbose=True),
columnPairValuesInSetConstraint(column_A="A", column_B="B", value_set=val_set),
sumOfRowValuesOfMultipleColumnsEqualsConstraint(columns=col_set, value=100),
]
mcvc = MultiColumnValueConstraints(constraints)
mcvc = MultiColumnValueConstraints.from_protobuf(mcvc.to_protobuf())
json_value = json.loads(message_to_json(mcvc.to_protobuf()))
multi_column_constraints = json_value["multiColumnConstraints"]
unique = multi_column_constraints[0]
pair_values = multi_column_constraints[1]
sum_of_values = multi_column_constraints[2]
assert len(multi_column_constraints) == 3
assert unique["name"] == f"The values of the column A are unique within each row"
assert unique["dependentColumn"] == "A"
assert unique["op"] == Op.Name(Op.NOT_IN)
assert unique["referenceColumns"] == ["all"]
assert unique["verbose"] is True
assert pair_values["name"] == f"The pair of values of the columns A and B are in {val_set}"
assert pair_values["dependentColumns"] == col_set
assert pair_values["op"] == Op.Name(Op.IN)
assert pair_values["valueSet"] == [list(t) for t in val_set]
assert pair_values["verbose"] is False
assert sum_of_values["name"] == f"The sum of the values of A and B is equal to 100"
assert sum_of_values["dependentColumns"] == col_set
assert sum_of_values["op"] == Op.Name(Op.EQ)
assert pytest.approx(sum_of_values["value"], 0.01) == 100
assert sum_of_values["internalDependentColumnsOp"] == Op.Name(Op.SUM)
assert sum_of_values["verbose"] is False
def test_value_constraints_executions_serialization(local_config_path, df_lending_club):
df = pd.DataFrame({"col1": list(range(100)), "col2": list(range(149, 49, -1))})
val_constraint = ValueConstraint(Op.LT, 10)
mc_val_constraint = columnValuesAGreaterThanBConstraint("col1", "col2")
value_constraints = {"col1": [val_constraint]}
dc = DatasetConstraints(None, value_constraints=value_constraints, multi_column_value_constraints=[mc_val_constraint])
config = load_config(local_config_path)
session = session_from_config(config)
profile = session.log_dataframe(df, "test.data", constraints=dc)
session.close()
report = dc.report()
val_constraint_proto = val_constraint.to_protobuf()
val_constraint_deser = ValueConstraint.from_protobuf(val_constraint_proto)
assert report[0][1][0][1] == val_constraint_proto.total == val_constraint_deser.total == 100
assert report[0][1][0][2] == val_constraint_proto.failures == val_constraint_deser.failures == 90
mc_val_constraint_proto = mc_val_constraint.to_protobuf()
mc_val_constraint_deser = MultiColumnValueConstraint.from_protobuf(mc_val_constraint_proto)
assert report[1][1] == mc_val_constraint_proto.total == mc_val_constraint_deser.total == 100
assert report[1][2] == mc_val_constraint_proto.failures == mc_val_constraint_deser.failures == 75
| [
"whylogs.core.statistics.constraints.ValueConstraints",
"whylogs.core.statistics.constraints.matchesJsonSchemaConstraint",
"whylogs.core.statistics.constraints.meanBetweenConstraint",
"whylogs.core.statistics.constraints.columnValuesNotNullConstraint",
"whylogs.core.statistics.constraints.containsCreditCard... | [((1966, 1985), 'logging.getLogger', 'getLogger', (['__name__'], {}), '(__name__)\n', (1975, 1985), False, 'from logging import getLogger\n'), ((2050, 2070), 'whylogs.core.statistics.constraints._value_funcs.items', '_value_funcs.items', ([], {}), '()\n', (2068, 2070), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2819, 2842), 'whylogs.core.statistics.constraints._summary_funcs1.items', '_summary_funcs1.items', ([], {}), '()\n', (2840, 2842), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3564, 3594), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(548250)'], {}), '(Op.LT, 548250)\n', (3579, 3594), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3615, 3659), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.GT', '(2500.0)'], {'verbose': '(True)'}), '(Op.GT, 2500.0, verbose=True)\n', (3630, 3659), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3677, 3705), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.GT', '(4000)'], {}), '(Op.GT, 4000)\n', (3692, 3705), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3716, 3843), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'loan_amnt': [conforming_loan, smallest_loan], 'fico_range_high': [high_fico]}"}), "(None, value_constraints={'loan_amnt': [conforming_loan,\n smallest_loan], 'fico_range_high': [high_fico]})\n", (3734, 3843), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3854, 3884), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (3865, 3884), False, 'from whylogs.app.config import load_config\n'), ((3899, 3926), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (3918, 3926), False, 'from whylogs.app.session import session_from_config\n'), ((4427, 4492), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.MATCH'], {'regex_pattern': 'regex_state_abbreviation'}), '(Op.MATCH, regex_pattern=regex_state_abbreviation)\n', (4442, 4492), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((4561, 4614), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.NOMATCH'], {'regex_pattern': 'regex_date'}), '(Op.NOMATCH, regex_pattern=regex_date)\n', (4576, 4614), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((4711, 4776), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.MATCH'], {'regex_pattern': 'regex_state_abbreviation'}), '(Op.MATCH, regex_pattern=regex_state_abbreviation)\n', (4726, 4776), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((4787, 4954), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'addr_state': [contains_state], 'earliest_cr_line': [not_contains_date],\n 'loan_amnt': [contains_state_loan_amnt]}"}), "(None, value_constraints={'addr_state': [contains_state],\n 'earliest_cr_line': [not_contains_date], 'loan_amnt': [\n contains_state_loan_amnt]})\n", (4805, 4954), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((4974, 5004), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (4985, 5004), False, 'from whylogs.app.config import load_config\n'), ((5019, 5046), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (5038, 5046), False, 'from whylogs.app.session import session_from_config\n'), ((5828, 5862), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GE', '(0)'], {}), "('min', Op.GE, 0)\n", (5845, 5862), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((5873, 5949), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'annual_inc': [non_negative]}"}), "(None, summary_constraints={'annual_inc': [non_negative]})\n", (5891, 5949), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((5963, 5993), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (5974, 5993), False, 'from whylogs.app.config import load_config\n'), ((6008, 6035), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (6027, 6035), False, 'from whylogs.app.session import session_from_config\n'), ((6451, 6487), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {'name': '"""c1"""'}), "(Op.LT, 1, name='c1')\n", (6466, 6487), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((6506, 6542), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {'name': '"""c2"""'}), "(Op.LT, 1, name='c2')\n", (6521, 6542), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((6698, 6723), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (6713, 6723), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((6742, 6767), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(2)'], {}), '(Op.LT, 2)\n', (6757, 6767), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((6924, 6979), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GE', '(0)'], {'name': '"""non-negative"""'}), "('min', Op.GE, 0, name='non-negative')\n", (6941, 6979), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((6998, 7056), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GE', '(0)'], {'name': '"""positive-number"""'}), "('min', Op.GE, 0, name='positive-number')\n", (7015, 7056), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((7214, 7277), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GE', '(1)'], {'name': '"""GreaterThanThreshold"""'}), "('min', Op.GE, 1, name='GreaterThanThreshold')\n", (7231, 7277), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((7296, 7359), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GE', '(2)'], {'name': '"""GreaterThanThreshold"""'}), "('min', Op.GE, 2, name='GreaterThanThreshold')\n", (7313, 7359), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((7495, 7520), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (7510, 7520), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((7539, 7564), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (7554, 7564), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((7796, 7821), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (7811, 7821), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((8042, 8067), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(0)'], {}), '(Op.LT, 0)\n', (8057, 8067), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((8449, 8474), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.GE', '(0)'], {}), '(Op.GE, 0)\n', (8464, 8474), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((8484, 8532), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.MATCH'], {'regex_pattern': 'pattern'}), '(Op.MATCH, regex_pattern=pattern)\n', (8499, 8532), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((8551, 8577), 'whylogs.core.statistics.constraints.ValueConstraints', 'ValueConstraints', (['[c1, c2]'], {}), '([c1, c2])\n', (8567, 8577), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((9502, 9527), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.GE', '(0)'], {}), '(Op.GE, 0)\n', (9517, 9527), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((9537, 9585), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.MATCH'], {'regex_pattern': 'pattern'}), '(Op.MATCH, regex_pattern=pattern)\n', (9552, 9585), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((9604, 9630), 'whylogs.core.statistics.constraints.ValueConstraints', 'ValueConstraints', (['[c1, c2]'], {}), '([c1, c2])\n', (9620, 9630), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((9640, 9665), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.GE', '(0)'], {}), '(Op.GE, 0)\n', (9655, 9665), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((9675, 9723), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.MATCH'], {'regex_pattern': 'pattern'}), '(Op.MATCH, regex_pattern=pattern)\n', (9690, 9723), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((9743, 9769), 'whylogs.core.statistics.constraints.ValueConstraints', 'ValueConstraints', (['[c3, c4]'], {}), '([c3, c4])\n', (9759, 9769), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((10590, 10615), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.GE', '(0)'], {}), '(Op.GE, 0)\n', (10605, 10615), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((10625, 10673), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.MATCH'], {'regex_pattern': 'pattern'}), '(Op.MATCH, regex_pattern=pattern)\n', (10640, 10673), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((10692, 10736), 'whylogs.core.statistics.constraints.ValueConstraints', 'ValueConstraints', (['{c1.name: c1, c2.name: c2}'], {}), '({c1.name: c1, c2.name: c2})\n', (10708, 10736), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((11135, 11178), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.BTWN', '(0.1)', '(2.4)'], {}), "('min', Op.BTWN, 0.1, 2.4)\n", (11152, 11178), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((13191, 13233), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GT'], {'value': '(100)'}), "('min', Op.GT, value=100)\n", (13208, 13233), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((13258, 13298), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""max"""', 'Op.LE'], {'value': '(5)'}), "('max', Op.LE, value=5)\n", (13275, 13298), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((13309, 13449), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'annual_inc': [between_constraint, max_le_constraint], 'loan_amnt': [\n min_gt_constraint]}"}), "(None, summary_constraints={'annual_inc': [\n between_constraint, max_le_constraint], 'loan_amnt': [min_gt_constraint]})\n", (13327, 13449), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((13458, 13488), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (13469, 13488), False, 'from whylogs.app.config import load_config\n'), ((13503, 13530), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (13522, 13530), False, 'from whylogs.app.session import session_from_config\n'), ((13973, 14037), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(100)', 'upper_value': '(200)'}), "('stddev', Op.BTWN, value=100, upper_value=200)\n", (13990, 14037), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((14245, 14321), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'second_field': '"""mean"""', 'third_field': '"""max"""'}), "('stddev', Op.BTWN, second_field='mean', third_field='max')\n", (14262, 14321), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((14522, 14586), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(200)'}), "('stddev', Op.BTWN, value=0.1, upper_value=200)\n", (14539, 14586), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((14610, 14674), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.2)', 'upper_value': '(200)'}), "('stddev', Op.BTWN, value=0.2, upper_value=200)\n", (14627, 14674), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((14789, 14853), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(200)'}), "('stddev', Op.BTWN, value=0.1, upper_value=200)\n", (14806, 14853), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((14877, 14941), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(300)'}), "('stddev', Op.BTWN, value=0.1, upper_value=300)\n", (14894, 14941), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((15056, 15131), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'second_field': '"""min"""', 'third_field': '"""max"""'}), "('stddev', Op.BTWN, second_field='min', third_field='max')\n", (15073, 15131), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((15155, 15231), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'second_field': '"""mean"""', 'third_field': '"""max"""'}), "('stddev', Op.BTWN, second_field='mean', third_field='max')\n", (15172, 15231), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((15346, 15422), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'second_field': '"""min"""', 'third_field': '"""mean"""'}), "('stddev', Op.BTWN, second_field='min', third_field='mean')\n", (15363, 15422), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((15446, 15521), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'second_field': '"""min"""', 'third_field': '"""max"""'}), "('stddev', Op.BTWN, second_field='min', third_field='max')\n", (15463, 15521), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((15702, 15797), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(200)', 'name': '"""std dev between 1"""'}), "('stddev', Op.BTWN, value=0.1, upper_value=200, name=\n 'std dev between 1')\n", (15719, 15797), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((15816, 15911), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(200)', 'name': '"""std dev between 2"""'}), "('stddev', Op.BTWN, value=0.1, upper_value=200, name=\n 'std dev between 2')\n", (15833, 15911), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((16068, 16132), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(200)'}), "('stddev', Op.BTWN, value=0.1, upper_value=200)\n", (16085, 16132), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((16156, 16220), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'value': '(0.1)', 'upper_value': '(200)'}), "('stddev', Op.BTWN, value=0.1, upper_value=200)\n", (16173, 16220), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((17072, 17133), 'whylogs.core.statistics.constraints.stddevBetweenConstraint', 'stddevBetweenConstraint', ([], {'lower_value': 'lower', 'upper_value': 'upper'}), '(lower_value=lower, upper_value=upper)\n', (17095, 17133), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((17429, 17490), 'whylogs.core.statistics.constraints.stddevBetweenConstraint', 'stddevBetweenConstraint', ([], {'lower_field': 'lower', 'upper_field': 'upper'}), '(lower_field=lower, upper_field=upper)\n', (17452, 17490), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((18155, 18214), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_value': 'lower', 'upper_value': 'upper'}), '(lower_value=lower, upper_value=upper)\n', (18176, 18214), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((18508, 18567), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_field': 'lower', 'upper_field': 'upper'}), '(lower_field=lower, upper_field=upper)\n', (18529, 18567), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((19221, 19279), 'whylogs.core.statistics.constraints.minBetweenConstraint', 'minBetweenConstraint', ([], {'lower_value': 'lower', 'upper_value': 'upper'}), '(lower_value=lower, upper_value=upper)\n', (19241, 19279), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((19575, 19633), 'whylogs.core.statistics.constraints.minBetweenConstraint', 'minBetweenConstraint', ([], {'lower_field': 'lower', 'upper_field': 'upper'}), '(lower_field=lower, upper_field=upper)\n', (19595, 19633), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((20282, 20340), 'whylogs.core.statistics.constraints.maxBetweenConstraint', 'maxBetweenConstraint', ([], {'lower_value': 'lower', 'upper_value': 'upper'}), '(lower_value=lower, upper_value=upper)\n', (20302, 20340), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((20637, 20695), 'whylogs.core.statistics.constraints.maxBetweenConstraint', 'maxBetweenConstraint', ([], {'lower_field': 'lower', 'upper_field': 'upper'}), '(lower_field=lower, upper_field=upper)\n', (20657, 20695), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((21318, 21383), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': 'summary_constraints'}), '(None, summary_constraints=summary_constraints)\n', (21336, 21383), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((21397, 21427), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (21408, 21427), False, 'from whylogs.app.config import load_config\n'), ((21442, 21469), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (21461, 21469), False, 'from whylogs.app.session import session_from_config\n'), ((21891, 21958), 'whylogs.core.statistics.constraints.distinctValuesInSetConstraint', 'distinctValuesInSetConstraint', ([], {'reference_set': 'org_list2', 'name': '"""True"""'}), "(reference_set=org_list2, name='True')\n", (21920, 21958), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((21973, 22040), 'whylogs.core.statistics.constraints.distinctValuesInSetConstraint', 'distinctValuesInSetConstraint', ([], {'reference_set': 'org_list', 'name': '"""True2"""'}), "(reference_set=org_list, name='True2')\n", (22002, 22040), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22055, 22127), 'whylogs.core.statistics.constraints.distinctValuesInSetConstraint', 'distinctValuesInSetConstraint', ([], {'reference_set': 'org_list[:-1]', 'name': '"""False"""'}), "(reference_set=org_list[:-1], name='False')\n", (22084, 22127), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22142, 22212), 'whylogs.core.statistics.constraints.distinctValuesEqualSetConstraint', 'distinctValuesEqualSetConstraint', ([], {'reference_set': 'org_list', 'name': '"""True3"""'}), "(reference_set=org_list, name='True3')\n", (22174, 22212), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22227, 22299), 'whylogs.core.statistics.constraints.distinctValuesEqualSetConstraint', 'distinctValuesEqualSetConstraint', ([], {'reference_set': 'org_list2', 'name': '"""False2"""'}), "(reference_set=org_list2, name='False2')\n", (22259, 22299), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22314, 22390), 'whylogs.core.statistics.constraints.distinctValuesEqualSetConstraint', 'distinctValuesEqualSetConstraint', ([], {'reference_set': 'org_list[:-1]', 'name': '"""False3"""'}), "(reference_set=org_list[:-1], name='False3')\n", (22346, 22390), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22411, 22488), 'whylogs.core.statistics.constraints.distinctValuesContainSetConstraint', 'distinctValuesContainSetConstraint', ([], {'reference_set': '[org_list[2]]', 'name': '"""True4"""'}), "(reference_set=[org_list[2]], name='True4')\n", (22445, 22488), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22509, 22581), 'whylogs.core.statistics.constraints.distinctValuesContainSetConstraint', 'distinctValuesContainSetConstraint', ([], {'reference_set': 'org_list', 'name': '"""True5"""'}), "(reference_set=org_list, name='True5')\n", (22543, 22581), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22602, 22679), 'whylogs.core.statistics.constraints.distinctValuesContainSetConstraint', 'distinctValuesContainSetConstraint', ([], {'reference_set': 'org_list[:-1]', 'name': '"""True6"""'}), "(reference_set=org_list[:-1], name='True6')\n", (22636, 22679), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22804, 22877), 'whylogs.core.statistics.constraints.distinctValuesContainSetConstraint', 'distinctValuesContainSetConstraint', ([], {'reference_set': '[2.3456]', 'name': '"""False5"""'}), "(reference_set=[2.3456], name='False5')\n", (22838, 22877), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((22898, 22972), 'whylogs.core.statistics.constraints.distinctValuesContainSetConstraint', 'distinctValuesContainSetConstraint', ([], {'reference_set': 'org_list2', 'name': '"""False6"""'}), "(reference_set=org_list2, name='False6')\n", (22932, 22972), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((24122, 24211), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'reference_set': '[1, 2, 3]'}), "('distinct_column_values', Op.CONTAIN_SET, reference_set=[\n 1, 2, 3])\n", (24139, 24211), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((24221, 24313), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'reference_set': '[2, 3, 4, 5]'}), "('distinct_column_values', Op.CONTAIN_SET, reference_set=[\n 2, 3, 4, 5])\n", (24238, 24313), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((24426, 24515), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'reference_set': '[1, 2, 3]'}), "('distinct_column_values', Op.CONTAIN_SET, reference_set=[\n 1, 2, 3])\n", (24443, 24515), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((24525, 24614), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'reference_set': '[1, 2, 3]'}), "('distinct_column_values', Op.CONTAIN_SET, reference_set=[\n 1, 2, 3])\n", (24542, 24614), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((25149, 25238), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'reference_set': '[1, 2, 3]'}), "('distinct_column_values', Op.CONTAIN_SET, reference_set=[\n 1, 2, 3])\n", (25166, 25238), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((25799, 25857), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': '{2, 5, 8, 90671227}'}), '(value_set={2, 5, 8, 90671227})\n', (25826, 25857), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((25868, 25893), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (25883, 25893), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((25903, 25967), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'id': [cvisc, ltc]}"}), "(None, value_constraints={'id': [cvisc, ltc]})\n", (25921, 25967), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((25981, 26011), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (25992, 26011), False, 'from whylogs.app.config import load_config\n'), ((26026, 26053), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (26045, 26053), False, 'from whylogs.app.session import session_from_config\n'), ((26539, 26587), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': '{1, 2, 3}'}), '(value_set={1, 2, 3})\n', (26566, 26587), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((26601, 26649), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': '{3, 4, 5}'}), '(value_set={3, 4, 5})\n', (26628, 26649), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((26824, 26870), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': 'val_set'}), '(value_set=val_set)\n', (26851, 26870), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((26884, 26930), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': 'val_set'}), '(value_set=val_set)\n', (26911, 26930), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((27404, 27450), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': 'val_set'}), '(value_set=val_set)\n', (27431, 27450), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((28080, 28378), 'pandas.DataFrame', 'pd.DataFrame', (['[{\'email\': \'<EMAIL>\'}, {\'email\': \'"aVrrR Test \\\\@"<EMAIL>\'}, {\'email\':\n \'abc..<EMAIL>\'}, {\'email\': \'"sdsss\\\\d"@gmail.<EMAIL>\'}, {\'email\':\n \'customer/department=shipping?@example-another.some-other.us\'}, {\n \'email\': \'.<EMAIL>\'}, {\'email\': \'<EMAIL>\'}, {\'email\': \'abs@yahoo.\'}]'], {}), '([{\'email\': \'<EMAIL>\'}, {\'email\': \'"aVrrR Test \\\\@"<EMAIL>\'}, {\n \'email\': \'abc..<EMAIL>\'}, {\'email\': \'"sdsss\\\\d"@gmail.<EMAIL>\'}, {\n \'email\': \'customer/department=shipping?@example-another.some-other.us\'},\n {\'email\': \'.<EMAIL>\'}, {\'email\': \'<EMAIL>\'}, {\'email\': \'abs@yahoo.\'}])\n', (28092, 28378), True, 'import pandas as pd\n'), ((28596, 28642), 'whylogs.core.statistics.constraints.containsEmailConstraint', 'containsEmailConstraint', ([], {'regex_pattern': 'pattern'}), '(regex_pattern=pattern)\n', (28619, 28642), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((28652, 28725), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'email': [email_constraint]}"}), "(None, value_constraints={'email': [email_constraint]})\n", (28670, 28725), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((28739, 28769), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (28750, 28769), False, 'from whylogs.app.config import load_config\n'), ((28784, 28811), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (28803, 28811), False, 'from whylogs.app.session import session_from_config\n'), ((29032, 29229), 'pandas.DataFrame', 'pd.DataFrame', (['[{\'str1\': \'length7\'}, {\'str1\': \'length_8\'}, {\'str1\': \'length__9\'}, {\'str1\':\n \'a 10\'}, {\'str1\': \'11 b\'}, {\'str1\':\n \'(*&^%^&*(24!@_+>:|}?><"\\\\\'}, {\'str1\': \'1b34567\'}]'], {}), '([{\'str1\': \'length7\'}, {\'str1\': \'length_8\'}, {\'str1\':\n \'length__9\'}, {\'str1\': \'a 10\'}, {\'str1\': \'11 b\'}, {\'str1\':\n \'(*&^%^&*(24!@_+>:|}?><"\\\\\'}, {\'str1\': \'1b34567\'}])\n', (29044, 29229), True, 'import pandas as pd\n'), ((29341, 29413), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'str1': length_constraints}"}), "(None, value_constraints={'str1': length_constraints})\n", (29359, 29413), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((29427, 29457), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (29438, 29457), False, 'from whylogs.app.config import load_config\n'), ((29472, 29499), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (29491, 29499), False, 'from whylogs.app.session import session_from_config\n'), ((29715, 29752), 'whylogs.core.statistics.constraints.stringLengthEqualConstraint', 'stringLengthEqualConstraint', ([], {'length': '(7)'}), '(length=7)\n', (29742, 29752), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((29779, 29817), 'whylogs.core.statistics.constraints.stringLengthEqualConstraint', 'stringLengthEqualConstraint', ([], {'length': '(24)'}), '(length=24)\n', (29806, 29817), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((29847, 29907), 'whylogs.core.statistics.constraints.stringLengthBetweenConstraint', 'stringLengthBetweenConstraint', ([], {'lower_value': '(7)', 'upper_value': '(10)'}), '(lower_value=7, upper_value=10)\n', (29876, 29907), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((31114, 31178), 'whylogs.core.statistics.constraints.containsEmailConstraint', 'containsEmailConstraint', ([], {'regex_pattern': '"""\\\\S+@\\\\S+"""', 'verbose': '(True)'}), "(regex_pattern='\\\\S+@\\\\S+', verbose=True)\n", (31137, 31178), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((31188, 31238), 'whylogs.core.statistics.constraints.containsEmailConstraint', 'containsEmailConstraint', ([], {'regex_pattern': '"""\\\\S+@\\\\S+"""'}), "(regex_pattern='\\\\S+@\\\\S+')\n", (31211, 31238), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((31610, 31674), 'whylogs.core.statistics.constraints.containsEmailConstraint', 'containsEmailConstraint', ([], {'regex_pattern': '"""\\\\S+@\\\\S+"""', 'verbose': '(True)'}), "(regex_pattern='\\\\S+@\\\\S+', verbose=True)\n", (31633, 31674), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((31684, 31734), 'whylogs.core.statistics.constraints.containsEmailConstraint', 'containsEmailConstraint', ([], {'regex_pattern': '"""\\\\W+@\\\\W+"""'}), "(regex_pattern='\\\\W+@\\\\W+')\n", (31707, 31734), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((31901, 32682), 'pandas.DataFrame', 'pd.DataFrame', (["[{'credit_card': '3714-496353-98431'}, {'credit_card': '3787 344936 71000'},\n {'credit_card': '3056 930902 5904'}, {'credit_card': '3065 133242 2899'\n }, {'credit_card': '3852-000002-3237'}, {'credit_card':\n '6011 1111 1111 1117'}, {'credit_card': '6011-0009-9013-9424'}, {\n 'credit_card': '3530 1113 3330 0000'}, {'credit_card':\n '3566-0020-2036-0505'}, {'credit_card': '5555 5555 5555 4444'}, {\n 'credit_card': '5105 1051 0510 5100'}, {'credit_card':\n '4111 1111 1111 1111'}, {'credit_card': '4012 8888 8888 1881'}, {\n 'credit_card': '4222-2222-2222-2222'}, {'credit_card':\n '1111-1111-1111-1111'}, {'credit_card': 'a4111 1111 1111 1111b'}, {\n 'credit_card': '4111111111111111'}, {'credit_card': 12345}, {\n 'credit_card': 'absfcvs'}]"], {}), "([{'credit_card': '3714-496353-98431'}, {'credit_card':\n '3787 344936 71000'}, {'credit_card': '3056 930902 5904'}, {\n 'credit_card': '3065 133242 2899'}, {'credit_card': '3852-000002-3237'},\n {'credit_card': '6011 1111 1111 1117'}, {'credit_card':\n '6011-0009-9013-9424'}, {'credit_card': '3530 1113 3330 0000'}, {\n 'credit_card': '3566-0020-2036-0505'}, {'credit_card':\n '5555 5555 5555 4444'}, {'credit_card': '5105 1051 0510 5100'}, {\n 'credit_card': '4111 1111 1111 1111'}, {'credit_card':\n '4012 8888 8888 1881'}, {'credit_card': '4222-2222-2222-2222'}, {\n 'credit_card': '1111-1111-1111-1111'}, {'credit_card':\n 'a4111 1111 1111 1111b'}, {'credit_card': '4111111111111111'}, {\n 'credit_card': 12345}, {'credit_card': 'absfcvs'}])\n", (31913, 32682), True, 'import pandas as pd\n'), ((33118, 33175), 'whylogs.core.statistics.constraints.containsCreditCardConstraint', 'containsCreditCardConstraint', ([], {'regex_pattern': 'regex_pattern'}), '(regex_pattern=regex_pattern)\n', (33146, 33175), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((33185, 33275), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'credit_card': [credit_card_constraint]}"}), "(None, value_constraints={'credit_card': [\n credit_card_constraint]})\n", (33203, 33275), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((33284, 33314), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (33295, 33314), False, 'from whylogs.app.config import load_config\n'), ((33329, 33356), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (33348, 33356), False, 'from whylogs.app.session import session_from_config\n'), ((34107, 34172), 'whylogs.core.statistics.constraints.containsCreditCardConstraint', 'containsCreditCardConstraint', ([], {'regex_pattern': 'pattern', 'verbose': '(True)'}), '(regex_pattern=pattern, verbose=True)\n', (34135, 34172), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((34184, 34235), 'whylogs.core.statistics.constraints.containsCreditCardConstraint', 'containsCreditCardConstraint', ([], {'regex_pattern': 'pattern'}), '(regex_pattern=pattern)\n', (34212, 34235), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((34620, 34650), 'whylogs.core.statistics.constraints.containsCreditCardConstraint', 'containsCreditCardConstraint', ([], {}), '()\n', (34648, 34650), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((34662, 34735), 'whylogs.core.statistics.constraints.containsCreditCardConstraint', 'containsCreditCardConstraint', ([], {'regex_pattern': '"""[0-9]{13,16}"""', 'verbose': '(False)'}), "(regex_pattern='[0-9]{13,16}', verbose=False)\n", (34690, 34735), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((37201, 37277), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'str1': apply_func_constraints}"}), "(None, value_constraints={'str1': apply_func_constraints})\n", (37219, 37277), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((37291, 37321), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (37302, 37321), False, 'from whylogs.app.config import load_config\n'), ((37336, 37363), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (37355, 37363), False, 'from whylogs.app.session import session_from_config\n'), ((37582, 37611), 'whylogs.core.statistics.constraints.dateUtilParseableConstraint', 'dateUtilParseableConstraint', ([], {}), '()\n', (37609, 37611), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((37633, 37658), 'whylogs.core.statistics.constraints.jsonParseableConstraint', 'jsonParseableConstraint', ([], {}), '()\n', (37656, 37658), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((37892, 37944), 'whylogs.core.statistics.constraints.matchesJsonSchemaConstraint', 'matchesJsonSchemaConstraint', ([], {'json_schema': 'json_schema'}), '(json_schema=json_schema)\n', (37919, 37944), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((37964, 38007), 'whylogs.core.statistics.constraints.strftimeFormatConstraint', 'strftimeFormatConstraint', ([], {'format': '"""%Y-%m-%d"""'}), "(format='%Y-%m-%d')\n", (37988, 38007), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((39208, 39237), 'whylogs.core.statistics.constraints.dateUtilParseableConstraint', 'dateUtilParseableConstraint', ([], {}), '()\n', (39235, 39237), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((39251, 39318), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.APPLY_FUNC'], {'apply_function': '_matches_json_schema'}), '(Op.APPLY_FUNC, apply_function=_matches_json_schema)\n', (39266, 39318), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((39403, 39432), 'whylogs.core.statistics.constraints.dateUtilParseableConstraint', 'dateUtilParseableConstraint', ([], {}), '()\n', (39430, 39432), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((39894, 39923), 'whylogs.core.statistics.constraints.dateUtilParseableConstraint', 'dateUtilParseableConstraint', ([], {}), '()\n', (39921, 39923), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((40625, 40665), 'whylogs.core.statistics.constraints.matchesJsonSchemaConstraint', 'matchesJsonSchemaConstraint', (['json_schema'], {}), '(json_schema)\n', (40652, 40665), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((41191, 41399), 'pandas.DataFrame', 'pd.DataFrame', (["[{'ssn': '123-01-2335'}, {'ssn': '039780012'}, {'ssn': '000231324'}, {'ssn':\n '666781132'}, {'ssn': '926-89-1234'}, {'ssn': '001-01-0001'}, {'ssn':\n '122 23 0001'}, {'ssn': '1234-12-123'}]"], {}), "([{'ssn': '123-01-2335'}, {'ssn': '039780012'}, {'ssn':\n '000231324'}, {'ssn': '666781132'}, {'ssn': '926-89-1234'}, {'ssn':\n '001-01-0001'}, {'ssn': '122 23 0001'}, {'ssn': '1234-12-123'}])\n", (41203, 41399), True, 'import pandas as pd\n'), ((41615, 41665), 'whylogs.core.statistics.constraints.containsSSNConstraint', 'containsSSNConstraint', ([], {'regex_pattern': 'regex_pattern'}), '(regex_pattern=regex_pattern)\n', (41636, 41665), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((41675, 41744), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'ssn': [ssn_constraint]}"}), "(None, value_constraints={'ssn': [ssn_constraint]})\n", (41693, 41744), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((41758, 41788), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (41769, 41788), False, 'from whylogs.app.config import load_config\n'), ((41803, 41830), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (41822, 41830), False, 'from whylogs.app.session import session_from_config\n'), ((42581, 42639), 'whylogs.core.statistics.constraints.containsSSNConstraint', 'containsSSNConstraint', ([], {'regex_pattern': 'pattern', 'verbose': '(True)'}), '(regex_pattern=pattern, verbose=True)\n', (42602, 42639), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((42651, 42695), 'whylogs.core.statistics.constraints.containsSSNConstraint', 'containsSSNConstraint', ([], {'regex_pattern': 'pattern'}), '(regex_pattern=pattern)\n', (42672, 42695), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((43064, 43087), 'whylogs.core.statistics.constraints.containsSSNConstraint', 'containsSSNConstraint', ([], {}), '()\n', (43085, 43087), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((43099, 43165), 'whylogs.core.statistics.constraints.containsSSNConstraint', 'containsSSNConstraint', ([], {'regex_pattern': '"""[0-9]{13,16}"""', 'verbose': '(False)'}), "(regex_pattern='[0-9]{13,16}', verbose=False)\n", (43120, 43165), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((43432, 43703), 'pandas.DataFrame', 'pd.DataFrame', (["[{'url': 'http://www.example.com'}, {'url': 'abc.test.com'}, {'url':\n 'abc.w23w.asb#abc?a=2'}, {'url': 'https://ab.abc.bc'}, {'url': 'a.b.c'},\n {'url': 'abcd'}, {'url': '123.w23.235'}, {'url': 'asf://saf.we.12'}, {\n 'url': '12345'}, {'url': '1.2'}]"], {}), "([{'url': 'http://www.example.com'}, {'url': 'abc.test.com'}, {\n 'url': 'abc.w23w.asb#abc?a=2'}, {'url': 'https://ab.abc.bc'}, {'url':\n 'a.b.c'}, {'url': 'abcd'}, {'url': '123.w23.235'}, {'url':\n 'asf://saf.we.12'}, {'url': '12345'}, {'url': '1.2'}])\n", (43444, 43703), True, 'import pandas as pd\n'), ((43994, 44044), 'whylogs.core.statistics.constraints.containsURLConstraint', 'containsURLConstraint', ([], {'regex_pattern': 'regex_pattern'}), '(regex_pattern=regex_pattern)\n', (44015, 44044), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((44054, 44123), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'url': [url_constraint]}"}), "(None, value_constraints={'url': [url_constraint]})\n", (44072, 44123), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((44137, 44167), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (44148, 44167), False, 'from whylogs.app.config import load_config\n'), ((44182, 44209), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (44201, 44209), False, 'from whylogs.app.session import session_from_config\n'), ((44962, 45021), 'whylogs.core.statistics.constraints.containsURLConstraint', 'containsURLConstraint', ([], {'regex_pattern': 'pattern', 'verbose': '(False)'}), '(regex_pattern=pattern, verbose=False)\n', (44983, 45021), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((45033, 45077), 'whylogs.core.statistics.constraints.containsURLConstraint', 'containsURLConstraint', ([], {'regex_pattern': 'pattern'}), '(regex_pattern=pattern)\n', (45054, 45077), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((45447, 45470), 'whylogs.core.statistics.constraints.containsURLConstraint', 'containsURLConstraint', ([], {}), '()\n', (45468, 45470), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((45482, 45549), 'whylogs.core.statistics.constraints.containsURLConstraint', 'containsURLConstraint', ([], {'regex_pattern': '"""http(s)?://.+"""', 'verbose': '(False)'}), "(regex_pattern='http(s)?://.+', verbose=False)\n", (45503, 45549), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((46066, 46155), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.25)', 'lower_value': '(13308)', 'upper_value': '(241001)'}), '(quantile_value=0.25, lower_value=13308,\n upper_value=241001)\n', (46091, 46155), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((46538, 46614), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.25)', 'lower_value': '(0)', 'upper_value': '(2)'}), '(quantile_value=0.25, lower_value=0, upper_value=2)\n', (46563, 46614), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((46625, 46701), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.25)', 'lower_value': '(1)', 'upper_value': '(2)'}), '(quantile_value=0.25, lower_value=1, upper_value=2)\n', (46650, 46701), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((46835, 46910), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.5)', 'lower_value': '(0)', 'upper_value': '(5)'}), '(quantile_value=0.5, lower_value=0, upper_value=5)\n', (46860, 46910), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((46921, 46996), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.5)', 'lower_value': '(0)', 'upper_value': '(5)'}), '(quantile_value=0.5, lower_value=0, upper_value=5)\n', (46946, 46996), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((47523, 47623), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.5)', 'lower_value': '(1.24)', 'upper_value': '(6.63)', 'verbose': '(True)'}), '(quantile_value=0.5, lower_value=1.24, upper_value\n =6.63, verbose=True)\n', (47548, 47623), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((48810, 48880), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(5)', 'upper_value': '(50)'}), '(lower_value=5, upper_value=50)\n', (48849, 48880), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((49268, 49337), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(0)', 'upper_value': '(2)'}), '(lower_value=0, upper_value=2)\n', (49307, 49337), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((49347, 49416), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(2)'}), '(lower_value=1, upper_value=2)\n', (49386, 49416), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((49557, 49626), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(0)', 'upper_value': '(5)'}), '(lower_value=0, upper_value=5)\n', (49596, 49626), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((49636, 49705), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(0)', 'upper_value': '(5)'}), '(lower_value=0, upper_value=5)\n', (49675, 49705), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((50245, 50334), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(15)', 'upper_value': '(50)', 'verbose': '(True)'}), '(lower_value=15, upper_value=50,\n verbose=True)\n', (50284, 50334), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((51351, 51439), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.6)', 'upper_fraction': '(0.9)'}), '(lower_fraction=0.6,\n upper_fraction=0.9)\n', (51395, 51439), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((51835, 51923), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.2)', 'upper_fraction': '(0.3)'}), '(lower_fraction=0.2,\n upper_fraction=0.3)\n', (51879, 51923), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((51929, 52017), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.1)', 'upper_fraction': '(0.3)'}), '(lower_fraction=0.1,\n upper_fraction=0.3)\n', (51973, 52017), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((52159, 52247), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.1)', 'upper_fraction': '(0.5)'}), '(lower_fraction=0.1,\n upper_fraction=0.5)\n', (52203, 52247), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((52253, 52341), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.1)', 'upper_fraction': '(0.5)'}), '(lower_fraction=0.1,\n upper_fraction=0.5)\n', (52297, 52341), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((52895, 52997), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.6)', 'upper_fraction': '(0.7)', 'verbose': '(True)'}), '(lower_fraction=0.6,\n upper_fraction=0.7, verbose=True)\n', (52939, 52997), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54046, 54079), 'whylogs.core.statistics.constraints.numberOfRowsConstraint', 'numberOfRowsConstraint', ([], {'n_rows': '(10)'}), '(n_rows=10)\n', (54068, 54079), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54171, 54203), 'whylogs.core.statistics.constraints.columnExistsConstraint', 'columnExistsConstraint', (['"""no_WAY"""'], {}), "('no_WAY')\n", (54193, 54203), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54224, 54259), 'whylogs.core.statistics.constraints.columnExistsConstraint', 'columnExistsConstraint', (['"""loan_amnt"""'], {}), "('loan_amnt')\n", (54246, 54259), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54354, 54385), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', (['set1'], {}), '(set1)\n', (54379, 54385), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54407, 54438), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', (['set2'], {}), '(set2)\n', (54432, 54438), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54555, 54628), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'table_shape_constraints': 'table_shape_constraints'}), '(None, table_shape_constraints=table_shape_constraints)\n', (54573, 54628), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((54643, 54673), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (54654, 54673), False, 'from whylogs.app.config import load_config\n'), ((54688, 54715), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (54707, 54715), False, 'from whylogs.app.session import session_from_config\n'), ((57194, 57225), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', (['set3'], {}), '(set3)\n', (57219, 57225), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((61030, 61090), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'reference_set': '[1, 2, 3]'}), "('columns', Op.EQ, reference_set=[1, 2, 3])\n", (61047, 61090), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((61105, 61168), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'reference_set': '[2, 3, 4, 5]'}), "('columns', Op.EQ, reference_set=[2, 3, 4, 5])\n", (61122, 61168), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((61286, 61346), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'reference_set': '[1, 2, 3]'}), "('columns', Op.EQ, reference_set=[1, 2, 3])\n", (61303, 61346), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((61361, 61411), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', ([], {'reference_set': '[1, 2, 3]'}), '(reference_set=[1, 2, 3])\n', (61386, 61411), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((61948, 61994), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.CONTAIN', '"""c1"""'], {}), "('columns', Op.CONTAIN, 'c1')\n", (61965, 61994), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((62009, 62044), 'whylogs.core.statistics.constraints.columnExistsConstraint', 'columnExistsConstraint', ([], {'column': '"""c1"""'}), "(column='c1')\n", (62031, 62044), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((62573, 62620), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.EQ', '(2)'], {}), "('total_row_number', Op.EQ, 2)\n", (62590, 62620), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((62635, 62667), 'whylogs.core.statistics.constraints.numberOfRowsConstraint', 'numberOfRowsConstraint', ([], {'n_rows': '(2)'}), '(n_rows=2)\n', (62657, 62667), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((63226, 63262), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', (['[1, 2, 3]'], {}), '([1, 2, 3])\n', (63251, 63262), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((63771, 63799), 'whylogs.core.statistics.constraints.columnExistsConstraint', 'columnExistsConstraint', (['"""c1"""'], {}), "('c1')\n", (63793, 63799), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((64323, 64348), 'whylogs.core.statistics.constraints.numberOfRowsConstraint', 'numberOfRowsConstraint', (['(2)'], {}), '(2)\n', (64345, 64348), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((64885, 64933), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': '{2, 5, 8}'}), '(value_set={2, 5, 8})\n', (64912, 64933), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((64944, 64969), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(1)'], {}), '(Op.LT, 1)\n', (64959, 64969), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((64995, 65037), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.GT'], {'value': '(100)'}), "('min', Op.GT, value=100)\n", (65012, 65037), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((65062, 65102), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""max"""', 'Op.LE'], {'value': '(5)'}), "('max', Op.LE, value=5)\n", (65079, 65102), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((65168, 65199), 'whylogs.core.statistics.constraints.columnsMatchSetConstraint', 'columnsMatchSetConstraint', (['set1'], {}), '(set1)\n', (65193, 65199), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((65537, 65797), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': "{'annual_inc': [cvisc, ltc]}", 'summary_constraints': "{'annual_inc': [max_le_constraint, min_gt_constraint]}", 'table_shape_constraints': '[columns_match_constraint]', 'multi_column_value_constraints': 'mcv_constraints'}), "(None, value_constraints={'annual_inc': [cvisc, ltc]},\n summary_constraints={'annual_inc': [max_le_constraint,\n min_gt_constraint]}, table_shape_constraints=[columns_match_constraint],\n multi_column_value_constraints=mcv_constraints)\n", (65555, 65797), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((69198, 69254), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': 'val_set1'}), '(value_set=val_set1)\n', (69234, 69254), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((69267, 69323), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': 'val_set2'}), '(value_set=val_set2)\n', (69303, 69323), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((69871, 69925), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': '{1, 3}'}), '(value_set={1, 3})\n', (69907, 69925), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((69935, 69991), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': '{1, 5.0}'}), '(value_set={1, 5.0})\n', (69971, 69991), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((70154, 70209), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': 'val_set'}), '(value_set=val_set)\n', (70190, 70209), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((70219, 70274), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': 'val_set'}), '(value_set=val_set)\n', (70255, 70274), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((70742, 70811), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': 'val_set', 'verbose': '(True)'}), '(value_set=val_set, verbose=True)\n', (70778, 70811), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((71465, 71496), 'whylogs.core.statistics.constraints.columnValuesNotNullConstraint', 'columnValuesNotNullConstraint', ([], {}), '()\n', (71494, 71496), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((71960, 71991), 'whylogs.core.statistics.constraints.columnValuesNotNullConstraint', 'columnValuesNotNullConstraint', ([], {}), '()\n', (71989, 71991), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((72001, 72099), 'pandas.DataFrame', 'pd.DataFrame', (["[{'value': 1}, {'value': 5.2}, {'value': None}, {'value': 2.3}, {'value': None}\n ]"], {}), "([{'value': 1}, {'value': 5.2}, {'value': None}, {'value': 2.3},\n {'value': None}])\n", (72013, 72099), True, 'import pandas as pd\n'), ((72570, 72601), 'whylogs.core.statistics.constraints.columnValuesNotNullConstraint', 'columnValuesNotNullConstraint', ([], {}), '()\n', (72599, 72601), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((72613, 72644), 'whylogs.core.statistics.constraints.columnValuesNotNullConstraint', 'columnValuesNotNullConstraint', ([], {}), '()\n', (72642, 72644), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((73581, 73624), 'whylogs.core.statistics.constraints.columnValuesNotNullConstraint', 'columnValuesNotNullConstraint', ([], {'verbose': '(True)'}), '(verbose=True)\n', (73610, 73624), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((74112, 74197), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.0)', 'upper_fraction': '(0.3)'}), '(lower_fraction=0.0, upper_fraction=0.3\n )\n', (74152, 74197), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((74669, 74754), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.3)', 'upper_fraction': '(0.8)'}), '(lower_fraction=0.3, upper_fraction=0.8\n )\n', (74709, 74754), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((75202, 75287), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.2)', 'upper_fraction': '(0.3)'}), '(lower_fraction=0.2, upper_fraction=0.3\n )\n', (75242, 75287), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((75292, 75377), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.1)', 'upper_fraction': '(0.3)'}), '(lower_fraction=0.1, upper_fraction=0.3\n )\n', (75332, 75377), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((75520, 75605), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.1)', 'upper_fraction': '(0.5)'}), '(lower_fraction=0.1, upper_fraction=0.5\n )\n', (75560, 75605), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((75610, 75695), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.1)', 'upper_fraction': '(0.5)'}), '(lower_fraction=0.1, upper_fraction=0.5\n )\n', (75650, 75695), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((76259, 76358), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.4)', 'upper_fraction': '(0.7)', 'verbose': '(True)'}), '(lower_fraction=0.4, upper_fraction\n =0.7, verbose=True)\n', (76299, 76358), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((76971, 77104), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.05)', 'upper_fraction': '(0.1)', 'name': '"""missing values constraint"""', 'verbose': '(True)'}), "(lower_fraction=0.05,\n upper_fraction=0.1, name='missing values constraint', verbose=True)\n", (77011, 77104), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((78290, 78366), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': 'InferredType.Type.FRACTIONAL'}), '(expected_type=InferredType.Type.FRACTIONAL)\n', (78322, 78366), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((78798, 78874), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': 'InferredType.Type.FRACTIONAL'}), '(expected_type=InferredType.Type.FRACTIONAL)\n', (78830, 78874), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((78884, 78954), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': 'InferredType.Type.NULL'}), '(expected_type=InferredType.Type.NULL)\n', (78916, 78954), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((79094, 79143), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': '(1)'}), '(expected_type=1)\n', (79126, 79143), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((79153, 79202), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': '(1)'}), '(expected_type=1)\n', (79185, 79202), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((79646, 79736), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': 'InferredType.Type.STRING', 'verbose': '(True)'}), '(expected_type=InferredType.Type.STRING,\n verbose=True)\n', (79678, 79736), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((80630, 80680), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': 'type_set'}), '(type_set=type_set)\n', (80661, 80680), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((81134, 81234), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': '{InferredType.Type.INTEGRAL, InferredType.Type.STRING}'}), '(type_set={InferredType.Type.INTEGRAL,\n InferredType.Type.STRING})\n', (81165, 81234), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((81240, 81338), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': '{InferredType.Type.INTEGRAL, InferredType.Type.NULL}'}), '(type_set={InferredType.Type.INTEGRAL,\n InferredType.Type.NULL})\n', (81271, 81338), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((81544, 81594), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': 'type_set'}), '(type_set=type_set)\n', (81575, 81594), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((81604, 81654), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': 'type_set'}), '(type_set=type_set)\n', (81635, 81654), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((82239, 82303), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': 'type_set', 'verbose': '(True)'}), '(type_set=type_set, verbose=True)\n', (82270, 82303), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((83294, 83363), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(0.4)', 'upper_value': '(0.5)'}), '(lower_value=0.4, upper_value=0.5)\n', (83329, 83363), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((83802, 83871), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(0.6)', 'upper_value': '(1.5)'}), '(lower_value=0.6, upper_value=1.5)\n', (83837, 83871), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((84303, 84372), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(0.6)', 'upper_value': '(1.5)'}), '(lower_value=0.6, upper_value=1.5)\n', (84338, 84372), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((84786, 84853), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(2.4)'}), '(lower_value=1, upper_value=2.4)\n', (84821, 84853), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((84863, 84930), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(2.6)'}), '(lower_value=1, upper_value=2.6)\n', (84898, 84930), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((85060, 85127), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(3.2)'}), '(lower_value=1, upper_value=3.2)\n', (85095, 85127), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((85137, 85204), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(3.2)'}), '(lower_value=1, upper_value=3.2)\n', (85172, 85204), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((85722, 85809), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(0.3)', 'upper_value': '(1.2)', 'verbose': '(True)'}), '(lower_value=0.3, upper_value=1.2,\n verbose=True)\n', (85757, 85809), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((86807, 86857), 'numpy.random.normal', 'np.random.normal', ([], {'loc': '(10000)', 'scale': '(2.0)', 'size': '(15000)'}), '(loc=10000, scale=2.0, size=15000)\n', (86823, 86857), True, 'import numpy as np\n'), ((86871, 86942), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['norm_values'], {'p_value': '(0.1)'}), '(norm_values, p_value=0.1)\n', (86916, 86942), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((86952, 87021), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'loan_amnt': [kspval]}"}), "(None, summary_constraints={'loan_amnt': [kspval]})\n", (86970, 87021), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((87035, 87065), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (87046, 87065), False, 'from whylogs.app.config import load_config\n'), ((87080, 87107), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (87099, 87107), False, 'from whylogs.app.session import session_from_config\n'), ((87528, 87628), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (["df_lending_club['loan_amnt'].values"], {'p_value': '(0.1)'}), "(df_lending_club['loan_amnt'].\n values, p_value=0.1)\n", (87573, 87628), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((87633, 87702), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'loan_amnt': [kspval]}"}), "(None, summary_constraints={'loan_amnt': [kspval]})\n", (87651, 87702), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((87716, 87746), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (87727, 87746), False, 'from whylogs.app.config import load_config\n'), ((87761, 87788), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (87780, 87788), False, 'from whylogs.app.session import session_from_config\n'), ((88204, 88266), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 3.0]'], {}), '([1.0, 2.0, 3.0])\n', (88249, 88266), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((88277, 88339), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 4.0]'], {}), '([1.0, 2.0, 4.0])\n', (88322, 88339), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((88414, 88489), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 3.0]'], {'p_value': '(0.1)'}), '([1.0, 2.0, 3.0], p_value=0.1)\n', (88459, 88489), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((88500, 88575), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 3.0]'], {'p_value': '(0.5)'}), '([1.0, 2.0, 3.0], p_value=0.5)\n', (88545, 88575), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((88721, 88783), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 3.0]'], {}), '([1.0, 2.0, 3.0])\n', (88766, 88783), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((88794, 88856), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 3.0]'], {}), '([1.0, 2.0, 3.0])\n', (88839, 88856), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((89526, 89620), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1.0, 2.0, 3.0]'], {'p_value': '(0.15)', 'verbose': '(True)'}), '([1.0, 2.0, 3.0], p_value=0.15,\n verbose=True)\n', (89571, 89620), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((90795, 90845), 'numpy.random.normal', 'np.random.normal', ([], {'loc': '(10000)', 'scale': '(2.0)', 'size': '(15000)'}), '(loc=10000, scale=2.0, size=15000)\n', (90811, 90845), True, 'import numpy as np\n'), ((90856, 90920), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['norm_values'], {'threshold': '(2.1)'}), '(norm_values, threshold=2.1)\n', (90892, 90920), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((90930, 90996), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'loan_amnt': [kld]}"}), "(None, summary_constraints={'loan_amnt': [kld]})\n", (90948, 90996), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((91010, 91040), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (91021, 91040), False, 'from whylogs.app.config import load_config\n'), ((91055, 91082), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (91074, 91082), False, 'from whylogs.app.session import session_from_config\n'), ((91513, 91605), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (["df_lending_club['loan_amnt'].values"], {'threshold': '(0.1)'}), "(df_lending_club['loan_amnt'].values,\n threshold=0.1)\n", (91549, 91605), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((91611, 91677), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'loan_amnt': [kld]}"}), "(None, summary_constraints={'loan_amnt': [kld]})\n", (91629, 91677), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((91691, 91721), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (91702, 91721), False, 'from whylogs.app.config import load_config\n'), ((91736, 91763), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (91755, 91763), False, 'from whylogs.app.session import session_from_config\n'), ((92200, 92217), 'numpy.random.seed', 'np.random.seed', (['(2)'], {}), '(2)\n', (92214, 92217), True, 'import numpy as np\n'), ((92310, 92372), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['dist_data'], {'threshold': '(1.3)'}), '(dist_data, threshold=1.3)\n', (92346, 92372), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((92382, 92444), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'grade': [kld]}"}), "(None, summary_constraints={'grade': [kld]})\n", (92400, 92444), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((92458, 92488), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (92469, 92488), False, 'from whylogs.app.config import load_config\n'), ((92503, 92530), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (92522, 92530), False, 'from whylogs.app.session import session_from_config\n'), ((92968, 92985), 'numpy.random.seed', 'np.random.seed', (['(2)'], {}), '(2)\n', (92982, 92985), True, 'import numpy as np\n'), ((93123, 93185), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['dist_data'], {'threshold': '(0.4)'}), '(dist_data, threshold=0.4)\n', (93159, 93185), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((93195, 93257), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'grade': [kld]}"}), "(None, summary_constraints={'grade': [kld]})\n", (93213, 93257), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((93271, 93301), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (93282, 93301), False, 'from whylogs.app.config import load_config\n'), ((93316, 93343), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (93335, 93343), False, 'from whylogs.app.session import session_from_config\n'), ((93765, 93818), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1.0, 2.0, 3.0]'], {}), '([1.0, 2.0, 3.0])\n', (93801, 93818), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((93829, 93882), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1.0, 2.0, 4.0]'], {}), '([1.0, 2.0, 4.0])\n', (93865, 93882), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((93957, 94025), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1.0, 2.0, 3.0]'], {'threshold': '(0.1)'}), '([1.0, 2.0, 3.0], threshold=0.1)\n', (93993, 94025), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((94036, 94104), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1.0, 2.0, 3.0]'], {'threshold': '(0.5)'}), '([1.0, 2.0, 3.0], threshold=0.5)\n', (94072, 94104), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((94252, 94305), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1.0, 2.0, 3.0]'], {}), '([1.0, 2.0, 3.0])\n', (94288, 94305), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((94316, 94369), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1.0, 2.0, 3.0]'], {}), '([1.0, 2.0, 3.0])\n', (94352, 94369), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((95059, 95136), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1, 2, 3]'], {'threshold': '(0.15)', 'verbose': '(True)'}), '([1, 2, 3], threshold=0.15, verbose=True)\n', (95095, 95136), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((95896, 95983), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[2.0, 2.0, 3.0]'], {'threshold': '(0.15)', 'verbose': '(True)'}), '([2.0, 2.0, 3.0], threshold=0.15,\n verbose=True)\n', (95932, 95983), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((97199, 97272), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['test_values'], {'p_value': '(0.1)'}), '(test_values, p_value=0.1)\n', (97246, 97272), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((97282, 97347), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'grade': [kspval]}"}), "(None, summary_constraints={'grade': [kspval]})\n", (97300, 97347), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((97361, 97391), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (97372, 97391), False, 'from whylogs.app.config import load_config\n'), ((97406, 97433), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (97425, 97433), False, 'from whylogs.app.session import session_from_config\n'), ((97933, 98007), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['test_values'], {'p_value': '(0.05)'}), '(test_values, p_value=0.05)\n', (97980, 98007), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((98017, 98079), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'summary_constraints': "{'grade': [chi]}"}), "(None, summary_constraints={'grade': [chi]})\n", (98035, 98079), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((98093, 98123), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (98104, 98123), False, 'from whylogs.app.config import load_config\n'), ((98138, 98165), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (98157, 98165), False, 'from whylogs.app.session import session_from_config\n'), ((98571, 98629), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['[1, 2, 3]'], {}), '([1, 2, 3])\n', (98618, 98629), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((98640, 98698), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['[1, 2, 4]'], {}), '([1, 2, 4])\n', (98687, 98698), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((98773, 98844), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['[1, 2, 3]'], {'p_value': '(0.1)'}), '([1, 2, 3], p_value=0.1)\n', (98820, 98844), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((98855, 98926), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['[1, 2, 3]'], {'p_value': '(0.5)'}), '([1, 2, 3], p_value=0.5)\n', (98902, 98926), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((99088, 99148), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (["[1, 3, 'A']"], {}), "([1, 3, 'A'])\n", (99135, 99148), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((99159, 99219), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (["[1, 'A', 3]"], {}), "([1, 'A', 3])\n", (99206, 99219), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((99910, 100008), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (["[1, 2, 'A', 'B']"], {'p_value': '(0.15)', 'verbose': '(True)'}), "([1, 2, 'A', 'B'], p_value=\n 0.15, verbose=True)\n", (99957, 100008), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((101438, 101492), 'pandas.DataFrame', 'pd.DataFrame', (["{'username': usernames, 'email': emails}"], {}), "({'username': usernames, 'email': emails})\n", (101450, 101492), True, 'import pandas as pd\n'), ((101555, 101585), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (101566, 101585), False, 'from whylogs.app.config import load_config\n'), ((101600, 101627), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (101619, 101627), False, 'from whylogs.app.session import session_from_config\n'), ((104830, 104979), 'pandas.DataFrame', 'pd.DataFrame', (["{'followers': [1525, 12268, 51343, 867, 567, 100265, 22113, 3412], 'points':\n [23.4, 123.2, 432.22, 32.1, 44.1, 42.2, 344.2, 42.1]}"], {}), "({'followers': [1525, 12268, 51343, 867, 567, 100265, 22113, \n 3412], 'points': [23.4, 123.2, 432.22, 32.1, 44.1, 42.2, 344.2, 42.1]})\n", (104842, 104979), True, 'import pandas as pd\n'), ((105038, 105068), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (105049, 105068), False, 'from whylogs.app.config import load_config\n'), ((105083, 105110), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (105102, 105110), False, 'from whylogs.app.session import session_from_config\n'), ((107198, 107293), 'pandas.DataFrame', 'pd.DataFrame', (["{'username': users, 'followers': followers, 'null': [None, None, None, None]}"], {}), "({'username': users, 'followers': followers, 'null': [None,\n None, None, None]})\n", (107210, 107293), True, 'import pandas as pd\n'), ((107304, 107334), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (107315, 107334), False, 'from whylogs.app.config import load_config\n'), ((107349, 107376), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (107368, 107376), False, 'from whylogs.app.session import session_from_config\n'), ((109319, 109447), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': 'value_constraints', 'multi_column_value_constraints': 'multi_column_value_constraints'}), '(None, value_constraints=value_constraints,\n multi_column_value_constraints=multi_column_value_constraints)\n', (109337, 109447), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((109457, 109487), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (109468, 109487), False, 'from whylogs.app.config import load_config\n'), ((109502, 109529), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (109521, 109529), False, 'from whylogs.app.session import session_from_config\n'), ((109810, 109915), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '"""total_pymnt"""', 'verbose': '(False)'}), "(columns=col_set, value=\n 'total_pymnt', verbose=False)\n", (109857, 109915), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((110432, 110525), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'colset', 'value': '(100)', 'verbose': '(False)'}), '(columns=colset, value=100,\n verbose=False)\n', (110479, 110525), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((110532, 110596), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'multi_column_value_constraints': '[srveq]'}), '(None, multi_column_value_constraints=[srveq])\n', (110550, 110596), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((110610, 110640), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (110621, 110640), False, 'from whylogs.app.config import load_config\n'), ((110655, 110682), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (110674, 110682), False, 'from whylogs.app.session import session_from_config\n'), ((110692, 110807), 'pandas.DataFrame', 'pd.DataFrame', (["[{'A': 1, 'B': 2}, {'A': 99, 'B': 1}, {'A': 32, 'B': 68}, {'A': 100, 'B': 2\n }, {'A': 83, 'B': 18}]"], {}), "([{'A': 1, 'B': 2}, {'A': 99, 'B': 1}, {'A': 32, 'B': 68}, {'A':\n 100, 'B': 2}, {'A': 83, 'B': 18}])\n", (110704, 110807), True, 'import pandas as pd\n'), ((111249, 111352), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': "['annual_inc', 'loan_amnt']", 'value': '"""grade"""'}), "(columns=['annual_inc',\n 'loan_amnt'], value='grade')\n", (111296, 111352), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((111362, 111467), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': "['annual_inc', 'total_pymnt']", 'value': '"""grade"""'}), "(columns=['annual_inc',\n 'total_pymnt'], value='grade')\n", (111409, 111467), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((111477, 111586), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': "['annual_inc', 'total_pymnt']", 'value': '"""loan_amnt"""'}), "(columns=['annual_inc',\n 'total_pymnt'], value='loan_amnt')\n", (111524, 111586), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((111830, 111935), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '"""total_pymnt"""', 'verbose': '(False)'}), "(columns=col_set, value=\n 'total_pymnt', verbose=False)\n", (111877, 111935), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((111989, 112094), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '"""total_pymnt"""', 'verbose': '(False)'}), "(columns=col_set, value=\n 'total_pymnt', verbose=False)\n", (112036, 112094), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((112798, 112889), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'columns', 'value': '(6)', 'verbose': '(True)'}), '(columns=columns, value=6,\n verbose=True)\n', (112845, 112889), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((113838, 113889), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (113873, 113889), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((113900, 113958), 'pandas.DataFrame', 'pd.DataFrame', (["{'col1': [4, 5, 6, 7], 'col2': [0, 1, 2, 3]}"], {}), "({'col1': [4, 5, 6, 7], 'col2': [0, 1, 2, 3]})\n", (113912, 113958), True, 'import pandas as pd\n'), ((113969, 114034), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'multi_column_value_constraints': '[a_gt_b]'}), '(None, multi_column_value_constraints=[a_gt_b])\n', (113987, 114034), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((114049, 114079), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (114060, 114079), False, 'from whylogs.app.config import load_config\n'), ((114094, 114121), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (114113, 114121), False, 'from whylogs.app.session import session_from_config\n'), ((114536, 114587), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (114571, 114587), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((114600, 114670), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""col1"""'], {'op': 'Op.GT', 'reference_columns': '"""col5"""'}), "('col1', op=Op.GT, reference_columns='col5')\n", (114626, 114670), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((114752, 114803), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (114787, 114803), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((114816, 114886), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""col4"""'], {'op': 'Op.GT', 'reference_columns': '"""col2"""'}), "('col4', op=Op.GT, reference_columns='col2')\n", (114842, 114886), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((114968, 115019), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (115003, 115019), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((115032, 115102), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""col1"""'], {'op': 'Op.EQ', 'reference_columns': '"""col2"""'}), "('col1', op=Op.EQ, reference_columns='col2')\n", (115058, 115102), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((115184, 115235), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (115219, 115235), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((115248, 115301), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""col1"""'], {'op': 'Op.GT', 'value': '(2)'}), "('col1', op=Op.GT, value=2)\n", (115274, 115301), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((115439, 115490), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (115474, 115490), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((115503, 115595), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""col1"""'], {'op': 'Op.GT', 'reference_columns': '"""col2"""', 'name': 'mcvc1.name'}), "('col1', op=Op.GT, reference_columns='col2', name\n =mcvc1.name)\n", (115529, 115595), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((116827, 116939), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', ([], {'dependent_columns': "['col1', 'col2']", 'reference_columns': "['col5', 'col6']", 'op': 'Op.EQ'}), "(dependent_columns=['col1', 'col2'],\n reference_columns=['col5', 'col6'], op=Op.EQ)\n", (116853, 116939), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((117607, 117670), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (["['col1', 'col2']"], {'op': 'Op.GT', 'value': '(2)'}), "(['col1', 'col2'], op=Op.GT, value=2)\n", (117633, 117670), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((119169, 119263), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""grade"""', 'column_B': '"""sub_grade"""', 'value_set': 'val_set'}), "(column_A='grade', column_B='sub_grade',\n value_set=val_set)\n", (119200, 119263), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((119795, 119891), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""annual_inc"""', 'column_B': '"""grade"""', 'value_set': 'val_set1'}), "(column_A='annual_inc', column_B='grade',\n value_set=val_set1)\n", (119826, 119891), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((119958, 120054), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""annual_inc"""', 'column_B': '"""grade"""', 'value_set': 'val_set2'}), "(column_A='annual_inc', column_B='grade',\n value_set=val_set2)\n", (119989, 120054), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((120064, 120154), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""some"""', 'column_B': '"""grade"""', 'value_set': 'val_set2'}), "(column_A='some', column_B='grade',\n value_set=val_set2)\n", (120095, 120154), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((120164, 120256), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""annual_inc"""', 'column_B': '"""b"""', 'value_set': 'val_set1'}), "(column_A='annual_inc', column_B='b',\n value_set=val_set1)\n", (120195, 120256), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((120603, 120699), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""annual_inc"""', 'column_B': '"""grade"""', 'value_set': 'val_set1'}), "(column_A='annual_inc', column_B='grade',\n value_set=val_set1)\n", (120634, 120699), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((120754, 120850), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""annual_inc"""', 'column_B': '"""grade"""', 'value_set': 'val_set1'}), "(column_A='annual_inc', column_B='grade',\n value_set=val_set1)\n", (120785, 120850), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((121603, 121701), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': 'val_set1', 'verbose': '(True)'}), "(column_A='A', column_B='B', value_set=\n val_set1, verbose=True)\n", (121634, 121701), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((122818, 122877), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""grade"""', 'verbose': '(True)'}), "(column_A='grade', verbose=True)\n", (122845, 122877), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((123308, 123349), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""'}), "(column_A='A')\n", (123335, 123349), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((123361, 123417), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A1"""', 'verbose': '(True)'}), "(column_A='A1', verbose=True)\n", (123388, 123417), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((123564, 123605), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""'}), "(column_A='A')\n", (123591, 123605), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((123658, 123713), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""', 'verbose': '(True)'}), "(column_A='A', verbose=True)\n", (123685, 123713), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((124314, 124369), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""', 'verbose': '(True)'}), "(column_A='A', verbose=True)\n", (124341, 124369), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((125074, 125135), 'pandas.DataFrame', 'pd.DataFrame', (["{'A': [50, 23, 42, 11], 'B': [52, 77, 58, 100]}"], {}), "({'A': [50, 23, 42, 11], 'B': [52, 77, 58, 100]})\n", (125086, 125135), True, 'import pandas as pd\n'), ((125517, 125557), 'whylogs.core.statistics.constraints.MultiColumnValueConstraints', 'MultiColumnValueConstraints', (['constraints'], {}), '(constraints)\n', (125544, 125557), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((126529, 126569), 'whylogs.core.statistics.constraints.MultiColumnValueConstraints', 'MultiColumnValueConstraints', (['constraints'], {}), '(constraints)\n', (126556, 126569), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((128101, 128127), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.LT', '(10)'], {}), '(Op.LT, 10)\n', (128116, 128127), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((128153, 128204), 'whylogs.core.statistics.constraints.columnValuesAGreaterThanBConstraint', 'columnValuesAGreaterThanBConstraint', (['"""col1"""', '"""col2"""'], {}), "('col1', 'col2')\n", (128188, 128204), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((128267, 128384), 'whylogs.core.statistics.constraints.DatasetConstraints', 'DatasetConstraints', (['None'], {'value_constraints': 'value_constraints', 'multi_column_value_constraints': '[mc_val_constraint]'}), '(None, value_constraints=value_constraints,\n multi_column_value_constraints=[mc_val_constraint])\n', (128285, 128384), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((128394, 128424), 'whylogs.app.config.load_config', 'load_config', (['local_config_path'], {}), '(local_config_path)\n', (128405, 128424), False, 'from whylogs.app.config import load_config\n'), ((128439, 128466), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (128458, 128466), False, 'from whylogs.app.session import session_from_config\n'), ((128666, 128717), 'whylogs.core.statistics.constraints.ValueConstraint.from_protobuf', 'ValueConstraint.from_protobuf', (['val_constraint_proto'], {}), '(val_constraint_proto)\n', (128695, 128717), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((129010, 129075), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint.from_protobuf', 'MultiColumnValueConstraint.from_protobuf', (['mc_val_constraint_proto'], {}), '(mc_val_constraint_proto)\n', (129050, 129075), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((3028, 3083), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'each_op', '(300000)'], {'name': '"""< 30K"""'}), "('min', each_op, 300000, name='< 30K')\n", (3045, 3083), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((6552, 6581), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (6565, 6581), False, 'import pytest\n'), ((6777, 6806), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (6790, 6806), False, 'import pytest\n'), ((7066, 7095), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (7079, 7095), False, 'import pytest\n'), ((7369, 7398), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (7382, 7398), False, 'import pytest\n'), ((8203, 8243), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (8216, 8243), False, 'import pytest\n'), ((8282, 8296), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.LT'], {}), '(Op.LT)\n', (8289, 8296), False, 'from whylogs.proto import InferredType, Op\n'), ((8766, 8792), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['msg_const'], {}), '(msg_const)\n', (8781, 8792), False, 'from whylogs.util.protobuf import message_to_json\n'), ((9028, 9045), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (9035, 9045), False, 'from whylogs.proto import InferredType, Op\n'), ((9272, 9286), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GE'], {}), '(Op.GE)\n', (9279, 9286), False, 'from whylogs.proto import InferredType, Op\n'), ((9298, 9349), 'pytest.approx', 'pytest.approx', (["second_val_constraint['value']", '(0.01)'], {}), "(second_val_constraint['value'], 0.01)\n", (9311, 9349), False, 'import pytest\n'), ((10115, 10132), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (10122, 10132), False, 'from whylogs.proto import InferredType, Op\n'), ((10359, 10373), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GE'], {}), '(Op.GE)\n', (10366, 10373), False, 'from whylogs.proto import InferredType, Op\n'), ((10385, 10436), 'pytest.approx', 'pytest.approx', (["second_val_constraint['value']", '(0.01)'], {}), "(second_val_constraint['value'], 0.01)\n", (10398, 10436), False, 'import pytest\n'), ((11258, 11288), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['msg_sum_const'], {}), '(msg_sum_const)\n', (11273, 11288), False, 'from whylogs.util.protobuf import message_to_json\n'), ((11368, 11425), 'pytest.approx', 'pytest.approx', (["json_summary['between']['lowerValue']", '(0.1)'], {}), "(json_summary['between']['lowerValue'], 0.1)\n", (11381, 11425), False, 'import pytest\n'), ((11444, 11501), 'pytest.approx', 'pytest.approx', (["json_summary['between']['upperValue']", '(0.1)'], {}), "(json_summary['between']['upperValue'], 0.1)\n", (11457, 11501), False, 'import pytest\n'), ((11909, 11968), 'pytest.approx', 'pytest.approx', (["json_summary['between']['lowerValue']", '(0.001)'], {}), "(json_summary['between']['lowerValue'], 0.001)\n", (11922, 11968), False, 'import pytest\n'), ((11972, 12037), 'pytest.approx', 'pytest.approx', (["json_deser_summary['between']['lowerValue']", '(0.001)'], {}), "(json_deser_summary['between']['lowerValue'], 0.001)\n", (11985, 12037), False, 'import pytest\n'), ((12049, 12108), 'pytest.approx', 'pytest.approx', (["json_summary['between']['upperValue']", '(0.001)'], {}), "(json_summary['between']['upperValue'], 0.001)\n", (12062, 12108), False, 'import pytest\n'), ((12112, 12177), 'pytest.approx', 'pytest.approx', (["json_deser_summary['between']['upperValue']", '(0.001)'], {}), "(json_deser_summary['between']['upperValue'], 0.001)\n", (12125, 12177), False, 'import pytest\n'), ((12452, 12476), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (12465, 12476), False, 'import pytest\n'), ((12486, 12534), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.BTWN', '(0.1)', '"""stddev"""'], {}), "('min', Op.BTWN, 0.1, 'stddev')\n", (12503, 12534), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((12545, 12570), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (12558, 12570), False, 'import pytest\n'), ((12580, 12641), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.BTWN', '(0.1)'], {'second_field': '"""stddev"""'}), "('min', Op.BTWN, 0.1, second_field='stddev')\n", (12597, 12641), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((12652, 12677), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (12665, 12677), False, 'import pytest\n'), ((12687, 12740), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.BTWN', '(0.1)', '(2.4)', '"""stddev"""'], {}), "('min', Op.BTWN, 0.1, 2.4, 'stddev')\n", (12704, 12740), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((12751, 12776), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (12764, 12776), False, 'import pytest\n'), ((12786, 12851), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""min"""', 'Op.BTWN', '(0.1)', '(2.4)'], {'third_field': '"""stddev"""'}), "('min', Op.BTWN, 0.1, 2.4, third_field='stddev')\n", (12803, 12851), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((12862, 12886), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (12875, 12886), False, 'import pytest\n'), ((12896, 12967), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN'], {'second_field': '(2)', 'third_field': '"""max"""'}), "('stddev', Op.BTWN, second_field=2, third_field='max')\n", (12913, 12967), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((12978, 13002), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (12991, 13002), False, 'import pytest\n'), ((13012, 13058), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""', 'Op.BTWN', '(2)', '"""max"""'], {}), "('stddev', Op.BTWN, 2, 'max')\n", (13029, 13058), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((14685, 14714), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (14698, 14714), False, 'import pytest\n'), ((14952, 14981), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (14965, 14981), False, 'import pytest\n'), ((15242, 15271), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (15255, 15271), False, 'import pytest\n'), ((15532, 15561), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (15545, 15561), False, 'import pytest\n'), ((15917, 15946), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (15930, 15946), False, 'import pytest\n'), ((16493, 16554), 'pytest.approx', 'pytest.approx', (["pre_merge_json['between']['lowerValue']", '(0.001)'], {}), "(pre_merge_json['between']['lowerValue'], 0.001)\n", (16506, 16554), False, 'import pytest\n'), ((16558, 16615), 'pytest.approx', 'pytest.approx', (["merge_json['between']['lowerValue']", '(0.001)'], {}), "(merge_json['between']['lowerValue'], 0.001)\n", (16571, 16615), False, 'import pytest\n'), ((16627, 16688), 'pytest.approx', 'pytest.approx', (["pre_merge_json['between']['upperValue']", '(0.001)'], {}), "(pre_merge_json['between']['upperValue'], 0.001)\n", (16640, 16688), False, 'import pytest\n'), ((16692, 16749), 'pytest.approx', 'pytest.approx', (["merge_json['between']['upperValue']", '(0.001)'], {}), "(merge_json['between']['upperValue'], 0.001)\n", (16705, 16749), False, 'import pytest\n'), ((17656, 17681), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (17669, 17681), False, 'import pytest\n'), ((17691, 17729), 'whylogs.core.statistics.constraints.stddevBetweenConstraint', 'stddevBetweenConstraint', ([], {'lower_value': '(2)'}), '(lower_value=2)\n', (17714, 17729), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((17739, 17764), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (17752, 17764), False, 'import pytest\n'), ((17774, 17816), 'whylogs.core.statistics.constraints.stddevBetweenConstraint', 'stddevBetweenConstraint', ([], {'lower_field': '"""min"""'}), "(lower_field='min')\n", (17797, 17816), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((17826, 17850), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (17839, 17850), False, 'import pytest\n'), ((17860, 17915), 'whylogs.core.statistics.constraints.stddevBetweenConstraint', 'stddevBetweenConstraint', ([], {'lower_value': '"""2"""', 'upper_value': '(2)'}), "(lower_value='2', upper_value=2)\n", (17883, 17915), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((17925, 17949), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (17938, 17949), False, 'import pytest\n'), ((17959, 18016), 'whylogs.core.statistics.constraints.stddevBetweenConstraint', 'stddevBetweenConstraint', ([], {'lower_field': '"""max"""', 'upper_field': '(2)'}), "(lower_field='max', upper_field=2)\n", (17982, 18016), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((18731, 18756), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (18744, 18756), False, 'import pytest\n'), ((18766, 18802), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_value': '(2)'}), '(lower_value=2)\n', (18787, 18802), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((18812, 18837), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (18825, 18837), False, 'import pytest\n'), ((18847, 18887), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_field': '"""min"""'}), "(lower_field='min')\n", (18868, 18887), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((18897, 18921), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (18910, 18921), False, 'import pytest\n'), ((18931, 18984), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_value': '"""2"""', 'upper_value': '(2)'}), "(lower_value='2', upper_value=2)\n", (18952, 18984), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((18994, 19018), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (19007, 19018), False, 'import pytest\n'), ((19028, 19083), 'whylogs.core.statistics.constraints.meanBetweenConstraint', 'meanBetweenConstraint', ([], {'lower_field': '"""max"""', 'upper_field': '(2)'}), "(lower_field='max', upper_field=2)\n", (19049, 19083), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((19796, 19821), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (19809, 19821), False, 'import pytest\n'), ((19831, 19866), 'whylogs.core.statistics.constraints.minBetweenConstraint', 'minBetweenConstraint', ([], {'lower_value': '(2)'}), '(lower_value=2)\n', (19851, 19866), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((19876, 19901), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (19889, 19901), False, 'import pytest\n'), ((19911, 19950), 'whylogs.core.statistics.constraints.minBetweenConstraint', 'minBetweenConstraint', ([], {'lower_field': '"""min"""'}), "(lower_field='min')\n", (19931, 19950), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((19960, 19984), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (19973, 19984), False, 'import pytest\n'), ((19994, 20046), 'whylogs.core.statistics.constraints.minBetweenConstraint', 'minBetweenConstraint', ([], {'lower_value': '"""2"""', 'upper_value': '(2)'}), "(lower_value='2', upper_value=2)\n", (20014, 20046), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((20056, 20080), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (20069, 20080), False, 'import pytest\n'), ((20090, 20144), 'whylogs.core.statistics.constraints.minBetweenConstraint', 'minBetweenConstraint', ([], {'lower_field': '"""max"""', 'upper_field': '(2)'}), "(lower_field='max', upper_field=2)\n", (20110, 20144), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((20858, 20883), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (20871, 20883), False, 'import pytest\n'), ((20893, 20928), 'whylogs.core.statistics.constraints.maxBetweenConstraint', 'maxBetweenConstraint', ([], {'lower_value': '(2)'}), '(lower_value=2)\n', (20913, 20928), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((20938, 20963), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (20951, 20963), False, 'import pytest\n'), ((20973, 21012), 'whylogs.core.statistics.constraints.maxBetweenConstraint', 'maxBetweenConstraint', ([], {'lower_field': '"""min"""'}), "(lower_field='min')\n", (20993, 21012), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((21022, 21046), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (21035, 21046), False, 'import pytest\n'), ((21056, 21108), 'whylogs.core.statistics.constraints.maxBetweenConstraint', 'maxBetweenConstraint', ([], {'lower_value': '"""2"""', 'upper_value': '(2)'}), "(lower_value='2', upper_value=2)\n", (21076, 21108), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((21118, 21142), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (21131, 21142), False, 'import pytest\n'), ((21152, 21206), 'whylogs.core.statistics.constraints.maxBetweenConstraint', 'maxBetweenConstraint', ([], {'lower_field': '"""max"""', 'upper_field': '(2)'}), "(lower_field='max', upper_field=2)\n", (21172, 21206), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((23475, 23499), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (23488, 23499), False, 'import pytest\n'), ((23509, 23585), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'reference_set': '(1)'}), "('distinct_column_values', Op.CONTAIN_SET, reference_set=1)\n", (23526, 23585), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((23595, 23620), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (23608, 23620), False, 'import pytest\n'), ((23630, 23692), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET', '(1)'], {}), "('distinct_column_values', Op.CONTAIN_SET, 1)\n", (23647, 23692), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((23702, 23727), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (23715, 23727), False, 'import pytest\n'), ((23737, 23816), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'second_field': '"""aaa"""'}), "('distinct_column_values', Op.CONTAIN_SET, second_field='aaa')\n", (23754, 23816), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((23826, 23851), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (23839, 23851), False, 'import pytest\n'), ((23861, 23939), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'third_field': '"""aaa"""'}), "('distinct_column_values', Op.CONTAIN_SET, third_field='aaa')\n", (23878, 23939), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((23949, 23974), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (23962, 23974), False, 'import pytest\n'), ((23984, 24058), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""distinct_column_values"""', 'Op.CONTAIN_SET'], {'upper_value': '(2)'}), "('distinct_column_values', Op.CONTAIN_SET, upper_value=2)\n", (24001, 24058), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((24318, 24347), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (24331, 24347), False, 'import pytest\n'), ((26659, 26688), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (26672, 26688), False, 'import pytest\n'), ((27226, 27240), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (27233, 27240), False, 'from whylogs.proto import InferredType, Op\n'), ((27777, 27791), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (27784, 27791), False, 'from whylogs.proto import InferredType, Op\n'), ((27905, 27929), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (27918, 27929), False, 'import pytest\n'), ((27947, 27987), 'whylogs.core.statistics.constraints.columnValuesInSetConstraint', 'columnValuesInSetConstraint', ([], {'value_set': '(1)'}), '(value_set=1)\n', (27974, 27987), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((31444, 31461), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (31451, 31461), False, 'from whylogs.proto import InferredType, Op\n'), ((31743, 31772), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (31756, 31772), False, 'import pytest\n'), ((34450, 34467), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (34457, 34467), False, 'from whylogs.proto import InferredType, Op\n'), ((34746, 34775), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (34759, 34775), False, 'import pytest\n'), ((34853, 34877), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (34866, 34877), False, 'import pytest\n'), ((34887, 34920), 'whylogs.core.statistics.constraints.containsCreditCardConstraint', 'containsCreditCardConstraint', (['(123)'], {}), '(123)\n', (34915, 34920), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((38841, 38866), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (38854, 38866), False, 'import pytest\n'), ((38885, 38943), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.APPLY_FUNC'], {'apply_function': '(lambda x: x)'}), '(Op.APPLY_FUNC, apply_function=lambda x: x)\n', (38900, 38943), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((38954, 38979), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (38967, 38979), False, 'import pytest\n'), ((38998, 39058), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.APPLY_FUNC'], {'apply_function': '"""""".startswith'}), "(Op.APPLY_FUNC, apply_function=''.startswith)\n", (39013, 39058), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((39069, 39094), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (39082, 39094), False, 'import pytest\n'), ((39113, 39163), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['Op.APPLY_FUNC'], {'apply_function': 'any'}), '(Op.APPLY_FUNC, apply_function=any)\n', (39128, 39163), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((39329, 39358), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (39342, 39358), False, 'import pytest\n'), ((42902, 42919), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (42909, 42919), False, 'from whylogs.proto import InferredType, Op\n'), ((43176, 43205), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (43189, 43205), False, 'import pytest\n'), ((43275, 43299), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (43288, 43299), False, 'import pytest\n'), ((43309, 43335), 'whylogs.core.statistics.constraints.containsSSNConstraint', 'containsSSNConstraint', (['(123)'], {}), '(123)\n', (43330, 43335), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((45284, 45301), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (45291, 45301), False, 'from whylogs.proto import InferredType, Op\n'), ((45560, 45589), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (45573, 45589), False, 'import pytest\n'), ((45659, 45683), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (45672, 45683), False, 'import pytest\n'), ((45693, 45720), 'whylogs.core.statistics.constraints.containsURLConstraint', 'containsURLConstraint', (['(2124)'], {}), '(2124)\n', (45714, 45720), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((45780, 45805), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (45793, 45805), False, 'import pytest\n'), ((45815, 45881), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""stddev"""'], {'op': 'Op.LT', 'value': '(2)', 'quantile_value': '(0.2)'}), "('stddev', op=Op.LT, value=2, quantile_value=0.2)\n", (45832, 45881), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((45891, 45916), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (45904, 45916), False, 'import pytest\n'), ((45926, 45974), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""quantile"""'], {'op': 'Op.GT', 'value': '(2)'}), "('quantile', op=Op.GT, value=2)\n", (45943, 45974), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((46711, 46740), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (46724, 46740), False, 'import pytest\n'), ((47239, 47255), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (47246, 47255), False, 'from whylogs.proto import InferredType, Op\n'), ((47267, 47321), 'pytest.approx', 'pytest.approx', (["message['between']['lowerValue']", '(0.001)'], {}), "(message['between']['lowerValue'], 0.001)\n", (47280, 47321), False, 'import pytest\n'), ((47340, 47394), 'pytest.approx', 'pytest.approx', (["message['between']['upperValue']", '(0.001)'], {}), "(message['between']['upperValue'], 0.001)\n", (47353, 47394), False, 'import pytest\n'), ((47890, 47906), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (47897, 47906), False, 'from whylogs.proto import InferredType, Op\n'), ((47918, 47975), 'pytest.approx', 'pytest.approx', (["json_value['between']['lowerValue']", '(0.001)'], {}), "(json_value['between']['lowerValue'], 0.001)\n", (47931, 47975), False, 'import pytest\n'), ((47995, 48052), 'pytest.approx', 'pytest.approx', (["json_value['between']['upperValue']", '(0.001)'], {}), "(json_value['between']['upperValue'], 0.001)\n", (48008, 48052), False, 'import pytest\n'), ((48157, 48181), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (48170, 48181), False, 'import pytest\n'), ((48191, 48292), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '[0.5]', 'lower_value': '(1.24)', 'upper_value': '(6.63)', 'verbose': '(True)'}), '(quantile_value=[0.5], lower_value=1.24,\n upper_value=6.63, verbose=True)\n', (48216, 48292), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((48298, 48322), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (48311, 48322), False, 'import pytest\n'), ((48332, 48433), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.5)', 'lower_value': '"""1.24"""', 'upper_value': '(6.63)', 'verbose': '(True)'}), "(quantile_value=0.5, lower_value='1.24',\n upper_value=6.63, verbose=True)\n", (48357, 48433), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((48439, 48463), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (48452, 48463), False, 'import pytest\n'), ((48473, 48575), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.3)', 'lower_value': '(1.24)', 'upper_value': '[6.63]', 'verbose': '(True)'}), '(quantile_value=0.3, lower_value=1.24, upper_value\n =[6.63], verbose=True)\n', (48498, 48575), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((48580, 48605), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (48593, 48605), False, 'import pytest\n'), ((48615, 48713), 'whylogs.core.statistics.constraints.quantileBetweenConstraint', 'quantileBetweenConstraint', ([], {'quantile_value': '(0.3)', 'lower_value': '(2.3)', 'upper_value': '(1.5)', 'verbose': '(True)'}), '(quantile_value=0.3, lower_value=2.3, upper_value=\n 1.5, verbose=True)\n', (48640, 48713), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((49426, 49455), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (49439, 49455), False, 'import pytest\n'), ((49952, 49968), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (49959, 49968), False, 'from whylogs.proto import InferredType, Op\n'), ((49980, 50034), 'pytest.approx', 'pytest.approx', (["message['between']['lowerValue']", '(0.001)'], {}), "(message['between']['lowerValue'], 0.001)\n", (49993, 50034), False, 'import pytest\n'), ((50053, 50107), 'pytest.approx', 'pytest.approx', (["message['between']['upperValue']", '(0.001)'], {}), "(message['between']['upperValue'], 0.001)\n", (50066, 50107), False, 'import pytest\n'), ((50601, 50617), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (50608, 50617), False, 'from whylogs.proto import InferredType, Op\n'), ((50629, 50686), 'pytest.approx', 'pytest.approx', (["json_value['between']['lowerValue']", '(0.001)'], {}), "(json_value['between']['lowerValue'], 0.001)\n", (50642, 50686), False, 'import pytest\n'), ((50704, 50761), 'pytest.approx', 'pytest.approx', (["json_value['between']['upperValue']", '(0.001)'], {}), "(json_value['between']['upperValue'], 0.001)\n", (50717, 50761), False, 'import pytest\n'), ((50879, 50904), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (50892, 50904), False, 'import pytest\n'), ((50914, 51003), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '"""0"""', 'upper_value': '(1)', 'verbose': '(True)'}), "(lower_value='0', upper_value=1,\n verbose=True)\n", (50953, 51003), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((51009, 51034), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (51022, 51034), False, 'import pytest\n'), ((51044, 51134), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(5)', 'upper_value': '(6.63)', 'verbose': '(True)'}), '(lower_value=5, upper_value=6.63,\n verbose=True)\n', (51083, 51134), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((51140, 51165), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (51153, 51165), False, 'import pytest\n'), ((51175, 51244), 'whylogs.core.statistics.constraints.columnUniqueValueCountBetweenConstraint', 'columnUniqueValueCountBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(0)'}), '(lower_value=1, upper_value=0)\n', (51214, 51244), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((52023, 52052), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (52036, 52052), False, 'import pytest\n'), ((52597, 52613), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (52604, 52613), False, 'from whylogs.proto import InferredType, Op\n'), ((52625, 52679), 'pytest.approx', 'pytest.approx', (["message['between']['lowerValue']", '(0.001)'], {}), "(message['between']['lowerValue'], 0.001)\n", (52638, 52679), False, 'import pytest\n'), ((52698, 52752), 'pytest.approx', 'pytest.approx', (["message['between']['upperValue']", '(0.001)'], {}), "(message['between']['upperValue'], 0.001)\n", (52711, 52752), False, 'import pytest\n'), ((53275, 53291), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (53282, 53291), False, 'from whylogs.proto import InferredType, Op\n'), ((53303, 53360), 'pytest.approx', 'pytest.approx', (["json_value['between']['lowerValue']", '(0.001)'], {}), "(json_value['between']['lowerValue'], 0.001)\n", (53316, 53360), False, 'import pytest\n'), ((53379, 53436), 'pytest.approx', 'pytest.approx', (["json_value['between']['upperValue']", '(0.001)'], {}), "(json_value['between']['upperValue'], 0.001)\n", (53392, 53436), False, 'import pytest\n'), ((53560, 53585), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (53573, 53585), False, 'import pytest\n'), ((53595, 53695), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0)', 'upper_fraction': '(1.0)', 'verbose': '(True)'}), '(lower_fraction=0,\n upper_fraction=1.0, verbose=True)\n', (53639, 53695), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((53701, 53726), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (53714, 53726), False, 'import pytest\n'), ((53736, 53838), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.2)', 'upper_fraction': '(0.1)', 'verbose': '(True)'}), '(lower_fraction=0.2,\n upper_fraction=0.1, verbose=True)\n', (53780, 53838), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((53844, 53869), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (53857, 53869), False, 'import pytest\n'), ((53879, 53965), 'whylogs.core.statistics.constraints.columnUniqueValueProportionBetweenConstraint', 'columnUniqueValueProportionBetweenConstraint', ([], {'lower_fraction': '(0.4)', 'upper_fraction': '(2)'}), '(lower_fraction=0.4,\n upper_fraction=2)\n', (53923, 53965), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((57286, 57322), 'whylogs.core.statistics.constraints.SummaryConstraints', 'SummaryConstraints', (['[columns_match3]'], {}), '([columns_match3])\n', (57304, 57322), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((58567, 58595), 'whylogs.core.statistics.constraints.SummaryConstraints', 'SummaryConstraints', (['[rows_3]'], {}), '([rows_3])\n', (58585, 58595), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59028, 59052), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (59041, 59052), False, 'import pytest\n'), ((59062, 59114), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'reference_set': '(1)'}), "('columns', Op.EQ, reference_set=1)\n", (59079, 59114), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59124, 59149), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59137, 59149), False, 'import pytest\n'), ((59159, 59216), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.CONTAIN'], {'reference_set': '(1)'}), "('columns', Op.CONTAIN, reference_set=1)\n", (59176, 59216), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59226, 59251), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59239, 59251), False, 'import pytest\n'), ((59261, 59322), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.EQ'], {'reference_set': '(1)'}), "('total_row_number', Op.EQ, reference_set=1)\n", (59278, 59322), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59332, 59357), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59345, 59357), False, 'import pytest\n'), ((59367, 59433), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.CONTAIN'], {'reference_set': '(1)'}), "('total_row_number', Op.CONTAIN, reference_set=1)\n", (59384, 59433), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59444, 59469), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59457, 59469), False, 'import pytest\n'), ((59479, 59522), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.CONTAIN', '(1)'], {}), "('columns', Op.CONTAIN, 1)\n", (59496, 59522), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59532, 59557), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59545, 59557), False, 'import pytest\n'), ((59567, 59627), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.CONTAIN'], {'second_field': '"""aaa"""'}), "('columns', Op.CONTAIN, second_field='aaa')\n", (59584, 59627), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59637, 59662), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59650, 59662), False, 'import pytest\n'), ((59672, 59710), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ', '(1)'], {}), "('columns', Op.EQ, 1)\n", (59689, 59710), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59720, 59745), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59733, 59745), False, 'import pytest\n'), ((59755, 59810), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'second_field': '"""aaa"""'}), "('columns', Op.EQ, second_field='aaa')\n", (59772, 59810), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59821, 59846), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59834, 59846), False, 'import pytest\n'), ((59856, 59908), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.CONTAIN', '(1)'], {}), "('total_row_number', Op.CONTAIN, 1)\n", (59873, 59908), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((59918, 59943), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (59931, 59943), False, 'import pytest\n'), ((59953, 60022), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.CONTAIN'], {'second_field': '"""aaa"""'}), "('total_row_number', Op.CONTAIN, second_field='aaa')\n", (59970, 60022), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60032, 60057), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60045, 60057), False, 'import pytest\n'), ((60067, 60131), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.EQ'], {'second_field': '"""aaa"""'}), "('total_row_number', Op.EQ, second_field='aaa')\n", (60084, 60131), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60142, 60167), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60155, 60167), False, 'import pytest\n'), ((60177, 60236), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.CONTAIN'], {'third_field': '"""aaa"""'}), "('columns', Op.CONTAIN, third_field='aaa')\n", (60194, 60236), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60246, 60271), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60259, 60271), False, 'import pytest\n'), ((60281, 60335), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'third_field': '"""aaa"""'}), "('columns', Op.EQ, third_field='aaa')\n", (60298, 60335), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60345, 60370), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60358, 60370), False, 'import pytest\n'), ((60380, 60448), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.CONTAIN'], {'third_field': '"""aaa"""'}), "('total_row_number', Op.CONTAIN, third_field='aaa')\n", (60397, 60448), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60458, 60483), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60471, 60483), False, 'import pytest\n'), ((60493, 60556), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.EQ'], {'third_field': '"""aaa"""'}), "('total_row_number', Op.EQ, third_field='aaa')\n", (60510, 60556), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60567, 60592), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60580, 60592), False, 'import pytest\n'), ((60602, 60657), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.CONTAIN'], {'upper_value': '(2)'}), "('columns', Op.CONTAIN, upper_value=2)\n", (60619, 60657), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60667, 60692), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60680, 60692), False, 'import pytest\n'), ((60702, 60752), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""columns"""', 'Op.EQ'], {'upper_value': '(2)'}), "('columns', Op.EQ, upper_value=2)\n", (60719, 60752), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60762, 60787), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60775, 60787), False, 'import pytest\n'), ((60797, 60861), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.CONTAIN'], {'upper_value': '(2)'}), "('total_row_number', Op.CONTAIN, upper_value=2)\n", (60814, 60861), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((60871, 60896), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (60884, 60896), False, 'import pytest\n'), ((60906, 60965), 'whylogs.core.statistics.constraints.SummaryConstraint', 'SummaryConstraint', (['"""total_row_number"""', 'Op.EQ'], {'upper_value': '(2)'}), "('total_row_number', Op.EQ, upper_value=2)\n", (60923, 60965), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((61178, 61207), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (61191, 61207), False, 'import pytest\n'), ((65289, 65344), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""', 'verbose': '(True)'}), "(column_A='A', verbose=True)\n", (65316, 65344), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((65354, 65432), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': 'val_set'}), "(column_A='A', column_B='B', value_set=val_set)\n", (65385, 65432), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((65442, 65517), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '(100)'}), '(columns=col_set, value=100)\n', (65489, 65517), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((70001, 70030), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (70014, 70030), False, 'import pytest\n'), ((70517, 70531), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (70524, 70531), False, 'from whylogs.proto import InferredType, Op\n'), ((71076, 71090), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (71083, 71090), False, 'from whylogs.proto import InferredType, Op\n'), ((71261, 71285), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (71274, 71285), False, 'import pytest\n'), ((71295, 71360), 'whylogs.core.statistics.constraints.columnMostCommonValueInSetConstraint', 'columnMostCommonValueInSetConstraint', ([], {'value_set': '(2.3)', 'verbose': '(True)'}), '(value_set=2.3, verbose=True)\n', (71331, 71360), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((73883, 73897), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (73890, 73897), False, 'from whylogs.proto import InferredType, Op\n'), ((73909, 73949), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (73922, 73949), False, 'import pytest\n'), ((75382, 75411), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (75395, 75411), False, 'import pytest\n'), ((75959, 75975), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (75966, 75975), False, 'from whylogs.proto import InferredType, Op\n'), ((75987, 76041), 'pytest.approx', 'pytest.approx', (["message['between']['lowerValue']", '(0.001)'], {}), "(message['between']['lowerValue'], 0.001)\n", (76000, 76041), False, 'import pytest\n'), ((76060, 76114), 'pytest.approx', 'pytest.approx', (["message['between']['upperValue']", '(0.001)'], {}), "(message['between']['upperValue'], 0.001)\n", (76073, 76114), False, 'import pytest\n'), ((76644, 76660), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (76651, 76660), False, 'from whylogs.proto import InferredType, Op\n'), ((76672, 76729), 'pytest.approx', 'pytest.approx', (["json_value['between']['lowerValue']", '(0.001)'], {}), "(json_value['between']['lowerValue'], 0.001)\n", (76685, 76729), False, 'import pytest\n'), ((76748, 76805), 'pytest.approx', 'pytest.approx', (["json_value['between']['upperValue']", '(0.001)'], {}), "(json_value['between']['upperValue'], 0.001)\n", (76761, 76805), False, 'import pytest\n'), ((77364, 77380), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (77371, 77380), False, 'from whylogs.proto import InferredType, Op\n'), ((77392, 77449), 'pytest.approx', 'pytest.approx', (["json_value['between']['lowerValue']", '(0.001)'], {}), "(json_value['between']['lowerValue'], 0.001)\n", (77405, 77449), False, 'import pytest\n'), ((77469, 77526), 'pytest.approx', 'pytest.approx', (["json_value['between']['upperValue']", '(0.001)'], {}), "(json_value['between']['upperValue'], 0.001)\n", (77482, 77526), False, 'import pytest\n'), ((77658, 77683), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (77671, 77683), False, 'import pytest\n'), ((77693, 77790), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0)', 'upper_fraction': '(1.0)', 'verbose': '(True)'}), '(lower_fraction=0, upper_fraction=\n 1.0, verbose=True)\n', (77733, 77790), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((77795, 77820), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (77808, 77820), False, 'import pytest\n'), ((77830, 77929), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.2)', 'upper_fraction': '(0.1)', 'verbose': '(True)'}), '(lower_fraction=0.2, upper_fraction\n =0.1, verbose=True)\n', (77870, 77929), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((77934, 77959), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (77947, 77959), False, 'import pytest\n'), ((77969, 78047), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '(0.4)', 'upper_fraction': '(2)'}), '(lower_fraction=0.4, upper_fraction=2)\n', (78009, 78047), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((78057, 78082), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (78070, 78082), False, 'import pytest\n'), ((78092, 78192), 'whylogs.core.statistics.constraints.missingValuesProportionBetweenConstraint', 'missingValuesProportionBetweenConstraint', ([], {'lower_fraction': '"""1"""', 'upper_fraction': '(2.0)', 'verbose': '(False)'}), "(lower_fraction='1', upper_fraction\n =2.0, verbose=False)\n", (78132, 78192), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((78964, 78993), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (78977, 78993), False, 'import pytest\n'), ((79469, 79483), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (79476, 79483), False, 'from whylogs.proto import InferredType, Op\n'), ((80044, 80058), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (80051, 80058), False, 'from whylogs.proto import InferredType, Op\n'), ((80234, 80259), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (80247, 80259), False, 'import pytest\n'), ((80269, 80334), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': '(2.3)', 'verbose': '(True)'}), '(expected_type=2.3, verbose=True)\n', (80301, 80334), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((80344, 80369), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (80357, 80369), False, 'import pytest\n'), ((80379, 80453), 'whylogs.core.statistics.constraints.columnValuesTypeEqualsConstraint', 'columnValuesTypeEqualsConstraint', ([], {'expected_type': '"""FRACTIONAL"""', 'verbose': '(True)'}), "(expected_type='FRACTIONAL', verbose=True)\n", (80411, 80453), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((80855, 80880), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['t'], {}), '(t)\n', (80877, 80880), False, 'from whylogs.proto import InferredType, Op\n'), ((81344, 81373), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (81357, 81373), False, 'import pytest\n'), ((81764, 81789), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['t'], {}), '(t)\n', (81786, 81789), False, 'from whylogs.proto import InferredType, Op\n'), ((81972, 81986), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (81979, 81986), False, 'from whylogs.proto import InferredType, Op\n'), ((82701, 82715), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (82708, 82715), False, 'from whylogs.proto import InferredType, Op\n'), ((82888, 82912), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (82901, 82912), False, 'import pytest\n'), ((82922, 82986), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': '{2.3, 1}', 'verbose': '(True)'}), '(type_set={2.3, 1}, verbose=True)\n', (82953, 82986), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((82996, 83020), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (83009, 83020), False, 'import pytest\n'), ((83030, 83103), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': "{'FRACTIONAL', 2}", 'verbose': '(True)'}), "(type_set={'FRACTIONAL', 2}, verbose=True)\n", (83061, 83103), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((83113, 83137), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (83126, 83137), False, 'import pytest\n'), ((83147, 83195), 'whylogs.core.statistics.constraints.columnValuesTypeInSetConstraint', 'columnValuesTypeInSetConstraint', ([], {'type_set': '"""ABCD"""'}), "(type_set='ABCD')\n", (83178, 83195), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((84940, 84969), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (84953, 84969), False, 'import pytest\n'), ((85444, 85460), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (85451, 85460), False, 'from whylogs.proto import InferredType, Op\n'), ((85472, 85525), 'pytest.approx', 'pytest.approx', (["message['between']['lowerValue']", '(0.01)'], {}), "(message['between']['lowerValue'], 0.01)\n", (85485, 85525), False, 'import pytest\n'), ((85542, 85595), 'pytest.approx', 'pytest.approx', (["message['between']['upperValue']", '(0.01)'], {}), "(message['between']['upperValue'], 0.01)\n", (85555, 85595), False, 'import pytest\n'), ((86069, 86085), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (86076, 86085), False, 'from whylogs.proto import InferredType, Op\n'), ((86097, 86153), 'pytest.approx', 'pytest.approx', (["json_value['between']['lowerValue']", '(0.01)'], {}), "(json_value['between']['lowerValue'], 0.01)\n", (86110, 86153), False, 'import pytest\n'), ((86172, 86228), 'pytest.approx', 'pytest.approx', (["json_value['between']['upperValue']", '(0.01)'], {}), "(json_value['between']['upperValue'], 0.01)\n", (86185, 86228), False, 'import pytest\n'), ((86342, 86366), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (86355, 86366), False, 'import pytest\n'), ((86376, 86462), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '"""2"""', 'upper_value': '(4)', 'verbose': '(True)'}), "(lower_value='2', upper_value=4, verbose\n =True)\n", (86411, 86462), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((86467, 86492), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (86480, 86492), False, 'import pytest\n'), ((86502, 86587), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(-2)', 'upper_value': '(3)', 'verbose': '(True)'}), '(lower_value=-2, upper_value=3, verbose=True\n )\n', (86537, 86587), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((86592, 86617), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (86605, 86617), False, 'import pytest\n'), ((86627, 86694), 'whylogs.core.statistics.constraints.approximateEntropyBetweenConstraint', 'approximateEntropyBetweenConstraint', ([], {'lower_value': '(1)', 'upper_value': '(0.9)'}), '(lower_value=1, upper_value=0.9)\n', (86662, 86694), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((88349, 88378), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (88362, 88378), False, 'import pytest\n'), ((88585, 88614), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (88598, 88614), False, 'import pytest\n'), ((89189, 89203), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GT'], {}), '(Op.GT)\n', (89196, 89203), False, 'from whylogs.proto import InferredType, Op\n'), ((89264, 89304), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (89277, 89304), False, 'import pytest\n'), ((89978, 89992), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GT'], {}), '(Op.GT)\n', (89985, 89992), False, 'from whylogs.proto import InferredType, Op\n'), ((90053, 90093), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (90066, 90093), False, 'import pytest\n'), ((90298, 90323), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (90311, 90323), False, 'import pytest\n'), ((90333, 90421), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1, 2, 3]'], {'p_value': '(0.15)', 'verbose': '(True)'}), '([1, 2, 3], p_value=0.15,\n verbose=True)\n', (90378, 90421), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((90427, 90451), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (90440, 90451), False, 'import pytest\n'), ((90461, 90546), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['"""abc"""'], {'p_value': '(0.15)', 'verbose': '(True)'}), "('abc', p_value=0.15, verbose=True\n )\n", (90506, 90546), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((90551, 90576), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (90564, 90576), False, 'import pytest\n'), ((90586, 90673), 'whylogs.core.statistics.constraints.parametrizedKSTestPValueGreaterThanConstraint', 'parametrizedKSTestPValueGreaterThanConstraint', (['[1, 2, 3]'], {'p_value': '(1.2)', 'verbose': '(True)'}), '([1, 2, 3], p_value=1.2,\n verbose=True)\n', (90631, 90673), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((93892, 93921), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (93905, 93921), False, 'import pytest\n'), ((94114, 94143), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (94127, 94143), False, 'import pytest\n'), ((94706, 94720), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.LT'], {}), '(Op.LT)\n', (94713, 94720), False, 'from whylogs.proto import InferredType, Op\n'), ((94787, 94827), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (94800, 94827), False, 'import pytest\n'), ((95471, 95485), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.LT'], {}), '(Op.LT)\n', (95478, 95485), False, 'from whylogs.proto import InferredType, Op\n'), ((95552, 95592), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (95565, 95592), False, 'import pytest\n'), ((96314, 96328), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.LT'], {}), '(Op.LT)\n', (96321, 96328), False, 'from whylogs.proto import InferredType, Op\n'), ((96395, 96435), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (96408, 96435), False, 'import pytest\n'), ((96642, 96666), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (96655, 96666), False, 'import pytest\n'), ((96676, 96763), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (["[1.0, 'abc', 3]"], {'threshold': '(0.15)', 'verbose': '(True)'}), "([1.0, 'abc', 3], threshold=0.15,\n verbose=True)\n", (96712, 96763), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((96769, 96793), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (96782, 96793), False, 'import pytest\n'), ((96803, 96875), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['"""abc"""'], {'threshold': '(0.5)', 'verbose': '(True)'}), "('abc', threshold=0.5, verbose=True)\n", (96839, 96875), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((96885, 96909), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (96898, 96909), False, 'import pytest\n'), ((96919, 96997), 'whylogs.core.statistics.constraints.columnKLDivergenceLessThanConstraint', 'columnKLDivergenceLessThanConstraint', (['[1, 2, 3]'], {'threshold': '"""1.2"""', 'verbose': '(True)'}), "([1, 2, 3], threshold='1.2', verbose=True)\n", (96955, 96997), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((98708, 98737), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (98721, 98737), False, 'import pytest\n'), ((98936, 98965), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (98949, 98965), False, 'import pytest\n'), ((99550, 99564), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GT'], {}), '(Op.GT)\n', (99557, 99564), False, 'from whylogs.proto import InferredType, Op\n'), ((99634, 99674), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (99647, 99674), False, 'import pytest\n'), ((100362, 100376), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GT'], {}), '(Op.GT)\n', (100369, 100376), False, 'from whylogs.proto import InferredType, Op\n'), ((100446, 100486), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (100459, 100486), False, 'import pytest\n'), ((100705, 100730), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (100718, 100730), False, 'import pytest\n'), ((100740, 100832), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['[1.0, 2, 3]'], {'p_value': '(0.15)', 'verbose': '(True)'}), '([1.0, 2, 3], p_value=0.15,\n verbose=True)\n', (100787, 100832), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((100838, 100862), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (100851, 100862), False, 'import pytest\n'), ((100872, 100958), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (['"""abc"""'], {'p_value': '(0.15)', 'verbose': '(True)'}), "('abc', p_value=0.15,\n verbose=True)\n", (100919, 100958), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((100964, 100989), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (100977, 100989), False, 'import pytest\n'), ((100999, 101106), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (["{'A': 0.3, 'B': 1, 'C': 12}"], {'p_value': '(0.2)', 'verbose': '(True)'}), "({'A': 0.3, 'B': 1, 'C': 12},\n p_value=0.2, verbose=True)\n", (101046, 101106), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((101112, 101136), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (101125, 101136), False, 'import pytest\n'), ((101146, 101242), 'whylogs.core.statistics.constraints.columnChiSquaredTestPValueGreaterThanConstraint', 'columnChiSquaredTestPValueGreaterThanConstraint', (["['a', 'b', 'c']"], {'p_value': '(1.2)', 'verbose': '(True)'}), "(['a', 'b', 'c'], p_value=\n 1.2, verbose=True)\n", (101193, 101242), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((102407, 102421), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (102414, 102421), False, 'from whylogs.proto import InferredType, Op\n'), ((102792, 102808), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (102799, 102808), False, 'from whylogs.proto import InferredType, Op\n'), ((102820, 102890), 'pytest.approx', 'pytest.approx', (["constraints_username[1]['between']['lowerValue']", '(0.001)'], {}), "(constraints_username[1]['between']['lowerValue'], 0.001)\n", (102833, 102890), False, 'import pytest\n'), ((102907, 102977), 'pytest.approx', 'pytest.approx', (["constraints_username[1]['between']['upperValue']", '(0.001)'], {}), "(constraints_username[1]['between']['upperValue'], 0.001)\n", (102920, 102977), False, 'import pytest\n'), ((103255, 103269), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (103262, 103269), False, 'from whylogs.proto import InferredType, Op\n'), ((103798, 103812), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (103805, 103812), False, 'from whylogs.proto import InferredType, Op\n'), ((104171, 104187), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (104178, 104187), False, 'from whylogs.proto import InferredType, Op\n'), ((104199, 104266), 'pytest.approx', 'pytest.approx', (["constraints_email[1]['between']['lowerValue']", '(0.001)'], {}), "(constraints_email[1]['between']['lowerValue'], 0.001)\n", (104212, 104266), False, 'import pytest\n'), ((104283, 104350), 'pytest.approx', 'pytest.approx', (["constraints_email[1]['between']['upperValue']", '(0.001)'], {}), "(constraints_email[1]['between']['upperValue'], 0.001)\n", (104296, 104350), False, 'import pytest\n'), ((104616, 104630), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (104623, 104630), False, 'from whylogs.proto import InferredType, Op\n'), ((111593, 111622), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (111606, 111622), False, 'import pytest\n'), ((111662, 111691), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (111675, 111691), False, 'import pytest\n'), ((112480, 112494), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (112487, 112494), False, 'from whylogs.proto import InferredType, Op\n'), ((113157, 113171), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (113164, 113171), False, 'from whylogs.proto import InferredType, Op\n'), ((113183, 113223), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.01)'], {}), "(json_value['value'], 0.01)\n", (113196, 113223), False, 'import pytest\n'), ((113284, 113299), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.SUM'], {}), '(Op.SUM)\n', (113291, 113299), False, 'from whylogs.proto import InferredType, Op\n'), ((113408, 113432), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (113421, 113432), False, 'import pytest\n'), ((113442, 113511), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': '(1)', 'value': '"""B"""'}), "(columns=1, value='B')\n", (113489, 113511), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((113521, 113545), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (113534, 113545), False, 'import pytest\n'), ((113555, 113629), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': '[1, 2]', 'value': '"""B"""'}), "(columns=[1, 2], value='B')\n", (113602, 113629), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((113639, 113663), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (113652, 113663), False, 'import pytest\n'), ((113673, 113744), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': '(1)', 'value': "['b']"}), "(columns=1, value=['b'])\n", (113720, 113744), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((114681, 114710), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (114694, 114710), False, 'import pytest\n'), ((114897, 114926), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (114910, 114926), False, 'import pytest\n'), ((115113, 115142), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (115126, 115142), False, 'import pytest\n'), ((115312, 115341), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (115325, 115341), False, 'import pytest\n'), ((116158, 116183), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (116171, 116183), False, 'import pytest\n'), ((116200, 116268), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['None'], {'op': 'Op.GT', 'reference_columns': '"""col2"""'}), "(None, op=Op.GT, reference_columns='col2')\n", (116226, 116268), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((116279, 116303), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (116292, 116303), False, 'import pytest\n'), ((116320, 116385), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['(1)'], {'op': 'Op.GT', 'reference_columns': '"""col2"""'}), "(1, op=Op.GT, reference_columns='col2')\n", (116346, 116385), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((116396, 116421), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (116409, 116421), False, 'import pytest\n'), ((116438, 116514), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""a"""'], {'op': 'Op.GT', 'reference_columns': '"""col2"""', 'value': '(2)'}), "('a', op=Op.GT, reference_columns='col2', value=2)\n", (116464, 116514), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((116525, 116550), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (116538, 116550), False, 'import pytest\n'), ((116567, 116608), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""a"""'], {'op': 'Op.GT'}), "('a', op=Op.GT)\n", (116593, 116608), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((116619, 116644), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (116632, 116644), False, 'import pytest\n'), ((116661, 116736), 'whylogs.core.statistics.constraints.MultiColumnValueConstraint', 'MultiColumnValueConstraint', (['"""a"""'], {'op': 'Op.GT', 'internal_dependent_cols_op': 'Op.GT'}), "('a', op=Op.GT, internal_dependent_cols_op=Op.GT)\n", (116687, 116736), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((120263, 120292), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (120276, 120292), False, 'import pytest\n'), ((120332, 120361), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (120345, 120361), False, 'import pytest\n'), ((120401, 120430), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (120414, 120430), False, 'import pytest\n'), ((121238, 121252), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (121245, 121252), False, 'from whylogs.proto import InferredType, Op\n'), ((122032, 122046), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (122039, 122046), False, 'from whylogs.proto import InferredType, Op\n'), ((122228, 122252), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (122241, 122252), False, 'import pytest\n'), ((122262, 122347), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '(1)', 'column_B': '"""B"""', 'value_set': "{('A', 'B')}"}), "(column_A=1, column_B='B', value_set={('A',\n 'B')})\n", (122293, 122347), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((122353, 122377), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (122366, 122377), False, 'import pytest\n'), ((122387, 122477), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': "['A']", 'value_set': "{('A', 'B')}"}), "(column_A='A', column_B=['A'], value_set={(\n 'A', 'B')})\n", (122418, 122477), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((122482, 122506), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (122495, 122506), False, 'import pytest\n'), ((122516, 122590), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': '(1.0)'}), "(column_A='A', column_B='B', value_set=1.0)\n", (122547, 122590), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((122600, 122624), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (122613, 122624), False, 'import pytest\n'), ((122634, 122710), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': '"""ABC"""'}), "(column_A='A', column_B='B', value_set='ABC')\n", (122665, 122710), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((123428, 123457), 'pytest.raises', 'pytest.raises', (['AssertionError'], {}), '(AssertionError)\n', (123441, 123457), False, 'import pytest\n'), ((124023, 124041), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.NOT_IN'], {}), '(Op.NOT_IN)\n', (124030, 124041), False, 'from whylogs.proto import InferredType, Op\n'), ((124640, 124658), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.NOT_IN'], {}), '(Op.NOT_IN)\n', (124647, 124658), False, 'from whylogs.proto import InferredType, Op\n'), ((124834, 124858), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (124847, 124858), False, 'import pytest\n'), ((124868, 124907), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '(1)'}), '(column_A=1)\n', (124895, 124907), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((124917, 124941), 'pytest.raises', 'pytest.raises', (['TypeError'], {}), '(TypeError)\n', (124930, 124941), False, 'import pytest\n'), ((124951, 124994), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': "['A']"}), "(column_A=['A'])\n", (124978, 124994), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((125270, 125325), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""', 'verbose': '(True)'}), "(column_A='A', verbose=True)\n", (125297, 125325), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((125335, 125413), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': 'val_set'}), "(column_A='A', column_B='B', value_set=val_set)\n", (125366, 125413), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((125423, 125498), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '(100)'}), '(columns=col_set, value=100)\n', (125470, 125498), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((126282, 126337), 'whylogs.core.statistics.constraints.columnValuesUniqueWithinRow', 'columnValuesUniqueWithinRow', ([], {'column_A': '"""A"""', 'verbose': '(True)'}), "(column_A='A', verbose=True)\n", (126309, 126337), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((126347, 126425), 'whylogs.core.statistics.constraints.columnPairValuesInSetConstraint', 'columnPairValuesInSetConstraint', ([], {'column_A': '"""A"""', 'column_B': '"""B"""', 'value_set': 'val_set'}), "(column_A='A', column_B='B', value_set=val_set)\n", (126378, 126425), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((126435, 126510), 'whylogs.core.statistics.constraints.sumOfRowValuesOfMultipleColumnsEqualsConstraint', 'sumOfRowValuesOfMultipleColumnsEqualsConstraint', ([], {'columns': 'col_set', 'value': '(100)'}), '(columns=col_set, value=100)\n', (126482, 126510), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((127117, 127135), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.NOT_IN'], {}), '(Op.NOT_IN)\n', (127124, 127135), False, 'from whylogs.proto import InferredType, Op\n'), ((127405, 127419), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.IN'], {}), '(Op.IN)\n', (127412, 127419), False, 'from whylogs.proto import InferredType, Op\n'), ((127707, 127721), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.EQ'], {}), '(Op.EQ)\n', (127714, 127721), False, 'from whylogs.proto import InferredType, Op\n'), ((127733, 127776), 'pytest.approx', 'pytest.approx', (["sum_of_values['value']", '(0.01)'], {}), "(sum_of_values['value'], 0.01)\n", (127746, 127776), False, 'import pytest\n'), ((127842, 127857), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.SUM'], {}), '(Op.SUM)\n', (127849, 127857), False, 'from whylogs.proto import InferredType, Op\n'), ((2179, 2210), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['each_op', '{3.6}'], {}), '(each_op, {3.6})\n', (2194, 2210), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2245, 2274), 'whylogs.core.statistics.constraints.ValueConstraint', 'ValueConstraint', (['each_op', '(3.6)'], {}), '(each_op, 3.6)\n', (2260, 2274), False, 'from whylogs.core.statistics.constraints import MAX_SET_DISPLAY_MESSAGE_LENGTH, DatasetConstraints, MultiColumnValueConstraint, MultiColumnValueConstraints, Op, SummaryConstraint, SummaryConstraints, ValueConstraint, ValueConstraints, _matches_json_schema, _summary_funcs1, _value_funcs, approximateEntropyBetweenConstraint, columnChiSquaredTestPValueGreaterThanConstraint, columnExistsConstraint, columnKLDivergenceLessThanConstraint, columnMostCommonValueInSetConstraint, columnPairValuesInSetConstraint, columnsMatchSetConstraint, columnUniqueValueCountBetweenConstraint, columnUniqueValueProportionBetweenConstraint, columnValuesAGreaterThanBConstraint, columnValuesInSetConstraint, columnValuesNotNullConstraint, columnValuesTypeEqualsConstraint, columnValuesTypeInSetConstraint, columnValuesUniqueWithinRow, containsCreditCardConstraint, containsEmailConstraint, containsSSNConstraint, containsURLConstraint, dateUtilParseableConstraint, distinctValuesContainSetConstraint, distinctValuesEqualSetConstraint, distinctValuesInSetConstraint, jsonParseableConstraint, matchesJsonSchemaConstraint, maxBetweenConstraint, meanBetweenConstraint, minBetweenConstraint, missingValuesProportionBetweenConstraint, numberOfRowsConstraint, parametrizedKSTestPValueGreaterThanConstraint, quantileBetweenConstraint, stddevBetweenConstraint, strftimeFormatConstraint, stringLengthBetweenConstraint, stringLengthEqualConstraint, sumOfRowValuesOfMultipleColumnsEqualsConstraint\n'), ((2347, 2373), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['msg_value'], {}), '(msg_value)\n', (2362, 2373), False, 'from whylogs.util.protobuf import message_to_json\n'), ((2733, 2749), 'whylogs.proto.Op.Name', 'Op.Name', (['each_op'], {}), '(each_op)\n', (2740, 2749), False, 'from whylogs.proto import InferredType, Op\n'), ((3171, 3201), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['msg_sum_const'], {}), '(msg_sum_const)\n', (3186, 3201), False, 'from whylogs.util.protobuf import message_to_json\n'), ((3266, 3307), 'pytest.approx', 'pytest.approx', (["json_summary['value']", '(0.1)'], {}), "(json_summary['value'], 0.1)\n", (3279, 3307), False, 'import pytest\n'), ((11593, 11609), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.BTWN'], {}), '(Op.BTWN)\n', (11600, 11609), False, 'from whylogs.proto import InferredType, Op\n'), ((66035, 66057), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['props'], {}), '(props)\n', (66050, 66057), False, 'from whylogs.util.protobuf import message_to_json\n'), ((66094, 66122), 'whylogs.util.protobuf.message_to_json', 'message_to_json', (['deser_props'], {}), '(deser_props)\n', (66109, 66122), False, 'from whylogs.util.protobuf import message_to_json\n'), ((82426, 82451), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['t'], {}), '(t)\n', (82448, 82451), False, 'from whylogs.proto import InferredType, Op\n'), ((82479, 82509), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['t.type'], {}), '(t.type)\n', (82501, 82509), False, 'from whylogs.proto import InferredType, Op\n'), ((2649, 2690), 'pytest.approx', 'pytest.approx', (["json_value['value']", '(0.001)'], {}), "(json_value['value'], 0.001)\n", (2662, 2690), False, 'import pytest\n'), ((3410, 3426), 'whylogs.proto.Op.Name', 'Op.Name', (['each_op'], {}), '(each_op)\n', (3417, 3426), False, 'from whylogs.proto import InferredType, Op\n'), ((8173, 8187), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.LT'], {}), '(Op.LT)\n', (8180, 8187), False, 'from whylogs.proto import InferredType, Op\n'), ((8957, 8974), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (8964, 8974), False, 'from whylogs.proto import InferredType, Op\n'), ((9211, 9225), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GE'], {}), '(Op.GE)\n', (9218, 9225), False, 'from whylogs.proto import InferredType, Op\n'), ((10044, 10061), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (10051, 10061), False, 'from whylogs.proto import InferredType, Op\n'), ((10298, 10312), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GE'], {}), '(Op.GE)\n', (10305, 10312), False, 'from whylogs.proto import InferredType, Op\n'), ((10808, 10825), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.MATCH'], {}), '(Op.MATCH)\n', (10815, 10825), False, 'from whylogs.proto import InferredType, Op\n'), ((10933, 10947), 'whylogs.proto.Op.Name', 'Op.Name', (['Op.GE'], {}), '(Op.GE)\n', (10940, 10947), False, 'from whylogs.proto import InferredType, Op\n'), ((36326, 36391), 'json.dumps', 'json.dumps', (["{'name': 's', 'w2w2': 'dgsg', 'years': 232, 'abc': 1}"], {}), "({'name': 's', 'w2w2': 'dgsg', 'years': 232, 'abc': 1})\n", (36336, 36391), False, 'import json\n'), ((36443, 36507), 'json.dumps', 'json.dumps', (["{'name': 's', 'w2w2': 12.38, 'years': 232, 'abc': 1}"], {}), "({'name': 's', 'w2w2': 12.38, 'years': 232, 'abc': 1})\n", (36453, 36507), False, 'import json\n'), ((36559, 36608), 'json.dumps', 'json.dumps', (["{'name': 's', 'years': 232, 'abc': 1}"], {}), "({'name': 's', 'years': 232, 'abc': 1})\n", (36569, 36608), False, 'import json\n'), ((36660, 36695), 'json.dumps', 'json.dumps', (["{'name': 's', 'abc': 1}"], {}), "({'name': 's', 'abc': 1})\n", (36670, 36695), False, 'import json\n'), ((36747, 36814), 'json.dumps', 'json.dumps', (["{'name': 's', 'w2w2': 'dgsg', 'years': '232', 'abc': 1}"], {}), "({'name': 's', 'w2w2': 'dgsg', 'years': '232', 'abc': 1})\n", (36757, 36814), False, 'import json\n'), ((78590, 78642), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['InferredType.Type.FRACTIONAL'], {}), '(InferredType.Type.FRACTIONAL)\n', (78612, 78642), False, 'from whylogs.proto import InferredType, Op\n'), ((79356, 79381), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['(1)'], {}), '(1)\n', (79378, 79381), False, 'from whylogs.proto import InferredType, Op\n'), ((79902, 79950), 'whylogs.proto.InferredType.Type.Name', 'InferredType.Type.Name', (['InferredType.Type.STRING'], {}), '(InferredType.Type.STRING)\n', (79924, 79950), False, 'from whylogs.proto import InferredType, Op\n'), ((2456, 2472), 'whylogs.proto.Op.Name', 'Op.Name', (['each_op'], {}), '(each_op)\n', (2463, 2472), False, 'from whylogs.proto import InferredType, Op\n'), ((2604, 2620), 'whylogs.proto.Op.Name', 'Op.Name', (['each_op'], {}), '(each_op)\n', (2611, 2620), False, 'from whylogs.proto import InferredType, Op\n')] |
import pytest
from testutil import compare_frequent_items
from whylogs.core.statistics import NumberTracker
def test_count_is_correct():
x = NumberTracker()
assert x.count == 0
x.track(None)
assert x.count == 0
for val in [1, 2, 3]:
x.track(val)
assert x.count == 3
for val in [1.0, 2.0]:
x.track(val)
assert x.count == 5
def test_int_value_should_not_increase_float_count():
x = NumberTracker()
for v in [10, 11, 12]:
x.track(v)
assert x.ints.count == 3
assert x.floats.count == 0
assert x.variance.stddev() == pytest.approx(1.0, 1e-3)
assert x.theta_sketch.get_result().get_estimate() == pytest.approx(3, 1e-4)
hist = x.histogram
assert hist.get_n() == 3
assert hist.get_max_value() == pytest.approx(12, 1e-4)
assert hist.get_min_value() == pytest.approx(10, 1e-4)
def test_float_after_int_resets_int_tracker():
x = NumberTracker()
x.track(10)
x.track(11)
assert x.ints.count == 2
assert x.floats.count == 0
x.track(12.0)
assert x.ints.count == 0
assert x.floats.count == 3
assert x.variance.stddev() == pytest.approx(1.0, 1e-3)
assert x.histogram.get_n() == 3
assert x.theta_sketch.get_result().get_estimate() == pytest.approx(3, 1e-4)
assert x.histogram.get_max_value() == pytest.approx(12, 1e-4)
assert x.histogram.get_min_value() == pytest.approx(10, 1e-4)
def test_empty_merge_succeeds():
x1 = NumberTracker()
x2 = NumberTracker()
x3 = x1.merge(x2)
assert isinstance(x3, NumberTracker)
def test_merge():
x = NumberTracker()
for v in [10, 11, 13]:
x.track(v)
merged = x.merge(x)
assert merged.ints.count == 6
assert merged.floats.count == 0
assert merged.histogram.get_n() == 6
assert merged.histogram.get_max_value() == 13.0
assert merged.histogram.get_min_value() == 10.0
expected_freq = [
(10, 2, 2, 2),
(11, 2, 2, 2),
(13, 2, 2, 2),
]
compare_frequent_items(expected_freq, merged.frequent_numbers.get_frequent_items())
msg = merged.to_protobuf()
NumberTracker.from_protobuf(msg)
def test_protobuf_roundtrip():
x0 = NumberTracker()
for v in [10, 11, 13]:
x0.track(v)
msg = x0.to_protobuf()
roundtrip = NumberTracker.from_protobuf(msg)
assert x0.ints.count == roundtrip.ints.count
assert x0.floats.count == roundtrip.floats.count
assert x0.histogram.get_n() == roundtrip.histogram.get_n()
assert x0.histogram.get_min_value() == roundtrip.histogram.get_min_value()
assert x0.histogram.get_max_value() == roundtrip.histogram.get_max_value()
def test_high_cardinality_not_discrete():
vals = 3 * [1, 2, 3] + [4.0, 6.0, 9.0, 9.0]
x = NumberTracker()
for v in vals:
x.track(v)
summary = x.to_summary()
assert not summary.is_discrete
def test_one_value_not_discrete():
x = NumberTracker()
x.track(1)
assert not x.to_summary().is_discrete
def test_low_cardinality_is_discrete():
vals = 3 * [1, 2, 3] + [4.0, 6.0, 9.0, 9.0]
vals = vals * 10
x = NumberTracker()
for v in vals:
x.track(v)
summary = x.to_summary()
assert summary.is_discrete
def test_track_floats_ints_unique_in_cardinality_estimate():
vals = [1, 2, 3, 4]
x = NumberTracker()
for val in vals:
x.track(val)
assert x.to_summary().unique_count.estimate == 4
for val in vals:
x.track(float(val))
assert x.to_summary().unique_count.estimate == 8
| [
"whylogs.core.statistics.NumberTracker.from_protobuf",
"whylogs.core.statistics.NumberTracker"
] | [((148, 163), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (161, 163), False, 'from whylogs.core.statistics import NumberTracker\n'), ((437, 452), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (450, 452), False, 'from whylogs.core.statistics import NumberTracker\n'), ((928, 943), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (941, 943), False, 'from whylogs.core.statistics import NumberTracker\n'), ((1469, 1484), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (1482, 1484), False, 'from whylogs.core.statistics import NumberTracker\n'), ((1494, 1509), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (1507, 1509), False, 'from whylogs.core.statistics import NumberTracker\n'), ((1601, 1616), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (1614, 1616), False, 'from whylogs.core.statistics import NumberTracker\n'), ((2125, 2157), 'whylogs.core.statistics.NumberTracker.from_protobuf', 'NumberTracker.from_protobuf', (['msg'], {}), '(msg)\n', (2152, 2157), False, 'from whylogs.core.statistics import NumberTracker\n'), ((2200, 2215), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (2213, 2215), False, 'from whylogs.core.statistics import NumberTracker\n'), ((2307, 2339), 'whylogs.core.statistics.NumberTracker.from_protobuf', 'NumberTracker.from_protobuf', (['msg'], {}), '(msg)\n', (2334, 2339), False, 'from whylogs.core.statistics import NumberTracker\n'), ((2764, 2779), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (2777, 2779), False, 'from whylogs.core.statistics import NumberTracker\n'), ((2927, 2942), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (2940, 2942), False, 'from whylogs.core.statistics import NumberTracker\n'), ((3119, 3134), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (3132, 3134), False, 'from whylogs.core.statistics import NumberTracker\n'), ((3328, 3343), 'whylogs.core.statistics.NumberTracker', 'NumberTracker', ([], {}), '()\n', (3341, 3343), False, 'from whylogs.core.statistics import NumberTracker\n'), ((594, 619), 'pytest.approx', 'pytest.approx', (['(1.0)', '(0.001)'], {}), '(1.0, 0.001)\n', (607, 619), False, 'import pytest\n'), ((677, 701), 'pytest.approx', 'pytest.approx', (['(3)', '(0.0001)'], {}), '(3, 0.0001)\n', (690, 701), False, 'import pytest\n'), ((788, 813), 'pytest.approx', 'pytest.approx', (['(12)', '(0.0001)'], {}), '(12, 0.0001)\n', (801, 813), False, 'import pytest\n'), ((847, 872), 'pytest.approx', 'pytest.approx', (['(10)', '(0.0001)'], {}), '(10, 0.0001)\n', (860, 872), False, 'import pytest\n'), ((1151, 1176), 'pytest.approx', 'pytest.approx', (['(1.0)', '(0.001)'], {}), '(1.0, 0.001)\n', (1164, 1176), False, 'import pytest\n'), ((1270, 1294), 'pytest.approx', 'pytest.approx', (['(3)', '(0.0001)'], {}), '(3, 0.0001)\n', (1283, 1294), False, 'import pytest\n'), ((1335, 1360), 'pytest.approx', 'pytest.approx', (['(12)', '(0.0001)'], {}), '(12, 0.0001)\n', (1348, 1360), False, 'import pytest\n'), ((1401, 1426), 'pytest.approx', 'pytest.approx', (['(10)', '(0.0001)'], {}), '(10, 0.0001)\n', (1414, 1426), False, 'import pytest\n')] |
import os
import pytest
import boto3
from moto.s3.responses import DEFAULT_REGION_NAME
from moto import mock_s3
from whylogs.app import WriterConfig
from whylogs.app.session import session_from_config
from whylogs.app.config import load_config
from whylogs.app.writers import writer_from_config
BUCKET = "mocked_bucket"
MY_PREFIX = "mock_folder"
object_keys = ["dataset_test_s3/dataset_summary/flat_table/dataset_summary.csv",
"dataset_test_s3/dataset_summary/freq_numbers/dataset_summary.json",
"dataset_test_s3/dataset_summary/frequent_strings/dataset_summary.json",
"dataset_test_s3/dataset_summary/histogram/dataset_summary.json",
"dataset_test_s3/dataset_summary/json/dataset_summary.json",
"dataset_test_s3/dataset_summary/protobuf/dataset_summary.bin"]
@pytest.fixture
def moto_boto():
# setup: start moto server and create the bucket
mocks3 = mock_s3()
mocks3.start()
res = boto3.resource('s3', region_name=DEFAULT_REGION_NAME)
res.create_bucket(Bucket=BUCKET)
yield
# teardown: stop moto server
mocks3.stop()
@pytest.mark.usefixtures("moto_boto")
def test_s3_writer_bug(df_lending_club, moto_boto, s3_config_path):
assert os.path.exists(s3_config_path)
config = load_config(s3_config_path)
session = session_from_config(config)
with session.logger("dataset_test_s3") as logger:
logger.log_dataframe(df_lending_club)
client = boto3.client('s3')
objects = client.list_objects(Bucket="mocked_bucket")
assert len([each_obj["Key"] for each_obj in objects["Contents"]]) == 1
assert objects["Contents"][0]["Key"] == "dataset_test_s3/dataset_summary/protobuf/dataset_summary.bin"
assert "s3:" not in [d.name for d in os.scandir(
os.getcwd()) if d.is_dir()]
@pytest.mark.usefixtures("moto_boto")
def test_s3_writer(df_lending_club, moto_boto, s3_all_config_path):
assert os.path.exists(s3_all_config_path)
config = load_config(s3_all_config_path)
session = session_from_config(config)
with session.logger("dataset_test_s3") as logger:
logger.log_dataframe(df_lending_club)
client = boto3.client('s3')
objects = client.list_objects(Bucket="mocked_bucket")
for idx, each_objc in enumerate(objects["Contents"]):
assert each_objc["Key"] == object_keys[idx]
def test_non_valid_type(tmpdir):
config = WriterConfig(type="blob", formats=["json"], output_path=tmpdir)
with pytest.raises(ValueError):
writer = writer_from_config(config)
| [
"whylogs.app.config.load_config",
"whylogs.app.WriterConfig",
"whylogs.app.writers.writer_from_config",
"whylogs.app.session.session_from_config"
] | [((1135, 1171), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""moto_boto"""'], {}), "('moto_boto')\n", (1158, 1171), False, 'import pytest\n'), ((1834, 1870), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""moto_boto"""'], {}), "('moto_boto')\n", (1857, 1870), False, 'import pytest\n'), ((940, 949), 'moto.mock_s3', 'mock_s3', ([], {}), '()\n', (947, 949), False, 'from moto import mock_s3\n'), ((979, 1032), 'boto3.resource', 'boto3.resource', (['"""s3"""'], {'region_name': 'DEFAULT_REGION_NAME'}), "('s3', region_name=DEFAULT_REGION_NAME)\n", (993, 1032), False, 'import boto3\n'), ((1252, 1282), 'os.path.exists', 'os.path.exists', (['s3_config_path'], {}), '(s3_config_path)\n', (1266, 1282), False, 'import os\n'), ((1297, 1324), 'whylogs.app.config.load_config', 'load_config', (['s3_config_path'], {}), '(s3_config_path)\n', (1308, 1324), False, 'from whylogs.app.config import load_config\n'), ((1339, 1366), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (1358, 1366), False, 'from whylogs.app.session import session_from_config\n'), ((1482, 1500), 'boto3.client', 'boto3.client', (['"""s3"""'], {}), "('s3')\n", (1494, 1500), False, 'import boto3\n'), ((1951, 1985), 'os.path.exists', 'os.path.exists', (['s3_all_config_path'], {}), '(s3_all_config_path)\n', (1965, 1985), False, 'import os\n'), ((2000, 2031), 'whylogs.app.config.load_config', 'load_config', (['s3_all_config_path'], {}), '(s3_all_config_path)\n', (2011, 2031), False, 'from whylogs.app.config import load_config\n'), ((2046, 2073), 'whylogs.app.session.session_from_config', 'session_from_config', (['config'], {}), '(config)\n', (2065, 2073), False, 'from whylogs.app.session import session_from_config\n'), ((2189, 2207), 'boto3.client', 'boto3.client', (['"""s3"""'], {}), "('s3')\n", (2201, 2207), False, 'import boto3\n'), ((2426, 2489), 'whylogs.app.WriterConfig', 'WriterConfig', ([], {'type': '"""blob"""', 'formats': "['json']", 'output_path': 'tmpdir'}), "(type='blob', formats=['json'], output_path=tmpdir)\n", (2438, 2489), False, 'from whylogs.app import WriterConfig\n'), ((2499, 2524), 'pytest.raises', 'pytest.raises', (['ValueError'], {}), '(ValueError)\n', (2512, 2524), False, 'import pytest\n'), ((2543, 2569), 'whylogs.app.writers.writer_from_config', 'writer_from_config', (['config'], {}), '(config)\n', (2561, 2569), False, 'from whylogs.app.writers import writer_from_config\n'), ((1803, 1814), 'os.getcwd', 'os.getcwd', ([], {}), '()\n', (1812, 1814), False, 'import os\n')] |
"""
Logger options
==============
Example showing the use of a few logger options which can control
output locations
"""
from whylogs.app.session import get_or_create_session
import pandas as pd
# Load some example data, using 'issue_d' as a datetime column
df = pd.read_csv('data/lending_club_1000.csv', parse_dates=['issue_d'])
# Create a WhyLogs logging session
session = get_or_create_session()
# Log statistics for the dataset with config options
with session.logger(
dataset_name='lending-club', dataset_timestamp=df['issue_d'].max(),
) as ylog:
ylog.log_dataframe(df)
# Note that the logger is active within this context
print('Logger is active:', ylog.is_active())
# The logger is no longer active
print('Logger is active:', ylog.is_active())
| [
"whylogs.app.session.get_or_create_session"
] | [((265, 331), 'pandas.read_csv', 'pd.read_csv', (['"""data/lending_club_1000.csv"""'], {'parse_dates': "['issue_d']"}), "('data/lending_club_1000.csv', parse_dates=['issue_d'])\n", (276, 331), True, 'import pandas as pd\n'), ((378, 401), 'whylogs.app.session.get_or_create_session', 'get_or_create_session', ([], {}), '()\n', (399, 401), False, 'from whylogs.app.session import get_or_create_session\n')] |
import os
import pandas as pd
import pytest
from whylogs.core.metrics.regression_metrics import RegressionMetrics
from whylogs.proto import RegressionMetricsMessage
TEST_DATA_PATH = os.path.abspath(
os.path.join(
os.path.realpath(os.path.dirname(__file__)),
os.pardir,
os.pardir,
os.pardir,
os.pardir,
"testdata",
)
)
def my_test():
regmet = RegressionMetrics()
assert regmet.count == 0
assert regmet.sum_diff == 0.0
assert regmet.sum2_diff == 0.0
assert regmet.sum_abs_diff == 0.0
assert regmet.mean_squared_error() is None
assert regmet.mean_absolute_error() is None
assert regmet.root_mean_squared_error() is None
def test_load_parquet():
mean_absolute_error = 85.94534216005789
mean_squared_error = 11474.89611670205
root_mean_squared_error = 107.12094154133472
regmet = RegressionMetrics()
df = pd.read_parquet(os.path.join(os.path.join(TEST_DATA_PATH, "metrics", "2021-02-12.parquet")))
regmet.add(df["predictions"].to_list(), df["targets"].to_list())
assert regmet.count == len(df["predictions"].to_list())
assert regmet.mean_squared_error() == pytest.approx(mean_squared_error, 0.01)
assert regmet.mean_absolute_error() == pytest.approx(mean_absolute_error, 0.01)
assert regmet.root_mean_squared_error() == pytest.approx(root_mean_squared_error, 0.01)
msg = regmet.to_protobuf()
new_regmet = RegressionMetrics.from_protobuf(msg)
assert regmet.count == new_regmet.count
assert regmet.mean_squared_error() == new_regmet.mean_squared_error()
assert regmet.root_mean_squared_error() == new_regmet.root_mean_squared_error()
assert regmet.mean_absolute_error() == new_regmet.mean_absolute_error()
def test_empty_protobuf_should_return_none():
empty_message = RegressionMetricsMessage()
assert RegressionMetrics.from_protobuf(empty_message) is None
def test_merging():
regmet_sum = RegressionMetrics()
regmet = RegressionMetrics(prediction_field="predictions", target_field="targets")
df = pd.read_parquet(os.path.join(os.path.join(TEST_DATA_PATH, "metrics", "2021-02-12.parquet")))
regmet.add(df["predictions"].to_list(), df["targets"].to_list())
regmet_sum.add(df["predictions"].to_list(), df["targets"].to_list())
regmet_2 = RegressionMetrics(prediction_field="predictions", target_field="targets")
df_2 = pd.read_parquet(os.path.join(os.path.join(TEST_DATA_PATH, "metrics", "2021-02-13.parquet")))
regmet_2.add(df_2["predictions"].to_list(), df_2["targets"].to_list())
regmet_sum.add(df_2["predictions"].to_list(), df_2["targets"].to_list())
merged_reg_metr = regmet.merge(regmet_2)
assert merged_reg_metr.count == regmet_sum.count
assert merged_reg_metr.mean_squared_error() == pytest.approx(regmet_sum.mean_squared_error(), 0.001)
assert merged_reg_metr.root_mean_squared_error() == pytest.approx(regmet_sum.root_mean_squared_error(), 0.001)
assert merged_reg_metr.mean_absolute_error() == pytest.approx(regmet_sum.mean_absolute_error(), 0.001)
| [
"whylogs.core.metrics.regression_metrics.RegressionMetrics",
"whylogs.proto.RegressionMetricsMessage",
"whylogs.core.metrics.regression_metrics.RegressionMetrics.from_protobuf"
] | [((407, 426), 'whylogs.core.metrics.regression_metrics.RegressionMetrics', 'RegressionMetrics', ([], {}), '()\n', (424, 426), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((889, 908), 'whylogs.core.metrics.regression_metrics.RegressionMetrics', 'RegressionMetrics', ([], {}), '()\n', (906, 908), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((1449, 1485), 'whylogs.core.metrics.regression_metrics.RegressionMetrics.from_protobuf', 'RegressionMetrics.from_protobuf', (['msg'], {}), '(msg)\n', (1480, 1485), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((1832, 1858), 'whylogs.proto.RegressionMetricsMessage', 'RegressionMetricsMessage', ([], {}), '()\n', (1856, 1858), False, 'from whylogs.proto import RegressionMetricsMessage\n'), ((1964, 1983), 'whylogs.core.metrics.regression_metrics.RegressionMetrics', 'RegressionMetrics', ([], {}), '()\n', (1981, 1983), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((1998, 2071), 'whylogs.core.metrics.regression_metrics.RegressionMetrics', 'RegressionMetrics', ([], {'prediction_field': '"""predictions"""', 'target_field': '"""targets"""'}), "(prediction_field='predictions', target_field='targets')\n", (2015, 2071), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((2332, 2405), 'whylogs.core.metrics.regression_metrics.RegressionMetrics', 'RegressionMetrics', ([], {'prediction_field': '"""predictions"""', 'target_field': '"""targets"""'}), "(prediction_field='predictions', target_field='targets')\n", (2349, 2405), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((1183, 1222), 'pytest.approx', 'pytest.approx', (['mean_squared_error', '(0.01)'], {}), '(mean_squared_error, 0.01)\n', (1196, 1222), False, 'import pytest\n'), ((1267, 1307), 'pytest.approx', 'pytest.approx', (['mean_absolute_error', '(0.01)'], {}), '(mean_absolute_error, 0.01)\n', (1280, 1307), False, 'import pytest\n'), ((1355, 1399), 'pytest.approx', 'pytest.approx', (['root_mean_squared_error', '(0.01)'], {}), '(root_mean_squared_error, 0.01)\n', (1368, 1399), False, 'import pytest\n'), ((1870, 1916), 'whylogs.core.metrics.regression_metrics.RegressionMetrics.from_protobuf', 'RegressionMetrics.from_protobuf', (['empty_message'], {}), '(empty_message)\n', (1901, 1916), False, 'from whylogs.core.metrics.regression_metrics import RegressionMetrics\n'), ((245, 270), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (260, 270), False, 'import os\n'), ((947, 1008), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""metrics"""', '"""2021-02-12.parquet"""'], {}), "(TEST_DATA_PATH, 'metrics', '2021-02-12.parquet')\n", (959, 1008), False, 'import os\n'), ((2110, 2171), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""metrics"""', '"""2021-02-12.parquet"""'], {}), "(TEST_DATA_PATH, 'metrics', '2021-02-12.parquet')\n", (2122, 2171), False, 'import os\n'), ((2446, 2507), 'os.path.join', 'os.path.join', (['TEST_DATA_PATH', '"""metrics"""', '"""2021-02-13.parquet"""'], {}), "(TEST_DATA_PATH, 'metrics', '2021-02-13.parquet')\n", (2458, 2507), False, 'import os\n')] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.