<commit_before>try {
    if( chartd == undefined) chartd= {};
} catch (e ) {
    chartd= {};
}
chartd.functions = [
    { name: 'alias', example: 'alias(metric*,"Aliased Metric Name")', description: "Aliases a series (or set of series)"},
    { name: 'aliasByNode', example: 'aliasByNode(metric.*,1)', description: "Aliases a series (or set of series) by taking the specific node segment"},
    { name: 'asPercent', example: 'asPercent(metric*, metric/constant/nothing)', description: "Return the series as a percentage of either the sum of those series, or of a constant, or of another series"},
    { name: 'averageSeries', example: 'averageSeries(metric*)', description: "Averages a series (mean)"},
    { name: 'avg', example: 'avg(metric*)', description: "Averages a series (mean)" },
    { name: 'bestFit', example: 'bestFit(metric)', description: "Produces a 'Best Fit' line" },
    { name: 'constantLine', example: 'constantLine(value)', description: "Produces a line of constant 'value'" },
    { name: 'offset', example: 'offset(metric*, factor)', description: "Takes a metric or a wildcard metric follwed by a constant that will be applied to each point." },
    { name: 'scale', example: 'scale(metric*, 1.0)', description: "Scales a series by the provided factor"},
    { name: 'sin', example: 'sin("title",amplitude=1)', description: "Generates a sine function based on current time range (10s interval)"},
    { name: 'sumSeries', example: 'sumSeries(metric*)', description: "Sums a series"}
];<commit_msg>Adds in help definition for summarize function.<commit_after>try {
    if( chartd == undefined) chartd= {};
} catch (e ) {
    chartd= {};
}
chartd.functions = [
    { name: 'alias', example: 'alias(metric*,"Aliased Metric Name")',
      description: "Aliases a series (or set of series)"},
    { name: 'aliasByNode', example: 'aliasByNode(metric.*,1)',
      description: "Aliases a series (or set of series) by taking the specific node segment"},
    { name: 'asPercent', example: 'asPercent(metric*, metric/constant/nothing)',
      description: "Return the series as a percentage of either the sum of those series, or of a constant, or of another series"},
    { name: 'averageSeries', example: 'averageSeries(metric*)',
      description: "Averages a series (mean)"},
    { name: 'avg', example: 'avg(metric*)',
      description: "Averages a series (mean)" },
    { name: 'bestFit', example: 'bestFit(metric)',
      description: "Produces a 'Best Fit' line" },
    { name: 'constantLine', example: 'constantLine(value)',
      description: "Produces a line of constant 'value'" },
    { name: 'offset', example: 'offset(metric*, factor)',
      description: "Takes a metric or a wildcard metric follwed by a constant that will be applied to each point." },
    { name: 'scale', example: 'scale(metric*, 1.0)',
      description: "Scales a series by the provided factor"},
    { name: 'sin', example: 'sin("title",amplitude=1)',
      description: "Generates a sine function based on current time range (10s interval)"},
    { name: 'summarize', example: 'summarize(requestContext, seriesList, intervalString, func="sum", alignToFrom=False)',
      description: 'Summarize the data into interval buckets of a certain size. Using the provided aggregation function.'},
    { name: 'sumSeries', example: 'sumSeries(metric*)',
      description: "Sums a series"}
];
{'fraction_non_alphanumeric': 0.1502361275088548, 'fraction_numerical': 0.0035419126328217238, 'mean_word_length': 4.528548123980424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1213055', 'n_tokens_mistral': 982, 'n_tokens_neox': 956, 'n_words': 366}