<commit_before>/**
 * Created by igboyes on 03/05/17.
 */

const createRequestActionType = (root) => {
    return {
        REQUESTED: `${root}_REQUESTED`,
        SUCCEEDED: `${root}_SUCCEEDED`,
        FAILED: `${root}_FAILED`
    };
};

export const SET_APP_PENDING = "SET_APP_PENDING";
export const UNSET_APP_PENDING = "UNSET_APP_PENDING";
export const WS_CLOSED = "WS_CLOSED";

// Jobs
export const WS_UPDATE_JOB = "WS_UPDATE_JOB";
export const WS_REMOVE_JOB = "WS_REMOVE_JOB";
export const FIND_JOBS = createRequestActionType("FIND_JOBS");
export const GET_JOB = createRequestActionType("GET_JOB");
export const CANCEL_JOB = createRequestActionType("CANCEL_JOB");
export const REMOVE_JOB = createRequestActionType("REMOVE_JOB");
export const CLEAR_JOBS = createRequestActionType("CLEAR_JOBS");
export const GET_RESOURCES = createRequestActionType("GET_RESOURCES");

// Samples
export const WS_UPDATE_SAMPLE = "WS_UPDATE_SAMPLE";
export const WS_REMOVE_SAMPLE = "WS_REMOVE_SAMPLE";
export const WS_UPDATE_ANALYSIS = "WS_UPDATE_ANALYSIS";
export const WS_REMOVE_ANALYSIS = "WS_REMOVE_ANALYSIS";

export const FIND_SAMPLES = createRequestActionType("FIND_SAMPLES");
export const FIND_READY_HOSTS = createRequestActionType("FIND_READY_HOSTS");
export const GET_SAMPLE = createRequestActionType("GET_SAMPLE");
export const REFRESH_SAMPLE = createRequestActionType("REFRESH_SAMPLE");
export const CREATE_SAMPLE = createRequestActionType("CREATE_SAMPLE");
export const UPDATE_SAMPLE = createRequestActionType("UPDATE_SAMPLE");
export const UPDATE_SAMPLE_GROUP = createRequestActionType("UPDATE_SAMPLE_GROUP");
export const UPDATE_SAMPLE_RIGHTS = createRequestActionType("UPDATE_SAMPLE_RIGHTS");
export const REMOVE_SAMPLE = createRequestActionType("REMOVE_SAMPLE");
export const FIND_ANALYSES = createRequestActionType("FIND_ANALYSES");
export const GET_ANALYSIS = createRequestActionType("GET_ANALYSIS");
export const ANALYZE = createRequestActionType("ANALYZE");
export const BLAST_NUVS = createRequestActionType("BLAST_NUVS");
export const REMOVE_ANALYSIS = createRequestActionType("REMOVE_ANALYSIS");

export const SHOW_REMOVE_SAMPLE = "SHOW_REMOVE_SAMPLE";
export const HIDE_SAMPLE_MODAL = "HIDE_SAMPLE_MODAL";

