<commit_before>
export const SIZE_TO_MEDIA: any = {
  'xs': '(min-width: 0px)',
  'sm': '(min-width: 576px)',
  'md': '(min-width: 768px)',
  'lg': '(min-width: 992px)',
  'xl': '(min-width: 1200px)',
};

// Check if the window matches the media query
// at the breakpoint passed
// e.g. matchBreakpoint('sm') => true if screen width exceeds 576px
export function matchBreakpoint(win: Window, breakpoint: string | undefined) {
  if (breakpoint === undefined) {
    return true;
  }
  const mediaQuery = SIZE_TO_MEDIA[breakpoint];
  return win.matchMedia(mediaQuery).matches;
}<commit_msg>fix(core): matchBreakpoint will return true if breakPoint is empty string (#15498)<commit_after>
export const SIZE_TO_MEDIA: any = {
  'xs': '(min-width: 0px)',
  'sm': '(min-width: 576px)',
  'md': '(min-width: 768px)',
  'lg': '(min-width: 992px)',
  'xl': '(min-width: 1200px)',
};

// Check if the window matches the media query
// at the breakpoint passed
// e.g. matchBreakpoint('sm') => true if screen width exceeds 576px
export function matchBreakpoint(win: Window, breakpoint: string | undefined) {
  if (breakpoint === undefined || breakpoint === '') {
    return true;
  }
  const mediaQuery = SIZE_TO_MEDIA[breakpoint];
  return win.matchMedia(mediaQuery).matches;
}
{'fraction_non_alphanumeric': 0.16350710900473933, 'fraction_numerical': 0.030805687203791468, 'mean_word_length': 4.484848484848484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4856638', 'n_tokens_mistral': 466, 'n_tokens_neox': 421, 'n_words': 125}