<commit_before># -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls import patterns, url
from django.core.exceptions import ImproperlyConfigured
from django.forms.forms import NON_FIELD_ERRORS
from django.forms.util import ErrorList
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _

import braintree

from shop.util.decorators import on_method, order_required

from shop_braintree.models import BraintreeCustomer
from shop_braintree.forms import CardForm


class BraintreeBackend(object):
    url_namespace = 'braintree'
    backend_name = _('Braintree')
    template = 'shop_braintree/card.html'

    def __init__(self, shop):
        self.shop = shop

    def get_urls(self):
        urlpatterns = patterns('',
            url(r'^$', self.braintree_payment_view, name='braintree'),
        )
        return urlpatterns<commit_msg>Gives the user visible backend_name a more appropriate title<commit_after># -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls import patterns, url
from django.core.exceptions import ImproperlyConfigured
from django.forms.forms import NON_FIELD_ERRORS
from django.forms.util import ErrorList
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _

import braintree

from shop.util.decorators import on_method, order_required

from shop_braintree.models import BraintreeCustomer
from shop_braintree.forms import CardForm


class BraintreeBackend(object):
    url_namespace = 'braintree'
    backend_name = _('Credit Card')
    template = 'shop_braintree/card.html'

    def __init__(self, shop):
        self.shop = shop

    def get_urls(self):
        urlpatterns = patterns('',
            url(r'^$', self.braintree_payment_view, name='braintree'),
        )
        return urlpatterns
{'fraction_non_alphanumeric': 0.07727975270479134, 'fraction_numerical': 0.0010303967027305513, 'mean_word_length': 4.2771739130434785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5907914', 'n_tokens_mistral': 566, 'n_tokens_neox': 556, 'n_words': 156}