parameters: (change_point, test, rows)
return_statement: return anomaly.Anomaly(
        start_revision=start_rev,
        end_revision=end_rev,
        median_before_anomaly=median_before,
        median_after_anomaly=median_after,
        segment_size_before=change_point.size_before,
        segment_size_after=change_point.size_after,
        window_end_revision=change_point.window_end,
        std_dev_before_anomaly=change_point.std_dev_before,
        t_statistic=change_point.t_statistic,
        degrees_of_freedom=change_point.degrees_of_freedom,
        p_value=change_point.p_value,
        is_improvement=_IsImprovement(test, median_before, median_after),
        test=test.key,
        sheriff=test.sheriff,
        internal_only=test.internal_only)
docstring: Creates an Anomaly entity.
  
    Args:
      change_point: A find_change_points.ChangePoint object.
      test: The TestMetadata entity that the anomalies were found on.
      rows: List of Row entities that the anomalies were found on.
  
    Returns:
      An Anomaly entity, which is not yet put in the datastore.
docstring_summary: Creates an Anomaly entity.
docstring_tokens: Creates an Anomaly entity .
function: def _MakeAnomalyEntity(change_point, test, rows):
    """Creates an Anomaly entity.
  
    Args:
      change_point: A find_change_points.ChangePoint object.
      test: The TestMetadata entity that the anomalies were found on.
      rows: List of Row entities that the anomalies were found on.
  
    Returns:
      An Anomaly entity, which is not yet put in the datastore.
    """
    end_rev = change_point.x_value
    start_rev = _GetImmediatelyPreviousRevisionNumber(end_rev, rows) + 1
    median_before = change_point.median_before
    median_after = change_point.median_after
    return anomaly.Anomaly(
        start_revision=start_rev,
        end_revision=end_rev,
        median_before_anomaly=median_before,
        median_after_anomaly=median_after,
        segment_size_before=change_point.size_before,
        segment_size_after=change_point.size_after,
        window_end_revision=change_point.window_end,
        std_dev_before_anomaly=change_point.std_dev_before,
        t_statistic=change_point.t_statistic,
        degrees_of_freedom=change_point.degrees_of_freedom,
        p_value=change_point.p_value,
        is_improvement=_IsImprovement(test, median_before, median_after),
        test=test.key,
        sheriff=test.sheriff,
        internal_only=test.internal_only)
function_tokens: def _MakeAnomalyEntity ( change_point , test , rows ) : end_rev = change_point . x_value start_rev = _GetImmediatelyPreviousRevisionNumber ( end_rev , rows ) + 1 median_before = change_point . median_before median_after = change_point . median_after return anomaly . Anomaly ( start_revision = start_rev , end_revision = end_rev , median_before_anomaly = median_before , median_after_anomaly = median_after , segment_size_before = change_point . size_before , segment_size_after = change_point . size_after , window_end_revision = change_point . window_end , std_dev_before_anomaly = change_point . std_dev_before , t_statistic = change_point . t_statistic , degrees_of_freedom = change_point . degrees_of_freedom , p_value = change_point . p_value , is_improvement = _IsImprovement ( test , median_before , median_after ) , test = test . key , sheriff = test . sheriff , internal_only = test . internal_only )