<commit_before>package ru.VirtaMarketAnalyzer.data;

import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * Created by cobr123 on 16.01.16.
 */
public final class RetailAnalytics {
    @SerializedName("pi")
    private final String productId;
    @SerializedName("pc")
    private final String productCategory;
    @SerializedName("ss")
    private final int shopSize;
    @SerializedName("td")
    private final String townDistrict;
    @SerializedName("dc")
    private final int departmentCount;
    @SerializedName("n")
    private final double notoriety;
    @SerializedName("vc")
    private final String visitorsCount;
    @SerializedName("sl")
    final private String serviceLevel;
    @SerializedName("sv")
    private final String sellVolume;
    @SerializedName("p")
    private final double price;
    @SerializedName("q")
    private final double quality;
    @SerializedName("b")
    private final double brand;
    @SerializedName("wi")
    final private double wealthIndex;
    @SerializedName("ei")
    final private double educationIndex;
    @SerializedName("as")
    final private double averageSalary;
    @SerializedName("mi")
    final private String marketIdx;
    @SerializedName("mv")
    final private long marketVolume;
    @SerializedName("sc")
    final private int sellerCnt;
    @SerializedName("lpe")
    final private double localPercent;
    @SerializedName("lpr")
    final private double localPrice;
    @SerializedName("lq")
    final private double localQuality;

    public RetailAnalytics(final String productId, final String productCategory, final int shopSize, final String townDistrict, final int departmentCount,
                           final double notoriety, final String visitorsCount, final String serviceLevel,
                           final String sellVolume, final double price, final double quality, final double brand,
                           final double wealthIndex, final double educationIndex, final double averageSalary,
                           final String marketIdx, final long marketVolume, final int sellerCnt, final double localPercent,
                           final double localPrice, final double localQuality) {
        this.productId = productId;
        this.productCategory = productCategory;
        this.shopSize = shopSize;
        this.townDistrict = fixTownDistrict(townDistrict);
        this.departmentCount = departmentCount;
        this.notoriety = notoriety;
        this.visitorsCount = visitorsCount;
        this.serviceLevel = serviceLevel;
        this.sellVolume = sellVolume;
        this.price = price;
        this.quality = quality;
        this.brand = brand;
        this.wealthIndex = wealthIndex;
        this.educationIndex = educationIndex;
        this.averageSalary = averageSalary;
        this.marketIdx = marketIdx;
        this.marketVolume = marketVolume;
        this.sellerCnt = sellerCnt;
        this.localPercent = localPercent;
        this.localPrice = localPrice;
        this.localQuality = localQuality;
    }

    public static String fixTownDistrict(final String townDistrict) {
        return townDistrict
                .replace("Outskirts", "Окраина")
                .replace("City centre", "Центр города")
                .replace("Центр міста", "Центр города")
                .replace("Centro de la ciudad", "Центр города")
                .replace("Residential area", "Спальный район")
                .replace("Área residencial", "Спальный район")
                .replace("Trendy neighborhood", "Фешенебельный район")
                .replace("Фешенебельний район", "Фешенебельный район");
    }

    //для совместимости
    public RetailAnalytics(final String productId, final String productCategory, final RetailAnalytics ra) {
        this.productId = productId;
        this.productCategory = productCategory;
        this.shopSize = ra.shopSize;
        this.townDistrict = ra.townDistrict;
        this.departmentCount = ra.departmentCount;<commit_msg>Suburb<commit_after>package ru.VirtaMarketAnalyzer.data;

import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * Created by cobr123 on 16.01.16.
 */
public final class RetailAnalytics {
    @SerializedName("pi")
    private final String productId;
    @SerializedName("pc")
    private final String productCategory;
    @SerializedName("ss")
    private final int shopSize;
    @SerializedName("td")
    private final String townDistrict;
    @SerializedName("dc")
    private final int departmentCount;
    @SerializedName("n")
    private final double notoriety;
    @SerializedName("vc")
    private final String visitorsCount;
    @SerializedName("sl")
    final private String serviceLevel;
    @SerializedName("sv")
    private final String sellVolume;
    @SerializedName("p")
    private final double price;
    @SerializedName("q")
    private final double quality;
    @SerializedName("b")
    private final double brand;
    @SerializedName("wi")
    final private double wealthIndex;
    @SerializedName("ei")
    final private double educationIndex;
    @SerializedName("as")
    final private double averageSalary;
    @SerializedName("mi")
    final private String marketIdx;
    @SerializedName("mv")
    final private long marketVolume;
    @SerializedName("sc")
    final private int sellerCnt;
    @SerializedName("lpe")
    final private double localPercent;
    @SerializedName("lpr")
    final private double localPrice;
    @SerializedName("lq")
    final private double localQuality;

    public RetailAnalytics(final String productId, final String productCategory, final int shopSize, final String townDistrict, final int departmentCount,
                           final double notoriety, final String visitorsCount, final String serviceLevel,
                           final String sellVolume, final double price, final double quality, final double brand,
                           final double wealthIndex, final double educationIndex, final double averageSalary,
                           final String marketIdx, final long marketVolume, final int sellerCnt, final double localPercent,
                           final double localPrice, final double localQuality) {
        this.productId = productId;
        this.productCategory = productCategory;
        this.shopSize = shopSize;
        this.townDistrict = fixTownDistrict(townDistrict);
        this.departmentCount = departmentCount;
        this.notoriety = notoriety;
        this.visitorsCount = visitorsCount;
        this.serviceLevel = serviceLevel;
        this.sellVolume = sellVolume;
        this.price = price;
        this.quality = quality;
        this.brand = brand;
        this.wealthIndex = wealthIndex;
        this.educationIndex = educationIndex;
        this.averageSalary = averageSalary;
        this.marketIdx = marketIdx;
        this.marketVolume = marketVolume;
        this.sellerCnt = sellerCnt;
        this.localPercent = localPercent;
        this.localPrice = localPrice;
        this.localQuality = localQuality;
    }

    public static String fixTownDistrict(final String townDistrict) {
        return townDistrict
                .replace("Outskirts", "Окраина")
                .replace("Suburb", "Пригород")
                .replace("City centre", "Центр города")
                .replace("Центр міста", "Центр города")
                .replace("Centro de la ciudad", "Центр города")
                .replace("Residential area", "Спальный район")
                .replace("Área residencial", "Спальный район")
                .replace("Trendy neighborhood", "Фешенебельный район")
                .replace("Фешенебельний район", "Фешенебельный район");
    }

    //для совместимости
    public RetailAnalytics(final String productId, final String productCategory, final RetailAnalytics ra) {
        this.productId = productId;
        this.productCategory = productCategory;
        this.shopSize = ra.shopSize;
        this.townDistrict = ra.townDistrict;
        this.departmentCount = ra.departmentCount;
{'fraction_non_alphanumeric': 0.08365570599613152, 'fraction_numerical': 0.0026595744680851063, 'mean_word_length': 2.858675373134328, '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': '5106264', 'n_tokens_mistral': 2223, 'n_tokens_neox': 2187, 'n_words': 581}