// Virus
export const WS_UPDATE_VIRUS = "WS_UPDATE_VIRUS";
export const WS_REMOVE_VIRUS = "WS_REMOVE_VIRUS";
export const FIND_VIRUSES = createRequestActionType("FIND_VIRUSES");
export const GET_VIRUS = createRequestActionType("GET_VIRUS");
export const CREATE_VIRUS = createRequestActionType("CREATE_VIRUS");
export const EDIT_VIRUS = createRequestActionType("EDIT_VIRUS");
export const REMOVE_VIRUS = createRequestActionType("REMOVE_VIRUS");
export const GET_VIRUS_HISTORY = createRequestActionType("GET_VIRUS_HISTORY");
export const ADD_ISOLATE = createRequestActionType("ADD_ISOLATE");
export const EDIT_ISOLATE = createRequestActionType("EDIT_ISOLATE");
export const SET_ISOLATE_AS_DEFAULT = createRequestActionType("SET_ISOLATE_AS_DEFAULT");
export const REMOVE_ISOLATE = createRequestActionType("REMOVE_ISOLATE");
export const ADD_SEQUENCE = createRequestActionType("ADD_SEQUENCE");
export const EDIT_SEQUENCE = createRequestActionType("EDIT_SEQUENCE");
export const REMOVE_SEQUENCE = createRequestActionType("REMOVE_SEQUENCE");
export const REVERT = createRequestActionType("REVERT");
export const UPLOAD_IMPORT = createRequestActionType("UPLOAD_IMPORT");
export const COMMIT_IMPORT = createRequestActionType("COMMIT_IMPORT");
export const SELECT_ISOLATE = "SELECT_ISOLATE";
export const SELECT_SEQUENCE = "SELECT_SEQUENCE";
export const SHOW_EDIT_VIRUS = "SHOW_EDIT_VIRUS";
export const SHOW_REMOVE_VIRUS = "SHOW_REMOVE_VIRUS";
export const SHOW_ADD_ISOLATE = "SHOW_ADD_ISOLATE";
export const SHOW_EDIT_ISOLATE = "SHOW_EDIT_ISOLATE";
export const SHOW_REMOVE_ISOLATE = "SHOW_REMOVE_ISOLATE";
export const SHOW_ADD_SEQUENCE = "SHOW_ADD_SEQUENCE";
export const SHOW_EDIT_SEQUENCE = "SHOW_EDIT_SEQUENCE";
export const SHOW_REMOVE_SEQUENCE = "SHOW_REMOVE_SEQUENCE";
export const HIDE_VIRUS_MODAL = "HIDE_VIRUS_MODAL";

// HMMs
["FIND_HMMS", "GET_HMM", "INSTALL_HMMS"].forEach(type => createRequestActionType(type));

// Indexes
export const WS_UPDATE_INDEX = "WS_UPDATE_INDEX";

export const FIND_INDEXES = createRequestActionType("FIND_INDEXES");
export const GET_INDEX = createRequestActionType("GET_INDEX");
export const GET_UNBUILT = createRequestActionType("GET_UNBUILT");<commit_msg>Fix actionTypes<commit_after>/**
 * Created by igboyes on 03/05/17.
 */

const createRequestActionType = (root) => {
    return {
        REQUESTED: `${root}_REQUESTED`,
        SUCCEEDED: `${root}_SUCCEEDED`,
        FAILED: `${root}_FAILED`
    };
};

export const SET_APP_PENDING = "SET_APP_PENDING";
export const UNSET_APP_PENDING = "UNSET_APP_PENDING";
export const WS_CLOSED = "WS_CLOSED";

// Jobs
export const WS_UPDATE_JOB = "WS_UPDATE_JOB";
export const WS_REMOVE_JOB = "WS_REMOVE_JOB";
export const FIND_JOBS = createRequestActionType("FIND_JOBS");
export const GET_JOB = createRequestActionType("GET_JOB");
export const CANCEL_JOB = createRequestActionType("CANCEL_JOB");
export const REMOVE_JOB = createRequestActionType("REMOVE_JOB");
export const CLEAR_JOBS = createRequestActionType("CLEAR_JOBS");
export const GET_RESOURCES = createRequestActionType("GET_RESOURCES");

// Samples
export const WS_UPDATE_SAMPLE = "WS_UPDATE_SAMPLE";
export const WS_REMOVE_SAMPLE = "WS_REMOVE_SAMPLE";
export const WS_UPDATE_ANALYSIS = "WS_UPDATE_ANALYSIS";
export const WS_REMOVE_ANALYSIS = "WS_REMOVE_ANALYSIS";

export const FIND_SAMPLES = createRequestActionType("FIND_SAMPLES");
export const FIND_READY_HOSTS = createRequestActionType("FIND_READY_HOSTS");
export const GET_SAMPLE = createRequestActionType("GET_SAMPLE");
export const REFRESH_SAMPLE = createRequestActionType("REFRESH_SAMPLE");
export const CREATE_SAMPLE = createRequestActionType("CREATE_SAMPLE");
export const UPDATE_SAMPLE = createRequestActionType("UPDATE_SAMPLE");
export const UPDATE_SAMPLE_GROUP = createRequestActionType("UPDATE_SAMPLE_GROUP");
export const UPDATE_SAMPLE_RIGHTS = createRequestActionType("UPDATE_SAMPLE_RIGHTS");
export const REMOVE_SAMPLE = createRequestActionType("REMOVE_SAMPLE");
export const FIND_ANALYSES = createRequestActionType("FIND_ANALYSES");
export const GET_ANALYSIS = createRequestActionType("GET_ANALYSIS");
export const ANALYZE = createRequestActionType("ANALYZE");
export const BLAST_NUVS = createRequestActionType("BLAST_NUVS");
export const REMOVE_ANALYSIS = createRequestActionType("REMOVE_ANALYSIS");

