def compare(filename1,filename2,force_processing,
            force_read,search_data,result_data,IP_data,
            session_data,term_data,usage_data,new_mapping,timescale,
            date_start,date_end,force_full_processing,force_full_read,
            usage,IP):
    log_1_data = fullPipeline(filename1, force_processing, force_read,
                              search_data, result_data, IP_data,
                              session_data, term_data, usage_data,
                              new_mapping, timescale, date_start,
                              date_end, force_full_processing, force_full_read)
    log_2_data = fullPipeline(filename2, force_processing, force_read,
                              search_data, result_data, IP_data,
                              session_data, term_data, usage_data,
                              new_mapping, timescale, date_start,
                              date_end, force_full_processing, force_full_read)
    save_dir1=base_dir+"proc_data/"+filename1+"/"
    save_dir2=base_dir+"proc_data/"+filename2+"/"
    if usage:
        analysis.compareUsage(log_1_data[5],log_2_data[5],
                              save_dir1, save_dir2, timescale)
    if IP: 
        analysis.analyzeIPDataCompare(log_1_data[3], log_2_data[3],
                                      save_dir1, save_dir2)
    analysis.compareSessionData(log_1_data[4], log_2_data[4],
                                save_dir1, save_dir2)
def compareIPAnalysis(log1,log2):
    IP_log_1_ret = fullPipeline(log1, search_data=False, result_data=False,
                                session_data=False, term_data=False)[3]
    IP_log_2_ret = fullPipeline(log2, search_data=False, result_data=False,
                                session_data=False, term_data=False)[3]
    save_dir1=base_dir+"proc_data/"+log1+"/"
    save_dir2=base_dir+"proc_data/"+log2+"/"
    analysis.analyzeIPDataCompare(IP_log_1_ret, IP_log_2_ret, save_dir1, save_dir2)