<commit_before>package net.yeah.zhouyou.mickey.address;

public class Address {
	private CityToken provinceAddress; // 省 level 1
	private String provinceAddressReal;
	private CityToken cityAddress; // 市 level 2
	private String cityAddressReal;
	private CityToken areaAddress; // 区 level 3
	private String areaAddressReal;
	private CityToken townAddress; // 镇/街道办 level 4
	private String townAddressReal;

	private String originalAddress;
	private String detailAddress;

	public Address(String originalAddress) {
		if (originalAddress != null)
			this.originalAddress = originalAddress;
		else
			this.originalAddress = "";
	}

	public String getDetailAddress() {
		if (detailAddress == null) {
			synchronized (originalAddress) {
				if (detailAddress == null) {
					if (townAddressReal != null) {
						detailAddress = subOrigAddr(townAddressReal, townAddress.getName(), true);
					} else if (areaAddressReal != null) {
						detailAddress = subOrigAddr(areaAddressReal, areaAddress.getName(), true);
					} else if (cityAddressReal != null) {
						detailAddress = subOrigAddr(cityAddressReal, cityAddress.getName(), false);
					} else if (provinceAddressReal != null) {
						detailAddress = subOrigAddr(provinceAddressReal, provinceAddress.getName(), false);<commit_msg>commit;<commit_after>package net.yeah.zhouyou.mickey.address;

public class Address {
	private CityToken provinceAddress; // 省 level 1
	private String provinceAddressReal;

	private CityToken cityAddress; // 市 level 2
	private String cityAddressReal;

	private CityToken areaAddress; // 区 level 3
	private String areaAddressReal;

	private CityToken townAddress; // 镇/街道办 level 4
	private String townAddressReal;

	private String originalAddress;
	private String detailAddress;

	public Address(String originalAddress) {
		if (originalAddress != null)
			this.originalAddress = originalAddress;
		else
			this.originalAddress = "";
	}

	public String getDetailAddress() {
		if (detailAddress == null) {
			synchronized (originalAddress) {
				if (detailAddress == null) {
					if (townAddressReal != null) {
						detailAddress = subOrigAddr(townAddressReal, townAddress.getName(), true);
					} else if (areaAddressReal != null) {
						detailAddress = subOrigAddr(areaAddressReal, areaAddress.getName(), true);
					} else if (cityAddressReal != null) {
						detailAddress = subOrigAddr(cityAddressReal, cityAddress.getName(), false);
					} else if (provinceAddressReal != null) {
						detailAddress = subOrigAddr(provinceAddressReal, provinceAddress.getName(), false);
{'fraction_non_alphanumeric': 0.09368874950999607, 'fraction_numerical': 0.0031360250882007056, 'mean_word_length': 4.523809523809524, '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': '1779298', 'n_tokens_mistral': 813, 'n_tokens_neox': 706, 'n_words': 197}