Home
last modified time | relevance | path

Searched refs:_indent (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/
Dpretty_printer.py52 def _indent(self): member in PrettyPrinter
64 self._print('%s%s="%s"' % (self._indent(), name, node))
66 self._print('%s"%s"' % (self._indent(), node))
75 self._print('%s%s=%s%s' % (self._indent(), self._field(name),
78 self._print('%s%s%s' % (self._indent(), self._type(node), cont))
85 self._print('%s%s' % (self._indent(), self._warning('%s=<unset>' % f)))
90 self._print('%s%s=[' % (self._indent(), self._field(f)))
96 self._print('%sNone' % (self._indent()))
98 self._print('%s]' % (self._indent()))
100 self._print('%s%s=[]' % (self._indent(), self._field(f)))
[all …]
/external/llvm-project/debuginfo-tests/dexter/dex/utils/
DTimer.py15 def _indent(indent): function
31 indent = _indent(Timer.indent - 1) + ' _'
32 Timer.fn('{}\n'.format(_indent(Timer.indent - 1)))
38 indent = _indent(Timer.indent - 1) + '|_'
41 Timer.fn('{}\n'.format(_indent(Timer.indent - 1)))
/external/python/cpython3/Lib/json/
Dencoder.py259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr, argument
274 if _indent is not None and not isinstance(_indent, str):
275 _indent = ' ' * _indent
287 if _indent is not None:
289 newline_indent = '\n' + _indent * _current_indent_level
328 yield '\n' + _indent * _current_indent_level
343 if _indent is not None:
345 newline_indent = '\n' + _indent * _current_indent_level
408 yield '\n' + _indent * _current_indent_level
/external/harfbuzz_ng/src/
Dgen-vowel-constraints.py87 def _indent (self, depth): member in ConstraintSet
92 indent = self._indent (depth)
100 s.append ('{}buffer->idx + {} < count &&\n'.format (self._indent (depth + 2), len (self._c)))
103 self._indent (depth + 2), cp, index + i, ')' if i == len (self._c) - 1 else ' &&'))
106 s.append ('{}buffer->next_glyph ();\n'.format (self._indent (depth + 1)))
107 s.append ('{}_output_dotted_circle (buffer);\n'.format (self._indent (depth + 1)))
118 s.append (self._indent (depth + 1))
125 s.append ('{}break;\n'.format (self._indent (depth + 2)))
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java112 public String toString(String _indent) in toString() argument
115 _buf.append(_indent); in toString()
121 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
124 _buf.append(_indent); in toString()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java116 public String toString(String _indent) in toString() argument
119 _buf.append(_indent); in toString()
125 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
128 _buf.append(_indent); in toString()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java116 public String toString(String _indent) in toString() argument
119 _buf.append(_indent); in toString()
125 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
128 _buf.append(_indent); in toString()
/external/python/cpython2/Lib/json/
Dencoder.py272 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr, argument
298 if _indent is not None:
300 newline_indent = '\n' + (' ' * (_indent * _current_indent_level))
336 yield '\n' + (' ' * (_indent * _current_indent_level))
351 if _indent is not None:
353 newline_indent = '\n' + (' ' * (_indent * _current_indent_level))
412 yield '\n' + (' ' * (_indent * _current_indent_level))
/external/mesa3d/src/gallium/tools/trace/
Ddiff_state.py73 def _indent(self): member in Dumper
98 self._indent()
108 self._indent()
117 self._indent()
131 self._indent()
234 self.dumper._indent()
259 self.dumper._indent()
/external/XNNPACK/tools/
Dxnncommon.py8 def _indent(text): function
100 return "#if %s\n" % guard + _indent(test_case) + "\n" + \
/external/libnl/python/netlink/
Dutil.py81 self._indent = indent
145 return '\n' + self._indent + self.format(format_string)
/external/python/cpython3/Lib/
Ddoctest.py235 def _indent(s, indent=4): function
1231 out('Trying:\n' + _indent(example.source) +
1232 'Expecting:\n' + _indent(example.want))
1234 out('Trying:\n' + _indent(example.source) +
1257 'Exception raised:\n' + _indent(_exception_traceback(exc_info)))
1272 out.append(_indent(source))
1701 return 'Differences (%s):\n' % kind + _indent(''.join(diff))
1706 return 'Expected:\n%sGot:\n%s' % (_indent(want), _indent(got))
1708 return 'Expected:\n%sGot nothing\n' % _indent(want)
1710 return 'Expected nothing\nGot:\n%s' % _indent(got)
Dast.py680 self._indent = 0
714 self.write(" " * self._indent + text)
739 self._indent += 1
741 self._indent -= 1
Dargparse.py192 def _indent(self): member in HelpFormatter
212 self.formatter._indent()
239 self._indent()
634 self._indent()
/external/fonttools/Lib/fontTools/misc/
Detree.py178 _indent(self._root)
467 def _indent(elem, level=0): function
476 _indent(elem, level + 1)
/external/python/cpython2/Lib/
Ddoctest.py225 def _indent(s, indent=4): function
1209 out('Trying:\n' + _indent(example.source) +
1210 'Expecting:\n' + _indent(example.want))
1212 out('Trying:\n' + _indent(example.source) +
1235 'Exception raised:\n' + _indent(_exception_traceback(exc_info)))
1250 out.append(_indent(source))
1656 return 'Differences (%s):\n' % kind + _indent(''.join(diff))
1661 return 'Expected:\n%sGot:\n%s' % (_indent(want), _indent(got))
1663 return 'Expected:\n%sGot nothing\n' % _indent(want)
1665 return 'Expected nothing\nGot:\n%s' % _indent(got)
Dargparse.py188 def _indent(self): member in HelpFormatter
208 self.formatter._indent()
237 self._indent()
615 self._indent()
/external/autotest/server/
Dserver_job.py160 self._indent = 0
165 return self._indent
169 self._indent += 1
173 self._indent -= 1
181 self._indent = indent
183 self._indenter._indent = self._indent
184 return context(self, self._indent)
/external/python/cpython2/Demo/parser/
Dunparse.py34 self._indent = 0
41 self.f.write("\n"+" "*self._indent + text)
50 self._indent += 1
54 self._indent -= 1
/external/sfntly/cpp/src/test/tinyxml/
Dtinyxml.h1757 void SetIndent( const char* _indent ) { indent = _indent ? _indent : "" ; } in SetIndent() argument
/external/llvm-project/polly/utils/
Dargparse.py221 def _indent(self): member in HelpFormatter
241 self.formatter._indent()
270 self._indent()
638 self._indent()
/external/bcc/tests/cc/
Dcatch.hpp3739 void spliceLine( std::size_t _indent, std::string& _remainder, std::size_t _pos ) { in spliceLine() argument
3740 lines.push_back( std::string( _indent, ' ' ) + _remainder.substr( 0, _pos ) ); in spliceLine()
4929 void spliceLine( std::size_t _indent, std::string& _remainder, std::size_t _pos ) { in spliceLine() argument
4930 lines.push_back( std::string( _indent, ' ' ) + _remainder.substr( 0, _pos ) ); in spliceLine()