<commit_before>import webapp2
import json
from musicdb.model import Artist
from musicdb import tools


class Test(webapp2.RequestHandler):
    
    def get(self):
        artist = Artist()
        artist.canonical_name = "@emikatwit"
        artist.display_name = "Emika"
        
        artists = [artist]
        
        r = tools.ndb_to_json(artists)
        self.response.content_type = "application/json"
        self.response.write(r)

application = webapp2.WSGIApplication([
    ('/api/artist', Test)
], debug=True)<commit_msg>Changed attribute names and added more examples<commit_after>import webapp2
import json
from musicdb.model import Artist
from musicdb import tools


class Test(webapp2.RequestHandler):
    
    def get(self):
        artist = Artist()
        artist.canonicalName = "@emikatwit"
        artist.displayName = "Emika"
        
        artists = [artist]
        
        artist = Artist()
        artist.canonicalName = "@laurelhalo"
        artist.displayName = "<NAME>"
        artists.append(artist)
        
        r = tools.ndb_to_json(artists)
        self.response.content_type = "application/json"
        self.response.write(r)

application = webapp2.WSGIApplication([
    ('/api/artist', Test)
], debug=True)
{'fraction_non_alphanumeric': 0.10135674381484437, 'fraction_numerical': 0.004788507581803671, 'mean_word_length': 2.5931232091690544, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2165802', 'n_tokens_mistral': 381, 'n_tokens_neox': 383, 'n_words': 80}