<commit_before>package org.osiam.addons.administration.controller;

import javax.inject.Inject;

import org.osiam.addons.administration.service.UserService;
import org.osiam.resources.scim.SCIMSearchResult;
import org.osiam.resources.scim.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * This controller is responsible for handling user list. 
 * This is the main page of the "userview".
 */
@Controller
@RequestMapping(UserViewController.CONTROLLER_PATH)
public class UserViewController {

    public static final String CONTROLLER_PATH = AdminController.CONTROLLER_PATH + "/user/list";
    
    /*
     * List of request parameters.
     */
    
    public static final String RP_QUERY = "query";
    public static final String RP_LIMIT = "limit";
    public static final String RP_OFFSET = "offset";
    public static final String RP_ORDER_BY = "orderBy";
    public static final String RP_ASCENDING = "asc";
    
    
    /*
     * List of model names.
     */
    public static final String MN_USER_LIST = "userlist";
    
    
    @Inject
    private UserService service;
    
    @RequestMapping
    public ModelAndView handleList(
            @RequestParam(value = RP_QUERY, required = false) 
            String query,
            @RequestParam(value = RP_LIMIT, required = false) 
            Integer limit,
            @RequestParam(value = RP_OFFSET, required = false) 
            Long offset,
            @RequestParam(value = RP_ORDER_BY, required = false) 
            String orderBy,
            @RequestParam(value = RP_ASCENDING, required = false) 
            Boolean ascending) {
        
        ModelAndView mav = new ModelAndView("user/list");

        SCIMSearchResult<User> userList = service.searchUser(query, limit, offset, orderBy, ascending);
        mav.addObject(MN_USER_LIST, userList);
        
        return mav;
    }
}<commit_msg>use full names instead of abbreviations<commit_after>package org.osiam.addons.administration.controller;

import javax.inject.Inject;

import org.osiam.addons.administration.service.UserService;
import org.osiam.resources.scim.SCIMSearchResult;
import org.osiam.resources.scim.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * This controller is responsible for handling user list. 
 * This is the main page of the "userview".
 */
@Controller
@RequestMapping(UserViewController.CONTROLLER_PATH)
public class UserViewController {

    public static final String CONTROLLER_PATH = AdminController.CONTROLLER_PATH + "/user/list";
    
    public static final String REQUEST_PARAMETER_QUERY = "query";
    public static final String REQUEST_PARAMETER_LIMIT = "limit";
    public static final String REQUEST_PARAMETER_OFFSET = "offset";
    public static final String REQUEST_PARAMETER_ORDER_BY = "orderBy";
    public static final String REQUEST_PARAMETER_ASCENDING = "asc";
    
    public static final String MODEL_USER_LIST = "userlist";
    
    @Inject
    private UserService service;
    
    @RequestMapping
    public ModelAndView handleList(
            @RequestParam(value = REQUEST_PARAMETER_QUERY, required = false) 
            String query,
            @RequestParam(value = REQUEST_PARAMETER_LIMIT, required = false) 
            Integer limit,
            @RequestParam(value = REQUEST_PARAMETER_OFFSET, required = false) 
            Long offset,
            @RequestParam(value = REQUEST_PARAMETER_ORDER_BY, required = false) 
            String orderBy,
            @RequestParam(value = REQUEST_PARAMETER_ASCENDING, required = false) 
            Boolean ascending) {
        
        ModelAndView mav = new ModelAndView("user/list");

        SCIMSearchResult<User> userList = service.searchUser(query, limit, offset, orderBy, ascending);
        mav.addObject(MODEL_USER_LIST, userList);
        
        return mav;
    }
}
{'fraction_non_alphanumeric': 0.08059132093466857, 'fraction_numerical': 0.0, 'mean_word_length': 3.233097880928355, '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': '2773111', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1151, 'n_words': 283}