.happydoc.ndiff.py :  » Development » HappyDoc » HappyDoc3-r3_1 » happydoclib » docset » docset_TAL » TAL » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Development » HappyDoc 
HappyDoc » HappyDoc3 r3_1 » happydoclib » docset » docset_TAL » TAL » .happydoc.ndiff.py
(S'a22069b7b0c49c1c958fd11b2a6f4e12'
p1
(ihappydoclib.parseinfo.moduleinfo
ModuleInfo
p2
(dp3
S'_namespaces'
p4
((dp5
S'SequenceMatcher'
p6
(ihappydoclib.parseinfo.classinfo
ClassInfo
p7
(dp8
g4
((dp9
(dp10
S'ratio'
p11
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p12
(dp13
g4
((dp14
(dp15
tp16
sS'_exception_info'
p17
(dp18
sS'_parameter_names'
p19
(S'self'
p20
tp21
sS'_parameter_info'
p22
(dp23
g20
(NNNtp24
ssS'_filename'
p25
S'../HappyDoc3-r3_1/happydoclib/docset/docset_TAL/TAL/ndiff.py'
p26
sS'_docstring'
p27
S"Return a measure of the sequences' similarity (float in [0,1]).\n\n        Where T is the total number of elements in both sequences, and\n        M is the number of matches, this is 2*M / T.\n        Note that this is 1 if the sequences are identical, and 0 if\n        they have nothing in common.\n        "
p28
sS'_name'
p29
g11
sS'_parent'
p30
g7
sS'_comment_info'
p31
(dp32
(S'fcompare'
tp33
S' open two files & spray the diff to stdout; return false iff a problem\n'
p34
s(S'fopen'
tp35
S" open a file & return the file object; gripe and return 0 if it\n couldn't be opened\n"
p36
s(S'SequenceMatcher'
S'__init__'
tp37
S' Members:\n a\n      first sequence\n b\n      second sequence; differences are computed as "what do\n      we need to do to \'a\' to change it into \'b\'?"\n b2j\n      for x in b, b2j[x] is a list of the indices (into b)\n      at which x appears; junk elements do not appear\n b2jhas\n      b2j.has_key\n fullbcount\n      for x in b, fullbcount[x] == the number of times x\n      appears in b; only materialized if really needed (used\n      only for computing quick_ratio())\n matching_blocks\n      a list of (i, j, k) triples, where a[i:i+k] == b[j:j+k];\n      ascending & non-overlapping in i and in j; terminated by\n      a dummy (len(a), len(b), 0) sentinel\n opcodes\n      a list of (tag, i1, i2, j1, j2) tuples, where tag is\n      one of\n          \'replace\'   a[i1:i2] should be replaced by b[j1:j2]\n          \'delete\'    a[i1:i2] should be deleted\n          \'insert\'    b[j1:j2] should be inserted\n          \'equal\'     a[i1:i2] == b[j1:j2]\n isjunk\n      a user-supplied function taking a sequence element and\n      returning true iff the element is "junk" -- this has\n      subtle but helpful effects on the algorithm, which I\'ll\n      get around to writing up someday <0.9 wink>.\n      DON\'T USE!  Only __chain_b uses this.  Use isbjunk.\n isbjunk\n      for x in b, isbjunk(x) == isjunk(x) but much faster;\n      it\'s really the has_key method of a hidden dict.\n      DOES NOT WORK for x in a!\n'
p38
s(S'dump'
tp39
S' meant for dumping lines\n'
p40
ssS'_configuration_values'
p41
(dp42
sS'_class_info'
p43
g14
sS'_function_info'
p44
g15
sS'_comments'
p45
S''
sbsS'get_matching_blocks'
p46
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p47
(dp48
g4
((dp49
(dp50
tp51
sg17
(dp52
sg19
(S'self'
p53
tp54
sg22
(dp55
g53
(NNNtp56
ssg25
g26
sg27
S''
sg29
g46
sg30
g7
sg31
g32
sg41
(dp57
sg43
g49
sg44
g50
sg45
S''
sbsS'set_seq1'
p58
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p59
(dp60
g4
((dp61
(dp62
tp63
sg17
(dp64
sg19
(S'self'
p65
S'a'
tp66
sg22
(dp67
S'a'
(NNNtp68
sg65
(NNNtp69
ssg25
g26
sg27
S''
sg29
g58
sg30
g7
sg31
g32
sg41
(dp70
sg43
g61
sg44
g62
sg45
S''
sbsS'set_seq2'
p71
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p72
(dp73
g4
((dp74
(dp75
tp76
sg17
(dp77
sg19
(S'self'
p78
S'b'
tp79
sg22
(dp80
g78
(NNNtp81
sS'b'
(NNNtp82
ssg25
g26
sg27
S''
sg29
g71
sg30
g7
sg31
g32
sg41
(dp83
sg43
g74
sg44
g75
sg45
S''
sbsS'__chain_b'
p84
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p85
(dp86
g4
((dp87
(dp88
tp89
sg17
(dp90
sg19
(S'self'
p91
tp92
sg22
(dp93
g91
(NNNtp94
ssg25
g26
sg27
S''
sg29
g84
sg30
g7
sg31
g32
sg41
(dp95
sg43
g87
sg44
g88
sg45
S''
sbsS'quick_ratio'
p96
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p97
(dp98
g4
((dp99
(dp100
tp101
sg17
(dp102
sg19
(S'self'
p103
tp104
sg22
(dp105
g103
(NNNtp106
ssg25
g26
sg27
S'Return an upper bound on ratio() relatively quickly.'
p107
sg29
g96
sg30
g7
sg31
g32
sg41
(dp108
sg43
g99
sg44
g100
sg45
S''
sbsS'get_opcodes'
p109
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p110
(dp111
g4
((dp112
(dp113
tp114
sg17
(dp115
sg19
(S'self'
p116
tp117
sg22
(dp118
g116
(NNNtp119
ssg25
g26
sg27
S''
sg29
g109
sg30
g7
sg31
g32
sg41
(dp120
sg43
g112
sg44
g113
sg45
S''
sbsS'__helper'
p121
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p122
(dp123
g4
((dp124
(dp125
tp126
sg17
(dp127
sg19
(S'self'
p128
S'alo'
p129
S'ahi'
p130
S'blo'
p131
S'bhi'
p132
S'answer'
p133
tp134
sg22
(dp135
g132
(NNNtp136
sg129
(NNNtp137
sg128
(NNNtp138
sg130
(NNNtp139
sg131
(NNNtp140
sg133
(NNNtp141
ssg25
g26
sg27
S''
sg29
g121
sg30
g7
sg31
g32
sg41
(dp142
sg43
g124
sg44
g125
sg45
S''
sbsS'real_quick_ratio'
p143
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p144
(dp145
g4
((dp146
(dp147
tp148
sg17
(dp149
sg19
(S'self'
p150
tp151
sg22
(dp152
g150
(NNNtp153
ssg25
g26
sg27
S'Return an upper bound on ratio() very quickly'
p154
sg29
g143
sg30
g7
sg31
g32
sg41
(dp155
sg43
g146
sg44
g147
sg45
S''
sbsS'find_longest_match'
p156
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p157
(dp158
g4
((dp159
(dp160
tp161
sg17
(dp162
sg19
(S'self'
p163
S'alo'
p164
S'ahi'
p165
S'blo'
p166
S'bhi'
p167
tp168
sg22
(dp169
g167
(NNNtp170
sg164
(NNNtp171
sg163
(NNNtp172
sg165
(NNNtp173
sg166
(NNNtp174
ssg25
g26
sg27
S'Find longest matching block in a[alo:ahi] and b[blo:bhi].\n\n        If isjunk is not defined:\n\n        Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where\n            alo <= i <= i+k <= ahi\n            blo <= j <= j+k <= bhi\n        and for all (i\',j\',k\') meeting those conditions,\n            k >= k\'\n            i <= i\'\n            and if i == i\', j <= j\'\n        In other words, of all maximal matching blocks, return one\n        that starts earliest in a, and of all those maximal matching\n        blocks that start earliest in a, return the one that starts\n        earliest in b.\n\n        If isjunk is defined, first the longest matching block is\n        determined as above, but with the additional restriction that\n        no junk element appears in the block.  Then that block is\n        extended as far as possible by matching (only) junk elements on\n        both sides.  So the resulting block never matches on junk except\n        as identical junk happens to be adjacent to an "interesting"\n        match.\n\n        If no blocks match, return (alo, blo, 0).\n        '
p175
sg29
g156
sg30
g7
sg31
g32
sg41
(dp176
sg43
g159
sg44
g160
sg45
S''
sbsS'set_seqs'
p177
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p178
(dp179
g4
((dp180
(dp181
tp182
sg17
(dp183
sg19
(S'self'
p184
S'a'
S'b'
tp185
sg22
(dp186
S'a'
(NNNtp187
sg184
(NNNtp188
sS'b'
(NNNtp189
ssg25
g26
sg27
S''
sg29
g177
sg30
g7
sg31
g32
sg41
(dp190
sg43
g180
sg44
g181
sg45
S''
sbsS'__init__'
p191
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p192
(dp193
g4
((dp194
(dp195
tp196
sg17
(dp197
sg19
(S'self'
p198
S'isjunk'
p199
S'a'
S'b'
tp200
sg22
(dp201
g199
(I1
S'None'
Ntp202
sS'a'
(I1
S"''"
Ntp203
sg198
(NNNtp204
sS'b'
(I1
S"''"
Ntp205
ssg25
g26
sg27
S''
sg29
g191
sg30
g7
sg31
g32
sg41
(dp206
sg43
g194
sg44
g195
sg45
g38
sbstp207
sg25
g26
sg27
S''
sS'_class_member_info'
p208
(lp209
sg29
g6
sg30
g2
sg31
g32
sS'_base_class_info'
p210
(lp211
sg41
(dp212
sg43
g9
sg44
g10
sg45
S''
sbs(dp213
S'IS_CHARACTER_JUNK'
p214
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p215
(dp216
g4
((dp217
(dp218
tp219
sg17
(dp220
sg19
(S'ch'
p221
S'ws'
p222
tp223
sg22
(dp224
g221
(NNNtp225
sg222
(I1
S'" \\t"'
Ntp226
ssg25
g26
sg27
S''
sg29
g214
sg30
g2
sg31
g32
sg41
(dp227
sg43
g217
sg44
g218
sg45
S''
sbsS'printq'
p228
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p229
(dp230
g4
((dp231
(dp232
tp233
sg17
(dp234
sg19
(S'aline'
p235
S'bline'
p236
S'atags'
p237
S'btags'
p238
tp239
sg22
(dp240
g238
(NNNtp241
sg236
(NNNtp242
sg235
(NNNtp243
sg237
(NNNtp244
ssg25
g26
sg27
S''
sg29
g228
sg30
g2
sg31
g32
sg41
(dp245
sg43
g231
sg44
g232
sg45
S''
sbsS'main'
p246
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p247
(dp248
g4
((dp249
(dp250
tp251
sg17
(dp252
sg19
(S'args'
p253
tp254
sg22
(dp255
g253
(NNNtp256
ssg25
g26
sg27
S''
sg29
g246
sg30
g2
sg31
g32
sg41
(dp257
sg43
g249
sg44
g250
sg45
S''
sbsS'dump'
p258
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p259
(dp260
g4
((dp261
(dp262
tp263
sg17
(dp264
sg19
(S'tag'
p265
S'x'
S'lo'
p266
S'hi'
p267
tp268
sg22
(dp269
S'x'
(NNNtp270
sg267
(NNNtp271
sg265
(NNNtp272
sg266
(NNNtp273
ssg25
g26
sg27
S''
sg29
g258
sg30
g2
sg31
g32
sg41
(dp274
sg43
g261
sg44
g262
sg45
g40
sbsS'fancy_helper'
p275
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p276
(dp277
g4
((dp278
(dp279
tp280
sg17
(dp281
sg19
(S'a'
S'alo'
p282
S'ahi'
p283
S'b'
S'blo'
p284
S'bhi'
p285
tp286
sg22
(dp287
S'a'
(NNNtp288
sg282
(NNNtp289
sg285
(NNNtp290
sS'b'
(NNNtp291
sg283
(NNNtp292
sg284
(NNNtp293
ssg25
g26
sg27
S''
sg29
g275
sg30
g2
sg31
g32
sg41
(dp294
sg43
g278
sg44
g279
sg45
S''
sbsS'restore'
p295
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p296
(dp297
g4
((dp298
(dp299
tp300
sg17
(dp301
sg19
(S'which'
p302
tp303
sg22
(dp304
g302
(NNNtp305
ssg25
g26
sg27
S''
sg29
g295
sg30
g2
sg31
g32
sg41
(dp306
sg43
g298
sg44
g299
sg45
S''
sbsS'fcompare'
p307
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p308
(dp309
g4
((dp310
(dp311
tp312
sg17
(dp313
S"ValueError, 'unknown tag ' + ` tag `"
p314
Nssg19
(S'f1name'
p315
S'f2name'
p316
tp317
sg22
(dp318
g315
(NNNtp319
sg316
(NNNtp320
ssg25
g26
sg27
S''
sg29
g307
sg30
g2
sg31
g32
sg41
(dp321
sg43
g310
sg44
g311
sg45
g34
sbsS'fail'
p322
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p323
(dp324
g4
((dp325
(dp326
tp327
sg17
(dp328
sg19
(S'msg'
p329
tp330
sg22
(dp331
g329
(NNNtp332
ssg25
g26
sg27
S''
sg29
g322
sg30
g2
sg31
g32
sg41
(dp333
sg43
g325
sg44
g326
sg45
S''
sbsS'IS_LINE_JUNK'
p334
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p335
(dp336
g4
((dp337
(dp338
tp339
sg17
(dp340
sg19
(S'line'
p341
S'pat'
p342
tp343
sg22
(dp344
g341
(NNNtp345
sg342
(I1
S're.compile( r"\\s*#?\\s*$" ).match'
Ntp346
ssg25
g26
sg27
S''
sg29
g334
sg30
g2
sg31
g32
sg41
(dp347
sg43
g337
sg44
g338
sg45
S''
sbsS'count_leading'
p348
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p349
(dp350
g4
((dp351
(dp352
tp353
sg17
(dp354
sg19
(S'line'
p355
S'ch'
p356
tp357
sg22
(dp358
g355
(NNNtp359
sg356
(NNNtp360
ssg25
g26
sg27
S''
sg29
g348
sg30
g2
sg31
g32
sg41
(dp361
sg43
g351
sg44
g352
sg45
S''
sbsS'plain_replace'
p362
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p363
(dp364
g4
((dp365
(dp366
tp367
sg17
(dp368
sg19
(S'a'
S'alo'
p369
S'ahi'
p370
S'b'
S'blo'
p371
S'bhi'
p372
tp373
sg22
(dp374
S'a'
(NNNtp375
sg369
(NNNtp376
sg372
(NNNtp377
sS'b'
(NNNtp378
sg370
(NNNtp379
sg371
(NNNtp380
ssg25
g26
sg27
S''
sg29
g362
sg30
g2
sg31
g32
sg41
(dp381
sg43
g365
sg44
g366
sg45
S''
sbsS'fopen'
p382
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p383
(dp384
g4
((dp385
(dp386
tp387
sg17
(dp388
sg19
(S'fname'
p389
tp390
sg22
(dp391
g389
(NNNtp392
ssg25
g26
sg27
S''
sg29
g382
sg30
g2
sg31
g32
sg41
(dp393
sg43
g385
sg44
g386
sg45
g36
sbsS'fancy_replace'
p394
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p395
(dp396
g4
((dp397
(dp398
tp399
sg17
(dp400
S"ValueError, 'unknown tag ' + ` tag `"
p401
Nssg19
(S'a'
S'alo'
p402
S'ahi'
p403
S'b'
S'blo'
p404
S'bhi'
p405
tp406
sg22
(dp407
S'a'
(NNNtp408
sg402
(NNNtp409
sg405
(NNNtp410
sS'b'
(NNNtp411
sg403
(NNNtp412
sg404
(NNNtp413
ssg25
g26
sg27
S''
sg29
g394
sg30
g2
sg31
g32
sg41
(dp414
sg43
g397
sg44
g398
sg45
S''
sbstp415
sS'_import_info'
p416
(ihappydoclib.parseinfo.imports
ImportInfo
p417
(dp418
S'_named_imports'
p419
(dp420
sS'_straight_imports'
p421
(lp422
sbsg25
g26
sg27
S'"""ndiff [-q] file1 file2\n    or\nndiff (-r1 | -r2) < ndiff_output > file1_or_file2\n\nPrint a human-friendly file difference report to stdout.  Both inter-\nand intra-line differences are noted.  In the second form, recreate file1\n(-r1) or file2 (-r2) on stdout, from an ndiff report on stdin.\n\nIn the first form, if -q ("quiet") is not specified, the first two lines\nof output are\n\n-: file1\n+: file2\n\nEach remaining line begins with a two-letter code:\n\n    "- "    line unique to file1\n    "+ "    line unique to file2\n    "  "    line common to both files\n    "? "    line not present in either input file\n\nLines beginning with "? " attempt to guide the eye to intraline\ndifferences, and were not present in either input file.  These lines can be\nconfusing if the source files contain tab characters.\n\nThe first file can be recovered by retaining only lines that begin with\n"  " or "- ", and deleting those 2-character prefixes; use ndiff with -r1.\n\nThe second file can be recovered similarly, but by retaining only "  " and\n"+ " lines; use ndiff with -r2; or, on Unix, the second file can be\nrecovered by piping the output through\n\n    sed -n \'/^[+ ] /s/^..//p\'\n\nSee module comments for details and programmatic interface.\n"""'
p423
sg29
S'ndiff'
p424
sg30
Nsg31
g32
sg41
(dp425
S'include_comments'
p426
I1
sS'cacheFilePrefix'
p427
S'.happydoc.'
p428
sS'useCache'
p429
I1
sS'docStringFormat'
p430
S'StructuredText'
p431
ssg43
g5
sg44
g213
sg45
S''
sbt.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.