<commit_before>package io.fundrequest.web.security;

import com.auth0.AuthenticationController;
import com.auth0.AuthorizeUrl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

@SuppressWarnings("unused")
@Controller
public class LoginController {

    @Autowired
    private AuthenticationController controller;

    @Value(value = "${com.auth0.domain}")
    private String callbackUrl;

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    protected String login(final HttpServletRequest req) {
        logger.debug("Performing login");
        String redirectUri = callbackUrl;
        AuthorizeUrl authorizeUrl = controller.buildAuthorizeUrl(req, redirectUri).withScope("profile openid roles user_id name email");
        return "redirect:" + authorizeUrl.build();
    }

}
<commit_msg>callback url is now a property<commit_after>package io.fundrequest.web.security;

import com.auth0.AuthenticationController;
import com.auth0.AuthorizeUrl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

@SuppressWarnings("unused")
@Controller
public class LoginController {

    @Autowired
    private AuthenticationController controller;

    @Value(value = "${com.auth0.callback-url}")
    private String callbackUrl;

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    protected String login(final HttpServletRequest req) {
        logger.debug("Performing login");
        String redirectUri = callbackUrl;
        AuthorizeUrl authorizeUrl = controller.buildAuthorizeUrl(req, redirectUri).withScope("profile openid roles user_id name email");
        return "redirect:" + authorizeUrl.build();
    }

}

{'fraction_non_alphanumeric': 0.09819639278557114, 'fraction_numerical': 0.004008016032064128, 'mean_word_length': 5.224438902743142, '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': '6614937', 'n_tokens_mistral': 650, 'n_tokens_neox': 657, 'n_words': 139}