- Rename functions, variables, parameters and imports with scope-aware AST passes - Generalise Flask route and template paths to unique /route_N and tpl_N names - Replace descriptive strings with length-preserving, word-consistent msg tokens - Strip docstrings and comments - Add verification for parse validity and leaked benchmark identifiers - Include SAST prompt and expected labels
27 lines
896 B
Python
27 lines
896 B
Python
from flask import redirect as mod_1, url_for as mod_2, request as mod_3, make_response as mod_4, render_template as mod_5
|
|
from helpers.utils import escape_for_html as mod_6
|
|
|
|
def init(var_1):
|
|
|
|
@var_1.route('/route_63', methods=['GET'])
|
|
def func_125():
|
|
return func_126()
|
|
|
|
@var_1.route('/route_63', methods=['POST'])
|
|
def func_126():
|
|
var_2 = ''
|
|
import helpers.separate_request
|
|
var_3 = helpers.separate_request.request_wrapper(mod_3)
|
|
var_4 = var_3.get_form_parameter('msg000000000000010')
|
|
if not var_4:
|
|
var_4 = ''
|
|
var_5 = 86
|
|
if 7 * 42 - var_5 > 200:
|
|
var_6 = 'm000_msg000_msg00b_msg001'
|
|
else:
|
|
var_6 = var_4
|
|
import flask as mod_7
|
|
mod_7.session['msg00k'] = var_6
|
|
var_2 += f"m00r: 'msg00k' m00d msg0d '{mod_6(var_6)}'msg0q wd msg000f."
|
|
return var_2
|