<commit_before>package pl.hycom.pip.messanger;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;

/**
 * Created by <NAME> on 02.03.2017.
 */
@Controller
public class WebhookMessenger
{
    @RequestMapping("/webhook")
    @ResponseBody
    String verify(HttpServletRequest request)
    {
        String verifyToken = request.getParameter("verify_token");
        String mode = request.getParameter("mode");
        String response=request.getParameter("challenge ");
        if(mode=="Subscribe" && verifyToken=="token")
        {
            return response;
        }
        else
        {
            return "Failed validation. Make sure the validation tokens match.";<commit_msg>Poprawki<commit_after>package pl.hycom.pip.messanger;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;

/**
 * Created by <NAME> on 02.03.2017.
 */
@Controller
public class WebhookMessenger
{
    @RequestMapping("/webhook")
    @ResponseBody
    String verify(HttpServletRequest request)
    {
        String verifyToken = request.getParameter("verify_token");
        String mode = request.getParameter("mode");
        String response=request.getParameter("challenge");
        if(mode.equals("Subscribe") && verifyToken.equals("token"))
        {
            return response;
        }
        else
        {
            return "Failed validation. Make sure the validation tokens match.";
{'fraction_non_alphanumeric': 0.10826542491268917, 'fraction_numerical': 0.009313154831199068, 'mean_word_length': 3.385204081632653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1460256', 'n_tokens_mistral': 461, 'n_tokens_neox': 440, 'n_words': 91}