<commit_before>import { LOAD_STREAM } from '../constants/action_types'
import { ARTIST_INVITES, ARTIST_INVITE_SUBMISSIONS } from '../constants/mapping_types'
import { artistInvites as artistInvitesApi, artistInviteDetail } from '../networking/api'
import { artistInvites as artistInvitesRenderable, artistInviteSubmissionsAsGrid } from '../components/streams/StreamRenderables'

export const loadArtistInvites = isPreview => (
  {
    type: LOAD_STREAM,
    payload: { endpoint: artistInvitesApi(isPreview) },
    meta: {
      mappingType: ARTIST_INVITES,
      renderStream: {
        asList: artistInvitesRenderable,
        asGrid: artistInvitesRenderable,
      },
    },
  }
)

export const loadArtistInviteDetail = slug => (
  {
    type: LOAD_STREAM,
    payload: { endpoint: artistInviteDetail(slug) },
    meta: {
      mappingType: ARTIST_INVITES,
    },
  }
)

export const loadArtistInviteSubmissions = (path, key, slug) => (
  {
    type: LOAD_STREAM,
    payload: { endpoint: { path } },
    meta: {
      mappingType: ARTIST_INVITE_SUBMISSIONS,
      renderStream: {
        asList: artistInviteSubmissionsAsGrid,<commit_msg>Default per_page for submissions to 25<commit_after>import { LOAD_STREAM } from '../constants/action_types'
import { ARTIST_INVITES, ARTIST_INVITE_SUBMISSIONS } from '../constants/mapping_types'
import { artistInvites as artistInvitesApi, artistInviteDetail } from '../networking/api'
import { artistInvites as artistInvitesRenderable, artistInviteSubmissionsAsGrid } from '../components/streams/StreamRenderables'

export const loadArtistInvites = isPreview => (
  {
    type: LOAD_STREAM,
    payload: { endpoint: artistInvitesApi(isPreview) },
    meta: {
      mappingType: ARTIST_INVITES,
      renderStream: {
        asList: artistInvitesRenderable,
        asGrid: artistInvitesRenderable,
      },
    },
  }
)

export const loadArtistInviteDetail = slug => (
  {
    type: LOAD_STREAM,
    payload: { endpoint: artistInviteDetail(slug) },
    meta: {
      mappingType: ARTIST_INVITES,
    },
  }
)

export const loadArtistInviteSubmissions = (path, key, slug) => (
  {
    type: LOAD_STREAM,
    payload: { endpoint: { path: `${path}&per_page=25` } },
    meta: {
      mappingType: ARTIST_INVITE_SUBMISSIONS,
      renderStream: {
        asList: artistInviteSubmissionsAsGrid,
{'fraction_non_alphanumeric': 0.10386266094420601, 'fraction_numerical': 0.0017167381974248926, 'mean_word_length': 3.7474541751527495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4486528', 'n_tokens_mistral': 764, 'n_tokens_neox': 746, 'n_words': 143}