<commit_before>/*
 * Copyright (C) 2016 the original author or authors.
 *
 * This file is part of jBB Application Project.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  You may obtain a copy of the License at
 *        http://www.apache.org/licenses/LICENSE-2.0
 */

package org.jbb.system.impl;

import com.google.common.collect.Lists;

import org.jbb.lib.properties.ModulePropertiesFactory;
import org.jbb.system.impl.base.properties.SystemProperties;
import org.jbb.system.impl.stacktrace.logic.format.EverybodyCanSeeStackTraceStrategy;
import org.jbb.system.impl.stacktrace.logic.format.NobodyCanSeeStackTraceStrategy;
import org.jbb.system.impl.stacktrace.logic.format.OnlyAdministratorsCanSeeStackTraceStrategy;
import org.jbb.system.impl.stacktrace.logic.format.OnlyAuthenticatedUsersCanSeeStackTraceStrategy;
import org.jbb.system.impl.stacktrace.logic.format.StackTraceStringFormatterStrategy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.session.SessionRepository;

import java.util.List;

@Configuration
@ComponentScan("org.jbb.system.impl")
public class SystemConfig {
    @Bean
    public SystemProperties frontendProperties(ModulePropertiesFactory propertiesFactory) {
        return propertiesFactory.create(SystemProperties.class);
    }

    @Bean
    public List<StackTraceStringFormatterStrategy> visibilityStrategies(NobodyCanSeeStackTraceStrategy nobodyCanSeeStackTraceStrategy,
                                                                        OnlyAdministratorsCanSeeStackTraceStrategy onlyAdministratorsCanSeeStackTraceStrategy,
                                                                        OnlyAuthenticatedUsersCanSeeStackTraceStrategy onlyAuthenticatedUsersCanSeeStackTraceStrategy,
                                                                        EverybodyCanSeeStackTraceStrategy everybodyCanSeeStackTraceStrategy) {

        return Lists.newArrayList(nobodyCanSeeStackTraceStrategy,
                onlyAdministratorsCanSeeStackTraceStrategy,
                onlyAuthenticatedUsersCanSeeStackTraceStrategy,
                everybodyCanSeeStackTraceStrategy);
    }

}
<commit_msg>Added fix for failing job<commit_after>/*
 * Copyright (C) 2016 the original author or authors.
 *
 * This file is part of jBB Application Project.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  You may obtain a copy of the License at
 *        http://www.apache.org/licenses/LICENSE-2.0
 */

package org.jbb.system.impl;

import com.google.common.collect.Lists;
import org.jbb.lib.properties.ModulePropertiesFactory;
import org.jbb.system.impl.base.properties.SystemProperties;
import org.jbb.system.impl.stacktrace.logic.format.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.session.SessionRegistry;
import org.springframework.security.core.session.SessionRegistryImpl;

import java.util.List;

@Configuration
@ComponentScan("org.jbb.system.impl")
public class SystemConfig {
    @Bean
    public SystemProperties frontendProperties(ModulePropertiesFactory propertiesFactory) {
        return propertiesFactory.create(SystemProperties.class);
    }

    @Bean
    public SessionRegistry sessionRegistry() {
        return new SessionRegistryImpl();
    }

    @Bean
    public List<StackTraceStringFormatterStrategy> visibilityStrategies(NobodyCanSeeStackTraceStrategy nobodyCanSeeStackTraceStrategy,
                                                                        OnlyAdministratorsCanSeeStackTraceStrategy onlyAdministratorsCanSeeStackTraceStrategy,
                                                                        OnlyAuthenticatedUsersCanSeeStackTraceStrategy onlyAuthenticatedUsersCanSeeStackTraceStrategy,
                                                                        EverybodyCanSeeStackTraceStrategy everybodyCanSeeStackTraceStrategy) {

        return Lists.newArrayList(nobodyCanSeeStackTraceStrategy,
                onlyAdministratorsCanSeeStackTraceStrategy,
                onlyAuthenticatedUsersCanSeeStackTraceStrategy,
                everybodyCanSeeStackTraceStrategy);
    }

}

{'fraction_non_alphanumeric': 0.06641152633948672, 'fraction_numerical': 0.0036019810895992796, 'mean_word_length': 3.219373219373219, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7254945', 'n_tokens_mistral': 1028, 'n_tokens_neox': 986, 'n_words': 189}