<commit_before>/*

container of data to be updated must have the class '.live-stream-container'

filterFunc is a function that takes one argument, the string "filter" and returns the type of filter to apply.

defaultFilter is a string of the default filter to apply

searchParams is a dictionary of additional search params to ping the server with

updateTemplate is a html string to show when new data is available. Defaults to history container code

*/
function liveStreamPing(filterFunc, defaultFilter, searchParams, updateTemplate){
    this.history = [];
    this.$container = $('.live-stream-container');
    this.pingIntervalValue = 2500;
    this.searchParams = searchParams
    this.updateTemplate = updateTemplate || "<div class='load-new pointer history-container row well' style='background-color:#5bb75b !important;'> <span class='center'> <strong> Load new items </strong> </span> </div>"

    this.setup = function() {
        this.pingInterval = setInterval($.proxy(this.ping, this), this.pingIntervalValue);
        this.setupIdle();
        this.first();
        <commit_msg>removed ugly color<commit_after>/*

container of data to be updated must have the class '.live-stream-container'

filterFunc is a function that takes one argument, the string "filter" and returns the type of filter to apply.

defaultFilter is a string of the default filter to apply

searchParams is a dictionary of additional search params to ping the server with

updateTemplate is a html string to show when new data is available. Defaults to history container code

*/
function liveStreamPing(filterFunc, defaultFilter, searchParams, updateTemplate){
    this.history = [];
    this.$container = $('.live-stream-container');
    this.pingIntervalValue = 2500;
    this.searchParams = searchParams
    this.updateTemplate = updateTemplate || "<div class='load-new pointer history-container row well'> <span class='center'> <strong> Load new items </strong> </span> </div>"

    this.setup = function() {
        this.pingInterval = setInterval($.proxy(this.ping, this), this.pingIntervalValue);
        this.setupIdle();
        this.first();
        
{'fraction_non_alphanumeric': 0.09683426443202979, 'fraction_numerical': 0.005121042830540037, 'mean_word_length': 4.068396226415095, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '368142', 'n_tokens_mistral': 555, 'n_tokens_neox': 539, 'n_words': 220}