export const SHOW_REMOVE_SAMPLE = "SHOW_REMOVE_SAMPLE";
export const HIDE_SAMPLE_MODAL = "HIDE_SAMPLE_MODAL";

// Virus
export const WS_UPDATE_VIRUS = "WS_UPDATE_VIRUS";
export const WS_REMOVE_VIRUS = "WS_REMOVE_VIRUS";
export const FIND_VIRUSES = createRequestActionType("FIND_VIRUSES");
export const GET_VIRUS = createRequestActionType("GET_VIRUS");
export const CREATE_VIRUS = createRequestActionType("CREATE_VIRUS");
export const EDIT_VIRUS = createRequestActionType("EDIT_VIRUS");
export const REMOVE_VIRUS = createRequestActionType("REMOVE_VIRUS");
export const GET_VIRUS_HISTORY = createRequestActionType("GET_VIRUS_HISTORY");
export const ADD_ISOLATE = createRequestActionType("ADD_ISOLATE");
export const EDIT_ISOLATE = createRequestActionType("EDIT_ISOLATE");
export const SET_ISOLATE_AS_DEFAULT = createRequestActionType("SET_ISOLATE_AS_DEFAULT");
export const REMOVE_ISOLATE = createRequestActionType("REMOVE_ISOLATE");
export const ADD_SEQUENCE = createRequestActionType("ADD_SEQUENCE");
export const EDIT_SEQUENCE = createRequestActionType("EDIT_SEQUENCE");
export const REMOVE_SEQUENCE = createRequestActionType("REMOVE_SEQUENCE");
export const REVERT = createRequestActionType("REVERT");
export const UPLOAD_IMPORT = createRequestActionType("UPLOAD_IMPORT");
export const COMMIT_IMPORT = createRequestActionType("COMMIT_IMPORT");
export const SELECT_ISOLATE = "SELECT_ISOLATE";
export const SELECT_SEQUENCE = "SELECT_SEQUENCE";
export const SHOW_EDIT_VIRUS = "SHOW_EDIT_VIRUS";
export const SHOW_REMOVE_VIRUS = "SHOW_REMOVE_VIRUS";
export const SHOW_ADD_ISOLATE = "SHOW_ADD_ISOLATE";
export const SHOW_EDIT_ISOLATE = "SHOW_EDIT_ISOLATE";
export const SHOW_REMOVE_ISOLATE = "SHOW_REMOVE_ISOLATE";
export const SHOW_ADD_SEQUENCE = "SHOW_ADD_SEQUENCE";
export const SHOW_EDIT_SEQUENCE = "SHOW_EDIT_SEQUENCE";
export const SHOW_REMOVE_SEQUENCE = "SHOW_REMOVE_SEQUENCE";
export const HIDE_VIRUS_MODAL = "HIDE_VIRUS_MODAL";

// HMMs
export const FIND_HMMS = createRequestActionType("FIND_HMMS");
export const GET_HMM = createRequestActionType("GET_HMM");
export const INSTALL_HMMS = createRequestActionType("IMPORT_HMMS");

// Indexes
export const WS_UPDATE_INDEX = "WS_UPDATE_INDEX";

export const FIND_INDEXES = createRequestActionType("FIND_INDEXES");
export const GET_INDEX = createRequestActionType("GET_INDEX");
export const GET_UNBUILT = createRequestActionType("GET_UNBUILT");
{'fraction_non_alphanumeric': 0.09077664462624678, 'fraction_numerical': 0.0013448391796481004, 'mean_word_length': 9.536009445100355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4983383', 'n_tokens_mistral': 3045, 'n_tokens_neox': 2974, 'n_words': 570}