<commit_before>package com.smart.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 微服务应用入口
 * @author lijinfeng
 * @time 2016-02-25 16:32
 * @remark 应用访问入口
 * 1. @RestController 
 * 2. @Controller 模板下使用
 */
@Controller
@EnableAutoConfiguration
public class Application {
	/**
	 * 首页
	 * @return
	 */
    @RequestMapping("/")
    String index() {
        return "index";
    }
    
    /**
     * 登录页面
     * @return
     */
    @RequestMapping("/login")
    public String login() {
        return "Hello World!";
    }
    
    /**<commit_msg>add @ComponentScan in Application.java<commit_after>package com.smart.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 微服务应用入口
 * @author lijinfeng
 * @time 2016-02-25 16:32
 * @remark 应用访问入口
 * 1. @RestController microservice 
 * 2. @Controller html模板下使用
 * 3. @ComponentScan 扫描所有的注解组件
 */
@Controller
@ComponentScan
@EnableAutoConfiguration
public class Application {
	/**
	 * 首页
	 * @return
	 */
    @RequestMapping("/")
    String index() {
        return "index";
    }
    
    /**
     * 登录页面
     * @return
     */
    @RequestMapping("/login")
    public String login() {
        return "Hello World!";
    }
    
    /**
{'fraction_non_alphanumeric': 0.12293577981651377, 'fraction_numerical': 0.017737003058103974, 'mean_word_length': 3.2056555269922877, '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': '925252', 'n_tokens_mistral': 547, 'n_tokens_neox': 531, 'n_words': 98}