← Back
Editing: randomtext.cpython-311.pyc
� {� gMY � � � d Z dZg d�Zg d�Zg d�Zg d�Zg d�Zg d�Zg d�Zg d �Z g d �Z g d�Zg d�Zdd�Z dd�ZddlmZ ej r�ddlZ G d� dej � � Zej ej _ ej ej _ ej j e_ ej j e_ [ eedd� � sde_ ej d� � [[edfd�Zedk r�ddlZej dd� Zer�e� d� � Z er e!e� d� � � � Z"ndZ" e# ee e"� � � � dS # ej$ �% d� � ej$ �% d� � � xY w e# ed� � � � dS dS )z3.3.0a� Like Lorem Ipsum, but more fun and extensible. This module exposes a function randomText() which generates paragraphs. These can be used when testing out document templates and stylesheets. A number of 'themes' are provided - please contribute more! We need some real Greek text too. There are currently six themes provided: STARTUP (words suitable for a business plan - or not as the case may be), COMPUTERS (names of programming languages and operating systems etc), BLAH (variations on the word 'blah'), BUZZWORD (buzzword bingo), STARTREK (Star Trek), PRINTING (print-related terms) PYTHON (snippets and quotes from Monty Python) CHOMSKY (random lingusitic nonsense) EXAMPLE USAGE: from reportlab.lib import randomtext print randomtext.randomText(randomtext.PYTHON, 10) This prints a random number of random sentences (up to a limit of ten) using the theme 'PYTHON'. )� strategic� direction� proactive�venture capital� reengineering�forecast� resourcesz SWOT analysiszforward-thinking�profit�growth� doubletalk�B2B�B2Cr �IPOz#NASDAQ meltdown - we're all doomed!)��Python�Perl�Pascal�Java� Javascript�VB�Basic�LISP�Fortran�ADA�APL�CzC++� assemblerz Larry WallzGuido van Rossum�XML�HTML�cgizcgi-bin�Amiga� Macintosh�Dell� Microsoft�firewall�server�Linux�Unix�MacOS�BeOSzAS/400�sendmailzTCP/IP�SMTPzRFC822-compliant�dynamic�InternetzA/UXzAmiga OS�BIOSz boot managerszCP/M�DOSzfile system�FreeBSD�Freeware�GEOS�GNU�Hurdr% �MachzMacintosh OSz mailing lists�Minix�Multics�NetWare�NextStepzOS/2zPlan 9�Realtime�UNIX�VMS�Windowsz X Windows�Xinu�security�Intel� encryption�PGP�software�ActiveX�AppleScript�awk�BETA�COBOL�Delphi�Dylan�Eiffelzextreme programming�Forthr zfunctional languages�Guilezformat your hard drive�Icon�IDL�Infer�Intercal�Jr � JavaScriptzCD-ROM�JCL�Lispz"literate programming"�Logo�MUMPSzC: drivezModula-2zModula-3�Oberon�Occam�OpenGLzparallel languagesr r zPL/I� PostScript�Prolog�hardwarezBlue Screen of Death�Rexx�RPG�Schemezscripting languages� Smalltalkzcrash!z disc crash�Spanner�SQLzTcl/Tk�TeX�TOM�VisualzVisual Basic�4GL�VRMLz!Virtual Reality Modeling Languagezdifference enginez...went into "yo-yo mode"�SunzSun MicrosystemszHewlett Packardz output device�CPU�memory� registers�monitorzTFT displayz plasma screenz bug reportz "mis-feature"z...millions of bugs!�pizzaz"illiterate programming"z...lots of pizza!zpepperoni pizza�coffeez Jolt Cola[TM]�beerzBEER!)�Blah�BLAH�blahblah�blahblahblahz blah-blahzblah!z"Blah Blah Blah"zblah-de-blahzblah?zblah!!!zblah...zBlah.zblah;zblah, Blah, BLAH!zBlah!!!)czintellectual capitalzmarket segment� flattening�regroup�platformzclient-basedz long-termr �quality vectorzout of the loop� implement� streamlinez cost-centered�phase�synergy� synergize�interactive� facilitate�appropriate�goal-setting� empoweringzlow-risk high-yieldzpeel the onion�goal�downsizez result-driven� conceptualize�multidisciplinary�gap analysis� dysfunctional� networking�knowledge managementr� �mastery learning� communicationzreal-estate� quarterly�scalable�Total Quality Management� best of breed�nimble�monetize� benchmark�hardballzclient-centeredzvision statement�empowermentzlean & mean�credibility�synergisticzbackward-compatibler� zstretch the envelopez bleeding edger� � motivationz best practicer� �implementationr� � undefined�disintermediate�mindset� architectr� �morale� objective� projection�contributionr �go the extra miler+ zworld classzreal estaterw r� r rv r� r� �recognition�quality�scenariozperformance based�solutioningr� r� rz r� zexperiencing slippager� z high priority�process�ethicalzvalue-addedrx zre-factoringzre-brandingzembracing change)L� Starfleet�Klingon�Romulan� Cardassian�Vulcan�BenzitezIKV Paghzemergency transponderzUnited Federation of Planets�BolianzK'Vort Class Bird-of-PreyzUSS EnterprisezUSS IntrepidzUSS ReliantzUSS VoyagerzStarfleet AcademyzCaptain PicardzCaptain Janewayz Tom Parisz Harry KimzCounsellor TroizLieutenant WorfzLieutenant Commander DatazDr. Beverly CrusherzAdmiral NakamurazIrumodic Syndromez Devron systemzAdmiral Pressmanzasteroid fieldzsensor readings�Binarszdistress signal�shuttlecraftzcloaking devicez shuttle bay 2zDr. PulaskizLwaxana Troi�Pacificaz William Rikerz Chief O'BrianzSoyuz class science vesselzWolf-359zGalaxy class vesselzUtopia Planitia yardszphoton torpedoz Archer IVzquantum flux� spacedock�RisazDeep Space Ninez blood winezquantum torpedoes�holodeckzRomulan Warbird�Betazoid� turboliftz battle bridgezMemory Alphaz...with a phaser!zRomulan ale�Ferrengiz Klingon opera�Quark�wormhole�Bajoran�cruiser�warship� battlecruiserz"Intruder alert!"z scout shipzscience vesselz"Borg Invasion imminent!" z"Abandon ship!"z Red Alert!zwarp-core breechz."All hands abandon ship! This is not a drill!")A�points�picas�leading�kerning�CMYKzoffset litho�typezfont family� typographyz type designer�baselinezwhite-out type�WOB� bicameral�bitmap�blockletter�bleed�margin�body�widow�orphan�cicero�cursive� letterform�sidehead�dingbat�leader�DPIzdrop-cap� paragraph�En�Emz flush leftzleft justifiedzright justified�centered�italiczLatin letterform�ligature� uppercase� lowercase�serifz sans-serif�weightztype foundry�fleuron�folio�gutter� whitespacezhumanist letterform�caption�page�framezragged settingzflush-right�rulezdrop shadows�prepresszspot-colour�duotoneszcolour separationszfour-colour printingzPantone[TM]zservice bureau�imagesetter)YzGood evening ladies and BruceszI want to buy some cheesez You do have some cheese, do you?z3Of course sir, it's a cheese shop sir, we've got...z(discipline?... naked? ... With a melon!?zThe Church Police!!z$There's a dead bishop on the landingz&Would you like a twist of lemming sir?z<"Conquistador Coffee brings a new meaning to the word vomit"zYour lupins pleasez7Crelm Toothpaste, with the miracle ingredient FraudulinzEWell there's the first result and the Silly Party has held Leicester.z0Hello, I would like to buy a fish license pleasez-Look, it's people like you what cause unrest!zAWhen we got home, our Dad would thrash us to sleep with his belt!�LuxuryzGumby Brain SpecialistzMy brain hurts!!!zMy brain hurts too.zHow not to be seenz=In this picture there are 47 people. None of them can be seenz%Mrs Smegma, will you stand up please?zNMr. Nesbitt has learned the first lesson of 'Not Being Seen', not to stand up.zMy hovercraft is full of eelszAh. You have beautiful thighs.zMy nipples explode with delightz;Drop your panties Sir William, I cannot wait 'til lunchtimez#I'm a completely self-taught idiot.z%I always wanted to be a lumberjack!!!zTold you so!! Oh, coitus!!� zNudge nudge?zKnow what I mean!zNudge nudge, nudge nudge?z Say no more!!zhHello, well it's just after 8 o'clock, and time for the penguin on top of your television set to explodezOh, intercourse the penguin!!z)Funny that penguin being there, isn't it?zI wish to register a complaint.z$Now that's what I call a dead parrotzPining for the fjords???z)No, that's not dead, it's ,uhhhh, restingzThis is an ex-parrot!!z#That parrot is definitely deceased.z\No, no, no - it's spelt Raymond Luxury Yach-t, but it's pronounced 'Throatwobbler Mangrove'.z;You're a very silly man and I'm not going to interview you.zZNo Mungo... never kill a customer.And I'd like to conclude by putting my finger up my nosezegg and Spamzegg bacon and Spamzegg bacon sausage and SpamzSpam bacon sausage and Spamz!Spam egg Spam Spam bacon and Spamz6Spam sausage Spam Spam Spam bacon Spam tomato and SpamzSpam Spam Spam egg and Spamz8Spam Spam Spam Spam Spam Spam baked beans Spam Spam SpamzSpam!!zI don't like Spam!!!z=You can't have egg, bacon, Spam and sausage without the Spam!zI'll have your Spam. I Love it!zQI'm having Spam Spam Spam Spam Spam Spam Spam baked beans Spam Spam Spam and Spamz#Have you got anything without Spam?zBThere's Spam egg sausage and Spam, that's not got much Spam in it.z(No one expects the Spanish Inquisition!!z*Our weapon is surprise, surprise and fear!zGet the comfy chair!z�Amongst our weaponry are such diverse elements as: fear, surprise, ruthless efficiency, an almost fanatical devotion to the Pope, and nice red uniforms - Oh damn!z Nobody expects the... Oh bugger!z=What swims in the sea and gets caught in nets? Henri Bergson?z3Goats. Underwater goats with snorkels and flippers?zA buffalo with an aqualung?z1Dinsdale was a looney, but he was a happy looney.z Dinsdale!!z+The 127th Upper-Class Twit of the Year ShowzWhat a great Twit!z2thought by many to be this year's outstanding twitzJ...and there's a big crowd here today to see these prize idiots in action.z+And now for something completely different.zStop that, it's sillyzKWe interrupt this program to annoy you and make things generally irritatingzQThis depraved and degrading spectacle is going to stop right now, do you hear me?zStop right there!z?This is absolutely disgusting and I'm not going to stand for itzFI object to all this sex on the television. I mean, I keep falling offz/Right! Stop that, it's silly. Very silly indeedzVery silly indeedzLemon curry?zAAnd now for something completely different, a man with 3 buttocksz+I've heard of unisex, but I've never had itz*That's the end, stop the program! Stop it!)+z%To characterize a linguistic level L,zOn the other hand,zThis suggests thatzIt appears thatzFurthermore,z9We will bring evidence in favor of the following thesis: z.To provide a constituent structure for T(Z,K),zFrom C1, it follows thatz^For any transformation which is sufficiently diversified in application to be of any interest,zAnalogously,zClearly,z Note thatz Of course,zSuppose, for instance, that�ThuszWith this clarification,zConversely,zWe have already seen thatz2By combining adjunctions and certain deformations,zDI suggested that these results would follow from the assumption thatzTIf the position of the trace in (99c) were only relatively inaccessible to movement,z.However, this assumption is not correct, sincez\Comparing these examples with their parasitic gap counterparts in (96) and (97), we see thatz8In the discussion of resumptive pronouns following (81),zSo far,z Nevertheless,zFor one thing,z!Summarizing, then, we assume thatz3A consequence of the approach just outlined is thatzPresumably,zOn our assumptions,zIt may be, then, thatz'It must be emphasized, once again, thatzLet us continue to suppose thatzNotice, incidentally, thatz9A majority of informed linguistic specialists agree thatz@There is also a different approach to the [unification] problem,zHThis approach divorces the cognitive sciences from a biological setting,zOThe approach relies on the "Turing Test," devised by mathematician Alan Turing,zAdopting this approach,z8There is no fact, no meaningful question to be answered,zIAnother superficial similarity is the interest in simulation of behavior,zbA lot of sophistication has been developed about the utilization of machines for complex purposes,)z&the notion of level of grammaticalnessz1a case of semigrammaticalness of a different sortz5most of the methodological work in modern linguisticszFa subset of English sentences interesting on quite independent groundsz9the natural general principle that will subsume this casez0an important property of these three types of ECz!any associated supporting elementzZthe appearance of parasitic gaps in domains relatively inaccessible to ordinary extractionz)the speaker-hearer's linguistic intuitionz+the descriptive power of the base componentz"the earlier discussion of deviancez:this analysis of a formative as a pair of sets of featuresz0this selectionally introduced contextual featurez a descriptively adequate grammarzCthe fundamental error of regarding functional notions as categorialzrelational informationz%the systematic use of complex symbolsz2the theory of syntactic features developed earlier)z)can be defined in such a way as to impose�delimitszsuffices to account forzcannot be arbitrary inzis not subject tozdoes not readily toleratezraises serious doubts aboutzis not quite equivalent toz does not affect the structure ofz+may remedy and, at the same time, eliminatez&is not to be considered in determiningzis to be regarded aszis unspecified with respect tozis, apparently, determined byz+is necessary to impose an interpretation onz(appears to correlate rather closely withzis rather different from)z0problems of phonemic and morphological analysis.zaa corpus of utterance tokens upon which conformity has been defined by the paired utterance test.z(the traditional practice of grammarians.z\the levels of acceptability from fairly high (e.g. (99a)) to virtual gibberish (e.g. (98d)).zGa stipulation to place the constructions into these various categories.za descriptive fact.za parasitic gap construction.z9the extended c-command discussed in connection with (34).zKthe ultimate standard that determines the accuracy of any proposed grammar.z2the system of base rules exclusive of the lexicon.z5irrelevant intervening contexts in selectional rules.z;nondistinctness in the sense of distinctive feature theory.z8a general convention regarding the forms of the grammar.zan abstract underlying order.z)an important distinction in language use.z_the requirement that branching is not tolerated within the dominance scope of a complex symbol.z-the strong generative capacity of the theory.�H c �J � dd l }|� | |� � S # | cY S xY w)N� )�textwrap�fill)�text�line_lengthr� s �:/usr/lib/python3/dist-packages/reportlab/lib/randomtext.py� format_wisdomr� & s6 � �������}�}�T�;�/�/�/���������s � �"� c � � t | t � � st t � � S dd l}g }g }g }t | � � D ]w}t t t t fD ].} |j |� � }||vrn�|� |� � �/|� d� |� � � � |}g }�xt d� |� � � � S )Nr� r� � z ) � isinstance�intr� �__doc__�random�range�leadins�subjects�verbs�objects�choice�append�join)�timesr� � prevparts�newparts�output�i�partlist�parts r� �chomskyr - s� � ��e�S�!�!� &��W�%�%�%��M�M�M��I��H� �F� �5�\�\� � �� �(�E�7�;� "� "�H� �$�v�}�X�.�.���y�(�(�� � �O�O�D�!�!�!�!�� � �c�h�h�x�(�(�)�)�)�� ��������6�*�*�+�+�+� r� )� rl_configNc �4 � e Zd Zddedej z fd�Zd� ZdS )�RLMonkeyPatchRandomNr� c � � ||� � }||k rt d� � �|�P|dk r;||k r| � |� � S || � � � |z � � S t d� � � ||� � }||k rt d� � �||z }|dk rY|dk rS||k r! ||| � |� � z � � S || || � � � |z � � z � � S |dk rt d|||fz � � � ||� � } | |k rt d� � �| dk r|| z dz | z } n!| dk r|| z dz | z } nt d � � �| dk rt d� � �| |k r|| | � | � � z z S || || � � � | z � � z z S ) z�Choose a random item from range(start, stop[, step]). This fixes the problem with randint() which includes the endpoint; in Python this is usually not what you want. z!non-integer arg 1 for randrange()Nr� zempty range for randrange()z non-integer stop for randrange()r� z'empty range for randrange() (%d,%d, %d)z non-integer step for randrange()zzero step for randrange())� ValueError� _randbelowr� )�self�start�stop�step�_int� _maxwidth�istart�istop�width�istep�ns r� � randrangezRLMonkeyPatchRandom.randrangeE s � � �T�%�[�[�F����� �!D�E�E�E��|��A�:�:���*�*�#���v�6�6�6��4���� � �� 6�7�7�7� �!>�?�?�?� �D��J�J�E���}�}� �!C�D�D�D��F�N�E��q�y�y�U�Q�Y�Y� �I�%�%��4������)?�)?� ?�@�@�@��t�F�T�T�$�+�+�-�-��*=�%>�%>�>�?�?�?��q�y�y� �!J�f�V[�]b�Mc�!c�d�d�d� �D��J�J�E���}�}� �!C�D�D�D��q�y�y��U�]�Q�&�5�0��������U�]�Q�&�5�0��� �!<�=�=�=��A�v�v� �!>�?�?�?��I�~�~���d�o�o�a�&8�&8� 8�8�8��E�$�$�t�{�{�}�}�q�'8�"9�"9�9�9�9r c �p � |t | � � � t |� � z � � S )z2Choose a random element from a non-empty sequence.)r� r� �len)r �seqs r� r zRLMonkeyPatchRandom.choice� s( � ��s�4�;�;�=�=�3�s�8�8�3�4�4�5�5r )�__name__� __module__�__qualname__r� r� �BPFr! r � r r� r r D sG � � � � � �(,�1�3�!�V�Z�-� = :� = :� = :� = :�| 6� 6� 6� 6� 6r r �_randoml �H> � c � � t | � � t d� � k rv| � � � dk rt |� � S | � � � dv r't � � | � � � } nt d| z � � �ddlm}m} | }d}t |d|� � � � D ]N}|dz }t |d d � � � � D ](} |dd� � dk r ||� � }nd}|d z |z }�)|dz }�O|S )Nr� r )�STARTUP� COMPUTERSrq �BUZZWORD�STARTREK�PRINTING�PYTHONzUnknown theme "%s"r� )�randintr r� rp � � � �blahr� z. ) r� �lowerr �upper�globalsr r� r3 r r� ) �theme� sentencesr3 r �RANDOMWORDSr � sentenceno�wordno�words r� � randomTextrA � s3 � ��E�{�{�D��H�H����;�;�=�=�)�#�#�G�I�,>�,>�%>� �[�[�]�]�f� f� f��I�I�e�k�k�m�m�,�E�E��1�E�9�:�:�:�&�&�&�&�&�&�&�&��K� �F��G�G�A�i�0�0�1�1� � � ��&����G�G�B�r�N�N�+�+� (� (�F��w�q��|�|�Q����v�k�*�*������c�\�4�'�F�F�������Mr �__main__z*Usage: randomtext.py [theme [#sentences]] zK theme in chomsky|STARTUP|COMPUTERS|BLAH|BUZZWORD|STARTREK|PRINTING|PYTHON )r� )r� )&�__version__r� r- r. rq r/ r0 r1 r2 r r r r r� r � reportlabr � invariantr� �Randomr r! r �_inst�getattrr* �seedrA r% �sys�argv�popr; r� r< �print�stderr�writer) r r� �<module>rP s� �� �� ��6E� E� E�� 0� 0� 0� �8A� A� A�� ;� ;� ;��:X� X� X��&4� 4� 4��. g� . g� . g��^, � , � , ��\� � ��*� � ��(� � ��(� � � �,� ,� ,� ,�&