<commit_before><?php

class Recurly_CouponRedemption extends Recurly_Resource
{
  protected static $_writeableAttributes;
  protected static $_nestedAttributes;
  protected static $_redeemUrl;

  public static function init()
  {
    Recurly_CouponRedemption::$_writeableAttributes = array('account_code','currency');
    Recurly_CouponRedemption::$_nestedAttributes = array('account');
  }

  public static function get($accountCode, $client = null) {
    return Recurly_Base::_get(Recurly_CouponRedemption::uriForAccount($accountCode), $client);
  }

  public function delete($accountCode = null) {
    return Recurly_Base::_delete($this->uri($accountCode), $this->_client);
  }
  public static function deleteCouponRedemption($accountCode) {
    return Recurly_CouponRedemption::uriForAccount($accountCode);
  }

  protected function uri($accountCode = null) {
    if (!empty($this->_href))
      return $this->getHref();
    else if(!empty($accountCode))
      return Recurly_CouponRedemption::uriForAccount($accountCode);
    else
      return false;
  }
  protected static function uriForAccount($accountCode) {
    return Recurly_Client::PATH_ACCOUNTS . '/' . rawurlencode($accountCode) . Recurly_Client::PATH_COUPON_REDEMPTION;
  }

  protected function getNodeName() {
    return 'redemption';
  }
  protected function getWriteableAttributes() {<commit_msg>Remove unused deleteCouponRedemption function<commit_after><?php

class Recurly_CouponRedemption extends Recurly_Resource
{
  protected static $_writeableAttributes;
  protected static $_nestedAttributes;
  protected static $_redeemUrl;

  public static function init()
  {
    Recurly_CouponRedemption::$_writeableAttributes = array('account_code','currency');
    Recurly_CouponRedemption::$_nestedAttributes = array('account');
  }

  public static function get($accountCode, $client = null) {
    return Recurly_Base::_get(Recurly_CouponRedemption::uriForAccount($accountCode), $client);
  }

  public function delete($accountCode = null) {
    return Recurly_Base::_delete($this->uri($accountCode), $this->_client);
  }

  protected function uri($accountCode = null) {
    if (!empty($this->_href))
      return $this->getHref();
    else if(!empty($accountCode))
      return Recurly_CouponRedemption::uriForAccount($accountCode);
    else
      return false;
  }
  protected static function uriForAccount($accountCode) {
    return Recurly_Client::PATH_ACCOUNTS . '/' . rawurlencode($accountCode) . Recurly_Client::PATH_COUPON_REDEMPTION;
  }

  protected function getNodeName() {
    return 'redemption';
  }
  protected function getWriteableAttributes() {
{'fraction_non_alphanumeric': 0.11064638783269962, 'fraction_numerical': 0.0, 'mean_word_length': 5.480295566502463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7430220', 'n_tokens_mistral': 801, 'n_tokens_neox': 775, 'n_words': 147}