<commit_before>package org.openspaces.admin.pu.statistics;

import java.util.concurrent.TimeUnit;

import org.openspaces.admin.internal.pu.statistics.DefaultTimeWindowStatisticsConfigUtils;

public class PercentileTimeWindowStatisticsConfigurer {
    
    private PercentileTimeWindowStatisticsConfig config = new PercentileTimeWindowStatisticsConfig();
    
    public PercentileTimeWindowStatisticsConfigurer timeWindow(long timeWindow, TimeUnit timeUnit) {
        DefaultTimeWindowStatisticsConfigUtils.timeWindow(config, timeWindow, timeUnit);
        return this;
    }
    
    public PercentileTimeWindowStatisticsConfigurer minimumTimeWindow(long timeWindow, TimeUnit timeUnit) {
        DefaultTimeWindowStatisticsConfigUtils.minimumTimeWindow(config, timeWindow, timeUnit);
        return this;
    }
    
    public PercentileTimeWindowStatisticsConfigurer maximumTimeWindow(long timeWindow, TimeUnit timeUnit) {
        DefaultTimeWindowStatisticsConfigUtils.maximumTimeWindow(config, timeWindow, timeUnit);
        return this;
    }
    
    public PercentileTimeWindowStatisticsConfigurer percentile(int percentile) {
        config.setPercentile(percentile);
        return this;
    }
    <commit_msg>GS-9236 Added javadocs<commit_after>package org.openspaces.admin.pu.statistics;

import java.util.concurrent.TimeUnit;

import org.openspaces.admin.internal.pu.statistics.DefaultTimeWindowStatisticsConfigUtils;
/**
 * Fluent API for creating a new {@link PercentileTimeWindowStatisticsConfig} object
 * @author itaif
 * @since 9.0.0
 */
public class PercentileTimeWindowStatisticsConfigurer {
    
    private PercentileTimeWindowStatisticsConfig config = new PercentileTimeWindowStatisticsConfig();
    
    public PercentileTimeWindowStatisticsConfigurer timeWindow(long timeWindow, TimeUnit timeUnit) {
        DefaultTimeWindowStatisticsConfigUtils.timeWindow(config, timeWindow, timeUnit);
        return this;
    }
    
    public PercentileTimeWindowStatisticsConfigurer minimumTimeWindow(long timeWindow, TimeUnit timeUnit) {
        DefaultTimeWindowStatisticsConfigUtils.minimumTimeWindow(config, timeWindow, timeUnit);
        return this;
    }
    
    public PercentileTimeWindowStatisticsConfigurer maximumTimeWindow(long timeWindow, TimeUnit timeUnit) {
        DefaultTimeWindowStatisticsConfigUtils.maximumTimeWindow(config, timeWindow, timeUnit);
        return this;
    }
    
    public PercentileTimeWindowStatisticsConfigurer percentile(int percentile) {
        config.setPercentile(percentile);
        return this;
    }
    
{'fraction_non_alphanumeric': 0.059875583203732506, 'fraction_numerical': 0.0027216174183514776, 'mean_word_length': 4.654945054945055, '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': '5532649', 'n_tokens_mistral': 659, 'n_tokens_neox': 629, 'n_words': 123}