<commit_before>package org.pujun.correl;

import org.apache.commons.math3.stat.correlation.PearsonsCorrelation;
import org.pujun.interp.InterpPm;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

import static java.lang.Math.abs;

/**
 * Created by milletpu on 16/4/9.
 */
public class Correlation {
    private double pearsonsResult;
    private double[] lagResult = {0,0};

    /**
     * Input two time series and get correlation value in return
     * 输入两个数组，计算出其相关性
     * @param x
     * @param y<commit_msg>规范代码test<commit_after>package org.pujun.correl;

import org.apache.commons.math3.stat.correlation.PearsonsCorrelation;
import org.pujun.interp.InterpPm;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

import static java.lang.Math.abs;

/**
 * Created by milletpu on 16/4/9.
 */
public class Correlation {
    private double pearsonsResult;
    private double[] lagResult = {0,0};

    /**
     * Input two time series and get correlation value in return
     * 输入两个数组，计算出其相关
     * @param x
     * @param y
{'fraction_non_alphanumeric': 0.10707803992740472, 'fraction_numerical': 0.012704174228675136, 'mean_word_length': 3.6150627615062763, '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': '7581922', 'n_tokens_mistral': 386, 'n_tokens_neox': 384, 'n_words': 89}