<commit_before>package com.zxh.ssm.module.user.mapper;

import com.zxh.ssm.module.user.pojo.AnalyzeVo;
import com.zxh.ssm.module.user.pojo.CareerAnalyzeRe;
import com.zxh.ssm.module.user.pojo.SexAnalyzeRe;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import javax.annotation.Resources;

import java.util.List;

import static org.junit.Assert.*;

/**
 * Created by 郑晓辉 on 2016/10/3.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath*:spring/applicationContext*.xml"})
public class AnalyzeMapperTest {

    @Resource
    private AnalyzeMapper analyzeMapper;

    @Test
    public void analyzeByCareer() throws Exception {
        AnalyzeVo analyzeVo = new AnalyzeVo();
        analyzeVo.setBeginYear(2005);
        analyzeVo.setEndYear(2011);
        analyzeVo.setProvince("云南");
        List<CareerAnalyzeRe> careerAnalyzeReList = analyzeMapper.analyzeByCareer(analyzeVo);
        for (CareerAnalyzeRe result: careerAnalyzeReList) {
            System.out.println(result.getCareerCategory()+" : "+result.getPatientNum());
        }
        System.out.println("===Over===");
    }

    @Test
    public void analyzeBySex()throws Exception{
        AnalyzeVo analyzeVo = new AnalyzeVo();
        analyzeVo.setBeginYear(2005);
        analyzeVo.setEndYear(2011);
        analyzeVo.setProvince("");
        List<SexAnalyzeRe> sexAnalyzeReList = analyzeMapper.analyzeBySex(analyzeVo);
        for (SexAnalyzeRe result:sexAnalyzeReList            ) {
            System.out.println(result.getSex()+" : "+result.getPatientNum());
        }
    }

}<commit_msg>动态爆发 相关数据 Career/Sex Analyze 持久层开发<commit_after>package com.zxh.ssm.module.user.mapper;

import com.zxh.ssm.module.user.pojo.AnalyzeVo;
import com.zxh.ssm.module.user.pojo.CareerAnalyzeRe;
import com.zxh.ssm.module.user.pojo.SexAnalyzeRe;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import javax.annotation.Resources;

import java.util.List;

import static org.junit.Assert.*;

/**
 * Created by 郑晓辉 on 2016/10/3.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath*:spring/applicationContext*.xml"})
public class AnalyzeMapperTest {

    @Resource
    private AnalyzeMapper analyzeMapper;

    @Test
    public void analyzeByCareer() throws Exception {
        AnalyzeVo analyzeVo = new AnalyzeVo();
        analyzeVo.setBeginYear(2005);
//        analyzeVo.setEndYear(2011);
        analyzeVo.setProvince("云南");
        List<CareerAnalyzeRe> careerAnalyzeReList = analyzeMapper.analyzeByCareer(analyzeVo);
        for (CareerAnalyzeRe result: careerAnalyzeReList) {
            System.out.println(result.getCareerCategory()+" : "+result.getPatientNum());
        }
        System.out.println("===Over===");
    }

    @Test
    public void analyzeBySex()throws Exception{
        AnalyzeVo analyzeVo = new AnalyzeVo();
        analyzeVo.setBeginYear(2005);
//        analyzeVo.setEndYear(2011);
        analyzeVo.setProvince("");
        List<SexAnalyzeRe> sexAnalyzeReList = analyzeMapper.analyzeBySex(analyzeVo);
        for (SexAnalyzeRe result:sexAnalyzeReList            ) {
            System.out.println(result.getSex()+" : "+result.getPatientNum());
        }
    }

}
{'fraction_non_alphanumeric': 0.11739983188568226, 'fraction_numerical': 0.014569907537125245, 'mean_word_length': 3.7347480106100797, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '418680', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1123, 'n_words': 170}