rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
app = gateway.applevel(r'''
app = gateway.applevel(r''' import codecs
def ord__String(space, w_str): u_str = w_str._value if len(u_str) != 1: raise OperationError( space.w_TypeError, space.wrap("ord() expected a character, but string " "of length %d found"%(len(w_str._value),))) return space.wrap(ord(u_str))
41e03f3183e83e91eb621d1a4ce9293608eabccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/41e03f3183e83e91eb621d1a4ce9293608eabccb/stringobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4642, 972, 780, 12, 2981, 16, 341, 67, 701, 4672, 582, 67, 701, 273, 341, 67, 701, 6315, 1132, 309, 562, 12, 89, 67, 701, 13, 480, 404, 30, 1002, 4189, 668, 12, 3476, 18, 91, 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, 4642, 972, 780, 12, 2981, 16, 341, 67, 701, 4672, 582, 67, 701, 273, 341, 67, 701, 6315, 1132, 309, 562, 12, 89, 67, 701, 13, 480, 404, 30, 1002, 4189, 668, 12, 3476, 18, 91, 67, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 919) else quickfix.IntField.__init__(self, 919, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2468, 3657, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2468, 3657, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
if self.blockItem.isShown: try: blockName = self.blockItem.blockName splitter = list(self.blockItem.childrenBlocks)[1] splitterBlockName = splitter.blockName except (AttributeError, IndexError): pass else: if blockName == 'CalendarSummaryView' and \ splitterBlockName == 'MainCalendarCanvasSplitter' and \ spl...
def wxSynchronizeWidget(self, useHints=False): super (wxBoxContainer, self).wxSynchronizeWidget ()
1a7938e46c57cd6b99ad91584247625110c83e60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1a7938e46c57cd6b99ad91584247625110c83e60/ContainerBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 19298, 554, 4609, 12, 2890, 16, 999, 13368, 33, 8381, 4672, 2240, 261, 27226, 3514, 2170, 16, 365, 2934, 27226, 19298, 554, 4609, 1832, 2, 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, 7075, 19298, 554, 4609, 12, 2890, 16, 999, 13368, 33, 8381, 4672, 2240, 261, 27226, 3514, 2170, 16, 365, 2934, 27226, 19298, 554, 4609, 1832, 2, -100, -100, -100, -100, -100, -100, -100, ...
closelist = self.single_sockets.values()
closelist = [sock for sock in self.single_sockets.values() if not isinstance(sock, InterruptSocket)]
def do_poll(self, t): r = self.poll.poll(t*timemult) if r is None: connects = len(self.single_sockets) to_close = int(connects*0.05)+1 # close 5% of sockets self.max_connects = connects-to_close closelist = self.single_sockets.values() shuffle(closelist) closelist = closelist[:to_close] for sock in closelist: if DEBUG:...
f82455a8225ab39833d6b69bd84826c1e568cf11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/f82455a8225ab39833d6b69bd84826c1e568cf11/SocketHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 13835, 12, 2890, 16, 268, 4672, 436, 273, 365, 18, 13835, 18, 13835, 12, 88, 14, 8584, 351, 406, 13, 309, 436, 353, 599, 30, 23441, 273, 562, 12, 2890, 18, 7526, 67, 7814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13835, 12, 2890, 16, 268, 4672, 436, 273, 365, 18, 13835, 18, 13835, 12, 88, 14, 8584, 351, 406, 13, 309, 436, 353, 599, 30, 23441, 273, 562, 12, 2890, 18, 7526, 67, 7814, ...
signal.signal(signal.SIGHUP, self.rehash) signal.signal(signal.SIGTERM, self.term)
signal.signal(signal.SIGHUP, self.onREHASH) signal.signal(signal.SIGTERM, self.onTERM)
def __init__(self, event, env): Component.__init__(self, event)
5e0797288ce80ec439c29b038de52bd516501a6b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3020/5e0797288ce80ec439c29b038de52bd516501a6b/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 871, 16, 1550, 4672, 5435, 16186, 2738, 972, 12, 2890, 16, 871, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 16, 1550, 4672, 5435, 16186, 2738, 972, 12, 2890, 16, 871, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
s = size(h + '3P2P') +\ PySet_MINSIZE*struct.calcsize('lP') + self.l + self.P
s = size(h + '3P2P' + PySet_MINSIZE*'lP' + 'lP')
def delx(self): del self.__x
6d08a0b563d4a5f82571f7fb0b8a13a918ebcf2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/6d08a0b563d4a5f82571f7fb0b8a13a918ebcf2b/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 92, 12, 2890, 4672, 1464, 365, 16186, 92, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 92, 12, 2890, 4672, 1464, 365, 16186, 92, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
while self.parser.elementInScope("select"): self.parser.openElements.pop() self.parser.resetInsertionMode()
if self.parser.elementInScope(name, True): if self.parser.openElements[-1].name != "select": node = self.parser.openElements.pop() while node != "select" node = self.parser.openElements.pop() self.parser.resetInsertionMode() else: self.parser.parseError()
def endTagSelect(self, name="select"): # XXX innerHTML case ...
08e63fa88e0f4b18448d6ebc8577407cdaaf9faa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/08e63fa88e0f4b18448d6ebc8577407cdaaf9faa/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 3391, 12, 2890, 16, 508, 1546, 4025, 6, 4672, 468, 11329, 14129, 648, 1372, 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, 29765, 3391, 12, 2890, 16, 508, 1546, 4025, 6, 4672, 468, 11329, 14129, 648, 1372, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"1000": 001750, "1000 B-14": 001750,
"1000": 001750, "1000 B-14": 001750,
def test_sp_dec(): testdata = { "16372": 037764, "16372 B-14": 037764, "-.38888": 063434, "-83": 077654, "-83 B-14": 077654, "-79": 077660, "-79 B-14": 077660, "41": 000051, "41 B-14": 000051, "76": 000114, "76 B-14...
bf56514f65402998750eab30f37322a633ce0505 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/bf56514f65402998750eab30f37322a633ce0505/number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1752, 67, 4924, 13332, 1842, 892, 273, 288, 315, 2313, 6418, 22, 6877, 5411, 17107, 4700, 1105, 16, 315, 2313, 6418, 22, 225, 605, 17, 3461, 6877, 1377, 17107, 4700, 1105, 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, 1842, 67, 1752, 67, 4924, 13332, 1842, 892, 273, 288, 315, 2313, 6418, 22, 6877, 5411, 17107, 4700, 1105, 16, 315, 2313, 6418, 22, 225, 605, 17, 3461, 6877, 1377, 17107, 4700, 1105, 16, ...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 574) else quickfix.StringField.__init__(self, 574, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 5608, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 5608, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
from pprint import pformat
def update_file_info(self, item): """ C{update_file_info} is called only when: - When you enter a directory (once for each item but only when the item was modified since the last time it was listed) - When you refresh (once for each item visible) - When an item viewable from the current window is created or modified ...
6268447808016e08552fea26797a7dc725fdd8d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/6268447808016e08552fea26797a7dc725fdd8d3/RabbitVCS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 768, 67, 1376, 12, 2890, 16, 761, 4672, 3536, 225, 385, 95, 2725, 67, 768, 67, 1376, 97, 353, 2566, 1338, 1347, 30, 225, 300, 5203, 1846, 6103, 279, 1867, 261, 8243, 364, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 67, 768, 67, 1376, 12, 2890, 16, 761, 4672, 3536, 225, 385, 95, 2725, 67, 768, 67, 1376, 97, 353, 2566, 1338, 1347, 30, 225, 300, 5203, 1846, 6103, 279, 1867, 261, 8243, 364, 1...
elif currentConfigSelectionElement(currLnb.diseqcRepeats) == "Two":
elif currentConfigSelectionElement(currLnb.diseqcRepeats) == "two":
def updateAdvanced(self, sec, slotid): lnbSat = {} for x in range(1,33): lnbSat[x] = [] for x in self.NimManager.satList: lnb = config.Nims[slotid].advanced.sat[x[1]].lnb.value if lnb != 0: print "add", x[1], "to", lnb lnbSat[lnb].append(x[1]) for x in range(1,33): if len(lnbSat[x]) > 0: currLnb = config.Nims[slotid].a...
f9ac4210fa12ea7399e2b129aae9532aa6fbfc2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/f9ac4210fa12ea7399e2b129aae9532aa6fbfc2e/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23618, 12, 2890, 16, 1428, 16, 4694, 350, 4672, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 16, 3707, 4672, 328, 6423, 15163, 63, 92, 65, 273, 5378, 364, 619, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 23618, 12, 2890, 16, 1428, 16, 4694, 350, 4672, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 16, 3707, 4672, 328, 6423, 15163, 63, 92, 65, 273, 5378, 364, 619, 316, ...
elif discType == 3:
elif discType == self.D_FREQUENCY:
def computeDiscretizer(self, i, idx, onlyDefaults=False): attr = self.data.domain[idx] indiData = self.indiData[idx]
9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43/OWInteractiveDiscretization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 28912, 1349, 1824, 12, 2890, 16, 277, 16, 2067, 16, 1338, 7019, 33, 8381, 4672, 1604, 273, 365, 18, 892, 18, 4308, 63, 3465, 65, 1547, 77, 751, 273, 365, 18, 728, 77, 751, 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, 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, 3671, 28912, 1349, 1824, 12, 2890, 16, 277, 16, 2067, 16, 1338, 7019, 33, 8381, 4672, 1604, 273, 365, 18, 892, 18, 4308, 63, 3465, 65, 1547, 77, 751, 273, 365, 18, 728, 77, 751, 63, ...
name: str The name of the temporary file which should hold the cached HTTP requests and responses.
name: str (optional) The file name of session file to be used. The file is loaded from the temporary directory of this machine. If no name is passed in, a default name will be constructed using the cache_name_prefix, cache_case_name, and cache_test_name of this object.
def use_cached_session(self, name, real_http_client=None): """Attempts to load recordings from a previous live request. If a temp file with the recordings exists, then it is used to fulfill requests. If the file does not exist, then a real client is used to actually make the desired HTTP requests. Requests and respons...
7700a3d89d9b507e202ecb8eaeffc4f27fbadbf8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/7700a3d89d9b507e202ecb8eaeffc4f27fbadbf8/mock_http_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 7097, 67, 3184, 12, 2890, 16, 508, 16, 2863, 67, 2505, 67, 2625, 33, 7036, 4672, 3536, 10113, 358, 1262, 1409, 899, 628, 279, 2416, 8429, 590, 18, 225, 971, 279, 1906, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 999, 67, 7097, 67, 3184, 12, 2890, 16, 508, 16, 2863, 67, 2505, 67, 2625, 33, 7036, 4672, 3536, 10113, 358, 1262, 1409, 899, 628, 279, 2416, 8429, 590, 18, 225, 971, 279, 1906, 585, ...
return _getElementsByTagNameNSHelper(self, namespaceURI, localName, [])
return _getElementsByTagNameNSHelper(self, namespaceURI, localName, NodeList())
def getElementsByTagNameNS(self, namespaceURI, localName): return _getElementsByTagNameNSHelper(self, namespaceURI, localName, [])
190052b779b7543367444194a1c4243f94187b59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/190052b779b7543367444194a1c4243f94187b59/minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11034, 3156, 12, 2890, 16, 19421, 16, 11927, 4672, 327, 389, 588, 3471, 10401, 3156, 2276, 12, 2890, 16, 19421, 16, 11927, 16, 5378, 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, 0, 0, 0, 0, 0, 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, 11034, 3156, 12, 2890, 16, 19421, 16, 11927, 4672, 327, 389, 588, 3471, 10401, 3156, 2276, 12, 2890, 16, 19421, 16, 11927, 16, 5378, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100...
upsfile.close() dataFiles.append(["ups", [tableName]])
upsFile.close() dataFiles.append(["ups", [upsFileName]])
def getPackages(): packages = [PkgName] dataList = [] for dirPath, dirNames, fileNames in os.walk(PkgDir): if ".svn" in dirNames: dirNames.remove(".svn") dirName = os.path.basename(dirPath) print "dirName=", dirName tryInit = os.path.join(dirPath, "__init__.py") print "tryInit=", tryInit if os.path.exists(os.path.join...
c2db375310df01b14b7de0de1241e3cdff950e9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6236/c2db375310df01b14b7de0de1241e3cdff950e9b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30401, 1023, 13332, 5907, 273, 306, 11264, 461, 65, 501, 682, 273, 5378, 364, 15891, 16, 1577, 1557, 16, 27375, 316, 1140, 18, 11348, 12, 11264, 1621, 4672, 309, 3552, 31505, 6, 316, 157...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30401, 1023, 13332, 5907, 273, 306, 11264, 461, 65, 501, 682, 273, 5378, 364, 15891, 16, 1577, 1557, 16, 27375, 316, 1140, 18, 11348, 12, 11264, 1621, 4672, 309, 3552, 31505, 6, 316, 157...
return self._wrapper._engine.connection_provider._pool.checkedin()
try: return self._wrapper._engine.connection_provider._pool.checkedin() except: return 'n/a'
def getCheckedin(self): """ """ return self._wrapper._engine.connection_provider._pool.checkedin()
831088074276639001c5c59b2f18beca49d00b78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6817/831088074276639001c5c59b2f18beca49d00b78/da.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 11454, 267, 12, 2890, 4672, 3536, 3536, 327, 365, 6315, 8376, 6315, 8944, 18, 4071, 67, 6778, 6315, 6011, 18, 4532, 267, 1435, 2, 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, 336, 11454, 267, 12, 2890, 4672, 3536, 3536, 327, 365, 6315, 8376, 6315, 8944, 18, 4071, 67, 6778, 6315, 6011, 18, 4532, 267, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print "angular"
def _load_measurements(self, pubsub_evt): print "_load_measurements" dict = pubsub_evt.data for i in dict: m = dict[i] print "m:", m.name if m.type == const.LINEAR: print "linear" mr = LinearMeasure(m.colour) else: print "angular" mr = AngularMeasure(m.colour) self.current = (m, mr) self.measures.append(self.current) f...
cc2c99a6188aecdd662aaa567ce10137ad64fe08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/cc2c99a6188aecdd662aaa567ce10137ad64fe08/measures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 26550, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 1172, 4192, 945, 67, 26550, 6, 2065, 273, 23288, 67, 73, 11734, 18, 892, 364, 277, 316, 2065, 30, 312, 273, 2065, 63, 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, 389, 945, 67, 26550, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 1172, 4192, 945, 67, 26550, 6, 2065, 273, 23288, 67, 73, 11734, 18, 892, 364, 277, 316, 2065, 30, 312, 273, 2065, 63, 7...
self.assertException(Player.screenshot())
self.assertException(Player.screenshot)
def checkCanvasScreenshot(): bmp = offscreenCanvas.screenshot() self.compareBitmapToFile(bmp, "testOffscreenScreenshot", False)
23b8888744ad7c13b099776e36e9cc39954c384d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/23b8888744ad7c13b099776e36e9cc39954c384d/OffscreenTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12971, 29354, 13332, 324, 1291, 273, 3397, 9252, 12971, 18, 29435, 1435, 365, 18, 9877, 12224, 15450, 12, 70, 1291, 16, 315, 3813, 7210, 9252, 29354, 3113, 1083, 13, 2, 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, 866, 12971, 29354, 13332, 324, 1291, 273, 3397, 9252, 12971, 18, 29435, 1435, 365, 18, 9877, 12224, 15450, 12, 70, 1291, 16, 315, 3813, 7210, 9252, 29354, 3113, 1083, 13, 2, -100, -100, ...
if self._charset: try: text = unicode(text, self._charset) except UnicodeDecodeError, err: self.warning("Unable to convert string to Unicode: " + unicode(err)) self._charset = None text = unicode(text, "ISO-8859-1") else: text = unicode(text, "ISO-8859-1")
text = self._convertText(text)
def createValue(self, human=True): # Compress data address (in bits) and size (in bytes) if human: addr = self.absolute_address + self._content_offset * 8 size = self._content_size else: addr = self.absolute_address size = self._size/8 if size == 0: # Empty string return u""
45ac1adbbae69d7ff487eb3d2a954981d6b9f44f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/45ac1adbbae69d7ff487eb3d2a954981d6b9f44f/string_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 620, 12, 2890, 16, 8672, 33, 5510, 4672, 468, 25698, 501, 1758, 261, 267, 4125, 13, 471, 963, 261, 267, 1731, 13, 309, 8672, 30, 3091, 273, 365, 18, 12547, 67, 2867, 397, 365, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 620, 12, 2890, 16, 8672, 33, 5510, 4672, 468, 25698, 501, 1758, 261, 267, 4125, 13, 471, 963, 261, 267, 1731, 13, 309, 8672, 30, 3091, 273, 365, 18, 12547, 67, 2867, 397, 365, 6...
if pidfile_pid.isdigit() and glue.utils.pid_exists(int(pidfile_pid)): raise RuntimeError, ("pidfile %s contains pid (%s) of a running " "process" % (lockfile, pidfile_pid)) else: print ("pidfile %s contains stale pid %s; writing new lock" % (lockfile, pidfile_pid))
if pidfile_pid.isdigit(): if glue.utils.pid_exists(int(pidfile_pid)): raise RuntimeError, ("pidfile %s contains pid (%s) of a running " "process" % (lockfile, pidfile_pid)) else: print ("pidfile %s contains stale pid %s; writing new lock" % (lockfile, pidfile_pid))
def get_lock(lockfile): """ Tries to write a lockfile containing the current pid. Excepts if the lockfile already contains the pid of a running process. Although this should prevent a lock from being granted twice, it can theoretically deny a lock unjustly in the unlikely event that the original process is gone but a...
20ef9ea2342fd3519ff726d0835a1a6ff89c88a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/20ef9ea2342fd3519ff726d0835a1a6ff89c88a2/pidfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 739, 12, 739, 768, 4672, 3536, 10000, 281, 358, 1045, 279, 2176, 768, 4191, 326, 783, 4231, 18, 225, 25209, 87, 309, 326, 2176, 768, 1818, 1914, 326, 4231, 434, 279, 3549, 120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 739, 12, 739, 768, 4672, 3536, 10000, 281, 358, 1045, 279, 2176, 768, 4191, 326, 783, 4231, 18, 225, 25209, 87, 309, 326, 2176, 768, 1818, 1914, 326, 4231, 434, 279, 3549, 120...
all_overdrive.add(e['overdrive'])
all_overdrive.update(e['overdrive'])
def get_pub_year(e): pub_date = e.get('publish_date', None) if pub_date: m = re_year.search(pub_date) if m: return m.group(1)
1f59a633a586aae63d8fdf6c3e3fa95ae39dae26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/1f59a633a586aae63d8fdf6c3e3fa95ae39dae26/update_work.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10174, 67, 6874, 12, 73, 4672, 5634, 67, 712, 273, 425, 18, 588, 2668, 6543, 67, 712, 2187, 599, 13, 309, 5634, 67, 712, 30, 312, 273, 283, 67, 6874, 18, 3072, 12, 10174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10174, 67, 6874, 12, 73, 4672, 5634, 67, 712, 273, 425, 18, 588, 2668, 6543, 67, 712, 2187, 599, 13, 309, 5634, 67, 712, 30, 312, 273, 283, 67, 6874, 18, 3072, 12, 10174, ...
TheAddressTable.Add(frame_dict[OBJECT_FILE], frame_dict[INSTRUCTION_POINTER])
TheAddressTable.Add(frame_dict[OBJECT_FILE], frame_dict[INSTRUCTION_POINTER])
def gatherFrames(node, source_dir): frames = [] for frame in node.getElementsByTagName("frame"): frame_dict = { INSTRUCTION_POINTER : getTextOf(frame, INSTRUCTION_POINTER), OBJECT_FILE : getTextOf(frame, OBJECT_FILE), FUNCTION_NAME : getTextOf(frame, FUNCTION_NAME), SRC_FILE_DIR : removeCommonRoot(...
7dac2b9e1162ea7f20002cf329583aa5fd046226 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/7dac2b9e1162ea7f20002cf329583aa5fd046226/memcheck_analyze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11090, 15162, 12, 2159, 16, 1084, 67, 1214, 4672, 7793, 273, 5378, 364, 2623, 316, 756, 18, 588, 3471, 10401, 2932, 3789, 6, 4672, 2623, 67, 1576, 273, 288, 2120, 3902, 27035, 67, 2419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11090, 15162, 12, 2159, 16, 1084, 67, 1214, 4672, 7793, 273, 5378, 364, 2623, 316, 756, 18, 588, 3471, 10401, 2932, 3789, 6, 4672, 2623, 67, 1576, 273, 288, 2120, 3902, 27035, 67, 2419, ...
usetime = float(mytime) / max((30-len(history)),3)
usetime = float(mytime) / max((30-len(board.history)),3)
def go (): """ Finds and prints the best move from the current position """ searchLock.acquire() # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not m...
98757f231a455915156406d6e000528d2bfbd273 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/98757f231a455915156406d6e000528d2bfbd273/PyChess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 1832, 30, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 225, 1623, 2531, 18, 1077, 1039, 1435, 225, 468, 2660, 30, 11311, 1123, 1410, 506, 1378, 316, 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, 1960, 1832, 30, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 225, 1623, 2531, 18, 1077, 1039, 1435, 225, 468, 2660, 30, 11311, 1123, 1410, 506, 1378, 316, 326,...
n = '.'.join(name[:len(name)-i])
def build_docs(names, inspect=True, parse=True): names = [DottedName(name) for name in names] # Create our tool chain inspector = DocInspector() parser = DocParser(inspector.inspect(__builtins__)) merger = DocMerger() docstring_parser = DocstringParser() inheriter = DocInheriter() parsedocs = [] inspectdocs = [] for ...
39028ad155a48d1e14faba061237da8a4813af2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/39028ad155a48d1e14faba061237da8a4813af2e/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 8532, 12, 1973, 16, 5334, 33, 5510, 16, 1109, 33, 5510, 4672, 1257, 273, 306, 10412, 2344, 461, 12, 529, 13, 364, 508, 316, 1257, 65, 225, 468, 1788, 3134, 5226, 2687, 22700,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 67, 8532, 12, 1973, 16, 5334, 33, 5510, 16, 1109, 33, 5510, 4672, 1257, 273, 306, 10412, 2344, 461, 12, 529, 13, 364, 508, 316, 1257, 65, 225, 468, 1788, 3134, 5226, 2687, 22700,...
for error in tserrors: errstring += error
for (descr, (etype, mount, need)) in tserrors: errstring += descr
def doTransaction(self): """takes care of package downloading, checking, user confirmation and actually RUNNING the transaction"""
58c23422b7c442f58ff92e368d304c73c4985179 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/58c23422b7c442f58ff92e368d304c73c4985179/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3342, 12, 2890, 4672, 3536, 88, 3223, 7671, 434, 2181, 23742, 16, 6728, 16, 729, 14296, 471, 6013, 23574, 326, 2492, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 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, 741, 3342, 12, 2890, 4672, 3536, 88, 3223, 7671, 434, 2181, 23742, 16, 6728, 16, 729, 14296, 471, 6013, 23574, 326, 2492, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
(config.get(prefs.THEME_NAME) is not None) and (config.get(prefs.THEME_DIRECTORY) is not None)):
(config.get(prefs.THEME_NAME) is not None)):
def onFirstRun(self): logging.info("Spawning Miro Guide...") guideURL = unicode(config.get(prefs.CHANNEL_GUIDE_URL)) if guide.getGuideByURL(guideURL) is None: guide.ChannelGuide(guideURL, unicode(config.get(prefs.CHANNEL_GUIDE_ALLOWED_URLS)).split())
67ff5593848959e82358c233d9dd2de48ed6c265 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/67ff5593848959e82358c233d9dd2de48ed6c265/theme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3759, 1997, 12, 2890, 4672, 2907, 18, 1376, 2932, 3389, 2219, 2093, 490, 11373, 13018, 7070, 13, 7343, 1785, 273, 5252, 12, 1425, 18, 588, 12, 1484, 2556, 18, 15814, 67, 17525, 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, 603, 3759, 1997, 12, 2890, 4672, 2907, 18, 1376, 2932, 3389, 2219, 2093, 490, 11373, 13018, 7070, 13, 7343, 1785, 273, 5252, 12, 1425, 18, 588, 12, 1484, 2556, 18, 15814, 67, 17525, 41, ...
class OptionFrame (tk.Frame): """A Frame containing Controls that control command-line options. """ def __init__(self, master=None): """Create an OptionFrame with the given master and control widgets. master: Tkinter widget that will contain this OptionFrame args: Positional arguments to pass to Frame constructor...
def set(self, value): """Set sub-widget's value.""" self.widget.set(value)
ac756e9bfa740df0ff497bc9bb0b414d357eefc4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/ac756e9bfa740df0ff497bc9bb0b414d357eefc4/meta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 460, 4672, 3536, 694, 720, 17, 6587, 1807, 460, 12123, 365, 18, 6587, 18, 542, 12, 1132, 13, 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, 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, 444, 12, 2890, 16, 460, 4672, 3536, 694, 720, 17, 6587, 1807, 460, 12123, 365, 18, 6587, 18, 542, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return "The Rubik's cube group with genrators R,L,F,B,U,D in SymmetricGroup(48)."
return "The Rubik's cube group with genrators R,L,F,B,U,D in SymmetricGroup(48)."
def __str__(self):
d6e55544eeb2c8853758824e2c33afd9265928af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d6e55544eeb2c8853758824e2c33afd9265928af/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 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, 701, 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, -10...
seek_to = widgets.watcher.time[0]
seek_to = player.playlist.get_position()
def __input_check(self, source, condition): c = os.read(source, 1) if c == "<": self.__previous_song() elif c == ">": self.__next_song() elif c == "-": self.__play_pause() elif c == ")": player.playlist.paused = False elif c == "|": player.playlist.paused = True elif c == "0": player.playlist.seek(0) elif c == "v": c2 ...
e6e351b5c12145e3074743d9e941ebe090bbcb93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/e6e351b5c12145e3074743d9e941ebe090bbcb93/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2630, 67, 1893, 12, 2890, 16, 1084, 16, 2269, 4672, 276, 273, 1140, 18, 896, 12, 3168, 16, 404, 13, 309, 276, 422, 3532, 6877, 365, 16186, 11515, 67, 816, 75, 1435, 1327, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2630, 67, 1893, 12, 2890, 16, 1084, 16, 2269, 4672, 276, 273, 1140, 18, 896, 12, 3168, 16, 404, 13, 309, 276, 422, 3532, 6877, 365, 16186, 11515, 67, 816, 75, 1435, 1327, 276, ...
values=cls.values.items()
values=values
def _create_schema_item(cls, view): if hasattr(cls, 'constants'): return Types.ConstantEnumeration( None, view['Schema'], itemFor(Types.ConstantEnumeration, view), values=cls.values.items() ) else: return Types.Enumeration( None, view['Schema'], itemFor(Types.Enumeration, view), values=list(cls.values) )
509c9c30f5e66cb2f823c4354399436ed0d5d3f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/509c9c30f5e66cb2f823c4354399436ed0d5d3f3/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 4821, 67, 1726, 12, 6429, 16, 1476, 4672, 309, 3859, 12, 6429, 16, 296, 13358, 11, 4672, 327, 7658, 18, 6902, 21847, 12, 599, 16, 1476, 3292, 3078, 17337, 761, 1290, 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, 389, 2640, 67, 4821, 67, 1726, 12, 6429, 16, 1476, 4672, 309, 3859, 12, 6429, 16, 296, 13358, 11, 4672, 327, 7658, 18, 6902, 21847, 12, 599, 16, 1476, 3292, 3078, 17337, 761, 1290, 12,...
if target_iswin: exe = exe + "_" is24 = hasattr(sys, "version_info") and sys.version_info[:2] >= (2,4) exe = exe + "67"[is24] exe = exe + "rd"[self.debug] exe = exe + "wc"[self.console] else: if not self.console: exe = exe + 'w' if self.debug: exe = exe + '_d'
if not self.console: exe = exe + 'w' if self.debug: exe = exe + '_d'
def _bootloader_postfix(self, exe): if target_iswin: exe = exe + "_" is24 = hasattr(sys, "version_info") and sys.version_info[:2] >= (2,4) exe = exe + "67"[is24] exe = exe + "rd"[self.debug] exe = exe + "wc"[self.console] else: if not self.console: exe = exe + 'w' if self.debug: exe = exe + '_d' return exe
c0cee3b7723667ae2845b4ae375ebabb164c3eb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11925/c0cee3b7723667ae2845b4ae375ebabb164c3eb9/Build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7137, 6714, 67, 2767, 904, 12, 2890, 16, 15073, 4672, 3639, 309, 486, 365, 18, 8698, 30, 15073, 273, 15073, 397, 296, 91, 11, 309, 365, 18, 4148, 30, 15073, 273, 15073, 397, 2070,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 7137, 6714, 67, 2767, 904, 12, 2890, 16, 15073, 4672, 3639, 309, 486, 365, 18, 8698, 30, 15073, 273, 15073, 397, 296, 91, 11, 309, 365, 18, 4148, 30, 15073, 273, 15073, 397, 2070,...
if channel_id == 0: return 0
if channel_id: channels[channel_id] = [time.time() + CHANNEL_TIMEOUT, ""] print >>sys.stderr, "crawler: _acquire_channel_id:", show_permid_short(permid), len(channels), "channels used"
def _acquire_channel_id(self, permid): if permid in self._channels: channels = self._channels[permid] else: channels = {} self._channels[permid] = channels
1a756a891e14660826a25bba2bbf8634ea99d4ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/1a756a891e14660826a25bba2bbf8634ea99d4ae/Crawler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1077, 1039, 67, 4327, 67, 350, 12, 2890, 16, 4641, 350, 4672, 309, 4641, 350, 316, 365, 6315, 9114, 30, 5750, 273, 365, 6315, 9114, 63, 12160, 350, 65, 469, 30, 5750, 273, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1077, 1039, 67, 4327, 67, 350, 12, 2890, 16, 4641, 350, 4672, 309, 4641, 350, 316, 365, 6315, 9114, 30, 5750, 273, 365, 6315, 9114, 63, 12160, 350, 65, 469, 30, 5750, 273, 2618, ...
this = apply(_quickfix.new_BidSpotRate, args)
this = _quickfix.new_BidSpotRate(*args)
def __init__(self, *args): this = apply(_quickfix.new_BidSpotRate, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 17763, 17292, 4727, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 17763, 17292, 4727, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect((host, port)) self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile) def read(self, size): """Read 'size' bytes from remote.""" chunks = [] read = 0 while read < size: data = self.sslobj.read(size-read) read += len(data) c...
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((host, port)) self.sock = ssl.wrap_socket(sock, self.keyfile, self.certfile) self.file = self.sock.makefile('rb') def ssl(self): """Return SSLObject instance used to communicate with the IMAP4 server. ssl = ssl.wrap_socket(<instance>.socket)
def open(self, host = '', port = IMAP4_SSL_PORT): """Setup connection to remote server on "host:port". (default: localhost:standard IMAP4 SSL port). This connection will be used by the routines: read, readline, send, shutdown. """ self.host = host self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_S...
0edfe45cf47801ac945acf496d62219af995e8b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/0edfe45cf47801ac945acf496d62219af995e8b1/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 6246, 2203, 24, 67, 6745, 67, 6354, 4672, 3536, 7365, 1459, 358, 2632, 1438, 603, 315, 2564, 30, 655, 9654, 261, 1886, 30, 17365, 30, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 6246, 2203, 24, 67, 6745, 67, 6354, 4672, 3536, 7365, 1459, 358, 2632, 1438, 603, 315, 2564, 30, 655, 9654, 261, 1886, 30, 17365, 30, 1...
'ca_theorical': fields.function(_analysis_all, method=True, multi='analytic_analysis', type='float', string='Theorical Revenue',
'ca_theorical': fields.function(_analysis_all, method=True, multi='analytic_analysis', type='float', string='Theoretical Revenue',
def _theorical_margin_calc(self, cr, uid, ids, name, arg, context=None): res = {} for account in self.browse(cr, uid, ids, context=context): res[account.id] = account.ca_theorical + account.total_cost for id in ids: res[id] = round(res.get(id, 0.0),2) return res
0ca6e99f67d85abaf2272302141555f7d648e2b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0ca6e99f67d85abaf2272302141555f7d648e2b2/account_analytic_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5787, 10129, 67, 10107, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 2236, 316, 365, 18, 25731, 12, 3353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5787, 10129, 67, 10107, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 2236, 316, 365, 18, 25731, 12, 3353, ...
dataPath = os.path.realpath( "%s/%s" % ( rootPath, dataPath ) )
dataPath = os.path.realpath( "%s/%s" % ( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), dataPath ) )
def initializeMonitoringHandler( serviceInfo ): #Check that the path is writable monitoringSection = PathFinder.getServiceSection( "Framework/Monitoring" ) #Get data location dataPath = gConfig.getValue( "%s/DataLocation" % monitoringSection, "data/monitoring" ) dataPath = dataPath.strip() if "/" != dataPath[0]: dataPa...
9c7c04b6baa39d8aa37a160ecc5d20d5122050b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9c7c04b6baa39d8aa37a160ecc5d20d5122050b6/MonitoringHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 18410, 1503, 12, 1156, 966, 262, 30, 468, 1564, 716, 326, 589, 353, 9691, 16309, 5285, 273, 2666, 8441, 18, 588, 1179, 5285, 12, 315, 13701, 19, 18410, 6, 262, 468, 967, 501, 211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 18410, 1503, 12, 1156, 966, 262, 30, 468, 1564, 716, 326, 589, 353, 9691, 16309, 5285, 273, 2666, 8441, 18, 588, 1179, 5285, 12, 315, 13701, 19, 18410, 6, 262, 468, 967, 501, 211...
if config.gcc.cxxflags: cmd.extend(config.gcc.cxxflags.split(' '))
cxxflags = [flag for flag in config.gcc.cxxflags.split(' ') if flag] cmd.extend(cxxflags)
def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[], lib_dirs=[], libs=[], preargs=[]): """ :param module_name: string (this has been embedded in the src_code :param src_code: a complete c or c++ source listing for the module :param location: a pre-existing filesystem directory where the cp...
4f455fdffe392b2424a8d42aa73238d7c5219b9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/4f455fdffe392b2424a8d42aa73238d7c5219b9c/cmodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 952, 67, 2978, 67, 11100, 67, 701, 12, 2978, 67, 529, 16, 1705, 67, 710, 16, 2117, 33, 7036, 16, 2341, 67, 8291, 22850, 6487, 2561, 67, 8291, 22850, 6487, 15042, 22850, 6487, 675,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 314, 952, 67, 2978, 67, 11100, 67, 701, 12, 2978, 67, 529, 16, 1705, 67, 710, 16, 2117, 33, 7036, 16, 2341, 67, 8291, 22850, 6487, 2561, 67, 8291, 22850, 6487, 15042, 22850, 6487, 675,...
(p,v,t) = _RegEnumValue(k,i)
(p,v,t) = RegEnumValue(k,i)
def get_msvc_paths (path, version='6.0', platform='x86'): """Get a list of devstudio directories (include, lib or path). Return a list of strings; will be empty list if unable to access the registry or appropriate registry keys not found.""" if not _can_read_reg: return [] L = [] if path=='lib': path= 'Library' path...
1027e3fde9b9cb6eb470cc13e48fbd2208658b32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1027e3fde9b9cb6eb470cc13e48fbd2208658b32/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 959, 4227, 67, 4481, 261, 803, 16, 1177, 2218, 26, 18, 20, 2187, 4072, 2218, 92, 5292, 11, 4672, 3536, 967, 279, 666, 434, 4461, 334, 4484, 6402, 261, 6702, 16, 2561, 578, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 959, 4227, 67, 4481, 261, 803, 16, 1177, 2218, 26, 18, 20, 2187, 4072, 2218, 92, 5292, 11, 4672, 3536, 967, 279, 666, 434, 4461, 334, 4484, 6402, 261, 6702, 16, 2561, 578, 5...
st = p.communicate() out = p.stdout if st == 0: for line in out.splitlines():
stdout, stderr = p.communicate() if p.returncode == 0: for line in stdout.splitlines():
def _can_target(cmd, arch): """Return true is the command supports the -arch flag for the given architecture.""" newcmd = cmd[:] newcmd.extend(["-arch", arch, "-v"]) p = Popen(newcmd, stderr=STDOUT, stdout=PIPE) st = p.communicate() out = p.stdout if st == 0: for line in out.splitlines(): m = re.search(_R_ARCHS[arch], ...
683a8d0b65c1d55f3793abb80a4af486e7232492 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/683a8d0b65c1d55f3793abb80a4af486e7232492/gnu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4169, 67, 3299, 12, 4172, 16, 6637, 4672, 3536, 990, 638, 353, 326, 1296, 6146, 326, 300, 991, 2982, 364, 326, 864, 27418, 12123, 394, 4172, 273, 1797, 10531, 65, 394, 4172, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4169, 67, 3299, 12, 4172, 16, 6637, 4672, 3536, 990, 638, 353, 326, 1296, 6146, 326, 300, 991, 2982, 364, 326, 864, 27418, 12123, 394, 4172, 273, 1797, 10531, 65, 394, 4172, 18, 1...
libraries.append('quiputils')
libraries = ['quiputils'] + libraries
def find_wrap_sources(makefile, quip_root): source_dirs = [] wrap_sources = [] wrap_types = [] libraries = [] targets = [] libatoms_dir = os.path.join(quip_root, 'libAtoms/') wrap_sources += [os.path.join(libatoms_dir, s) for s in ['System.f95', 'ExtendableStr.f95', 'MPI_context.f95', 'Units.f95', 'linearalgebra.f...
bafb6f2dbf4c9d632582d9e81d414329d0bc12ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/bafb6f2dbf4c9d632582d9e81d414329d0bc12ad/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 4113, 67, 10141, 12, 6540, 768, 16, 719, 625, 67, 3085, 4672, 1084, 67, 8291, 273, 5378, 2193, 67, 10141, 273, 5378, 2193, 67, 2352, 282, 273, 5378, 14732, 273, 5378, 5774, 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, 1104, 67, 4113, 67, 10141, 12, 6540, 768, 16, 719, 625, 67, 3085, 4672, 1084, 67, 8291, 273, 5378, 2193, 67, 10141, 273, 5378, 2193, 67, 2352, 282, 273, 5378, 14732, 273, 5378, 5774, 2...
context.loc = pa
context.setLoc(pa)
def parse_SETLOC(self, context, operands): retval = False if operands: expr = Expression(context, operands) if expr.complete: pa = expr.value context.currentRecord.target = pa context.currentRecord.complete = True context.loc = pa retval = True else: context.error("missing operand") return retval
ce86b3471a6458fe73066034f9048fcbd69ffe33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/ce86b3471a6458fe73066034f9048fcbd69ffe33/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 4043, 29450, 12, 2890, 16, 819, 16, 14883, 4672, 5221, 273, 1083, 309, 14883, 30, 3065, 273, 5371, 12, 2472, 16, 14883, 13, 309, 3065, 18, 6226, 30, 6790, 273, 3065, 18, 1132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 67, 4043, 29450, 12, 2890, 16, 819, 16, 14883, 4672, 5221, 273, 1083, 309, 14883, 30, 3065, 273, 5371, 12, 2472, 16, 14883, 13, 309, 3065, 18, 6226, 30, 6790, 273, 3065, 18, 1132...
elif type(field) == gtk.TextView:
elif type(field) == BirthdayField:
def switch_mode(self, edit=False, save=False): self.edit = edit self.addButton.set_sensitive(edit) self.saveButton.set_property("visible", edit) self.editButton.set_property("visible", not edit) self.imagechangeButton.set_property("visible", edit) self.imageremoveButton.set_property("visible", edit and self.hasphoto) s...
a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 67, 3188, 12, 2890, 16, 3874, 33, 8381, 16, 1923, 33, 8381, 4672, 365, 18, 4619, 273, 3874, 365, 18, 1289, 3616, 18, 542, 67, 23481, 12, 4619, 13, 365, 18, 5688, 3616, 18, 542,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1620, 67, 3188, 12, 2890, 16, 3874, 33, 8381, 16, 1923, 33, 8381, 4672, 365, 18, 4619, 273, 3874, 365, 18, 1289, 3616, 18, 542, 67, 23481, 12, 4619, 13, 365, 18, 5688, 3616, 18, 542,...
J = self.index_set()
J = self.index_object()
def idwt(self,other="haar",wavelet_k=2): """ Implements the gsl WaveletTransform.backward in dwt.pyx. other must be an element of {"haar", "daubechies", "daubechies_centered", "haar_centered", "bspline", "bspline_centered"}. Assumes the length of the sample is a power of 2. Uses the GSL function gsl_wavelet_transform_b...
5d0c7d543a1b24ac0a1d29ac68884870541a3a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d0c7d543a1b24ac0a1d29ac68884870541a3a98/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 6046, 12, 2890, 16, 3011, 1546, 3395, 297, 3113, 24801, 808, 67, 79, 33, 22, 4672, 3536, 29704, 326, 314, 2069, 678, 842, 808, 4059, 18, 29275, 316, 302, 6046, 18, 2074, 92, 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, 612, 6046, 12, 2890, 16, 3011, 1546, 3395, 297, 3113, 24801, 808, 67, 79, 33, 22, 4672, 3536, 29704, 326, 314, 2069, 678, 842, 808, 4059, 18, 29275, 316, 302, 6046, 18, 2074, 92, 18, ...
def externalpatch(patcher, args, patchname, ui, strip, cwd, files):
def externalpatch(patcher, patchname, ui, strip, cwd, files):
def externalpatch(patcher, args, patchname, ui, strip, cwd, files): """use <patcher> to apply <patchname> to the working directory. returns whether patch was applied with fuzz factor.""" fuzz = False if cwd: args.append('-d %s' % util.shellquote(cwd)) fp = util.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip...
5fa420a2a2858de74ae86c5d9337ab239fb155b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/5fa420a2a2858de74ae86c5d9337ab239fb155b3/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3903, 2272, 12, 2272, 264, 16, 4729, 529, 16, 5915, 16, 2569, 16, 7239, 16, 1390, 4672, 3536, 1202, 411, 2272, 264, 34, 358, 2230, 411, 2272, 529, 34, 358, 326, 5960, 1867, 18, 1135, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3903, 2272, 12, 2272, 264, 16, 4729, 529, 16, 5915, 16, 2569, 16, 7239, 16, 1390, 4672, 3536, 1202, 411, 2272, 264, 34, 358, 2230, 411, 2272, 529, 34, 358, 326, 5960, 1867, 18, 1135, ...
print "%10s -(%10s %d)-> %10s" % (fro.getSymbol().encode(ENCODING), label.getSymbol().encode(ENCODING), self.link[(fro,to,label)].getWeight() * 100, to.getSymbol().encode(ENCODING))
print "%10s -(%10s %d)-> %10s" % (froS.encode(ENCODING), labelS.encode(ENCODING), self.link[(froS,froT,toS,toT,labelS,labelT)] .getWeight() * 100, toS.encode(ENCODING))
def showLinks(self,stateId=None): "Show all the links in the Concept Network" for (fro,to,label) in self.link: if label: if not stateId: print "%10s -(%10s %d)-> %10s" % (fro.getSymbol().encode(ENCODING), label.getSymbol().encode(ENCODING), self.link[(fro,to,label)].getWeight() * 100, to.getSymbol().encode(ENCODING)) e...
c854365881cedd2aea0b58afe21c063dbb848eba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13131/c854365881cedd2aea0b58afe21c063dbb848eba/ConceptNetwork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 7100, 12, 2890, 16, 2019, 548, 33, 7036, 4672, 315, 5706, 777, 326, 4716, 316, 326, 27842, 5128, 6, 364, 261, 74, 303, 16, 869, 16, 1925, 13, 316, 365, 18, 1232, 30, 309, 1433,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 7100, 12, 2890, 16, 2019, 548, 33, 7036, 4672, 315, 5706, 777, 326, 4716, 316, 326, 27842, 5128, 6, 364, 261, 74, 303, 16, 869, 16, 1925, 13, 316, 365, 18, 1232, 30, 309, 1433,...
sys.stderr.write(" Reconnecting at %s\n"%(time.ctime(time.time()),)) self.elvin = Elvin.Elvin(Elvin.EC_NAMEDHOST, self.host, self.port, None, self._error_cb)
log.log( "<eddieElvin>_reconnect(), Reconnecting to Elvin: %s:%d" % (self.host,self.port), 4 ) self.elvin = Elvin.Elvin(Elvin.EC_NAMEDHOST, self.host, self.port, None, self._error_cb)
def _reconnect(self):
b371bce3d0f20227567cdc4143d5681185cfddfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/b371bce3d0f20227567cdc4143d5681185cfddfc/eddieElvin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25913, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25913, 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, -100, -...
ypname += '-'
d['version'] = inst.get('version')
def build_yname(pkgname, inst): """Build yum appropriate package name.""" ypname = pkgname if inst.get('version') != 'any': ypname += '-' if inst.get('epoch', False): ypname += "%s:" % inst.get('epoch') if inst.get('version', False) and inst.get('version') != 'any': ypname += "%s" % (inst.get('version')) if inst.get('r...
806c613f255b54d2c580b303361a7934d0324f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/806c613f255b54d2c580b303361a7934d0324f08/YUMng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 93, 529, 12, 10657, 529, 16, 1804, 4672, 3536, 3116, 677, 379, 5505, 2181, 508, 12123, 29647, 529, 273, 29348, 309, 1804, 18, 588, 2668, 1589, 6134, 480, 296, 2273, 4278, 302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 67, 93, 529, 12, 10657, 529, 16, 1804, 4672, 3536, 3116, 677, 379, 5505, 2181, 508, 12123, 29647, 529, 273, 29348, 309, 1804, 18, 588, 2668, 1589, 6134, 480, 296, 2273, 4278, 302, ...
not os.path.isdir(vnc_bind_address): raise errors.HypervisorError("Instance vnc bind address must be either" " an ip address or an existing directory")
not os.path.isdir(vnc_bind_address): raise errors.HypervisorError("Instance vnc bind address must be either" " an ip address or an existing directory")
def ValidateParameters(self, hvparams): """Check the given parameters for validity.
146afafbbda543d0991daac9d58b0f62a2a47164 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/146afafbbda543d0991daac9d58b0f62a2a47164/hv_kvm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3554, 2402, 12, 2890, 16, 366, 90, 2010, 4672, 3536, 1564, 326, 864, 1472, 364, 13800, 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,...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3554, 2402, 12, 2890, 16, 366, 90, 2010, 4672, 3536, 1564, 326, 864, 1472, 364, 13800, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return getattr(self.session.loginchecker.users, self.session.username, None)
return getattr(self.session.loginchecker.users, self.session.username.encode("utf-8"), None)
def getusernode(self): """gets the user's prefs node""" if self.session.isopen: return getattr(self.session.loginchecker.users, self.session.username, None) else: return None
9682b4ec6520c064481b1d9264d56bc2608fc073 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11388/9682b4ec6520c064481b1d9264d56bc2608fc073/translatepage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1355, 2159, 12, 2890, 4672, 3536, 14665, 326, 729, 1807, 15503, 756, 8395, 309, 365, 18, 3184, 18, 291, 3190, 30, 327, 3869, 12, 2890, 18, 3184, 18, 5819, 19243, 18, 5577, 16, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1355, 2159, 12, 2890, 4672, 3536, 14665, 326, 729, 1807, 15503, 756, 8395, 309, 365, 18, 3184, 18, 291, 3190, 30, 327, 3869, 12, 2890, 18, 3184, 18, 5819, 19243, 18, 5577, 16, 365...
if isinstance(file_name, list) :
if (file_name is None) : return [] elif isinstance(file_name, list) :
def get_param_files (self, file_param_name) : file_name = self._param_files.get(file_param_name) if isinstance(file_name, list) : return file_name else : return [ file_name ]
9d2f407d576c4b5a7bbc09802abb69a898240065 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/9d2f407d576c4b5a7bbc09802abb69a898240065/file_cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 891, 67, 2354, 261, 2890, 16, 585, 67, 891, 67, 529, 13, 294, 585, 67, 529, 273, 365, 6315, 891, 67, 2354, 18, 588, 12, 768, 67, 891, 67, 529, 13, 309, 261, 768, 67, 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, 336, 67, 891, 67, 2354, 261, 2890, 16, 585, 67, 891, 67, 529, 13, 294, 585, 67, 529, 273, 365, 6315, 891, 67, 2354, 18, 588, 12, 768, 67, 891, 67, 529, 13, 309, 261, 768, 67, 529...
return str(self._parent.delpat[self.value])
if self.format == "string": return str(self._parent.delpat[self.value]) elif self.format == "dual_string": return str(self._parent.gampat[self.value]) elif self.format == "simple": return str(self.value) else: raise NotImplementedError
def __repr__(self): return str(self._parent.delpat[self.value])
d2a686bf9ab89d9b3dc380fd04fb8c00dd4ae45b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d2a686bf9ab89d9b3dc380fd04fb8c00dd4ae45b/fast_crystals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 609, 12, 2890, 6315, 2938, 18, 72, 1992, 270, 63, 2890, 18, 1132, 5717, 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, 1001, 12715, 972, 12, 2890, 4672, 327, 609, 12, 2890, 6315, 2938, 18, 72, 1992, 270, 63, 2890, 18, 1132, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
prefs_key=True):
prefs_key = True):
def qt4message(msg, always=False): if debug_prefs.debug_pref("Enable QT4 TODO messages", debug_prefs.Choice_boolean_False, prefs_key=True): if __linenum(always): print 'Qt 4 MESSAGE: ' + msg
cca576cf8798366875286f6eb559227b1be45d1e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/cca576cf8798366875286f6eb559227b1be45d1e/qt4transition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25672, 24, 2150, 12, 3576, 16, 3712, 33, 8381, 4672, 309, 1198, 67, 1484, 2556, 18, 4148, 67, 25724, 2932, 8317, 2238, 56, 24, 2660, 2743, 3113, 1198, 67, 1484, 2556, 18, 10538, 67, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25672, 24, 2150, 12, 3576, 16, 3712, 33, 8381, 4672, 309, 1198, 67, 1484, 2556, 18, 4148, 67, 25724, 2932, 8317, 2238, 56, 24, 2660, 2743, 3113, 1198, 67, 1484, 2556, 18, 10538, 67, 64...
os.mkdir(root+"var/db/pkg/"+mycategory+"/"+mypackage,0755)
os.mkdir(root+"var/db/pkg/"+mycategory+"/"+mypackage,0755)
def prepare_db(mycategory,mypackage): if not os.path.isdir(root+"var"): os.mkdir(root+"var",0755) if not os.path.isdir(root+"var/db"): os.mkdir(root+"var/db",0755) if not os.path.isdir(root+"var/db/pkg"): os.mkdir(root+"var/db/pkg",0755) if not os.path.isdir(root+"var/db/pkg/"+mycategory): os.mkdir(root+"var/db/pkg/"+m...
96798fc4231d42befd1b30836093b0523bec3804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/96798fc4231d42befd1b30836093b0523bec3804/portage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 67, 1966, 12, 4811, 4743, 16, 81, 879, 1270, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 3085, 9078, 1401, 6, 4672, 1140, 18, 26686, 12, 3085, 9078, 1401, 3113, 8642, 2539,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 67, 1966, 12, 4811, 4743, 16, 81, 879, 1270, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 3085, 9078, 1401, 6, 4672, 1140, 18, 26686, 12, 3085, 9078, 1401, 3113, 8642, 2539,...
print_warning(req, "No match found, trying similar queries...", "", "<p>","<p>")
print_warning(req, "No exact match found, trying similar queries...", "", "<p>","<p>")
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg="10", sf="", so="d", sp="", of="hb", ot="", as="0", p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc="0", jrec="0", id="-1", idb="-1", sysnb="", search="SEARCH", d1y="", d1m="", d1d="", d2y="", d2m="", d2d=""): """P...
0f644a3e9a21fa49065fbfbec95493378ff259fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/0f644a3e9a21fa49065fbfbec95493378ff259fb/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
def __init__(self, enquire, fields): self._enquire = enquire
def __init__(self, query, db, fields): self._query = query self._db = db
def __init__(self, enquire, fields): self._enquire = enquire self._fields = fields self._max = enquire.get_mset(0,0).get_matches_upper_bound()
f98a1b035426b63440283a9fa3869757f6518410 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/f98a1b035426b63440283a9fa3869757f6518410/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 843, 16, 1319, 16, 1466, 4672, 365, 6315, 2271, 273, 843, 365, 6315, 1966, 273, 1319, 365, 6315, 2821, 273, 1466, 365, 6315, 1896, 273, 570, 1039, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 843, 16, 1319, 16, 1466, 4672, 365, 6315, 2271, 273, 843, 365, 6315, 1966, 273, 1319, 365, 6315, 2821, 273, 1466, 365, 6315, 1896, 273, 570, 1039, 18, 58...
return 1 + self.getLevels()
return 1 + self.getLevel()
def getSectionLevel(self): return 1 + self.getLevels()
92d4a245884ee7f61891bea4533a69e3fc179cd9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/92d4a245884ee7f61891bea4533a69e3fc179cd9/advtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22103, 2355, 12, 2890, 4672, 327, 404, 397, 365, 18, 588, 12240, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22103, 2355, 12, 2890, 4672, 327, 404, 397, 365, 18, 588, 12240, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
next = 'http://www.youtube.com/get_video?video_id=' + vid + '&t=' + r2.group(1) + '&fmt=%d' % fmt_id
d = {'video_id': vid, 't': r2.group(1), 'fmt': fmt_id} next = 'http://www.youtube.com/get_video?video_id=%(video_id)s&t=%(t)s&eurl=&el=&ps=&asv=&fmt=%(fmt)s' % d
def get_real_download_url(url, preferred_fmt_id=18): vid = get_youtube_id(url) if vid is not None: page = None url = 'http://www.youtube.com/watch?v=' + vid while page is None: req = util.http_request(url, method='GET') if 'location' in req.msg: url = req.msg['location'] else: page = req.read() # Try to find the best...
756aac8e7096f066f35f3a9f519ec061f826b1a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/756aac8e7096f066f35f3a9f519ec061f826b1a6/youtube.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7688, 67, 7813, 67, 718, 12, 718, 16, 9119, 67, 8666, 67, 350, 33, 2643, 4672, 18339, 273, 336, 67, 31749, 67, 350, 12, 718, 13, 309, 18339, 353, 486, 599, 30, 1363, 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, 7688, 67, 7813, 67, 718, 12, 718, 16, 9119, 67, 8666, 67, 350, 33, 2643, 4672, 18339, 273, 336, 67, 31749, 67, 350, 12, 718, 13, 309, 18339, 353, 486, 599, 30, 1363, 273, ...
self.prev_percentage = self.percentage() if value != self.maxval: self.fd.write(self._format_line() + '\r') else: self.finished = True self.fd.write(self._format_line() + '\n')
self.next_update = self._next_update() self.fd.write(self._format_line() + '\r')
def update(self, value): "Updates the progress bar to a new value." assert 0 <= value <= self.maxval self.currval = value if not self._need_update() or self.finished: return if not self.start_time: self.start_time = time.time() self.seconds_elapsed = time.time() - self.start_time self.prev_percentage = self.percentage(...
c109edddd8f1b11193779fab960ac9b94b56e2c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11527/c109edddd8f1b11193779fab960ac9b94b56e2c9/progressbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 460, 4672, 315, 5121, 326, 4007, 4653, 358, 279, 394, 460, 1199, 1815, 374, 1648, 460, 1648, 365, 18, 1896, 1125, 365, 18, 17016, 1125, 273, 460, 309, 486, 365, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 2890, 16, 460, 4672, 315, 5121, 326, 4007, 4653, 358, 279, 394, 460, 1199, 1815, 374, 1648, 460, 1648, 365, 18, 1896, 1125, 365, 18, 17016, 1125, 273, 460, 309, 486, 365, 631...
else: child_title = parent.child_title
def select_file(self): """Open a file selection dialog box""" fname = self.item.from_string(unicode(self.edit.text())) if isinstance(fname, list): fname = os.path.dirname(fname[0]) parent = self.parent_layout.parent _temp = sys.stdout sys.stdout = None if len(fname) == 0: fname = self.basedir _formats = self.item.get_p...
cc8cdfe8300af1041f9db1db8e791b7e33b35295 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2056/cc8cdfe8300af1041f9db1db8e791b7e33b35295/qtitemwidgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 768, 12, 2890, 4672, 3536, 3678, 279, 585, 4421, 6176, 3919, 8395, 5299, 273, 365, 18, 1726, 18, 2080, 67, 1080, 12, 9124, 12, 2890, 18, 4619, 18, 955, 1435, 3719, 309, 1549,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2027, 67, 768, 12, 2890, 4672, 3536, 3678, 279, 585, 4421, 6176, 3919, 8395, 5299, 273, 365, 18, 1726, 18, 2080, 67, 1080, 12, 9124, 12, 2890, 18, 4619, 18, 955, 1435, 3719, 309, 1549,...
self.prefixlen = int(addr[1])
self._prefixlen = int(addr[1])
def __init__(self, ipaddr): """Instantiate a new IPv6 object.
fff47fe8f2324dff8c8e9a139755e429be20efed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3510/fff47fe8f2324dff8c8e9a139755e429be20efed/ipaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2359, 4793, 4672, 3536, 22438, 279, 394, 7853, 26, 733, 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,...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2359, 4793, 4672, 3536, 22438, 279, 394, 7853, 26, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
skipyes = len(code); emit(0)
skipyes = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
2177055b902a7e649c7988bb4499ab5115b4ea1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2177055b902a7e649c7988bb4499ab5115b4ea1d/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, 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, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
elif sym == 2:
elif enc == 2:
def convert_case(sym): """ return (lower, upper) for internal use. :note: direct port of http://cgit.freedesktop.org/xcb/util/tree/keysyms/keysyms.c#n361 """ lower = sym upper = sym enc = sym >> 8 if sym == 0: # latin1 if ((sym >= keysymdef.XK_A) and (sym <= keysymdef.XK_Z)): lower += (keysymdef.XK_a - keysymdef.XK_...
fcc1b7c56d3ac296156afd7a5dd9eff2848a18d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/fcc1b7c56d3ac296156afd7a5dd9eff2848a18d5/keysyms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 3593, 12, 8117, 4672, 3536, 327, 261, 8167, 16, 3854, 13, 364, 2713, 999, 18, 225, 294, 7652, 30, 2657, 1756, 434, 1062, 2207, 71, 6845, 18, 74, 15656, 281, 11869, 18, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3593, 12, 8117, 4672, 3536, 327, 261, 8167, 16, 3854, 13, 364, 2713, 999, 18, 225, 294, 7652, 30, 2657, 1756, 434, 1062, 2207, 71, 6845, 18, 74, 15656, 281, 11869, 18, 3341, ...
self.cached_files = []
self.cached_files = {}
def __init__(self): self.cached_files = []
9d3222c5a0a78f47be05b2e5ac2e720998035afb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/9d3222c5a0a78f47be05b2e5ac2e720998035afb/pkg_resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 7097, 67, 2354, 273, 5378, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 7097, 67, 2354, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return tuple([QuotientRingElement(self.parent(),v) for v in self.__rep.variables()])
return tuple([self.parent()(v) for v in self.__rep.variables()])
def variables(self): """ EXAMPLES:: sage: R.<x,y> = QQ[]; S.<a,b> = R.quo(x^2 + y^2); type(a) <class 'sage.rings.quotient_ring_element.QuotientRingElement'> sage: a.variables() (a,) sage: b.variables() (b,) sage: s = a^2 + b^2 + 1; s 1 sage: s.variables() () sage: (a+b).variables() (a, b) """ return tuple([QuotientRin...
fc3fae1786d321a0c137a5fed83a122c88d61d29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/fc3fae1786d321a0c137a5fed83a122c88d61d29/quotient_ring_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3152, 12, 2890, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 534, 22782, 92, 16, 93, 34, 273, 2238, 53, 8526, 31, 348, 22782, 69, 16, 70, 34, 273, 534, 18, 372, 83, 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, 3152, 12, 2890, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 534, 22782, 92, 16, 93, 34, 273, 2238, 53, 8526, 31, 348, 22782, 69, 16, 70, 34, 273, 534, 18, 372, 83, 12, ...
self._table = Table(tableData, colWidths=(availWidth,), style=self.tableStyle)
self._table = Table(tableData, colWidths=(availWidth,), style=self.tableStyle)
def drawTOCEntryEnd(canvas, kind, label): '''Callback to draw dots and page numbers after each entry.''' page, level = [ int(x) for x in label.split(',') ] x, y = canvas._curr_tx_info['cur_x'], canvas._curr_tx_info['cur_y'] style = self.levelStyles[level] pagew = stringWidth(' %d' % page, style.fontName, style.fontSiz...
d97e82cb7278382d065be008ee571313be90209b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/d97e82cb7278382d065be008ee571313be90209b/tableofcontents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4296, 39, 1622, 1638, 12, 15424, 16, 3846, 16, 1433, 4672, 9163, 2428, 358, 3724, 19522, 471, 1363, 5600, 1839, 1517, 1241, 1093, 6309, 1363, 16, 1801, 273, 306, 509, 12, 92, 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, 3724, 4296, 39, 1622, 1638, 12, 15424, 16, 3846, 16, 1433, 4672, 9163, 2428, 358, 3724, 19522, 471, 1363, 5600, 1839, 1517, 1241, 1093, 6309, 1363, 16, 1801, 273, 306, 509, 12, 92, 13, ...
raise TypeError("argument %s must be %s, not %s" % (arg, expected, type(v).__name__))
return TypeError("argument %s must be %s, not %s" % (arg, expected, type(v).__name__))
def type_err(arg, expected, v): raise TypeError("argument %s must be %s, not %s" % (arg, expected, type(v).__name__))
bf0f51ca7a6db8dd183ff8eb9551cdf860775651 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/bf0f51ca7a6db8dd183ff8eb9551cdf860775651/_classobj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 618, 67, 370, 12, 3175, 16, 2665, 16, 331, 4672, 327, 3580, 2932, 3446, 738, 87, 1297, 506, 738, 87, 16, 486, 738, 87, 6, 738, 261, 3175, 16, 2665, 16, 618, 12, 90, 2934, 972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 618, 67, 370, 12, 3175, 16, 2665, 16, 331, 4672, 327, 3580, 2932, 3446, 738, 87, 1297, 506, 738, 87, 16, 486, 738, 87, 6, 738, 261, 3175, 16, 2665, 16, 618, 12, 90, 2934, 972, 529,...
return msg
return msg, words def check_words(words, bayes, spam_offset, ham_offset): for word, existing_info in words.items(): new_info = bayes._wordinfoget(word) if existing_info.spamcount+spam_offset != new_info.spamcount or \ existing_info.hamcount+ham_offset != new_info.hamcount: TestFailed("Word check for '%s failed. " "old...
def CreateTestMessage(self, spam_status): words = [] if spam_status != SPAM: words.extend(FindTopWords(self.manager.bayes, 50, False)) if spam_status != HAM: words.extend(FindTopWords(self.manager.bayes, 50, True)) # Create a new blank message with our words msg = self.manager.outlook.CreateItem(0) msg.Body = "\n".join...
dd7298bdea1152d90803967bf28763a9a3f36f01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/dd7298bdea1152d90803967bf28763a9a3f36f01/tester.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 4709, 1079, 12, 2890, 16, 24824, 67, 2327, 4672, 4511, 273, 5378, 309, 24824, 67, 2327, 480, 11405, 2192, 30, 4511, 18, 14313, 12, 3125, 3401, 7363, 12, 2890, 18, 4181, 18, 70, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1788, 4709, 1079, 12, 2890, 16, 24824, 67, 2327, 4672, 4511, 273, 5378, 309, 24824, 67, 2327, 480, 11405, 2192, 30, 4511, 18, 14313, 12, 3125, 3401, 7363, 12, 2890, 18, 4181, 18, 70, 5...
other.yuv = c.yuv
other.hsva = c.hsva
def test_yuv__sanity_testing_converted_should_not_raise(self): fails = 0 for i, (r,g,b,a) in enumerate(rgba_combinations): c = pygame.Color (r,g,b,a) other = pygame.Color(0) try: other.yuv = c.yuv except ValueError: fails += 1 self.assertEqual ( (fails, i+1), (0, i+1), '(fails, combos) == (0, combos)' )
c6e7f322382f4acb4620e49e674de647c9ab082a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/c6e7f322382f4acb4620e49e674de647c9ab082a/color_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 93, 16303, 972, 87, 10417, 67, 3813, 310, 67, 6283, 329, 67, 13139, 67, 902, 67, 11628, 12, 2890, 4672, 6684, 273, 374, 225, 364, 277, 16, 261, 86, 16, 75, 16, 70, 16, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 93, 16303, 972, 87, 10417, 67, 3813, 310, 67, 6283, 329, 67, 13139, 67, 902, 67, 11628, 12, 2890, 4672, 6684, 273, 374, 225, 364, 277, 16, 261, 86, 16, 75, 16, 70, 16, 69...
def loadProfiles(self):
def loadSettings(self): if not os.path.exists(PROFILEDIR): os.mkdir(PROFILEDIR)
def loadProfiles(self): self.setProfiles(load_profiles(PROFILEDIR))
23d77842c2ff47e2526f559948644ca80ad406ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/23d77842c2ff47e2526f559948644ca80ad406ee/masstagging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 2628, 12, 2890, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 22462, 4537, 4672, 1140, 18, 26686, 12, 22462, 4537, 13, 365, 18, 542, 12450, 12, 945, 67, 18314, 12, 22462, 4537, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 2628, 12, 2890, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 22462, 4537, 4672, 1140, 18, 26686, 12, 22462, 4537, 13, 365, 18, 542, 12450, 12, 945, 67, 18314, 12, 22462, 4537, 37...
if inst.poll(_deadstate=sys.maxint) >= 0:
if inst._internal_poll(_deadstate=sys.maxint) >= 0:
def _cleanup(): for inst in _active[:]: if inst.poll(_deadstate=sys.maxint) >= 0: try: _active.remove(inst) except ValueError: # This can happen if two threads create a new Popen instance. # It's harmless that it was already removed, so ignore. pass
db6e32953062734c10a57e25c13d5b6aadb12e85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/db6e32953062734c10a57e25c13d5b6aadb12e85/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16732, 13332, 364, 1804, 316, 389, 3535, 10531, 14542, 309, 1804, 6315, 7236, 67, 13835, 24899, 22097, 2019, 33, 9499, 18, 1896, 474, 13, 1545, 374, 30, 775, 30, 389, 3535, 18, 4479...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16732, 13332, 364, 1804, 316, 389, 3535, 10531, 14542, 309, 1804, 6315, 7236, 67, 13835, 24899, 22097, 2019, 33, 9499, 18, 1896, 474, 13, 1545, 374, 30, 775, 30, 389, 3535, 18, 4479...
(weburl, url_args, results_in_Home._nbhits), "")
(weburl, url_args, results_in_Home._nbhits))
def search_pattern(req, p=None, f=None, colls=[], m=None, hit_hints=0): """Searches for pattern 'p' and field 'f' and returns dict of recIDs HitLists per each collection in 'colls'. - Optionally, the function accepts the match type argument 'm'. If it is set (e.g. from advanced search interface), then it performs this ...
535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 22850, 6487, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 22850, 6487, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471...
if action.isupper() and action not in self.get_actions(): raise TracError, '%s is not a valid action.' % action
def revoke_permission(self, username, action): """Revokes the permission of the specified user to perform an action.""" # TODO: Validate that this permission does in fact exist if action.isupper() and action not in self.get_actions(): raise TracError, '%s is not a valid action.' % action
c6f3b6c5ccafff9c6f4d03ca41c33c880fbf7ab3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c6f3b6c5ccafff9c6f4d03ca41c33c880fbf7ab3/perm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18007, 67, 9827, 12, 2890, 16, 2718, 16, 1301, 4672, 3536, 10070, 601, 281, 326, 4132, 434, 326, 1269, 729, 358, 3073, 392, 1301, 12123, 468, 2660, 30, 3554, 716, 333, 4132, 1552, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18007, 67, 9827, 12, 2890, 16, 2718, 16, 1301, 4672, 3536, 10070, 601, 281, 326, 4132, 434, 326, 1269, 729, 358, 3073, 392, 1301, 12123, 468, 2660, 30, 3554, 716, 333, 4132, 1552, 316, ...
103590: ' ftbfs@fedoraproject.org',
103590: 'ftbfs@fedoraproject.org', 100460 : 'sindrepb@fedoraproject.org', 102180: 'jesusr@redhat.com',
def __init__(self, baseURL, username=None, password=None, debug=False): super(AccountSystem, self).__init__(baseURL=baseURL, username=username, password=password, debug=debug) # Preseed a list of FAS accounts with bugzilla addresses # This allows us to specify a different email for bugzilla than is # in the FAS db. It...
b789a617db89c50a98db199bea9d063817757d06 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/b789a617db89c50a98db199bea9d063817757d06/fas2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 17480, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 1198, 33, 8381, 4672, 2240, 12, 3032, 3163, 16, 365, 2934, 972, 2738, 972, 12, 1969, 1785, 33, 1969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17480, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 1198, 33, 8381, 4672, 2240, 12, 3032, 3163, 16, 365, 2934, 972, 2738, 972, 12, 1969, 1785, 33, 1969, ...
'factory': getPythonPath(adapter[4][0])
'factory': path, 'factory_url': url
def getRequiredAdapters(self): """Get adapters where this interface is required.""" service = zapi.getService(self.context, 'Adapters') context = removeAllProxies(self.context) adapters = [] for adapter in service.getRegisteredMatching(required=context): adapters.append({ 'provided': getPythonPath(adapter[1]), 'require...
8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19881, 26620, 12, 2890, 4672, 3536, 967, 17272, 1625, 333, 1560, 353, 1931, 12123, 1156, 273, 998, 2425, 18, 588, 1179, 12, 2890, 18, 2472, 16, 296, 26620, 6134, 819, 273, 12787, 21488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19881, 26620, 12, 2890, 4672, 3536, 967, 17272, 1625, 333, 1560, 353, 1931, 12123, 1156, 273, 998, 2425, 18, 588, 1179, 12, 2890, 18, 2472, 16, 296, 26620, 6134, 819, 273, 12787, 21488, ...
MarkerInterface,\
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
comments = ' '.join(value) comments = re.sub('\s{2,}', ' ', comments) comments = re.sub('([a-zA-Z]{1})(- )','\\1', comments)
comments = ' '.join(value) comments = re.sub('\s{2,}', ' ', comments) comments = re.sub('([a-zA-Z]{1})(- )','\\1', comments)
def format_comments(self, value): """Comments are given as 10 separate fields. The algorithm for constructing the final comments value is this: 1. Join the fields, inserting a space between each field. 2. Replace multiple spaces with one space. 3. Collapse hyphenated words, since some of the Colleague data-entry fo...
20eab91c91a9f72ec790d8c5d1fb9261b7b89028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4025/20eab91c91a9f72ec790d8c5d1fb9261b7b89028/formatters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 9231, 12, 2890, 16, 460, 4672, 3536, 9051, 854, 864, 487, 1728, 9004, 1466, 18, 225, 1021, 4886, 364, 27389, 326, 727, 5678, 460, 353, 333, 30, 404, 18, 225, 4214, 326, 1466, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 740, 67, 9231, 12, 2890, 16, 460, 4672, 3536, 9051, 854, 864, 487, 1728, 9004, 1466, 18, 225, 1021, 4886, 364, 27389, 326, 727, 5678, 460, 353, 333, 30, 404, 18, 225, 4214, 326, 1466, ...
self.crc = zlib.crc32("")
self.crc = zlib.crc32("") & 0xffffffffL
def _init_read(self): self.crc = zlib.crc32("") self.size = 0
b89f2d2678f1fca7a4d86c238af02858955efd8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/b89f2d2678f1fca7a4d86c238af02858955efd8e/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 896, 12, 2890, 4672, 365, 18, 22988, 273, 24220, 18, 22988, 1578, 2932, 7923, 473, 374, 28857, 48, 365, 18, 1467, 273, 374, 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, 0, 0, 0, 0, 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, 2738, 67, 896, 12, 2890, 4672, 365, 18, 22988, 273, 24220, 18, 22988, 1578, 2932, 7923, 473, 374, 28857, 48, 365, 18, 1467, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, ...
('product', "specify a product.")):
('product', "specify a product."), ('platform', "specify the platform.")):
def main(): error = False parser = OptionParser( usage="%prog [options]") parser.add_option("--mar-path", action="store", dest="marPath", help="[Required] Specify the absolute path where the MAR file is found.") parser.add_option("--application-ini-file", action="store", dest="applicationIniFile", help="[Required] Spec...
1c1af9bdb54019c5fa27ba31c96ae4f15b46e142 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/1c1af9bdb54019c5fa27ba31c96ae4f15b46e142/generatesnippet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 555, 273, 1083, 2082, 273, 18862, 12, 4084, 11613, 14654, 306, 2116, 4279, 13, 2082, 18, 1289, 67, 3482, 2932, 413, 3684, 17, 803, 3113, 1301, 1546, 2233, 3113, 1570, 1546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 555, 273, 1083, 2082, 273, 18862, 12, 4084, 11613, 14654, 306, 2116, 4279, 13, 2082, 18, 1289, 67, 3482, 2932, 413, 3684, 17, 803, 3113, 1301, 1546, 2233, 3113, 1570, 1546, ...
print "P Pick weight set to %i"%self.dicts[self.stPt]['PWeight']
msg = "P Pick weight set to %i"%self.dicts[self.stPt]['PWeight'] appendTextview(self.textviewStdOut, msg)
def pick(self, event): #import ipdb; ipdb.set_trace() #We want to round from the picking location to #the time value of the nearest time sample: samp_rate = self.streams[self.stPt][0].stats.sampling_rate pickSample = event.xdata * samp_rate pickSample = round(pickSample) pickSample = pickSample / samp_rate # we need th...
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6002, 12, 2890, 16, 871, 4672, 468, 5666, 2359, 1966, 31, 2359, 1966, 18, 542, 67, 5129, 1435, 468, 3218, 2545, 358, 3643, 628, 326, 6002, 310, 2117, 358, 468, 5787, 813, 460, 434, 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, 12, 2890, 16, 871, 4672, 468, 5666, 2359, 1966, 31, 2359, 1966, 18, 542, 67, 5129, 1435, 468, 3218, 2545, 358, 3643, 628, 326, 6002, 310, 2117, 358, 468, 5787, 813, 460, 434, 326...
if not chars: return self.tk.call(self._w, 'column', 'width', col, width) else: return self.tk.call(self._w, 'column', 'width', col, '-char', chars)
if not chars: return self.tk.call(self._w, 'column', 'width', col, width) else: return self.tk.call(self._w, 'column', 'width', col, '-char', chars)
def column_width(self, col=0, width=None, chars=None):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 67, 2819, 12, 2890, 16, 645, 33, 20, 16, 1835, 33, 7036, 16, 5230, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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, 1057, 67, 2819, 12, 2890, 16, 645, 33, 20, 16, 1835, 33, 7036, 16, 5230, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
api_doc.canonical_name is not UNKNOWN):
api_doc.canonical_name not in (None, UNKNOWN)):
def pp_apidoc(api_doc, doublespace=0, depth=5, exclude=(), include=(), backpointers=None): """ @return: A multiline pretty-printed string representation for the given C{APIDoc}. @param doublespace: If true, then extra lines will be inserted to make the output more readable. @param depth: The maximum depth that pp_apido...
f79f1151c9e11128caae386252db1b14aeb334e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/f79f1151c9e11128caae386252db1b14aeb334e7/apidoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8228, 67, 438, 350, 504, 12, 2425, 67, 2434, 16, 31446, 909, 33, 20, 16, 3598, 33, 25, 16, 4433, 33, 9334, 2341, 33, 9334, 1473, 10437, 87, 33, 7036, 4672, 3536, 632, 2463, 30, 432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8228, 67, 438, 350, 504, 12, 2425, 67, 2434, 16, 31446, 909, 33, 20, 16, 3598, 33, 25, 16, 4433, 33, 9334, 2341, 33, 9334, 1473, 10437, 87, 33, 7036, 4672, 3536, 632, 2463, 30, 432, ...
of conductor N. If N is 0, return the total number of curves in the database.
of conductor N. If N is 0, return the total number of isogeny classes of curves in the database.
def number_of_isogeny_classes(self, N=0): """ Returns the number of isogeny classes of curves in the database of conductor N. If N is 0, return the total number of curves in the database.
744afc21f8d5aaa26af78f056bca854defd17092 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/744afc21f8d5aaa26af78f056bca854defd17092/cremona.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 291, 19409, 93, 67, 4701, 12, 2890, 16, 423, 33, 20, 4672, 3536, 2860, 326, 1300, 434, 353, 19409, 93, 3318, 434, 24106, 316, 326, 2063, 434, 356, 1828, 280, 423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 291, 19409, 93, 67, 4701, 12, 2890, 16, 423, 33, 20, 4672, 3536, 2860, 326, 1300, 434, 353, 19409, 93, 3318, 434, 24106, 316, 326, 2063, 434, 356, 1828, 280, 423, ...
packageName = self.packageInfo["Title"] rootFolder = packageName + ".pkg" contFolder = join(rootFolder, "Contents") resourceFolder = join(contFolder, "Resources") os.mkdir(rootFolder)
contFolder = join(self.PackageRootFolder, "Contents") self.packageResourceFolder = join(contFolder, "Resources") os.mkdir(self.PackageRootFolder)
def _makeFolders(self): "Create package folder structure."
d932aaa96ea8845f4755fa2da90712cb71b9e9c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d932aaa96ea8845f4755fa2da90712cb71b9e9c4/buildpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 14885, 12, 2890, 4672, 315, 1684, 2181, 3009, 3695, 1199, 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, ...
[ 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, 389, 6540, 14885, 12, 2890, 4672, 315, 1684, 2181, 3009, 3695, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
fn = osFilenameToFilenameType(message.filename) singleclick.parse_command_line_args([fn])
singleclick.parse_command_line_args([message.filename])
def handle_open_individual_file(self, message): fn = osFilenameToFilenameType(message.filename) singleclick.parse_command_line_args([fn])
626eae8888708e9989c8a7011dd6aa461d046d3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/626eae8888708e9989c8a7011dd6aa461d046d3e/messagehandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3190, 67, 22032, 5557, 67, 768, 12, 2890, 16, 883, 4672, 2295, 273, 1140, 5359, 774, 5359, 559, 12, 2150, 18, 3459, 13, 2202, 7475, 18, 2670, 67, 3076, 67, 1369, 67, 1968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 3190, 67, 22032, 5557, 67, 768, 12, 2890, 16, 883, 4672, 2295, 273, 1140, 5359, 774, 5359, 559, 12, 2150, 18, 3459, 13, 2202, 7475, 18, 2670, 67, 3076, 67, 1369, 67, 1968, ...
Q = str(numpy.array(Q).transpose()) Q = Q.replace(']\n [',';').replace('\n ', '').replace(' ', ',') Q = Q[1:len(Q)-1] adj = pari(Q).qflll()[self.d]
pari_string = '['+';'.join([','.join(["%s"%i for i in row]) for row in zip(*Q)])+']' adj = pari(pari_string).qflll()[self.d]
def __init__(self, F, m, B, a=None): r""" Initialization routine (constructor).
0870d17746fc4dfaa2781fe878deda3182a14f98 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0870d17746fc4dfaa2781fe878deda3182a14f98/totallyreal_rel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 478, 16, 312, 16, 605, 16, 279, 33, 7036, 4672, 436, 8395, 26586, 12245, 261, 12316, 2934, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 478, 16, 312, 16, 605, 16, 279, 33, 7036, 4672, 436, 8395, 26586, 12245, 261, 12316, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return from_cycles(sum([len(c) for c in cycle_list]), cycle_list)
return from_cycles(max([max(c) for c in cycle_list]), cycle_list)
def Permutation(l): """ Convert l to a Permutation, where l is a list of integers, tuple of integers, tuple of tuples of integers, list of tuples of integers, or a string in cycle notation. Tuples are interpreted as cycles; lists of integers as one-line permutation notation. Returns a member of the Permutation class. ...
37399534adb25cbcb02f8e72ff0afeccd9a90f3f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/37399534adb25cbcb02f8e72ff0afeccd9a90f3f/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13813, 9245, 12, 80, 4672, 3536, 4037, 328, 358, 279, 13813, 9245, 16, 1625, 328, 353, 279, 666, 434, 12321, 16, 3193, 434, 12321, 16, 3193, 434, 10384, 434, 12321, 16, 666, 434, 10384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13813, 9245, 12, 80, 4672, 3536, 4037, 328, 358, 279, 13813, 9245, 16, 1625, 328, 353, 279, 666, 434, 12321, 16, 3193, 434, 12321, 16, 3193, 434, 10384, 434, 12321, 16, 666, 434, 10384, ...
print queueDict
def __getPilotOptions(self,queue,pilotsToSubmit): """ Prepare pilot options """ queueDict = self.queueDict[queue]['ParametersDict'] print queueDict vo = gConfig.getValue( "/DIRAC/VirtualOrganization", "unknown" ) if vo == 'unknown': self.log.error('Virtual Organization is not defined in the configuration') return No...
de53db04094ffe536f00b063457d17fbef5ab7b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/de53db04094ffe536f00b063457d17fbef5ab7b7/SiteDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 52, 22797, 1320, 12, 2890, 16, 4000, 16, 84, 330, 6968, 774, 11620, 4672, 3536, 7730, 293, 22797, 702, 3536, 225, 2389, 5014, 273, 365, 18, 4000, 5014, 63, 4000, 23962, 2402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 52, 22797, 1320, 12, 2890, 16, 4000, 16, 84, 330, 6968, 774, 11620, 4672, 3536, 7730, 293, 22797, 702, 3536, 225, 2389, 5014, 273, 365, 18, 4000, 5014, 63, 4000, 23962, 2402, ...
entity.location = Point(self.node_location[1], self.node_location[0], srid=4326)
entity.location = Point(self.node_location, srid=4326)
def endElement(self, name): if name in ('node','way') and self.valid: try: types = self.find_types(self.tags) except ValueError: self.ignore_count += 1 return
49e31fe3ef4aa2a9a8a7861170df02e006c0f7a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/49e31fe3ef4aa2a9a8a7861170df02e006c0f7a6/osm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 309, 508, 316, 7707, 2159, 17023, 1888, 6134, 471, 365, 18, 877, 30, 775, 30, 1953, 273, 365, 18, 4720, 67, 2352, 12, 2890, 18, 4156, 13, 1335, 2068, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 309, 508, 316, 7707, 2159, 17023, 1888, 6134, 471, 365, 18, 877, 30, 775, 30, 1953, 273, 365, 18, 4720, 67, 2352, 12, 2890, 18, 4156, 13, 1335, 2068, ...
- ``ManinSymbol`` - the `i`'th Manin symbol in the list.
``ManinSymbol`` - the `i`'th Manin symbol in the list.
def manin_symbol(self, i): """ Returns the i'th ManinSymbol in this ManinSymbolList.
e265517a575a65b09b817a2b1feaf73c31f0ba93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e265517a575a65b09b817a2b1feaf73c31f0ba93/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3161, 267, 67, 7175, 12, 2890, 16, 277, 4672, 3536, 2860, 326, 277, 1404, 76, 8660, 267, 5335, 316, 333, 8660, 267, 5335, 682, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3161, 267, 67, 7175, 12, 2890, 16, 277, 4672, 3536, 2860, 326, 277, 1404, 76, 8660, 267, 5335, 316, 333, 8660, 267, 5335, 682, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self._int[prec] == '5': for digit in self._int[prec+1:]: if digit != '0': break else: return self._round_down(prec) return self._round_half_up(prec)
if _exact_half(self._int, prec): return -1 else: return self._round_half_up(prec)
def _round_half_down(self, prec): """Round 5 down""" if self._int[prec] == '5': for digit in self._int[prec+1:]: if digit != '0': break else: return self._round_down(prec) return self._round_half_up(prec)
2ec7415db5ad63c4e4b27ee793214071454f6fe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/2ec7415db5ad63c4e4b27ee793214071454f6fe5/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2260, 67, 20222, 67, 2378, 12, 2890, 16, 13382, 4672, 3536, 11066, 1381, 2588, 8395, 309, 365, 6315, 474, 63, 4036, 65, 422, 296, 25, 4278, 364, 8035, 316, 365, 6315, 474, 63, 403...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2260, 67, 20222, 67, 2378, 12, 2890, 16, 13382, 4672, 3536, 11066, 1381, 2588, 8395, 309, 365, 6315, 474, 63, 4036, 65, 422, 296, 25, 4278, 364, 8035, 316, 365, 6315, 474, 63, 403...
host, port = (serv.find(':') == -1 and "%s:%d" % (serv, DEFAULT_PORT) or serv).split(':')
host, port = (':' not in serv and "%s:%d" % (serv, DEFAULT_PORT) or serv).split(':')
def set_job_servers(self, servers, pre_connect = False): """TODO: set job servers, without shutting down dups, and shutting down old ones gracefully""" self.connections = [] for serv in servers: host, port = (serv.find(':') == -1 and "%s:%d" % (serv, DEFAULT_PORT) or serv).split(':') port = int(port) connection = Gearm...
68bc0d3bdf16ddfb7072131ae21fb71a41099312 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14772/68bc0d3bdf16ddfb7072131ae21fb71a41099312/sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4688, 67, 14247, 12, 2890, 16, 7084, 16, 675, 67, 3612, 273, 1083, 4672, 3536, 6241, 30, 444, 1719, 7084, 16, 2887, 24376, 2588, 9417, 87, 16, 471, 24376, 2588, 1592, 5945, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4688, 67, 14247, 12, 2890, 16, 7084, 16, 675, 67, 3612, 273, 1083, 4672, 3536, 6241, 30, 444, 1719, 7084, 16, 2887, 24376, 2588, 9417, 87, 16, 471, 24376, 2588, 1592, 5945, 25...
if not cid.exists():
if not cid:
def perform(self): """ Looks up the consumer id and latest pkg profile info and cals the api to update the consumer profile """ bundle = Consumer() cid = bundle.getid() if not cid.exists(): log.error("Not Registered") return try: cconn = ConsumerConnection(host=cfg.server.host or "localhost", port=cfg.server.port or 44...
e6fb55158ad3be250c84b3dcac6fafef0ca20aee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/e6fb55158ad3be250c84b3dcac6fafef0ca20aee/pulp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 4672, 3536, 10176, 87, 731, 326, 4765, 612, 471, 4891, 3475, 3042, 1123, 471, 276, 1031, 326, 1536, 358, 1089, 326, 4765, 3042, 3536, 3440, 273, 9326, 1435, 7504, 273, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 12, 2890, 4672, 3536, 10176, 87, 731, 326, 4765, 612, 471, 4891, 3475, 3042, 1123, 471, 276, 1031, 326, 1536, 358, 1089, 326, 4765, 3042, 3536, 3440, 273, 9326, 1435, 7504, 273, 34...
to get the L{form<cgi.FieldStorage>} with syntax as::
to get the ``form`` with syntax as::
def pyblosxom_app_factory(global_config, **local_config): """ App factory for paste. """ from paste import cgitb_catcher conf = global_config.copy() conf.update(local_config) conf.update(dict(local_config=local_config, global_config=global_config)) if "configpydir" in conf: sys.path.insert(0, conf["configpydir"]) re...
2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2395, 70, 383, 30319, 362, 67, 2910, 67, 6848, 12, 6347, 67, 1425, 16, 2826, 3729, 67, 1425, 4672, 3536, 4677, 3272, 364, 19401, 18, 3536, 628, 19401, 1930, 276, 6845, 70, 67, 14683, 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, 2395, 70, 383, 30319, 362, 67, 2910, 67, 6848, 12, 6347, 67, 1425, 16, 2826, 3729, 67, 1425, 4672, 3536, 4677, 3272, 364, 19401, 18, 3536, 628, 19401, 1930, 276, 6845, 70, 67, 14683, 2...
self.res_find_all = parent.res_find_all
if isinstance(parent, node_res_dir): self.res_find_all = parent.res_find_all else: self.res_find_all = False
def __init__(self, path, dir_id, parent, context, res_model, res_bo, res_id = None): super(node_res_obj,self).__init__(path, parent,context) assert parent #todo: more info from dirr self.dir_id = dir_id self.mimetype = 'application/x-directory' # 'httpd/unix-directory' self.create_date = parent.create_date # TODO: the ...
0cb5ccb45d72356e72b0fb025b06360d62a3fbf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0cb5ccb45d72356e72b0fb025b06360d62a3fbf6/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 16, 1577, 67, 350, 16, 982, 16, 819, 16, 400, 67, 2284, 16, 400, 67, 1075, 16, 400, 67, 350, 273, 599, 4672, 2240, 12, 2159, 67, 455, 67, 2603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 589, 16, 1577, 67, 350, 16, 982, 16, 819, 16, 400, 67, 2284, 16, 400, 67, 1075, 16, 400, 67, 350, 273, 599, 4672, 2240, 12, 2159, 67, 455, 67, 2603, ...
self.stream.write( "</%s:RDF>\n" % self.namespaces[self.rdfns] )
self.stream.write( "</rdf:RDF>\n" )
def end(self): if self.current_subject != None: self.subject_end() self.stream.write( "</%s:RDF>\n" % self.namespaces[self.rdfns] )
1313813332adaaa3197b56a7142c1558cf12f9f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/1313813332adaaa3197b56a7142c1558cf12f9f2/serializer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 12, 2890, 4672, 309, 365, 18, 2972, 67, 7857, 480, 599, 30, 365, 18, 7857, 67, 409, 1435, 365, 18, 3256, 18, 2626, 12, 6823, 9, 87, 30, 30137, 5333, 82, 6, 738, 365, 18, 16078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 12, 2890, 4672, 309, 365, 18, 2972, 67, 7857, 480, 599, 30, 365, 18, 7857, 67, 409, 1435, 365, 18, 3256, 18, 2626, 12, 6823, 9, 87, 30, 30137, 5333, 82, 6, 738, 365, 18, 16078...
text = replaceExcept(oldtext, categoryR, '', ['nowiki', 'comment', 'math', 'pre'])
text = replaceExcept(oldtext, categoryR, '', ['nowiki', 'comment', 'math', 'pre'])
def replaceCategoryInPlace(oldtext, oldcat, newcat, site = None): """Replaces the category oldcat with the category newcat and then returns the modified Wiki source. """ #Note that this doesn't work yet and it has some very strange side-effects. if site is None: site = getSite() catNamespace = '|'.join(site.category_...
6d2fe36714ef990259922b1b3541eacae5e76130 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/6d2fe36714ef990259922b1b3541eacae5e76130/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 4457, 382, 6029, 12, 1673, 955, 16, 1592, 2574, 16, 394, 2574, 16, 2834, 273, 599, 4672, 3536, 15189, 326, 3150, 1592, 2574, 598, 326, 3150, 394, 2574, 471, 1508, 1135, 326, 4358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1453, 4457, 382, 6029, 12, 1673, 955, 16, 1592, 2574, 16, 394, 2574, 16, 2834, 273, 599, 4672, 3536, 15189, 326, 3150, 1592, 2574, 598, 326, 3150, 394, 2574, 471, 1508, 1135, 326, 4358, ...
msg = 'The operation cannot be completed, probably due to the following:\n' \
msg = inst.pgerror + '\n' msg += 'The operation cannot be completed, probably due to the following:\n' \
def wrapper(self, dbname, *args, **kwargs): try: if not pooler.get_pool(dbname)._ready: raise except_osv('Database not ready', 'Currently, this database is not fully loaded and can not be used.') return f(self, dbname, *args, **kwargs) except orm.except_orm, inst: if inst.name == 'AccessError': self.logger.debug("Acces...
cfd53a3d2a48bf6e26dc38c84422e6795a874bd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/cfd53a3d2a48bf6e26dc38c84422e6795a874bd3/osv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 12, 2890, 16, 18448, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 309, 486, 2845, 264, 18, 588, 67, 6011, 12, 20979, 2934, 67, 1672, 30, 1002, 1335, 67, 538, 90, 2668, 4254, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4053, 12, 2890, 16, 18448, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 309, 486, 2845, 264, 18, 588, 67, 6011, 12, 20979, 2934, 67, 1672, 30, 1002, 1335, 67, 538, 90, 2668, 4254, 4...
Sub(event_type, "public").text = "%s" % self.flagPublicEvent
Sub(event_type, "public").text = "%s" % \ self.checkbuttonPublicEvent.get_active()
def dicts2XML(self): """ Returns information of all dictionaries as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.dictEvent['xmlEventID'] event_type = Sub(xml, "event_type") Sub(event_type, "value").text = "manual" Sub(event_type, "user").text = self.username Sub(event_type, "publi...
4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, 2575, 67, 350, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, 2575, 67, 350, 6, 3...
def N6q(self, p):
def N7q(self, p):
def N6q(self, p): return (1-p[0])*(1+p[2])/8.0
fe068c7d5a9a7a2245d29d05c23d7dc62cec27ce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8645/fe068c7d5a9a7a2245d29d05c23d7dc62cec27ce/TestFIATLagrange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 27, 85, 12, 2890, 16, 293, 4672, 327, 261, 21, 17, 84, 63, 20, 5717, 21556, 21, 15, 84, 63, 22, 5717, 19, 28, 18, 20, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 423, 27, 85, 12, 2890, 16, 293, 4672, 327, 261, 21, 17, 84, 63, 20, 5717, 21556, 21, 15, 84, 63, 22, 5717, 19, 28, 18, 20, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0050char(self): ''' Test Char. ''' char1_id = self.char.create({ 'char': 'Test', }, CONTEXT) self.assert_(char1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3361, 3001, 12, 2890, 4672, 9163, 7766, 3703, 18, 9163, 1149, 21, 67, 350, 273, 365, 18, 3001, 18, 2640, 12590, 296, 3001, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3361, 3001, 12, 2890, 4672, 9163, 7766, 3703, 18, 9163, 1149, 21, 67, 350, 273, 365, 18, 3001, 18, 2640, 12590, 296, 3001, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, ...