parameters: (all_values)
return_statement: return _MergeLikeValuesCommon(
        all_values,
        lambda x: (x.page, x.name),
        lambda v0, merge_group: v0.MergeLikeValuesFromSamePage(merge_group))
docstring: Merges values that measure the same thing on the same page.
  
    A page may end up being measured multiple times, meaning that we may end up
    with something like this:
         ScalarValue(page1, 'x', 1)
         ScalarValue(page2, 'x', 4)
         ScalarValue(page1, 'x', 2)
         ScalarValue(page2, 'x', 5)
  
    This function will produce:
         ListOfScalarValues(page1, 'x', [1, 2])
         ListOfScalarValues(page2, 'x', [4, 5])
  
    The workhorse of this code is Value.MergeLikeValuesFromSamePage.
  
    This requires (but assumes) that the values passed in with the same grouping
    key pass the Value.IsMergableWith test. If this is not obeyed, the
    results will be undefined.
docstring_summary: Merges values that measure the same thing on the same page.
docstring_tokens: Merges values that measure the same thing on the same page .
function: def MergeLikeValuesFromSamePage(all_values):
    """Merges values that measure the same thing on the same page.
  
    A page may end up being measured multiple times, meaning that we may end up
    with something like this:
         ScalarValue(page1, 'x', 1)
         ScalarValue(page2, 'x', 4)
         ScalarValue(page1, 'x', 2)
         ScalarValue(page2, 'x', 5)
  
    This function will produce:
         ListOfScalarValues(page1, 'x', [1, 2])
         ListOfScalarValues(page2, 'x', [4, 5])
  
    The workhorse of this code is Value.MergeLikeValuesFromSamePage.
  
    This requires (but assumes) that the values passed in with the same grouping
    key pass the Value.IsMergableWith test. If this is not obeyed, the
    results will be undefined.
    """
    return _MergeLikeValuesCommon(
        all_values,
        lambda x: (x.page, x.name),
        lambda v0, merge_group: v0.MergeLikeValuesFromSamePage(merge_group))
function_tokens: def MergeLikeValuesFromSamePage ( all_values ) : return _MergeLikeValuesCommon ( all_values , lambda x : ( x . page , x . name ) , lambda v0 , merge_group : v0 . MergeLikeValuesFromSamePage ( merge_group ) )