<commit_before>
import fetch from 'isomorphic-fetch'

export const FETCHED_GALLERIES = 'FETCHED_GALLERIES'

export default function fetchGalleries(url = 'http://cdn.stage5clingan.com/galleries.json') {
  return async (dispatch) => {
    const response = await fetch(url)

    if (!response.ok) {
      throw new Error(`problem loading gallery manifest: ${response.status}`)
    }

    const manifest = await response.json()
    dispatch({
      type: FETCHED_GALLERIES,
      data: manifest,
    })
  }
}<commit_msg>fix: use https for gallery manifest<commit_after>
import fetch from 'isomorphic-fetch'

export const FETCHED_GALLERIES = 'FETCHED_GALLERIES'

export default function fetchGalleries(url = 'https://cdn.stage5clingan.com/galleries.json') {
  return async (dispatch) => {
    const response = await fetch(url)

    if (!response.ok) {
      throw new Error(`problem loading gallery manifest: ${response.status}`)
    }

    const manifest = await response.json()
    dispatch({
      type: FETCHED_GALLERIES,
      data: manifest,
    })
  }
}
{'fraction_non_alphanumeric': 0.11279620853080569, 'fraction_numerical': 0.0018957345971563982, 'mean_word_length': 3.672566371681416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '3937396', 'n_tokens_mistral': 345, 'n_tokens_neox': 327, 'n_words': 83}