rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
[(name, [Mpfr]) for name in unary_predicates] + \ [(name, [Mpfr]*2) for name in binary_predicates]
[(name, [IMpfr]) for name in unary_predicates] + \ [(name, [IMpfr]*2) for name in binary_predicates]
def error_on_failure(result, func, args): if result: raise ValueError("call failed") return result
b450c0023d8375a0580fdd1ed0db290a5d5cd85a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/b450c0023d8375a0580fdd1ed0db290a5d5cd85a/pympfr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 67, 265, 67, 12251, 12, 2088, 16, 1326, 16, 833, 4672, 309, 563, 30, 1002, 2068, 2932, 1991, 2535, 7923, 327, 563, 225, 2, 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, 0, 0, 0, 0, 0, 0, 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, 555, 67, 265, 67, 12251, 12, 2088, 16, 1326, 16, 833, 4672, 309, 563, 30, 1002, 2068, 2932, 1991, 2535, 7923, 327, 563, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
len(lst), len(fs.list))
len(lst), len(fs))
def cmp_post(fs, lst): if len(lst) != len(fs.list): print 'Lengths do not match: %r vs expected %r' % ( len(lst), len(fs.list)) return False for fs_item, (expect_name, expect_value) in zip(fs.list, lst): if fs_item.name != expect_name: print "Names don't match: %r vs expected %r" % ( fs_item.name, expect_name) if fs_it...
0369e8bb38e43986c2b821687317b89f670e62cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/0369e8bb38e43986c2b821687317b89f670e62cf/test_request_form.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 67, 2767, 12, 2556, 16, 9441, 4672, 309, 562, 12, 16923, 13, 480, 562, 12, 2556, 18, 1098, 4672, 1172, 296, 22406, 741, 486, 845, 30, 738, 86, 6195, 2665, 738, 86, 11, 738, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9411, 67, 2767, 12, 2556, 16, 9441, 4672, 309, 562, 12, 16923, 13, 480, 562, 12, 2556, 18, 1098, 4672, 1172, 296, 22406, 741, 486, 845, 30, 738, 86, 6195, 2665, 738, 86, 11, 738, 261...
fp = fileName
fp = fileName
def __init__(self, fileName): if not haveImages: warnOnce('Imaging Library not available, unable to import bitmaps') return #start wih lots of null private fields, to be populated by #the relevant engine. self.fileName = fileName self._image = None self._width = None self._height = None self._transparent = None self._d...
b232871229ec463da8e9e807bce8e7f1251cbe5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b232871229ec463da8e9e807bce8e7f1251cbe5c/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3968, 4672, 309, 486, 1240, 8946, 30, 1894, 12212, 2668, 1170, 5755, 18694, 486, 2319, 16, 13496, 358, 1930, 9389, 87, 6134, 327, 468, 1937, 341, 7392, 328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3968, 4672, 309, 486, 1240, 8946, 30, 1894, 12212, 2668, 1170, 5755, 18694, 486, 2319, 16, 13496, 358, 1930, 9389, 87, 6134, 327, 468, 1937, 341, 7392, 328...
tc = table.TableColumn(stylename=style.dumbcolumn, numbercolumnsrepeated=str(obj.numcols))
tc = table.TableColumn(stylename=style.dumbcolumn, numbercolumnsrepeated=str(obj.numcols))
def owriteTable(self, obj): # FIXME ADD FORMATTING # http://books.evc-cit.info/odbook/ch04.html#text-table-section t = table.Table() tc = table.TableColumn(stylename=style.dumbcolumn, numbercolumnsrepeated=str(obj.numcols)) # FIXME FIXME t.addElement(tc) captions = [c for c in obj.children if isinstance(c, advtree.Ca...
711841b8cecc707826754ced07cec1c1bef80db4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/711841b8cecc707826754ced07cec1c1bef80db4/odfwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2523, 796, 1388, 12, 2890, 16, 1081, 4672, 468, 9852, 11689, 10449, 56, 1360, 468, 1062, 2207, 12567, 18, 73, 4227, 17, 71, 305, 18, 1376, 19, 369, 3618, 19, 343, 3028, 18, 2620, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2523, 796, 1388, 12, 2890, 16, 1081, 4672, 468, 9852, 11689, 10449, 56, 1360, 468, 1062, 2207, 12567, 18, 73, 4227, 17, 71, 305, 18, 1376, 19, 369, 3618, 19, 343, 3028, 18, 2620, 7, ...
'''
"""
def HyperStarGraph(self,n,k): r''' Returns the hyper-star graph HS(n,k). The vertices of the hyper-star graph are the set of binary strings of length n which contain k 1s. Two vertices, u and v, are adjacent only if u can be obtained from v by swapping the first bit with a different symbol in another position. INPUT:...
e2ee6e2dee950e2eed3f8ce7082257fc1b9ee75d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e2ee6e2dee950e2eed3f8ce7082257fc1b9ee75d/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18274, 18379, 4137, 12, 2890, 16, 82, 16, 79, 4672, 436, 26418, 2860, 326, 9512, 17, 10983, 2667, 670, 55, 12, 82, 16, 79, 2934, 225, 1021, 6928, 434, 326, 9512, 17, 10983, 2667, 854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18274, 18379, 4137, 12, 2890, 16, 82, 16, 79, 4672, 436, 26418, 2860, 326, 9512, 17, 10983, 2667, 670, 55, 12, 82, 16, 79, 2934, 225, 1021, 6928, 434, 326, 9512, 17, 10983, 2667, 854, ...
menu="<Image>/Filters/Languages/Python-Fu/Python-Fu",
menu="<Image>/Filters/Languages/Python-Fu",
def timeout(): gimp.displays_flush() return True
e31bbcff9c75a37f469c340da28916c7049be8d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11058/e31bbcff9c75a37f469c340da28916c7049be8d4/python-console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2021, 13332, 314, 14532, 18, 5417, 87, 67, 11330, 1435, 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...
[ 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, 2021, 13332, 314, 14532, 18, 5417, 87, 67, 11330, 1435, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sage: -f == g.diff('x') True """
sage: f == g False """ if not isinstance(other, AxiomElement): return -1
def _cmp_(self, other): """ EXAMPLES: sage: a = axiom(1); b = axiom(2) # optional sage: a == b # optional False sage: a < b # optional True sage: a > b # optional False sage: b < a ...
c37aae41caccee4a71a6b90ea9abcd5b070a7522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c37aae41caccee4a71a6b90ea9abcd5b070a7522/axiom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 67, 12, 2890, 16, 1308, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 279, 273, 1740, 14642, 12, 21, 1769, 324, 273, 1740, 14642, 12, 22, 13, 5375, 468, 3129, 272, 410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 67, 12, 2890, 16, 1308, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 279, 273, 1740, 14642, 12, 21, 1769, 324, 273, 1740, 14642, 12, 22, 13, 5375, 468, 3129, 272, 410, ...
if reason[:3] != '550':
if str(reason)[:3] != '550':
def retrfile(self, file, type): import ftplib self.endtransfer() if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 try: self.ftp.voidcmd(cmd) except ftplib.all_errors: self.init() self.ftp.voidcmd(cmd) conn = None if file and not isdir: # Use nlst to see if the file exists at all tr...
2aa671823938e593ea9dedd33b3cc4194fde8a0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2aa671823938e593ea9dedd33b3cc4194fde8a0a/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17343, 768, 12, 2890, 16, 585, 16, 618, 4672, 1930, 11038, 6673, 365, 18, 409, 13866, 1435, 309, 618, 316, 7707, 72, 2187, 296, 40, 11, 4672, 1797, 273, 296, 2399, 432, 13506, 9783, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17343, 768, 12, 2890, 16, 585, 16, 618, 4672, 1930, 11038, 6673, 365, 18, 409, 13866, 1435, 309, 618, 316, 7707, 72, 2187, 296, 40, 11, 4672, 1797, 273, 296, 2399, 432, 13506, 9783, 27...
self.allow_all = 1
self.allow_all = True
def read(self): """Reads the robots.txt URL and feeds it to the parser.""" opener = URLopener() f = opener.open(self.url) lines = [] line = f.readline() while line: lines.append(line.strip()) line = f.readline() self.errcode = opener.errcode if self.errcode == 401 or self.errcode == 403: self.disallow_all = 1 _debug("d...
31bd529f5307f65702dbe2a0accbb5532b188a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/31bd529f5307f65702dbe2a0accbb5532b188a5c/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 4672, 3536, 7483, 326, 29255, 18, 5830, 1976, 471, 27684, 518, 358, 326, 2082, 12123, 20532, 273, 1976, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2890, 18, 718, 13, 2362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 3536, 7483, 326, 29255, 18, 5830, 1976, 471, 27684, 518, 358, 326, 2082, 12123, 20532, 273, 1976, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2890, 18, 718, 13, 2362...
def setBackgroundColor(self,*color):
def setBackgroundColor(self, *color):
def setBackgroundColor(self,*color): """ Sets the background color of the Scene
5b925f9c58b9ac467cb78ab1a12d74b97d67bb43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/5b925f9c58b9ac467cb78ab1a12d74b97d67bb43/scene.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21699, 12, 2890, 16, 380, 3266, 4672, 3536, 11511, 326, 5412, 2036, 434, 326, 29347, 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, ...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21699, 12, 2890, 16, 380, 3266, 4672, 3536, 11511, 326, 5412, 2036, 434, 326, 29347, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
assert len(self.pendingEntId2ParentId) == 0
assert len(self.parent2ChildIds) == 0
def handleZoneEnter(collisionEntry, self=self, zoneNum=zoneNum): # eat the collisionEntry self.enterZone(zoneNum)
777d7983d2b8abd3d31a58c9e56b4aeae2ccc398 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/777d7983d2b8abd3d31a58c9e56b4aeae2ccc398/DistributedLevel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 4226, 10237, 12, 12910, 1951, 1622, 16, 365, 33, 2890, 16, 4157, 2578, 33, 3486, 2578, 4672, 468, 20729, 326, 17740, 1622, 365, 18, 2328, 4226, 12, 3486, 2578, 13, 2, 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, 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, 1640, 4226, 10237, 12, 12910, 1951, 1622, 16, 365, 33, 2890, 16, 4157, 2578, 33, 3486, 2578, 4672, 468, 20729, 326, 17740, 1622, 365, 18, 2328, 4226, 12, 3486, 2578, 13, 2, -100, -100, ...
cond1.wait() cond1.release() cond2.wait() cond2.release()
cond.wait() cond.release()
def notlambda1(this): cond1.acquire() cond2.acquire() plog("INFO", "Committing jobs...") this.run_all_jobs = True self.schedule_low_prio(notlambda2) cond1.notify() cond1.release()
04282d1d6496f2be8e8fa3e21f7ef8bdc957fbe1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/04282d1d6496f2be8e8fa3e21f7ef8bdc957fbe1/bwauthority.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 14661, 21, 12, 2211, 4672, 6941, 21, 18, 1077, 1039, 1435, 6941, 22, 18, 1077, 1039, 1435, 293, 1330, 2932, 5923, 3113, 315, 5580, 1787, 6550, 7070, 13, 333, 18, 2681, 67, 454, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 486, 14661, 21, 12, 2211, 4672, 6941, 21, 18, 1077, 1039, 1435, 6941, 22, 18, 1077, 1039, 1435, 293, 1330, 2932, 5923, 3113, 315, 5580, 1787, 6550, 7070, 13, 333, 18, 2681, 67, 454, 67...
server = actionlib.SimpleActionServer(name, MoveBaseAction, execute_cb) rospy.loginfo('%s: Action server running', name)
server = actionlib.SimpleActionServer(name, MoveBaseAction, execute_cb) rospy.loginfo('%s: Action server running', name)
def execute_cb(goal): rospy.loginfo("Received a goal") if not set_tilt_profile([1.05, -.7, 1.05], [0.0, 1.8, 2.0125 + .3]): server.set_aborted(MoveBaseResult(), "Couldn't set the profile on the laser") return configure_laser() configure_head() move_base_client.send_goal(goal, None, None, feedback_cb) while not move...
122c6f7455ce682a4e43ae2b05805de7bdb5d781 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9426/122c6f7455ce682a4e43ae2b05805de7bdb5d781/pr2_move_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 7358, 12, 27354, 4672, 721, 30884, 18, 1330, 1376, 2932, 8872, 279, 17683, 7923, 309, 486, 444, 67, 29419, 67, 5040, 3816, 21, 18, 6260, 16, 225, 300, 18, 27, 16, 404, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 67, 7358, 12, 27354, 4672, 721, 30884, 18, 1330, 1376, 2932, 8872, 279, 17683, 7923, 309, 486, 444, 67, 29419, 67, 5040, 3816, 21, 18, 6260, 16, 225, 300, 18, 27, 16, 404, 18, ...
print v
def get_all_keys(self, headers=None, **params): """ A lower-level method for listing contents of a bucket. This closely models the actual S3 API and requires you to manually handle the paging of results. For a higher-level method that handles the details of paging for you, you can use the list method. @type maxkeys:...
0a1ed4d7c02f35fd68502a60bac9784fe1c9331d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/0a1ed4d7c02f35fd68502a60bac9784fe1c9331d/bucket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 2452, 12, 2890, 16, 1607, 33, 7036, 16, 2826, 2010, 4672, 3536, 432, 2612, 17, 2815, 707, 364, 11591, 2939, 434, 279, 2783, 18, 225, 1220, 1219, 1786, 93, 3679, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 454, 67, 2452, 12, 2890, 16, 1607, 33, 7036, 16, 2826, 2010, 4672, 3536, 432, 2612, 17, 2815, 707, 364, 11591, 2939, 434, 279, 2783, 18, 225, 1220, 1219, 1786, 93, 3679, 326, ...
ger_row(('atom_id','CA'),('entity_id', '1'))
get_row(('atom_id','CA'),('entity_id', '1'))
def get_row(self, *args): """Preforms a SQL-like 'AND' select aginst all the rows in the table, and returns the first matching row found. The arguments are a variable list of tuples of the form: (<lower-case-column-name>, <column-value>) For example: ger_row(('atom_id','CA'),('entity_id', '1')) returns the first match...
7875e677f8aac91050c2770247e9ca6fcb234e85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/7875e677f8aac91050c2770247e9ca6fcb234e85/mmCIF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 492, 12, 2890, 16, 380, 1968, 4672, 3536, 1386, 9741, 279, 3063, 17, 5625, 296, 4307, 11, 2027, 1737, 8591, 777, 326, 2595, 316, 326, 1014, 16, 471, 1135, 326, 1122, 3607, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 492, 12, 2890, 16, 380, 1968, 4672, 3536, 1386, 9741, 279, 3063, 17, 5625, 296, 4307, 11, 2027, 1737, 8591, 777, 326, 2595, 316, 326, 1014, 16, 471, 1135, 326, 1122, 3607, 102...
default_format: The extension to use if the type of the entry is not defined or unknown. (Default 'txt').
file_format: Suffix to give the file when downloading. For example, "txt", "csv", "xcl". Default None to let get_extension decide the extension.
def get_docs(self, base_path, entries, default_format='txt'): """Download documents. Keyword arguments: base_path: The path to download files to. This plus an entry's title plus its format-specific extension will form the complete path. entries: List of DocEntry items representing the files to download. default_format...
b87c88472d58dcada010ff77c413cafe72e51154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/b87c88472d58dcada010ff77c413cafe72e51154/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8532, 12, 2890, 16, 1026, 67, 803, 16, 3222, 16, 805, 67, 2139, 2218, 5830, 11, 4672, 3536, 7109, 7429, 18, 225, 18317, 1775, 30, 1026, 67, 803, 30, 1021, 589, 358, 4224, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 8532, 12, 2890, 16, 1026, 67, 803, 16, 3222, 16, 805, 67, 2139, 2218, 5830, 11, 4672, 3536, 7109, 7429, 18, 225, 18317, 1775, 30, 1026, 67, 803, 30, 1021, 589, 358, 4224, 13...
raise "\nERROR: Invalid Tree Item. "
raise Exception("\nERROR: Invalid Tree Item. ")
def GetFirstChild(self, item): """Gets the item first child."""
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, 968, 3759, 1763, 12, 2890, 16, 761, 4672, 3536, 3002, 326, 761, 1122, 1151, 12123, 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, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3759, 1763, 12, 2890, 16, 761, 4672, 3536, 3002, 326, 761, 1122, 1151, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
select A.ID, A.Value2 from %s as A, %s as B where A.Model = %s and B.Model = %s and A.Value2 = B.Value2 and A.ID <> B.ID
select A.ID, A.Value2 from %s as A, %s as B where A.Model = %s and B.Model = %s and A.Value2 = B.Value2 and A.ID <> B.ID
def CheckGuidProtocolPpiValue(self, ErrorID, Model): Name = '' Table = EccGlobalData.gDb.TblDec if Model == MODEL_EFI_GUID: Name = 'guid' if Model == MODEL_EFI_PROTOCOL: Name = 'protocol' if Model == MODEL_EFI_PPI: Name = 'ppi' SqlCommand = """ select A.ID, A.Value2 from %s as A, %s as B where A.Model = %s and B.Model ...
a6e36e70878424fa438700e0b8e96c273ec9e985 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/a6e36e70878424fa438700e0b8e96c273ec9e985/Check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 22549, 5752, 52, 7259, 620, 12, 2890, 16, 1068, 734, 16, 3164, 4672, 1770, 273, 875, 3555, 273, 512, 952, 5160, 751, 18, 75, 4331, 18, 22592, 1799, 309, 3164, 422, 21700, 67, 41,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2073, 22549, 5752, 52, 7259, 620, 12, 2890, 16, 1068, 734, 16, 3164, 4672, 1770, 273, 875, 3555, 273, 512, 952, 5160, 751, 18, 75, 4331, 18, 22592, 1799, 309, 3164, 422, 21700, 67, 41,...
('Previous Image', gtk.STOCK_GO_BACK, _('_Previous Image'), 'Left', _('Previous Image'), self.img_in_list_prev), ('Next Image', gtk.STOCK_GO_FORWARD, _('_Next Image'), 'Right', _('Next Image'), self.img_in_list_next), ('Previous2', gtk.STOCK_GO_BACK, _('_Previous'), 'Left', _('Previous'), self.img_in_list_prev), ('Next...
('Previous Image', gtk.STOCK_GO_BACK, _('_Previous Image'), 'Left', _('Previous Image'), self.goto_prev_image), ('Next Image', gtk.STOCK_GO_FORWARD, _('_Next Image'), 'Right', _('Next Image'), self.goto_next_image), ('Previous2', gtk.STOCK_GO_BACK, _('_Previous'), 'Left', _('Previous'), self.goto_prev_image), ('Next2',...
def __init__(self):
80bd8b120d791a7c2ba16ac790e82ce97ab073e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/80bd8b120d791a7c2ba16ac790e82ce97ab073e3/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 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,...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 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, -1...
ua_parsed = None ua_string = request.GET.get('ua_string', '') if ua_string: ua_parsed = models.user_agent.UserAgent.factory(ua_string) params = { 'ua_string': ua_string, 'ua_parsed': ua_parsed, }
def UaParser(request): output = request.REQUEST.get('o', 'html') # HTML form if output == 'html': ua_parsed = None ua_string = request.GET.get('ua_string', '') if ua_string: ua_parsed = models.user_agent.UserAgent.factory(ua_string) params = { 'ua_string': ua_string, 'ua_parsed': ua_parsed, } return Render(request, 'u...
bc59a0163627cf0f1755b0c5920e7287dadf1a10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5745/bc59a0163627cf0f1755b0c5920e7287dadf1a10/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 587, 69, 2678, 12, 2293, 4672, 876, 273, 590, 18, 5519, 18, 588, 2668, 83, 2187, 296, 2620, 6134, 225, 468, 3982, 646, 309, 876, 422, 296, 2620, 4278, 327, 6987, 12, 2293, 16, 296, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 69, 2678, 12, 2293, 4672, 876, 273, 590, 18, 5519, 18, 588, 2668, 83, 2187, 296, 2620, 6134, 225, 468, 3982, 646, 309, 876, 422, 296, 2620, 4278, 327, 6987, 12, 2293, 16, 296, 1...
if not quiet: print test sys.stdout.flush()
def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None)) return if not quiet: print test sys.stdout.flush() # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.du...
282396f27addf4ae6586865ccf449f60753a106c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/282396f27addf4ae6586865ccf449f60753a106c/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
fields = line.split() dt = datetime(*strptime(' '.join(fields[0:3]), "%Y %b %d")[0:3]) raw_date = ephem.Date(dt) date = ephem.Date(raw_date - self.tz) def check_time_and_angle((timestr, anglestr), our_angle): datestr = str(raw_date).split()[0] + ' ' + timestr their_date = ephem.Date(datestr) our_date = ephem.Date(obse...
data = self.data def check(attr): is_near(getattr(datum, attr), observer.date, ephem.minute) if attr == 'transit': datum_angle = datum.transit_alt our_angle = body.alt else: datum_angle = getattr(datum, attr + '_az') our_angle = body.az is_near(datum_angle, our_angle, ephem.degree) for i in range(len(data)):...
def check_data_line(self, line): """Determine if our rise/transit/set data match the USNO's.
c8ce4bf41bf8fbc9761f7bca3b84f54f97b852d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10979/c8ce4bf41bf8fbc9761f7bca3b84f54f97b852d1/test_usno.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 892, 67, 1369, 12, 2890, 16, 980, 4672, 3536, 8519, 309, 3134, 436, 784, 19, 2338, 305, 19, 542, 501, 845, 326, 11836, 3417, 1807, 18, 2, 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, 0, 0, 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, 866, 67, 892, 67, 1369, 12, 2890, 16, 980, 4672, 3536, 8519, 309, 3134, 436, 784, 19, 2338, 305, 19, 542, 501, 845, 326, 11836, 3417, 1807, 18, 2, -100, -100, -100, -100, -100, -100, ...
print 'after', self.maxT
def extractPointSetFromCurveCollection(self): # Use curve to compute new point set # Record maxT print 'before', self.maxT self.maxT = self.curveCollection.getMaxT() print 'after', self.maxT # Determine num samples # Limit point set to 1000 points and samples per second to 30 samplesPerSegment = min(30.0, 1000.0/self.c...
f9d35e3e417aec51b0fb2c95e2f5cf87cc739835 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/f9d35e3e417aec51b0fb2c95e2f5cf87cc739835/MopathRecorder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 2148, 694, 1265, 9423, 2532, 12, 2890, 4672, 468, 2672, 8882, 358, 3671, 394, 1634, 444, 468, 5059, 943, 56, 1172, 296, 5771, 2187, 365, 18, 1896, 56, 365, 18, 1896, 56, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2608, 2148, 694, 1265, 9423, 2532, 12, 2890, 4672, 468, 2672, 8882, 358, 3671, 394, 1634, 444, 468, 5059, 943, 56, 1172, 296, 5771, 2187, 365, 18, 1896, 56, 365, 18, 1896, 56, 273, 365...
'Description':"Name of file's creator. That is the person ran the code which generated the data.", 'Requirements':None
'Description':"Name of file's creator. That is the person that ran the code which generated this data.", 'Test_method':None
def __init__(self): self.attr = {
2aeab4d32c1031c6a6ce70b32191fd63e5b6158c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/2aeab4d32c1031c6a6ce70b32191fd63e5b6158c/LSCfileAdd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 1747, 273, 288, 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,...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 1747, 273, 288, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'cmdclass': {'install_data': smart_install_data},
def do_setup(): kwargs = package_data.copy() extras = get_extras() if extras: kwargs['py_modules'] = extras if sys.hexversion >= 0x02030000: # Python 2.3 kwargs['classifiers'] = classifiers else: kwargs['cmdclass'] = {'build_py': dual_build_py} dist = setup(**kwargs) return dist
d19b53d8ee5af488b1fc42c263ca65477d4541b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/d19b53d8ee5af488b1fc42c263ca65477d4541b0/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 8401, 13332, 1205, 273, 2181, 67, 892, 18, 3530, 1435, 11875, 273, 336, 67, 23687, 1435, 309, 11875, 30, 1205, 3292, 2074, 67, 6400, 3546, 273, 11875, 309, 2589, 18, 7118, 1589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 67, 8401, 13332, 1205, 273, 2181, 67, 892, 18, 3530, 1435, 11875, 273, 336, 67, 23687, 1435, 309, 11875, 30, 1205, 3292, 2074, 67, 6400, 3546, 273, 11875, 309, 2589, 18, 7118, 1589,...
def setRoles(userFolder, userName, roles):
def setRoles(userFolder, userId, roles):
def setRoles(userFolder, userName, roles): """Set the given user's roles to a tuple of roles. """ userFolder.userFolderEditUser(userName, None, list(roles), []) from AccessControl import getSecurityManager if userName == getSecurityManager().getUser().getUserName(): login(userFolder, userName)
bb85eaa84b8434604f8a414ad31f6cfcd1c52f55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12263/bb85eaa84b8434604f8a414ad31f6cfcd1c52f55/z2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 6898, 12, 1355, 3899, 16, 6249, 16, 4900, 4672, 3536, 694, 326, 864, 729, 1807, 4900, 358, 279, 3193, 434, 4900, 18, 3536, 225, 729, 3899, 18, 1355, 3899, 4666, 1299, 12, 1355, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 6898, 12, 1355, 3899, 16, 6249, 16, 4900, 4672, 3536, 694, 326, 864, 729, 1807, 4900, 358, 279, 3193, 434, 4900, 18, 3536, 225, 729, 3899, 18, 1355, 3899, 4666, 1299, 12, 1355, 46...
pos -- an optional positioning dictionary: for example, the
pos -- a positioning dictionary: for example, the
def __init__(self, data=None, pos=None, **kwds): """ Initialize digraph. INPUT: data -- can be any of the following: 1 NetworkX digraph 2 dictionary of dictionaries 3 dictionary of lists 4 numpy matrix or ndarray 5 pygraphviz agraph 6 scipy sparse matrix pos -- an optional positioning dictionary: for example, the spri...
2ebd36bafafb67bf005da138a71b9ce99d893add /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/2ebd36bafafb67bf005da138a71b9ce99d893add/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 2826, 25577, 4672, 3536, 9190, 3097, 1483, 18, 225, 12943, 30, 501, 1493, 848, 506, 1281, 434, 326, 3751, 30, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 33, 7036, 16, 949, 33, 7036, 16, 2826, 25577, 4672, 3536, 9190, 3097, 1483, 18, 225, 12943, 30, 501, 1493, 848, 506, 1281, 434, 326, 3751, 30, 404, ...
if e.args[0] not in socket_errors_nonblocking:
if (e.args[0] not in socket_errors_nonblocking and e.args[0] not in socket_error_eintr):
def recv(self, size): while True: try: return self._sock.recv(size) except socket.error, e: if e.args[0] not in socket_errors_nonblocking: raise
1aaf5622a2416e912276620daba6d8e58e7724cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/1aaf5622a2416e912276620daba6d8e58e7724cd/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 12, 2890, 16, 963, 4672, 1323, 1053, 30, 775, 30, 327, 365, 6315, 15031, 18, 18334, 12, 1467, 13, 1335, 2987, 18, 1636, 16, 425, 30, 309, 261, 73, 18, 1968, 63, 20, 65, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10665, 12, 2890, 16, 963, 4672, 1323, 1053, 30, 775, 30, 327, 365, 6315, 15031, 18, 18334, 12, 1467, 13, 1335, 2987, 18, 1636, 16, 425, 30, 309, 261, 73, 18, 1968, 63, 20, 65, 486, ...
msg = orangemsg(rest) env.history.message(msg)
line = orangemsg(line) env.history.message(line) return
def gotDone(self, start, rest): # "Done:" line - emitted iff it has a message on it; doesn't trigger mention of tracefile name # if we see high forces, color the Done message orange, bug 1238, wware 060323 if 1: #bruce 060705 simopts = self.simopts try: endRMS = simopts.MinimizeThresholdEndRMS except AttributeError: pr...
df353e2826c34e053659363f483db4d1a7820ea5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/df353e2826c34e053659363f483db4d1a7820ea5/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 7387, 12, 2890, 16, 787, 16, 3127, 4672, 468, 315, 7387, 2773, 980, 300, 17826, 21437, 518, 711, 279, 883, 603, 518, 31, 3302, 1404, 3080, 15823, 434, 2606, 768, 508, 468, 309, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2363, 7387, 12, 2890, 16, 787, 16, 3127, 4672, 468, 315, 7387, 2773, 980, 300, 17826, 21437, 518, 711, 279, 883, 603, 518, 31, 3302, 1404, 3080, 15823, 434, 2606, 768, 508, 468, 309, 7...
sys.stdout.write(msg) sys.stdout.flush() def debug(self, msg): if self.DEBUG is True:
if self.WindowColor: WConio.textcolor(11)
def verbose(self, msg): if self.VERBOSE is True: #if options.verbose is True: sys.stdout.write(msg) sys.stdout.flush()
64e38e130110f470b3f03ba4df1569d0fa0e4402 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/64e38e130110f470b3f03ba4df1569d0fa0e4402/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3988, 12, 2890, 16, 1234, 4672, 309, 365, 18, 21900, 353, 1053, 30, 468, 430, 702, 18, 11369, 353, 1053, 30, 2589, 18, 10283, 18, 2626, 12, 3576, 13, 2589, 18, 10283, 18, 11330, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3988, 12, 2890, 16, 1234, 4672, 309, 365, 18, 21900, 353, 1053, 30, 468, 430, 702, 18, 11369, 353, 1053, 30, 2589, 18, 10283, 18, 2626, 12, 3576, 13, 2589, 18, 10283, 18, 11330, 1435, ...
system.remote.power(action='On')
system.remote.power(action='on')
def LeaveOn(self, system): """ Leave system running """ system.remote.power(action='On')
6d8eb33e300b5256282ed018227aca8b7c8ee2ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/6d8eb33e300b5256282ed018227aca8b7c8ee2ab/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21131, 1398, 12, 2890, 16, 2619, 4672, 3536, 21131, 2619, 3549, 3536, 2619, 18, 7222, 18, 12238, 12, 1128, 2218, 1398, 6134, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21131, 1398, 12, 2890, 16, 2619, 4672, 3536, 21131, 2619, 3549, 3536, 2619, 18, 7222, 18, 12238, 12, 1128, 2218, 1398, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def get_local_media(self, is_downstream, cseq):
def get_local_media(self, is_downstream, cseq, cseq_downstream): if cseq_downstream: pos = 0 else: pos = 1 cseq = max(key for key in self.streams.keys() if key[pos] == cseq)
def get_local_media(self, is_downstream, cseq): if is_downstream: retval = [stream.rtp.callee.local for stream in self.streams[cseq]] else: retval = [stream.rtp.caller.local for stream in self.streams[cseq]] return retval
b94ecd6f9553ba8341284b12eb7d58b89296c4f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/b94ecd6f9553ba8341284b12eb7d58b89296c4f4/mediacontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3729, 67, 5829, 12, 2890, 16, 353, 67, 2378, 3256, 16, 276, 5436, 16, 276, 5436, 67, 2378, 3256, 4672, 309, 276, 5436, 67, 2378, 3256, 30, 949, 273, 374, 469, 30, 949, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 3729, 67, 5829, 12, 2890, 16, 353, 67, 2378, 3256, 16, 276, 5436, 16, 276, 5436, 67, 2378, 3256, 4672, 309, 276, 5436, 67, 2378, 3256, 30, 949, 273, 374, 469, 30, 949, 273, ...
sys.exit(1)
sys.exit( 1 )
def fixAbsoluteLinks( path ): for entry in os.listdir( path ): entryPath = os.path.join( path, entry ) if os.path.islink( entryPath ): destPath = os.readlink( entryPath ) if os.path.isabs( destPath ): absLinkDirSplit = [ d for d in os.path.abspath( path ).split( "/" ) if d.strip() ] absDestDirSplit = [ d for d in destP...
3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73/dirac-compile-externals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 10368, 7100, 12, 589, 262, 30, 364, 1241, 316, 1140, 18, 1098, 1214, 12, 589, 262, 30, 1241, 743, 273, 1140, 18, 803, 18, 5701, 12, 589, 16, 1241, 262, 309, 1140, 18, 803, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 10368, 7100, 12, 589, 262, 30, 364, 1241, 316, 1140, 18, 1098, 1214, 12, 589, 262, 30, 1241, 743, 273, 1140, 18, 803, 18, 5701, 12, 589, 16, 1241, 262, 309, 1140, 18, 803, 18, ...
"""Add a new retangle to the shape.
"""Add a new rectangle to the shape.
def pickrect(self, pt1, pt2, org, logic, eye=None, slab=None): """Add a new retangle to the shape. Args define the rectangle and the logic operator for the curve telling whether it adds or removes material. """ self.havelist = 0 c = rectangle(self, pt1, pt2, org, logic, eye=eye, slab=slab) self.bbox.merge(c.bbox) self....
e55864700cb47a43fd0848009d3f1957e082ccc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e55864700cb47a43fd0848009d3f1957e082ccc8/shape.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6002, 2607, 12, 2890, 16, 5818, 21, 16, 5818, 22, 16, 2358, 16, 4058, 16, 16098, 33, 7036, 16, 27679, 33, 7036, 4672, 3536, 986, 279, 394, 11845, 358, 326, 2179, 18, 6634, 4426, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6002, 2607, 12, 2890, 16, 5818, 21, 16, 5818, 22, 16, 2358, 16, 4058, 16, 16098, 33, 7036, 16, 27679, 33, 7036, 4672, 3536, 986, 279, 394, 11845, 358, 326, 2179, 18, 6634, 4426, 326, ...
wrap = eval("lambda %s: f%s" % (argspec, args_call), locals()) return functools.wraps(func)(wrap)
wf = "def %s(%s):\n return f%s\n" % \ (func.__name__, argspec, args_call) if def_string is not None: for d in def_string: wf = wf.replace("'%s'" % d, "%s" % d) for d in def_names: wf = wf.replace("'%s'" % d, "%s" % d) exec wf in locals() return functools.wraps(func)(locals()[func.__name__])
def decorate(f): argspec = inspect.getargspec(func) args_call = inspect.formatargspec(argspec[0]) argspec = inspect.formatargspec(argspec[0], defaults=argspec[3]) argspec = argspec.lstrip("(").rstrip(")") wrap = eval("lambda %s: f%s" % (argspec, args_call), locals()) return functools.wraps(func)(wrap)
49bb2c8e1aa8c3e5f1b47f20abff4cc5e53df76d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3516/49bb2c8e1aa8c3e5f1b47f20abff4cc5e53df76d/decorators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15752, 12, 74, 4672, 23837, 273, 5334, 18, 588, 23172, 12, 644, 13, 833, 67, 1991, 273, 5334, 18, 2139, 23172, 12, 23172, 63, 20, 5717, 23837, 273, 5334, 18, 2139, 23172, 12, 23172, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15752, 12, 74, 4672, 23837, 273, 5334, 18, 588, 23172, 12, 644, 13, 833, 67, 1991, 273, 5334, 18, 2139, 23172, 12, 23172, 63, 20, 5717, 23837, 273, 5334, 18, 2139, 23172, 12, 23172, 63...
for (troveName, depSet) in depList:
for (troveTup, depSet) in depList:
def resolveDependencies(self, uJob, jobSet, split = False, resolveDeps = True, useRepos = True): """ Determine and possibly resolve dependency problems. @param uJob: update job we are resolving dependencies for @type uJob: local.database.UpdateJob @param jobSet: jobs that are to be applied @type jobSet: list of job tup...
0f3edde93677d47b3a33eca1f8a057e16d1dd774 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/0f3edde93677d47b3a33eca1f8a057e16d1dd774/resolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 8053, 12, 2890, 16, 582, 2278, 16, 1719, 694, 16, 1416, 273, 1083, 16, 2245, 14430, 273, 1053, 16, 999, 28453, 273, 1053, 4672, 3536, 10229, 471, 10016, 2245, 4904, 9688, 18, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2245, 8053, 12, 2890, 16, 582, 2278, 16, 1719, 694, 16, 1416, 273, 1083, 16, 2245, 14430, 273, 1053, 16, 999, 28453, 273, 1053, 4672, 3536, 10229, 471, 10016, 2245, 4904, 9688, 18, 632, ...
EXAMPLES:
EXAMPLES::
def content(self, k): """ Returns the content of ``k`` in a standard tableau. That is, if ``k`` appears in row `r` and column `c` of the tableau then we return `c-r`. EXAMPLES: sage: StandardTableau([[1,2],[3,4]]).content(3) -1 """ for r in range(len(self)): try: c=self[r].index(k) return c-r except: pass raise Value...
86c2a175fa344fb96c25325c3df8255cb2934a1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/86c2a175fa344fb96c25325c3df8255cb2934a1e/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 913, 12, 2890, 16, 417, 4672, 3536, 2860, 326, 913, 434, 12176, 79, 10335, 316, 279, 4529, 1014, 8377, 18, 12466, 353, 16, 309, 12176, 79, 10335, 14606, 316, 1027, 1375, 86, 68, 471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 913, 12, 2890, 16, 417, 4672, 3536, 2860, 326, 913, 434, 12176, 79, 10335, 316, 279, 4529, 1014, 8377, 18, 12466, 353, 16, 309, 12176, 79, 10335, 14606, 316, 1027, 1375, 86, 68, 471, 1...
p, os, v, pv, osv = self.zeoLoad(oid) except: return None if os != s:
os = self.getSerial(oid) except KeyError:
def zeoVerify(self, oid, s, sv): try: p, os, v, pv, osv = self.zeoLoad(oid) except: # except what? return None if os != s: self.client.invalidateVerify((oid, '')) elif osv != sv: self.client.invalidateVerify((oid, v))
c90364c98dc5fc535c4997669ace60e7e07e2884 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/c90364c98dc5fc535c4997669ace60e7e07e2884/StorageServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 4361, 8097, 12, 2890, 16, 7764, 16, 272, 16, 5893, 4672, 775, 30, 293, 16, 1140, 16, 331, 16, 9770, 16, 1140, 90, 273, 365, 18, 94, 4361, 2563, 12, 839, 13, 1335, 30, 468, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 998, 4361, 8097, 12, 2890, 16, 7764, 16, 272, 16, 5893, 4672, 775, 30, 293, 16, 1140, 16, 331, 16, 9770, 16, 1140, 90, 273, 365, 18, 94, 4361, 2563, 12, 839, 13, 1335, 30, 468, 133...
+ " group by J.ProbeName,R.Value " \ + " order by CETable.facility_name "
+ " group by " + what + ",R.Value " \ + " order by " + what
def DailySiteJobStatusCondor(begin,end,select = "", count = ""): schema = "gratia" select = " SELECT CETable.facility_name ,R.Value,count(*) " \ + " from "+schema+".CETable, "+schema+".CEProbes, "+schema+".JobUsageRecord J, "+schema+".Resource R "\ + " where CEProbes.facility_id = CETable.facility_id and J.ProbeName =...
55368fa17dc9f81d3651509634f0008b9277083b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/55368fa17dc9f81d3651509634f0008b9277083b/PSACCTReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 12857, 4956, 23422, 12441, 280, 12, 10086, 16, 409, 16, 4025, 273, 23453, 1056, 273, 1408, 4672, 1963, 273, 315, 3197, 270, 1155, 6, 225, 2027, 273, 315, 9111, 29538, 1388, 18, 1163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 463, 12857, 4956, 23422, 12441, 280, 12, 10086, 16, 409, 16, 4025, 273, 23453, 1056, 273, 1408, 4672, 1963, 273, 315, 3197, 270, 1155, 6, 225, 2027, 273, 315, 9111, 29538, 1388, 18, 1163...
if os.path.isdir(dir) and dir not in dirlist:
if dir is not None and os.path.isdir(dir) and dir not in dirlist:
def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (at the front) if 1) 'dir' is not already in 'dirlist' 2) 'dir' actually exists, and is a directory.""" if os.path.isdir(dir) and dir not in dirlist: dirlist.insert(0, dir)
4439b7c67e057db24067e723f1f553258dfa9d94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4439b7c67e057db24067e723f1f553258dfa9d94/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1214, 67, 869, 67, 1098, 12, 1214, 1098, 16, 1577, 4672, 3536, 986, 326, 1867, 296, 1214, 11, 358, 326, 666, 296, 1214, 1098, 11, 261, 270, 326, 6641, 13, 309, 404, 13, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 1214, 67, 869, 67, 1098, 12, 1214, 1098, 16, 1577, 4672, 3536, 986, 326, 1867, 296, 1214, 11, 358, 326, 666, 296, 1214, 1098, 11, 261, 270, 326, 6641, 13, 309, 404, 13, 296,...
from wc.parser.htmllib import HtmlPrinter from wc.parser import htmlsax
from bk.HtmlParser.htmllib import HtmlPrinter from bk.HtmlParser import htmlsax
def _main (): """USAGE: test/run.sh test/parsefile.py test.html""" import sys if len(sys.argv)!=2: print _main.__doc__ sys.exit(1) if sys.argv[1]=='-': f = sys.stdin else: f = file(sys.argv[1]) from wc.parser.htmllib import HtmlPrinter from wc.parser import htmlsax p = htmlsax.parser(HtmlPrinter()) #p.debug(1) size = 1...
c68dfa9ce1901a92ee66d0f25e3fdd413afae6cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/c68dfa9ce1901a92ee66d0f25e3fdd413afae6cd/parsefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 1832, 30, 3536, 29550, 30, 1842, 19, 2681, 18, 674, 1842, 19, 2670, 768, 18, 2074, 1842, 18, 2620, 8395, 1930, 2589, 309, 562, 12, 9499, 18, 19485, 13, 5, 33, 22, 30, 1172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 1832, 30, 3536, 29550, 30, 1842, 19, 2681, 18, 674, 1842, 19, 2670, 768, 18, 2074, 1842, 18, 2620, 8395, 1930, 2589, 309, 562, 12, 9499, 18, 19485, 13, 5, 33, 22, 30, 1172...
timestamp = data[-1]
if cookie in ('evictions', 'version'): continue timestamp = evictions[cookie]
def _save(db): # Lock must be acquired. now = time.time() for cookie, data in db.items(): timestamp = data[-1] if now > timestamp: # The entry is stale, so remove it. del db[cookie] omask = os.umask(007) try: fp = open(DBFILE, 'w') marshal.dump(db, fp) fp.close() finally: os.umask(omask)
34f6cd590b41a5247b0c1bc7ba990a7e286ee04a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/34f6cd590b41a5247b0c1bc7ba990a7e286ee04a/Pending.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 12, 1966, 4672, 468, 3488, 1297, 506, 20598, 18, 2037, 273, 813, 18, 957, 1435, 364, 3878, 16, 501, 316, 1319, 18, 3319, 13332, 309, 3878, 316, 7707, 73, 15712, 87, 2187, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5688, 12, 1966, 4672, 468, 3488, 1297, 506, 20598, 18, 2037, 273, 813, 18, 957, 1435, 364, 3878, 16, 501, 316, 1319, 18, 3319, 13332, 309, 3878, 316, 7707, 73, 15712, 87, 2187, 29...
feed = feedparser.parse('rss')
def load_feed(tag): feed = feedparser.parse('rss') feed = feedparser.parse('http://api.flickr.com/services/feeds/photos_public.gne?' + 'tags=%s&lang=en-us&format=atom' % tag) items = [] num = 0 for item in feed.entries: tmp = item.content[0]['value'][item.content[0]['value'].find('img src="')+9:] url = tmp[:tmp.find('...
f534710f63f6cd434619126a6b6afd122c08d740 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/f534710f63f6cd434619126a6b6afd122c08d740/flickr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7848, 12, 2692, 4672, 4746, 273, 4746, 4288, 18, 2670, 2668, 2505, 2207, 2425, 18, 2242, 16254, 18, 832, 19, 8387, 19, 7848, 87, 19, 29121, 67, 482, 18, 1600, 73, 4899, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 7848, 12, 2692, 4672, 4746, 273, 4746, 4288, 18, 2670, 2668, 2505, 2207, 2425, 18, 2242, 16254, 18, 832, 19, 8387, 19, 7848, 87, 19, 29121, 67, 482, 18, 1600, 73, 4899, 397, ...
if md.decl.type.isAsync():
if not md.decl.type.hasReply():
def makeReply(self, md, errfn, routingId=None): # TODO special cases for async ctor/dtor replies if md.decl.type.isAsync(): return [ ]
9f9e781d50235358b70272d08ae3c1d84237307b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/9f9e781d50235358b70272d08ae3c1d84237307b/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 7817, 12, 2890, 16, 3481, 16, 393, 4293, 16, 7502, 548, 33, 7036, 4672, 468, 2660, 4582, 6088, 364, 4326, 15120, 19, 7510, 280, 22009, 309, 486, 3481, 18, 8840, 18, 723, 18, 5332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 7817, 12, 2890, 16, 3481, 16, 393, 4293, 16, 7502, 548, 33, 7036, 4672, 468, 2660, 4582, 6088, 364, 4326, 15120, 19, 7510, 280, 22009, 309, 486, 3481, 18, 8840, 18, 723, 18, 5332...
import testExplorer testExplorer.TestAll()
import testExplorer testExplorer.TestAll()
def Prepare(): import win32com, shutil print "Deleting files from %s" % (win32com.__gen_path__) shutil.rmtree(win32com.__gen_path__) import win32com.client.gencache win32com.client.gencache.__init__() # Reset
044748cc4ed567aa6d76b689247672304c63d760 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/044748cc4ed567aa6d76b689247672304c63d760/testall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7730, 13332, 1930, 5657, 1578, 832, 16, 11060, 1172, 315, 20433, 1390, 628, 738, 87, 6, 738, 261, 8082, 1578, 832, 16186, 4507, 67, 803, 972, 13, 11060, 18, 86, 17371, 12, 8082, 1578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7730, 13332, 1930, 5657, 1578, 832, 16, 11060, 1172, 315, 20433, 1390, 628, 738, 87, 6, 738, 261, 8082, 1578, 832, 16186, 4507, 67, 803, 972, 13, 11060, 18, 86, 17371, 12, 8082, 1578, ...
log.warning(str(e) + ' -- ' + str(episode))
log.warning(str(e) + ' -- ' + textutils.toUtf8(episode))
def startEpisode(self, episode): if not episode['series']: raise SmewtException("IMDBMetadataProvider: Episode doesn't contain 'series' field: %s", md)
d0b2e2fac1b2971a26beca8843f3bec6eb3ef352 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/d0b2e2fac1b2971a26beca8843f3bec6eb3ef352/imdbmetadataprovider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 18918, 11802, 12, 2890, 16, 17054, 4672, 309, 486, 17054, 3292, 10222, 3546, 30, 1002, 9425, 359, 88, 503, 2932, 3445, 2290, 2277, 2249, 30, 512, 84, 11802, 3302, 1404, 912, 296, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 18918, 11802, 12, 2890, 16, 17054, 4672, 309, 486, 17054, 3292, 10222, 3546, 30, 1002, 9425, 359, 88, 503, 2932, 3445, 2290, 2277, 2249, 30, 512, 84, 11802, 3302, 1404, 912, 296, 10...
tail = 0 while tail < len(data): wait_writer(self.fileno()) tail += self.fd.send(data[tail:])
data_sent = 0 while data_sent < len(data): data_sent += self.send(data[data_sent:])
def sendall(self, data): if self.timeout is None: tail = 0 while tail < len(data): wait_writer(self.fileno()) tail += self.fd.send(data[tail:]) elif not self.timeout: return self.fd.sendall(data) else: end = time.time() + self.timeout tail = 0 while tail < len(data): left = end - time.time() if left <= 0: raise timeout...
1c036d1c5e5b7b0034cfc3b66d1faf4cbfa052df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/1c036d1c5e5b7b0034cfc3b66d1faf4cbfa052df/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 454, 12, 2890, 16, 501, 4672, 309, 365, 18, 4538, 353, 599, 30, 501, 67, 7569, 273, 374, 1323, 501, 67, 7569, 411, 562, 12, 892, 4672, 501, 67, 7569, 1011, 365, 18, 4661, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 454, 12, 2890, 16, 501, 4672, 309, 365, 18, 4538, 353, 599, 30, 501, 67, 7569, 273, 374, 1323, 501, 67, 7569, 411, 562, 12, 892, 4672, 501, 67, 7569, 1011, 365, 18, 4661, 12, ...
(self.env.docname, typ, theid))
(self.env.docname, self.objtype, theid))
def add_target_and_index(self, sigobj, sig, signode): theid = sigobj.get_id() name = unicode(sigobj.name) signode['names'].append(theid) signode['ids'].append(theid) signode['first'] = (not self.names) self.state.document.note_explicit_target(signode)
6194a0e5e936954b3e8b0c09a7ab126ad9dd22c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/6194a0e5e936954b3e8b0c09a7ab126ad9dd22c5/cpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3299, 67, 464, 67, 1615, 12, 2890, 16, 3553, 2603, 16, 3553, 16, 1573, 390, 4672, 326, 350, 273, 3553, 2603, 18, 588, 67, 350, 1435, 508, 273, 5252, 12, 7340, 2603, 18, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 3299, 67, 464, 67, 1615, 12, 2890, 16, 3553, 2603, 16, 3553, 16, 1573, 390, 4672, 326, 350, 273, 3553, 2603, 18, 588, 67, 350, 1435, 508, 273, 5252, 12, 7340, 2603, 18, 529,...
cg = other.changegroup(incoming, "incoming")
if revs is None: cg = other.changegroup(incoming, "incoming") else: if 'changegroupsubset' not in other.capabilities: raise util.Abort(_("Partial incoming cannot be done because other repository doesn't support changegroupsubset.")) cg = other.changegroupsubset(incoming, revs, 'incoming')
def incoming(ui, repo, source="default", **opts): """show new changesets found in source Show new changesets found in the specified path/URL or the default pull location. These are the changesets that would be pulled if a pull was requested. For remote repository, using --bundle avoids downloading the changesets twic...
b16e76c35f2fc5af6d8aded567152efa862726ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/b16e76c35f2fc5af6d8aded567152efa862726ad/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6935, 12, 4881, 16, 3538, 16, 1084, 1546, 1886, 3113, 2826, 4952, 4672, 3536, 4500, 394, 3478, 2413, 1392, 316, 1084, 225, 9674, 394, 3478, 2413, 1392, 316, 326, 1269, 589, 19, 1785, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6935, 12, 4881, 16, 3538, 16, 1084, 1546, 1886, 3113, 2826, 4952, 4672, 3536, 4500, 394, 3478, 2413, 1392, 316, 1084, 225, 9674, 394, 3478, 2413, 1392, 316, 326, 1269, 589, 19, 1785, 578...
transaction.get().note("add key %s" % key) transaction.commit()
tm.get().note("add key %s" % key) tm.commit()
def _testrun(self): cn = self.db.open() while not self.stop.isSet(): try: tree = cn.root()["tree"] break except (ConflictError, KeyError): transaction.abort() key = self.startnum while not self.stop.isSet(): try: tree[key] = self.threadnum transaction.get().note("add key %s" % key) transaction.commit() self.commitdict[...
b1e8c210656083ec6b1c6a6b36850d0ab2d1b824 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10048/b1e8c210656083ec6b1c6a6b36850d0ab2d1b824/InvalidationTests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1078, 313, 318, 12, 2890, 4672, 6227, 273, 365, 18, 1966, 18, 3190, 1435, 1323, 486, 365, 18, 5681, 18, 291, 694, 13332, 775, 30, 2151, 273, 6227, 18, 3085, 1435, 9614, 3413, 1192...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1078, 313, 318, 12, 2890, 4672, 6227, 273, 365, 18, 1966, 18, 3190, 1435, 1323, 486, 365, 18, 5681, 18, 291, 694, 13332, 775, 30, 2151, 273, 6227, 18, 3085, 1435, 9614, 3413, 1192...
pos = event.GetPosition() if companion.container: parent = ctrl
if selCompn.container: parent = selCtrl pos = selPos
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
2409984574299440bdc4e3c954b3574ca35f84c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2409984574299440bdc4e3c954b3574ca35f84c5/Designer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3367, 3391, 12, 2890, 16, 871, 4672, 3536, 8888, 353, 17688, 18, 14635, 2027, 518, 578, 527, 3325, 628, 12127, 3536, 225, 6414, 273, 365, 18, 15330, 4597, 18, 588, 921, 12, 2575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3367, 3391, 12, 2890, 16, 871, 4672, 3536, 8888, 353, 17688, 18, 14635, 2027, 518, 578, 527, 3325, 628, 12127, 3536, 225, 6414, 273, 365, 18, 15330, 4597, 18, 588, 921, 12, 2575, ...
res = oFTSRequest.getFailReason(lfn)
res = oFTSRequest.getFailReason( lfn )
def monitorTransfer(self,ftsReqDict): """ Monitors transfer obtained from TransferDB """
75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251/FTSMonitorAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6438, 5912, 12, 2890, 16, 1222, 87, 6113, 5014, 4672, 3536, 9041, 13704, 7412, 225, 12700, 628, 12279, 2290, 3536, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6438, 5912, 12, 2890, 16, 1222, 87, 6113, 5014, 4672, 3536, 9041, 13704, 7412, 225, 12700, 628, 12279, 2290, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
(Channel, Link, Uniqueid, UniqueidLink, CallerIDNum, self.channels[UniqueidLink]['CallerIDNum'], int(Seconds)))
(Channel, Link, Uniqueid, UniqueidLink, CallerID1, CallerID2, int(Seconds)))
def handlerStatus(self, lines): log.info('MonAst.handlerStatus :: Running...') dic = self.list2Dict(lines) Channel = dic['Channel'] CallerIDNum = dic['CallerIDNum'] CallerIDName = dic['CallerIDName'] State = dic.get('ChannelStateDesc', dic.get('State')) Seconds = dic.get('Seconds', 0) Link =...
813c458b6b9d6ad69d56f03bf10cade3d4e1bc36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12004/813c458b6b9d6ad69d56f03bf10cade3d4e1bc36/monast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 1482, 12, 2890, 16, 2362, 4672, 225, 613, 18, 1376, 2668, 11415, 21385, 18, 4176, 1482, 493, 20480, 7821, 13, 11681, 273, 365, 18, 1098, 22, 5014, 12, 3548, 13, 225, 5307, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1838, 1482, 12, 2890, 16, 2362, 4672, 225, 613, 18, 1376, 2668, 11415, 21385, 18, 4176, 1482, 493, 20480, 7821, 13, 11681, 273, 365, 18, 1098, 22, 5014, 12, 3548, 13, 225, 5307, 1377, ...
game.snapsht = game.state
game.snapsht = copy.deepcopy(game.state)
def destroybase(): # Code merges here for any commander destroying base # Not perfect, but will have to do # Handle case where base is in same quadrant as starship if game.battle == game.quadrant: game.state.chart[game.battle.x][game.battle.y].starbase = False game.quad[game.base.x][game.base.y] = IHDOT game.base.x=gam...
ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 1969, 13332, 468, 3356, 19037, 2674, 364, 1281, 1296, 264, 5546, 310, 1026, 468, 2288, 24746, 16, 1496, 903, 1240, 358, 741, 468, 5004, 648, 1625, 1026, 353, 316, 1967, 9474, 6890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5546, 1969, 13332, 468, 3356, 19037, 2674, 364, 1281, 1296, 264, 5546, 310, 1026, 468, 2288, 24746, 16, 1496, 903, 1240, 358, 741, 468, 5004, 648, 1625, 1026, 353, 316, 1967, 9474, 6890, ...
s= f.read( 512 ) r= dm.parse( s )
try: s= f.read( 512 ) r= dm.parse( s ) except: traceback.print_exc() self.err.append( sys.exc_info() ) self.playingFile= None continue
def _readerLoop( self ): f= None try: while self.exitFlag== 0: if self.playingFile== None: time.sleep( 0.01 ) continue self.length= self.frameNum= -1 # Initialize demuxer and read small portion of the file to have more info on the format self.err= [] if type( self.playingFile ) in ( str, unicode ): try: f= open( self....
506e9172460401ded500869a56c03da6aec7db18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2107/506e9172460401ded500869a56c03da6aec7db18/player.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10530, 6452, 12, 365, 262, 30, 284, 33, 599, 775, 30, 1323, 365, 18, 8593, 4678, 631, 374, 30, 309, 365, 18, 1601, 310, 812, 631, 599, 30, 813, 18, 19607, 12, 374, 18, 1611, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10530, 6452, 12, 365, 262, 30, 284, 33, 599, 775, 30, 1323, 365, 18, 8593, 4678, 631, 374, 30, 309, 365, 18, 1601, 310, 812, 631, 599, 30, 813, 18, 19607, 12, 374, 18, 1611, 2...
var n = new Node(t, TRY)
n = new Node(t, TRY)
def TRY__build(t): var n = new Node(t, TRY) n.catchClauses = [] return n
14e57c50767cb32286882c207d0afc37f010f284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/14e57c50767cb32286882c207d0afc37f010f284/Builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4235, 61, 972, 3510, 12, 88, 4672, 290, 273, 394, 2029, 12, 88, 16, 4235, 61, 13, 290, 18, 14683, 22434, 273, 5378, 327, 290, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4235, 61, 972, 3510, 12, 88, 4672, 290, 273, 394, 2029, 12, 88, 16, 4235, 61, 13, 290, 18, 14683, 22434, 273, 5378, 327, 290, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.recbase = numalg.inv(self.base)
self.recbase = numalg.inv(self.base) self.recbase2pi = 2*numpy.pi*self.recbase
def setLatBase(self, base): """Set matrix of unit cell base vectors and calculate corresponding lattice parameters and stdbase, baserot and metrics tensors.
a09afc960b733cce78dd606ec0c63afb5caa6015 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/578/a09afc960b733cce78dd606ec0c63afb5caa6015/Lattice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 6607, 2171, 12, 2890, 16, 1026, 4672, 3536, 694, 3148, 434, 2836, 2484, 1026, 10046, 471, 4604, 4656, 16690, 1472, 471, 384, 1966, 448, 16, 2580, 264, 352, 471, 4309, 25122, 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, 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, 444, 6607, 2171, 12, 2890, 16, 1026, 4672, 3536, 694, 3148, 434, 2836, 2484, 1026, 10046, 471, 4604, 4656, 16690, 1472, 471, 384, 1966, 448, 16, 2580, 264, 352, 471, 4309, 25122, 18, 2, ...
OSType = "POSIX"
TargetOS = "POSIX"
def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com...
2d4d2df3c53195cedf60628bf047247a16f565eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/2d4d2df3c53195cedf60628bf047247a16f565eb/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1444, 12, 653, 4672, 468, 468, 5098, 855, 326, 585, 309, 392, 3330, 2190, 353, 315, 7337, 6, 261, 451, 402, 468, 11234, 777, 854, 16, 1529, 3631, 471, 1338, 855, 518, 3647, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 1444, 12, 653, 4672, 468, 468, 5098, 855, 326, 585, 309, 392, 3330, 2190, 353, 315, 7337, 6, 261, 451, 402, 468, 11234, 777, 854, 16, 1529, 3631, 471, 1338, 855, 518, 3647, 18, ...
discarded.setdefault(pagename, dict())[key].extend(oldvals) added.setdefault(pagename, dict())[key].extend(form[oldkey])
discarded.setdefault(pagename, dict()).setdefault(key, list()).extend(oldvals) added.setdefault(pagename, dict()).setdefault(key, list()).extend(form[oldkey]) pagenames = discarded.keys() for pagename in pagenames: if pagename in discarded and not discarded[pagename]: del discarded[pagename] pagenames = added.keys()...
def wr(fmt, *args): args = tuple(map(form_escape, args)) request.write(fmt % args)
7768b2b06af7cf747b3181f5dc98329197af31e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/7768b2b06af7cf747b3181f5dc98329197af31e5/MetaEdit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12408, 12, 8666, 16, 380, 1968, 4672, 833, 273, 3193, 12, 1458, 12, 687, 67, 6939, 16, 833, 3719, 590, 18, 2626, 12, 8666, 738, 833, 13, 2, 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, 0, 0, 0, 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, 12408, 12, 8666, 16, 380, 1968, 4672, 833, 273, 3193, 12, 1458, 12, 687, 67, 6939, 16, 833, 3719, 590, 18, 2626, 12, 8666, 738, 833, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
if not info or info["has_volume"].value:
def createFields(self): # This stupid shit gets the LSB, not the MSB... self.info("Note info: 0x%02X" % self.stream.readBits(self.absolute_address, 8, LITTLE_ENDIAN)) yield RealBit(self, "is_extended") info = None if self["is_extended"].value: info = NoteInfo(self, "info") yield info if info["has_note"].value: yield En...
c99931bfecc0c1d1ea8ca2bff60774c9102dc066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c99931bfecc0c1d1ea8ca2bff60774c9102dc066/xm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 468, 1220, 384, 416, 350, 699, 305, 5571, 326, 511, 14541, 16, 486, 326, 9238, 38, 2777, 365, 18, 1376, 2932, 8067, 1123, 30, 374, 92, 9, 3103, 60, 6, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 2314, 12, 2890, 4672, 468, 1220, 384, 416, 350, 699, 305, 5571, 326, 511, 14541, 16, 486, 326, 9238, 38, 2777, 365, 18, 1376, 2932, 8067, 1123, 30, 374, 92, 9, 3103, 60, 6, 738,...
try:
if hasattr(os, "getuid"): logging.info("*** GET DATA FILE")
def getDataFile(short_app_name): try: uid = os.getuid() except (SystemExit, KeyboardInterrupt): raise except: # This works for win32, where we don't have getuid() uid = os.environ['USERNAME'] return os.path.join(tempfile.gettempdir(), ('%s_Download_Daemon_%s.txt' % (short_app_name, uid)))
2a27dc47e893ea5da41a7517712c9338a03ffae5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/2a27dc47e893ea5da41a7517712c9338a03ffae5/daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4303, 812, 12, 6620, 67, 2910, 67, 529, 4672, 309, 3859, 12, 538, 16, 315, 588, 1911, 6, 4672, 2907, 18, 1376, 2932, 14465, 4978, 8730, 7527, 7923, 4555, 273, 1140, 18, 588, 1911, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4303, 812, 12, 6620, 67, 2910, 67, 529, 4672, 309, 3859, 12, 538, 16, 315, 588, 1911, 6, 4672, 2907, 18, 1376, 2932, 14465, 4978, 8730, 7527, 7923, 4555, 273, 1140, 18, 588, 1911, 1435...
(r'(?<=[-+/*%=<>&!^|~,(])(\s*)(%([\t ]).*?\3)',
(r'(?<=[-+/*%=<>&!^|~,(])(\s*)(%([\t ])(?:[^\3\\]*(?:\\.[^\3\\]*)*)\3)',
def intp_string_callback(self, match, ctx): yield match.start(1), String.Other, match.group(1) nctx = LexerContext(match.group(3), 0, ['interpolated-string']) for i, t, v in self.get_tokens_unprocessed(context=nctx): yield match.start(3)+i, t, v yield match.start(4), String.Other, match.group(4) # end ctx.pos = matc...
74c935a2fbcce66c2549e72aaf0f2066be6ee1a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/74c935a2fbcce66c2549e72aaf0f2066be6ee1a7/agile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 84, 67, 1080, 67, 3394, 12, 2890, 16, 845, 16, 1103, 4672, 2824, 845, 18, 1937, 12, 21, 3631, 514, 18, 8290, 16, 845, 18, 1655, 12, 21, 13, 290, 5900, 273, 14234, 1042, 12, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 84, 67, 1080, 67, 3394, 12, 2890, 16, 845, 16, 1103, 4672, 2824, 845, 18, 1937, 12, 21, 3631, 514, 18, 8290, 16, 845, 18, 1655, 12, 21, 13, 290, 5900, 273, 14234, 1042, 12, 19...
if op1.sign == -1: result.sign = -1
if op1.sign == 1: result.sign = 1
def __add__(self, other, context=None): """Returns self + other.
b7ed2df9f8b3eaa226b68d6c2ebfcb1ddb522d57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b7ed2df9f8b3eaa226b68d6c2ebfcb1ddb522d57/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 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,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if (status == 204 or status == 304 or
if (status == NO_CONTENT or status == NOT_MODIFIED or
def begin(self): if self.msg is not None: # we've already started reading the response return
39a317890fa7651e8f124c1a566af5f7a72da792 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/39a317890fa7651e8f124c1a566af5f7a72da792/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 12, 2890, 4672, 309, 365, 18, 3576, 353, 486, 599, 30, 468, 732, 8081, 1818, 5746, 6453, 326, 766, 327, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2376, 12, 2890, 4672, 309, 365, 18, 3576, 353, 486, 599, 30, 468, 732, 8081, 1818, 5746, 6453, 326, 766, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.perm = perm.PermissionSystem(self.env)
self.perm = PermissionSystem(self.env)
def setUp(self): self.env = EnvironmentStub() self.perm = perm.PermissionSystem(self.env) self.ticket_system = TicketSystem(self.env) self.req = Mock()
efa685fe3578b6c546f6ddde160f360b879f6552 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2831/efa685fe3578b6c546f6ddde160f360b879f6552/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 3074, 273, 7518, 11974, 1435, 365, 18, 12160, 273, 8509, 3163, 12, 2890, 18, 3074, 13, 365, 18, 16282, 67, 4299, 273, 22023, 3163, 12, 2890, 18, 3074, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 12, 2890, 4672, 365, 18, 3074, 273, 7518, 11974, 1435, 365, 18, 12160, 273, 8509, 3163, 12, 2890, 18, 3074, 13, 365, 18, 16282, 67, 4299, 273, 22023, 3163, 12, 2890, 18, 3074, 1...
file.Write("// TODO(gman): %s\n\n" % func.name) def WriteImmediateServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("// TODO(gman): %s\n\n" % func.name)
valid_test = """ TEST_F(%(test_name)s, %(name)sValidArgs) { const char* kInfo = "hello"; const uint32 kBucketId = 123; SpecializedSetup<%(name)s, 0>(); %(expect_len_code)s EXPECT_CALL(*gl_, %(gl_func_name)s(%(gl_args)s)) .WillOnce(DoAll(SetArgumentPointee<2>(strlen(kInfo)), SetArrayArgument<3>(kInfo, kInfo + strlen(kIn...
def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("// TODO(gman): %s\n\n" % func.name)
8e2a5abe106158df74caad4c6fbd988d8d900b7c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8e2a5abe106158df74caad4c6fbd988d8d900b7c/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 759, 2660, 12, 75, 4728, 4672, 738, 87, 64, 82, 64, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2598, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 759, 2660, 12, 75, 4728, 4672, 738, 87, 64, 82, 64, 82, ...
debug("launcher started")
debug("launcher started on session %d" % self.session)
def startLauncher(self): with self.launcherLock: if self.launcherStarted: return
bdecfb9a4f175cfe277408cee91c8c6c55d80ef9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/bdecfb9a4f175cfe277408cee91c8c6c55d80ef9/nvda_service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 28820, 12, 2890, 4672, 598, 365, 18, 20738, 264, 2531, 30, 309, 365, 18, 20738, 264, 9217, 30, 327, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 28820, 12, 2890, 4672, 598, 365, 18, 20738, 264, 2531, 30, 309, 365, 18, 20738, 264, 9217, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def on_error(self, error):
def on_error(self, err):
def on_error(self, error): error.show("<b>%s</b>" % _("GStreamer Error:"), "%s\n<i>(%s)</i>" % (err, self.sound_file.get_filename_for_display()))
b66d3a03c755a8c9b84df8e0fe3834e2ad16bbec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2369/b66d3a03c755a8c9b84df8e0fe3834e2ad16bbec/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1636, 12, 2890, 16, 393, 4672, 555, 18, 4500, 2932, 32, 70, 9822, 87, 1757, 70, 2984, 738, 389, 2932, 43, 1228, 264, 1068, 2773, 3631, 2213, 87, 64, 82, 32, 77, 34, 9275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 67, 1636, 12, 2890, 16, 393, 4672, 555, 18, 4500, 2932, 32, 70, 9822, 87, 1757, 70, 2984, 738, 389, 2932, 43, 1228, 264, 1068, 2773, 3631, 2213, 87, 64, 82, 32, 77, 34, 9275, ...
text.bind("<3>", self.right_menu_event)
def __init__(self, flist=None, filename=None, key=None, root=None): if EditorWindow.help_url is None: dochome = os.path.join(sys.prefix, 'Doc', 'index.html') if sys.platform.count('linux'): # look for html docs in a couple of standard places pyver = 'python-docs-' + '%s.%s.%s' % sys.version_info[:3] if os.path.isdir('...
1d3b0f76d0e113eb0a17c8bac7d7627d8b414767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/1d3b0f76d0e113eb0a17c8bac7d7627d8b414767/EditorWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 1098, 33, 7036, 16, 1544, 33, 7036, 16, 498, 33, 7036, 16, 1365, 33, 7036, 4672, 309, 18451, 3829, 18, 5201, 67, 718, 353, 599, 30, 741, 343, 1742...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 284, 1098, 33, 7036, 16, 1544, 33, 7036, 16, 498, 33, 7036, 16, 1365, 33, 7036, 4672, 309, 18451, 3829, 18, 5201, 67, 718, 353, 599, 30, 741, 343, 1742...
@cvar _SPECIAL_METHODS: A dictionary providing names for special methods, such as C{__init__} and C{__add__}. @type _SPECIAL_METHODS: C{dictionary} from C{string} to C{string} """
@type docmap: L{Documentation} @ivar docmap: The documentation object, encoding the objects that should be documented. @ivar _pkg_name: A name for the documentation (for the navbar). @ivar _pkg_url: A URL for the documentation (for the navpar). @ivar _module: The UID of the top-level module, if there is one. If there ...
def _cmp_name(uid1, uid2): """ Order by names. __init__ < anything. public < private. otherwise, sorted alphabetically by name. """ x = uid1.name() y = uid2.name() if (y == '__init__'): return 1 if (x == '__init__'): return -1 if x == y: return 0 if _is_private(x) and not _is_private(y): return 1 if _is_private(y) and ...
b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 67, 529, 12, 1911, 21, 16, 4555, 22, 4672, 3536, 4347, 635, 1257, 18, 1001, 2738, 972, 411, 6967, 18, 1071, 411, 3238, 18, 3541, 16, 3115, 10877, 6478, 635, 508, 18, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 67, 529, 12, 1911, 21, 16, 4555, 22, 4672, 3536, 4347, 635, 1257, 18, 1001, 2738, 972, 411, 6967, 18, 1071, 411, 3238, 18, 3541, 16, 3115, 10877, 6478, 635, 508, 18, 3536, ...
s : (N, N) ndarray
s: (N, N) ndarray
def truncate_along_axis(h, s, direction, centers_ic, cutoff): """Truncate h and s such along a cartesian axis. Parameters ========== h : (N, N) ndarray Hamiltonian matrix. s : (N, N) ndarray Overlap matrix. direction : {'x', 'y', 'z'} Truncate allong a cartesian axis. centers_ic : (N, 3) ndarray Centers of the basis fu...
19139927a2697871abc2bc1cb7c9b7f053478908 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/19139927a2697871abc2bc1cb7c9b7f053478908/siesta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10310, 67, 287, 932, 67, 4890, 12, 76, 16, 272, 16, 4068, 16, 17723, 67, 335, 16, 13383, 4672, 3536, 25871, 366, 471, 272, 4123, 7563, 279, 24549, 2654, 18, 7012, 422, 1432, 366, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10310, 67, 287, 932, 67, 4890, 12, 76, 16, 272, 16, 4068, 16, 17723, 67, 335, 16, 13383, 4672, 3536, 25871, 366, 471, 272, 4123, 7563, 279, 24549, 2654, 18, 7012, 422, 1432, 366, 294, ...
gump.addXmfHtmlGump(245, 39, 285, 20, int(self.title), False, False, 0xFFFFFF)
gump.addXmfHtmlGump(245, 39, 285, 20, int(self.title), False, False, enabledcolor)
def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF)
0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3189, 12, 2890, 16, 7291, 16, 1775, 4672, 309, 365, 18, 2938, 18, 75, 379, 27672, 480, 374, 30, 7291, 18, 7814, 18, 4412, 75, 2801, 12, 2890, 18, 2938, 18, 75, 379, 27672, 16, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3189, 12, 2890, 16, 7291, 16, 1775, 4672, 309, 365, 18, 2938, 18, 75, 379, 27672, 480, 374, 30, 7291, 18, 7814, 18, 4412, 75, 2801, 12, 2890, 18, 2938, 18, 75, 379, 27672, 16, 374, ...
return PageTemplate.pt_macro(self)
return PageTemplate.pt_macros(self)
def pt_macro(self): self._cook_check() return PageTemplate.pt_macro(self)
3fd48d78a9b5b8e3bdf4ac432ed95f398666e41c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/3fd48d78a9b5b8e3bdf4ac432ed95f398666e41c/PageTemplateFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5818, 67, 26448, 12, 2890, 4672, 365, 6315, 29854, 67, 1893, 1435, 327, 3460, 2283, 18, 337, 67, 26448, 12, 2890, 13, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5818, 67, 26448, 12, 2890, 4672, 365, 6315, 29854, 67, 1893, 1435, 327, 3460, 2283, 18, 337, 67, 26448, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
r""" Repunits: $\frac {(10^n - 1)}{9}$. Often denoted by $R_n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A002275;a Repunits: (10^n - 1)/9. Often denoted by R_n. sage: a(0) 0 sage: a(2) 11 sage: a(8) 11111111 sage: a(20) 11111111111111111111 sage: a.list(9) [0, 1, ...
def __init__(self): r""" Repunits: $\frac {(10^n - 1)}{9}$. Often denoted by $R_n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A002275;a Repunits: (10^n - 1)/9. Often denoted by R_n. sage: a(0) 0 sage: a(2) 11 sage: a(8) 11111111 sage: a(20) 11111111111111111111 sag...
def _eval(self, n): return Integer(n*(n+1)//2 + 1)
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 82, 21556, 82, 15, 21, 13, 759, 22, 397, 404, 13, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 82, 21556, 82, 15, 21, 13, 759, 22, 397, 404, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
item = wolfpack.additem(random.choice(DEF_JEWELRY))
citem = wolfpack.additem(random.choice(DEF_JEWELRY))
def createpack(char, killer, corpse, pack): if killer: luckChance = properties.luckchance(killer) else: luckChance = 0 # A pack is actually a list of lists for item in pack: packchance = item[ PACK_CHANCE ] packstackable = item[ PACK_STACKABLE ] packamount = item[ PACK_AMOUNT ] packitem = item[ PACK_ITEM ] spawn = Fa...
b5ae9023c1a6483a08f382d72eaaa4d5e8abacbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/b5ae9023c1a6483a08f382d72eaaa4d5e8abacbe/loot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2920, 12, 3001, 16, 8673, 264, 16, 1858, 84, 307, 16, 2298, 4672, 309, 8673, 264, 30, 328, 9031, 782, 1359, 273, 1790, 18, 80, 9031, 343, 1359, 12, 16418, 264, 13, 469, 30, 328,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 2920, 12, 3001, 16, 8673, 264, 16, 1858, 84, 307, 16, 2298, 4672, 309, 8673, 264, 30, 328, 9031, 782, 1359, 273, 1790, 18, 80, 9031, 343, 1359, 12, 16418, 264, 13, 469, 30, 328,...
def cleandir (self,tempdir): if not self.DEBUG: os.system("rm -rf %s"%tempdir)
def cleantrash (self): for file in self.trash: if self.DEBUG: print 'DEBUG -- preserving',file else: os.unlink(file)
def bootcd_version (self): try: f = open (self.BOOTCDDIR + "/build/version.txt") version=f.readline().strip() finally: f.close() return version
c8a588799344db08a0317644ebb9ebfc6ebf9860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7598/c8a588799344db08a0317644ebb9ebfc6ebf9860/GetBootMedium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4835, 4315, 67, 1589, 261, 2890, 4672, 775, 30, 284, 273, 1696, 261, 2890, 18, 30124, 10160, 4537, 397, 2206, 3510, 19, 1589, 18, 5830, 7923, 1177, 33, 74, 18, 896, 1369, 7675, 6406, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4835, 4315, 67, 1589, 261, 2890, 4672, 775, 30, 284, 273, 1696, 261, 2890, 18, 30124, 10160, 4537, 397, 2206, 3510, 19, 1589, 18, 5830, 7923, 1177, 33, 74, 18, 896, 1369, 7675, 6406, 1...
sOwnIP, iOwnPort = s.getsockname()
sOwnIP, iPort = s.getsockname()
def GetOwnIP(self, sIP, iPort): """Determine own IP
e4908f2f1e2a9eb71b8f9dd059c0e1341dffa8ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/e4908f2f1e2a9eb71b8f9dd059c0e1341dffa8ca/cNetManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 5460, 2579, 12, 2890, 16, 272, 2579, 16, 277, 2617, 4672, 3536, 8519, 4953, 2971, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 968, 5460, 2579, 12, 2890, 16, 272, 2579, 16, 277, 2617, 4672, 3536, 8519, 4953, 2971, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.gateway = util.get_attr(dom, "gateway", default="10.1.1.254/24") if not len(self.gateway.split("/")) == 2: self.gateway = self.gateway + "/24"
self.gateway = util.get_attr(dom, "gateway", default=None) if self.connector.type == "router": if not self.gateway: self.gateway = "10.1.1.254/24" if not len(self.gateway.split("/")) == 2: self.gateway = self.gateway + "/24"
def decode_xml(self, dom): dummynet.EmulatedConnection.decode_xml(self, dom) self.gateway = util.get_attr(dom, "gateway", default="10.1.1.254/24") if not len(self.gateway.split("/")) == 2: self.gateway = self.gateway + "/24"
b7ff2febf751393dcad9efffe44675577cca50dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3860/b7ff2febf751393dcad9efffe44675577cca50dc/tinc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 2902, 12, 2890, 16, 4092, 4672, 4569, 81, 878, 278, 18, 1514, 11799, 1952, 18, 3922, 67, 2902, 12, 2890, 16, 4092, 13, 365, 18, 11127, 273, 1709, 18, 588, 67, 1747, 12, 985...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2902, 12, 2890, 16, 4092, 4672, 4569, 81, 878, 278, 18, 1514, 11799, 1952, 18, 3922, 67, 2902, 12, 2890, 16, 4092, 13, 365, 18, 11127, 273, 1709, 18, 588, 67, 1747, 12, 985...
The name of a set-up function. This is called before running the
A set-up function. This is called before running the
def DocFileSuite(*paths, **kw): """A unittest suite for one or more doctest files. The path to each doctest file is given as a string; the interpretation of that string depends on the keyword argument "module_relative". A number of options may be provided as keyword arguments: module_relative If "module_relative" is...
a2fc7ec80aea43768c11c50922a665a08b3885c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a2fc7ec80aea43768c11c50922a665a08b3885c0/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 13587, 30857, 4481, 16, 2826, 9987, 4672, 3536, 37, 2836, 3813, 11371, 364, 1245, 578, 1898, 31263, 395, 1390, 18, 225, 1021, 589, 358, 1517, 31263, 395, 585, 353, 864, 487, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 13587, 30857, 4481, 16, 2826, 9987, 4672, 3536, 37, 2836, 3813, 11371, 364, 1245, 578, 1898, 31263, 395, 1390, 18, 225, 1021, 589, 358, 1517, 31263, 395, 585, 353, 864, 487, 2...
self.async_net_push ((encode,))
self.async_net_push ((encoded,))
def pns_error (self, encoded, error): encoded = '%s%d:.%s,' % (encoded, len (error)+1, error) self.log (encoded, 'pns-error') self.async_net_push ((encode,)) # # self.close_when_done () # PNS/TCP does tolerate non-compliant articulator that # produce invalid public names or statements.
34a4e9f0ebec73d4f1a97415270de38a7dddee8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/34a4e9f0ebec73d4f1a97415270de38a7dddee8c/pns_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2387, 67, 1636, 261, 2890, 16, 3749, 16, 555, 4672, 3749, 273, 1995, 87, 9, 72, 30, 7866, 87, 11189, 738, 261, 10787, 16, 562, 261, 1636, 27921, 21, 16, 555, 13, 365, 18, 1330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 2387, 67, 1636, 261, 2890, 16, 3749, 16, 555, 4672, 3749, 273, 1995, 87, 9, 72, 30, 7866, 87, 11189, 738, 261, 10787, 16, 562, 261, 1636, 27921, 21, 16, 555, 13, 365, 18, 1330, ...
except AtrributeError:
except AttributeError:
def getnzmax(self): try: nzmax = self.nzmax except AttributeError: try: nzmax = self.nnz except AtrributeError: nzmax = 0 return nzmax
1b70bf704019519bf06c10fab13fe3a67941a824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/1b70bf704019519bf06c10fab13fe3a67941a824/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 82, 94, 1896, 12, 2890, 4672, 775, 30, 15062, 1896, 273, 365, 18, 82, 94, 1896, 1335, 6394, 30, 775, 30, 15062, 1896, 273, 365, 18, 9074, 94, 1335, 6394, 30, 15062, 1896, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 82, 94, 1896, 12, 2890, 4672, 775, 30, 15062, 1896, 273, 365, 18, 82, 94, 1896, 1335, 6394, 30, 775, 30, 15062, 1896, 273, 365, 18, 9074, 94, 1335, 6394, 30, 15062, 1896, 273, 3...
added.rating.set(metadata[i].rating*10) added.sort_artist.set(metadata[i].author_sort)
if metadata[i].rating: added.rating.set(metadata[i].rating*10) added.sort_artist.set(metadata[i].author_sort.title())
def upload_books(self, files, names, on_card=None, end_session=True, metadata=None): ''' Upload a list of books to the device. If a file already exists on the device, it should be replaced. This method should raise a L{FreeSpaceError} if there is not enough free space on the device. The text of the FreeSpaceError must ...
ef82b34381edb0544f623438f6a721f6e9264129 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/ef82b34381edb0544f623438f6a721f6e9264129/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 67, 12567, 12, 2890, 16, 1390, 16, 1257, 16, 603, 67, 3327, 33, 7036, 16, 679, 67, 3184, 33, 5510, 16, 1982, 33, 7036, 4672, 9163, 9414, 279, 666, 434, 6978, 87, 358, 326, 2346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3617, 67, 12567, 12, 2890, 16, 1390, 16, 1257, 16, 603, 67, 3327, 33, 7036, 16, 679, 67, 3184, 33, 5510, 16, 1982, 33, 7036, 4672, 9163, 9414, 279, 666, 434, 6978, 87, 358, 326, 2346...
`GF(2)^e` as `x` over `GF(2^e)`.
`\mathbb{F}_{2^e}` as `x` over `\mathbb{F}_{2^e}`.
def _mul_matrix(self, x): """ Given an element `x` in self.base_ring(), return a matrix which performs the same operation on a when interpreted over `GF(2)^e` as `x` over `GF(2^e)`. INPUT: - ``x`` - an element in self.base_ring() EXAMPLE:: sage: sr = mq.SR(gf2=True) sage: a = sr.k.gen() sage: A = sr._mul_matrix(...
64b5e0e9186de5235119791631990329cc9aecfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/64b5e0e9186de5235119791631990329cc9aecfa/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16411, 67, 5667, 12, 2890, 16, 619, 4672, 3536, 16803, 392, 930, 1375, 92, 68, 316, 365, 18, 1969, 67, 8022, 9334, 327, 279, 3148, 1492, 11199, 326, 1967, 1674, 603, 279, 1347, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16411, 67, 5667, 12, 2890, 16, 619, 4672, 3536, 16803, 392, 930, 1375, 92, 68, 316, 365, 18, 1969, 67, 8022, 9334, 327, 279, 3148, 1492, 11199, 326, 1967, 1674, 603, 279, 1347, 19...
log.log(3,"info",_("Download thread completed for ") + tmpPath) del self.runningDownloads[tmpPath]
log.log(3,"info",_("Download thread completed for ") + tmpFileName) del self.runningDownloads[tmpFileName]
def dlThreadCompleteNotify(self,tmpPath): # Download thread completed. Log and remove from # self.runningDownloads log.log(3,"info",_("Download thread completed for ") + tmpPath) del self.runningDownloads[tmpPath] log.updateRunningDownloads(len(self.runningDownloads))
66a075cab3d68c237f51e86004d5840adb9c1f9c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/66a075cab3d68c237f51e86004d5840adb9c1f9c/XiboClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8910, 3830, 6322, 9168, 12, 2890, 16, 5645, 743, 4672, 468, 13059, 2650, 5951, 18, 1827, 471, 1206, 628, 468, 365, 18, 8704, 22141, 613, 18, 1330, 12, 23, 10837, 1376, 3113, 67, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8910, 3830, 6322, 9168, 12, 2890, 16, 5645, 743, 4672, 468, 13059, 2650, 5951, 18, 1827, 471, 1206, 628, 468, 365, 18, 8704, 22141, 613, 18, 1330, 12, 23, 10837, 1376, 3113, 67, 2932, ...
connectParams = _users[connUser]
def getConnection(connUser): """ Returns a database connection as defined by connUser. If this module already has an open connection for connUser, it returns it; otherwise, it creates a new connection, stores it, and returns it. """ if not _users.has_key(connUser): raise SkunkStandardError, 'user %s is not initialized...
8e1c3a92df3aa78c5ef32c1c74e8c27800c56896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/8e1c3a92df3aa78c5ef32c1c74e8c27800c56896/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6742, 12, 4646, 1299, 4672, 3536, 2860, 279, 2063, 1459, 487, 2553, 635, 1487, 1299, 18, 971, 333, 1605, 1818, 711, 392, 1696, 1459, 364, 1487, 1299, 16, 518, 1135, 518, 31, 3541, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6742, 12, 4646, 1299, 4672, 3536, 2860, 279, 2063, 1459, 487, 2553, 635, 1487, 1299, 18, 971, 333, 1605, 1818, 711, 392, 1696, 1459, 364, 1487, 1299, 16, 518, 1135, 518, 31, 3541, 16, ...
self._notification_center.post_notification("SIPRegistrationWillExpire", sender=self, data=NotificationData(expires=expires))
self._notification_center.post_notification("SIPRegistrationWillExpire", sender=self, data=NotificationData(expires=expires))
def _NH_SIPRequestWillExpire(self, request, timestamp, expires): with self._lock: if request is not self._last_request: return self._notification_center.post_notification("SIPRegistrationWillExpire", sender=self, data=NotificationData(expires=expires))
7f45219d588f5f0336016587d79417e210306411 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/7f45219d588f5f0336016587d79417e210306411/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 691, 13670, 17033, 12, 2890, 16, 590, 16, 2858, 16, 7368, 4672, 598, 365, 6315, 739, 30, 309, 590, 353, 486, 365, 6315, 2722, 67, 2293, 30, 327, 365, 6315, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 17739, 691, 13670, 17033, 12, 2890, 16, 590, 16, 2858, 16, 7368, 4672, 598, 365, 6315, 739, 30, 309, 590, 353, 486, 365, 6315, 2722, 67, 2293, 30, 327, 365, 6315, 99...
self.logfile = "syncpkgcd-%s.log" % time.strftime("%Y%m%d", time.localtime())
def __init__(self): self.daemon = False self.pidfile = "syncpkgcd.pid" self.logfile = "syncpkgcd.log" self.help = False self.uid = False self.logfile = "syncpkgcd-%s.log" % time.strftime("%Y%m%d", time.localtime())
850232c23354f60c78b7a96890228e0732481683 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11991/850232c23354f60c78b7a96890228e0732481683/syncpkgcd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 21511, 273, 1083, 365, 18, 6610, 768, 273, 315, 8389, 10657, 4315, 18, 6610, 6, 365, 18, 28806, 273, 315, 8389, 10657, 4315, 18, 1330, 6, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 365, 18, 21511, 273, 1083, 365, 18, 6610, 768, 273, 315, 8389, 10657, 4315, 18, 6610, 6, 365, 18, 28806, 273, 315, 8389, 10657, 4315, 18, 1330, 6, 365,...
def cut3AtPlane(F, p, n, newprops=None, side='positive', atol=0.):
def cut3AtPlane(F,p,n,newprops=None,side='positive',atol=0.):
def cut3AtPlane(F, p, n, newprops=None, side='positive', atol=0.): """Returns all elements of the Formex cut at plane(s). F is a Formex of plexitude 3. p is a point or a list of points. n is the normal vector to a plane or a list of normal vectors. Both p and n have shape (3) or (npoints,3). The return value is: - wi...
a1067002a3adbc673c6838134cb2672e5a53dc2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2499/a1067002a3adbc673c6838134cb2672e5a53dc2a/formex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6391, 23, 861, 19505, 12, 42, 16, 84, 16, 82, 16, 2704, 9693, 33, 7036, 16, 5564, 2218, 21094, 2187, 270, 355, 33, 20, 18, 4672, 3536, 1356, 777, 2186, 434, 326, 2748, 338, 6391, 622...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6391, 23, 861, 19505, 12, 42, 16, 84, 16, 82, 16, 2704, 9693, 33, 7036, 16, 5564, 2218, 21094, 2187, 270, 355, 33, 20, 18, 4672, 3536, 1356, 777, 2186, 434, 326, 2748, 338, 6391, 622...
frameHeader = str(self.mesgType) + FRAME_DIVIDER + str(self.contentLength) + \
frameHeader = FRAME_DIVIDER + str(self.mesgType) + FRAME_DIVIDER + str(self.contentLength) + \
def toString(self): """ <Purpose> Converts the frame to a string.
aa293112179760621e4e879489565b9632bd205e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/aa293112179760621e4e879489565b9632bd205e/Multiplexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1762, 12, 2890, 4672, 3536, 411, 10262, 4150, 34, 20377, 326, 2623, 358, 279, 533, 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, ...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1762, 12, 2890, 4672, 3536, 411, 10262, 4150, 34, 20377, 326, 2623, 358, 279, 533, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def scalelock_is_set( self ) : if( self.layer.get_property('_scale_lock') is not None and self.layer.get_property('_scale_lock') == 'locked' ) : return 1 else : return 0 def activateLockEntry_cb( self, *args ) : if( self.scale_toggle.get_active() ) : self.scalelock_cb() def scalelock_cb( self, *args ) : if( self.scal...
def scalelock_is_set(self): return self.layer.get_property('_scale_lock') == 'locked' def activateLockEntry_cb(self, *args): if not self.scale_toggle.get_active(): self.scale_toggle.set_active(True) else: self.scalelock_cb(self.scale_toggle) def scalelock_cb(self, toggle): locked = toggle.get_active() self.layer.set_...
def scalelock_is_set( self ) : if( self.layer.get_property('_scale_lock') is not None and self.layer.get_property('_scale_lock') == 'locked' ) : return 1 else : return 0
30093beb2981ba47380749a3f1c597965f66f39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/30093beb2981ba47380749a3f1c597965f66f39e/gvrasterpropdlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8292, 292, 975, 67, 291, 67, 542, 12, 365, 262, 294, 309, 12, 365, 18, 6363, 18, 588, 67, 4468, 2668, 67, 5864, 67, 739, 6134, 353, 486, 599, 471, 365, 18, 6363, 18, 588, 67, 4468,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8292, 292, 975, 67, 291, 67, 542, 12, 365, 262, 294, 309, 12, 365, 18, 6363, 18, 588, 67, 4468, 2668, 67, 5864, 67, 739, 6134, 353, 486, 599, 471, 365, 18, 6363, 18, 588, 67, 4468,...
stmt = self.com_node(nodelist[2])
def com_try_except(self, nodelist): # try_except: 'try' ':' suite (except_clause ':' suite)* ['else' suite] #tryexcept: [TryNode, [except_clauses], elseNode)] stmt = self.com_node(nodelist[2]) clauses = [] elseNode = None for i in range(3, len(nodelist), 3): node = nodelist[i] if node[0] == symbol.except_clause: # exc...
ddf6205875e253e60199bb0985560d1bb8bf731d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ddf6205875e253e60199bb0985560d1bb8bf731d/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 532, 67, 698, 67, 14137, 12, 2890, 16, 30068, 4672, 468, 775, 67, 14137, 30, 296, 698, 11, 3921, 11371, 261, 14137, 67, 18128, 3921, 11371, 17653, 10228, 12107, 11, 11371, 65, 468, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 532, 67, 698, 67, 14137, 12, 2890, 16, 30068, 4672, 468, 775, 67, 14137, 30, 296, 698, 11, 3921, 11371, 261, 14137, 67, 18128, 3921, 11371, 17653, 10228, 12107, 11, 11371, 65, 468, 698, ...
text = string.join(strings)
text = ' '.join(strings)
def simpleJustifyAlign(line, currentLength, maxLength): "simple justification with only strings" strings = [] from types import StringType for x in line[:-1]: if type(x) is StringType: strings.append(x) nspaces = len(strings)-1 slack = maxLength-currentLength text = string.join(strings) if nspaces>0 and slack>0: wordsp...
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 19642, 1164, 10044, 12, 1369, 16, 783, 1782, 16, 13642, 4672, 315, 9647, 2537, 1480, 598, 1338, 2064, 6, 2064, 273, 5378, 628, 1953, 1930, 31570, 364, 619, 316, 980, 10531, 17, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4143, 19642, 1164, 10044, 12, 1369, 16, 783, 1782, 16, 13642, 4672, 315, 9647, 2537, 1480, 598, 1338, 2064, 6, 2064, 273, 5378, 628, 1953, 1930, 31570, 364, 619, 316, 980, 10531, 17, 21,...
""" tab = self._duval_algorithm() l = sum(len(x) for x in tab) if l < self.length(): tab += self[l:]._duval_algorithm() return tab
- [2] G. Melancon, Factorizing infinite words using Maple, MapleTech journal, vol. 4, no. 1, 1997, pp. 34-42. """ cmp = self.parent().cmp_letters n = self.length() k = -1 F = [0] while k < n-1: i = k+1 j = k+2 while j < n: c = cmp(self[i], self[j]) if c < 0: i = k+1 j += 1 elif c == 0: i += 1 j += 1 else: break wh...
def lyndon_factorization(self): r""" Returns the Lyndon factorization of self. The *Lyndon factorization* of a finite word `w` is the unique factorization of `w` as a non-increasing product of Lyndon words, i.e., `w = l_1\cdots l_n` where each `l_i` is a Lyndon word and `l_1\geq \cdots \geq l_n`. See for instance [1]....
15b3eef9c2a56a442197101e799229fc2fce69fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/15b3eef9c2a56a442197101e799229fc2fce69fc/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 878, 19752, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 511, 878, 19752, 5578, 1588, 434, 365, 18, 225, 1021, 380, 48, 878, 19752, 5578, 1588, 14, 434, 279, 25922, 2076, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 328, 878, 19752, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 511, 878, 19752, 5578, 1588, 434, 365, 18, 225, 1021, 380, 48, 878, 19752, 5578, 1588, 14, 434, 279, 25922, 2076, ...
self.handle_crash_report(report)
call_on_ui_thread(lambda: self.handle_crash_report(report))
def exception_handler(self, typ, value, traceback): report = crashreport.format_crash_report("in frontend thread", exc_info=(typ, value, traceback), details=None) self.handle_crash_report(report)
4895178cff5329e057f086c7f8b48fd9f328b257 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4895178cff5329e057f086c7f8b48fd9f328b257/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 67, 4176, 12, 2890, 16, 3815, 16, 460, 16, 10820, 4672, 2605, 273, 17053, 6006, 18, 2139, 67, 3353, 961, 67, 6006, 2932, 267, 15442, 2650, 3113, 3533, 67, 1376, 28657, 12846, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 67, 4176, 12, 2890, 16, 3815, 16, 460, 16, 10820, 4672, 2605, 273, 17053, 6006, 18, 2139, 67, 3353, 961, 67, 6006, 2932, 267, 15442, 2650, 3113, 3533, 67, 1376, 28657, 12846, 16, ...
value += self._safe_read(chunk_left)
value.append(self._safe_read(chunk_left))
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = ''
f452ebf522b48878e10b0aabbe1fcf6bb0894c49 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/f452ebf522b48878e10b0aabbe1fcf6bb0894c49/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 2, 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, 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, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 2, -100, -100, -100, -100, ...
f.write(">\n\t\t<failure><![CDATA[\n") try: test_output = open("%s/test-output.txt" % t.test_name, "r") f.write("%s" % test_output.read()) test_output.close() except IOError: print "Failed to open test output for %s" % t.test_name f.write("\n\t\t]]></failure>\n\t</testcase>\n")
f.write(">\n\t\t<failure />") f.write("\n\t</testcase>\n")
def write_results_xml(self, fn, stdout=False): try: f = open(TEST_RESULTS, "w") except IOError: print "Failed to open test results output file: %s" % TEST_RESULTS return except: print "Unexpected error: %s" % sys.exc_info()[0] return
8adc6f3477d5f2a56b7d571d265e610e73cd714e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6013/8adc6f3477d5f2a56b7d571d265e610e73cd714e/runtests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4717, 67, 2902, 12, 2890, 16, 2295, 16, 3909, 33, 8381, 4672, 775, 30, 284, 273, 1696, 12, 16961, 67, 20602, 16, 315, 91, 7923, 1335, 8340, 30, 1172, 315, 2925, 358, 1696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 67, 4717, 67, 2902, 12, 2890, 16, 2295, 16, 3909, 33, 8381, 4672, 775, 30, 284, 273, 1696, 12, 16961, 67, 20602, 16, 315, 91, 7923, 1335, 8340, 30, 1172, 315, 2925, 358, 1696, ...
os.path.join(dir, "source", "resource", "sample"),
os.path.join(dir, "source", "resource", "custom"),
def copySkeleton(dir, namespace): console.log("Copy skeleton into the output directory: %s" % dir) try: shutil.copytree(SKELETON_DIR, dir) except OSError: console.error("Failed to copy skeleton, maybe the directory already exists") sys.exit(1) # rename namespace os.rename( os.path.join(dir, "source", "class", "custom...
04346f58a7359503a465116294360849738faefe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/04346f58a7359503a465116294360849738faefe/create-application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 28070, 12, 1214, 16, 1981, 4672, 2983, 18, 1330, 2932, 2951, 17761, 1368, 326, 876, 1867, 30, 738, 87, 6, 738, 1577, 13, 225, 775, 30, 11060, 18, 3530, 3413, 12, 55, 6859, 15146,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 28070, 12, 1214, 16, 1981, 4672, 2983, 18, 1330, 2932, 2951, 17761, 1368, 326, 876, 1867, 30, 738, 87, 6, 738, 1577, 13, 225, 775, 30, 11060, 18, 3530, 3413, 12, 55, 6859, 15146,...
latextype = ""
latextype_line = -1
def convert(lines): " Convert to new format." re_Comment = re.compile(r'^(\s*)#') re_Empty = re.compile(r'^(\s*)$') re_Format = re.compile(r'^(\s*)(Format)(\s+)(\S+)', re.IGNORECASE) re_Preamble = re.compile(r'^(\s*)Preamble', re.IGNORECASE) re_EndPreamble = re.compile(r'^(\s*)EndPreamble', re.IGNORECASE) re_MaxCounter...
ba4236f744c4b0d66b02240ca249a72a73cb9dc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/ba4236f744c4b0d66b02240ca249a72a73cb9dc0/layout2layout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 3548, 4672, 315, 4037, 358, 394, 740, 1199, 283, 67, 4469, 273, 283, 18, 11100, 12, 86, 19856, 4713, 87, 12437, 7, 6134, 283, 67, 1921, 273, 283, 18, 11100, 12, 86, 19856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3548, 4672, 315, 4037, 358, 394, 740, 1199, 283, 67, 4469, 273, 283, 18, 11100, 12, 86, 19856, 4713, 87, 12437, 7, 6134, 283, 67, 1921, 273, 283, 18, 11100, 12, 86, 19856, ...
print 'Set SDSS to True'
else: print 'No SDSS header card: not an SDSS idR file.' return hdu if (hdr.get('UNSIGNED', None) == pyfits.UNDEFINED and (not 'BSCALE' in hdr) and (not 'BZERO' in hdr)): print 'Setting UNSIGNED = True' hdr['UNSIGNED'] = True print 'Adding BZERO = 32768 card' hdr.update('BZERO', 32768, 'Unsigned -> signed') else: prin...
def fix_sdss_idr(fits): hdr = fits[0].header if hdr['SIMPLE'] is False: hdr.update('SIMPLE', True, 'FITS compliant (fix-sdss-idr.py)') if hdr.get('SDSS', None) == pyfits.UNDEFINED: hdr['SDSS'] = True print 'Set SDSS to True' print 'UNSIGNED in hdr?', ('UNSIGNED' in hdr) print hdr.get('UNSIGNED', None) print hdr.asca...
b39e4e08bbf236c86881fcfd5557ca0d31fc1d09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7059/b39e4e08bbf236c86881fcfd5557ca0d31fc1d09/fix-sdss-idr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 6427, 1049, 67, 350, 86, 12, 18352, 4672, 7723, 273, 13351, 63, 20, 8009, 3374, 309, 7723, 3292, 31669, 900, 3546, 353, 1083, 30, 7723, 18, 2725, 2668, 31669, 900, 2187, 1053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 67, 6427, 1049, 67, 350, 86, 12, 18352, 4672, 7723, 273, 13351, 63, 20, 8009, 3374, 309, 7723, 3292, 31669, 900, 3546, 353, 1083, 30, 7723, 18, 2725, 2668, 31669, 900, 2187, 1053, ...
self.suits.append(SuitStack(self, i))
x = x + XSPACING self.suits.append(SuitStack(x, y, self)) x = MARGIN y = y + YSPACING
def __init__(self, master):
a9b383de5cc662464dfbac36854b1d4ca07c0a0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a9b383de5cc662464dfbac36854b1d4ca07c0a0c/solitaire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 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...