MCPcopy
hub / github.com/django/django / paragraphs

Function paragraphs

django/utils/lorem_ipsum.py:252–266  ·  view source on GitHub ↗

Return a list of paragraphs as returned by paragraph(). If `common` is True, then the first paragraph will be the standard 'lorem ipsum' paragraph. Otherwise, the first paragraph will be random Latin text. Either way, subsequent paragraphs will be random Latin text.

(count, common=True)

Source from the content-addressed store, hash-verified

250
251
252def paragraphs(count, common=True):
253 """
254 Return a list of paragraphs as returned by paragraph().
255
256 If `common` is True, then the first paragraph will be the standard
257 'lorem ipsum' paragraph. Otherwise, the first paragraph will be random
258 Latin text. Either way, subsequent paragraphs will be random Latin text.
259 """
260 paras = []
261 for i in range(count):
262 if common and i == 0:
263 paras.append(COMMON_P)
264 else:
265 paras.append(paragraph())
266 return paras
267
268
269def words(count, common=True):

Callers 4

renderMethod · 0.90
test_paragraphsMethod · 0.90

Calls 2

paragraphFunction · 0.85
appendMethod · 0.45

Tested by 2

test_paragraphsMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…