- 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
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
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_53', methods=['GET'])
|
|
def func_105():
|
|
return func_106()
|
|
|
|
@var_1.route('/route_53', methods=['POST'])
|
|
def func_106():
|
|
var_2 = ''
|
|
import helpers.separate_request
|
|
var_3 = helpers.separate_request.request_wrapper(mod_3)
|
|
var_4 = var_3.get_form_parameter('msg00000000000000Q')
|
|
if not var_4:
|
|
var_4 = ''
|
|
import configparser as mod_7
|
|
var_5 = 'm008!'
|
|
var_6 = mod_7.ConfigParser()
|
|
var_6.add_section('msg000000005')
|
|
var_6.set('msg000000005', 'm009-59255', 'o_msg0b')
|
|
var_6.set('msg000000005', 'm00a-59255', var_4)
|
|
var_5 = var_6.get('msg000000005', 'm009-59255')
|
|
import helpers.db_sqlite
|
|
var_7 = f'msg00h msg0000b m006 msg0l msg0m msg0000c = ?'
|
|
var_8 = helpers.db_sqlite.get_connection()
|
|
var_9 = var_8.cursor()
|
|
var_9.execute(var_7, (var_5,))
|
|
var_2 += helpers.db_sqlite.results(var_9, var_7)
|
|
var_8.close()
|
|
return var_2
|