<commit_before><?php

/**
 * Subclass for performing query and update operations on the 'reg_export_history' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ExportHistoryPeer extends BaseExportHistoryPeer
{

  public static $CSV_TYPES = [
      2 => 'Populated import template',
      1 => 'Empty import template',
      3 => 'Sparse data(just the populated attribute columns',
      4 => 'Rich data (includes empty attribute columns]',
  ];

    public static function getProfileColumns()
    {
        $request = sfContext::getInstance()->getRequest();
        if ($request->getParameter('schema_id')) {
            $profileId = 1;
        }
        if ($request->getParameter('vocabulary_id')) {
            $profileId = 2;
        }
        return ProfilePropertyPeer::getProfilePropertiesForExport($profileId);
    }


  public static function getOptionsforCsvType()
  {
    $userId = sfContext::getInstance()->getUser()->getSubscriberId();
    $select_options = self::$CSV_TYPES;

    //non-members don't get to have nice things
    if (!$userId) {
      unset( $select_options[1] );
      unset( $select_options[2] );
    }

    return $select_options;

  }

<commit_msg>typos<commit_after><?php

/**
 * Subclass for performing query and update operations on the 'reg_export_history' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ExportHistoryPeer extends BaseExportHistoryPeer
{

  public static $CSV_TYPES = [
      2 => 'Populated import template',
      1 => 'Empty import template',
      3 => 'Sparse (just the populated attribute columns)',
      4 => 'Full (includes empty attribute columns)',
  ];

    public static function getProfileColumns()
    {
        $request = sfContext::getInstance()->getRequest();
        if ($request->getParameter('schema_id')) {
            $profileId = 1;
        }
        if ($request->getParameter('vocabulary_id')) {
            $profileId = 2;
        }
        return ProfilePropertyPeer::getProfilePropertiesForExport($profileId);
    }


  public static function getOptionsforCsvType()
  {
    $userId = sfContext::getInstance()->getUser()->getSubscriberId();
    $select_options = self::$CSV_TYPES;

    //non-members don't get to have nice things
    if (!$userId) {
      unset( $select_options[1] );
      unset( $select_options[2] );
    }

    return $select_options;

  }


{'fraction_non_alphanumeric': 0.12585324232081913, 'fraction_numerical': 0.006825938566552901, 'mean_word_length': 2.9478114478114477, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '4602785', 'n_tokens_mistral': 681, 'n_tokens_neox': 669, 'n_words': 163}