<commit_before>from flask import current_app as app, g, request, Module, render_template, redirect

from codesharer.apps.snippets.models import Snippets
from codesharer.apps.snippets.forms import NewSnippetForm
from codesharer.utils.readability import summarize_url

frontend = Module(__name__)

@frontend.route('/:org/new', methods=['GET', 'POST'])
def new_snippet(org):
    """
    Creates a new snippet for an organization.
    """

    snippets = Snippets(g.redis)
    
    form = NewSnippetForm()
    if form.validate_on_submit():
        # Generate a unique slug from name<commit_msg>Remove readability<commit_after>from flask import current_app as app, g, request, Module, render_template, redirect

from codesharer.apps.snippets.models import Snippets
from codesharer.apps.snippets.forms import NewSnippetForm

frontend = Module(__name__)

@frontend.route('/:org/new', methods=['GET', 'POST'])
def new_snippet(org):
    """
    Creates a new snippet for an organization.
    """

    snippets = Snippets(g.redis)
    
    form = NewSnippetForm()
    if form.validate_on_submit():
        # Generate a unique slug from name
{'fraction_non_alphanumeric': 0.10265486725663717, 'fraction_numerical': 0.0, 'mean_word_length': 4.285046728971962, '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': '4311655', 'n_tokens_mistral': 356, 'n_tokens_neox': 338, 'n_words': 94}