<s> from wharf import app <EOL> from flask import render_template <EOL> @ app . route ( '<STR_LIT>' ) <EOL> def details ( url , service ) : <EOL> client = "<STR_LIT>" <EOL> test = "<STR_LIT>" <EOL> link = "<STR_LIT>" <EOL> link_name = "<STR_LIT>" <EOL> link_path = "<STR_LIT>" + service + "<STR_LIT:/>" + app . config [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> with open ( link_path , '<STR_LIT:r>' ) as content_file : <EOL> link = content_file . read ( ) <EOL> link_a = link . split ( "<STR_LIT:U+0020>" , <NUM_LIT:1> ) <EOL> link = link_a [ <NUM_LIT:0> ] <EOL> link_name = link_a [ <NUM_LIT:1> ] <EOL> client_path = "<STR_LIT>" + service + "<STR_LIT:/>" + app . config [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> with open ( client_path , '<STR_LIT:r>' ) as content_file : <EOL> client = content_file . read ( ) <EOL> client_a = client . split ( "<STR_LIT:\n>" ) <EOL> client = client_a [ <NUM_LIT:0> ] <EOL> test_path = "<STR_LIT>" + service + "<STR_LIT>" + client_a [ <NUM_LIT:1> ] <EOL> with open ( test_path , '<STR_LIT:r>' ) as content_file : <EOL> test = content_file . read ( ) <EOL> return render_template ( "<STR_LIT>" , <EOL> url = url , <EOL> service = service , <EOL> client = client , <EOL> test = test , <EOL> link = link , <EOL> link_name = link_name ) </s>
