<commit_before>import { routing } from '../routes'

export const DCATD_DETAIL_REDIRECT_URL = 'DCATD_DETAIL_REDIRECT_URL'
export const DCATD_LIST_REDIRECT_URL = 'DCATD_LIST_REDIRECT_URL'

function redirectToDcatd(id) {
  sessionStorage.setItem(DCATD_DETAIL_REDIRECT_URL, document.location.href)
  sessionStorage.setItem(
    DCATD_LIST_REDIRECT_URL,
    `${document.location.origin}${routing.datasetSearch.path}`,
  )

  window.location.assign(`/dcatd_admin#/datasets/${id}`)
}

export default redirectToDcatd<commit_msg>Change url<commit_after>import { routing } from '../routes'

export const DCATD_DETAIL_REDIRECT_URL = 'DCATD_DETAIL_REDIRECT_URL'
export const DCATD_LIST_REDIRECT_URL = 'DCATD_LIST_REDIRECT_URL'

function redirectToDcatd(id) {
  sessionStorage.setItem(DCATD_DETAIL_REDIRECT_URL, document.location.href)
  sessionStorage.setItem(
    DCATD_LIST_REDIRECT_URL,
    `${document.location.origin}${routing.datasetSearch.path}`,
  )

  window.location.assign(`/dcatd_admin/#/datasets/${id}`)
}

export default redirectToDcatd
{'fraction_non_alphanumeric': 0.10886319845857419, 'fraction_numerical': 0.0, 'mean_word_length': 6.81203007518797, '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': '4916892', 'n_tokens_mistral': 380, 'n_tokens_neox': 389, 'n_words': 46}