<commit_before>import { GraphQLEnumType } from "graphql"

export const SearchEntity = new GraphQLEnumType({
  name: "SearchEntity",
  values: {
    ARTIST: {
      value: "Artist",
    },
    ARTWORK: {
      value: "Artwork",
    },
    ARTICLE: {
      value: "Article",
    },
    CITY: {
      value: "City",
    },
    COLLECTION: {
      value: "MarketingCollection",
    },
    FAIR: {
      value: "Fair",
    },
    FEATURE: {
      value: "Feature",
    },
    GALLERY: {
      value: "gallery",
    },
    GENE: {
      value: "Gene",
    },
    INSTITUTION: {
      value: "institution",
    },
    PROFILE: {
      value: "Profile",
    },
    SALE: {
      value: "Sale",
    },
    SHOW: {
      value: "PartnerShow",
    },
    TAG: {
      value: "Tag",
    },
  },
})

const defaultBlockList = ["gallery", "institution"]

export const DEFAULT_ENTITIES = SearchEntity.getValues().filter(
  index => !defaultBlockList.includes(index.value)
)

const suggestBlockList = ["gallery", "institution", "show"]

export const SUGGEST_ENTITIES = SearchEntity.getValues().filter(
  index => !suggestBlockList.includes(index.value)
)<commit_msg>[Autosuggest] Properly exclude shows from default entities<commit_after>import { GraphQLEnumType } from "graphql"

export const SearchEntity = new GraphQLEnumType({
  name: "SearchEntity",
  values: {
    ARTIST: {
      value: "Artist",
    },
    ARTWORK: {
      value: "Artwork",
    },
    ARTICLE: {
      value: "Article",
    },
    CITY: {
      value: "City",
    },
    COLLECTION: {
      value: "MarketingCollection",
    },
    FAIR: {
      value: "Fair",
    },
    FEATURE: {
      value: "Feature",
    },
    GALLERY: {
      value: "gallery",
    },
    GENE: {
      value: "Gene",
    },
    INSTITUTION: {
      value: "institution",
    },
    PROFILE: {
      value: "Profile",
    },
    SALE: {
      value: "Sale",
    },
    SHOW: {
      value: "PartnerShow",
    },
    TAG: {
      value: "Tag",
    },
  },
})

const defaultBlockList = ["gallery", "institution"]

export const DEFAULT_ENTITIES = SearchEntity.getValues().filter(
  index => !defaultBlockList.includes(index.value)
)

const suggestBlockList = ["gallery", "institution", "PartnerShow"]

export const SUGGEST_ENTITIES = SearchEntity.getValues().filter(
  index => !suggestBlockList.includes(index.value)
)
{'fraction_non_alphanumeric': 0.15319148936170213, 'fraction_numerical': 0.0, 'mean_word_length': 2.4726735598227476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3847957', 'n_tokens_mistral': 825, 'n_tokens_neox': 794, 'n_words': 156}