<commit_before>import React from 'react';
import { features } from '../../../../applications/beta-enrollment/routes';
import environment from '../../../../platform/utilities/environment';

export default function AllClaimsBetaBanner({ dismiss, profile }) {
  // skip probability logic if user is enrolled
  if (!profile.services.includes(features.allClaims)) {
    // allow 1000-3000 users to see the banner
    // if user was selected, persist in localStorage
    // always show banner if not in production
    if (!localStorage.getItem('all-claims-beta')) {
      if (environment.isProduction() && Math.random() > 0.6) return null;
      localStorage.setItem('all-claims-beta', true);
    }
  }

  return (
    <div className="personalization-announcement">
      <span className="usa-label va-label-primary">New</span>{' '}
      <a onClick={dismiss} href="/beta-enrollment/all-claims/"><commit_msg>increase beta banner exposure rate (#9670)<commit_after>import React from 'react';
import { features } from '../../../../applications/beta-enrollment/routes';
import environment from '../../../../platform/utilities/environment';

export default function AllClaimsBetaBanner({ dismiss, profile }) {
  // skip probability logic if user is enrolled
  if (!profile.services.includes(features.allClaims)) {
    // allow 1000-3000 users to see the banner
    // if user was selected, persist in localStorage
    // always show banner if not in production
    if (!localStorage.getItem('all-claims-beta')) {
      if (environment.isProduction() && Math.random() > 0.85) return null;
      localStorage.setItem('all-claims-beta', true);
    }
  }

  return (
    <div className="personalization-announcement">
      <span className="usa-label va-label-primary">New</span>{' '}
      <a onClick={dismiss} href="/beta-enrollment/all-claims/">
{'fraction_non_alphanumeric': 0.15212649945474374, 'fraction_numerical': 0.013631406761177753, 'mean_word_length': 3.519704433497537, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '260032', 'n_tokens_mistral': 537, 'n_tokens_neox': 504, 'n_words': 138}