<commit_before>#!/usr/bin/env python

"""
$Id$

Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""

from lib.core.data import kb
from lib.request.connect import Connect as Request

def getPageTemplate(payload, place):
    retVal = kb.originalPage
    if payload and place:
        if (payload, place) not in kb.pageTemplates:
            kb.pageTemplates[(payload, place)], _ = Request.queryPage(payload, place, content=True)
        retVal = kb.pageTemplates[(payload, place)]
    return retVal<commit_msg>Cosmetics<commit_after>#!/usr/bin/env python

"""
$Id$

Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""

from lib.core.data import kb
from lib.request.connect import Connect as Request

def getPageTemplate(payload, place):
    retVal = kb.originalPage

    if payload and place:
        if (payload, place) not in kb.pageTemplates:
            kb.pageTemplates[(payload, place)], _ = Request.queryPage(payload, place, content=True)

        retVal = kb.pageTemplates[(payload, place)]

    return retVal
{'fraction_non_alphanumeric': 0.1146278870829769, 'fraction_numerical': 0.013686911890504704, 'mean_word_length': 3.834710743801653, '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': '5290932', 'n_tokens_mistral': 385, 'n_tokens_neox': 345, 'n_words': 101}