code stringlengths 3 6.57k |
|---|
self._write_output(formatted_title) |
_display_value(self, value_definition, event_record) |
self._format_description(value_description) |
value_definition.get('value_format') |
text_filter.filter_text(formatted_value) |
self._write_output(formatted_value) |
_write_output(self, content) |
isinstance(content, six.text_type) |
content.encode('utf-8') |
self._output.write(content) |
_format_section_title(self, title, event_record) |
self._get_api_num(event_record) |
self._color_if_configured(formatted_title, 'title') |
self._format_description('at time') |
_get_api_num(self, event_record) |
_format_description(self, value_description) |
_format_value(self, value, event_record, value_format=None) |
str(value) |
_color_if_configured(self, text, component) |
SectionValuePrettyFormatter(object) |
pformat(self, value, value_format, event_record) |
getattr(self, '_pformat_' + value_format) |
_pformat_timestamp(self, event_timestamp, event_record=None) |
strftime('%Y-%m-%d %H:%M:%S.%f') |
_pformat_dictionary(self, obj, event_record=None) |
json.dumps(obj=obj, sort_keys=True, indent=4) |
_pformat_http_body(self, body, event_record) |
get('streaming', False) |
self._is_xml(body) |
self._get_pretty_xml(body) |
self._is_json_structure(body) |
self._get_pretty_json(body) |
_get_pretty_xml(self, body) |
toprettyxml() |
toprettyxml() |
self._strip_whitespace(body) |
xml.dom.minidom.parseString(stripped_body) |
xml_dom.toprettyxml(indent=' '*4, newl='\n') |
_get_pretty_json(self, body) |
json.loads(body) |
self._pformat_dictionary(obj) |
_is_xml(self, body) |
xml.dom.minidom.parseString(body) |
_strip_whitespace(self, xml_string) |
xml.dom.minidom.parseString(xml_string) |
line.strip() |
xml_dom.toxml() |
splitlines() |
_is_json_structure(self, body) |
body.startswith('{') |
json.loads(body) |
ShowCommand(HistorySubcommand) |
FORMATTERS.keys() |
_run_main(self, parsed_args, parsed_globals) |
self._connect_to_history_db() |
self._validate_args(parsed_args) |
self._get_output_stream() |
self._get_record_iterator(parsed_args) |
formatter.display(record) |
self._close_history_db() |
_validate_args(self, parsed_args) |
_get_formatter(self, parsed_args, parsed_globals, output_stream) |
_get_record_iterator(self, parsed_args) |
self._db_reader.iter_latest_records() |
self._db_reader.iter_records(parsed_args.command_id) |
PlatformCollector(object) |
__init__(self, registry=core.REGISTRY, platform=None) |
self._info() |
self._platform.system() |
info.update(self._java() |
self._add_metric("python_info", "Python platform information", info) |
registry.register(self) |
collect(self) |
_add_metric(name, documentation, data) |
data.keys() |
core.GaugeMetricFamily(name, documentation, labels=labels) |
g.add_metric(values, 1) |
_info(self) |
self._platform.python_version_tuple() |
self._platform.python_version() |
self._platform.python_implementation() |
_java(self) |
self._platform.java_ver() |
PlatformCollector() |
free_node (node_id) |
VALUES (%s) |
mycursor.execute(sql, val) |
os.system(command) |
methods (e.g., predict, postprocess, loss) |
yield (multi-class) |
RPN (region proposal network) |
API (see model.DetectionModel definition) |
sys.path.append("/notebooks/text-renderer/") |
FasterRCNNFeatureExtractor(object) |
size
(e.g. 8) |
extractor (default: 0.0) |
preprocess(self, resized_inputs) |
preprocessing (minus image resizing) |
extract_proposal_features(self, preprocessed_inputs, scope) |
network (RPN) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.