<s> import sys <EOL> import psycopg2 <EOL> import json <EOL> import argparse <EOL> import os <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( "<STR_LIT>" , type = int ) <EOL> parser . add_argument ( "<STR_LIT>" , type = int ) <EOL> arguments = parser . parse_args ( ) <EOL> os . setgid ( arguments . gid ) <EOL> os . setuid ( arguments . uid ) <EOL> data = json . load ( sys . stdin ) <EOL> import configuration <EOL> db = psycopg2 . connect ( ** configuration . database . PARAMETERS ) <EOL> cursor = db . cursor ( ) <EOL> cursor . execute ( """<STR_LIT>""" ) <EOL> cursor . execute ( "<STR_LIT>" ) <EOL> cursor . execute ( "<STR_LIT>" ) <EOL> db . commit ( ) <EOL> db . close ( ) </s>
