<commit_before>from flask import Flask, Blueprint, render_template, request, url_for, \
        redirect, current_app, abort

import re
import requests
from requests import HTTPError
import soundcloud

top_tracks = Blueprint('tt', __name__,
                       static_folder='static', static_url_path='/static/top_tracks',
                       template_folder='templates')

valid_username = re.compile('^[a-z0-9_-]+$', re.I)

def get_artist_name(artist):
    """
    Get the artist name from a soundcloud url
    or validate given artist name
    return None for invalid input
    """
    artist = artist.strip()
<commit_msg>cleaned up imports<commit_after>from flask import Flask, Blueprint, render_template, request, url_for, \
                  redirect, current_app, abort
import re
from requests import HTTPError
import soundcloud

top_tracks = Blueprint('tt', __name__,
                       static_folder='static', static_url_path='/static/top_tracks',
                       template_folder='templates')

valid_username = re.compile('^[a-z0-9_-]+$', re.I)

def get_artist_name(artist):
    """
    Get the artist name from a soundcloud url
    or validate given artist name
    return None for invalid input
    """
    artist = artist.strip()

{'fraction_non_alphanumeric': 0.09538950715421304, 'fraction_numerical': 0.003179650238473768, 'mean_word_length': 3.0876623376623376, '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': '6222092', 'n_tokens_mistral': 363, 'n_tokens_neox': 355, 'n_words': 104}