<commit_before>package controllers.sso.auth;

import controllers.sso.filters.LanguageFilter;
import controllers.sso.web.UrlBuilder;
import ninja.Cookie;
import ninja.FilterWith;
import ninja.Result;
import ninja.Results;
import ninja.utils.NinjaProperties;

import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;

/**
 * Sign Out controller that resets cookies for browser based authentication and redirects to continue URL.
 */
@Singleton
@FilterWith({
        LanguageFilter.class
})
public class SignOutController {

    /**
     * URL builder.
     */
    final Provider<UrlBuilder> urlBuilderProvider;

    /**
     * Application properties.
     */
    final NinjaProperties properties;

    /**
     * Authentication cookie name.
     */
    final String cookieName;

    /**
     * Controller constructor.
     *
     * @param urlBuilderProvider URL builder provider.
     * @param properties Properties.
     */
    @Inject
    public SignOutController(Provider<UrlBuilder> urlBuilderProvider, NinjaProperties properties) {
        this.urlBuilderProvider = urlBuilderProvider;
        this.properties = properties;
        this.cookieName =  properties.getOrDie("application.sso.device.auth.policy.append.cookie");
    }

    /**
     * Signs out current user by resetting authentication cookie.
     *
     * @return Result.
     */
    public Result signOut() {
        Cookie resetCookie = Cookie.builder(cookieName, "-")
                .setMaxAge(0)
                .build();<commit_msg>Tries to fix sign out<commit_after>package controllers.sso.auth;

import controllers.sso.filters.LanguageFilter;
import controllers.sso.web.UrlBuilder;
import ninja.Cookie;
import ninja.FilterWith;
import ninja.Result;
import ninja.Results;
import ninja.utils.NinjaProperties;

import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;

/**
 * Sign Out controller that resets cookies for browser based authentication and redirects to continue URL.
 */
@Singleton
@FilterWith({
        LanguageFilter.class
})
public class SignOutController {

    /**
     * URL builder.
     */
    final Provider<UrlBuilder> urlBuilderProvider;

    /**
     * Application properties.
     */
    final NinjaProperties properties;

    /**
     * Authentication cookie name.
     */
    final String cookieName;

    /**
     * Controller constructor.
     *
     * @param urlBuilderProvider URL builder provider.
     * @param properties Properties.
     */
    @Inject
    public SignOutController(Provider<UrlBuilder> urlBuilderProvider, NinjaProperties properties) {
        this.urlBuilderProvider = urlBuilderProvider;
        this.properties = properties;
        this.cookieName = properties.getOrDie("application.sso.device.auth.policy.append.cookie");
    }

    /**
     * Signs out current user by resetting authentication cookie.
     *
     * @return Result.
     */
    public Result signOut() {
        Cookie resetCookie = Cookie.builder(cookieName, "-")
                .build();
{'fraction_non_alphanumeric': 0.09478517546736635, 'fraction_numerical': 0.00032797638570022957, 'mean_word_length': 2.9507772020725387, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1886870', 'n_tokens_mistral': 826, 'n_tokens_neox': 801, 'n_words': 200}