rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
def revert_use_makebox(document): " Deletes use_makebox option of boxes " h = 0 while 1: h = find_token(document.body, 'use_makebox', 0) if h == -1: return del document.body[h] h += 1
def revert_makebox(document): " Convert \\makebox to TeX code " i = 0 while 1: # only revert frameless boxes without an inner box i = find_token(document.body, '\\begin_inset Box Frameless', i) if i == -1: # remove the option use_makebox revert_use_makebox(document) return z = find_end_of_inset(document.body, i) if z == -1: document.warning("Malformed LyX document: Can't find end of box inset.") return j = find_token(document.body, 'use_makebox 1', i) # assure we found the makebox of the current box if j < z and j != -1: y = find_token(document.body, "\\begin_layout", i) if y > z or y == -1: document.warning("Malformed LyX document: Can't find layout in box.") return # remove the \end_layout \end_inset pair document.body[z - 2:z + 1] = put_cmd_in_ert("}") # determine the alignment k = find_token(document.body, 'hor_pos', j - 4) align = document.body[k][9] # determine the width l = find_token(document.body, 'width "', j + 1) length = document.body[l][7:] # remove trailing '"' length = length[:-1] length = latex_length(length)[1] subst = "\\makebox[" + length + "][" \ + align + "]{" document.body[i:y + 1] = put_cmd_in_ert(subst) i += 1
9d5b41e8fc107c294ca7fdbac0c3da4d8a9b7f9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/9d5b41e8fc107c294ca7fdbac0c3da4d8a9b7f9b/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 6540, 2147, 12, 5457, 4672, 315, 4037, 1736, 6540, 2147, 358, 28602, 60, 981, 315, 277, 273, 374, 1323, 404, 30, 468, 1338, 15226, 21799, 12617, 14356, 2887, 392, 3443, 3919, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718, 10086, 67, 267, 542, 8549, 478, 1940, 12617, 2187, 277, 13, 309, 277, 422, 300, 21, 30, 468, 1206, 326, 1456, 999, 67, 6540, 2147, 15226, 67, 1202, 67, 6540, 2147, 12, 5457, 13, 327, 998, 273, 1104, 67, 409, 67, 792, 67, 267, 542, 12, 5457, 18, 3432, 16, 277, 13, 309, 998, 422, 300, 21, 30, 1668, 18, 8551, 2932, 18695, 511, 93, 60, 1668, 30, 4480, 1404, 1104, 679, 434, 3919, 316, 542, 1199, 13, 327, 525, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 296, 1202, 67, 6540, 2147, 404, 2187, 277, 13, 468, 1551, 594, 732, 1392, 326, 1221, 2147, 434, 326, 783, 3919, 309, 525, 411, 998, 471, 525, 480, 300, 21, 30, 677, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 8422, 10086, 67, 6741, 3113, 277, 13, 309, 677, 405, 998, 578, 677, 422, 300, 21, 30, 1668, 18, 8551, 2932, 18695, 511, 93, 60, 1668, 30, 4480, 1404, 1104, 3511, 316, 3919, 1199, 13, 327, 468, 1206, 326, 521, 409, 67, 6741, 521, 409, 67, 267, 542, 3082, 1668, 18, 3432, 63, 94, 300, 576, 30, 94, 397, 404, 65, 273, 1378, 67, 4172, 67, 267, 67, 1051, 2932, 1532, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 6540, 2147, 12, 5457, 4672, 315, 4037, 1736, 6540, 2147, 358, 28602, 60, 981, 315, 277, 273, 374, 1323, 404, 30, 468, 1338, 15226, 21799, 12617, 14356, 2887, 392, 3443, 3919, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718, 10086, 67, 267, 542, 8549, 478, 1940, 12617, 2187, 277, 13, 309, 277, 422, 300, 21, 30, 468, 1206, 326, 1456, 999, 67, 6540, 2147, 15226, 67, 1202, 67, 6540, 2147, 12, 5457, 13, 327, 998, 273, 1104, 67, 409, 67, 792, 67, 267, 542, 12, 5457, 18, 3432, 16, 277, 13, 309, 998, 422, 300, 21, 30, 1668, 18, 8551, 2932, 18695, 511, 93, 60, 1668, 30, 4480, 1404, 1104, 679, 434, 3919, 2 ]
deps, cacheModTime = cache.readmulti(cacheId, self.path)
classInfo, cacheModTime = self._getClassCache() deps = classInfo[cacheId] if cacheId in classInfo else None
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._classesObj[dep.name] if cacheModTime < classObj.m_time(): console.debug("Invalidating dep cache for %s, as %s is newer" % (self.id, classObj.id)) return False return True
a1279da621ac20b7821dec8ec07f0f8f6cdff441 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/a1279da621ac20b7821dec8ec07f0f8f6cdff441/Class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30442, 14430, 4704, 42, 1955, 12, 14877, 3823, 16, 1247, 1739, 950, 4672, 309, 1247, 1739, 950, 353, 599, 30, 225, 468, 2660, 30, 333, 848, 4551, 1338, 3334, 598, 279, 4379, 18, 3917, 2493, 563, 327, 1083, 364, 5993, 316, 8740, 3823, 9614, 945, 11929, 30, 309, 5993, 18, 2293, 280, 480, 365, 18, 350, 30, 468, 333, 1703, 5849, 3059, 279, 5904, 15940, 309, 5993, 18, 529, 316, 365, 6315, 4701, 2675, 30, 667, 2675, 273, 365, 6315, 4701, 2675, 63, 15037, 18, 529, 65, 309, 1247, 1739, 950, 411, 667, 2675, 18, 81, 67, 957, 13332, 2983, 18, 4148, 2932, 1941, 1776, 5993, 1247, 364, 738, 87, 16, 487, 738, 87, 353, 16069, 6, 738, 261, 2890, 18, 350, 16, 667, 2675, 18, 350, 3719, 327, 1083, 225, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30442, 14430, 4704, 42, 1955, 12, 14877, 3823, 16, 1247, 1739, 950, 4672, 309, 1247, 1739, 950, 353, 599, 30, 225, 468, 2660, 30, 333, 848, 4551, 1338, 3334, 598, 279, 4379, 18, 3917, 2493, 563, 327, 1083, 364, 5993, 316, 8740, 3823, 9614, 945, 11929, 30, 309, 5993, 18, 2293, 280, 480, 365, 18, 350, 30, 468, 333, 1703, 5849, 3059, 279, 5904, 15940, 309, 5993, 18, 529, 316, 365, 6315, 4701, 2675, 30, 667, 2675, 273, 365, 6315, 4701, 2675, 63, 15037, 18, 529, 65, 309, 1247, 1739, 950, 411, 667, 2675, 18, 81, 67, 957, 13332, 2983, 18, 4148, 2932, 1941, 1776, 5993, 1247, 364, 738, 87, 16, 487, 738, 87, 353, 16069, 6, 738, 2 ]
self.o.assy.modified = 1 for mol in fixmols.values(): if mol.atoms: mol.shakedown() else: mol.kill()
self.o.assy.modified = 1
def modifyDehydrogenate(self): self.status_msg("Dehydrogenating...") from platform import fix_plurals fixmols = {} if self.o.assy.selmols: counta = countm = 0 for m in self.o.assy.selmols: changed = m.Dehydrogenate() # note: this might have removed all atoms from m! Fixed below. if changed: counta += changed countm += 1 fixmols[id(m)] = m ###e In theory, we might have removed an H whose neighbor # is in a different chunk/molecule, which therefore might need a # shakedown... I have not tried to fix that, and I'm not # sure it's a bug (since Dehydrogenate did changeapp on it, # and maybe that's enough -- this needs review). if counta: didwhat = "Dehydrogenate: removed %d atom(s) from %d chunk(s)" \ % (counta, countm) if len(self.o.assy.selmols) > countm: didwhat += \ " (%d selected chunks(s) had no hydrogens)" \ % (len(self.o.assy.selmols) - countm) didwhat = fix_plurals(didwhat) else: didwhat = "Dehydrogenate: selected chunks contain no hydrogens" elif self.o.assy.selatoms: count = 0 for a in self.o.assy.selatoms.values(): ma = a.molecule for atm in list(a.neighbors()) + [a]: #bruce 041018 semantic change: added [a] as well matm = atm.molecule changed = atm.Dehydrogenate() if changed: count += 1 fixmols[id(ma)] = ma # shakedown at most once per mol fixmols[id(matm)] = matm if fixmols: didwhat = \ "Dehydrogenate: removed %d atom(s) from %d chunk(s)" \ % (count, len(fixmols)) didwhat = fix_plurals(didwhat) # Technically, we *should* say ", affected" instead of "from" # since the count includes mols of neighbors of # atoms we removed, not always only mols of atoms we removed. # Since that's rare, we word this assuming it didn't happen. # [#e needs low-pri fix to be accurate in that rare case; # might as well deliver that as a warning, since that case is # also "dangerous" in some sense.] else: didwhat = "Dehydrogenate: no hydrogens bonded to selected atoms" else: didwhat = "Dehydrogenate: nothing selected" if fixmols: self.o.assy.modified = 1 for mol in fixmols.values(): if mol.atoms: mol.shakedown() else: mol.kill() self.w.update() self.status_msg(didwhat) return
a1e9f5e57cd2af68cf70c5ca1c0bc27b35854b68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a1e9f5e57cd2af68cf70c5ca1c0bc27b35854b68/modes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 758, 18112, 24096, 340, 12, 2890, 4672, 365, 18, 2327, 67, 3576, 2932, 758, 18112, 24096, 1776, 7070, 13, 628, 4072, 1930, 2917, 67, 412, 17645, 2917, 81, 3528, 273, 2618, 309, 365, 18, 83, 18, 428, 93, 18, 1786, 81, 3528, 30, 1056, 69, 273, 1056, 81, 273, 374, 364, 312, 316, 365, 18, 83, 18, 428, 93, 18, 1786, 81, 3528, 30, 3550, 273, 312, 18, 758, 18112, 24096, 340, 1435, 468, 4721, 30, 333, 4825, 1240, 3723, 777, 9006, 628, 312, 5, 15038, 5712, 18, 309, 3550, 30, 1056, 69, 1011, 3550, 1056, 81, 1011, 404, 2917, 81, 3528, 63, 350, 12, 81, 25887, 273, 312, 11849, 73, 657, 326, 630, 16, 732, 4825, 1240, 3723, 392, 670, 8272, 10553, 468, 353, 316, 279, 3775, 2441, 19, 81, 10545, 16, 1492, 13526, 4825, 1608, 279, 468, 699, 9477, 995, 2777, 467, 1240, 486, 12928, 358, 2917, 716, 16, 471, 467, 17784, 486, 468, 3071, 518, 1807, 279, 7934, 261, 9256, 1505, 18112, 24096, 340, 5061, 2549, 2910, 603, 518, 16, 468, 471, 6944, 716, 1807, 7304, 1493, 333, 4260, 10725, 2934, 309, 1056, 69, 30, 5061, 23770, 273, 315, 758, 18112, 24096, 340, 30, 3723, 738, 72, 3179, 12, 87, 13, 628, 738, 72, 2441, 12, 87, 2225, 521, 738, 261, 1883, 69, 16, 1056, 81, 13, 309, 562, 12, 2890, 18, 83, 18, 428, 93, 18, 1786, 81, 3528, 13, 405, 1056, 81, 30, 5061, 23770, 1011, 521, 315, 6142, 72, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 758, 18112, 24096, 340, 12, 2890, 4672, 365, 18, 2327, 67, 3576, 2932, 758, 18112, 24096, 1776, 7070, 13, 628, 4072, 1930, 2917, 67, 412, 17645, 2917, 81, 3528, 273, 2618, 309, 365, 18, 83, 18, 428, 93, 18, 1786, 81, 3528, 30, 1056, 69, 273, 1056, 81, 273, 374, 364, 312, 316, 365, 18, 83, 18, 428, 93, 18, 1786, 81, 3528, 30, 3550, 273, 312, 18, 758, 18112, 24096, 340, 1435, 468, 4721, 30, 333, 4825, 1240, 3723, 777, 9006, 628, 312, 5, 15038, 5712, 18, 309, 3550, 30, 1056, 69, 1011, 3550, 1056, 81, 1011, 404, 2917, 81, 3528, 63, 350, 12, 81, 25887, 273, 312, 11849, 73, 657, 326, 630, 16, 732, 4825, 2 ]
def copy(self): """ Returns an instance of Database with default mutable=True. """ new_loc = tmp_filename() + '.db' os.system('cp '+ self.__dblocation__ + ' ' + new_loc) D = SQLDatabase(filename=new_loc, skeleton=copy(self.__skeleton__)) return D def save(self, filename): """ ROBERT : Read the following e.g.'s carefully. You might want to change them before distributing (i.e. os.system('rm '+save_loc)) But this should be a good intro to a bunch of functionality. (I mostly put it in for you). It covers creating a mutable db, saving it and opening it as an immutable db. Then it shows modification and the new awesome show method. (This is my most recent example - the show method is probably better than getting a cursor each time for the doctests so I wanted to put it in since I typically did that the other way -- i.e.: delete_rows method examples). EXAMPLES: sage: from sage.databases.db import DB_HOME sage: save_loc = DB_HOME + 'simon.db' sage: DB = SQLDatabase() sage: DB.create_table('simon',{'a1':{'sql':'bool','primary_key':False}, 'b2':{'sql':'int', 'primary_key':False}}) sage: DB.add_data('simon',[(0,0),(1,1),(1,2)]) sage: DB.save(save_loc) sage: immut = GenericSQLDatabase(save_loc) sage: immut.show('simon') a1 b2 ---------------------------------------- 0 0 1 1 1 2 sage: DB.show('simon') a1 b2 ---------------------------------------- 0 0 1 1 1 2 sage: p = SQLQuery(DB, {'table_name':'simon', 'display_cols':'b2', 'dillhole':['b2','>', 0]}) sage: DB.delete_rows(p) sage: DB.show('simon') a1 b2 ---------------------------------------- 0 0 sage: immut.show('simon') a1 b2 ---------------------------------------- 0 0 1 1 1 2 sage: import os sage: os.system('rm ' + save_loc) """ try: self.__connection__.execute('commit') except: pass os.system('cp ' + self.__dblocation__ + ' ' + filename)
def copy(self): """ Returns an instance of Database with default mutable=True. """ # copy .db file new_loc = tmp_filename() + '.db' os.system('cp '+ self.__dblocation__ + ' ' + new_loc) D = SQLDatabase(filename=new_loc, skeleton=copy(self.__skeleton__)) return D
ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 2860, 392, 791, 434, 5130, 598, 805, 16074, 33, 5510, 18, 3536, 468, 1610, 263, 1966, 585, 394, 67, 1829, 273, 1853, 67, 3459, 1435, 397, 2418, 1966, 11, 1140, 18, 4299, 2668, 4057, 15126, 365, 16186, 1966, 3562, 972, 397, 296, 296, 397, 394, 67, 1829, 13, 463, 273, 3063, 4254, 12, 3459, 33, 2704, 67, 1829, 16, 17761, 33, 3530, 12, 2890, 16186, 7771, 12143, 972, 3719, 327, 463, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 2860, 392, 791, 434, 5130, 598, 805, 16074, 33, 5510, 18, 3536, 468, 1610, 263, 1966, 585, 394, 67, 1829, 273, 1853, 67, 3459, 1435, 397, 2418, 1966, 11, 1140, 18, 4299, 2668, 4057, 15126, 365, 16186, 1966, 3562, 972, 397, 296, 296, 397, 394, 67, 1829, 13, 463, 273, 3063, 4254, 12, 3459, 33, 2704, 67, 1829, 16, 17761, 33, 3530, 12, 2890, 16186, 7771, 12143, 972, 3719, 327, 463, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.discrete: i.quantity = round(fraction) else: i.quantity = fraction
if self.discrete: i.quantity = str(round(fraction)) else: i.quantity = str(fraction)
def setTotal(self, startdate, enddate, quantity): ''' Update the forecast quantity. The logic followed is three-fold: - If one or more forecast entries already exist in the daterange, the quantities of those entries are proportionally rescaled to fit the new quantity. - If no forecast entries exist yet, we create a new set of entries based on the bucket definition of the forecast calendar. This respects the weight ratios as defined in the calendar buckets. - In case no calendar or no calendar buckets can be identified, we simply create a single forecast entry for the specified daterange. ''' # Assure the end date is later than the start date. if startdate > enddate: tmp = startdate startdate = enddate enddate = tmp # Assure the type of the quantity if not isinstance(quantity,Decimal): quantity = Decimal(str(quantity)) # Round the quantity, if discrete flag is on if self.discrete: quantity = quantity.to_integral() # Step 0: Check for forecast entries intersecting with the current daterange startdate = startdate.date() enddate = enddate.date() entries = self.entries.filter(enddate__gt=startdate).filter(startdate__lt=enddate) if entries: # Case 1: Entries already exist in this daterange, which will be rescaled # Case 1, step 1: calculate current quantity and "clip" the existing entries # if required. current = 0 for i in entries: # Calculate the length of this bucket in seconds duration = i.enddate - i.startdate duration = duration.days+86400*duration.seconds if i.startdate == startdate and i.enddate == enddate: # This entry has exactly the same daterange: update the quantity and exit i.quantity = quantity i.save() return elif i.startdate < startdate and i.enddate > enddate: # This bucket starts before the daterange and also ends later. # We need to split the entry in three. # Part one: after our daterange, create a new entry p = i.enddate - enddate q = i.quantity * (p.days+86400*p.seconds) / duration if self.discrete: q = round(q) self.entries.create( \ startdate = enddate, enddate = i.enddate, quantity = q, ).save() # Part two: our date range, create a new entry self.entries.create( \ startdate = startdate, enddate = enddate, quantity = quantity, ).save() # Part three: before our daterange, update the existing entry p = startdate - i.startdate i.enddate = startdate i.quantity = i.quantity * (p.days+86400*p.seconds) / duration if self.discrete: i.quantity = round(i.quantity) i.save() # Done with this case... return elif i.startdate >= startdate and i.enddate <= enddate: # Entry falls completely in the range current += i.quantity elif i.startdate < enddate and i.enddate >= enddate: # This entry starts in the range and ends later. # Split the entry in two. p = i.enddate - enddate fraction = Decimal(i.quantity * (p.days+86400*p.seconds) / duration) current += i.quantity - fraction self.entries.create( \ startdate = i.startdate, enddate = enddate, quantity = i.quantity - fraction, ).save() i.startdate = enddate if self.discrete: i.quantity = round(fraction) else: i.quantity = fraction i.save() elif i.enddate > startdate and i.startdate <= startdate: # This entry ends in the range and starts earlier. # Split the entry in two. p = startdate - i.startdate fraction = Decimal(i.quantity * (p.days+86400*p.seconds) / duration) current += i.quantity - fraction self.entries.create( \ startdate = startdate, enddate = i.enddate, quantity = i.quantity - fraction, ).save() i.enddate = startdate if self.discrete: i.quantity = round(fraction) else: i.quantity = fraction i.save() # Case 1, step 2: Rescale the existing entries # Note that we retrieve an updated set of buckets from the database here... entries = self.entries.filter(enddate__gt=startdate).filter(startdate__lt=enddate) factor = quantity / current if factor == 0: for i in entries: i.delete() elif self.discrete: # Only put integers remainder = 0 for i in entries: q = Decimal(i.quantity * factor + remainder) i.quantity = q.to_integral() remainder = q - i.quantity i.save() else: # No rounding required for i in entries: i.quantity *= factor i.save() else: # Case 2: No intersecting forecast entries exist yet. We use the # calendar buckets to create a new set of forecast entries, respecting # the weight of each bucket. # Note: if the calendar values are updated later on, such changes are # obviously not reflected any more in the forecast entries. cal = self.calendar if cal: entries = cal.buckets.filter(enddate__gt=startdate).filter(startdate__lte=enddate) if entries: # Case 2a: We found calendar buckets # Case 2a, step 1: compute total sum of weight values weights = 0 for i in entries: p = min(i.enddate.date(),enddate) - max(i.startdate.date(),startdate) q = i.enddate.date() - i.startdate.date() weights += i.value * (p.days+86400*p.seconds) / (q.days+86400*q.seconds) # Case 2a, step 2: create a forecast entry for each calendar bucket remainder = Decimal(0) if weights == 0: # No non-zero weight buckets found: the update is infeasible return for i in entries: p = min(i.enddate.date(),enddate) - max(i.startdate.date(),startdate) q = i.enddate.date() - i.startdate.date() q = Decimal(quantity * i.value * (p.days+86400*p.seconds) / (q.days+86400*q.seconds) / weights) if self.discrete: q += remainder k = q.to_integral() remainder = q - k q = k if q > 0: self.entries.create( \ startdate=max(i.startdate.date(),startdate), enddate=min(i.enddate.date(),enddate), quantity=q, ).save() else: # Case 2b: No calendar buckets found at all # Create a new entry for the daterange self.entries.create(startdate=startdate,enddate=enddate,quantity=quantity).save()
be185fc1f8e444a57ca49b9420207c749e3d2f5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8604/be185fc1f8e444a57ca49b9420207c749e3d2f5f/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25015, 12, 2890, 16, 787, 712, 16, 679, 712, 16, 10457, 4672, 9163, 2315, 326, 18763, 10457, 18, 1021, 4058, 10860, 353, 8925, 17, 16007, 30, 300, 971, 1245, 578, 1898, 18763, 3222, 1818, 1005, 316, 326, 1150, 264, 726, 16, 326, 10251, 1961, 434, 5348, 3222, 854, 23279, 1230, 400, 12825, 358, 4845, 326, 394, 10457, 18, 300, 971, 1158, 18763, 3222, 1005, 4671, 16, 732, 752, 279, 394, 444, 434, 3222, 2511, 603, 326, 2783, 2379, 434, 326, 18763, 5686, 18, 1220, 8762, 87, 326, 3119, 25706, 487, 2553, 316, 326, 5686, 9169, 18, 300, 657, 648, 1158, 5686, 578, 1158, 5686, 9169, 848, 506, 9283, 16, 732, 8616, 752, 279, 2202, 18763, 1241, 364, 326, 1269, 1150, 264, 726, 18, 9163, 468, 4725, 594, 326, 679, 1509, 353, 5137, 2353, 326, 787, 1509, 18, 309, 787, 712, 405, 679, 712, 30, 1853, 273, 787, 712, 787, 712, 273, 679, 712, 679, 712, 273, 1853, 468, 4725, 594, 326, 618, 434, 326, 10457, 309, 486, 1549, 12, 16172, 16, 5749, 4672, 10457, 273, 11322, 12, 701, 12, 16172, 3719, 468, 11370, 326, 10457, 16, 309, 20035, 2982, 353, 603, 309, 365, 18, 31937, 30, 10457, 273, 10457, 18, 869, 67, 14970, 23811, 1435, 468, 8693, 374, 30, 2073, 364, 18763, 3222, 9136, 310, 598, 326, 783, 1150, 264, 726, 787, 712, 273, 787, 712, 18, 712, 1435, 679, 712, 273, 679, 712, 18, 712, 1435, 3222, 273, 365, 18, 8219, 18, 2188, 12, 409, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25015, 12, 2890, 16, 787, 712, 16, 679, 712, 16, 10457, 4672, 9163, 2315, 326, 18763, 10457, 18, 1021, 4058, 10860, 353, 8925, 17, 16007, 30, 300, 971, 1245, 578, 1898, 18763, 3222, 1818, 1005, 316, 326, 1150, 264, 726, 16, 326, 10251, 1961, 434, 5348, 3222, 854, 23279, 1230, 400, 12825, 358, 4845, 326, 394, 10457, 18, 300, 971, 1158, 18763, 3222, 1005, 4671, 16, 732, 752, 279, 394, 444, 434, 3222, 2511, 603, 326, 2783, 2379, 434, 326, 18763, 5686, 18, 1220, 8762, 87, 326, 3119, 25706, 487, 2553, 316, 326, 5686, 9169, 18, 300, 657, 648, 1158, 5686, 578, 1158, 5686, 9169, 848, 506, 9283, 16, 732, 8616, 752, 279, 2202, 18763, 1241, 364, 326, 2 ]
if not is_gui_thread(): return Dispatcher(self.recount)(*args)
def recount(self, *args): if not is_gui_thread(): # Re-call in GUI thread return Dispatcher(self.recount)(*args) ci = self.currentIndex() if not ci.isValid(): ci = self.indexAt(QPoint(10, 10)) try: self.model().refresh() except: #Database connection could be closed if an integrity check is happening pass if ci.isValid(): self.scrollTo(ci, QTreeView.PositionAtTop)
5b61e4c95e4db628624ae9268315b5f3732ad040 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/5b61e4c95e4db628624ae9268315b5f3732ad040/tag_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 1883, 12, 2890, 16, 380, 1968, 4672, 309, 486, 353, 67, 20292, 67, 5930, 13332, 468, 868, 17, 1991, 316, 10978, 2650, 327, 16710, 12, 2890, 18, 266, 1883, 21433, 14, 1968, 13, 9039, 273, 365, 18, 2972, 1016, 1435, 309, 486, 9039, 18, 26810, 13332, 9039, 273, 365, 18, 1615, 861, 12, 53, 2148, 12, 2163, 16, 1728, 3719, 775, 30, 365, 18, 2284, 7675, 9144, 1435, 1335, 30, 468, 4254, 1459, 3377, 506, 4375, 309, 392, 24425, 866, 353, 5865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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 1883, 12, 2890, 16, 380, 1968, 4672, 309, 486, 353, 67, 20292, 67, 5930, 13332, 468, 868, 17, 1991, 316, 10978, 2650, 327, 16710, 12, 2890, 18, 266, 1883, 21433, 14, 1968, 13, 9039, 273, 365, 18, 2972, 1016, 1435, 309, 486, 9039, 18, 26810, 13332, 9039, 273, 365, 18, 1615, 861, 12, 53, 2148, 12, 2163, 16, 1728, 3719, 775, 30, 365, 18, 2284, 7675, 9144, 1435, 1335, 30, 468, 4254, 1459, 3377, 506, 4375, 309, 392, 24425, 866, 353, 5865, 310, 1342, 309, 9039, 18, 26810, 13332, 365, 18, 12033, 774, 12, 8450, 16, 2238, 2471, 1767, 18, 2555, 861, 3401, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
corefile = "/var/xen/dump/%s-%s.%s.core" % (this_time, self.info['name_label'], self.domid)
corefile = "%s/%s-%s.%s.core" % (coredir, this_time, self.info['name_label'], self.domid)
def dumpCore(self, corefile = None): """Create a core dump for this domain.
4caa456392974c418522f2e80bc83e991b8b04cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/4caa456392974c418522f2e80bc83e991b8b04cd/XendDomainInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 4670, 12, 2890, 16, 2922, 768, 273, 599, 4672, 3536, 1684, 279, 2922, 4657, 364, 333, 2461, 18, 2, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 4670, 12, 2890, 16, 2922, 768, 273, 599, 4672, 3536, 1684, 279, 2922, 4657, 364, 333, 2461, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bot.start()
try: bot.start() except KeyboardInterrupt: pass
def main(conf): """ Start the bot using a config file. :Parameters: - `conf`: config file location """ CONFIG = ConfigParser() CONFIG.read(conf) # Get the irc network configuration server = CONFIG.get("irc", "server") port = CONFIG.getint("irc", "port") channels = CONFIG.get("irc", "channels").split(",") nick = CONFIG.get("irc", "nick") try: server_pass = CONFIG.get("irc", "server_password") except: server_pass = None try: nick_pass = CONFIG.get("irc", "nick_password") except: nick_pass = None owner = [x.strip() for x in CONFIG.get("irc", "owners").split(",")] # Get the log section folder = CONFIG.get("log", "folder") stylesheet = CONFIG.get("log", "stylesheet") # Get the formation information types = ["join", "kick", "mode", "nick", "part", "pubmsg", "pubnotice", "quit", "topic"] format = {} for type in types: format[type] = CONFIG.get("format", type) bot = LogBot(server, port, server_pass, channels, owner, nick, nick_pass) bot.set_format(folder, format, stylesheet) bot.start()
733c447041daea590404c94df8d5b074aedd2dc3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2050/733c447041daea590404c94df8d5b074aedd2dc3/logbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 3923, 4672, 3536, 3603, 326, 2512, 1450, 279, 642, 585, 18, 225, 294, 2402, 30, 300, 1375, 3923, 68, 30, 642, 585, 2117, 3536, 9128, 273, 25076, 1435, 9128, 18, 896, 12, 3923, 13, 225, 468, 968, 326, 277, 1310, 2483, 1664, 1438, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 3567, 7923, 1756, 273, 9128, 18, 588, 474, 2932, 481, 71, 3113, 315, 655, 7923, 5750, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 9114, 20387, 4939, 2932, 16, 7923, 10909, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 17091, 7923, 775, 30, 565, 1438, 67, 5466, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 3567, 67, 3664, 7923, 1335, 30, 1438, 67, 5466, 273, 599, 775, 30, 565, 10909, 67, 5466, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 17091, 67, 3664, 7923, 1335, 30, 10909, 67, 5466, 273, 599, 3410, 273, 306, 92, 18, 6406, 1435, 364, 619, 316, 9128, 18, 588, 2932, 481, 71, 3113, 315, 995, 414, 20387, 4939, 2932, 16, 7923, 65, 225, 468, 968, 326, 613, 2442, 3009, 273, 9128, 18, 588, 2932, 1330, 3113, 315, 5609, 7923, 13820, 273, 9128, 18, 588, 2932, 1330, 3113, 315, 19403, 7923, 225, 468, 968, 326, 646, 367, 1779, 1953, 273, 8247, 5701, 3113, 315, 79, 1200, 3113, 315, 3188, 3113, 315, 17091, 3113, 315, 2680, 3113, 315, 10174, 3576, 3113, 315, 10174, 20392, 3113, 315, 27176, 3113, 315, 10476, 11929, 740, 273, 2618, 364, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 3923, 4672, 3536, 3603, 326, 2512, 1450, 279, 642, 585, 18, 225, 294, 2402, 30, 300, 1375, 3923, 68, 30, 642, 585, 2117, 3536, 9128, 273, 25076, 1435, 9128, 18, 896, 12, 3923, 13, 225, 468, 968, 326, 277, 1310, 2483, 1664, 1438, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 3567, 7923, 1756, 273, 9128, 18, 588, 474, 2932, 481, 71, 3113, 315, 655, 7923, 5750, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 9114, 20387, 4939, 2932, 16, 7923, 10909, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 17091, 7923, 775, 30, 565, 1438, 67, 5466, 273, 9128, 18, 588, 2932, 481, 71, 3113, 315, 3567, 67, 3664, 7923, 1335, 30, 2 ]
bom_point = sbom_obj.browse(cr, uid, [bom_id])[0]
bom_point = bom_obj.browse(cr, uid, [bom_id])[0]
def change_prod_qty(self, cr, uid, ids, context): """ Changes the Quantity of Product. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: List of IDs selected @param context: A standard dictionary @return: """ record_id = context and context.get('active_id',False) assert record_id, _('Active Id is not found') prod_obj = self.pool.get('mrp.production') product_lines_obj = self.pool.get('mrp.production.product.line') bom_obj = self.pool.get('mrp.bom') for wiz_qty in self.browse(cr, uid, ids): prod = prod_obj.browse(cr, uid,record_id) prod_obj.write(cr, uid,prod.id, {'product_qty': wiz_qty.product_qty}) prod_obj.action_compute(cr, uid, [prod.id]) move_lines_obj = self.pool.get('stock.move') for move in prod.move_lines: bom_point = prod.bom_id bom_id = prod.bom_id.id if not bom_point: bom_id = bom_obj._bom_find(cr, uid, prod.product_id.id, prod.product_uom.id) if not bom_id: raise osv.except_osv(_('Error'), _("Couldn't find bill of material for product")) prod_obj.write(cr, uid, [prod.id], {'bom_id': bom_id}) bom_point = sbom_obj.browse(cr, uid, [bom_id])[0] if not bom_id: raise osv.except_osv(_('Error'), _("Couldn't find bill of material for product")) factor = prod.product_qty * prod.product_uom.factor / bom_point.product_uom.factor res = bom_obj._bom_explode(cr, uid, bom_point, factor / bom_point.product_qty, []) for r in res[0]: if r['product_id']== move.product_id.id: move_lines_obj.write(cr, uid,move.id, {'product_qty' : r['product_qty']}) for m in prod.move_created_ids: move_lines_obj.write(cr, uid,m.id, {'product_qty': wiz_qty.product_qty}) return {}
1afb92d56e92dc63e9cc31d1e926b392a75d80f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1afb92d56e92dc63e9cc31d1e926b392a75d80f3/change_production_qty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 17672, 67, 85, 4098, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 4672, 3536, 17776, 326, 18189, 434, 8094, 18, 225, 632, 891, 365, 30, 1021, 733, 4407, 18, 632, 891, 4422, 30, 432, 2063, 3347, 632, 891, 4555, 30, 1599, 434, 326, 729, 4551, 7545, 316, 632, 891, 3258, 30, 987, 434, 7115, 3170, 632, 891, 819, 30, 432, 4529, 3880, 225, 632, 2463, 30, 225, 3536, 1409, 67, 350, 273, 819, 471, 819, 18, 588, 2668, 3535, 67, 350, 2187, 8381, 13, 1815, 1409, 67, 350, 16, 389, 2668, 3896, 3124, 353, 486, 1392, 6134, 10791, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 81, 13832, 18, 17273, 6134, 3017, 67, 3548, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 81, 13832, 18, 17273, 18, 5896, 18, 1369, 6134, 28626, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 81, 13832, 18, 70, 362, 6134, 364, 341, 452, 67, 85, 4098, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 10791, 273, 10791, 67, 2603, 18, 25731, 12, 3353, 16, 4555, 16, 3366, 67, 350, 13, 10791, 67, 2603, 18, 2626, 12, 3353, 16, 4555, 16, 17672, 18, 350, 16, 13666, 5896, 67, 85, 4098, 4278, 341, 452, 67, 85, 4098, 18, 5896, 67, 85, 4098, 6792, 10791, 67, 2603, 18, 1128, 67, 9200, 12, 3353, 16, 4555, 16, 306, 17672, 18, 350, 5717, 225, 3635, 67, 3548, 67, 2603, 273, 365, 18, 6011, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 17672, 67, 85, 4098, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 4672, 3536, 17776, 326, 18189, 434, 8094, 18, 225, 632, 891, 365, 30, 1021, 733, 4407, 18, 632, 891, 4422, 30, 432, 2063, 3347, 632, 891, 4555, 30, 1599, 434, 326, 729, 4551, 7545, 316, 632, 891, 3258, 30, 987, 434, 7115, 3170, 632, 891, 819, 30, 432, 4529, 3880, 225, 632, 2463, 30, 225, 3536, 1409, 67, 350, 273, 819, 471, 819, 18, 588, 2668, 3535, 67, 350, 2187, 8381, 13, 1815, 1409, 67, 350, 16, 389, 2668, 3896, 3124, 353, 486, 1392, 6134, 10791, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 81, 13832, 18, 17273, 6134, 3017, 67, 2 ]
picture_name = md['album_picture'].replace('_thumb', '') f.write('Album image identifier "%s"\n' % picture_name);
f.write('Album image identifier "%s"\n' % md['album_picture']);
def generate(self): ''' Generates new metadata file with default values. '''
2045c2b072368aa05e2d07eea387e6745fe9f77e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4663/2045c2b072368aa05e2d07eea387e6745fe9f77e/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 9163, 31902, 394, 1982, 585, 598, 805, 924, 18, 9163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 9163, 31902, 394, 1982, 585, 598, 805, 924, 18, 9163, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
proc = subprocess.Popen(['git'] + command, stdout=subprocess.PIPE)
shell = (os.name == 'nt') proc = subprocess.Popen(['git'] + command, shell=shell, stdout=subprocess.PIPE)
def RunGit(command): """Run a git subcommand, returning its output.""" proc = subprocess.Popen(['git'] + command, stdout=subprocess.PIPE) return proc.communicate()[0].strip()
518e0028821eee26f7f22ed40e99e5ab0f588578 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/518e0028821eee26f7f22ed40e99e5ab0f588578/sync-webkit-git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 11540, 12, 3076, 4672, 3536, 1997, 279, 5071, 18856, 16, 5785, 2097, 876, 12123, 225, 5972, 273, 261, 538, 18, 529, 422, 296, 496, 6134, 5418, 273, 6652, 18, 52, 3190, 12, 3292, 6845, 3546, 397, 1296, 16, 5972, 33, 10304, 16, 3909, 33, 1717, 2567, 18, 27602, 13, 327, 5418, 18, 5702, 318, 2659, 1435, 63, 20, 8009, 6406, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 11540, 12, 3076, 4672, 3536, 1997, 279, 5071, 18856, 16, 5785, 2097, 876, 12123, 225, 5972, 273, 261, 538, 18, 529, 422, 296, 496, 6134, 5418, 273, 6652, 18, 52, 3190, 12, 3292, 6845, 3546, 397, 1296, 16, 5972, 33, 10304, 16, 3909, 33, 1717, 2567, 18, 27602, 13, 327, 5418, 18, 5702, 318, 2659, 1435, 63, 20, 8009, 6406, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logger.info("Using mirobridge_interpreter_2_0_3")
logger.info("Using mirobridge_interpreter_2_0_3")
def __getattr__(self, attr): """Delegate everything but write to the stream""" return getattr(self.out, attr)
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def relfilter(repo, args):
def relfilter(repo, files):
def relfilter(repo, args): if os.getcwd() != repo.root: p = os.getcwd()[len(repo.root) + 1: ] return filterfiles(p, args) return args
696aae8cd8215f7812988063e6685fe6e912a5e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/696aae8cd8215f7812988063e6685fe6e912a5e0/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1279, 2188, 12, 7422, 16, 1390, 4672, 309, 1140, 18, 588, 11089, 1435, 480, 3538, 18, 3085,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1279, 2188, 12, 7422, 16, 1390, 4672, 309, 1140, 18, 588, 11089, 1435, 480, 3538, 18, 3085, 30, 293, 273, 1140, 18, 588, 11089, 1435, 63, 1897, 12, 7422, 18, 3085, 13, 397, 404, 30, 308, 327, 1034, 2354, 12, 84, 16, 833, 13, 327, 833, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
graph = pydot.Dot(fontsize="16", label=offer) graph.set('size', '10.7,7.3') graph.set('center', '1') graph.set('ratio', 'auto') graph.set('rotate', '90') graph.set('rankdir', 'LR')
graph = pydot.Dot(fontsize="16", label=offer, size='10.7, 7.3', center='1', ratio='auto', rotate='90', rankdir='LR' )
def __init__(self, cr, uid, ids, data): logger = netsvc.Logger() try: import pydot except Exception, e: logger.notifyChannel('workflow', netsvc.LOG_WARNING, 'Import Error for pydot, you will not be able \ to render workflows\n' 'Consider Installing PyDot or dependencies: \ http://dkbza.org/pydot.html') raise e offer_id = ids self.done = False
71449e9d60b79118e88c2c26b4163c6084a19775 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/71449e9d60b79118e88c2c26b4163c6084a19775/dm_print_offer_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 775, 30, 1930, 2395, 9811, 1335, 1185, 16, 425, 30, 1194, 18, 12336, 2909, 2668, 13815, 2187, 21954, 4227, 18, 4842, 67, 9511, 16, 296, 5010, 1068, 364, 2395, 9811, 16, 1846, 903, 486, 506, 7752, 521, 358, 1743, 31738, 64, 82, 11, 296, 9054, 3585, 10284, 310, 4707, 10412, 578, 5030, 30, 521, 1062, 2207, 2883, 70, 11939, 18, 3341, 19, 2074, 9811, 18, 2620, 6134, 1002, 425, 10067, 67, 350, 273, 3258, 365, 18, 8734, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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2395, 9811, 16, 1846, 903, 486, 506, 7752, 521, 358, 1743, 31738, 64, 82, 11, 296, 9054, 3585, 10284, 310, 4707, 10412, 578, 5030, 30, 521, 1062, 2207, 2883, 70, 11939, 18, 3341, 19, 2074, 9811, 18, 2620, 6134, 1002, 425, 10067, 67, 350, 273, 3258, 365, 18, 8734, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if mname in self.modules: return self.modules[mname] self.modules[mname] = m = self.hooks.new_module(mname)
m = self.modules.get(mname) if m is None: self.modules[mname] = m = self.hooks.new_module(mname)
def add_module(self, mname): if mname in self.modules: return self.modules[mname] self.modules[mname] = m = self.hooks.new_module(mname) m.__builtins__ = self.modules['__builtin__'] return m
ae4b5cb853172d4346276b57dad60870b384cfa2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ae4b5cb853172d4346276b57dad60870b384cfa2/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2978, 12, 2890, 16, 312, 529, 4672, 312, 273, 365, 18, 6400, 18, 588, 12, 81, 529, 13, 309, 312, 353, 599, 30, 365, 18, 6400, 63, 81, 529, 65, 273, 312, 273, 365, 18, 10468, 18, 2704, 67, 2978, 12, 81, 529, 13, 312, 16186, 12406, 2679, 972, 273, 365, 18, 6400, 3292, 972, 24553, 972, 3546, 327, 312, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2978, 12, 2890, 16, 312, 529, 4672, 312, 273, 365, 18, 6400, 18, 588, 12, 81, 529, 13, 309, 312, 353, 599, 30, 365, 18, 6400, 63, 81, 529, 65, 273, 312, 273, 365, 18, 10468, 18, 2704, 67, 2978, 12, 81, 529, 13, 312, 16186, 12406, 2679, 972, 273, 365, 18, 6400, 3292, 972, 24553, 972, 3546, 327, 312, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return generator(fh)
return util.chunkbuffer(generator(fh))
def generator(f): zd = bz2.BZ2Decompressor() zd.decompress("BZ") for chunk in util.filechunkiter(f, 4096): yield zd.decompress(chunk)
0e797ba7fa525c4f135969f168883514daafb294 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/0e797ba7fa525c4f135969f168883514daafb294/changegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4456, 12, 74, 4672, 998, 72, 273, 24788, 22, 18, 38, 62, 22, 17731, 1028, 280, 1435, 998, 72, 18, 323, 14706, 2932, 38, 62, 7923, 364, 2441, 316, 1709, 18, 768, 6551, 2165, 12, 74, 16, 16797, 4672, 2824, 998, 72, 18, 323, 14706, 12, 6551, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4456, 12, 74, 4672, 998, 72, 273, 24788, 22, 18, 38, 62, 22, 17731, 1028, 280, 1435, 998, 72, 18, 323, 14706, 2932, 38, 62, 7923, 364, 2441, 316, 1709, 18, 768, 6551, 2165, 12, 74, 16, 16797, 4672, 2824, 998, 72, 18, 323, 14706, 12, 6551, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: Tab.latex()
sage: Tab.latex()
def positionsOfUnmatchedPlus(self, i):
32a3559acd5b97a7ee5e4709552657a21bace556 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/32a3559acd5b97a7ee5e4709552657a21bace556/tensor_product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6865, 951, 984, 11073, 13207, 12, 2890, 16, 277, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6865, 951, 984, 11073, 13207, 12, 2890, 16, 277, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if item.HasChildren():
if item.HasChildren() and item.IsExpanded():
def FillArray(self, item, array=[]): """ Internal function. Used to populate an array of selected items when the style TR_MULTIPLE is used. """
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14192, 1076, 12, 2890, 16, 761, 16, 526, 33, 8526, 4672, 3536, 3186, 445, 18, 10286, 358, 6490, 392, 526, 434, 3170, 1516, 1347, 326, 2154, 4235, 67, 24683, 900, 353, 1399, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14192, 1076, 12, 2890, 16, 761, 16, 526, 33, 8526, 4672, 3536, 3186, 445, 18, 10286, 358, 6490, 392, 526, 434, 3170, 1516, 1347, 326, 2154, 4235, 67, 24683, 900, 353, 1399, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
extras='geo'
extras='geo, tags'
def get(self): token = self.request.get("token") nsid = self.request.get("nsid") page = self.request.get("page")
228425283fae59509f03a8940ec1965e88957938 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11110/228425283fae59509f03a8940ec1965e88957938/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 1147, 273, 365, 18, 2293, 18, 588, 2932, 2316, 7923, 3153, 350, 273, 365, 18, 2293, 18, 588, 2932, 2387, 350, 7923, 1363, 273, 365, 18, 2293, 18, 588, 2932, 2433, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 1147, 273, 365, 18, 2293, 18, 588, 2932, 2316, 7923, 3153, 350, 273, 365, 18, 2293, 18, 588, 2932, 2387, 350, 7923, 1363, 273, 365, 18, 2293, 18, 588, 2932, 2433, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: cmp(J0(37), 5)
sage: cmp(J0(37), 5)
def __cmp__(self, other): """ Compare two modular abelian varieties.
4bbeb68b94297e37d4c00c70444c92361124e0e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4bbeb68b94297e37d4c00c70444c92361124e0e1/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 3536, 11051, 2795, 681, 2490, 1223, 292, 2779, 1394, 278, 606, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 3536, 11051, 2795, 681, 2490, 1223, 292, 2779, 1394, 278, 606, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: return DateTime.strptime(d, '%H:%M:%S'), tz except: pass
def _dateConvertFromDB(d): if d==None: return None try: return DateTime.strptime(d, '%Y-%m-%d') #just Y/M/D except: pass try: return DateTime.strptime(d, '%H:%M:%S') #just hh:mm:ss except: pass dashind = string.rindex(d, '-') tz = d[dashind:] d = d[:dashind] try: return DateTime.strptime(d, '%H:%M:%S'), tz # timetz except: pass # NO -- it was already stripped off, above! -- js Thu Aug 9 11:51:23 2001 #strip off offset from gmt #d = d[:string.rindex(d, '-')] try: return DateTime.strptime(d, '%Y-%m-%d %H:%M:%S') # full date except: #print "date passed to convert function: |%s|" % d raise
8830b586a28ef3b620195c52bc3c48e7f3cd50dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/8830b586a28ef3b620195c52bc3c48e7f3cd50dc/postconn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 712, 2723, 1265, 2290, 12, 72, 4672, 309, 302, 631, 7036, 30, 327, 599, 775, 30, 327, 3716, 18, 701, 10650, 12, 72, 16, 1995, 61, 6456, 81, 6456, 72, 6134, 468, 3732, 1624, 19, 49, 19, 40, 1335, 30, 1342, 225, 775, 30, 327, 3716, 18, 701, 10650, 12, 72, 16, 1995, 44, 5319, 49, 5319, 55, 6134, 468, 3732, 18629, 30, 7020, 30, 1049, 1335, 30, 1342, 225, 12558, 728, 273, 533, 18, 86, 1615, 12, 72, 16, 4014, 13, 6016, 273, 302, 63, 21817, 728, 26894, 302, 273, 302, 10531, 21817, 728, 65, 775, 30, 327, 3716, 18, 701, 10650, 12, 72, 16, 1995, 44, 5319, 49, 5319, 55, 19899, 6016, 468, 26668, 94, 1335, 30, 1342, 468, 3741, 1493, 518, 1703, 1818, 13300, 3397, 16, 5721, 5, 225, 1493, 3828, 935, 89, 432, 637, 225, 2468, 4648, 30, 10593, 30, 4366, 4044, 21, 468, 6406, 3397, 1384, 628, 314, 1010, 468, 72, 273, 302, 10531, 1080, 18, 86, 1615, 12, 72, 16, 4014, 25887, 775, 30, 327, 3716, 18, 701, 10650, 12, 72, 16, 1995, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 6134, 468, 1983, 1509, 1335, 30, 468, 1188, 315, 712, 2275, 358, 1765, 445, 30, 571, 9, 87, 22317, 738, 302, 1002, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 44, 5319, 49, 5319, 55, 6134, 468, 3732, 18629, 30, 7020, 30, 1049, 1335, 30, 1342, 225, 12558, 728, 273, 533, 18, 86, 1615, 12, 72, 16, 4014, 13, 6016, 273, 302, 63, 21817, 728, 26894, 302, 273, 302, 10531, 21817, 728, 65, 775, 30, 327, 3716, 18, 701, 10650, 12, 72, 16, 1995, 44, 5319, 49, 5319, 55, 19899, 6016, 468, 26668, 94, 2 ]
if os.name=="nt": self.install_nt_service() def state_nt_service (self, name): import win32serviceutil return win32serviceutil.QueryServiceStatus(name)[1] def install_nt_service (self): from wc import win32start, AppName, Configuration import win32serviceutil oldargs = sys.argv sys.argv = ['webcleaner', 'install'] win32serviceutil.HandleCommandLine(win32start.ProxyService) state = self.state_nt_service(AppName) while state==win32service.SERVICE_START_PENDING: time.sleep(1) state = self.state_nt_service(AppName) if state==win32service.SERVICE_RUNNING: sys.argv = ['webcleaner', 'stop'] win32serviceutil.HandleCommandLine(win32start.ProxyService) state = self.state_nt_service(AppName) while state==win32service.SERVICE_STOP_PENDING: time.sleep(1) state = self.state_nt_service(AppName) sys.argv = ['webcleaner', 'start'] win32serviceutil.HandleCommandLine(win32start.ProxyService) sys.argv = oldargs config = Configuration() config_url = "http://localhost:%d/" % config['port'] import time, webbrowser time.sleep(5) webbrowser.open(config_url)
def run (self): super(MyInstall, self).run() # we have to write a configuration file because we need the # <install_data> directory (and other stuff like author, url, ...) data = [] for d in ['purelib', 'platlib', 'lib', 'headers', 'scripts', 'data']: attr = 'install_%s'%d if self.root: # cut off root path prefix val = getattr(self, attr)[len(self.root):] else: val = getattr(self, attr) if attr=="install_data": base = os.path.join(val, 'share', 'webcleaner') data.append('config_dir = %r' % \ os.path.normcase(os.path.join(base, 'config'))) data.append('template_dir = %r' % \ os.path.normcase(os.path.join(base, 'templates'))) data.append("%s = %r" % (attr, val)) from pprint import pformat data.append('outputs = %s' % pformat(self.get_outputs())) self.distribution.create_conf_file(self.install_lib, data) # install proxy service if os.name=="nt": self.install_nt_service()
f4449716a250bb47d6d865c0f80d2ced279bbd0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/f4449716a250bb47d6d865c0f80d2ced279bbd0a/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2240, 12, 12062, 6410, 16, 365, 2934, 2681, 1435, 468, 732, 1240, 358, 1045, 279, 1664, 585, 2724, 732, 1608, 326, 468, 411, 5425, 67, 892, 34, 1867, 261, 464, 1308, 10769, 3007, 2869, 16, 880, 16, 1372, 13, 501, 273, 5378, 364, 302, 316, 10228, 84, 594, 2941, 2187, 296, 412, 270, 2941, 2187, 296, 2941, 2187, 296, 2485, 2187, 296, 12827, 2187, 296, 892, 3546, 30, 1604, 273, 296, 5425, 10185, 87, 11, 9, 72, 309, 365, 18, 3085, 30, 468, 6391, 3397, 1365, 589, 1633, 1244, 273, 3869, 12, 2890, 16, 1604, 25146, 1897, 12, 2890, 18, 3085, 4672, 65, 469, 30, 1244, 273, 3869, 12, 2890, 16, 1604, 13, 309, 1604, 31713, 5425, 67, 892, 6877, 1026, 273, 1140, 18, 803, 18, 5701, 12, 1125, 16, 296, 14419, 2187, 296, 4875, 6200, 264, 6134, 501, 18, 6923, 2668, 1425, 67, 1214, 273, 738, 86, 11, 738, 521, 1140, 18, 803, 18, 7959, 3593, 12, 538, 18, 803, 18, 5701, 12, 1969, 16, 296, 1425, 11, 20349, 501, 18, 6923, 2668, 3202, 67, 1214, 273, 738, 86, 11, 738, 521, 1140, 18, 803, 18, 7959, 3593, 12, 538, 18, 803, 18, 5701, 12, 1969, 16, 296, 8502, 11, 20349, 501, 18, 6923, 27188, 87, 273, 738, 86, 6, 738, 261, 1747, 16, 1244, 3719, 628, 18771, 1930, 293, 2139, 501, 18, 6923, 2668, 12295, 273, 738, 87, 11, 738, 293, 2139, 12, 2890, 18, 588, 67, 12295, 1435, 3719, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2240, 12, 12062, 6410, 16, 365, 2934, 2681, 1435, 468, 732, 1240, 358, 1045, 279, 1664, 585, 2724, 732, 1608, 326, 468, 411, 5425, 67, 892, 34, 1867, 261, 464, 1308, 10769, 3007, 2869, 16, 880, 16, 1372, 13, 501, 273, 5378, 364, 302, 316, 10228, 84, 594, 2941, 2187, 296, 412, 270, 2941, 2187, 296, 2941, 2187, 296, 2485, 2187, 296, 12827, 2187, 296, 892, 3546, 30, 1604, 273, 296, 5425, 10185, 87, 11, 9, 72, 309, 365, 18, 3085, 30, 468, 6391, 3397, 1365, 589, 1633, 1244, 273, 3869, 12, 2890, 16, 1604, 25146, 1897, 12, 2890, 18, 3085, 4672, 65, 469, 30, 1244, 273, 3869, 12, 2890, 16, 1604, 13, 309, 2 ]
if len(n) == 1:
if len(n) == 0: return FakeExpression([SR.one_element(), d], _operator.div) elif len(n) == 1:
def get_fake_div(self, ex): """ EXAMPLES::
d0aefb279f74a67e37df90d59b73a7386bd1c35d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/d0aefb279f74a67e37df90d59b73a7386bd1c35d/expression_conversions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28395, 67, 2892, 12, 2890, 16, 431, 4672, 3536, 5675, 8900, 11386, 2866, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28395, 67, 2892, 12, 2890, 16, 431, 4672, 3536, 5675, 8900, 11386, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out_fd.write(fds[index].read(row['length']))
data = fds[index].read(row['length']) out_fd.write(data)
def create_new_stream(self,stream_ids): """ Creates a new stream by combining the streams given by the list stream_ids. @return the new stream id. """ if len(stream_ids)<2: return ## Store the new stream in the cache: dbh = DB.DBO(self.case)
769cf727b8c526ace48594eef3263c998dfb50ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/769cf727b8c526ace48594eef3263c998dfb50ea/Reassembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 3256, 12, 2890, 16, 3256, 67, 2232, 4672, 3536, 10210, 279, 394, 1407, 635, 29189, 326, 8205, 864, 635, 326, 666, 1407, 67, 2232, 18, 225, 632, 2463, 326, 394, 1407, 612, 18, 3536, 309, 562, 12, 3256, 67, 2232, 13, 32, 22, 30, 327, 225, 7541, 4994, 326, 394, 1407, 316, 326, 1247, 30, 1319, 76, 273, 2383, 18, 2290, 51, 12, 2890, 18, 3593, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 3256, 12, 2890, 16, 3256, 67, 2232, 4672, 3536, 10210, 279, 394, 1407, 635, 29189, 326, 8205, 864, 635, 326, 666, 1407, 67, 2232, 18, 225, 632, 2463, 326, 394, 1407, 612, 18, 3536, 309, 562, 12, 3256, 67, 2232, 13, 32, 22, 30, 327, 225, 7541, 4994, 326, 394, 1407, 316, 326, 1247, 30, 1319, 76, 273, 2383, 18, 2290, 51, 12, 2890, 18, 3593, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rtype = epytext.to_html(rval.type())
rtype = dom_to_html(rval.type(), container)
def _func_summary(self, functions, sort_order, heading='Function Summary'): 'Return a summary of the functions in a class or module' functions = self._sort(functions, sort_order) if len(functions) == 0: return '' str = self._table_header(heading, 'summary') for link in functions: func = link.target() fname = link.name() if not self._docmap.has_key(func): if WARN_MISSING: print 'WARNING: MISSING', func continue fdoc = self._docmap[func] # Try to find a documented ancestor. inheritdoc = 0 while (not fdoc.documented() and fdoc.overrides() and self._docmap.has_key(fdoc.overrides())): fdoc = self._docmap[fdoc.overrides()] inheritdoc = 1 rval = fdoc.returns() if rval.type(): rtype = epytext.to_html(rval.type()) else: rtype = '&nbsp;'
ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 7687, 12, 2890, 16, 4186, 16, 1524, 67, 1019, 16, 11053, 2218, 2083, 17967, 11, 4672, 296, 990, 279, 4916, 434, 326, 4186, 316, 279, 667, 578, 1605, 11, 4186, 273, 365, 6315, 3804, 12, 10722, 16, 1524, 67, 1019, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 7687, 6134, 225, 364, 1692, 316, 4186, 30, 1326, 273, 1692, 18, 3299, 1435, 5299, 273, 1692, 18, 529, 1435, 309, 486, 365, 6315, 2434, 1458, 18, 5332, 67, 856, 12, 644, 4672, 309, 20440, 67, 19466, 30, 1172, 296, 9511, 30, 28695, 2187, 1326, 1324, 225, 284, 2434, 273, 365, 6315, 2434, 1458, 63, 644, 65, 225, 468, 6161, 358, 1104, 279, 23051, 9731, 18, 6811, 2434, 273, 374, 1323, 261, 902, 284, 2434, 18, 5457, 329, 1435, 471, 284, 2434, 18, 19775, 1435, 471, 365, 6315, 2434, 1458, 18, 5332, 67, 856, 12, 74, 2434, 18, 19775, 1435, 3719, 30, 284, 2434, 273, 365, 6315, 2434, 1458, 63, 74, 2434, 18, 19775, 1435, 65, 6811, 2434, 273, 404, 225, 14267, 273, 284, 2434, 18, 6154, 1435, 309, 14267, 18, 723, 13332, 9328, 273, 4092, 67, 869, 67, 2620, 12, 86, 1125, 18, 723, 9334, 1478, 13, 469, 30, 9328, 273, 5183, 10600, 4359, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 7687, 12, 2890, 16, 4186, 16, 1524, 67, 1019, 16, 11053, 2218, 2083, 17967, 11, 4672, 296, 990, 279, 4916, 434, 326, 4186, 316, 279, 667, 578, 1605, 11, 4186, 273, 365, 6315, 3804, 12, 10722, 16, 1524, 67, 1019, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 7687, 6134, 225, 364, 1692, 316, 4186, 30, 1326, 273, 1692, 18, 3299, 1435, 5299, 273, 1692, 18, 529, 1435, 309, 486, 365, 6315, 2434, 1458, 18, 5332, 67, 856, 12, 644, 4672, 309, 20440, 67, 19466, 30, 1172, 296, 9511, 30, 28695, 2187, 1326, 1324, 225, 284, 2434, 273, 365, 6315, 2434, 2 ]
child = subprocess.Popen(['0launch', '--source', '--get-selections'] + options + [self.interface], stdout = subprocess.PIPE)
child = subprocess.Popen([launch_prog, '--source', '--get-selections'] + options + [self.interface], stdout = subprocess.PIPE)
def get_selections(self, prompt = False): if self._selections: assert not prompt return self._selections
f5ffcb8b1e5c2e215261570586a798f939c72d2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11549/f5ffcb8b1e5c2e215261570586a798f939c72d2f/support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10705, 87, 12, 2890, 16, 6866, 273, 1083, 4672, 309, 365, 6315, 10705, 87, 30, 1815, 486, 6866, 327, 365, 6315, 10705, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10705, 87, 12, 2890, 16, 6866, 273, 1083, 4672, 309, 365, 6315, 10705, 87, 30, 1815, 486, 6866, 327, 365, 6315, 10705, 87, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def update_collapsed_row(self, model, path, iter, user_data): """Build a list of task that must showed as collapsed in Treeview""" model = self.task_tv.get_model() tid = model.get_value(iter, tasktree.COL_TID) if (model.iter_has_child(iter) and self.task_tv.row_expanded(path) and tid in self.priv["collapsed_tids"]): self.priv["collapsed_tids"].remove(tid) elif (model.iter_has_child(iter) and not self.task_tv.row_expanded(path) and tid not in self.priv["collapsed_tids"]): self.priv["collapsed_tids"].append(tid) return False
def update_collapsed_row(self, model, path, iter, user_data): """Build a list of task that must showed as collapsed in Treeview""" model = self.task_tv.get_model() tid = model.get_value(iter, tasktree.COL_TID) # Remove expanded rows if (model.iter_has_child(iter) and self.task_tv.row_expanded(path) and tid in self.priv["collapsed_tids"]): self.priv["collapsed_tids"].remove(tid) # Append collapsed rows elif (model.iter_has_child(iter) and not self.task_tv.row_expanded(path) and tid not in self.priv["collapsed_tids"]): self.priv["collapsed_tids"].append(tid)
1a7f1370f28f3e5b66447a7ed5fb6581efceb629 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/1a7f1370f28f3e5b66447a7ed5fb6581efceb629/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1293, 13886, 67, 492, 12, 2890, 16, 938, 16, 589, 16, 1400, 16, 729, 67, 892, 4672, 3536, 3116, 279, 666, 434, 1562, 716, 1297, 2405, 329, 487, 17027, 316, 4902, 1945, 8395, 938, 273, 365, 18, 4146, 67, 24161, 18, 588, 67, 2284, 1435, 11594, 282, 273, 938, 18, 588, 67, 1132, 12, 2165, 16, 1562, 3413, 18, 4935, 67, 56, 734, 13, 468, 3581, 8406, 2595, 309, 261, 2284, 18, 2165, 67, 5332, 67, 3624, 12, 2165, 13, 471, 365, 18, 4146, 67, 24161, 18, 492, 67, 17336, 12, 803, 13, 471, 11594, 316, 365, 18, 11365, 9614, 1293, 13886, 67, 88, 2232, 11929, 4672, 365, 18, 11365, 9614, 1293, 13886, 67, 88, 2232, 6, 8009, 4479, 12, 18081, 13, 468, 6181, 17027, 2595, 1327, 261, 2284, 18, 2165, 67, 5332, 67, 3624, 12, 2165, 13, 471, 486, 365, 18, 4146, 67, 24161, 18, 492, 67, 17336, 12, 803, 13, 471, 11594, 486, 316, 365, 18, 11365, 9614, 1293, 13886, 67, 88, 2232, 11929, 4672, 365, 18, 11365, 9614, 1293, 13886, 67, 88, 2232, 6, 8009, 6923, 12, 18081, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1293, 13886, 67, 492, 12, 2890, 16, 938, 16, 589, 16, 1400, 16, 729, 67, 892, 4672, 3536, 3116, 279, 666, 434, 1562, 716, 1297, 2405, 329, 487, 17027, 316, 4902, 1945, 8395, 938, 273, 365, 18, 4146, 67, 24161, 18, 588, 67, 2284, 1435, 11594, 282, 273, 938, 18, 588, 67, 1132, 12, 2165, 16, 1562, 3413, 18, 4935, 67, 56, 734, 13, 468, 3581, 8406, 2595, 309, 261, 2284, 18, 2165, 67, 5332, 67, 3624, 12, 2165, 13, 471, 365, 18, 4146, 67, 24161, 18, 492, 67, 17336, 12, 803, 13, 471, 11594, 316, 365, 18, 11365, 9614, 1293, 13886, 67, 88, 2232, 11929, 4672, 365, 18, 11365, 9614, 1293, 13886, 67, 88, 2232, 2 ]
import sys sys.modules['fedora.client.ProxyClient'] = ProxyClient sys.modules['fedora.client.AccountSystem'] = AccountSystem
def __setattr__(self, key, value): '''Set a key to a value.
538c844f702f68d99ceb7fd2be9464d253bbe9e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/538c844f702f68d99ceb7fd2be9464d253bbe9e4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 498, 16, 460, 4672, 9163, 694, 279, 498, 358, 279, 460, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 498, 16, 460, 4672, 9163, 694, 279, 498, 358, 279, 460, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return set(temp_list)
retval = set(temp_list)
def _copy(self, obj): """ <Purpose> Create a deep copy of an object without using the python 'copy' module. Using copy.deepcopy() doesn't work because builtins like id and hasattr aren't available when this is called. <Arguments> self obj The object to make a deep copy of. <Exceptions> TypeError If an object is encountered that we don't know how to make a copy of. NamespaceViolationError If an unexpected error occurs while copying. This isn't the greatest solution, but in general the idea is we just need to abort the wrapped function call. <Side Effects> A new reference is created to every non-simple type of object. That is, everything except objects of type str, unicode, int, etc. <Returns> The deep copy of obj. """ try: # types.InstanceType is included because the user can provide an instance # of a class of their own in the list of callback args to settimer. if _is_in(type(obj), [str, unicode, int, long, float, complex, bool, types.NoneType, types.FunctionType, types.LambdaType, types.MethodType, types.InstanceType]): return obj elif _is_in(type(obj), [tuple, list, set, frozenset]): temp_list = [] for item in obj: temp_list.append(self._copy(item)) if type(obj) is tuple: return tuple(temp_list) elif type(obj) is set: return set(temp_list) elif type(obj) is frozenset: return frozenset(temp_list) else: return temp_list elif type(obj) is dict: temp_dict = {} for key in obj: temp_dict[key] = self._copy(obj[key]) return temp_dict # We don't copy certain objects. This is because copying an emulated file # object, for example, will cause the destructor of the original one to # be invoked, which will close the actual underlying file. As the object # is wrapped and the client does not have access to it, it's safe to not # wrap it. elif isinstance(obj, (NamespaceObjectWrapper, emulfile.emulated_file, emulcomm.emulated_socket, thread.LockType, virtual_namespace.VirtualNamespace)): return obj else: raise TypeError("_copy is not implemented for objects of type " + str(type(obj))) except Exception, e: self._handle_violation("_copy failed on " + str(obj) + " with message " + str(e))
269dec09cf5f6cd26664269cfea5fe441cc84fa4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/269dec09cf5f6cd26664269cfea5fe441cc84fa4/namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 1081, 4672, 3536, 411, 10262, 4150, 34, 1788, 279, 4608, 1610, 434, 392, 733, 2887, 1450, 326, 5790, 296, 3530, 11, 1605, 18, 11637, 1610, 18, 16589, 3530, 1435, 3302, 1404, 1440, 2724, 6650, 2679, 3007, 612, 471, 3859, 11526, 1404, 2319, 1347, 333, 353, 2566, 18, 411, 4628, 34, 365, 1081, 1021, 733, 358, 1221, 279, 4608, 1610, 434, 18, 411, 11416, 34, 3580, 971, 392, 733, 353, 9919, 716, 732, 2727, 1404, 5055, 3661, 358, 1221, 279, 1610, 434, 18, 6005, 11683, 668, 971, 392, 9733, 555, 9938, 1323, 8933, 18, 1220, 5177, 1404, 326, 18825, 395, 6959, 16, 1496, 316, 7470, 326, 21463, 353, 732, 2537, 1608, 358, 6263, 326, 5805, 445, 745, 18, 411, 8895, 30755, 87, 34, 432, 394, 2114, 353, 2522, 358, 3614, 1661, 17, 9647, 618, 434, 733, 18, 12466, 353, 16, 7756, 1335, 2184, 434, 618, 609, 16, 5252, 16, 509, 16, 5527, 18, 411, 1356, 34, 1021, 4608, 1610, 434, 1081, 18, 3536, 775, 30, 468, 1953, 18, 29123, 353, 5849, 2724, 326, 729, 848, 5615, 392, 791, 468, 434, 279, 667, 434, 3675, 4953, 316, 326, 666, 434, 1348, 833, 358, 444, 12542, 18, 309, 389, 291, 67, 267, 12, 723, 12, 2603, 3631, 306, 701, 16, 5252, 16, 509, 16, 1525, 16, 1431, 16, 7233, 16, 1426, 16, 1953, 18, 7036, 559, 16, 1953, 18, 2083, 559, 16, 1953, 18, 12025, 559, 16, 1953, 18, 21988, 16, 1953, 18, 29123, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 1081, 4672, 3536, 411, 10262, 4150, 34, 1788, 279, 4608, 1610, 434, 392, 733, 2887, 1450, 326, 5790, 296, 3530, 11, 1605, 18, 11637, 1610, 18, 16589, 3530, 1435, 3302, 1404, 1440, 2724, 6650, 2679, 3007, 612, 471, 3859, 11526, 1404, 2319, 1347, 333, 353, 2566, 18, 411, 4628, 34, 365, 1081, 1021, 733, 358, 1221, 279, 4608, 1610, 434, 18, 411, 11416, 34, 3580, 971, 392, 733, 353, 9919, 716, 732, 2727, 1404, 5055, 3661, 358, 1221, 279, 1610, 434, 18, 6005, 11683, 668, 971, 392, 9733, 555, 9938, 1323, 8933, 18, 1220, 5177, 1404, 326, 18825, 395, 6959, 16, 1496, 316, 7470, 326, 21463, 353, 732, 2537, 1608, 358, 6263, 326, 2 ]
Publisher.subscribe(self.OnPageChanged, "PAGE_CHANGED") Publisher.subscribe(self.OnFileLoaded, "FILE_LOADED") Publisher.subscribe(self.OnDiffSizes, "DIFF_SIZES") Publisher.subscribe(self.OnThumbnailAdded, "THUMBNAIL_ADDED") Publisher.subscribe(self.OnThumbnailDone, "THUMBNAIL_DONE") Publisher.subscribe(self.OnProgressBegin, "SWF_BEGIN_SAVE") Publisher.subscribe(self.OnProgressUpdate, "SWF_PAGE_SAVED") Publisher.subscribe(self.OnProgressDone, "SWF_FILE_SAVED") Publisher.subscribe(self.OnCombineError, "SWF_COMBINE_ERROR") Publisher.subscribe(self.OnFileDroped, "FILE_DROPED") Publisher.subscribe(self.OnFilesDroped, "FILES_DROPED") self.view.Bind(wx.EVT_MENU, self.OnMenuOpen, id=wx.ID_OPEN) self.view.Bind(wx.EVT_MENU, self.OnMenuSave, id=wx.ID_SAVE) self.view.Bind(wx.EVT_MENU, self.OnMenuSaveSelected, id=wx.ID_SAVEAS) self.view.Bind(wx.EVT_MENU, self.OnMenuExit, id=wx.ID_EXIT) self.view.Bind(wx.EVT_MENU_RANGE, self.OnFileHistory, id=wx.ID_FILE1, id2=wx.ID_FILE9) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_SAVE) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_SAVEAS) self.view.Bind(wx.EVT_MENU, self.OnMenuSelectAll, id=wx.ID_SELECTALL) self.view.Bind(wx.EVT_MENU, self.OnMenuInvertSelection, id=ID_INVERT_SELECTION) self.view.Bind(wx.EVT_MENU, self.OnMenuSelectOdd, id=ID_SELECT_ODD) self.view.Bind(wx.EVT_MENU, self.OnMenuSelectEven, id=ID_SELECT_EVEN) self.view.Bind(wx.EVT_MENU, self.OnMenuOptions, id=wx.ID_PREFERENCES) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_SELECTALL) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=ID_INVERT_SELECTION) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=ID_SELECT_ODD) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=ID_SELECT_EVEN) self.view.Bind(wx.EVT_MENU, self.OnAbout, id=wx.ID_ABOUT) self.view.Bind(wx.EVT_MENU, self.OnZoom, id=wx.ID_ZOOM_IN) self.view.Bind(wx.EVT_MENU, self.OnZoom, id=wx.ID_ZOOM_OUT) self.view.Bind(wx.EVT_MENU, self.OnZoom, id=wx.ID_ZOOM_100) self.view.Bind(wx.EVT_MENU, self.OnFit, id=wx.ID_ZOOM_FIT) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_ZOOM_IN) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_ZOOM_OUT) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_ZOOM_100) self.view.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=wx.ID_ZOOM_FIT) self.view.page_list.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnSelectItem) self.view.Bind(wx.EVT_CLOSE, self.OnMenuExit) self.view.statusbar.btn_cancel.Bind(wx.EVT_BUTTON, self.OnThumbnailCancel) def OnFilesDroped(self, evt): dlg = wx.MessageDialog(self.view, u"You must drop only one file.", u"Notice", style=wx.OK, pos=wx.DefaultPosition) dlg.ShowModal() dlg.Destroy() def OnFileDroped(self, message): self.__Load(message.data["filename"]) def OnFileHistory(self, evt): fileNum = evt.GetId() - wx.ID_FILE1 filename = self.view.filehistory.GetHistoryFile(fileNum) self.__Load(filename) def OnProgressBegin(self, message): if self.__progress: self.__progress.Destroy() pages = message.data["pages"] style = ( wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME| wx.PD_REMAINING_TIME|wx.PD_CAN_ABORT| wx.PD_AUTO_HIDE ) self.__progress = ProgressDialog(u"Saving...", u"Start saving SWF pages", maximum=pages-1, parent=self.view, style=style) self.__progress.Show() self.view.SetStatusText(u"Saving document...") def OnProgressUpdate(self, message): pagenr = message.data["pagenr"] pagenr0 = pagenr - 1 pages = message.data["pages"] keep_running, skip = self.__progress.Update( pagenr0, u"Saving SWF page %d of %d" % (pagenr, pages) ) if not keep_running and self.__threads.has_key("progress"): self.view.SetStatusText(u"Cancelling...") self.__threads.pop("progress").Stop() if pagenr0 % 10 == 0: self.__progress.SendSizeEvent() def OnProgressDone(self, message): self.__progress.Hide() if self.__threads.has_key("progress"): self.__threads.pop("progress") self.view.SetStatusText(u"SWF document saved successfully.") else: self.view.SetStatusText(u"") def OnCombineError(self, message): from wx.lib.dialogs import ScrolledMessageDialog ScrolledMessageDialog(self.view, message.data, u"Notice").ShowModal() def OnThumbnailAdded(self, message): self.view.statusbar.SetGaugeValue(message.data['pagenr']) tot = self.view.page_list.GetItemCount() self.view.SetStatusText(u"Generating thumbnails %s/%d" % (message.data['pagenr'], tot), 0) def OnThumbnailDone(self, message): self.view.statusbar.SetGaugeValue(0) self.view.SetStatusText(u"", 0) if self.__threads.has_key("thumbnails"): self.__threads.pop("thumbnails") def OnThumbnailCancel(self, event): if self.__threads.has_key("thumbnails"): self.__threads["thumbnails"].Stop() def OnSelectItem(self, event): self.__doc.ChangePage(event.GetIndex() + 1) def OnPageChanged(self, message): if self.view.page_list.GetSelectedItemCount() > 1: return self.view.page_preview.DisplayPage(message.data) def OnFileLoaded(self, message): if self.__progress: self.__progress.Destroy() self.__progress = None self.view.SetStatusText(u"Document loaded successfully.") self.view.page_list.DisplayEmptyThumbnails(message.data["pages"]) thumbs = self.__doc.GetThumbnails() t = self.view.page_list.DisplayThumbnails(thumbs) self.__threads["thumbnails"] = t self.view.statusbar.SetGaugeRange(message.data["pages"]) del self.__busy def OnDiffSizes(self, message): self.Message( u"In this PDF, width or height are not the same for " u"each page. This might cause problems if you export " u"pages of different dimensions into the same SWF file." ) def OnMenuOpen(self, event): dlg = wx.FileDialog(self.view, u"Choose PDF File:", style = wx.FD_CHANGE_DIR|wx.FD_OPEN, wildcard = u"PDF files (*.pdf)|*.pdf|all files (*.*)|*.*") if dlg.ShowModal() == wx.ID_OK: filename = dlg.GetPath() self.__Load(filename) def OnMenuSave(self, event, pages=None): defaultFile = self.__doc.lastsavefile allFiles = "*.*" if "wxMSW" in wx.PlatformInfo else "*" self.view.SetStatusText(u"") dlg = wx.FileDialog(self.view, u"Choose Save Filename:", style = wx.SAVE | wx.OVERWRITE_PROMPT, defaultFile=defaultFile, wildcard=u"SWF files (*.swf)|*.swf" "|all files (%s)|%s" % (allFiles, allFiles)) if dlg.ShowModal() == wx.ID_OK: self.__threads["progress"] = self.__doc.SaveSWF(dlg.GetPath(), pages, self.options) def OnUpdateUI(self, event): menubar = self.view.GetMenuBar() menubar.Enable(event.GetId(), self.__can_save) self.view.GetToolBar().EnableTool(event.GetId(), self.__can_save) def OnMenuSaveSelected(self, event): pages = [] page = self.view.page_list.GetFirstSelected() pages.append(page+1) while True: page = self.view.page_list.GetNextSelected(page) if page == -1: break pages.append(page+1) self.OnMenuSave(event, pages) def OnMenuExit(self, event): self.view.SetStatusText(u"Cleaning up...") self.__StopThreads() config = GetConfig() self.view.filehistory.Save(config) config.Flush() del self.view.filehistory dirpath = GetDataDir() data = self.options.quality_panel.pickle() try: f = file(os.path.join(dirpath, 'quality.pkl'), 'wb') pickle.dump(data, f) f.close() except IOError: pass try: f = file(os.path.join(dirpath, 'viewers.pkl'), 'wb') data = self.options.viewers_panel.pickle() pickle.dump(data, f) f.close() except Exception, e: pass self.view.Destroy() def OnMenuSelectAll(self, event): for i in range(0, self.view.page_list.GetItemCount()): self.view.page_list.Select(i, True) def OnMenuInvertSelection(self, event): for i in range(0, self.view.page_list.GetItemCount()): self.view.page_list.Select(i, not self.view.page_list.IsSelected(i)) def OnMenuSelectOdd(self, event): for i in range(0, self.view.page_list.GetItemCount()): self.view.page_list.Select(i, not bool(i%2)) def OnMenuSelectEven(self, event): for i in range(0, self.view.page_list.GetItemCount()): self.view.page_list.Select(i, bool(i%2)) def OnMenuOptions(self, event): self.options.ShowModal() def OnFit(self, event): self.__doc.Fit(self.view.page_preview.GetClientSize()) def OnZoom(self, event): zoom = { wx.ID_ZOOM_IN: .1, wx.ID_ZOOM_OUT: -.1, wx.ID_ZOOM_100: 1, } self.__doc.Zoom(zoom[event.GetId()]) def OnAbout(self, evt): AboutDialog(self.view) def __Load(self, filename): self.__can_save = True self.__StopThreads() self.view.SetStatusText(u"Loading document...") self.__busy = wx.BusyInfo(u"One moment please, " u"opening pdf document...") self.view.filehistory.AddFileToHistory(filename) wx.FutureCall(150, self.__doc.Load, filename) def __StopThreads(self): for n, t in self.__threads.items(): t.Stop() running = True while running: running = False for n, t in self.__threads.items(): running = running + t.IsRunning() time.sleep(0.1) def __ReadConfigurationFile(self): config = GetConfig() self.view.filehistory.Load(config) dirpath = GetDataDir() try: f = file(os.path.join(dirpath, 'quality.pkl'), 'rb') try: data = pickle.load(f) self.options.quality_panel.unpickle(data) except: self.Message( u"Error loading quality settings. " u"They will be reset to defaults. ") f.close() except IOError: pass try: f = file(os.path.join(dirpath, 'viewers.pkl'), 'rb') try: data = pickle.load(f) self.options.viewers_panel.unpickle(data) except: self.Message( u"Error loading viewers settings. " u"They will be reset to defaults. ") f.close() except IOError: pass def Message(self, message): dlg = wx.MessageDialog(self.view, message, style=wx.OK, pos=wx.DefaultPosition) dlg.ShowModal() dlg.Destroy()
def __init__(self): self.__doc = Document()
fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5722/fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 2434, 273, 4319, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 2434, 273, 4319, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def info(self): """Return information about the database as a dictionary.
def info(self, ddoc=None): """Return information about the database or design document as a dictionary. Without an argument, returns database information. With an argument, return information for the given design document.
def info(self): """Return information about the database as a dictionary.
5b167b7bdec7c8c4b35a7fb15abc9e7bf2f16d3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9373/5b167b7bdec7c8c4b35a7fb15abc9e7bf2f16d3e/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 12, 2890, 4672, 3536, 990, 1779, 2973, 326, 2063, 487, 279, 3880, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 12, 2890, 4672, 3536, 990, 1779, 2973, 326, 2063, 487, 279, 3880, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
linecache.getline(filename, lineno)), end=' ')
linecache.getline(filename, lineno)), end='')
def localtrace_trace(self, frame, why, arg): if why == "line": # record the file name and line number of every trace filename = frame.f_code.co_filename lineno = frame.f_lineno
dc50c696ab7e091cef5d88d98be44cef15efcc1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/dc50c696ab7e091cef5d88d98be44cef15efcc1f/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 5129, 67, 5129, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 315, 1369, 6877, 468, 1409, 326, 585, 508, 471, 980, 1300, 434, 3614, 2606, 1544, 273, 2623, 18, 74, 67, 710, 18, 2894, 67, 3459, 7586, 273, 2623, 18, 74, 67, 17782, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 5129, 67, 5129, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 315, 1369, 6877, 468, 1409, 326, 585, 508, 471, 980, 1300, 434, 3614, 2606, 1544, 273, 2623, 18, 74, 67, 710, 18, 2894, 67, 3459, 7586, 273, 2623, 18, 74, 67, 17782, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
with TemporaryDirectory('_chm2oeb', keep=True) as tdir:
with TemporaryDirectory('_snb2oeb', keep=True) as tdir:
def convert(self, stream, options, file_ext, log, accelerators): log.debug("Parsing SNB file...") snbFile = SNBFile() try: snbFile.Parse(stream) except: raise ValueError("Invalid SNB file") if not snbFile.IsValid(): log.debug("Invaild SNB file") raise ValueError("Invalid SNB file") log.debug("Handle meta data ...") from calibre.ebooks.conversion.plumber import create_oebbook oeb = create_oebbook(log, None, options, self, encoding=options.input_encoding, populate=False) meta = snbFile.GetFileStream('snbf/book.snbf') if meta != None: meta = etree.fromstring(meta) oeb.metadata.add('title', meta.find('.//head/name').text) oeb.metadata.add('creator', meta.find('.//head/author').text, attrib={'role':'aut'}) oeb.metadata.add('language', meta.find('.//head/language').text.lower().replace('_', '-')) oeb.metadata.add('creator', meta.find('.//head/generator').text) oeb.metadata.add('publisher', meta.find('.//head/publisher').text) cover = meta.find('.//head/cover') if cover != None and cover.text != None: oeb.guide.add('cover', 'Cover', cover.text)
57cd538894e99e8893e18294e4d750d2268e898b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/57cd538894e99e8893e18294e4d750d2268e898b/input.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 1407, 16, 702, 16, 585, 67, 408, 16, 613, 16, 15153, 264, 3062, 4672, 613, 18, 4148, 2932, 13963, 14204, 38, 585, 7070, 13, 4556, 70, 812, 273, 14204, 38, 812, 1435, 775, 30, 4556, 70, 812, 18, 3201, 12, 3256, 13, 1335, 30, 1002, 2068, 2932, 1941, 14204, 38, 585, 7923, 309, 486, 4556, 70, 812, 18, 20536, 13332, 613, 18, 4148, 2932, 3605, 69, 545, 14204, 38, 585, 7923, 1002, 2068, 2932, 1941, 14204, 38, 585, 7923, 613, 18, 4148, 2932, 3259, 2191, 501, 1372, 7923, 628, 26139, 266, 18, 73, 12567, 18, 20990, 18, 412, 1226, 1930, 752, 67, 15548, 70, 3618, 320, 24008, 273, 752, 67, 15548, 70, 3618, 12, 1330, 16, 599, 16, 702, 16, 365, 16, 2688, 33, 2116, 18, 2630, 67, 5999, 16, 6490, 33, 8381, 13, 2191, 273, 4556, 70, 812, 18, 967, 812, 1228, 2668, 87, 6423, 74, 19, 3618, 18, 87, 6423, 74, 6134, 309, 2191, 480, 599, 30, 2191, 273, 12031, 18, 2080, 1080, 12, 3901, 13, 320, 24008, 18, 4165, 18, 1289, 2668, 2649, 2187, 2191, 18, 4720, 2668, 18, 759, 1978, 19, 529, 16063, 955, 13, 320, 24008, 18, 4165, 18, 1289, 2668, 20394, 2187, 2191, 18, 4720, 2668, 18, 759, 1978, 19, 4161, 16063, 955, 16, 5885, 5899, 11, 4615, 11, 2497, 5854, 11, 6792, 320, 24008, 18, 4165, 18, 1289, 2668, 4923, 2187, 2191, 18, 4720, 2668, 18, 759, 1978, 19, 4923, 16063, 955, 18, 8167, 7675, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 1407, 16, 702, 16, 585, 67, 408, 16, 613, 16, 15153, 264, 3062, 4672, 613, 18, 4148, 2932, 13963, 14204, 38, 585, 7070, 13, 4556, 70, 812, 273, 14204, 38, 812, 1435, 775, 30, 4556, 70, 812, 18, 3201, 12, 3256, 13, 1335, 30, 1002, 2068, 2932, 1941, 14204, 38, 585, 7923, 309, 486, 4556, 70, 812, 18, 20536, 13332, 613, 18, 4148, 2932, 3605, 69, 545, 14204, 38, 585, 7923, 1002, 2068, 2932, 1941, 14204, 38, 585, 7923, 613, 18, 4148, 2932, 3259, 2191, 501, 1372, 7923, 628, 26139, 266, 18, 73, 12567, 18, 20990, 18, 412, 1226, 1930, 752, 67, 15548, 70, 3618, 320, 24008, 273, 752, 67, 15548, 70, 3618, 12, 2 ]
raise ElementError, "connection attribute not set"
raise ligolw.ElementError, "connection attribute not set"
def __init__(self, *attrs): """ Initialize """ table.Table.__init__(self, *attrs) self.dbtablename = table.StripTableName(self.getAttribute(u"Name")) try: # copy metadata from lsctables cls = lsctables.TableByName[self.dbtablename] self.tableName = cls.tableName self.validcolumns = cls.validcolumns self.constraints = cls.constraints self.ids = cls.ids self.RowType = cls.RowType except: # unknown table pass if self.connection is None: raise ElementError, "connection attribute not set" self.cursor = self.connection.cursor()
880f2a9921d0ec12f209a5499115043a98b51f30 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/880f2a9921d0ec12f209a5499115043a98b51f30/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 7039, 4672, 3536, 9190, 3536, 1014, 18, 1388, 16186, 2738, 972, 12, 2890, 16, 380, 7039, 13, 365, 18, 1966, 7032, 14724, 273, 1014, 18, 16632, 7147, 12, 2890, 18, 588, 1499, 12, 89, 6, 461, 6, 3719, 775, 30, 468, 1610, 1982, 628, 7180, 299, 1538, 2028, 273, 7180, 299, 1538, 18, 1388, 5911, 63, 2890, 18, 1966, 7032, 14724, 65, 365, 18, 18033, 273, 2028, 18, 18033, 365, 18, 877, 5112, 273, 2028, 18, 877, 5112, 365, 18, 11967, 273, 2028, 18, 11967, 365, 18, 2232, 273, 2028, 18, 2232, 365, 18, 1999, 559, 273, 2028, 18, 1999, 559, 1335, 30, 468, 5917,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 7039, 4672, 3536, 9190, 3536, 1014, 18, 1388, 16186, 2738, 972, 12, 2890, 16, 380, 7039, 13, 365, 18, 1966, 7032, 14724, 273, 1014, 18, 16632, 7147, 12, 2890, 18, 588, 1499, 12, 89, 6, 461, 6, 3719, 775, 30, 468, 1610, 1982, 628, 7180, 299, 1538, 2028, 273, 7180, 299, 1538, 18, 1388, 5911, 63, 2890, 18, 1966, 7032, 14724, 65, 365, 18, 18033, 273, 2028, 18, 18033, 365, 18, 877, 5112, 273, 2028, 18, 877, 5112, 365, 18, 11967, 273, 2028, 18, 11967, 365, 18, 2232, 273, 2028, 18, 2232, 365, 18, 1999, 559, 273, 2028, 18, 1999, 559, 1335, 30, 468, 5917, 1014, 1342, 309, 365, 18, 4071, 2 ]
systems[parentId] = {'systems':[], 'ovf:order':'0', 'ovf:startDelay':'0'}
systems[parentId] = {'systems':[]}
def getOvfStartup(ovf): """ Returns a schedule representing the startup order for a virtual appliance from an ovf. @param ovf: Ovf file @type ovf: DOM Document @rtype: dictionary @return: startup dictionary of domains """ startupDict = dict(boot='', entities=dict()) systems = startupDict['entities'] # Create a list of all startup sections startupSections = Ovf.getNodes(ovf, (Ovf.hasTagName, 'StartupSection')) # Create an entry in startup dictionary for each entry in Startup sections for section in startupSections: for item in section.getElementsByTagName('Item'): attributes = [] for i in range(item.attributes.length): attr = item.attributes.item(i) if attr.name == 'ovf:id': sysId = attr.value elif(attr.name == 'ovf:order' or attr.name == 'ovf:startDelay'): attributes.append((attr.name, attr.value)) # Store attribute pairs in dicitonary virtualSys = dict(attributes) if not virtualSys.has_key('ovf:order'): virtualSys['ovf:order'] = '0' if not virtualSys.has_key('ovf:startDelay'): virtualSys['ovf:startDelay'] = '0' parentId = section.parentNode.getAttribute('ovf:id') systems[parentId] = dict(systems=[]) systems[parentId]['systems'].append(sysId) systems[sysId] = virtualSys # Create a default entry for each system not in a startup section for each in Ovf.getNodes(ovf, (Ovf.hasTagName, 'VirtualSystem')): sysId = each.getAttribute('ovf:id') # If parentNode is Envelope, set as root system # else, trace back and fill in missing parent info if each.parentNode.tagName == 'Envelope': startupDict['boot'] = sysId systems[sysId] = {'ovf:order':'0', 'ovf:startDelay':'0'} else: parent = each.parentNode parentId = parent.getAttribute('ovf:id') if systems.has_key(parentId): systems[parentId]['systems'].append(sysId) systems[sysId] = {'ovf:order':'0', 'ovf:startDelay':'0'} while(not systems.has_key(parentId)): systems[parentId] = {'systems':[], 'ovf:order':'0', 'ovf:startDelay':'0'} systems[parentId]['systems'].append(sysId) systems[sysId] = {'ovf:order':'0', 'ovf:startDelay':'0'} # Increment, if not at root if parent.parentNode.tagName == 'Envelope': startupDict['boot'] = parentId else: parent = parent.parentNode sysId = parentId parentId = parent.getAttribute('ovf:id') return startupDict
4421898065f2fcf9432304ad23ac78980de13c30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9789/4421898065f2fcf9432304ad23ac78980de13c30/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17971, 90, 74, 22178, 12, 1527, 74, 4672, 3536, 2860, 279, 4788, 5123, 326, 11850, 1353, 364, 279, 5024, 513, 10671, 628, 392, 23094, 74, 18, 225, 632, 891, 23094, 74, 30, 531, 90, 74, 585, 632, 723, 23094, 74, 30, 4703, 4319, 225, 632, 86, 723, 30, 3880, 632, 2463, 30, 11850, 3880, 434, 10128, 3536, 11850, 5014, 273, 2065, 12, 7137, 2218, 2187, 5140, 33, 1576, 10756, 225, 14908, 273, 11850, 5014, 3292, 9996, 3546, 225, 468, 1788, 279, 666, 434, 777, 11850, 7178, 11850, 15965, 273, 531, 90, 74, 18, 588, 3205, 12, 1527, 74, 16, 261, 51, 90, 74, 18, 5332, 8520, 16, 296, 22178, 5285, 26112, 225, 468, 1788, 392, 1241, 316, 11850, 3880, 364, 1517, 1241, 316, 3603, 416, 7178, 364, 2442, 316, 11850, 15965, 30, 364, 761, 316, 2442, 18, 588, 3471, 10401, 2668, 1180, 11, 4672, 1677, 273, 5378, 364, 277, 316, 1048, 12, 1726, 18, 4350, 18, 2469, 4672, 1604, 273, 761, 18, 4350, 18, 1726, 12, 77, 13, 309, 1604, 18, 529, 422, 296, 1527, 74, 30, 350, 4278, 2589, 548, 273, 1604, 18, 1132, 1327, 12, 1747, 18, 529, 422, 296, 1527, 74, 30, 1019, 11, 578, 1604, 18, 529, 422, 296, 1527, 74, 30, 1937, 6763, 11, 4672, 1677, 18, 6923, 12443, 1747, 18, 529, 16, 1604, 18, 1132, 3719, 225, 468, 4994, 1566, 5574, 316, 11681, 26949, 814, 5024, 12712, 273, 2065, 12, 4350, 13, 309, 486, 5024, 12712, 18, 5332, 67, 856, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17971, 90, 74, 22178, 12, 1527, 74, 4672, 3536, 2860, 279, 4788, 5123, 326, 11850, 1353, 364, 279, 5024, 513, 10671, 628, 392, 23094, 74, 18, 225, 632, 891, 23094, 74, 30, 531, 90, 74, 585, 632, 723, 23094, 74, 30, 4703, 4319, 225, 632, 86, 723, 30, 3880, 632, 2463, 30, 11850, 3880, 434, 10128, 3536, 11850, 5014, 273, 2065, 12, 7137, 2218, 2187, 5140, 33, 1576, 10756, 225, 14908, 273, 11850, 5014, 3292, 9996, 3546, 225, 468, 1788, 279, 666, 434, 777, 11850, 7178, 11850, 15965, 273, 531, 90, 74, 18, 588, 3205, 12, 1527, 74, 16, 261, 51, 90, 74, 18, 5332, 8520, 16, 296, 22178, 5285, 26112, 225, 468, 1788, 392, 1241, 316, 11850, 2 ]
self._readable = "r" in mode self._writable = "w" in mode self._seekable = False
def __init__(self, sock, mode): assert mode in ("r", "w", "rw") self._sock = sock self._mode = mode self._readable = "r" in mode self._writable = "w" in mode self._seekable = False
ef17c16b366b09a78dfe5fc5171fe2b0b29f60e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ef17c16b366b09a78dfe5fc5171fe2b0b29f60e5/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 1965, 4672, 1815, 1965, 316, 7566, 86, 3113, 315, 91, 3113, 315, 21878, 7923, 365, 6315, 15031, 273, 7313, 365, 6315, 3188, 273, 1965, 365, 6315, 11018, 273, 315, 86, 6, 316, 1965, 365, 6315, 15699, 273, 315, 91, 6, 316, 1965, 365, 6315, 16508, 429, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._render(gc, array([x+width/2]), min, bar_min, center, bar_max, max)
self._render(gc, array([x-width/4]), array([x+width/4]), min, bar_min, center, bar_max, max)
def _render_icon(self, gc, x, y, width, height): min = array([y + 1]) max = array([y + height - 1]) bar_min = array([y + height / 3]) bar_max = array([y + height - (height / 3)]) center = array([y + (height / 2)]) self._render(gc, array([x+width/2]), min, bar_min, center, bar_max, max)
cf4a756665182c1966da52cabf5a38a190cded14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/cf4a756665182c1966da52cabf5a38a190cded14/base_candle_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 3950, 12, 2890, 16, 8859, 16, 619, 16, 677, 16, 1835, 16, 2072, 4672, 1131, 273, 526, 3816, 93, 397, 404, 5717, 943, 273, 526, 3816, 93, 397, 2072, 300, 404, 5717, 4653, 67, 1154, 273, 526, 3816, 93, 397, 2072, 342, 890, 5717, 4653, 67, 1896, 273, 526, 3816, 93, 397, 2072, 300, 261, 4210, 342, 890, 13, 5717, 4617, 273, 526, 3816, 93, 397, 261, 4210, 342, 576, 13, 5717, 365, 6315, 5902, 12, 13241, 16, 526, 3816, 92, 15, 2819, 19, 22, 65, 3631, 1131, 16, 4653, 67, 1154, 16, 4617, 16, 4653, 67, 1896, 16, 943, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 3950, 12, 2890, 16, 8859, 16, 619, 16, 677, 16, 1835, 16, 2072, 4672, 1131, 273, 526, 3816, 93, 397, 404, 5717, 943, 273, 526, 3816, 93, 397, 2072, 300, 404, 5717, 4653, 67, 1154, 273, 526, 3816, 93, 397, 2072, 342, 890, 5717, 4653, 67, 1896, 273, 526, 3816, 93, 397, 2072, 300, 261, 4210, 342, 890, 13, 5717, 4617, 273, 526, 3816, 93, 397, 261, 4210, 342, 576, 13, 5717, 365, 6315, 5902, 12, 13241, 16, 526, 3816, 92, 15, 2819, 19, 22, 65, 3631, 1131, 16, 4653, 67, 1154, 16, 4617, 16, 4653, 67, 1896, 16, 943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sql_layer = gdaltest.ds.ExecuteSQL(
sql_lyr = gdaltest.ds.ExecuteSQL(
def ogr_join_1(): gdaltest.ds = ogr.Open( 'data' ) sql_layer = gdaltest.ds.ExecuteSQL( 'SELECT * FROM poly LEFT JOIN idlink ON poly.eas_id = idlink.eas_id' ) count = sql_layer.GetFeatureCount() if count != 10: gdaltest.post_reason( 'Got wrong count with GetFeatureCount() - %d, expecting 10' % count ) return 'fail' return 'success'
7bbd73cda38e785fdd60801d1f9ef3632893cd8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10289/7bbd73cda38e785fdd60801d1f9ef3632893cd8d/ogr_join_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 5701, 67, 21, 13332, 15551, 2390, 395, 18, 2377, 273, 320, 3197, 18, 3678, 12, 296, 892, 11, 262, 225, 1847, 67, 715, 86, 273, 15551, 2390, 395, 18, 2377, 18, 5289, 3997, 12, 296, 4803, 380, 4571, 7573, 9686, 7645, 612, 1232, 6229, 7573, 18, 73, 345, 67, 350, 273, 612, 1232, 18, 73, 345, 67, 350, 11, 262, 225, 1056, 273, 1847, 67, 6363, 18, 967, 4595, 1380, 1435, 309, 1056, 480, 1728, 30, 15551, 2390, 395, 18, 2767, 67, 10579, 12, 296, 15617, 7194, 1056, 598, 968, 4595, 1380, 1435, 300, 738, 72, 16, 17012, 1728, 11, 738, 1056, 262, 327, 296, 6870, 11, 225, 327, 296, 4768, 11, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 5701, 67, 21, 13332, 15551, 2390, 395, 18, 2377, 273, 320, 3197, 18, 3678, 12, 296, 892, 11, 262, 225, 1847, 67, 715, 86, 273, 15551, 2390, 395, 18, 2377, 18, 5289, 3997, 12, 296, 4803, 380, 4571, 7573, 9686, 7645, 612, 1232, 6229, 7573, 18, 73, 345, 67, 350, 273, 612, 1232, 18, 73, 345, 67, 350, 11, 262, 225, 1056, 273, 1847, 67, 6363, 18, 967, 4595, 1380, 1435, 309, 1056, 480, 1728, 30, 15551, 2390, 395, 18, 2767, 67, 10579, 12, 296, 15617, 7194, 1056, 598, 968, 4595, 1380, 1435, 300, 738, 72, 16, 17012, 1728, 11, 738, 1056, 262, 327, 296, 6870, 11, 225, 327, 296, 4768, 11, 225, 2, -100, -100 ]
@echo
def label_adjunction(node): node[1].category = ptb_to_cat(node[1], return_none_when_unmatched=True) or node.category node.kids[1] = label(node[1]) node[0].category = featureless(node.category) / featureless(node[1].category) node.kids[0] = label(node[0]) return node
ba3220a2c6b52f045b539ed94d094a73aa2cc2b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8383/ba3220a2c6b52f045b539ed94d094a73aa2cc2b9/catlab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 67, 13829, 418, 12, 2159, 4672, 756, 63, 21, 8009, 4743, 273, 5818, 70, 67, 869, 67, 2574, 12, 2159, 63, 21, 6487, 327, 67, 6102, 67, 13723, 67, 318, 11073, 33, 5510, 13, 578, 756, 18, 4743, 756, 18, 79, 2232, 63, 21, 65, 273, 1433, 12, 2159, 63, 21, 5717, 225, 756, 63, 20, 8009, 4743, 273, 2572, 2656, 12, 2159, 18, 4743, 13, 342, 2572, 2656, 12, 2159, 63, 21, 8009, 4743, 13, 756, 18, 79, 2232, 63, 20, 65, 273, 1433, 12, 2159, 63, 20, 5717,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 67, 13829, 418, 12, 2159, 4672, 756, 63, 21, 8009, 4743, 273, 5818, 70, 67, 869, 67, 2574, 12, 2159, 63, 21, 6487, 327, 67, 6102, 67, 13723, 67, 318, 11073, 33, 5510, 13, 578, 756, 18, 4743, 756, 18, 79, 2232, 63, 21, 65, 273, 1433, 12, 2159, 63, 21, 5717, 225, 756, 63, 20, 8009, 4743, 273, 2572, 2656, 12, 2159, 18, 4743, 13, 342, 2572, 2656, 12, 2159, 63, 21, 8009, 4743, 13, 756, 18, 79, 2232, 63, 20, 65, 273, 1433, 12, 2159, 63, 20, 5717, 225, 327, 756, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
idc = id(c)
idc = compute_unique_id(c)
def run_once(): a = A() ida = id(a) b = B() idb = id(b) c = C() idc = id(c) llop.gc__collect(lltype.Void) llop.gc__collect(lltype.Void) llop.gc__collect(lltype.Void) return ida, idb, idc
8624ed2e4cb7a9fc5cd3578b6a083738d4e4e7e9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/8624ed2e4cb7a9fc5cd3578b6a083738d4e4e7e9/test_boehm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 13332, 279, 273, 432, 1435, 612, 69, 273, 612, 12, 69, 13, 324, 273, 605, 1435, 612, 70, 273, 612, 12, 70, 13, 276, 273, 385, 1435, 612, 71, 273, 3671, 67, 6270, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 13332, 279, 273, 432, 1435, 612, 69, 273, 612, 12, 69, 13, 324, 273, 605, 1435, 612, 70, 273, 612, 12, 70, 13, 276, 273, 385, 1435, 612, 71, 273, 3671, 67, 6270, 67, 350, 12, 71, 13, 328, 16884, 18, 13241, 972, 14676, 12, 2906, 723, 18, 19038, 13, 328, 16884, 18, 13241, 972, 14676, 12, 2906, 723, 18, 19038, 13, 328, 16884, 18, 13241, 972, 14676, 12, 2906, 723, 18, 19038, 13, 327, 612, 69, 16, 612, 70, 16, 612, 71, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.log.verbose( 'Processing TaskQueueID:', taskQueueID )
self.log.verbose( 'Processing TaskQueue', taskQueueID )
def execute(self): """Main Agent code: 1.- Query TaskQueueDB for existing TQs 2.- Add their Priorities 3.- Submit pilots """
4fc45f848c73ccd70e55d2692551954ac266f79d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4fc45f848c73ccd70e55d2692551954ac266f79d/TaskQueueDir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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 6376, 8669, 981, 30, 404, 18, 17, 2770, 3837, 3183, 2290, 364, 2062, 399, 53, 87, 576, 18, 17, 1436, 3675, 30326, 1961, 890, 18, 17, 17320, 24970, 6968, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
container_type.size = values.get('fized-size')
if (isinstance(node, Parameter) and node.type.name == 'utf8' and self._guess_direction(node) == PARAM_DIRECTION_IN): container_type.element_type = 'int8' container_type.size = array_values.get('fized-size')
def _parse_array(self, parent, node, options): array_opt = options.get('array') if array_opt: values = array_opt.all() else: values = {} container_type = Array(node.type.ctype, node.type.name) if 'zero-terminated' in values: container_type.zeroterminated = values.get( 'zero-terminated') == '1' length = values.get('length') if length is not None: param_index = parent.get_parameter_index(length) container_type.length_param_index = param_index container_type.size = values.get('fized-size') return container_type
3e466d06a81200d7ff3a7958b8a5fea52caf5b12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2770/3e466d06a81200d7ff3a7958b8a5fea52caf5b12/annotationparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 1126, 12, 2890, 16, 982, 16, 756, 16, 702, 4672, 526, 67, 3838, 273, 702, 18, 588, 2668, 1126, 6134, 309, 526, 67, 3838, 30, 924, 273, 526, 67, 3838, 18, 454, 1435, 469, 30, 924, 273, 2618, 1478, 67, 723, 273, 1510, 12, 2159, 18, 723, 18, 12387, 16, 756, 18, 723, 18, 529, 13, 309, 296, 7124, 17, 29133, 11, 316, 924, 30, 1478, 67, 723, 18, 24355, 352, 1035, 7458, 273, 924, 18, 588, 12, 296, 7124, 17, 29133, 6134, 422, 296, 21, 11, 769, 273, 924, 18, 588, 2668, 2469, 6134, 309, 769, 353, 486, 599, 30, 579, 67, 1615, 273, 982, 18, 588, 67, 6775, 67, 1615, 12, 2469, 13, 1478, 67, 723, 18, 2469, 67, 891, 67, 1615, 273, 579, 67, 1615, 565, 309, 261, 291, 1336, 12, 2159, 16, 5498, 13, 471, 756, 18, 723, 18, 529, 422, 296, 3158, 28, 11, 471, 365, 6315, 20885, 67, 9855, 12, 2159, 13, 422, 4655, 67, 30516, 67, 706, 4672, 225, 1478, 67, 723, 18, 2956, 67, 723, 273, 296, 474, 28, 11, 1478, 67, 723, 18, 1467, 273, 526, 67, 2372, 18, 588, 2668, 74, 1235, 17, 1467, 6134, 327, 1478, 67, 723, 2, 0, 0, 0, 0, 0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, 526, 67, 3838, 18, 454, 1435, 469, 30, 924, 273, 2618, 1478, 67, 723, 273, 1510, 12, 2159, 18, 723, 18, 12387, 16, 756, 18, 723, 18, 529, 13, 309, 296, 7124, 17, 29133, 11, 316, 924, 30, 1478, 67, 723, 18, 24355, 352, 1035, 7458, 273, 924, 18, 588, 12, 296, 7124, 17, 29133, 6134, 422, 296, 21, 11, 769, 273, 924, 18, 588, 2668, 2469, 6134, 309, 769, 353, 486, 599, 30, 579, 67, 1615, 273, 982, 18, 588, 67, 6775, 67, 1615, 12, 2469, 13, 2 ]
self.assert_(mailbox.MHMessage(msg_mboxMMDF).get_sequences() \ == result)
self.assertEqual(mailbox.MHMessage(msg_mboxMMDF).get_sequences(), result)
def test_mboxmmdf_to_mh(self): # Convert mboxMessage and MMDFMessage to MHMessage for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage): msg_mboxMMDF = class_(_sample_message) pairs = (('R', []), ('O', ['unseen']), ('D', ['unseen']), ('F', ['unseen', 'flagged']), ('A', ['unseen', 'replied']), ('RODFA', ['replied', 'flagged'])) for setting, result in pairs: msg_mboxMMDF.set_flags(setting) self.assert_(mailbox.MHMessage(msg_mboxMMDF).get_sequences() \ == result)
7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 81, 2147, 81, 1264, 74, 67, 869, 67, 81, 76, 12, 2890, 4672, 468, 4037, 312, 2147, 1079, 471, 18295, 4577, 1079, 358, 490, 44, 1079, 364, 667, 67, 316, 261, 4408, 2147, 18, 81, 2147, 1079, 16, 14187, 18, 8206, 4577, 1079, 4672, 1234, 67, 81, 2147, 8206, 4577, 273, 667, 67, 24899, 6358, 67, 2150, 13, 5574, 273, 261, 2668, 54, 2187, 5378, 3631, 7707, 51, 2187, 10228, 318, 15156, 3546, 3631, 7707, 40, 2187, 10228, 318, 15156, 3546, 3631, 7707, 42, 2187, 10228, 318, 15156, 2187, 296, 6420, 2423, 3546, 3631, 7707, 37, 2187, 10228, 318, 15156, 2187, 296, 266, 3110, 3546, 3631, 7707, 54, 1212, 2046, 2187, 10228, 266, 3110, 2187, 296, 6420, 2423, 3546, 3719, 364, 3637, 16, 563, 316, 5574, 30, 1234, 67, 81, 2147, 8206, 4577, 18, 542, 67, 7133, 12, 8920, 13, 365, 18, 11231, 67, 12, 4408, 2147, 18, 49, 44, 1079, 12, 3576, 67, 81, 2147, 8206, 4577, 2934, 588, 67, 17190, 1435, 521, 422, 563, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 81, 2147, 81, 1264, 74, 67, 869, 67, 81, 76, 12, 2890, 4672, 468, 4037, 312, 2147, 1079, 471, 18295, 4577, 1079, 358, 490, 44, 1079, 364, 667, 67, 316, 261, 4408, 2147, 18, 81, 2147, 1079, 16, 14187, 18, 8206, 4577, 1079, 4672, 1234, 67, 81, 2147, 8206, 4577, 273, 667, 67, 24899, 6358, 67, 2150, 13, 5574, 273, 261, 2668, 54, 2187, 5378, 3631, 7707, 51, 2187, 10228, 318, 15156, 3546, 3631, 7707, 40, 2187, 10228, 318, 15156, 3546, 3631, 7707, 42, 2187, 10228, 318, 15156, 2187, 296, 6420, 2423, 3546, 3631, 7707, 37, 2187, 10228, 318, 15156, 2187, 296, 266, 3110, 3546, 3631, 7707, 54, 1212, 2046, 2187, 10228, 266, 3110, 2187, 296, 2 ]
_unreachable_names[name] = 2
_unreachable_names[name] = 1
def _unreachable_name_for(val_doc, docindex): assert isinstance(val_doc, ValueDoc) # [xx] (when) does this help? if (isinstance(val_doc, ModuleDoc) and len(val_doc.canonical_name)==1 and val_doc.package is None): for root_val in docindex.root: if root_val.canonical_name == val_doc.canonical_name: if root_val != val_doc: log.error("Name conflict: %r vs %r" % (val_doc, root_val)) break else: return val_doc.canonical_name, -1000 # Assign it an 'unreachable' name: if (val_doc.pyval is not UNKNOWN and hasattr(val_doc.pyval, '__name__')): try: name = DottedName(DottedName.UNREACHABLE, val_doc.pyval.__name__) except DottedName.InvalidDottedName: name = DottedName(DottedName.UNREACHABLE) else: name = DottedName(DottedName.UNREACHABLE) # Uniquify the name. if name in _unreachable_names: name = DottedName('%s-%s' % (name, _unreachable_names[name])) _unreachable_names[name] += 1 else: _unreachable_names[name] = 2 return name, -10000
0e091a39f32567a1c2b81c3ddf7af2d554a40739 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/0e091a39f32567a1c2b81c3ddf7af2d554a40739/docbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 17246, 67, 529, 67, 1884, 12, 1125, 67, 2434, 16, 997, 1615, 4672, 1815, 1549, 12, 1125, 67, 2434, 16, 1445, 1759, 13, 225, 468, 306, 5279, 65, 261, 13723, 13, 1552, 333, 2809, 35, 309, 261, 291, 1336, 12, 1125, 67, 2434, 16, 5924, 1759, 13, 471, 562, 12, 1125, 67, 2434, 18, 18288, 67, 529, 13, 631, 21, 471, 1244, 67, 2434, 18, 5610, 353, 599, 4672, 364, 1365, 67, 1125, 316, 997, 1615, 18, 3085, 30, 309, 1365, 67, 1125, 18, 18288, 67, 529, 422, 1244, 67, 2434, 18, 18288, 67, 529, 30, 309, 1365, 67, 1125, 480, 1244, 67, 2434, 30, 613, 18, 1636, 2932, 461, 7546, 30, 738, 86, 6195, 738, 86, 6, 738, 261, 1125, 67, 2434, 16, 1365, 67, 1125, 3719, 898, 469, 30, 327, 1244, 67, 2434, 18, 18288, 67, 529, 16, 300, 18088, 225, 468, 12093, 518, 392, 296, 318, 17246, 11, 508, 30, 309, 261, 1125, 67, 2434, 18, 2074, 1125, 353, 486, 13598, 471, 3859, 12, 1125, 67, 2434, 18, 2074, 1125, 16, 4940, 529, 7250, 3719, 30, 775, 30, 508, 273, 17502, 2344, 461, 12, 10412, 2344, 461, 18, 2124, 862, 18133, 2782, 16, 1244, 67, 2434, 18, 2074, 1125, 16186, 529, 972, 13, 1335, 17502, 2344, 461, 18, 1941, 10412, 2344, 461, 30, 508, 273, 17502, 2344, 461, 12, 10412, 2344, 461, 18, 2124, 862, 18133, 2782, 13, 469, 30, 508, 273, 17502, 2344, 461, 12, 10412, 2344, 461, 18, 2124, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 17246, 67, 529, 67, 1884, 12, 1125, 67, 2434, 16, 997, 1615, 4672, 1815, 1549, 12, 1125, 67, 2434, 16, 1445, 1759, 13, 225, 468, 306, 5279, 65, 261, 13723, 13, 1552, 333, 2809, 35, 309, 261, 291, 1336, 12, 1125, 67, 2434, 16, 5924, 1759, 13, 471, 562, 12, 1125, 67, 2434, 18, 18288, 67, 529, 13, 631, 21, 471, 1244, 67, 2434, 18, 5610, 353, 599, 4672, 364, 1365, 67, 1125, 316, 997, 1615, 18, 3085, 30, 309, 1365, 67, 1125, 18, 18288, 67, 529, 422, 1244, 67, 2434, 18, 18288, 67, 529, 30, 309, 1365, 67, 1125, 480, 1244, 67, 2434, 30, 613, 18, 1636, 2932, 461, 7546, 30, 738, 86, 6195, 738, 2 ]
subjectMatch = re.search('\s*\[Bug (\d+)\]\s+(New:)?',
subjectMatch = re.search('\s*\[\w+ (?P<bug_id>\d+)\]\s+(?P<new>New:)?',
def __init__(self, message): # Make sure this is actually a bug mail if not message['X-Bugzilla-Product']: raise NotBugmailException, 'Email lacks X-Bugzilla-Product header' # Initialize fields used lower that aren't always set self.dupe_of = None self.attach_id = None
b5104f10e1adbd9066199d0f1152edc65ef0543a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3483/b5104f10e1adbd9066199d0f1152edc65ef0543a/bugmail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 468, 4344, 3071, 333, 353, 6013, 279, 7934, 4791, 309, 486, 883, 3292, 60, 17, 19865, 15990, 17, 4133, 3546, 30, 1002, 2288, 19865, 4408, 503, 16, 296, 4134, 328, 22098, 1139, 17, 19865, 15990, 17, 4133, 1446, 11, 468, 9190, 1466, 1399, 2612, 716, 11526, 1404, 3712, 444, 365, 18, 2544, 347, 67, 792, 273, 599, 365, 18, 7331, 67, 350, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 468, 4344, 3071, 333, 353, 6013, 279, 7934, 4791, 309, 486, 883, 3292, 60, 17, 19865, 15990, 17, 4133, 3546, 30, 1002, 2288, 19865, 4408, 503, 16, 296, 4134, 328, 22098, 1139, 17, 19865, 15990, 17, 4133, 1446, 11, 468, 9190, 1466, 1399, 2612, 716, 11526, 1404, 3712, 444, 365, 18, 2544, 347, 67, 792, 273, 599, 365, 18, 7331, 67, 350, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lines.append("%s = %s" % (option, param.valueToText(val)))
if param is None: lines.append("%s = %s" % (option, val)) else: lines.append("%s = %s" % (option, param.valueToText(val)))
def configToText(): if GlobalPrefs.debuglevel > 0: dprint("Saving user configuration: %s" % GlobalPrefs.user) lines = ["# Automatically generated file! Do not edit -- use one of the following", "# files instead:", "#", "# peppy.cfg For general configuration on all platforms", "# [platform].cfg For configuration on a specific platform, where [platform]", "# is one of the platforms returned by the command", "# python -c 'import platform; print platform.system()'", "# [machine].cfg For configuration on a specific machine, where [machine]", "# is the hostname as returned by the command", "# python -c 'import platform; print platform.node()'", "", ] sections = GlobalPrefs.user.keys() sections.sort() for section in sections: options = GlobalPrefs.user[section] printed_section = False # flag to indicate if need to print header if options: keys = options.keys() keys.sort() for option in keys: val = options[option] param = GlobalPrefs.findParam(section, option) if param is None: dprint("Found a None param: %s[%s] = %s" % (section, option, val)) continue if not printed_section: lines.append("[%s]" % section) printed_section = True lines.append("%s = %s" % (option, param.valueToText(val))) lines.append("") text = os.linesep.join(lines) if GlobalPrefs.debuglevel > 0: dprint(text) return text
9db011ea9e65c409bb3ab100c0af1033e3012eb0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/9db011ea9e65c409bb3ab100c0af1033e3012eb0/userparams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 774, 1528, 13332, 309, 8510, 1386, 2556, 18, 4148, 2815, 405, 374, 30, 302, 1188, 2932, 24660, 729, 1664, 30, 738, 87, 6, 738, 8510, 1386, 2556, 18, 1355, 13, 2362, 273, 8247, 7, 11809, 20271, 4374, 585, 5, 225, 2256, 486, 3874, 1493, 999, 1245, 434, 326, 3751, 3113, 6619, 1390, 3560, 2773, 16, 6619, 3113, 6619, 293, 881, 2074, 18, 7066, 3639, 2457, 7470, 1664, 603, 777, 17422, 3113, 6619, 306, 9898, 8009, 7066, 282, 2457, 1664, 603, 279, 2923, 4072, 16, 1625, 306, 9898, 65, 3113, 6619, 5375, 353, 1245, 434, 326, 17422, 2106, 635, 326, 1296, 3113, 6619, 5375, 5790, 300, 71, 296, 5666, 4072, 31, 1172, 4072, 18, 4299, 11866, 3113, 6619, 306, 9149, 8009, 7066, 565, 2457, 1664, 603, 279, 2923, 5228, 16, 1625, 306, 9149, 65, 3113, 6619, 5375, 353, 326, 5199, 487, 2106, 635, 326, 1296, 3113, 6619, 5375, 5790, 300, 71, 296, 5666, 4072, 31, 1172, 4072, 18, 2159, 11866, 3113, 23453, 308, 225, 7178, 273, 8510, 1386, 2556, 18, 1355, 18, 2452, 1435, 7178, 18, 3804, 1435, 364, 2442, 316, 7178, 30, 702, 273, 8510, 1386, 2556, 18, 1355, 63, 3464, 65, 14099, 67, 3464, 273, 1083, 468, 2982, 358, 10768, 309, 1608, 358, 1172, 1446, 309, 702, 30, 1311, 273, 702, 18, 2452, 1435, 1311, 18, 3804, 1435, 364, 1456, 316, 1311, 30, 1244, 273, 702, 63, 3482, 65, 579, 273, 8510, 1386, 2556, 18, 4720, 786, 12, 3464, 16, 1456, 13, 309, 579, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 774, 1528, 13332, 309, 8510, 1386, 2556, 18, 4148, 2815, 405, 374, 30, 302, 1188, 2932, 24660, 729, 1664, 30, 738, 87, 6, 738, 8510, 1386, 2556, 18, 1355, 13, 2362, 273, 8247, 7, 11809, 20271, 4374, 585, 5, 225, 2256, 486, 3874, 1493, 999, 1245, 434, 326, 3751, 3113, 6619, 1390, 3560, 2773, 16, 6619, 3113, 6619, 293, 881, 2074, 18, 7066, 3639, 2457, 7470, 1664, 603, 777, 17422, 3113, 6619, 306, 9898, 8009, 7066, 282, 2457, 1664, 603, 279, 2923, 4072, 16, 1625, 306, 9898, 65, 3113, 6619, 5375, 353, 1245, 434, 326, 17422, 2106, 635, 326, 1296, 3113, 6619, 5375, 5790, 300, 71, 296, 5666, 4072, 31, 1172, 4072, 18, 4299, 11866, 3113, 6619, 2 ]
if save and len(text) > 0:
if len(text) > 0:
def switch_mode(self, edit=False, save=False): self.edit = edit self.addButton.set_sensitive(edit) self.saveButton.set_property("visible", edit) self.editButton.set_property("visible", not edit) self.imagechangeButton.set_property("visible", edit) self.imageremoveButton.set_property("visible", edit and self.hasphoto) self.changeButton.set_property("visible", edit)
337e2628519817abde9df50dbed69c769add8439 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/337e2628519817abde9df50dbed69c769add8439/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 67, 3188, 12, 2890, 16, 3874, 33, 8381, 16, 1923, 33, 8381, 4672, 365, 18, 4619, 273, 3874, 365, 18, 1289, 3616, 18, 542, 67, 23481, 12, 4619, 13, 365, 18, 5688, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 13, 365, 18, 4619, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 486, 3874, 13, 365, 18, 2730, 3427, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 13, 365, 18, 381, 6817, 351, 841, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 471, 365, 18, 5332, 17232, 13, 365, 18, 3427, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 67, 3188, 12, 2890, 16, 3874, 33, 8381, 16, 1923, 33, 8381, 4672, 365, 18, 4619, 273, 3874, 365, 18, 1289, 3616, 18, 542, 67, 23481, 12, 4619, 13, 365, 18, 5688, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 13, 365, 18, 4619, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 486, 3874, 13, 365, 18, 2730, 3427, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 13, 365, 18, 381, 6817, 351, 841, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 471, 365, 18, 5332, 17232, 13, 365, 18, 3427, 3616, 18, 542, 67, 4468, 2932, 8613, 3113, 3874, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.UtcTimeStampField.__init__(self, 367) else quickfix.UtcTimeStampField.__init__(self, 367, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 6580, 27, 13, 469, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 6580, 27, 16, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 6580, 27, 13, 469, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 6580, 27, 16, 501, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
prog = 0 totLOC = 0 classCnt = 0 for module in modules: self.editor.statusBar.progress.SetValue(prog) prog = prog + 1 self.editor.statusBar.setHint('Parsing '+module+'...') if module[:7] != 'file://': print '%s skipped, only local files supported for Imports View' else: module = module[7:] try: f = open(module) except IOError: print "couldn't load %s" % module continue else: data = f.read() f.close() name = os.path.splitext(os.path.basename(module))[0] model = ModuleModel(data, name, self.editor, 1) relationships[name] = model.getModule() totLOC = totLOC + model.getModule().loc classCnt = classCnt + len(model.getModule().classes) print 'Project LOC: %d,\n%d classes in %d modules.'%(totLOC, classCnt, len(modules)) self.editor.statusBar.progress.SetValue(0) self.editor.statusBar.setHint('')
try: prog = 0 totLOC = 0 classCnt = 0 for module in modules: self.editor.statusBar.progress.SetValue(prog) prog = prog + 1 self.editor.setStatus('Parsing '+module+'...') if module[:7] != 'file://': print '%s skipped, only local files supported for Imports View' else: module = module[7:] try: f = open(module) except IOError: print "couldn't load %s" % module continue else: data = f.read() f.close() name = os.path.splitext(os.path.basename(module))[0] model = ModuleModel(data, name, self.editor, 1) relationships[name] = model.getModule() totLOC = totLOC + model.getModule().loc classCnt = classCnt + len(model.getModule().classes) print 'Project LOC: %d,\n%d classes in %d modules.'%(totLOC, classCnt, len(modules)) finally: self.editor.statusBar.progress.SetValue(0) self.editor.statusBar.setHint('')
def buildImportRelationshipDict(self, modules): relationships = {}
613f5e6731aa745aa436bc6c5ca54006fbca433c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/613f5e6731aa745aa436bc6c5ca54006fbca433c/PythonEditorModels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 5010, 8180, 5014, 12, 2890, 16, 4381, 4672, 11499, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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180, 5014, 12, 2890, 16, 4381, 4672, 11499, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
- Coefficients `q_0, q_1, ...` of `q(T)` as in Duursama [D]_
- Coefficients `q_0, q_1, ...` of `q(T)` as in Duursma [D]_
def sd_duursma_q(C,i,d0): r""" INPUT:
4dc974cc0477a4b87cefa14e19bab1ed6473070d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/4dc974cc0477a4b87cefa14e19bab1ed6473070d/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8349, 67, 2544, 25152, 2540, 67, 85, 12, 39, 16, 77, 16, 72, 20, 4672, 436, 8395, 12943, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8349, 67, 2544, 25152, 2540, 67, 85, 12, 39, 16, 77, 16, 72, 20, 4672, 436, 8395, 12943, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gLogger.error(errStr,srcDirectory)
gLogger.error( errStr, srcDirectory )
def __getDir(self,srcDirectory,destDirectory): """ Black magic contained within... """ filesGot = 0 sizeGot = 0
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1621, 12, 2890, 16, 4816, 2853, 16, 10488, 2853, 4672, 3536, 22467, 8146, 7542, 3470, 2777, 3536, 1390, 15617, 273, 374, 963, 15617, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1621, 12, 2890, 16, 4816, 2853, 16, 10488, 2853, 4672, 3536, 22467, 8146, 7542, 3470, 2777, 3536, 1390, 15617, 273, 374, 963, 15617, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
field['label'] = _('Owner')
field['label'] = _("Owner")
def _prepare_fields(self, req, ticket): context = Context.from_request(req, ticket.resource) fields = [] owner_field = None for field in ticket.fields: name = field['name'] type_ = field['type']
8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9366, 67, 2821, 12, 2890, 16, 1111, 16, 9322, 4672, 819, 273, 1772, 18, 2080, 67, 2293, 12, 3658, 16, 9322, 18, 3146, 13, 1466, 273, 5378, 3410, 67, 1518, 273, 599, 364, 652, 316, 9322, 18, 2821, 30, 508, 273, 652, 3292, 529, 3546, 618, 67, 273, 652, 3292, 723, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9366, 67, 2821, 12, 2890, 16, 1111, 16, 9322, 4672, 819, 273, 1772, 18, 2080, 67, 2293, 12, 3658, 16, 9322, 18, 3146, 13, 1466, 273, 5378, 3410, 67, 1518, 273, 599, 364, 652, 316, 9322, 18, 2821, 30, 508, 273, 652, 3292, 529, 3546, 618, 67, 273, 652, 3292, 723, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str += ' </DD>\n</DT></DL><hr>\n\n'
str += ' </dd>\n</dl>\n\n' str += '</td></tr></table>\n' str += '<br>\n'
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 7775, 1870, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 7775, 1870, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if partner.refuse_membership:
if partner_data.refuse_membership:
def _membership_state(self, cr, uid, ids, name, args, context=None): #the call to super is deactivated because of unresolved conflicts with the 5.0 version #of the membership module in state priorities. It is replaced by the ugly copy/paste below #res = super(res_partner, self)._membership_state(cr, uid, ids, name, args, context) res = {} for id in ids: res[id] = 'none' today = time.strftime('%Y-%m-%d') for id in ids: partner_data = self.browse(cr,uid,id) if partner_data.membership_cancel and today > partner_data.membership_cancel: res[id] = 'canceled' continue if partner.refuse_membership: res[id] = 'canceled' continue if partner_data.free_member: res[id] = 'free' continue
338251af20ddd97a2597d067ec163e4e5d64dc6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/338251af20ddd97a2597d067ec163e4e5d64dc6d/cci_membership.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19679, 67, 2019, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 468, 5787, 745, 358, 2240, 353, 443, 18836, 2724, 434, 20573, 14450, 598, 326, 1381, 18, 20, 1177, 468, 792, 326, 12459, 1605, 316, 919, 26783, 18, 2597, 353, 8089, 635, 326, 26920, 1610, 19, 29795, 5712, 468, 455, 273, 2240, 12, 455, 67, 31993, 16, 365, 2934, 67, 19679, 67, 2019, 12, 3353, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 13, 400, 273, 2618, 364, 612, 316, 3258, 30, 400, 63, 350, 65, 273, 296, 6102, 11, 10074, 273, 813, 18, 701, 9982, 29909, 61, 6456, 81, 6456, 72, 6134, 364, 612, 316, 3258, 30, 19170, 67, 892, 273, 365, 18, 25731, 12, 3353, 16, 1911, 16, 350, 13, 309, 19170, 67, 892, 18, 19679, 67, 10996, 471, 10074, 405, 19170, 67, 892, 18, 19679, 67, 10996, 30, 400, 63, 350, 65, 273, 296, 10996, 329, 11, 1324, 309, 19170, 67, 892, 18, 1734, 1202, 67, 19679, 30, 400, 63, 350, 65, 273, 296, 10996, 329, 11, 1324, 309, 19170, 67, 892, 18, 9156, 67, 5990, 30, 400, 63, 350, 65, 273, 296, 9156, 11, 1324, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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598, 326, 1381, 18, 20, 1177, 468, 792, 326, 12459, 1605, 316, 919, 26783, 18, 2597, 353, 8089, 635, 326, 26920, 1610, 19, 29795, 5712, 468, 455, 273, 2240, 12, 455, 67, 31993, 16, 365, 2934, 67, 19679, 67, 2019, 12, 3353, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 13, 400, 273, 2618, 364, 612, 316, 3258, 30, 400, 63, 350, 65, 273, 296, 6102, 11, 10074, 273, 813, 18, 701, 9982, 29909, 61, 6456, 81, 6456, 72, 6134, 364, 612, 316, 2 ]
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context)
if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context)
def min_mag(self, other, context=None): """Compares the values numerically with their sign ignored.""" other = _convert_other(other, raiseit=True)
e29d435e0cefb3e1772f6de0844e628aac3cf98e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/e29d435e0cefb3e1772f6de0844e628aac3cf98e/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 4527, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 19199, 326, 924, 6389, 1230, 598, 3675, 1573, 5455, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 16, 1002, 305, 33, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 4527, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 19199, 326, 924, 6389, 1230, 598, 3675, 1573, 5455, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 16, 1002, 305, 33, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
virial = zeros((3,3),float)
virial = numpy.zeros((3,3),float)
def read_castep_output(castep_file, cluster=None, abort=True): """Parse .castep file, and return Atoms object with positions, energy, forces, and possibly stress and atomic populations as well""" opened = False if type(castep_file) == type(''): opened = True castep_file = open(castep_file,'r') castep_output = [] got_header = False while True: line = castep_file.readline() if line == '': break castep_output.append(line) if line == ' | CCC AA SSS TTTTT EEEEE PPPP |\n': if got_header: break else: got_header = True if opened: castep_file.close() # NB: CASTEP doesn't always print 'Total time' run_time = -1.0 if abort: total_time = filter(lambda s: s.startswith('Total time'), castep_output) if total_time == []: has_converged = filter(lambda s: s.startswith('Total energy has converged'), castep_output) if has_converged == []: raise ValueError("castep didn't complete") else: run_time = float(total_time[0].split()[3]) # Now we should have contents of a valid .castep file in castep_output # First let's read the user parameters for this run from top of file param = CastepParam() param.read_from_castep_output(castep_output) # Next let's extract the lattice and atomic positions try: lattice_line = castep_output.index(' Unit Cell\n') except: raise ValueError('No unit cell found in castep file') lattice_lines = castep_output[lattice_line+3:lattice_line+6] R1 = map(float, lattice_lines[0].split()[0:3]) R2 = map(float, lattice_lines[1].split()[0:3]) R3 = map(float, lattice_lines[2].split()[0:3]) lattice = numpy.array([R1,R2,R3]) try: cell_first_line = castep_output.index(' Cell Contents\n') except ValueError: raise ValueError('No cell contents found in castep file') n_atoms = int(castep_output[cell_first_line+2].split()[-1]) if cluster is not None: # If we were passed in an Atoms object, construct mapping from # CASTEP (element, number) to original atom index cluster = cluster.copy() species_count = {} lookup = {} for i in range(cluster.n): el = cluster.species[i] if species_count.has_key(el): species_count[el] += 1 else: species_count[el] = 1 lookup[(el,species_count[el])] = i else: # Otherwise we make a new, empty Atoms object. Atoms will # be ordered as they are in .castep file. lookup = {} cluster = atoms.Atoms(n=n_atoms,lattice=lattice) cluster.params['castep_run_time'] = run_time cell_lines = castep_output[cell_first_line+10:cell_first_line+10+n_atoms] # Fill in species and fractional positions cluster.add_property('frac_pos',0.0,ncols=3) for i, line in enumerate(cell_lines): x1, el, num, u, v, w, x2 = line.split() num = int(num) if not (el,num) in lookup: lookup[(el,num)] = i cluster.species[lookup[(el,num)]] = el cluster.frac_pos[lookup[(el,num)]] = numpy.array(map(float, (u,v,w))) # Calculate cartesian postions from fractional positions cluster.pos[:] = numpy.array([ numpy.dot(cluster.frac_pos[i,:],cluster.lattice)for i in range(cluster.n) ]) if param.has_key('finite_basis_corr') and param['finite_basis_corr'].lower() == 'true': energy_lines = filter(lambda s: s.startswith('Total energy corrected for finite basis set'), \ castep_output) elif param.has_key('task') and param['task'].lower() == 'geometryoptimization': energy_lines = filter(lambda s: s.startswith(' BFGS: Final Enthalpy'), castep_output) else: energy_lines = filter(lambda s: s.startswith('Final energy') and not s.endswith('<- EDFT\n'), castep_output) if (len(energy_lines) == 0): if abort: raise ValueError('No total energy found in castep file') else: # Energy is second to last field on line (last is "eV") # Use last matching energy line in file cluster.params['energy'] = float(energy_lines[-1].split()[-2]) try: for fn in ('Forces', 'Symmetrised Forces'): force_start_lines = [s for s in castep_output if s.find('****** %s ******' % fn) != -1] if force_start_lines != []: break if force_start_lines == []: raise ValueError # Use last set of forces in file force_start = castep_output.index(force_start_lines[-1]) # Extract force lines from .castep file force_lines = castep_output[force_start+6:force_start+6+cluster.n] cluster.add_property('force',0.0,ncols=3) # Fill in the forces for i, line in enumerate(force_lines): line = line.replace('*','') # Remove the *s el, num_str, fx, fy, fz = line.split() num = int(num_str) cluster.force[lookup[(el,num)],:] = numpy.array((fx,fy,fz)) except ValueError, m: if abort: raise ValueError('No forces found in castep file %s: ' % m) # Have we calculated stress? if 'calculate_stress' in param and param['calculate_stress'].lower() == 'true': try: stress_start = castep_output.index(' ***************** Stress Tensor *****************\n') stress_lines = castep_output[stress_start+6:stress_start+9] virial = zeros((3,3),float) for i in range(3): star1, label, vx, vy, vz, star2 = stress_lines[i].split() virial[i,:] = numpy.array((vx,vy,vz)) # Convert to libAtoms units and append to comment line cluster.params['virial'] = ' '.join(map(str, reshape(virial/GPA,9))) except ValueError: if abort: raise ValueError('No stress tensor found in .castep file') # Have we calculated local populations and charges? if 'popn_calculate' in param and param['popn_calculate'].lower() == 'true': try: popn_start = castep_output.index(' Atomic Populations\n') popn_lines = castep_output[popn_start+4:popn_start+4+cluster.n] cluster.add_property('popn_s',0.0) cluster.add_property('popn_p',0.0) cluster.add_property('popn_d',0.0) cluster.add_property('popn_f',0.0) cluster.add_property('popn_total',0.0) cluster.add_property('popn_charge',0.0) for line in popn_lines: el, num_str, s, p, d, f, tot, charge = line.split() num = int(num_str) cluster.popn_s[lookup[(el,num)]] = float(s) cluster.popn_p[lookup[(el,num)]] = float(p) cluster.popn_d[lookup[(el,num)]] = float(d) cluster.popn_f[lookup[(el,num)]] = float(f) cluster.popn_total[lookup[(el,num)]] = float(tot) cluster.popn_charge[lookup[(el,num)]] = float(charge) except ValueError: if abort: raise ValueError('No populations found in castep file') return cluster
d674d25632085e5626bfc14696dcf8d3f70aa473 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/d674d25632085e5626bfc14696dcf8d3f70aa473/castep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4155, 881, 67, 2844, 12, 4155, 881, 67, 768, 16, 2855, 33, 7036, 16, 6263, 33, 5510, 4672, 3536, 3201, 263, 4155, 881, 585, 16, 471, 327, 7149, 87, 733, 598, 6865, 16, 12929, 16, 26376, 16, 471, 10016, 384, 663, 471, 7960, 3650, 1012, 487, 5492, 8395, 225, 10191, 273, 1083, 309, 618, 12, 4155, 881, 67, 768, 13, 422, 618, 2668, 11, 4672, 10191, 273, 1053, 4812, 881, 67, 768, 273, 1696, 12, 4155, 881, 67, 768, 11189, 86, 6134, 225, 4812, 881, 67, 2844, 273, 5378, 225, 2363, 67, 3374, 273, 1083, 1323, 1053, 30, 980, 273, 4812, 881, 67, 768, 18, 896, 1369, 1435, 309, 980, 422, 875, 30, 898, 4812, 881, 67, 2844, 18, 6923, 12, 1369, 13, 309, 980, 422, 296, 571, 1377, 385, 6743, 282, 27343, 565, 348, 1260, 225, 399, 1470, 1470, 225, 512, 9383, 9383, 225, 453, 6584, 52, 3639, 571, 64, 82, 4278, 309, 2363, 67, 3374, 30, 898, 469, 30, 2363, 67, 3374, 273, 1053, 225, 309, 10191, 30, 4812, 881, 67, 768, 18, 4412, 1435, 468, 20096, 30, 6425, 26951, 3302, 1404, 3712, 1172, 296, 5269, 813, 11, 1086, 67, 957, 273, 300, 21, 18, 20, 309, 6263, 30, 2078, 67, 957, 273, 1034, 12, 14661, 272, 30, 272, 18, 17514, 1918, 2668, 5269, 813, 19899, 4812, 881, 67, 2844, 13, 309, 2078, 67, 957, 422, 5378, 30, 711, 67, 591, 502, 2423, 273, 1034, 12, 14661, 272, 30, 272, 18, 17514, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4155, 881, 67, 2844, 12, 4155, 881, 67, 768, 16, 2855, 33, 7036, 16, 6263, 33, 5510, 4672, 3536, 3201, 263, 4155, 881, 585, 16, 471, 327, 7149, 87, 733, 598, 6865, 16, 12929, 16, 26376, 16, 471, 10016, 384, 663, 471, 7960, 3650, 1012, 487, 5492, 8395, 225, 10191, 273, 1083, 309, 618, 12, 4155, 881, 67, 768, 13, 422, 618, 2668, 11, 4672, 10191, 273, 1053, 4812, 881, 67, 768, 273, 1696, 12, 4155, 881, 67, 768, 11189, 86, 6134, 225, 4812, 881, 67, 2844, 273, 5378, 225, 2363, 67, 3374, 273, 1083, 1323, 1053, 30, 980, 273, 4812, 881, 67, 768, 18, 896, 1369, 1435, 309, 980, 422, 875, 30, 898, 4812, 881, 2 ]
return tmp[-1]
return (len(tmp) > 0) and tmp[-1] or None
def latest_version(self, pkgname): tmp = self.package_versions(pkgname) return tmp[-1]
f21bc7aa8a9a140099a8b8a91d730c91af22d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10378/f21bc7aa8a9a140099a8b8a91d730c91af22d4b3/description_tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4891, 67, 1589, 12, 2890, 16, 29348, 4672, 225, 1853, 273, 365, 18, 5610, 67, 10169, 12, 10657, 529, 13, 327, 1853, 18919, 21, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4891, 67, 1589, 12, 2890, 16, 29348, 4672, 225, 1853, 273, 365, 18, 5610, 67, 10169, 12, 10657, 529, 13, 327, 1853, 18919, 21, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._closer = closer
def __init__(self, sock, mode, closer): if mode not in ("r", "w", "rw"): raise ValueError("invalid mode: %r" % mode) io.RawIOBase.__init__(self) self._sock = sock self._mode = mode self._closer = closer self._reading = "r" in mode self._writing = "w" in mode closer.makefile_open()
5632861bff7fa6411b4628799710688d14756ec1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/5632861bff7fa6411b4628799710688d14756ec1/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 1965, 16, 13306, 4672, 309, 1965, 486, 316, 7566, 86, 3113, 315, 91, 3113, 315, 21878, 6, 4672, 1002, 2068, 2932, 5387, 1965, 30, 738, 86, 6, 738, 1965, 13, 2527, 18, 4809, 4294, 2171, 16186, 2738, 972, 12, 2890, 13, 365, 6315, 15031, 273, 7313, 365, 6315, 3188, 273, 1965, 365, 6315, 21803, 273, 315, 86, 6, 316, 1965, 365, 6315, 14345, 273, 315, 91, 6, 316, 1965, 13306, 18, 6540, 768, 67, 3190, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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965, 30, 738, 86, 6, 738, 1965, 13, 2527, 18, 4809, 4294, 2171, 16186, 2738, 972, 12, 2890, 13, 365, 6315, 15031, 273, 7313, 365, 6315, 3188, 273, 1965, 365, 6315, 21803, 273, 315, 86, 6, 316, 1965, 365, 6315, 14345, 273, 315, 91, 6, 316, 1965, 13306, 18, 6540, 768, 67, 3190, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.host = self.relay.configure(self.relay.hostname)
self.host = self.relay.configure_relay(self.relay.hostname)
def __enter__(self):
763a7216c5e2274251e083176000c4944c9507c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11489/763a7216c5e2274251e083176000c4944c9507c2/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2328, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"sharable": bool(vdi.attributes["sharable"].value), "read_only": bool(vdi.attributes["read_only"].value),
"sharable": vdi.attributes["sharable"].value == "True", "read_only": vdi.attributes["read_only"].value == "True",
def create_vdi(self, vdi): log(DEBUG, "create_vdi")
ab27a3a5eb568f77ad89c793f3f6d2b1c5b35ff4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/ab27a3a5eb568f77ad89c793f3f6d2b1c5b35ff4/xenapi_create.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 90, 3211, 12, 2890, 16, 331, 3211, 4672, 613, 12, 9394, 16, 315, 2640, 67, 90, 3211, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 90, 3211, 12, 2890, 16, 331, 3211, 4672, 613, 12, 9394, 16, 315, 2640, 67, 90, 3211, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.get_parent().props.visible = not self.get_parent().props.visible
if self.main_window.get_window().props.visible: self.main_window.hide() else: self.main_window.show()
def __show_main_window(self): if self.app.blocked == False: # show/hide main window self.get_parent().props.visible = not self.get_parent().props.visible else: # when blocked, don't show main window but a notification self.popup("OTR-Verwaltung arbeitet gerade...", self.app.get_notify_text(), 3)
67ae3691eb4b368f280e474a6e85459e42379973 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11048/67ae3691eb4b368f280e474a6e85459e42379973/notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4500, 67, 5254, 67, 5668, 12, 2890, 4672, 309, 365, 18, 2910, 18, 23156, 422, 1083, 30, 468, 2405, 19, 11248, 2774, 2742, 309, 365, 18, 5254, 67, 5668, 18, 588, 67, 5668, 7675, 9693, 18, 8613, 30, 365, 18, 5254, 67, 5668, 18, 11248, 1435, 469, 30, 365, 18, 5254, 67, 5668, 18, 4500, 1435, 469, 30, 468, 1347, 14547, 16, 2727, 1404, 2405, 2774, 2742, 1496, 279, 3851, 365,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4500, 67, 5254, 67, 5668, 12, 2890, 4672, 309, 365, 18, 2910, 18, 23156, 422, 1083, 30, 468, 2405, 19, 11248, 2774, 2742, 309, 365, 18, 5254, 67, 5668, 18, 588, 67, 5668, 7675, 9693, 18, 8613, 30, 365, 18, 5254, 67, 5668, 18, 11248, 1435, 469, 30, 365, 18, 5254, 67, 5668, 18, 4500, 1435, 469, 30, 468, 1347, 14547, 16, 2727, 1404, 2405, 2774, 2742, 1496, 279, 3851, 365, 18, 16086, 2932, 1974, 54, 17, 3945, 91, 2390, 20651, 419, 2196, 305, 278, 314, 264, 2486, 7070, 16, 365, 18, 2910, 18, 588, 67, 12336, 67, 955, 9334, 890, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
shutil.copy(srcname, dstname)
shutil.copy2(srcname, dstname) try: shutil.copystat(srcname, dstname) except Exception, e: if verbose: print >>sys.stderr, "warning: ignoring failure to copy permission bits from '%s' to '%s': %s" % (filename, target, str(e))
def cpy(srcname, dstname, verbose = False): if verbose: print >>sys.stderr, "copying '%s' to '%s' ..." % (srcname, dstname) shutil.copy(srcname, dstname)
af6ffa7d015ed03740fcb948b5782ab5f15b0638 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/af6ffa7d015ed03740fcb948b5782ab5f15b0638/dbtables.py
[ 1, 8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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24534, 12, 4816, 529, 16, 3046, 529, 16, 3988, 273, 1083, 4672, 309, 3988, 30, 1172, 1671, 9499, 18, 11241, 16, 315, 3530, 310, 1995, 87, 11, 358, 1995, 87, 11, 18483, 738, 261, 4816, 529, 16, 3046, 529, 13, 11060, 18, 3530, 12, 4816, 529, 16, 3046, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def add_date(self, date=""): if not date:
def add_recIDs_by_date(self, dates=""): """Add recIDs modified between DATES[0] and DATES[1]. If DATES is not set, then add records modified since the last run of the ranking method. """ if not dates:
def add_date(self, date=""): # If date is not set, then retrieve it from the database. # Reindex all formats newer than the modification date if not date: write_message("Using the last update time for the rank method") query = """SELECT last_updated FROM rnkMETHOD WHERE name='%s' """ % options["current_run"] res = run_sql(query)
be497a775e31aa1bbaa16c2d306e7aa635bdfe13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/be497a775e31aa1bbaa16c2d306e7aa635bdfe13/bibrank_word_indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 712, 12, 2890, 16, 1509, 1546, 6, 4672, 468, 971, 1509, 353, 486, 444, 16, 1508, 4614, 518, 628, 326, 2063, 18, 468, 868, 1615, 777, 6449, 16069, 2353, 326, 11544, 1509, 309, 486, 1509, 30, 1045, 67, 2150, 2932, 7736, 326, 1142, 1089, 813, 364, 326, 6171, 707, 7923, 843, 273, 3536, 4803, 1142, 67, 7007, 4571, 20594, 79, 5327, 4852, 508, 28713, 87, 11, 3536, 738, 702, 9614, 2972, 67, 2681, 11929, 400, 273, 1086, 67, 4669, 12, 2271, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 712, 12, 2890, 16, 1509, 1546, 6, 4672, 468, 971, 1509, 353, 486, 444, 16, 1508, 4614, 518, 628, 326, 2063, 18, 468, 868, 1615, 777, 6449, 16069, 2353, 326, 11544, 1509, 309, 486, 1509, 30, 1045, 67, 2150, 2932, 7736, 326, 1142, 1089, 813, 364, 326, 6171, 707, 7923, 843, 273, 3536, 4803, 1142, 67, 7007, 4571, 20594, 79, 5327, 4852, 508, 28713, 87, 11, 3536, 738, 702, 9614, 2972, 67, 2681, 11929, 400, 273, 1086, 67, 4669, 12, 2271, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
test(r"""sre.match('(a)|(b)', 'b').start(1)""", -1) test(r"""sre.match('(a)|(b)', 'b').end(1)""", -1) test(r"""sre.match('(a)|(b)', 'b').span(1)""", (-1, -1))
test(r"""sre.match(r'(a)|(b)', 'b').start(1)""", -1) test(r"""sre.match(r'(a)|(b)', 'b').end(1)""", -1) test(r"""sre.match(r'(a)|(b)', 'b').span(1)""", (-1, -1))
def test(expression, result, exception=None): try: r = eval(expression) except: if exception: if not isinstance(sys.exc_value, exception): print expression, "FAILED" # display name, not actual value if exception is sre.error: print "expected", "sre.error" else: print "expected", exception.__name__ print "got", sys.exc_type.__name__, str(sys.exc_value) else: print expression, "FAILED" traceback.print_exc(file=sys.stdout) else: if exception: print expression, "FAILED" if exception is sre.error: print "expected", "sre.error" else: print "expected", exception.__name__ print "got result", repr(r) else: if r != result: print expression, "FAILED" print "expected", repr(result) print "got result", repr(r)
75e4f162be784b94ba0d3df4014079efb836f46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/75e4f162be784b94ba0d3df4014079efb836f46b/test_sre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 8692, 16, 563, 16, 1520, 33, 7036, 4672, 775, 30, 436, 273, 5302, 12, 8692, 13, 1335, 30, 309, 1520, 30, 309, 486, 1549, 12, 9499, 18, 10075, 67, 1132, 16, 1520, 4672, 1172, 2652, 16, 315, 11965, 6, 468, 2562, 508, 16, 486, 3214, 460, 309, 1520, 353, 272, 266, 18, 1636, 30, 1172, 315, 3825, 3113, 315, 87, 266, 18, 1636, 6, 469, 30, 1172, 315, 3825, 3113, 1520, 16186, 529, 972, 1172, 315, 13212, 3113, 2589, 18, 10075, 67, 723, 16186, 529, 972, 16, 609, 12, 9499, 18, 10075, 67, 1132, 13, 469, 30, 1172, 2652, 16, 315, 11965, 6, 10820, 18, 1188, 67, 10075, 12, 768, 33, 9499, 18, 10283, 13, 469, 30, 309, 1520, 30, 1172, 2652, 16, 315, 11965, 6, 309, 1520, 353, 272, 266, 18, 1636, 30, 1172, 315, 3825, 3113, 315, 87, 266, 18, 1636, 6, 469, 30, 1172, 315, 3825, 3113, 1520, 16186, 529, 972, 1172, 315, 13212, 563, 3113, 8480, 12, 86, 13, 469, 30, 309, 436, 480, 563, 30, 1172, 2652, 16, 315, 11965, 6, 1172, 315, 3825, 3113, 8480, 12, 2088, 13, 1172, 315, 13212, 563, 3113, 8480, 12, 86, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 8692, 16, 563, 16, 1520, 33, 7036, 4672, 775, 30, 436, 273, 5302, 12, 8692, 13, 1335, 30, 309, 1520, 30, 309, 486, 1549, 12, 9499, 18, 10075, 67, 1132, 16, 1520, 4672, 1172, 2652, 16, 315, 11965, 6, 468, 2562, 508, 16, 486, 3214, 460, 309, 1520, 353, 272, 266, 18, 1636, 30, 1172, 315, 3825, 3113, 315, 87, 266, 18, 1636, 6, 469, 30, 1172, 315, 3825, 3113, 1520, 16186, 529, 972, 1172, 315, 13212, 3113, 2589, 18, 10075, 67, 723, 16186, 529, 972, 16, 609, 12, 9499, 18, 10075, 67, 1132, 13, 469, 30, 1172, 2652, 16, 315, 11965, 6, 10820, 18, 1188, 67, 10075, 12, 768, 33, 9499, 18, 10283, 13, 469, 2 ]
self.altproject = None
self.altprojects = None
def __init__(self, project, request, argdict, dirfilter=None): self.argdict = argdict self.dirfilter = dirfilter self.project = project self.altproject = None # If enabled, get alternative source language projects if settings.ENABLE_ALT_SRC: altsrcs = [lang for lang in get_profile(request.user).alt_src_langs.all()] if altsrcs: try: self.altprojects = [projects.get_translation_project(altsrcs[i], self.project.project) \ for i, lang in enumerate(altsrcs)] except IndexError: pass self.matchnames = self.getmatchnames(self.project.checker) self.searchtext = self.argdict.get("searchtext", "") # TODO: fix this in jToolkit if isinstance(self.searchtext, str): self.searchtext = self.searchtext.decode("utf8") self.showassigns = self.argdict.get("showassigns", 0) if isinstance(self.showassigns, (str, unicode)) and self.showassigns.isdigit(): self.showassigns = int(self.showassigns) self.request = request self.rights = self.project.getrights(request.user) if "view" not in self.rights: raise projects.Rights404Error(None) self.lastitem = None self.pofilename = self.argdict.pop("pofilename", None) if self.pofilename == "": self.pofilename = None if self.pofilename is None and self.dirfilter is not None and \ (self.dirfilter.endswith(".po") or self.dirfilter.endswith(".xlf")): self.pofilename = self.dirfilter self.receivetranslations() # TODO: clean up modes to be one variable self.viewmode = self.argdict.get("view", 0) and "view" in self.rights self.reviewmode = self.argdict.get("review", 0) self.translatemode = (self.argdict.get("translate", 0) or self.argdict.get("searchtext", 0)) and ("translate" in self.rights or "suggest" in self.rights) notice = {} try: self.finditem() except StopIteration, stoppedby: notice = self.getfinishedtext(stoppedby) self.item = None items = self.maketable() # self.pofilename can change in search... givenpofilename = self.pofilename formaction = self.makelink("") mainstats = "" pagelinks = None if self.viewmode: rows = self.getdisplayrows("view") icon="file" else: rows = self.getdisplayrows("translate") icon="edit" if self.pofilename is not None: postats = self.project.getpototals(self.pofilename) untranslated, fuzzy = postats["total"] - postats["translated"], postats["fuzzy"] translated, total = postats["translated"], postats["total"] mainstats = localize("%d/%d translated\n(%d untranslated, %d fuzzy)", translated, total, untranslated, fuzzy) pagelinks = self.getpagelinks("?translate=1&view=1", rows) navbarpath_dict = self.makenavbarpath_dict(self.project, self.request, self.pofilename, dirfilter=self.dirfilter or "") # templatising templatename = "translatepage" instancetitle = N_(settings.TITLE) # l10n: first parameter: name of the installation (like "Pootle") # l10n: second parameter: project name # l10n: third parameter: target language # l10n: fourth parameter: file name pagetitle = localize("%s: translating %s into %s: %s", instancetitle, self.project.projectname, self.project.languagename, self.pofilename) language = {"code": pagelayout.weblanguage(self.project.languagecode), "name": self.project.languagename, "dir": pagelayout.languagedir(self.project.languagecode)} stats = {"summary": mainstats, "checks": [], "tracks": [], "assigns": []}
eaba9cbb11bf5ebc097bc6fdeac3e478c6ebe36a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/eaba9cbb11bf5ebc097bc6fdeac3e478c6ebe36a/translatepage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1984, 16, 590, 16, 1501, 1576, 16, 1577, 2188, 33, 7036, 4672, 365, 18, 3175, 1576, 273, 1501, 1576, 365, 18, 1214, 2188, 273, 1577, 2188, 365, 18, 4406, 273, 1984, 365, 18, 2390, 13582, 273, 599, 468, 971, 3696, 16, 336, 10355, 1084, 2653, 10137, 309, 1947, 18, 29377, 67, 18255, 67, 28413, 30, 524, 3428, 1310, 87, 273, 306, 4936, 364, 3303, 316, 336, 67, 5040, 12, 2293, 18, 1355, 2934, 2390, 67, 4816, 67, 4936, 87, 18, 454, 1435, 65, 309, 524, 3428, 1310, 87, 30, 775, 30, 365, 18, 2390, 13582, 273, 306, 13582, 18, 588, 67, 10173, 67, 4406, 12, 2390, 4816, 87, 63, 77, 6487, 365, 18, 4406, 18, 4406, 13, 521, 364, 277, 16, 3303, 316, 4241, 12, 2390, 4816, 87, 25887, 1335, 10195, 30, 1342, 365, 18, 1916, 1973, 273, 365, 18, 588, 1916, 1973, 12, 2890, 18, 4406, 18, 19243, 13, 365, 18, 3072, 955, 273, 365, 18, 3175, 1576, 18, 588, 2932, 3072, 955, 3113, 1408, 13, 468, 2660, 30, 2917, 333, 316, 525, 6364, 8691, 309, 1549, 12, 2890, 18, 3072, 955, 16, 609, 4672, 365, 18, 3072, 955, 273, 365, 18, 3072, 955, 18, 3922, 2932, 3158, 28, 7923, 365, 18, 4500, 6145, 87, 273, 365, 18, 3175, 1576, 18, 588, 2932, 4500, 6145, 87, 3113, 374, 13, 309, 1549, 12, 2890, 18, 4500, 6145, 87, 16, 261, 701, 16, 5252, 3719, 471, 365, 18, 4500, 6145, 87, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1984, 16, 590, 16, 1501, 1576, 16, 1577, 2188, 33, 7036, 4672, 365, 18, 3175, 1576, 273, 1501, 1576, 365, 18, 1214, 2188, 273, 1577, 2188, 365, 18, 4406, 273, 1984, 365, 18, 2390, 13582, 273, 599, 468, 971, 3696, 16, 336, 10355, 1084, 2653, 10137, 309, 1947, 18, 29377, 67, 18255, 67, 28413, 30, 524, 3428, 1310, 87, 273, 306, 4936, 364, 3303, 316, 336, 67, 5040, 12, 2293, 18, 1355, 2934, 2390, 67, 4816, 67, 4936, 87, 18, 454, 1435, 65, 309, 524, 3428, 1310, 87, 30, 775, 30, 365, 18, 2390, 13582, 273, 306, 13582, 18, 588, 67, 10173, 67, 4406, 12, 2390, 4816, 87, 63, 77, 6487, 365, 2 ]
with open(support.TESTFN, "rb") as f:
with self.open(support.TESTFN, "rb") as f:
def flush(self): record.append(3) super(MyFileIO, self).flush()
cdcd4bff129f84e10e493782d319cea1a31f9162 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/cdcd4bff129f84e10e493782d319cea1a31f9162/test_io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 1409, 18, 6923, 12, 23, 13, 2240, 12, 12062, 812, 4294, 16, 365, 2934, 11330, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.atom('tag', attrib=attrib, parent=entry)
self.atom('category', attrib=attrib, parent=entry)
def _dump_post(self, post): url = url_for(post, _external=True) entry = self.atom('entry', {'{%s}base' % XML_NS: url}) self.atom('title', text=post.title, type='text', parent=entry) self.atom('id', text=post.uid, parent=entry) self.atom('updated', text=format_iso8601(post.last_update), parent=entry) self.atom('published', text=format_iso8601(post.pub_date), parent=entry) self.atom('link', href=url, parent=entry)
ce2d038263a857d8d20cafc831c517f027f114f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/ce2d038263a857d8d20cafc831c517f027f114f9/zxa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 2767, 12, 2890, 16, 1603, 4672, 880, 273, 880, 67, 1884, 12, 2767, 16, 389, 9375, 33, 5510, 13, 1241, 273, 365, 18, 7466, 2668, 4099, 2187, 13666, 95, 9, 87, 97, 1969, 11, 738, 3167, 67, 3156, 30, 880, 6792, 365, 18, 7466, 2668, 2649, 2187, 977, 33, 2767, 18, 2649, 16, 618, 2218, 955, 2187, 982, 33, 4099, 13, 365, 18, 7466, 2668, 350, 2187, 977, 33, 2767, 18, 1911, 16, 982, 33, 4099, 13, 365, 18, 7466, 2668, 7007, 2187, 977, 33, 2139, 67, 9699, 14181, 12, 2767, 18, 2722, 67, 2725, 3631, 982, 33, 4099, 13, 365, 18, 7466, 2668, 12614, 2187, 977, 33, 2139, 67, 9699, 14181, 12, 2767, 18, 10174, 67, 712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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 2767, 12, 2890, 16, 1603, 4672, 880, 273, 880, 67, 1884, 12, 2767, 16, 389, 9375, 33, 5510, 13, 1241, 273, 365, 18, 7466, 2668, 4099, 2187, 13666, 95, 9, 87, 97, 1969, 11, 738, 3167, 67, 3156, 30, 880, 6792, 365, 18, 7466, 2668, 2649, 2187, 977, 33, 2767, 18, 2649, 16, 618, 2218, 955, 2187, 982, 33, 4099, 13, 365, 18, 7466, 2668, 350, 2187, 977, 33, 2767, 18, 1911, 16, 982, 33, 4099, 13, 365, 18, 7466, 2668, 7007, 2187, 977, 33, 2139, 67, 9699, 14181, 12, 2767, 18, 2722, 67, 2725, 3631, 982, 33, 4099, 13, 365, 18, 7466, 2668, 12614, 2187, 977, 33, 2139, 67, 9699, 14181, 12, 2767, 18, 2 ]
word, nbhits = browsed_words_in_colls[0][0], browsed_words_in_colls[0][1]
phrase, nbhits = browsed_phrases_in_colls[0][0], browsed_phrases_in_colls[0][1]
def browse_pattern(req, colls, p, f, rg): """Browse either biliographic phrases or words indexes, and display it.""" ## do we search in words indexes? if not f: return browse_in_bibwords(req, p, f) ## prepare collection urlargument for later printing: p_orig = p urlarg_colls = "" for coll in colls: urlarg_colls += "&c=%s" % urllib.quote(coll) ## okay, "real browse" follows: browsed_words = browse_in_bibxxx(p, f, rg) while not browsed_words: # try again and again with shorter and shorter pattern: try: p = p[:-1] browsed_words = browse_in_bibxxx(p, f, rg) except: # probably there are no hits at all: req.write("<p>No values found.") return ## try to check hits in these particular collection selection: browsed_words_in_colls = [] for word,nbhits in browsed_words: word_hitlist = HitList() word_hitlists = search_pattern("", word, f, colls, 'e') for coll in colls: word_hitlist.union(word_hitlists[coll]) word_hitlist.calculate_nbhits() if word_hitlist._nbhits > 0: # okay, this word has some hits in colls, so add it: browsed_words_in_colls.append([word, word_hitlist._nbhits]) ## were there hits in collections? if browsed_words_in_colls == []: if browsed_words != []: print_warning(req, """<p>No match close to <em>%s</em> found in given collections. Please try different term.<p>Displaying matches in any collection...""" % p_orig, "") browsed_words_in_colls = browsed_words ## display results now: out = """<table class="searchresultsbox"> <thead> <tr> <th class="searchresultsboxheader" align="left"> hits </th> <th class="searchresultsboxheader" width="15"> &nbsp; </th> <th class="searchresultsboxheader" align="left"> %s </th> </tr> </thead> <tbody>""" % f if len(browsed_words_in_colls) == 1: # one hit only found: word, nbhits = browsed_words_in_colls[0][0], browsed_words_in_colls[0][1] out += """<tr> <td class="searchresultsboxbody" align="right"> %s </td> <td class="searchresultsboxbody" width="15"> &nbsp; </td> <td class="searchresultsboxbody" align="left"> <a href="%s/search.py?p=%%22%s%%22&f=%s%s">%s</a> </td> </tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) elif len(browsed_words_in_colls) > 1: # first display what was found but the last one: for word, nbhits in browsed_words_in_colls[:-1]: out += """<tr> <td class="searchresultsboxbody" align="right"> %s </td> <td class="searchresultsboxbody" width="15"> &nbsp; </td> <td class="searchresultsboxbody" align="left"> <a href="%s/search.py?p=%%22%s%%22&f=%s%s">%s</a> </td> </tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) # now display last hit as "next term": word, nbhits = browsed_words_in_colls[-1] out += """<tr><td colspan="2" class="normal"> &nbsp; </td> <td class="normal"> <img src="%s/img/sn.gif" alt="" border="0"> next %s: <a href="%s/search.py?search=Browse&p=%s&f=%s%s">%s</a> </td> </tr>""" % (weburl, f, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) out += """</tbody> </table>""" req.write(out) return
535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 4951, 12, 3658, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 4672, 3536, 27304, 3344, 324, 15700, 16983, 31413, 578, 4511, 5596, 16, 471, 2562, 518, 12123, 7541, 741, 732, 1623, 316, 4511, 5596, 35, 309, 486, 284, 30, 327, 21670, 67, 267, 67, 70, 495, 3753, 12, 3658, 16, 293, 16, 284, 13, 7541, 2911, 1849, 880, 3446, 364, 5137, 19171, 30, 293, 67, 4949, 273, 293, 880, 3175, 67, 1293, 3251, 273, 1408, 364, 4508, 316, 645, 3251, 30, 880, 3175, 67, 1293, 3251, 1011, 7830, 71, 5095, 87, 6, 738, 11527, 18, 6889, 12, 12910, 13, 7541, 21194, 16, 315, 7688, 21670, 6, 13040, 30, 324, 492, 730, 67, 3753, 273, 21670, 67, 267, 67, 70, 495, 18310, 12, 84, 16, 284, 16, 14524, 13, 1323, 486, 324, 492, 730, 67, 3753, 30, 468, 775, 3382, 471, 3382, 598, 19623, 471, 19623, 1936, 30, 775, 30, 293, 273, 293, 10531, 17, 21, 65, 324, 492, 730, 67, 3753, 273, 21670, 67, 267, 67, 70, 495, 18310, 12, 84, 16, 284, 16, 14524, 13, 1335, 30, 468, 8656, 1915, 854, 1158, 11076, 622, 777, 30, 1111, 18, 2626, 2932, 32, 84, 34, 2279, 924, 1392, 1199, 13, 327, 7541, 775, 358, 866, 11076, 316, 4259, 6826, 1849, 4421, 30, 324, 492, 730, 67, 3753, 67, 267, 67, 1293, 3251, 273, 5378, 364, 2076, 16, 6423, 15173, 316, 324, 492, 730, 67, 3753, 30, 2076, 67, 15989, 1098, 273, 670, 305, 682, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 4951, 12, 3658, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 4672, 3536, 27304, 3344, 324, 15700, 16983, 31413, 578, 4511, 5596, 16, 471, 2562, 518, 12123, 7541, 741, 732, 1623, 316, 4511, 5596, 35, 309, 486, 284, 30, 327, 21670, 67, 267, 67, 70, 495, 3753, 12, 3658, 16, 293, 16, 284, 13, 7541, 2911, 1849, 880, 3446, 364, 5137, 19171, 30, 293, 67, 4949, 273, 293, 880, 3175, 67, 1293, 3251, 273, 1408, 364, 4508, 316, 645, 3251, 30, 880, 3175, 67, 1293, 3251, 1011, 7830, 71, 5095, 87, 6, 738, 11527, 18, 6889, 12, 12910, 13, 7541, 21194, 16, 315, 7688, 21670, 6, 13040, 30, 324, 492, 730, 67, 3753, 273, 21670, 2 ]
log.info('stop playing') self.stop()
return
def play(self, item, player=None): """ play an item """ self.item = item if self.player and self.player.is_playing(): log.info('stop playing') self.stop()
c625fd022e9c07023fcf392ffa3303e8d2b32768 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c625fd022e9c07023fcf392ffa3303e8d2b32768/player.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 16, 761, 16, 7291, 33, 7036, 4672, 3536, 6599, 392, 761, 3536, 365, 18, 1726, 565, 273, 761, 309, 365, 18, 14872, 471, 365, 18, 14872, 18, 291, 67, 1601, 310, 13332, 613, 18, 1376, 2668, 5681, 23982, 6134, 365, 18, 5681, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 16, 761, 16, 7291, 33, 7036, 4672, 3536, 6599, 392, 761, 3536, 365, 18, 1726, 565, 273, 761, 309, 365, 18, 14872, 471, 365, 18, 14872, 18, 291, 67, 1601, 310, 13332, 613, 18, 1376, 2668, 5681, 23982, 6134, 365, 18, 5681, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
error_checker, *args
rettype, *protos
def _create_func( func_name, error_checker, *args
252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 644, 12, 1326, 67, 529, 16, 555, 67, 19243, 16, 380, 1968, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 644, 12, 1326, 67, 529, 16, 555, 67, 19243, 16, 380, 1968, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.rbAlignment.SetSelection(text_to_ID(self.curOptions.alignment))
self.rbAlignment.SetSelection(util.text_to_ID(self.curOptions.alignment))
def SetOptions(self, menuOpts): """Set control values based on the provided MenuOptions.""" self.curOptions = menuOpts
7b9d6d18d1afd9ee3255306b92a085116f43e566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4675/7b9d6d18d1afd9ee3255306b92a085116f43e566/panels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1320, 12, 2890, 16, 3824, 5476, 4672, 3536, 694, 3325, 924, 2511, 603, 326, 2112, 9809, 1320, 12123, 365, 18, 1397, 1320, 273, 3824, 5476, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 924, 2511, 603, 326, 2112, 9809, 1320, 12123, 365, 18, 1397, 1320, 273, 3824, 5476, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
handler = get_handler('../examples/hello.txt.en')
handler = get_handler('hello.txt')
def test_get(self): handler = get_handler('../examples/hello.txt.en') self.assertEqual(handler.to_str(), 'hello world\n')
05ad743166834b950b86d9122f51ac7dbc465d1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/05ad743166834b950b86d9122f51ac7dbc465d1f/test_handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 12, 2890, 4672, 1838, 273, 336, 67, 4176, 2668, 23711, 18, 5830, 6134, 365, 18, 11231, 5812, 12, 4176, 18, 869, 67, 701, 9334, 296, 23711, 9117, 64, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 12, 2890, 4672, 1838, 273, 336, 67, 4176, 2668, 23711, 18, 5830, 6134, 365, 18, 11231, 5812, 12, 4176, 18, 869, 67, 701, 9334, 296, 23711, 9117, 64, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}"""%(name, "\n || ".join([k.js_test() for k in keys]))
}"""%(name, "\n||".join([k.js_test() for k in keys]))
def all_tests(self): """Builds all tests currently in the handler. Returns a string of javascript code which defines all
33fe3359559b65e1a1b5f80d29cf224d5b5c62ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/33fe3359559b65e1a1b5f80d29cf224d5b5c62ae/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 16341, 12, 2890, 4672, 3536, 7746, 777, 7434, 4551, 316, 326, 1838, 18, 225, 2860, 279, 533, 434, 11341, 981, 1492, 11164, 777, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 16341, 12, 2890, 4672, 3536, 7746, 777, 7434, 4551, 316, 326, 1838, 18, 225, 2860, 279, 533, 434, 11341, 981, 1492, 11164, 777, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def copy(self, dad, offset):
def copy(self, dad=None, offset=V(0,0,0)):
def copy(self, dad, offset): """Copy the molecule to a new molecule. offset tells where it will go relative to the original. There should be a rotation parameter but there isn't. """ pairlis = [] ndix = {} numol = molecule(self.assy, gensym(self.name)) for a in self.atoms.itervalues(): na = a.copy(numol) pairlis += [(a, na)] ndix[a.key] = na for (a, na) in pairlis: for b in a.bonds: if b.other(a).key in ndix: numol.bond(na,ndix[b.other(a).key]) numol.curpos =self.curpos+offset numol.shakedown() numol.setDisplay(self.display) self.unpick() numol.pick() numol.dad = dad return numol
aee9ddd500528fc1707d554edb28bccc7bb6e383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/aee9ddd500528fc1707d554edb28bccc7bb6e383/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 302, 361, 33, 7036, 16, 1384, 33, 58, 12, 20, 16, 20, 16, 20, 3719, 30, 3536, 2951, 326, 13661, 358, 279, 394, 13661, 18, 1384, 24551, 1625, 518, 903, 1960, 3632, 358, 326, 2282, 18, 6149, 1410, 506, 279, 6752, 1569, 1496, 1915, 5177, 1404, 18, 3536, 3082, 80, 291, 273, 5378, 5346, 697, 273, 2618, 818, 355, 273, 13661, 12, 2890, 18, 428, 93, 16, 314, 773, 2942, 12, 2890, 18, 529, 3719, 364, 279, 316, 365, 18, 14937, 18, 2165, 2372, 13332, 9583, 273, 279, 18, 3530, 12, 2107, 355, 13, 3082, 80, 291, 1011, 306, 12, 69, 16, 9583, 25887, 5346, 697, 63, 69, 18, 856, 65, 273, 9583, 364, 261, 69, 16, 9583, 13, 316, 3082, 80, 291, 30, 364, 324, 316, 279, 18, 70, 4096, 30, 309, 324, 18, 3011, 12, 69, 2934, 856, 316, 5346, 697, 30, 818, 355, 18, 26425, 12, 6582, 16, 4880, 697, 63, 70, 18, 3011, 12, 69, 2934, 856, 5717, 818, 355, 18, 1397, 917, 273, 2890, 18, 1397, 917, 15, 3348, 818, 355, 18, 674, 9477, 995, 1435, 818, 355, 18, 542, 4236, 12, 2890, 18, 5417, 13, 365, 18, 318, 11503, 1435, 818, 355, 18, 11503, 1435, 818, 355, 18, 72, 361, 273, 302, 361, 327, 818, 355, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 302, 361, 33, 7036, 16, 1384, 33, 58, 12, 20, 16, 20, 16, 20, 3719, 30, 3536, 2951, 326, 13661, 358, 279, 394, 13661, 18, 1384, 24551, 1625, 518, 903, 1960, 3632, 358, 326, 2282, 18, 6149, 1410, 506, 279, 6752, 1569, 1496, 1915, 5177, 1404, 18, 3536, 3082, 80, 291, 273, 5378, 5346, 697, 273, 2618, 818, 355, 273, 13661, 12, 2890, 18, 428, 93, 16, 314, 773, 2942, 12, 2890, 18, 529, 3719, 364, 279, 316, 365, 18, 14937, 18, 2165, 2372, 13332, 9583, 273, 279, 18, 3530, 12, 2107, 355, 13, 3082, 80, 291, 1011, 306, 12, 69, 16, 9583, 25887, 5346, 697, 63, 69, 18, 856, 65, 273, 9583, 364, 2 ]
new_offset = unpack('I', data.read(4))[0] if(new_offset != 0): offsets.append(new_offset) if(maker_note_offset != None): dir.append(decode_maker_note(data, maker_note_offset, verbose=verbose))
new_relative_offset = unpack('I', data.read(4))[0] if(new_relative_offset != 0): relative_offsets.append(new_offset) if(makernote_abs_offset != None): dir.append(decode_makernote(data, makernote_abs_offset, verbose=verbose))
def decode_ifd(data, initial_offset, tags=EXIF_TAGS, make_note_tag=EXIF_TAGS[MAKER_NOTE_TAG_ID], verbose=False): # IFDs have the format: # 2 bytes number of tags/entries in the IFD. # 12 bytes for each IFD entry (times the number of tags). # 4 bytes offset to the next IFD. # # IFD entries have the format: # 2 bytes tag id. # 2 bytes tag type. # 4 bytes tag value length. # 4 bytes either tag value of offset to tag value (if length > 4). # # Tag types: # 1 byte # 2 string # 3 short # 4 long # 5 rational # 6 signed byte # 7 undefined # 8 signed short # 9 signed long # 10 signed rational # 11 float # 12 double dirs = [] # We usually have 4 child IFDs: EXIF, Preview, Raw and Maker Note. offsets = [initial_offset, ] maker_note_offset = None while(offsets): offset = offsets.pop() if(verbose == 2): print('Offset: %d' %(offset)) if(not offset): continue # Start parsing a new IFD. dir = [] data.seek(offset, os.SEEK_SET) # Parse the directory content. n = unpack('H', data.read(2))[0] if(verbose == 2): print('N: %d' %(n)) while(n): if(verbose == 2): print('We are at %d' % (data.tell())) tag_id = unpack('H', data.read(2))[0] tag = tags.get(tag_id, 'Unknown Tag') typ_id = unpack('H', data.read(2))[0] typ_fmt, typ_size = TYPES.get(typ_id, DEF_TYPE) len = unpack('I', data.read(4))[0] unpack_fmt = typ_fmt if(typ_fmt != None and not typ_fmt[0] == '_'): unpack_fmt = len * typ_fmt unpack_bytes = [] val_size = typ_size * len if(val_size > 4): new_offset = unpack('I', data.read(4))[0] # Special handling for the Marker Note. if(make_note_tag and tag == make_note_tag): maker_note_offset = new_offset n -= 1 continue # Go there... here = data.tell() data.seek(new_offset, os.SEEK_SET) if(verbose == 2): print('Jump to %d' % (new_offset)) # Read the data to decode. unpack_bytes = data.read(val_size) # ...and back. data.seek(here, os.SEEK_SET) if(verbose == 2): print('Jump back') else: # Read the data to decode (4 bytes in this case). unpack_bytes = data.read(4) # Do we need padding (only if the data size would be < 4 bytes)? if(val_size < 4 and typ_fmt != None and not typ_fmt[0] == '_'): pad = 'x' * (4 - val_size) unpack_fmt += pad # Decode the tag value. # Here we have a few special cases and only is inside a Nikon Marker # Note: Linearization Table being one.
8483e58fe5248b95ad1491a88492acba5adb4975 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6485/8483e58fe5248b95ad1491a88492acba5adb4975/nef_decoder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 430, 72, 12, 892, 16, 2172, 67, 3348, 16, 2342, 33, 2294, 5501, 67, 29915, 16, 1221, 67, 7652, 67, 2692, 33, 2294, 5501, 67, 29915, 63, 5535, 27221, 67, 17857, 67, 7927, 67, 734, 6487, 3988, 33, 8381, 4672, 468, 11083, 22831, 1240, 326, 740, 30, 468, 282, 576, 1731, 377, 1300, 434, 2342, 19, 8219, 316, 326, 11083, 40, 18, 468, 282, 2593, 1731, 565, 364, 1517, 11083, 40, 1241, 261, 8293, 326, 1300, 434, 2342, 2934, 468, 282, 1059, 1731, 377, 1384, 358, 326, 1024, 11083, 40, 18, 468, 468, 11083, 40, 3222, 1240, 326, 740, 30, 468, 282, 576, 1731, 377, 1047, 612, 18, 468, 282, 576, 1731, 377, 1047, 618, 18, 468, 282, 1059, 1731, 377, 1047, 460, 769, 18, 468, 282, 1059, 1731, 377, 3344, 1047, 460, 434, 1384, 358, 1047, 460, 261, 430, 769, 405, 1059, 2934, 468, 468, 4034, 1953, 30, 468, 282, 404, 282, 1160, 468, 282, 576, 282, 533, 468, 282, 890, 282, 3025, 468, 282, 1059, 282, 1525, 468, 282, 1381, 282, 436, 8371, 468, 282, 1666, 282, 6726, 1160, 468, 282, 2371, 282, 3109, 468, 282, 1725, 282, 6726, 3025, 468, 282, 2468, 282, 6726, 1525, 468, 282, 1728, 225, 6726, 436, 8371, 468, 282, 4648, 225, 1431, 468, 282, 2593, 225, 1645, 7717, 273, 5378, 225, 468, 1660, 11234, 1240, 1059, 1151, 11083, 22831, 30, 5675, 5501, 16, 22289, 16, 6576, 471, 490, 6388, 3609, 18, 8738, 273, 306, 6769, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 430, 72, 12, 892, 16, 2172, 67, 3348, 16, 2342, 33, 2294, 5501, 67, 29915, 16, 1221, 67, 7652, 67, 2692, 33, 2294, 5501, 67, 29915, 63, 5535, 27221, 67, 17857, 67, 7927, 67, 734, 6487, 3988, 33, 8381, 4672, 468, 11083, 22831, 1240, 326, 740, 30, 468, 282, 576, 1731, 377, 1300, 434, 2342, 19, 8219, 316, 326, 11083, 40, 18, 468, 282, 2593, 1731, 565, 364, 1517, 11083, 40, 1241, 261, 8293, 326, 1300, 434, 2342, 2934, 468, 282, 1059, 1731, 377, 1384, 358, 326, 1024, 11083, 40, 18, 468, 468, 11083, 40, 3222, 1240, 326, 740, 30, 468, 282, 576, 1731, 377, 1047, 612, 18, 468, 282, 576, 1731, 377, 1047, 618, 18, 2 ]
dir_datetimes.append( datetime(*strptime(dir, "%Y-%m-%d %H:%M:%S")[0:6]) )
dir_datetimes.append( datetime(*strptime(dir, BACKUP_DIR_DATE_FORMAT)[0:6]) )
def get_available_backups(self): self.parent_backup_dir = client.get_string("/apps/flyback/external_storage_location") if not self.parent_backup_dir:
c2a6c9ab1e23311dbdda0f5ed73a521e619bcf98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3798/c2a6c9ab1e23311dbdda0f5ed73a521e619bcf98/flyback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5699, 67, 9572, 87, 12, 2890, 4672, 365, 18, 2938, 67, 9572, 67, 1214, 273, 1004, 18, 588, 67, 1080, 2932, 19, 11411, 19, 29670, 823, 19, 9375, 67, 5697, 67, 3562, 7923, 309, 486, 365, 18, 2938, 67, 9572, 67, 1214, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5699, 67, 9572, 87, 12, 2890, 4672, 365, 18, 2938, 67, 9572, 67, 1214, 273, 1004, 18, 588, 67, 1080, 2932, 19, 11411, 19, 29670, 823, 19, 9375, 67, 5697, 67, 3562, 7923, 309, 486, 365, 18, 2938, 67, 9572, 67, 1214, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)
self.assertEqual(u.fp.raw.fp._sock.gettimeout(), 120)
def test_http_Value(self): u = urllib2.urlopen("http://www.python.org", timeout=120) self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)
51b2a8d774e7420ac15a785d34fb4344035675fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/51b2a8d774e7420ac15a785d34fb4344035675fd/test_urllib2net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2505, 67, 620, 12, 2890, 4672, 582, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 8103, 18, 3341, 3113, 2021, 33, 22343, 13, 365, 18, 11231, 5812, 12, 89, 18, 7944, 6315, 15031, 18, 7944, 6315, 15031, 18, 588, 4538, 9334, 15743, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2505, 67, 620, 12, 2890, 4672, 582, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 8103, 18, 3341, 3113, 2021, 33, 22343, 13, 365, 18, 11231, 5812, 12, 89, 18, 7944, 6315, 15031, 18, 7944, 6315, 15031, 18, 588, 4538, 9334, 15743, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, send_delay=10000000, gripper_point=(0.23, 0.0, 0.0)):
def __init__(self, send_delay=50000000, gripper_point=(0.23, 0.0, 0.0)):
def __init__(self, send_delay=10000000, gripper_point=(0.23, 0.0, 0.0)): log("Loading SimpleArmTrajectory") self.joint_names_list = [['r_shoulder_pan_joint', 'r_shoulder_lift_joint', 'r_upper_arm_roll_joint', 'r_elbow_flex_joint', 'r_forearm_roll_joint', 'r_wrist_flex_joint', 'r_wrist_roll_joint'], ['l_shoulder_pan_joint', 'l_shoulder_lift_joint', 'l_upper_arm_roll_joint', 'l_elbow_flex_joint', 'l_forearm_roll_joint', 'l_wrist_flex_joint', 'l_wrist_roll_joint']]
3a682eff0bfca2c49f435a978c645b4e046ad110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/3a682eff0bfca2c49f435a978c645b4e046ad110/simple_arm_trajectories.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1366, 67, 10790, 33, 25, 17877, 16, 314, 21335, 457, 67, 1153, 28657, 20, 18, 4366, 16, 374, 18, 20, 16, 374, 18, 20, 3719, 30, 613, 2932, 10515, 4477, 25583, 1609, 19528, 7923, 365, 18, 16452, 67, 1973, 67, 1098, 273, 306, 3292, 86, 67, 674, 1003, 765, 67, 7355, 67, 16452, 2187, 296, 86, 67, 674, 1003, 765, 67, 80, 2136, 67, 16452, 2187, 296, 86, 67, 5797, 67, 4610, 67, 2693, 67, 16452, 2187, 296, 86, 67, 292, 70, 543, 67, 27592, 67, 16452, 2187, 296, 86, 67, 1405, 4610, 67, 2693, 67, 16452, 2187, 296, 86, 67, 91, 86, 376, 67, 27592, 67, 16452, 2187, 296, 86, 67, 91, 86, 376, 67, 2693, 67, 16452, 17337, 10228, 80, 67, 674, 1003, 765, 67, 7355, 67, 16452, 2187, 296, 80, 67, 674, 1003, 765, 67, 80, 2136, 67, 16452, 2187, 296, 80, 67, 5797, 67, 4610, 67, 2693, 67, 16452, 2187, 296, 80, 67, 292, 70, 543, 67, 27592, 67, 16452, 2187, 296, 80, 67, 1405, 4610, 67, 2693, 67, 16452, 2187, 296, 80, 67, 91, 86, 376, 67, 27592, 67, 16452, 2187, 296, 80, 67, 91, 86, 376, 67, 2693, 67, 16452, 3546, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1366, 67, 10790, 33, 25, 17877, 16, 314, 21335, 457, 67, 1153, 28657, 20, 18, 4366, 16, 374, 18, 20, 16, 374, 18, 20, 3719, 30, 613, 2932, 10515, 4477, 25583, 1609, 19528, 7923, 365, 18, 16452, 67, 1973, 67, 1098, 273, 306, 3292, 86, 67, 674, 1003, 765, 67, 7355, 67, 16452, 2187, 296, 86, 67, 674, 1003, 765, 67, 80, 2136, 67, 16452, 2187, 296, 86, 67, 5797, 67, 4610, 67, 2693, 67, 16452, 2187, 296, 86, 67, 292, 70, 543, 67, 27592, 67, 16452, 2187, 296, 86, 67, 1405, 4610, 67, 2693, 67, 16452, 2187, 296, 86, 67, 91, 86, 376, 67, 27592, 67, 16452, 2187, 296, 86, 67, 2 ]
return sys.modules[__name__[:rfind(__name__,'.')]].__path__[0]
return sys.modules[__name__].__path__[0]
def package_home(globals_dict):
61908bec20512309c26b9021844881d1c6f9a64a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/61908bec20512309c26b9021844881d1c6f9a64a/Globals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2181, 67, 8712, 12, 16227, 67, 1576, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2181, 67, 8712, 12, 16227, 67, 1576, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"secure", "partition", "managed", "hmc_version", "cmd_prompt" ]
"secure", "partition", "managed", "hmc_version", "cmd_prompt", "separator" ]
def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", "secure", "partition", "managed", "hmc_version", "cmd_prompt" ] options = check_input(device_opt, process_input(device_opt)) ## ## Fence agent specific defaults ##### if 0 == options.has_key("-c"): options["-c"] = [ ":~>", "]\$" ] if 0 == options.has_key("-x"): fail_usage("Failed: You have to use ssh connection (-x) to fence device") if 0 == options.has_key("-s"): fail_usage("Failed: You have to enter name of managed system") if (0 == ["list", "monitor"].count(options["-o"].lower())) and (0 == options.has_key("-n")): fail_usage("Failed: You have to enter name of the partition") if 1 == options.has_key("-H") and (options["-H"] != "3" and options["-H"] != "4"): fail_usage("Failed: You have to enter valid version number: 3 or 4") ## ## Operate the fencing device #### conn = fence_login(options) fence_action(conn, options, set_power_status, get_power_status, get_lpar_list) ## ## Logout from system ###### conn.send("quit\r\n") conn.close()
96e27b8d2247d64abc53633ba81cc0cff474d668 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6868/96e27b8d2247d64abc53633ba81cc0cff474d668/fence_lpar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2346, 67, 3838, 273, 306, 225, 315, 5201, 3113, 315, 1589, 3113, 315, 5629, 3113, 315, 20380, 3113, 315, 11369, 3113, 315, 4148, 3113, 315, 1128, 3113, 315, 625, 4793, 3113, 315, 5819, 3113, 315, 24002, 3113, 315, 24002, 67, 4263, 3113, 315, 8869, 3113, 315, 10534, 3113, 315, 19360, 3113, 315, 76, 13952, 67, 1589, 3113, 315, 4172, 67, 13325, 3113, 315, 11287, 6, 308, 225, 702, 273, 866, 67, 2630, 12, 5964, 67, 3838, 16, 1207, 67, 2630, 12, 5964, 67, 3838, 3719, 225, 7541, 7541, 478, 802, 4040, 2923, 3467, 468, 1970, 309, 374, 422, 702, 18, 5332, 67, 856, 2932, 17, 71, 6, 4672, 702, 9614, 17, 71, 11929, 273, 306, 6398, 98, 2984, 16, 9850, 64, 12911, 308, 225, 309, 374, 422, 702, 18, 5332, 67, 856, 2932, 17, 92, 6, 4672, 2321, 67, 9167, 2932, 2925, 30, 4554, 1240, 358, 999, 7056, 1459, 24927, 92, 13, 358, 284, 802, 2346, 7923, 225, 309, 374, 422, 702, 18, 5332, 67, 856, 2932, 17, 87, 6, 4672, 2321, 67, 9167, 2932, 2925, 30, 4554, 1240, 358, 6103, 508, 434, 7016, 2619, 7923, 309, 261, 20, 422, 8247, 1098, 3113, 315, 10259, 6, 8009, 1883, 12, 2116, 9614, 17, 83, 6, 8009, 8167, 1435, 3719, 471, 261, 20, 422, 702, 18, 5332, 67, 856, 2932, 17, 82, 6, 3719, 30, 2321, 67, 9167, 2932, 2925, 30, 4554, 1240, 358, 6103, 508, 434, 326, 3590, 7923, 225, 309, 404, 422, 702, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2346, 67, 3838, 273, 306, 225, 315, 5201, 3113, 315, 1589, 3113, 315, 5629, 3113, 315, 20380, 3113, 315, 11369, 3113, 315, 4148, 3113, 315, 1128, 3113, 315, 625, 4793, 3113, 315, 5819, 3113, 315, 24002, 3113, 315, 24002, 67, 4263, 3113, 315, 8869, 3113, 315, 10534, 3113, 315, 19360, 3113, 315, 76, 13952, 67, 1589, 3113, 315, 4172, 67, 13325, 3113, 315, 11287, 6, 308, 225, 702, 273, 866, 67, 2630, 12, 5964, 67, 3838, 16, 1207, 67, 2630, 12, 5964, 67, 3838, 3719, 225, 7541, 7541, 478, 802, 4040, 2923, 3467, 468, 1970, 309, 374, 422, 702, 18, 5332, 67, 856, 2932, 17, 71, 6, 4672, 702, 9614, 17, 71, 11929, 273, 306, 6398, 2 ]
self.document.reporter.warning('"compound" not supported', base_node=node)
pass
def visit_compound(self, node): self.document.reporter.warning('"compound" not supported', base_node=node)
bdf9926cc9cebcea470a8a249ba9134a25cce769 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/bdf9926cc9cebcea470a8a249ba9134a25cce769/manpage.py
[ 1, 8585, 326, 22398, 316, 326, 981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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 22585, 12, 2890, 16, 756, 4672, 365, 18, 5457, 18, 266, 7988, 18, 8551, 22076, 22585, 6, 486, 3260, 2187, 1026, 67, 2159, 33, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if len(parts) != 1: if parts[1] in componentsToRemove: byDefault = False
if len(parts) == 2 and parts[1] in componentsToRemove: byDefault = False
def _addImplicitTroves(self, childGroups): componentsToRemove = self.removeComponentList
ebb35f5a98dfff5be41a36d29e2d0b29839f78e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ebb35f5a98dfff5be41a36d29e2d0b29839f78e7/grouprecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 15787, 56, 303, 3324, 12, 2890, 16, 1151, 3621, 4672, 4085, 12765, 273, 365, 18, 4479, 1841, 682, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 15787, 56, 303, 3324, 12, 2890, 16, 1151, 3621, 4672, 4085, 12765, 273, 365, 18, 4479, 1841, 682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
- ``ManinSymbol`` - the `i`'th Manin symbol in the list.
``ManinSymbol`` - the `i`'th Manin symbol in the list.
def manin_symbol(self, i): """ Returns the i'th ManinSymbol in this ManinSymbolList.
9ae824ec769dcfde5ec83bc3e40af81e971a8b62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9ae824ec769dcfde5ec83bc3e40af81e971a8b62/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3161, 267, 67, 7175, 12, 2890, 16, 277, 4672, 3536, 2860, 326, 277, 1404, 76, 8660, 267, 5335, 316, 333, 8660, 267, 5335, 682, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3161, 267, 67, 7175, 12, 2890, 16, 277, 4672, 3536, 2860, 326, 277, 1404, 76, 8660, 267, 5335, 316, 333, 8660, 267, 5335, 682, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for key, value in headers.iteritems():
for key, value in headers.items():
def __init__(self, url, data=None, headers={}): # unwrap('<URL:type://host/path>') --> 'type://host/path' self.__original = unwrap(url) self.type = None # self.__r_type is what's left after doing the splittype self.host = None self.port = None self.data = data self.headers = {} for key, value in headers.iteritems(): self.add_header(key, value)
5146cd2143c5033148b5128a74243b44f617b854 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5146cd2143c5033148b5128a74243b44f617b854/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 880, 16, 501, 33, 7036, 16, 1607, 12938, 4672, 468, 11014, 2668, 32, 1785, 30, 723, 2207, 2564, 19, 803, 1870, 13, 15431, 296, 723, 2207, 2564, 19, 803, 11, 365, 16186, 8830, 273, 11014, 12, 718, 13, 365, 18, 723, 273, 599, 468, 365, 16186, 86, 67, 723, 353, 4121, 1807, 2002, 1839, 9957, 326, 1416, 723, 365, 18, 2564, 273, 599, 365, 18, 655, 273, 599, 365, 18, 892, 273, 501, 365, 18, 2485, 273, 2618, 364, 498, 16, 460, 316, 1607, 18, 3319, 13332, 365, 18, 1289, 67, 3374, 12, 856, 16, 460, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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2668, 32, 1785, 30, 723, 2207, 2564, 19, 803, 1870, 13, 15431, 296, 723, 2207, 2564, 19, 803, 11, 365, 16186, 8830, 273, 11014, 12, 718, 13, 365, 18, 723, 273, 599, 468, 365, 16186, 86, 67, 723, 353, 4121, 1807, 2002, 1839, 9957, 326, 1416, 723, 365, 18, 2564, 273, 599, 365, 18, 655, 273, 599, 365, 18, 892, 273, 501, 365, 18, 2485, 273, 2618, 364, 498, 16, 460, 316, 1607, 18, 3319, 13332, 365, 18, 1289, 67, 3374, 12, 856, 16, 460, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
site = self.site)
site = self.site)
def __call__(self, m, d): import wikipedia return wikipedia.html2unicode((date_format[m][self.site.lang]) % d, site = self.site)
77348e64753248c38f56abf347a0f4ea56aa5d03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/77348e64753248c38f56abf347a0f4ea56aa5d03/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 312, 16, 302, 4672, 1930, 21137, 327, 21137, 18, 2620, 22, 9124, 12443, 712, 67, 2139, 63, 81, 6362, 2890, 18, 4256, 18, 4936, 5717, 738, 302, 16, 2834, 273, 365, 18, 4256, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 312, 16, 302, 4672, 1930, 21137, 327, 21137, 18, 2620, 22, 9124, 12443, 712, 67, 2139, 63, 81, 6362, 2890, 18, 4256, 18, 4936, 5717, 738, 302, 16, 2834, 273, 365, 18, 4256, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if len(ritems)==1:
if len(ritems) == 1:
def get_users(self,name): if name.find("@")>=0: if self.roster: try: ritems=self.roster.get_items_by_name(name,self.settings["case_sensitive"]) except KeyError: ritems=None if ritems: if len(ritems)==1: return [ritems[0].jid] try: return [pyxmpp.JID(name)] except pyxmpp.JIDError: self.__logger.error(u"Invalid JID: %s" % (name,)) return None
ccaf74aaac293546ae6aab585b071a799026af33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/ccaf74aaac293546ae6aab585b071a799026af33/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5577, 12, 2890, 16, 529, 4672, 309, 508, 18, 4720, 2932, 36, 7923, 34, 33, 20, 30, 309, 365, 18, 303, 8190, 30, 775, 30, 436, 3319, 33, 2890, 18, 303, 8190, 18, 588, 67, 3319, 67, 1637, 67, 529, 12, 529, 16, 2890, 18, 4272, 9614, 3593, 67, 23481, 6, 5717, 1335, 4999, 30, 436, 3319, 33, 7036, 309, 436, 3319, 30, 309, 562, 12, 583, 7424, 13, 422, 404, 30, 327, 306, 583, 7424, 63, 20, 8009, 18252, 65, 775, 30, 327, 306, 2074, 92, 24109, 18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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5577, 12, 2890, 16, 529, 4672, 309, 508, 18, 4720, 2932, 36, 7923, 34, 33, 20, 30, 309, 365, 18, 303, 8190, 30, 775, 30, 436, 3319, 33, 2890, 18, 303, 8190, 18, 588, 67, 3319, 67, 1637, 67, 529, 12, 529, 16, 2890, 18, 4272, 9614, 3593, 67, 23481, 6, 5717, 1335, 4999, 30, 436, 3319, 33, 7036, 309, 436, 3319, 30, 309, 562, 12, 583, 7424, 13, 422, 404, 30, 327, 306, 583, 7424, 63, 20, 8009, 18252, 65, 775, 30, 327, 306, 2074, 92, 24109, 18, 46, 734, 12, 529, 25887, 1335, 2395, 92, 24109, 18, 46, 734, 668, 30, 365, 16186, 4901, 18, 1636, 12, 89, 6, 1941, 804, 734, 30, 738, 2 ]
def OnLoginCVS(self, event):
def OnLoginCVS(self, event, cvsroot=''):
def OnLoginCVS(self, event): cvsDir = self.list.node.resourcepath
b94d80a8d6380c520f64a27f00e364c24e6099b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b94d80a8d6380c520f64a27f00e364c24e6099b8/CVSExplorer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5358, 39, 14640, 12, 2890, 16, 871, 16, 276, 6904, 3085, 2218, 11, 4672, 276, 6904, 1621, 273, 365, 18, 1098, 18, 2159, 18, 3146, 803, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5358, 39, 14640, 12, 2890, 16, 871, 16, 276, 6904, 3085, 2218, 11, 4672, 276, 6904, 1621, 273, 365, 18, 1098, 18, 2159, 18, 3146, 803, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if encoding.lower() == 'q':
if encoding == 'q':
def decode(s): """Return a decoded string according to RFC 2047, as a unicode string.""" rtn = [] parts = ecre.split(s, 1) while parts: # If there are less than 4 parts, it can't be encoded and we're done if len(parts) < 5: rtn.extend(parts) break # The first element is any non-encoded leading text rtn.append(parts[0]) charset = parts[1] encoding = parts[2] atom = parts[3] # The next chunk to decode should be in parts[4] parts = ecre.split(parts[4]) # The encoding must be either `q' or `b', case-insensitive if encoding.lower() == 'q': func = _qdecode elif encoding.lower() == 'b': func = _bdecode else: func = _identity # Decode and get the unicode in the charset rtn.append(unicode(func(atom), charset)) # Now that we've decoded everything, we just need to join all the parts # together into the final string. return UEMPTYSTRING.join(rtn)
fa4ae2d937f23575cf56440bc1109df04699d23b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fa4ae2d937f23575cf56440bc1109df04699d23b/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 87, 4672, 3536, 990, 279, 6383, 533, 4888, 358, 8372, 11492, 27, 16, 487, 279, 5252, 533, 12123, 12119, 273, 5378, 2140, 273, 425, 1793, 18, 4939, 12, 87, 16, 404, 13, 1323, 2140, 30, 468, 971, 1915, 854, 5242, 2353, 1059, 2140, 16, 518, 848, 1404, 506, 3749, 471, 732, 4565, 2731, 309, 562, 12, 6019, 13, 411, 1381, 30, 12119, 18, 14313, 12, 6019, 13, 898, 468, 1021, 1122, 930, 353, 1281, 1661, 17, 10787, 7676, 977, 12119, 18, 6923, 12, 6019, 63, 20, 5717, 4856, 273, 2140, 63, 21, 65, 2688, 273, 2140, 63, 22, 65, 3179, 273, 2140, 63, 23, 65, 468, 1021, 1024, 2441, 358, 2495, 1410, 506, 316, 2140, 63, 24, 65, 2140, 273, 425, 1793, 18, 4939, 12, 6019, 63, 24, 5717, 468, 1021, 2688, 1297, 506, 3344, 1375, 85, 11, 578, 1375, 70, 2187, 648, 17, 31940, 309, 2688, 422, 296, 85, 4278, 1326, 273, 389, 85, 3922, 1327, 2688, 18, 8167, 1435, 422, 296, 70, 4278, 1326, 273, 389, 70, 3922, 469, 30, 1326, 273, 389, 10781, 468, 6209, 471, 336, 326, 5252, 316, 326, 4856, 12119, 18, 6923, 12, 9124, 12, 644, 12, 7466, 3631, 4856, 3719, 468, 4494, 716, 732, 8081, 6383, 7756, 16, 732, 2537, 1608, 358, 1233, 777, 326, 2140, 468, 9475, 1368, 326, 727, 533, 18, 327, 587, 13625, 5804, 18, 5701, 12, 3797, 82, 13, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 87, 4672, 3536, 990, 279, 6383, 533, 4888, 358, 8372, 11492, 27, 16, 487, 279, 5252, 533, 12123, 12119, 273, 5378, 2140, 273, 425, 1793, 18, 4939, 12, 87, 16, 404, 13, 1323, 2140, 30, 468, 971, 1915, 854, 5242, 2353, 1059, 2140, 16, 518, 848, 1404, 506, 3749, 471, 732, 4565, 2731, 309, 562, 12, 6019, 13, 411, 1381, 30, 12119, 18, 14313, 12, 6019, 13, 898, 468, 1021, 1122, 930, 353, 1281, 1661, 17, 10787, 7676, 977, 12119, 18, 6923, 12, 6019, 63, 20, 5717, 4856, 273, 2140, 63, 21, 65, 2688, 273, 2140, 63, 22, 65, 3179, 273, 2140, 63, 23, 65, 468, 1021, 1024, 2441, 358, 2495, 1410, 506, 316, 2140, 63, 2 ]
zip.write(file) zip.write(ascfile)
zip.write(file, os.path.basename(file)) zip.write(ascfile, os.path.basename(ascfile))
def buildPackages(self): for filename in os.listdir(self.distDir): for (pack, regex) in self.packageRegex.items(): if re.compile(regex).match(filename): file = self.distDir + "/" + filename ascfile = file + ".asc" zipFileName = self.packDir + "/" + pack + ".z" # If .asc file is there, build Zip file if os.access(ascfile, os.R_OK): zip = zipfile.ZipFile(zipFileName, "w") zip.write(file) zip.write(ascfile) zip.close() self.packageList[pack] = zipFileName break if len(self.packageList) > 0: return True else: return False
bccb8cb88416f1c7cb5dd7285c9816588f2d5b1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7360/bccb8cb88416f1c7cb5dd7285c9816588f2d5b1a/gettor_packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 11425, 12, 2890, 4672, 364, 1544, 316, 1140, 18, 1098, 1214, 12, 2890, 18, 4413, 1621, 4672, 364, 261, 2920, 16, 3936, 13, 316, 365, 18, 5610, 6628, 18, 3319, 13332, 309, 283, 18, 11100, 12, 7584, 2934, 1916, 12, 3459, 4672, 585, 273, 365, 18, 4413, 1621, 397, 4016, 397, 1544, 6972, 768, 273, 585, 397, 3552, 3691, 6, 3144, 4771, 225, 273, 365, 18, 2920, 1621, 397, 4016, 397, 2298, 397, 3552, 94, 6, 468, 971, 263, 3691, 585, 353, 1915, 16, 1361, 8603, 585, 309, 1140, 18, 3860, 12, 3691, 768, 16, 1140, 18, 54, 67, 3141, 4672, 3144, 273, 18823, 18, 29394, 12, 4450, 4771, 16, 315, 91, 7923, 3144, 18, 2626, 12, 768, 16, 1140, 18, 803, 18, 13909, 12, 768, 3719, 3144, 18, 2626, 12, 3691, 768, 16, 1140, 18, 803, 18, 13909, 12, 3691, 768, 3719, 3144, 18, 4412, 1435, 365, 18, 5610, 682, 63, 2920, 65, 273, 3144, 4771, 898, 309, 562, 12, 2890, 18, 5610, 682, 13, 405, 374, 30, 327, 1053, 469, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 11425, 12, 2890, 4672, 364, 1544, 316, 1140, 18, 1098, 1214, 12, 2890, 18, 4413, 1621, 4672, 364, 261, 2920, 16, 3936, 13, 316, 365, 18, 5610, 6628, 18, 3319, 13332, 309, 283, 18, 11100, 12, 7584, 2934, 1916, 12, 3459, 4672, 585, 273, 365, 18, 4413, 1621, 397, 4016, 397, 1544, 6972, 768, 273, 585, 397, 3552, 3691, 6, 3144, 4771, 225, 273, 365, 18, 2920, 1621, 397, 4016, 397, 2298, 397, 3552, 94, 6, 468, 971, 263, 3691, 585, 353, 1915, 16, 1361, 8603, 585, 309, 1140, 18, 3860, 12, 3691, 768, 16, 1140, 18, 54, 67, 3141, 4672, 3144, 273, 18823, 18, 29394, 12, 4450, 4771, 16, 315, 91, 7923, 3144, 18, 2626, 12, 2 ]
url = "" keys = params.keys() keys.sort()
deco = [(key.lower(),i,key) for i,key in enumerate(params.keys())] deco.sort() keys = [key for _,_,key in deco] url = '' canonical = ''
def make_url(self, returnURL, paymentReason, pipelineName, **params): """ Generate the URL with the signature required for a transaction """ params['callerKey'] = str(self.aws_access_key_id) params['returnURL'] = str(returnURL) params['paymentReason'] = str(paymentReason) params['pipelineName'] = pipelineName
8d08548b096b0ee319c5f725053f593549e9804b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/8d08548b096b0ee319c5f725053f593549e9804b/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 718, 12, 2890, 16, 327, 1785, 16, 5184, 8385, 16, 5873, 461, 16, 2826, 2010, 4672, 3536, 6654, 326, 1976, 598, 326, 3372, 1931, 364, 279, 2492, 3536, 859, 3292, 16140, 653, 3546, 273, 609, 12, 2890, 18, 6850, 67, 3860, 67, 856, 67, 350, 13, 859, 3292, 2463, 1785, 3546, 273, 609, 12, 2463, 1785, 13, 859, 3292, 9261, 8385, 3546, 273, 609, 12, 9261, 8385, 13, 859, 3292, 14511, 461, 3546, 273, 5873, 461, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 718, 12, 2890, 16, 327, 1785, 16, 5184, 8385, 16, 5873, 461, 16, 2826, 2010, 4672, 3536, 6654, 326, 1976, 598, 326, 3372, 1931, 364, 279, 2492, 3536, 859, 3292, 16140, 653, 3546, 273, 609, 12, 2890, 18, 6850, 67, 3860, 67, 856, 67, 350, 13, 859, 3292, 2463, 1785, 3546, 273, 609, 12, 2463, 1785, 13, 859, 3292, 9261, 8385, 3546, 273, 609, 12, 9261, 8385, 13, 859, 3292, 14511, 461, 3546, 273, 5873, 461, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""construct a file object.
"""Construct a File object.
def __init__(self, file, **keyw): """construct a file object.
1ad1a64c1cb68257b9fa744cb8c97d06c68365e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9569/1ad1a64c1cb68257b9fa744cb8c97d06c68365e4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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 16, 2826, 856, 91, 4672, 3536, 10062, 279, 585, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print 'shlex: reading from %s, line %d' % (self.instream,self.lineno)
print 'shlex: reading from %s, line %d' \ % (self.instream, self.lineno)
def __init__(self, instream=None, infile=None): if instream: self.instream = instream self.infile = infile else: self.instream = sys.stdin self.infile = None self.commenters = '#' self.wordchars = 'abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' self.whitespace = ' \t\r\n' self.quotes = '\'"' self.state = ' ' self.pushback = []; self.lineno = 1 self.debug = 0 self.token = ''
52dc76c81fffa709fae35af92538723d23ad18d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/52dc76c81fffa709fae35af92538723d23ad18d6/shlex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1804, 793, 33, 7036, 16, 14568, 33, 7036, 4672, 309, 1804, 793, 30, 365, 18, 267, 3256, 273, 1804, 793, 365, 18, 267, 768, 273, 14568, 469, 30, 365, 18, 267, 3256, 273, 2589, 18, 21772, 365, 18, 267, 768, 273, 599, 365, 18, 3469, 414, 273, 6501, 365, 18, 1095, 7549, 273, 296, 18947, 2180, 1332, 76, 8302, 16391, 13607, 556, 85, 16114, 30900, 17177, 26904, 12904, 16715, 45, 19474, 17063, 3417, 28386, 10637, 20147, 59, 23479, 26684, 4623, 365, 18, 18777, 273, 296, 521, 88, 64, 86, 64, 82, 11, 365, 18, 18653, 273, 2337, 4970, 11, 365, 18, 2019, 273, 296, 296, 365, 18, 6206, 823, 273, 5378, 31, 365, 18, 17782, 273, 404, 365, 18, 4148, 273, 374, 365, 18, 2316, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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273, 599, 365, 18, 3469, 414, 273, 6501, 365, 18, 1095, 7549, 273, 296, 18947, 2180, 1332, 76, 8302, 16391, 13607, 556, 85, 16114, 30900, 17177, 26904, 12904, 16715, 45, 19474, 17063, 3417, 28386, 10637, 20147, 59, 23479, 26684, 4623, 365, 18, 18777, 273, 296, 521, 88, 64, 86, 64, 82, 11, 365, 18, 18653, 273, 2337, 4970, 11, 365, 18, 2019, 273, 296, 296, 365, 18, 6206, 823, 273, 5378, 31, 2 ]
episodes = self.get_new_episodes()
updated_urls = [c.url for c in channels] episodes = self.get_new_episodes([c for c in self.channels if c.url in updated_urls])
def update_feed_cache_finish_callback(self, channels=None, notify_no_new_episodes=False, select_url_afterwards=None):
9aacf63abe0095fd13d378620cd70c48d6c9441b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/9aacf63abe0095fd13d378620cd70c48d6c9441b/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 7848, 67, 2493, 67, 13749, 67, 3394, 12, 2890, 16, 5750, 33, 7036, 16, 5066, 67, 2135, 67, 2704, 67, 881, 27134, 33, 8381, 16, 2027, 67, 718, 67, 5205, 6397, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 981, 30, 1652, 1089, 67, 7848, 67, 2493, 67, 13749, 67, 3394, 12, 2890, 16, 5750, 33, 7036, 16, 5066, 67, 2135, 67, 2704, 67, 881, 27134, 33, 8381, 16, 2027, 67, 718, 67, 5205, 6397, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for prefix in 're:', 'glob:', 'path:':
for prefix in 're:', 'glob:', 'path:', 'relpath:':
def patkind(name): for prefix in 're:', 'glob:', 'path:': if name.startswith(prefix): return name.split(':', 1) for c in name: if c in _globchars: return 'glob', name return 'relpath', name
594c5d7ede332229c08396390e8079b109da396f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/594c5d7ede332229c08396390e8079b109da396f/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9670, 9224, 12, 529, 4672, 364, 1633, 316, 296, 266, 30, 2187, 296, 10581, 30, 2187, 296, 803, 30, 2187, 296, 2878, 803, 2497, 30, 309, 508, 18, 17514, 1918, 12, 3239, 4672, 327, 508, 18, 4939, 2668, 30, 2187, 404, 13, 364, 276, 316, 508, 30, 309, 276, 316, 389, 10581, 7549, 30, 327, 296, 10581, 2187, 508, 327, 296, 2878, 803, 2187, 508, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9670, 9224, 12, 529, 4672, 364, 1633, 316, 296, 266, 30, 2187, 296, 10581, 30, 2187, 296, 803, 30, 2187, 296, 2878, 803, 2497, 30, 309, 508, 18, 17514, 1918, 12, 3239, 4672, 327, 508, 18, 4939, 2668, 30, 2187, 404, 13, 364, 276, 316, 508, 30, 309, 276, 316, 389, 10581, 7549, 30, 327, 296, 10581, 2187, 508, 327, 296, 2878, 803, 2187, 508, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
The other six default arguments (verbose, quiet, generate, exclude, single, and randomize) allow programmers calling main() directly to set the values that would normally be set by flags on the command line.
The other seven default arguments (verbose, quiet, generate, exclude, single, randomize, and leakdebug) allow programmers calling main() directly to set the values that would normally be set by flags on the command line.
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdir -- the directory in which to look for tests (optional) Users other than the Python test suite will certainly want to specify testdir; if it's omitted, the directory containing the Python test suite is searched for. If the tests argument is omitted, the tests listed on the command-line will be used. If that's empty, too, then all *.py files beginning with test_ will be used. The other six default arguments (verbose, quiet, generate, exclude, single, and randomize) allow programmers calling main() directly to set the values that would normally be set by flags on the command line. """ try: opts, args = getopt.getopt(sys.argv[1:], 'vgqxsr') except getopt.error, msg: print msg print __doc__ return 2 for o, a in opts: if o == '-v': verbose = verbose+1 if o == '-q': quiet = 1; verbose = 0 if o == '-g': generate = 1 if o == '-x': exclude = 1 if o == '-s': single = 1 if o == '-r': randomize = 1 if generate and verbose: print "-g and -v don't go together!" return 2 good = [] bad = [] skipped = [] if single: from tempfile import gettempdir filename = os.path.join(gettempdir(), 'pynexttest') try: fp = open(filename, 'r') next = string.strip(fp.read()) tests = [next] fp.close() except IOError: pass for i in range(len(args)): # Strip trailing ".py" from arguments if args[i][-3:] == '.py': args[i] = args[i][:-3] stdtests = STDTESTS[:] nottests = NOTTESTS[:] if exclude: for arg in args: if arg in stdtests: stdtests.remove(arg) nottests[:0] = args args = [] tests = tests or args or findtests(testdir, stdtests, nottests) if single: tests = tests[:1] if randomize: random.shuffle(tests) test_support.verbose = verbose # Tell tests to be moderately quiet save_modules = sys.modules.keys() for test in tests: if not quiet: print test ok = runtest(test, generate, verbose, testdir) if ok > 0: good.append(test) elif ok == 0: bad.append(test) else: if not quiet: print "test", test, print "skipped -- an optional feature could not be imported" skipped.append(test) # Unload the newly imported modules (best effort finalization) for module in sys.modules.keys(): if module not in save_modules and module.startswith("test."): test_support.unload(module) if good and not quiet: if not bad and not skipped and len(good) > 1: print "All", print count(len(good), "test"), "OK." if bad: print count(len(bad), "test"), "failed:", print string.join(bad) if skipped and not quiet: print count(len(skipped), "test"), "skipped:", print string.join(skipped) if single: alltests = findtests(testdir, stdtests, nottests) for i in range(len(alltests)): if tests[0] == alltests[i]: if i == len(alltests) - 1: os.unlink(filename) else: fp = open(filename, 'w') fp.write(alltests[i+1] + '\n') fp.close() break else: os.unlink(filename) return len(bad) > 0
a873b03ebb24076b3664ba694eeed4ab07d176d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a873b03ebb24076b3664ba694eeed4ab07d176d9/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 20, 16, 2103, 33, 20, 16, 4433, 33, 20, 16, 2202, 33, 20, 16, 2744, 554, 33, 20, 4672, 3536, 5289, 279, 1842, 11371, 18, 225, 1220, 2546, 8940, 1296, 17, 1369, 702, 471, 23934, 2097, 6885, 15905, 18, 225, 7434, 1493, 279, 666, 434, 2064, 4191, 1842, 1257, 261, 10444, 13, 1842, 1214, 1493, 326, 1867, 316, 1492, 358, 2324, 364, 7434, 261, 10444, 13, 225, 12109, 1308, 2353, 326, 6600, 1842, 11371, 903, 8626, 715, 2545, 358, 4800, 1842, 1214, 31, 309, 518, 1807, 16195, 16, 326, 1867, 4191, 326, 6600, 1842, 11371, 353, 19242, 364, 18, 225, 971, 326, 7434, 1237, 353, 16195, 16, 326, 7434, 12889, 603, 326, 1296, 17, 1369, 903, 506, 1399, 18, 225, 971, 716, 1807, 1008, 16, 4885, 16, 1508, 777, 380, 18, 2074, 1390, 8435, 598, 1842, 67, 903, 506, 1399, 18, 225, 1021, 1308, 695, 3995, 805, 1775, 261, 11369, 16, 10902, 16, 2103, 16, 4433, 16, 2202, 16, 2744, 554, 16, 471, 20891, 4148, 13, 1699, 5402, 81, 414, 4440, 2774, 1435, 5122, 358, 444, 326, 924, 716, 4102, 15849, 506, 444, 635, 2943, 603, 326, 1296, 980, 18, 225, 3536, 225, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 20105, 85, 92, 11254, 6134, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 1172, 1234, 1172, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 20, 16, 2103, 33, 20, 16, 4433, 33, 20, 16, 2202, 33, 20, 16, 2744, 554, 33, 20, 4672, 3536, 5289, 279, 1842, 11371, 18, 225, 1220, 2546, 8940, 1296, 17, 1369, 702, 471, 23934, 2097, 6885, 15905, 18, 225, 7434, 1493, 279, 666, 434, 2064, 4191, 1842, 1257, 261, 10444, 13, 1842, 1214, 1493, 326, 1867, 316, 1492, 358, 2324, 364, 7434, 261, 10444, 13, 225, 12109, 1308, 2353, 326, 6600, 1842, 11371, 903, 8626, 715, 2545, 358, 4800, 1842, 1214, 31, 309, 518, 1807, 16195, 16, 326, 1867, 4191, 326, 6600, 1842, 11371, 353, 19242, 364, 18, 225, 971, 2 ]
return endbaseAtoms[1]
return endbaseAtoms[0]
def get_five_prime_end_base_atom(self): """ Returns the five prime end base atom of this strand. If one doesn't exist, returns None @see: self.get_strand_end_base_atoms() """ endbaseAtoms = self.get_strand_end_base_atoms() return endbaseAtoms[1]
aafa3515c4462b36394a6bb2da7d59da450e8a9f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/aafa3515c4462b36394a6bb2da7d59da450e8a9f/DnaStrand.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 74, 688, 67, 16382, 67, 409, 67, 1969, 67, 7466, 12, 2890, 4672, 3536, 2860, 326, 23714, 17014, 679, 1026, 3179, 434, 333, 16706, 18, 971, 1245, 3302, 1404, 1005, 16, 1135, 599, 632, 5946, 30, 365, 18, 588, 67, 701, 464, 67, 409, 67, 1969, 67, 14937, 1435, 3536, 679, 1969, 14280, 273, 365, 18, 588, 67, 701, 464, 67, 409, 67, 1969, 67, 14937, 1435, 327, 679, 1969, 14280, 63, 20, 65, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 74, 688, 67, 16382, 67, 409, 67, 1969, 67, 7466, 12, 2890, 4672, 3536, 2860, 326, 23714, 17014, 679, 1026, 3179, 434, 333, 16706, 18, 971, 1245, 3302, 1404, 1005, 16, 1135, 599, 632, 5946, 30, 365, 18, 588, 67, 701, 464, 67, 409, 67, 1969, 67, 14937, 1435, 3536, 679, 1969, 14280, 273, 365, 18, 588, 67, 701, 464, 67, 409, 67, 1969, 67, 14937, 1435, 327, 679, 1969, 14280, 63, 20, 65, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fields = [] conditions = []
if fields == None: fields = [] if conditions == None: conditions = []
def build_post_form_args(self, bucket_name, key, expires_in = 6000, acl = None, success_action_redirect = None, max_content_length = None, http_method = "http"): """ Taken from the AWS book Python examples and modified for use with boto This only returns the arguments required for the post form, not the actual form This does not return the file input field which also needs to be added
da405a484d62efbf140d39cedf1b447234b6f055 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/da405a484d62efbf140d39cedf1b447234b6f055/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2767, 67, 687, 67, 1968, 12, 2890, 16, 2783, 67, 529, 16, 498, 16, 7368, 67, 267, 273, 1666, 3784, 16, 7895, 273, 599, 16, 2216, 67, 1128, 67, 7590, 273, 599, 16, 943, 67, 1745, 67, 2469, 273, 599, 16, 1062, 67, 2039, 273, 315, 2505, 6, 4672, 3536, 399, 7940, 628, 326, 3279, 6978, 6600, 10991, 471, 4358, 364, 999, 598, 17228, 1220, 1338, 1135, 326, 1775, 1931, 364, 326, 1603, 646, 16, 486, 326, 3214, 646, 1220, 1552, 486, 327, 326, 585, 810, 652, 1492, 2546, 4260, 358, 506, 3096, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 267, 273, 1666, 3784, 16, 7895, 273, 599, 16, 2216, 67, 1128, 67, 7590, 273, 599, 16, 943, 67, 1745, 67, 2469, 273, 599, 16, 1062, 67, 2039, 273, 315, 2505, 6, 4672, 3536, 399, 7940, 628, 326, 3279, 6978, 6600, 10991, 471, 4358, 364, 999, 598, 17228, 1220, 1338, 1135, 326, 1775, 1931, 364, 326, 1603, 646, 16, 486, 326, 3214, 646, 1220, 1552, 486, 327, 326, 585, 810, 652, 1492, 2546, 4260, 358, 506, 3096, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
P += arrow((pos[u][0],pos[u][1]),(pos[v][0],pos[v][1]),rgbcolor=color)
this_edge=edge_style.copy() this_edge['rgbcolor']=color P += arrow((pos[u][0],pos[u][1]),(pos[v][0],pos[v][1]), **this_edge)
def plot(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, partition=None, edge_colors=None, scaling_term=0.05, iterations=50, loop_size=.1, talk=False, color_by_label=False, heights=None): """ Returns a graphics object representing the (di)graph. INPUT: pos -- an optional positioning dictionary layout -- what kind of layout to use, takes precedence over pos 'circular' -- plots the graph with vertices evenly distributed on a circle 'spring' -- uses the traditional spring layout, using the graph's current positions as initial positions vertex_labels -- whether to print vertex labels edge_labels -- whether to print edge labels. By default, False, but if True, the result of str(l) is printed on the edge for each label l. Labels equal to None are not printed. vertex_size -- size of vertices displayed graph_border -- whether to include a box around the graph vertex_colors -- optional dictionary to specify vertex colors: each key is a color recognizable by matplotlib, and each corresponding entry is a list of vertices. If a vertex is not listed, it looks invisible on the resulting plot (it doesn't get drawn). edge_colors -- a dictionary specifying edge colors: each key is a color recognized by matplotlib, and each entry is a list of edges. partition -- a partition of the vertex set. if specified, plot will show each cell in a different color. vertex_colors takes precedence. scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph is too small, decrease. should be positive, but values much bigger than 1/8 won't be useful unless the vertices are huge talk -- if true, prints large vertices with white backgrounds so that labels are legible on slides iterations -- how many iterations of the spring layout algorithm to go through, if applicable color_by_label -- if True, color edges by their labels heights -- if specified, this is a dictionary from a set of floating point heights to a set of vertices EXAMPLES: sage: from math import sin, cos, pi sage: P = graphs.PetersenGraph() sage: d = {'#FF0000':[0,5], '#FF9900':[1,6], '#FFFF00':[2,7], '#00FF00':[3,8], '#0000FF':[4,9]} sage: pos_dict = {} sage: for i in range(5): ... x = float(cos(pi/2 + ((2*pi)/5)*i)) ... y = float(sin(pi/2 + ((2*pi)/5)*i)) ... pos_dict[i] = [x,y] ... sage: for i in range(10)[5:]: ... x = float(0.5*cos(pi/2 + ((2*pi)/5)*i)) ... y = float(0.5*sin(pi/2 + ((2*pi)/5)*i)) ... pos_dict[i] = [x,y] ... sage: pl = P.plot(pos=pos_dict, vertex_colors=d) sage: pl.show() sage: C = graphs.CubeGraph(8) sage: P = C.plot(vertex_labels=False, vertex_size=0, graph_border=True) sage: P.show() sage: G = graphs.HeawoodGraph() sage: for u,v,l in G.edges(): ... G.set_edge_label(u,v,'(' + str(u) + ',' + str(v) + ')') sage: G.plot(edge_labels=True).show() sage: D = DiGraph( { 0: [1, 10, 19], 1: [8, 2], 2: [3, 6], 3: [19, 4], 4: [17, 5], 5: [6, 15], 6: [7], 7: [8, 14], 8: [9], 9: [10, 13], 10: [11], 11: [12, 18], 12: [16, 13], 13: [14], 14: [15], 15: [16], 16: [17], 17: [18], 18: [19], 19: []} ) sage: for u,v,l in D.edges(): ... D.set_edge_label(u,v,'(' + str(u) + ',' + str(v) + ')') sage: D.plot(edge_labels=True, layout='circular').show()
7524291de527a0df574d754449e74a613f7db457 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7524291de527a0df574d754449e74a613f7db457/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5253, 67, 9724, 33, 7036, 16, 3590, 33, 7036, 16, 3591, 67, 9724, 33, 7036, 16, 10612, 67, 6408, 33, 20, 18, 6260, 16, 11316, 33, 3361, 16, 2798, 67, 1467, 33, 18, 21, 16, 26591, 33, 8381, 16, 2036, 67, 1637, 67, 1925, 33, 8381, 16, 24779, 33, 7036, 4672, 3536, 2860, 279, 17313, 733, 5123, 326, 261, 3211, 13, 4660, 18, 225, 12943, 30, 949, 1493, 392, 3129, 1754, 310, 3880, 3511, 1493, 4121, 3846, 434, 3511, 358, 999, 16, 5530, 14172, 1879, 949, 296, 11614, 9559, 11, 1493, 17931, 326, 2667, 598, 6928, 5456, 715, 16859, 603, 279, 12470, 296, 87, 11638, 11, 1493, 4692, 326, 1284, 1460, 287, 25974, 3511, 16, 1450, 326, 2667, 1807, 783, 6865, 487, 2172, 6865, 5253, 67, 5336, 1493, 2856, 358, 1172, 5253, 3249, 3591, 67, 5336, 1493, 2856, 358, 1172, 3591, 3249, 18, 2525, 805, 16, 1083, 16, 1496, 309, 1053, 16, 326, 563, 434, 609, 12, 80, 13, 353, 14099, 603, 326, 3591, 364, 1517, 1433, 328, 18, 12395, 3959, 358, 599, 854, 486, 14099, 18, 5253, 67, 1467, 1493, 963, 434, 6928, 10453, 2667, 67, 8815, 1493, 2856, 358, 2341, 279, 3919, 6740, 326, 2667, 5253, 67, 9724, 1493, 3129, 3880, 358, 4800, 5253, 5740, 30, 1517, 498, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5253, 67, 9724, 33, 7036, 16, 3590, 33, 7036, 16, 3591, 67, 9724, 33, 7036, 16, 10612, 67, 6408, 33, 20, 18, 6260, 16, 11316, 33, 3361, 16, 2798, 67, 1467, 33, 18, 21, 16, 26591, 33, 8381, 16, 2036, 67, 1637, 67, 1925, 33, 8381, 16, 24779, 33, 7036, 4672, 3536, 2860, 279, 17313, 733, 5123, 326, 261, 3211, 13, 4660, 18, 225, 12943, 30, 949, 1493, 392, 3129, 1754, 310, 3880, 3511, 1493, 4121, 3846, 434, 3511, 358, 999, 16, 2 ]
RemovedTroveIds.troveId == Provides.instanceId
RemovedTroveIds.troveId = Provides.instanceId
def _orderComponents(compGraph):
c3870e643626054f9dc7fe38751e71be00f92f1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c3870e643626054f9dc7fe38751e71be00f92f1b/deptable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1019, 7171, 12, 2919, 4137, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1019, 7171, 12, 2919, 4137, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return len(self.arraydata[0])
return len(HEADER_DATA)
def columnCount(self, parent): return len(self.arraydata[0])
607d61ba1ff81f344fc9e6cfe12ee3d3a86a8bff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13158/607d61ba1ff81f344fc9e6cfe12ee3d3a86a8bff/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22429, 12, 2890, 16, 982, 4672, 327, 562, 12, 7557, 67, 4883, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22429, 12, 2890, 16, 982, 4672, 327, 562, 12, 7557, 67, 4883, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]