<commit_before>const mtg = require('mtgsdk')
var express = require('express')
var app = express()

app.get('/', function (req, res) {
    res.send('Having trouble? Check the readme @ https://github.com/nosrednAhsoJ/MTGScryService.')
})

app.get('/cards/:gathererID', function (req, res) {
    mtg.card.find(req.params['gathererID'])
    .then(result => {
        res.send(result.card)
    })
})

app.get('/cards/:gathererID/image', function (req, res) {
    mtg.card.find(req.params['gathererID'])
    .then(result => {
        res.send('<img src="' + result.card.imageUrl + '">')
    })
})
<commit_msg>Fix ampersand.<commit_after>const mtg = require('mtgsdk')
var express = require('express')
var app = express()

app.get('/', function (req, res) {
    res.send('Having trouble? Check the readme @ https://github.com/nosrednAhsoJ/MTGScryService.')
})

app.get('/cards/:gathererID', function (req, res) {
    mtg.card.find(req.params['gathererID'])
    .then(result => {
        res.send(result.card)
    })
})

app.get('/cards/:gathererID/image', function (req, res) {
    mtg.card.find(req.params['gathererID'])
    .then(result => {
        res.send('<img src="' + result.card.imageUrl.replace('&amp;','&') + '">')
    })
})

{'fraction_non_alphanumeric': 0.21009771986970685, 'fraction_numerical': 0.0, 'mean_word_length': 3.6553030303030303, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '4752337', 'n_tokens_mistral': 443, 'n_tokens_neox': 458, 'n_words': 71}