<commit_before>import re
from flask import Blueprint, render_template, flash, redirect, url_for, request, send_file
from flask.ext.login import login_required
from flask.ext.babel import gettext, ngettext, lazy_gettext
from forms import GeneralModelConverter
from .security.decorators import has_access
from .filemanager import uuid_originalname
from .widgets import FormWidget, ShowWidget, ListWidget, SearchWidget
from .actions import ActionItem


def expose(url='/', methods=('GET',)):
    """
        Use this decorator to expose views in your view classes.
       
        :param url:
            Relative URL for the view
        :param methods:
            Allowed HTTP methods. By default only GET is allowed.
    """
    def wrap(f):
        if not hasattr(f, '_urls'):
            f._urls = []
        f._urls.append((url, methods))
        return f
    return wrap
    
    
class BaseView(object):
    """
    Base View for all Views
    includes permission, app info
    """
<commit_msg>Update views.py<commit_after>import re
from flask import Blueprint, render_template, flash, redirect, url_for, request, send_file
from flask.ext.login import login_required
from flask.ext.babel import gettext, ngettext, lazy_gettext
from forms import GeneralModelConverter
from .filemanager import uuid_originalname
from .widgets import FormWidget, ShowWidget, ListWidget, SearchWidget
from .actions import ActionItem


def expose(url='/', methods=('GET',)):
    """
        Use this decorator to expose views in your view classes.
       
        :param url:
            Relative URL for the view
        :param methods:
            Allowed HTTP methods. By default only GET is allowed.
    """
    def wrap(f):
        if not hasattr(f, '_urls'):
            f._urls = []
        f._urls.append((url, methods))
        return f
    return wrap
    
    
class BaseView(object):
    """
    Base View for all Views
    includes permission, app info
    """

{'fraction_non_alphanumeric': 0.08120531154239019, 'fraction_numerical': 0.0, 'mean_word_length': 2.818713450292398, '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': '4860051', 'n_tokens_mistral': 535, 'n_tokens_neox': 526, 'n_words': 197}