<s> """<STR_LIT>""" <EOL> import sys <EOL> from pprint import pprint <EOL> import logging <EOL> from graph_explorer import structured_metrics <EOL> from graph_explorer import config <EOL> from graph_explorer . log import make_logger <EOL> if len ( sys . argv ) < <NUM_LIT:3> : <EOL> print "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> config . init ( sys . argv [ <NUM_LIT:1> ] ) <EOL> config . valid_or_die ( ) <EOL> logger = make_logger ( '<STR_LIT>' , config ) <EOL> logger . setLevel ( logging . WARN ) <EOL> s_metrics = structured_metrics . StructuredMetrics ( config , logger ) <EOL> errors = s_metrics . load_plugins ( ) <EOL> if len ( errors ) > <NUM_LIT:0> : <EOL> print '<STR_LIT>' <EOL> for e in errors : <EOL> print '<STR_LIT>' % e <EOL> for v in s_metrics . list_metrics ( sys . argv [ <NUM_LIT:2> : ] ) . values ( ) : <EOL> pprint ( v ) </s>
