<commit_before>package com.elia.em.api;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Elia on 12/8/2016.
 */
@RestController
public class UsersController {

}<commit_msg>spring login ctrl<commit_after>package com.elia.em.api;

import com.elia.em.model.User;
import com.elia.em.security.CurrentUser;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Elia on 12/8/2016.
 */
@RestController
public class UsersController {

    @RequestMapping(value = "/principal")
    public ResponseEntity<User> currentPrincipal(@CurrentUser User currentUser) {
        return new ResponseEntity<User>(currentUser, HttpStatus.OK);
    }


}
{'fraction_non_alphanumeric': 0.11006289308176101, 'fraction_numerical': 0.014675052410901468, 'mean_word_length': 5.282894736842105, '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': '6608067', 'n_tokens_mistral': 282, 'n_tokens_neox': 267, 'n_words': 53}