<commit_before># This file should be synched with Central
module AccountTypeHelper
  # Customer-facing plan name. Front is responsible of shortening long ones.
  def plan_name(account_type)
    PLAN_NAME_BY_ACCOUNT_TYPE_DOWN.fetch(account_type.downcase, account_type)
  end

  def plan_name_no_time(account_type)
    plan_name(account_type).gsub(' - Monthly', '').gsub(' - Annual', '')
  end

  private

  PLAN_NAME_BY_ACCOUNT_TYPE = {
    'FREE' => 'Free',
    'BASIC' => 'Personal',
    'BASIC LUMP-SUM' => 'Personal',
    'BASIC ACADEMIC' => 'Personal Non-Profit',
    'BASIC NON-PROFIT' => 'Personal Non-Profit',
    'BASIC LUMP-SUM ACADEMIC' => 'Personal Non-Profit',
    'BASIC LUMP-SUM NON-PROFIT' => 'Personal Non-Profit',
    'Enterprise Builder - Annual' => 'Enterprise',
    'Enterprise Builder - On-premises - Annual' => 'Enterprise',
    'Cloud Engine & Enterprise Builder - Annual' => 'Enterprise',
    'Internal use engine - Cloud - Annual' => 'Internal',
    'Internal use engine - On-premises - Annual' => 'Internal',
    'Internal use engine - On-premises Lite - Annual' => 'Internal',
    'OEM engine - Cloud - Annual' => 'Enterprise',
    'OEM engine - On-premises - Annual' => 'Enterprise',
    'PARTNERS' => 'Partner',
    'CARTO for the Classroom - Annual' => 'Student',
    'Site License' => 'Student',
    'CARTO for students - Annual' => 'Student',
    'AMBASSADOR' => 'Ambassador',
    'ire' => 'Ambassador',
    'CARTO for Community - Annual' => 'Ambassador',<commit_msg>Exact copy of price plan names from Central<commit_after># This file should be synched with Central
module AccountTypeHelper
  # Customer-facing plan name. Front is responsible of shortening long ones.
  def plan_name(account_type)
    PLAN_NAME_BY_ACCOUNT_TYPE_DOWN.fetch(account_type.downcase, account_type)
  end

  def plan_name_no_time(account_type)
    plan_name(account_type).gsub(' - Monthly', '').gsub(' - Annual', '')
  end

  def public_plan_name(account_type)
    PUBLIC_PLAN_NAME.fetch(account_type)
  end

  # "private": use the methods instead

  PUBLIC_PLAN_NAME = {
    'FREE' => 'Free',
    'BASIC' => 'Personal',
    'BASIC LUMP-SUM' => 'Personal Lump-Sum'
  }.freeze

  PLAN_NAME_BY_ACCOUNT_TYPE = {
    'FREE' => 'Free',
    'BASIC' => 'Personal',
    'BASIC LUMP-SUM' => 'Personal',
    'BASIC ACADEMIC' => 'Personal Non-Profit',
    'BASIC NON-PROFIT' => 'Personal Non-Profit',
    'BASIC LUMP-SUM ACADEMIC' => 'Personal Non-Profit',
    'BASIC LUMP-SUM NON-PROFIT' => 'Personal Non-Profit',
    'Enterprise Builder - Annual' => 'Enterprise',
    'Enterprise Builder - On-premises - Annual' => 'Enterprise',
    'Cloud Engine & Enterprise Builder - Annual' => 'Enterprise',
    'Internal use engine - Cloud - Annual' => 'Internal',
    'Internal use engine - On-premises - Annual' => 'Internal',
    'Internal use engine - On-premises Lite - Annual' => 'Internal',
    'OEM engine - Cloud - Annual' => 'Enterprise',
    'OEM engine - On-premises - Annual' => 'Enterprise',
    'PARTNERS' => 'Partner',
    'CARTO for the Classroom - Annual' => 'Student',
    'Site License' => 'Student',
    'CARTO for students - Annual' => 'Student',
    'AMBASSADOR' => 'Ambassador',
    'ire' => 'Ambassador',
    'CARTO for Community - Annual' => 'Ambassador',
{'fraction_non_alphanumeric': 0.14770642201834863, 'fraction_numerical': 0.0, 'mean_word_length': 3.5941011235955056, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 50, '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': '7130048', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1078, 'n_words': 280}