<commit_before>package com.momo.pink.it;

import com.momo.pink.User;
import com.momo.pink.app.PinkApp;
import com.momo.pink.test.autoconfigure.AutoConfigureMariaDB;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

@ExtendWith(SpringExtension.class)
@SpringBootTest(classes = PinkApp.class, properties = {
    "encrypt.key=${encrypt.rootKey}<KEY>",
    "spring.jackson.serialization.write_dates_as_timestamps=false",
    "spring.test.maria.database=pink",
    "mariaDB4j.port=3307",
    "spring.datasource.username=root",
    "spring.datasource.password=",
    "spring.cloud.test.etcd.enable=true"
}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureMariaDB
public class UserTest {<commit_msg>指定连接127.0.0.1的etcd，规避 travis 的 ipv6 问题 #5<commit_after>package com.momo.pink.it;

import com.momo.pink.User;
import com.momo.pink.app.PinkApp;
import com.momo.pink.test.autoconfigure.AutoConfigureMariaDB;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

@ExtendWith(SpringExtension.class)
@SpringBootTest(classes = PinkApp.class, properties = {
    "encrypt.key=${encrypt.rootKey}<KEY>",
    "spring.jackson.serialization.write_dates_as_timestamps=false",
    "spring.test.maria.database=pink",
    "mariaDB4j.port=3307",
    "spring.datasource.username=root",
    "spring.datasource.password=",
    "spring.cloud.etcd.uris=http://127.0.0.1:4001",
    "spring.cloud.test.etcd.enable=true"
}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureMariaDB
public class UserTest {
{'fraction_non_alphanumeric': 0.12584745762711863, 'fraction_numerical': 0.011864406779661017, 'mean_word_length': 6.068862275449102, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '124099', 'n_tokens_mistral': 809, 'n_tokens_neox': 786, 'n_words': 92}