rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
pane = evt.GetPane() if pane.name == PANE_NAME:
if evt.GetPane().pane.name == PANE_NAME:
def OnPaneClose(self, evt): """Handles when the pane is closed to update the profile""" pane = evt.GetPane() if pane.name == PANE_NAME: Profile_Set('SHOW_FB', False) self._mi.Check(False) else: evt.Skip()
4d2d5c6e5663d99a3c05e5b2e0520838bb43ee3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/4d2d5c6e5663d99a3c05e5b2e0520838bb43ee3d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 8485, 4605, 12, 2890, 16, 6324, 4672, 3536, 8788, 1347, 326, 13618, 353, 4375, 358, 1089, 326, 3042, 8395, 309, 6324, 18, 967, 8485, 7675, 29009, 18, 529, 422, 453, 1258, 41, 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, 2755, 8485, 4605, 12, 2890, 16, 6324, 4672, 3536, 8788, 1347, 326, 13618, 353, 4375, 358, 1089, 326, 3042, 8395, 309, 6324, 18, 967, 8485, 7675, 29009, 18, 529, 422, 453, 1258, 41, 67, ...
self.lineno = self.lineno + string.count(rawdata[i:i], '\n')
self.lineno = self.lineno + string.count(rawdata[i:k], '\n')
def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: if i > 0: self.__at_start = 0 if self.nomoretags: data = rawdata[i:n] self.handle_data(data) self.lineno = self.lineno + string.count(data, '\n') i = n break res = interesting.search(rawdata, i) if res: j = res.start(0) else: j = n if i ...
0fc2420577cbff31a2dd4f0d8a727fb65f092ab8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0fc2420577cbff31a2dd4f0d8a727fb65f092ab8/xmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 11617, 12, 2890, 16, 679, 4672, 1831, 892, 273, 365, 18, 1899, 892, 277, 273, 374, 290, 273, 562, 12, 1899, 892, 13, 1323, 277, 411, 290, 30, 309, 277, 405, 374, 30, 365, 16186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11617, 12, 2890, 16, 679, 4672, 1831, 892, 273, 365, 18, 1899, 892, 277, 273, 374, 290, 273, 562, 12, 1899, 892, 13, 1323, 277, 411, 290, 30, 309, 277, 405, 374, 30, 365, 16186...
log.error(e) length = 0
try: length = int(self.infoitem.info['video'][0]['length']) except Exception, e: log.error(e) length = 0
def update(self): """ Update the progressbar """ settings = self.settings
34f719efcacfdafb7fb5b5deeb929b02e5f896fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/34f719efcacfdafb7fb5b5deeb929b02e5f896fb/progress_area.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 2315, 326, 31730, 3536, 1947, 273, 365, 18, 4272, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 2315, 326, 31730, 3536, 1947, 273, 365, 18, 4272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
basename += '_' + str(self.__usertag) return basename + '-' + str(self.get_start()) + '-' + \ str(self.get_end() - self.get_start()) + '.xml'
return "HL-INJECTIONS_%s-%d-%d.xml" % (self.__usertag, int(self.get_start()), int(self.get_end() - self.get_start())) else: return "HL-INJECTIONS-%d-%d.xml" % (int(self.get_start()), int(self.get_end() - self.get_start()))
def get_output(self): """ Returns the file name of output from the power code. This must be kept synchronized with the name of the output file in power.c. """ if not self.get_start() or not self.get_end(): raise InjError, "Start time or end time has not been set"
d5894eb89e62b1ffb54c4a94c5806f58cd01ac30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/d5894eb89e62b1ffb54c4a94c5806f58cd01ac30/power.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2844, 12, 2890, 4672, 3536, 2860, 326, 585, 508, 434, 876, 628, 326, 7212, 981, 18, 1220, 1297, 506, 16555, 3852, 598, 326, 508, 434, 326, 876, 585, 316, 7212, 18, 71, 18, 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, 336, 67, 2844, 12, 2890, 4672, 3536, 2860, 326, 585, 508, 434, 876, 628, 326, 7212, 981, 18, 1220, 1297, 506, 16555, 3852, 598, 326, 508, 434, 326, 876, 585, 316, 7212, 18, 71, 18, 3...
print " Note that this mode will cause lots of requests" print " compared to the default method. Can be used with -s, -m or -g."
print " Note that this mode will cause lots of requests compared to the" print " default method. Can be used with -s, -m or -g. Experimental."
def show_help(AndQuit=False): print "Usage: ./fimap.py [options]" print "## Operating Modes:" print " -s , --single Mode to scan a single URL for FI errors." print " Needs URL (-u). This mode is the default." print " -m , --mass Mode for mass scannin...
69be8775ddb9c07162f20438afd597f1fcad8b42 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4412/69be8775ddb9c07162f20438afd597f1fcad8b42/fimap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 5201, 12, 1876, 25365, 33, 8381, 4672, 1172, 315, 5357, 30, 263, 19, 74, 12161, 18, 2074, 306, 2116, 4279, 1172, 315, 1189, 7692, 1776, 490, 1145, 2773, 1172, 315, 282, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5201, 12, 1876, 25365, 33, 8381, 4672, 1172, 315, 5357, 30, 263, 19, 74, 12161, 18, 2074, 306, 2116, 4279, 1172, 315, 1189, 7692, 1776, 490, 1145, 2773, 1172, 315, 282, 300, ...
>>> type(a).__name__ '_Proxy'
Trusted adapters always adapt unproxied objects. If asked to adapt any proxied objects, it will unproxy them and then security-proxy the resulting adapter unless the objects where not security-proxied before.
... def __init__(self, context):
c4df19b7123c032c70b5860013f9a3c864759b7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/c4df19b7123c032c70b5860013f9a3c864759b7f/adapter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if u.has_key("filename"):
if u.has_key("got_first"):
def request(self, args): """Request a file from a server. args are (.sumi filename) or (transport, nick, filename).
c5d6d88a70bc04b4686e1f28220932deb9455788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/c5d6d88a70bc04b4686e1f28220932deb9455788/sumiget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 833, 4672, 3536, 691, 279, 585, 628, 279, 1438, 18, 833, 854, 261, 18, 1364, 77, 1544, 13, 578, 261, 13049, 16, 10909, 16, 1544, 2934, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 833, 4672, 3536, 691, 279, 585, 628, 279, 1438, 18, 833, 854, 261, 18, 1364, 77, 1544, 13, 578, 261, 13049, 16, 10909, 16, 1544, 2934, 2, -100, -100, -100, -100, -...
self.ptmp.r = atoms.r.copy()
self.ptmp.r = self.r.copy()
def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',...
1a55a570d87917cc147bfa837a3336109417cb92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/1a55a570d87917cc147bfa837a3336109417cb92/glbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 284, 4672, 9006, 273, 365, 18, 14937, 365, 18, 15834, 273, 9006, 18, 82, 7369, 17, 22, 468, 775, 30, 9006, 18, 381, 651, 468, 1335, 30, 9006, 18, 381, 651, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2235, 12, 2890, 16, 284, 4672, 9006, 273, 365, 18, 14937, 365, 18, 15834, 273, 9006, 18, 82, 7369, 17, 22, 468, 775, 30, 9006, 18, 381, 651, 468, 1335, 30, 9006, 18, 381, 651, 33, ...
event.Skip()
event.Skip()
def OnSize(self, event): if not Globals.wxApplication.insideSynchronizeFramework: size = event.GetSize() widthMinusLastColumn = 0 assert self.GetColumnCount() > 0, "We're assuming that there is at least one column" for column in xrange (self.GetColumnCount() - 1): widthMinusLastColumn += self.GetColumnWidth (column) la...
03068acfde8af5329914f2e5b11494bc3e58c080 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/03068acfde8af5329914f2e5b11494bc3e58c080/ControlBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1225, 12, 2890, 16, 871, 4672, 309, 486, 18901, 1031, 18, 27226, 3208, 18, 28091, 19298, 554, 13701, 30, 963, 273, 871, 18, 967, 1225, 1435, 1835, 18434, 3024, 1494, 273, 374, 1815...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 1225, 12, 2890, 16, 871, 4672, 309, 486, 18901, 1031, 18, 27226, 3208, 18, 28091, 19298, 554, 13701, 30, 963, 273, 871, 18, 967, 1225, 1435, 1835, 18434, 3024, 1494, 273, 374, 1815...
if self.align == 'center':
if self.align == 'center':
def getx(self, textwidth): if self.align == 'head': return self.offset if self.align == 'foot': return textwidth - self.width if self.align == 'center': return (textwidth-self.width)/2.
7d41e55dca63f9cf8c624b6a2e102e77d191e8fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/7d41e55dca63f9cf8c624b6a2e102e77d191e8fc/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 92, 12, 2890, 16, 977, 2819, 4672, 309, 365, 18, 7989, 422, 296, 1978, 4278, 327, 365, 18, 3348, 309, 365, 18, 7989, 422, 296, 10923, 4278, 327, 977, 2819, 300, 365, 18, 2819, 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, 336, 92, 12, 2890, 16, 977, 2819, 4672, 309, 365, 18, 7989, 422, 296, 1978, 4278, 327, 365, 18, 3348, 309, 365, 18, 7989, 422, 296, 10923, 4278, 327, 977, 2819, 300, 365, 18, 2819, 3...
user_part = self.get_ssh_user() and '%s@' % sef.get_ssh_user() or ''
user_part = self.get_ssh_user() and '%s@' % self.get_ssh_user() or ''
def copy_database(self): print 'Trying to copy .fs-file to a tar-archive. SSH may prompt you for a password' user_part = self.get_ssh_user() and '%s@' % sef.get_ssh_user() or '' database = self.get_selected_db() self.run_cmd('ssh %s%s tar -czf %s -C %s %s' % ( user_part, self.domain, database.tar_name, '/'.join(databas...
2219b59cb8f76220529a48b4aef578d02b5b42c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10152/2219b59cb8f76220529a48b4aef578d02b5b42c6/leechDataFs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6231, 12, 2890, 4672, 1172, 296, 18038, 358, 1610, 263, 2556, 17, 768, 358, 279, 8232, 17, 10686, 18, 9892, 2026, 6866, 1846, 364, 279, 2201, 11, 729, 67, 2680, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6231, 12, 2890, 4672, 1172, 296, 18038, 358, 1610, 263, 2556, 17, 768, 358, 279, 8232, 17, 10686, 18, 9892, 2026, 6866, 1846, 364, 279, 2201, 11, 729, 67, 2680, 273, 365, 18,...
name = node.localName.lower()
name = node.localName if name is None: return name = name.lower()
def visit_element(self, node): name = node.localName.lower() func = getattr(self, "process_" + name, None) if func: func(node) elif name in ('h1', 'h2', 'h3', 'h4', 'h5', 'h6',): self.process_heading(node) elif name in ('ol', 'ul',): self.process_list(node) else: self.process_inline(node)
ed22a44d9323c262ab53eabf6aa4675295a533bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/ed22a44d9323c262ab53eabf6aa4675295a533bd/text_html_text_x_moin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2956, 12, 2890, 16, 756, 4672, 508, 273, 756, 18, 3729, 461, 309, 508, 353, 599, 30, 327, 508, 273, 508, 18, 8167, 1435, 1326, 273, 3869, 12, 2890, 16, 315, 2567, 9548, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2956, 12, 2890, 16, 756, 4672, 508, 273, 756, 18, 3729, 461, 309, 508, 353, 599, 30, 327, 508, 273, 508, 18, 8167, 1435, 1326, 273, 3869, 12, 2890, 16, 315, 2567, 9548, 397...
req[r] = tup
if not req.has_key(r): req[r] = Set() req[r].add(tup)
def returnLeafNodes(self): """returns a list of package tuples (n,a,e,v,r) that are not required by any other package on the system""" req = {} orphan = [] mi = self.dbMatch() if mi is None: # this is REALLY unlikely but let's just say it for the moment return orphan for h in mi: tup = miscutils.pkgTupleFromHeader(h...
4519d60ff4de8ca9eb1b60628106d145963a8a33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/4519d60ff4de8ca9eb1b60628106d145963a8a33/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 9858, 3205, 12, 2890, 4672, 3536, 6154, 279, 666, 434, 2181, 10384, 261, 82, 16, 69, 16, 73, 16, 90, 16, 86, 13, 716, 854, 486, 1931, 635, 1281, 1308, 2181, 603, 326, 2619, 8395...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 327, 9858, 3205, 12, 2890, 4672, 3536, 6154, 279, 666, 434, 2181, 10384, 261, 82, 16, 69, 16, 73, 16, 90, 16, 86, 13, 716, 854, 486, 1931, 635, 1281, 1308, 2181, 603, 326, 2619, 8395...
ae(app.ini, '[credentials]\nsip.foo.com=Z29uem8Ac2Vla3JpdA==\n\nsip.bar.com=Z2F6cGFjaG8AYm93bA==\n\n')
ae(app.ini, '[credentials]\nsip.foo.com=Z29uem8Ac2Vla3JpdA==\nsip.bar.com=Z2F6cGFjaG8AYm93bA==\n')
def test_credcache_set_save(self): ae = self.assertEquals app = DummyApp() c = CredCache(app) ae(c.getCred('sip.foo.com'), None) c.addCred('sip.foo.com', 'gonzo', 'seekrit') ae(c.getCred('sip.foo.com'), ('gonzo', 'seekrit')) c.addCred('sip.bar.com', 'gazpacho', 'soup', save=True) ae(c.getCred('sip.bar.com'), ('gazpacho...
9091698ade204d8fccbca0cddd698bfa377459e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/9091698ade204d8fccbca0cddd698bfa377459e2/test_credcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 20610, 2493, 67, 542, 67, 5688, 12, 2890, 4672, 14221, 273, 365, 18, 11231, 8867, 595, 273, 28622, 3371, 1435, 276, 273, 385, 1118, 1649, 12, 2910, 13, 14221, 12, 71, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20610, 2493, 67, 542, 67, 5688, 12, 2890, 4672, 14221, 273, 365, 18, 11231, 8867, 595, 273, 28622, 3371, 1435, 276, 273, 385, 1118, 1649, 12, 2910, 13, 14221, 12, 71, 18, 588...
else: loopy=addlargs["netboot/packages"]
else: loopy=addlargs["netboot/packages"]
def __init__(self,spec,addlargs): self.valid_values = [ "netboot/kernel/sources", "netboot/kernel/config", "netboot/kernel/prebuilt",
d9c594d523548a205a7cd97d60d6a758b9067c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/d9c594d523548a205a7cd97d60d6a758b9067c4e/netboot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2793, 16, 1289, 80, 1968, 4672, 365, 18, 877, 67, 2372, 273, 306, 315, 2758, 7137, 19, 8111, 19, 10141, 3113, 315, 2758, 7137, 19, 8111, 19, 1425, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2890, 16, 2793, 16, 1289, 80, 1968, 4672, 365, 18, 877, 67, 2372, 273, 306, 315, 2758, 7137, 19, 8111, 19, 10141, 3113, 315, 2758, 7137, 19, 8111, 19, 1425, 3113, ...
parent.AddPage(bSelect=true, imageId=-1, pPage=self.panel1, strText='Containers/Layout') parent.AddPage(bSelect=false, imageId=-1, pPage=self.panel2, strText='Basic Controls') parent.AddPage(bSelect=false, imageId=-1, pPage=self.panel3, strText='Buttons') parent.AddPage(bSelect=false, imageId=-1, pPage=self.panel4, str...
parent.AddPage(select=true, imageId=-1, page=self.panel1, text='Containers/Layout') parent.AddPage(select=false, imageId=-1, page=self.panel2, text='Basic Controls') parent.AddPage(select=false, imageId=-1, page=self.panel3, text='Buttons') parent.AddPage(select=false, imageId=-1, page=self.panel4, text='List Controls'...
def _init_coll_notebook1_Pages(self, parent): # generated method, don't edit
4229533195bac91b120ec6143b90729537eb25f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4229533195bac91b120ec6143b90729537eb25f5/Everything.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 12910, 67, 24422, 21, 67, 5716, 12, 2890, 16, 982, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 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, 389, 2738, 67, 12910, 67, 24422, 21, 67, 5716, 12, 2890, 16, 982, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
log.addHandler(handlers[hand])
log.addHandler(handlers[string.strip(hand)])
def _install_loggers(cp, handlers): """Create and install loggers""" # configure the root first llist = cp.get("loggers", "keys") llist = string.split(llist, ",") llist.remove("root") sectname = "logger_root" root = logging.root log = root opts = cp.options(sectname) if "level" in opts: level = cp.get(sectname, "level...
66a17266206cb70bf07c2df93b3536d3c70a5121 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/66a17266206cb70bf07c2df93b3536d3c70a5121/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 67, 1330, 6215, 12, 4057, 16, 4919, 4672, 3536, 1684, 471, 3799, 18244, 8395, 225, 468, 5068, 326, 1365, 1122, 328, 1098, 273, 3283, 18, 588, 2932, 1330, 6215, 3113, 315, 2452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5425, 67, 1330, 6215, 12, 4057, 16, 4919, 4672, 3536, 1684, 471, 3799, 18244, 8395, 225, 468, 5068, 326, 1365, 1122, 328, 1098, 273, 3283, 18, 588, 2932, 1330, 6215, 3113, 315, 2452...
def get_selCurve_color(selSense, bgcolor=white):
def get_selCurve_color(selSense, bgcolor = white):
def get_selCurve_color(selSense, bgcolor=white): """ Returns line color of the selection curve. Returns <black> for light colored backgrounds (and Sky Blue). Returns <white> for dark colored backgrounds. Returns <red> if <selSense> is DELETE_SELECTION mode. """ if selSense == DELETE_SELECTION: return red color_diff = ...
be7153ce421a674e97de640e3063c3bb1bccf4a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/be7153ce421a674e97de640e3063c3bb1bccf4a9/shape.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1786, 9423, 67, 3266, 12, 1786, 29713, 16, 31509, 273, 9578, 4672, 3536, 2860, 980, 2036, 434, 326, 4421, 8882, 18, 2860, 411, 11223, 34, 364, 9052, 19757, 5412, 87, 261, 464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1786, 9423, 67, 3266, 12, 1786, 29713, 16, 31509, 273, 9578, 4672, 3536, 2860, 980, 2036, 434, 326, 4421, 8882, 18, 2860, 411, 11223, 34, 364, 9052, 19757, 5412, 87, 261, 464, ...
handler_f = getattr(self.handler, maybe_field, None)
handler = self.in_typemapper(type(data), self.anonymous) handler_f = getattr(handler or self.handler, maybe_field, None)
def _model(data, fields=()): """ Models. Will respect the `fields` and/or `exclude` on the handler (see `typemapper`.) """ ret = { } if self.in_typemapper(type(data), self.anonymous) or fields:
2d75f95698cb2d188373c8b095c38f5d7f4a5b28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11777/2d75f95698cb2d188373c8b095c38f5d7f4a5b28/emitters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2284, 12, 892, 16, 1466, 33, 1435, 4672, 3536, 17531, 18, 9980, 8762, 326, 1375, 2821, 68, 471, 19, 280, 1375, 10157, 68, 603, 326, 1838, 261, 5946, 1375, 723, 13919, 8338, 13, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2284, 12, 892, 16, 1466, 33, 1435, 4672, 3536, 17531, 18, 9980, 8762, 326, 1375, 2821, 68, 471, 19, 280, 1375, 10157, 68, 603, 326, 1838, 261, 5946, 1375, 723, 13919, 8338, 13, 35...
vi.pluralequation ='0'
vi.pluralequation = '0'
def create_default_languages(): from pootle_app.core import Language af = Language(code="af") af.fullname = u"Afrikaans" af.specialchars = u"ëïêôûáéíóúý" af.nplurals = '2' af.pluralequation = "(n != 1)" af.save()
705dd9e8bba1245496893550d0b060f0049a0893 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/705dd9e8bba1245496893550d0b060f0049a0893/initdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1886, 67, 14045, 13332, 628, 293, 1632, 298, 67, 2910, 18, 3644, 1930, 9889, 225, 10073, 273, 9889, 12, 710, 1546, 1727, 7923, 10073, 18, 21885, 273, 582, 6, 12664, 566, 7282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1886, 67, 14045, 13332, 628, 293, 1632, 298, 67, 2910, 18, 3644, 1930, 9889, 225, 10073, 273, 9889, 12, 710, 1546, 1727, 7923, 10073, 18, 21885, 273, 582, 6, 12664, 566, 7282, ...
elif (id in idx2id2len[self._index-4] and id in idx2id2len[self._index-5]):
elif (objId in idx2id2len[self._index-4] and objId in idx2id2len[self._index-5]):
def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain...
2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
time_base = 0 if self._value.lstrip('+-').isdigit() else time.time() super(DurationFilter, self).validate() self._value -= time_base
super(DurationFilter, self).validate(duration=True)
def validate(self): """ Validate filter condition (template method). """ time_base = 0 if self._value.lstrip('+-').isdigit() else time.time() super(DurationFilter, self).validate() self._value -= time_base
66ffaac957103fefa1835e46aac39a897a44e302 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4865/66ffaac957103fefa1835e46aac39a897a44e302/matching.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 4672, 3536, 3554, 1034, 2269, 261, 3202, 707, 2934, 3536, 813, 67, 1969, 273, 374, 309, 365, 6315, 1132, 18, 80, 6406, 2668, 15, 6627, 2934, 291, 11052, 1435, 469, 813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 12, 2890, 4672, 3536, 3554, 1034, 2269, 261, 3202, 707, 2934, 3536, 813, 67, 1969, 273, 374, 309, 365, 6315, 1132, 18, 80, 6406, 2668, 15, 6627, 2934, 291, 11052, 1435, 469, 813, ...
setup( comment_file, [] )
setup( comment, [] )
def regression( tag , runner , platform , user , comment_file , toolsets , incremental , mail = None , proxy = None , args = [] ): try: mail_subject = "Boost regression for %s on %s \n" % ( tag, string.split(socket.gethostname(), '.')[0] ) if incremental: update_source( user, tag, proxy, [] ) setup( comment_file, [] )...
6edf412d32c813b91a40fe22b9b1b8cdd281330f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/6edf412d32c813b91a40fe22b9b1b8cdd281330f/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23215, 12, 1047, 269, 8419, 269, 4072, 269, 729, 269, 2879, 67, 768, 269, 5226, 4424, 269, 20649, 269, 4791, 273, 599, 269, 2889, 273, 599, 269, 833, 273, 5378, 262, 30, 225, 775, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23215, 12, 1047, 269, 8419, 269, 4072, 269, 729, 269, 2879, 67, 768, 269, 5226, 4424, 269, 20649, 269, 4791, 273, 599, 269, 2889, 273, 599, 269, 833, 273, 5378, 262, 30, 225, 775, 30, ...
f = self.open(support.TESTFN, "wb") f.write(line*2) f.close() f = self.open(support.TESTFN, "r", encoding="utf-8") s = f.read(prefix_size) self.assertEquals(s, str(prefix, "ascii")) self.assertEquals(f.tell(), prefix_size) self.assertEquals(f.readline(), u_suffix)
with self.open(support.TESTFN, "wb") as f: f.write(line*2) with self.open(support.TESTFN, "r", encoding="utf-8") as f: s = f.read(prefix_size) self.assertEquals(s, str(prefix, "ascii")) self.assertEquals(f.tell(), prefix_size) self.assertEquals(f.readline(), u_suffix)
def test_seeking(self): chunk_size = _default_chunk_size() prefix_size = chunk_size - 2 u_prefix = "a" * prefix_size prefix = bytes(u_prefix.encode("utf-8")) self.assertEquals(len(u_prefix), len(prefix)) u_suffix = "\u8888\n" suffix = bytes(u_suffix.encode("utf-8")) line = prefix + suffix f = self.open(support.TESTFN, ...
3580a04cd41bbddf877db07eab42e5e9af08991e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/3580a04cd41bbddf877db07eab42e5e9af08991e/test_io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16508, 310, 12, 2890, 4672, 2441, 67, 1467, 273, 389, 1886, 67, 6551, 67, 1467, 1435, 1633, 67, 1467, 273, 2441, 67, 1467, 300, 576, 582, 67, 3239, 273, 315, 69, 6, 380, 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, 16508, 310, 12, 2890, 4672, 2441, 67, 1467, 273, 389, 1886, 67, 6551, 67, 1467, 1435, 1633, 67, 1467, 273, 2441, 67, 1467, 300, 576, 582, 67, 3239, 273, 315, 69, 6, 380, 16...
This (mostly) supports the API for Cryptographic Hash Functions (PEP 247).
This supports the API for Cryptographic Hash Functions (PEP 247).
def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ return "".join(map(lambda x, y: chr(ord(x) ^ ord(y)), s1, s2))
f205a3950741fa4a90e905bf7646414ca749552c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f205a3950741fa4a90e905bf7646414ca749552c/hmac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 701, 31346, 12, 87, 21, 16, 272, 22, 4672, 3536, 6497, 707, 18, 28086, 326, 2795, 2064, 272, 21, 471, 272, 22, 261, 11926, 1240, 1967, 769, 2934, 3536, 327, 1408, 18, 5701, 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, 701, 31346, 12, 87, 21, 16, 272, 22, 4672, 3536, 6497, 707, 18, 28086, 326, 2795, 2064, 272, 21, 471, 272, 22, 261, 11926, 1240, 1967, 769, 2934, 3536, 327, 1408, 18, 5701, 12, ...
return ""
start_date = DateTime() end_date = DateTime() IStatusMessage(req).addStatusMessage(msg_date, type='error') obj.setStart_date(start_date) obj.setEnd_date(end_date)
def __call__(self): at_tool = getToolByName(self.context,'archetype_tool') req = self.context.REQUEST uid = req.get('poodle_uid',None) if uid: poodle = at_tool.getObject(uid) else: poodle = self.context.aq_inner
ea0253cbe39f9977f1e0bee74ffa925f9fdb12f0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11878/ea0253cbe39f9977f1e0bee74ffa925f9fdb12f0/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 622, 67, 6738, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 11189, 991, 5872, 67, 6738, 6134, 1111, 273, 365, 18, 2472, 18, 5519, 4555, 273, 1111, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 4672, 622, 67, 6738, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 11189, 991, 5872, 67, 6738, 6134, 1111, 273, 365, 18, 2472, 18, 5519, 4555, 273, 1111, 18, 588...
return self.job.run_if_ready(queue_entry=self)
agent = self.job.run_if_ready(queue_entry=self) if self.job.synch_count == 1 and agent is None: subject = 'Job %s (id %s)' % (self.job.name, self.job.id) message = 'Asynchronous job stuck in Pending' email_manager.manager.enqueue_notify_email(subject, message) return agent
def on_pending(self): """ Called when an entry in a synchronous job has passed verify. If the job is ready to run, returns an agent to run the job. Returns None otherwise. """ self.set_status('Pending') self.get_host().set_status('Pending') return self.job.run_if_ready(queue_entry=self)
420f03f3adeb6320921bc659d1467d534fb5ab9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/420f03f3adeb6320921bc659d1467d534fb5ab9b/monitor_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9561, 12, 2890, 4672, 3536, 11782, 1347, 392, 1241, 316, 279, 12209, 1719, 711, 2275, 3929, 18, 225, 971, 326, 1719, 353, 5695, 358, 1086, 16, 1135, 392, 4040, 358, 1086, 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, 603, 67, 9561, 12, 2890, 4672, 3536, 11782, 1347, 392, 1241, 316, 279, 12209, 1719, 711, 2275, 3929, 18, 225, 971, 326, 1719, 353, 5695, 358, 1086, 16, 1135, 392, 4040, 358, 1086, 326, ...
col.set_sort_order(gtk.SORT_ASCENDING)
col.set_spacing(6) cell.set_fixed_size(-1, 35)
def populateProductDialog(self): self.tv_products = self.subsxml.get_widget("treeview_updates") self.productList = gtk.ListStore(gtk.gdk.Pixbuf, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING) self.warn_count = 0 for product in managerlib.getInstalledProductStatus(): if product[1] in ["Expired", "Not Su...
7dfd9087f4487a8bb74057606ef9d612ad68f05b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/7dfd9087f4487a8bb74057606ef9d612ad68f05b/managergui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 4133, 6353, 12, 2890, 4672, 365, 18, 24161, 67, 18736, 273, 225, 365, 18, 22284, 2902, 18, 588, 67, 6587, 2932, 3413, 1945, 67, 14703, 7923, 365, 18, 5896, 682, 273, 22718, 18, 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, 6490, 4133, 6353, 12, 2890, 4672, 365, 18, 24161, 67, 18736, 273, 225, 365, 18, 22284, 2902, 18, 588, 67, 6587, 2932, 3413, 1945, 67, 14703, 7923, 365, 18, 5896, 682, 273, 22718, 18, 6...
self._write_gui_log(message, detailedmessage, icon, False)
self._write_gui_log(message, detailedmessage, icon, False, False)
def detailed_message(self, message, detailedmessage, icon=None): """ Write detailed message on Gui log widgets.
4a414569da8120e8b09f87848bb8df49c8f5a13e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/943/4a414569da8120e8b09f87848bb8df49c8f5a13e/uigtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6864, 67, 2150, 12, 2890, 16, 883, 16, 6864, 2150, 16, 4126, 33, 7036, 4672, 3536, 2598, 6864, 883, 603, 611, 4881, 613, 10965, 18, 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, 0, 0, 0, 0, 0, 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, 6864, 67, 2150, 12, 2890, 16, 883, 16, 6864, 2150, 16, 4126, 33, 7036, 4672, 3536, 2598, 6864, 883, 603, 611, 4881, 613, 10965, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
if type(cmd) <> types.CodeType:
if type(cmd) != types.CodeType:
def run(self, cmd,globals=None, locals=None, start_stepping = 1): if type(cmd) not in [types.StringType, types.CodeType]: raise TypeError, "Only strings can be run" self.last_cmd_debugged = cmd if start_stepping: self.isInitialBreakpoint = 0 else: self.isInitialBreakpoint = 1 try: if globals is None: import __main__ gl...
178dc1baacddb19a6e10e4b6e0917695ec36fd18 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/178dc1baacddb19a6e10e4b6e0917695ec36fd18/debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1797, 16, 16227, 33, 7036, 16, 8985, 33, 7036, 16, 787, 67, 4119, 1382, 273, 404, 4672, 309, 618, 12, 4172, 13, 486, 316, 306, 2352, 18, 780, 559, 16, 1953, 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, 1086, 12, 2890, 16, 1797, 16, 16227, 33, 7036, 16, 8985, 33, 7036, 16, 787, 67, 4119, 1382, 273, 404, 4672, 309, 618, 12, 4172, 13, 486, 316, 306, 2352, 18, 780, 559, 16, 1953, 18, ...
return len(self._elements) - len(other._elements)
return False
def __cmp__(self, other): r""" Define comparison for finite posets.
005c9d76ebe95b1355f114a9f30279a423f95b63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/005c9d76ebe95b1355f114a9f30279a423f95b63/posets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 13184, 5826, 364, 25922, 949, 2413, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 13184, 5826, 364, 25922, 949, 2413, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for e in self._backend.iterator_out_edges(vertices, labels): yield e for e in self._backend.iterator_in_edges(vertices, labels): yield e
from itertools import chain return chain(self._backend.iterator_out_edges(vertices, labels), self._backend.iterator_in_edges(vertices, labels))
def edge_iterator(self, vertices=None, labels=True, ignore_direction=False): """ Returns an iterator over the edges incident with any vertex given. If the graph is directed, iterates over edges going out only. If vertices is None, then returns an iterator over all edges. If self is directed, returns outgoing edges only...
3875207c794f1335c1064e92087e3fc388d1f10b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3875207c794f1335c1064e92087e3fc388d1f10b/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 5510, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 326, 5231, 22933, 598, 1281, 5253, 864, 18, 971, 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, 3591, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 5510, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 326, 5231, 22933, 598, 1281, 5253, 864, 18, 971, 326,...
print >>self.stdout, "Usage : commands [bnum]\n ...\n end"
print >>self.stdout, "Usage : commands [bnum]\n ..." \ "\n end"
def do_commands(self, arg): """Defines a list of commands associated to a breakpoint Those commands will be executed whenever the breakpoint causes the program to stop execution.""" if not arg: bnum = len(bdb.Breakpoint.bpbynumber)-1 else: try: bnum = int(arg) except: print >>self.stdout, "Usage : commands [bnum]\n ...
f856eefea3958fc4346d1e2b34b70f05aa053bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f856eefea3958fc4346d1e2b34b70f05aa053bdc/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 7847, 12, 2890, 16, 1501, 4672, 3536, 15109, 279, 666, 434, 4364, 3627, 358, 279, 18820, 935, 2584, 4364, 903, 506, 7120, 17334, 326, 18820, 14119, 326, 5402, 358, 2132, 4588, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7847, 12, 2890, 16, 1501, 4672, 3536, 15109, 279, 666, 434, 4364, 3627, 358, 279, 18820, 935, 2584, 4364, 903, 506, 7120, 17334, 326, 18820, 14119, 326, 5402, 358, 2132, 4588, 1...
drawwirecube(self.color, a.molecule.basepos[a.index], rad)
drawwirecube(self.color, a.posn(), rad)
def draw(self, win, dispdef): for a in self.atoms: disp, rad = a.howdraw(dispdef) drawwirecube(self.color, a.molecule.basepos[a.index], rad)
4ed751c847ef6a44d6fc5ccbebd1839106601f58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/4ed751c847ef6a44d6fc5ccbebd1839106601f58/gadgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 16, 5657, 16, 16232, 536, 4672, 364, 279, 316, 365, 18, 14937, 30, 16232, 16, 6719, 273, 279, 18, 13606, 9446, 12, 25453, 536, 13, 3724, 14538, 21186, 12, 2890, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 16, 5657, 16, 16232, 536, 4672, 364, 279, 316, 365, 18, 14937, 30, 16232, 16, 6719, 273, 279, 18, 13606, 9446, 12, 25453, 536, 13, 3724, 14538, 21186, 12, 2890, 18, 326...
if not globalvar.restoreAll
if not globalvar.restoreAll:
def selectQuerySite(self): """Select the site the next query should go out for.""" # How many home-language queries we still have? ### it seems this counts a negative value mycount = max(0, self.counts.get(pywikibot.getSite(), 0)) # Do we still have enough subjects to work on for which the # home language has been retr...
f8690820b1766b16c881dd020e9bddbb84d138f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/f8690820b1766b16c881dd020e9bddbb84d138f5/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 1138, 4956, 12, 2890, 4672, 3536, 3391, 326, 2834, 326, 1024, 843, 1410, 1960, 596, 364, 12123, 468, 9017, 4906, 6382, 17, 4923, 6218, 732, 4859, 1240, 35, 11849, 518, 12001, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1138, 4956, 12, 2890, 4672, 3536, 3391, 326, 2834, 326, 1024, 843, 1410, 1960, 596, 364, 12123, 468, 9017, 4906, 6382, 17, 4923, 6218, 732, 4859, 1240, 35, 11849, 518, 12001, 333, ...
class DBShelf(MutableMapping):
class DBShelf(DictMixin):
def open(filename, flags=db.DB_CREATE, mode=0660, filetype=db.DB_HASH, dbenv=None, dbname=None): """ A simple factory function for compatibility with the standard shleve.py module. It can be used like this, where key is a string and data is a pickleable object: from bsddb import dbshelve db = dbshelve.open(filename) ...
a153bb7be8ee388789a82a0522a279ce9466b8ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/a153bb7be8ee388789a82a0522a279ce9466b8ef/dbshelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 3459, 16, 2943, 33, 1966, 18, 2290, 67, 9344, 16, 1965, 33, 7677, 4848, 16, 18902, 33, 1966, 18, 2290, 67, 15920, 16, 1319, 3074, 33, 7036, 16, 18448, 33, 7036, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 3459, 16, 2943, 33, 1966, 18, 2290, 67, 9344, 16, 1965, 33, 7677, 4848, 16, 18902, 33, 1966, 18, 2290, 67, 15920, 16, 1319, 3074, 33, 7036, 16, 18448, 33, 7036, 4672, 3536, ...
'%(res)s->base = (PyObject*)base',
'%(res)s->base = (PyObject*)%(basename)s',
def statements(lst): return ';\n'.join(lst) + ';'
ded89f6c62470cf3e73c023c61db66e75405a747 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/ded89f6c62470cf3e73c023c61db66e75405a747/elemwise.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6317, 12, 16923, 4672, 327, 296, 9747, 82, 10332, 5701, 12, 16923, 13, 397, 7554, 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, 6317, 12, 16923, 4672, 327, 296, 9747, 82, 10332, 5701, 12, 16923, 13, 397, 7554, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return None, None
return None, None, None, None, None
def compilesuite(suite, major, minor, language, script, fname, basepackage=None): """Generate code for a single suite""" [name, desc, code, level, version, events, classes, comps, enums] = suite modname = identify(name) if len(modname) > 28: modname = modname[:27] fss, ok = macfs.StandardPutFile('Python output file', ...
12b2b76608e7551e3b5ce5c5db98d0b59ff75056 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/12b2b76608e7551e3b5ce5c5db98d0b59ff75056/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1161, 1449, 9519, 12, 30676, 16, 7888, 16, 8439, 16, 2653, 16, 2728, 16, 5299, 16, 1026, 5610, 33, 7036, 4672, 3536, 4625, 981, 364, 279, 2202, 11371, 8395, 306, 529, 16, 3044, 16, 981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1161, 1449, 9519, 12, 30676, 16, 7888, 16, 8439, 16, 2653, 16, 2728, 16, 5299, 16, 1026, 5610, 33, 7036, 4672, 3536, 4625, 981, 364, 279, 2202, 11371, 8395, 306, 529, 16, 3044, 16, 981...
error("package version has trailing dot")
bb.error("package version has trailing dot")
def ververify(myorigval,silent=1): """Returns 1 if given a valid version string, els 0. Valid versions are in the format <v1>.<v2>...<vx>[a-z,_{_package_weights_}[vy]] >>> ververify('2.4.20') 1 >>> ververify('2.4..20') # two dots 0 >>> ververify('2.x.20') # 'x' is not numeric 0 >>> ververify('2.4.20...
8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1924, 8705, 12, 4811, 4949, 1125, 16, 21862, 33, 21, 4672, 3536, 1356, 404, 309, 864, 279, 923, 1177, 533, 16, 7842, 374, 18, 2364, 5244, 854, 316, 326, 740, 225, 411, 90, 21, 18652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1924, 8705, 12, 4811, 4949, 1125, 16, 21862, 33, 21, 4672, 3536, 1356, 404, 309, 864, 279, 923, 1177, 533, 16, 7842, 374, 18, 2364, 5244, 854, 316, 326, 740, 225, 411, 90, 21, 18652, ...
J_general = 2*C*(1/(n*(n-1))*k**(n-1) + kmax**(n-1)/(n-1) - kmin**n/(k*n))
J_general = 2*C*(-1/(n*(n-1))*k**(n-1) + kmax**(n-1)/(n-1) - kmin**n/(k*n))
def J_general_Atype(self, k, C, n): kmin = k[0] kmax = k[-1] if n == 1: J_general = 2*C*(1/n * k**(n-1) - np.log(k) + np.log(kmax) - kmin**n/(k*n)) else: J_general = 2*C*(1/(n*(n-1))*k**(n-1) + kmax**(n-1)/(n-1) - kmin**n/(k*n)) return J_general
8835114af461eead0bc18155baa0d29dfd5df5ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7283/8835114af461eead0bc18155baa0d29dfd5df5ad/analyticsolution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 804, 67, 12259, 67, 37, 723, 12, 2890, 16, 417, 16, 385, 16, 290, 4672, 417, 1154, 273, 417, 63, 20, 65, 417, 1896, 273, 417, 18919, 21, 65, 225, 309, 290, 422, 404, 30, 804, 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, 804, 67, 12259, 67, 37, 723, 12, 2890, 16, 417, 16, 385, 16, 290, 4672, 417, 1154, 273, 417, 63, 20, 65, 417, 1896, 273, 417, 18919, 21, 65, 225, 309, 290, 422, 404, 30, 804, 67, ...
messages = reversed(Message.all().filter('room =', room).order('-timestamp').fetch(70))
messages = [m for m in reversed(Message.all().filter('room =', room).order('-timestamp').fetch(70))] if messages: next_url = 'room/%s/msg/?since=%s' % (room.key(), messages[-1].key()) else: next_url = 'room/%s/msg/' % (room.key())
def get(self, room_key): room = Room.all().filter('__key__ =', Key(room_key)).get() if not room: # room doesn't exist self.error(404) self.response.out.write("no such room") else: account = get_account() roomlist = RoomList.all().filter('account =', account).filter('room =', room).get() roomlist.update_presence() since...
3d6bf0a5f38bceee2f934e63f3b81100e4073e73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14434/3d6bf0a5f38bceee2f934e63f3b81100e4073e73/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 7725, 67, 856, 4672, 7725, 273, 27535, 18, 454, 7675, 2188, 2668, 972, 856, 972, 273, 2187, 1929, 12, 13924, 67, 856, 13, 2934, 588, 1435, 309, 486, 7725, 30, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 7725, 67, 856, 4672, 7725, 273, 27535, 18, 454, 7675, 2188, 2668, 972, 856, 972, 273, 2187, 1929, 12, 13924, 67, 856, 13, 2934, 588, 1435, 309, 486, 7725, 30, 468, ...
""" Set the DataFind node associated with this ScienceSegment to df_node. @param df_node: the DataFind node for this ScienceSegment. """ self.__df_node = df_node def get_df_node(self): """ Returns the DataFind node for this ScienceSegment. """ return self.__df_node
""" Set the DataFind node associated with this ScienceSegment to df_node. @param df_node: the DataFind node for this ScienceSegment. """ self.__df_node = df_node def get_df_node(self): """ Returns the DataFind node for this ScienceSegment. """ return self.__df_node
def set_df_node(self,df_node): """ Set the DataFind node associated with this ScienceSegment to df_node. @param df_node: the DataFind node for this ScienceSegment. """ self.__df_node = df_node
b6f97163685811d18c92b1acbfd3d8b0a1a51b35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/b6f97163685811d18c92b1acbfd3d8b0a1a51b35/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2180, 67, 2159, 12, 2890, 16, 2180, 67, 2159, 4672, 3536, 1000, 326, 1910, 3125, 756, 3627, 598, 333, 2850, 6254, 4131, 358, 3013, 67, 2159, 18, 632, 891, 3013, 67, 2159, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2180, 67, 2159, 12, 2890, 16, 2180, 67, 2159, 4672, 3536, 1000, 326, 1910, 3125, 756, 3627, 598, 333, 2850, 6254, 4131, 358, 3013, 67, 2159, 18, 632, 891, 3013, 67, 2159, 30, ...
return d.keys()
return list(d.keys())
def fill_dict(d, candidates, numentries): d.clear() for i in xrange(numentries): d[Horrid(random.choice(candidates))] = \ Horrid(random.choice(candidates)) return d.keys()
07ff3942a873fc4f84a37a84f6908d74661563e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/07ff3942a873fc4f84a37a84f6908d74661563e5/test_mutants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 67, 1576, 12, 72, 16, 7965, 16, 818, 8219, 4672, 302, 18, 8507, 1435, 364, 277, 316, 12314, 12, 2107, 8219, 4672, 302, 63, 44, 280, 1691, 12, 9188, 18, 11569, 12, 21635, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 67, 1576, 12, 72, 16, 7965, 16, 818, 8219, 4672, 302, 18, 8507, 1435, 364, 277, 316, 12314, 12, 2107, 8219, 4672, 302, 63, 44, 280, 1691, 12, 9188, 18, 11569, 12, 21635, 3719, ...
newdecl = unicode("""<?xml version='1.0' encoding='%s'?>""" % encoding, encoding)
if _debug: sys.stderr.write('successfully created declmatch\n') newdecl = """<?xml version='1.0' encoding='%s'?>""" % encoding if _debug: sys.stderr.write('successfully created newdecl\n')
def _changeEncodingDeclaration(data, encoding): """Changes an XML data stream on the fly to specify a new encoding data is a raw sequence of bytes (not Unicode) that is presumed to be in %encoding already encoding is a string recognized by encodings.aliases """ if _debug: sys.stderr.write('entering _changeEncodingDecl...
972cadc09ab0b2fdf411f1a0962eada0cba30b10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/972cadc09ab0b2fdf411f1a0962eada0cba30b10/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3427, 4705, 6094, 12, 892, 16, 2688, 4672, 3536, 7173, 392, 3167, 501, 1407, 603, 326, 21434, 358, 4800, 279, 394, 2688, 225, 501, 353, 279, 1831, 3102, 434, 1731, 261, 902, 9633, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3427, 4705, 6094, 12, 892, 16, 2688, 4672, 3536, 7173, 392, 3167, 501, 1407, 603, 326, 21434, 358, 4800, 279, 394, 2688, 225, 501, 353, 279, 1831, 3102, 434, 1731, 261, 902, 9633, ...
Initializes base class Arc.
Initializes base class ``Arc``.
def __init__(self, x, y, r1, r2, angle, s1, s2, options): """ Initializes base class Arc.
e24dd3c62ad1f440792ccb94718bf5873e280f2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/e24dd3c62ad1f440792ccb94718bf5873e280f2a/arc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 436, 21, 16, 436, 22, 16, 5291, 16, 272, 21, 16, 272, 22, 16, 702, 4672, 3536, 10188, 3128, 1026, 667, 24881, 18, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 436, 21, 16, 436, 22, 16, 5291, 16, 272, 21, 16, 272, 22, 16, 702, 4672, 3536, 10188, 3128, 1026, 667, 24881, 18, 2, -100, -100, -1...
def perform_validateconf(colID, ln, confirm=0, callback='yes'): """Validation of the configuration of the collections"""
def perform_checkcollectionstatus(colID, ln, confirm=0, callback='yes'): """Check the configuration of the collections."""
def perform_validateconf(colID, ln, confirm=0, callback='yes'): """Validation of the configuration of the collections""" subtitle = """<a name="11"></a>Collections Status""" output = "" colID = int(colID) col_dict = dict(get_def_name('', "collection")) collections = run_sql("SELECT id, name, dbquery, restricted FROM...
c77c596171df6d0086ebd1a934cf45e91f22634e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c77c596171df6d0086ebd1a934cf45e91f22634e/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 1893, 5548, 2327, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 1564, 326, 1664, 434, 326, 6980, 12123, 225, 20281, 273, 3536, 32, 69, 508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 5548, 2327, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 1564, 326, 1664, 434, 326, 6980, 12123, 225, 20281, 273, 3536, 32, 69, 508,...
if not self._need_update() or self.finished:
if not self._need_update():
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(...
69bae1497003b46d8f2f8767ed98775dd0eff8bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5565/69bae1497003b46d8f2f8767ed98775dd0eff8bb/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...
self.hboxlayout8.addWidget(self.Cancel)
self.hboxlayout10.addWidget(self.Cancel)
def setupUi(self, B_Options): B_Options.setObjectName("B_Options") B_Options.resize(QtCore.QSize(QtCore.QRect(0,0,636,443).size()).expandedTo(B_Options.minimumSizeHint()))
008e0df05ed753d1d55252b4acd092705f10e041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/008e0df05ed753d1d55252b4acd092705f10e041/B_Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 605, 67, 1320, 4672, 605, 67, 1320, 18, 542, 16707, 2932, 38, 67, 1320, 7923, 605, 67, 1320, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 605, 67, 1320, 4672, 605, 67, 1320, 18, 542, 16707, 2932, 38, 67, 1320, 7923, 605, 67, 1320, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, ...
An exception is raised when the matrix is not bistochastic::
An exception is raised when the matrix is not positive and bistochastic::
def bistochastic_as_sum_of_permutations(M, check = True): r""" Returns the positive sum of permutations corresponding to the bistochastic matrix. A stochastic matrix is a matrix such that the sum of the elements of any row is equal to 1. A bistochastic matrix is a stochastic matrix whose transpose matrix is also stoch...
adaaa6eed557e04f5741ce0bc7522712d14aa714 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/adaaa6eed557e04f5741ce0bc7522712d14aa714/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 376, 30774, 67, 345, 67, 1364, 67, 792, 67, 457, 29467, 12, 49, 16, 866, 273, 1053, 4672, 436, 8395, 2860, 326, 6895, 2142, 434, 26468, 4656, 358, 326, 324, 376, 30774, 3148, 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, 324, 376, 30774, 67, 345, 67, 1364, 67, 792, 67, 457, 29467, 12, 49, 16, 866, 273, 1053, 4672, 436, 8395, 2860, 326, 6895, 2142, 434, 26468, 4656, 358, 326, 324, 376, 30774, 3148, 18, ...
types_getSiteMaskLogging = [list(StringTypes)+ListType]
types_getSiteMaskLogging = [ list(StringTypes)+[ListType] ]
def export_clearMask(self): """ Clear up the entire site mask """
56ef55b9e07422ad7b17829d0614fdf0876bb6bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/56ef55b9e07422ad7b17829d0614fdf0876bb6bb/WMSAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 8507, 5796, 12, 2890, 4672, 3536, 10121, 731, 326, 7278, 2834, 3066, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 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, 3359, 67, 8507, 5796, 12, 2890, 4672, 3536, 10121, 731, 326, 7278, 2834, 3066, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self._boundary = boundary
if isinstance(boundary,list): self._boundary = boundary
def set_boundary(self, boundary): self._boundary = boundary
191e77a0bf2525c8c088fd2c0fb6301984c87062 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/191e77a0bf2525c8c088fd2c0fb6301984c87062/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 16604, 12, 2890, 16, 7679, 4672, 365, 6315, 16604, 273, 7679, 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, 444, 67, 16604, 12, 2890, 16, 7679, 4672, 365, 6315, 16604, 273, 7679, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.msg('IAC %s not recognized' % `c`)
self.msg('IAC %d not recognized' % ord(opt))
def process_rawq(self): """Transfer from raw queue to cooked queue.
a1052f913ce5c390d6d0ae6d878b4edb6ad7f03a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a1052f913ce5c390d6d0ae6d878b4edb6ad7f03a/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 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, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for j in range(0,length, e):
for j in range(0, length, e):
def inversion_polynomials(self, xi, wi, length): """ Return polynomials to represent the inversion in the AES S-Box.
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 1589, 67, 3915, 13602, 87, 12, 2890, 16, 14087, 16, 16138, 16, 769, 4672, 3536, 2000, 16991, 87, 358, 2406, 326, 316, 1589, 316, 326, 15986, 348, 17, 3514, 18, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 1589, 67, 3915, 13602, 87, 12, 2890, 16, 14087, 16, 16138, 16, 769, 4672, 3536, 2000, 16991, 87, 358, 2406, 326, 316, 1589, 316, 326, 15986, 348, 17, 3514, 18, 2, -100, -100, -100...
self._install(pkg, cs, lk, None, pruneweight, depth)
task = self._install(pkg, cs, lk, None, pruneweight, depth) for res in task: pass
def _upgrade(self, pkgs, changeset, locked, pending, pruneweight, depth=0): depth += 1 trace(2, depth, "_upgrade(%s)", (pkgs))
0a3ab4bfdab2b5f93bf6292cceb0351050047a0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/0a3ab4bfdab2b5f93bf6292cceb0351050047a0d/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15097, 12, 2890, 16, 16922, 16, 22463, 16, 8586, 16, 4634, 16, 846, 318, 359, 1274, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 2606, 12, 22, 16, 3598, 16, 4192, 15097, 9275, 87, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15097, 12, 2890, 16, 16922, 16, 22463, 16, 8586, 16, 4634, 16, 846, 318, 359, 1274, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 2606, 12, 22, 16, 3598, 16, 4192, 15097, 9275, 87, 2...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0060text(self): ''' Test Text. ''' text1_id = self.text.create({ 'text': 'Test', }, CONTEXT) self.assert_(text1_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, 4848, 955, 12, 2890, 4672, 9163, 7766, 3867, 18, 9163, 977, 21, 67, 350, 273, 365, 18, 955, 18, 2640, 12590, 296, 955, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4848, 955, 12, 2890, 4672, 9163, 7766, 3867, 18, 9163, 977, 21, 67, 350, 273, 365, 18, 955, 18, 2640, 12590, 296, 955, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, 1123...
self.ExpectInvalidValue('invalid_route_agency', 'agency_id')
self.Load('invalid_route_agency') self.problems.PopInvalidValue("agency_id", "routes.txt") self.problems.PopInvalidValue("route_id", "trips.txt") self.problems.AssertNoMoreExceptions()
def runTest(self): self.ExpectInvalidValue('invalid_route_agency', 'agency_id')
d76f5eae67ea18518c865c76c0316b6967ae537f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6829/d76f5eae67ea18518c865c76c0316b6967ae537f/testtransitfeed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 12, 2890, 4672, 365, 18, 11988, 1941, 620, 2668, 5387, 67, 5547, 67, 346, 2075, 2187, 296, 346, 2075, 67, 350, 6134, 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, 1086, 4709, 12, 2890, 4672, 365, 18, 11988, 1941, 620, 2668, 5387, 67, 5547, 67, 346, 2075, 2187, 296, 346, 2075, 67, 350, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'logs/trigtotmplt-$(channelname)-$(gpsstarttime)-$(gpsendtime).err')
'logs/trigtotmplt-$(macrochannelname)-$(macrogpsstarttime)-$(macrogpsendtime).err')
def __init__(self,cp): """ cp = ConfigParser object from which options are read. """ self.__executable = cp.get('condor','trigtotmplt') self.__universe = 'scheduler' pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) for sec in ['trigtotmplt']: self.add_ini_ar...
da76b55f54fb3d4c9ec554ca55e7b71a6bbea267 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/da76b55f54fb3d4c9ec554ca55e7b71a6bbea267/inspiral.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4057, 4672, 3536, 3283, 273, 25076, 733, 628, 1492, 702, 854, 855, 18, 3536, 365, 16186, 17751, 273, 3283, 18, 588, 2668, 10013, 280, 17023, 313, 360, 3307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4057, 4672, 3536, 3283, 273, 25076, 733, 628, 1492, 702, 854, 855, 18, 3536, 365, 16186, 17751, 273, 3283, 18, 588, 2668, 10013, 280, 17023, 313, 360, 3307...
def removeFile(self,lfn):
def removeFile( self, lfn ):
def removeFile(self,lfn): """ Remove the file (all replicas) from Storage Elements and file catalogue
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 365, 16, 328, 4293, 262, 30, 3536, 3581, 326, 585, 261, 454, 21545, 13, 628, 5235, 17219, 471, 585, 20833, 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, 1206, 812, 12, 365, 16, 328, 4293, 262, 30, 3536, 3581, 326, 585, 261, 454, 21545, 13, 628, 5235, 17219, 471, 585, 20833, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pass
self.emit('title-change', self.get_window_title())
def on_vte_focus(self, widget): # FIXME: Implement this pass
c647948a7fe81768afb7a383769e16ee7aac44bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/c647948a7fe81768afb7a383769e16ee7aac44bc/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 90, 736, 67, 13923, 12, 2890, 16, 3604, 4672, 468, 9852, 30, 10886, 333, 1342, 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, 603, 67, 90, 736, 67, 13923, 12, 2890, 16, 3604, 4672, 468, 9852, 30, 10886, 333, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
label = wx.StaticText(self, -1, _(u'Master pass&word:'))
if changing: message = _(u'New master pass&word:') else: message = _(u'Master pass&word:') label = wx.StaticText(self, -1, message)
def __init__(self, changing, view, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE): """ constructor @param changing: Should be true if you are changing the master password. Otherwise you will be creating the master password. """ # Instead of calling wx.Dialog.__init__ we precreate the dialo...
1045d21bb69ccefdda66fd64d096e18194acc1b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/1045d21bb69ccefdda66fd64d096e18194acc1b0/MasterPassword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 12770, 16, 1476, 16, 963, 33, 27226, 18, 1868, 1225, 16, 949, 33, 27226, 18, 1868, 2555, 16, 2154, 33, 27226, 18, 5280, 67, 2565, 18683, 67, 15066, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12770, 16, 1476, 16, 963, 33, 27226, 18, 1868, 1225, 16, 949, 33, 27226, 18, 1868, 2555, 16, 2154, 33, 27226, 18, 5280, 67, 2565, 18683, 67, 15066, 4672,...
elif self.current_keystrokes:
elif self.root.current_level != self.root and not self.root.processing_esc_digit:
def OnChar(self, evt): """Character event processor that handles everything not recognized by the menu or keyboard events. """ dprint("char=%s, unichar=%s, multiplier=%d, id=%s" % (evt.GetKeyCode(), evt.GetUnicodeKey(), self.root.repeat_value, evt.GetId())) if self.root.quoted_next: # Short circuit this character so th...
06dbd30848e3f3b419df2c1574810e7baa52289b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/06dbd30848e3f3b419df2c1574810e7baa52289b/multikey.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2156, 12, 2890, 16, 6324, 4672, 3536, 7069, 871, 6659, 716, 7372, 7756, 486, 16332, 635, 326, 3824, 578, 16263, 2641, 18, 3536, 302, 1188, 2932, 3001, 5095, 87, 16, 640, 1354, 297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 2156, 12, 2890, 16, 6324, 4672, 3536, 7069, 871, 6659, 716, 7372, 7756, 486, 16332, 635, 326, 3824, 578, 16263, 2641, 18, 3536, 302, 1188, 2932, 3001, 5095, 87, 16, 640, 1354, 297,...
current_lang = locale.getlocale(locale.LC_TIME)[0] if current_lang: self.__lang = current_lang else: current_lang = locale.getdefaultlocale()[0] if current_lang: self.__lang = current_lang else: self.__lang = ''
self.__lang = _getlang()
def __calc_lang(self): # Set self.__lang by using locale.getlocale() or # locale.getdefaultlocale(). If both turn up empty, set the attribute # to ''. This is to stop calls to this method and to make sure # strptime() can produce an re object correctly. current_lang = locale.getlocale(locale.LC_TIME)[0] if current_la...
4fe325560fa86dd8f551af9bf0a13259a862c5ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4fe325560fa86dd8f551af9bf0a13259a862c5ed/_strptime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12448, 67, 4936, 12, 2890, 4672, 468, 1000, 365, 16186, 4936, 635, 1450, 2573, 18, 588, 6339, 1435, 578, 468, 2573, 18, 588, 1886, 6339, 7675, 225, 971, 3937, 7005, 731, 1008, 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, 1001, 12448, 67, 4936, 12, 2890, 4672, 468, 1000, 365, 16186, 4936, 635, 1450, 2573, 18, 588, 6339, 1435, 578, 468, 2573, 18, 588, 1886, 6339, 7675, 225, 971, 3937, 7005, 731, 1008, 16, ...
def write_albumart(tags, metadata, name): if tags.tags: images = tags.tags.getall('APIC') if len(images) == 0: return
def write_albumart(image_tag, metadata): if not image_tag: return image_file = os.path.join(cache_folder, cache_hash + ".orig") image_file_scaled = os.path.join(cache_folder, cache_hash + ".jpeg") with open(image_file, "w") as image: image.write(image_tag.data) try: subprocess.call(["convert", "-resize", "96x96", im...
def write_albumart(tags, metadata, name): if tags.tags: images = tags.tags.getall('APIC') if len(images) == 0: return image_file = os.path.join(cache_folder, cache_hash + ".orig") image_file_scaled = os.path.join(cache_folder, cache_hash + ".jpeg") with open(image_file, "w") as image: image.write(images[0].data) try...
d66a66ecfc62e3b2e2ee434d2eb99bd3d2d98dc4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13015/d66a66ecfc62e3b2e2ee434d2eb99bd3d2d98dc4/get_metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 25090, 485, 12, 2730, 67, 2692, 16, 1982, 4672, 309, 486, 1316, 67, 2692, 30, 327, 225, 1316, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2493, 67, 5609, 16, 1247, 67, 2816,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 25090, 485, 12, 2730, 67, 2692, 16, 1982, 4672, 309, 486, 1316, 67, 2692, 30, 327, 225, 1316, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2493, 67, 5609, 16, 1247, 67, 2816,...
continue
system['skip'] = True if options.debug: raise continue
def schedule_actions(key, systems): '''Schedules GPG key install, package install, and "smbios-sys-info" action on clients''' gpg_script = '''
a505c3724245a7ab265bfa6c2d81e21adace87b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/a505c3724245a7ab265bfa6c2d81e21adace87b1/dell-satellite-sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4788, 67, 4905, 12, 856, 16, 14908, 4672, 9163, 27073, 28378, 498, 3799, 16, 2181, 3799, 16, 471, 315, 87, 1627, 7441, 17, 9499, 17, 1376, 6, 1301, 603, 7712, 26418, 22544, 67, 4263, 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, 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, 4788, 67, 4905, 12, 856, 16, 14908, 4672, 9163, 27073, 28378, 498, 3799, 16, 2181, 3799, 16, 471, 315, 87, 1627, 7441, 17, 9499, 17, 1376, 6, 1301, 603, 7712, 26418, 22544, 67, 4263, 2...
if ext in self.swig_ext():
if ext == ".i":
def swig_sources (self, sources):
846b2acc9d9f16a98442a18d6426da1dfd8ceccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/846b2acc9d9f16a98442a18d6426da1dfd8ceccc/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 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, ...
[ 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, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 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...
reason = "Ice.ConnectTimeoutException:%" % str(ctr)
reason = "Ice.ConnectTimeoutException:%s" % str(cte)
def createSession(self, username=None, password=None): """ Performs the actual logic of logging in, which is done via the getRouter(). Disallows an extant ServiceFactoryPrx, and tries to re-create a null Ice.Communicator. A null or empty username will throw an exception, but an empty password is allowed. """ import ome...
e4ef73406486f02f3bb105de1d3be42964450b6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/e4ef73406486f02f3bb105de1d3be42964450b6d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2157, 12, 2890, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 4672, 3536, 27391, 326, 3214, 4058, 434, 2907, 316, 16, 1492, 353, 2731, 3970, 326, 4170, 14068, 7675, 3035, 5965, 87, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2157, 12, 2890, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 4672, 3536, 27391, 326, 3214, 4058, 434, 2907, 316, 16, 1492, 353, 2731, 3970, 326, 4170, 14068, 7675, 3035, 5965, 87, 392, ...
if roots == []: continue if random.random() < 0.5: y = roots[0][0] else: y = roots[1][0] return self([x,y])
n = len(roots) if n: y = roots[random.randint(0,n-1)][0] return self([x,y])
def random_element(self): """ Returns a random point on this elliptic curve.
2b5ec4e766e51aaa49c3436a2a1510587a756528 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2b5ec4e766e51aaa49c3436a2a1510587a756528/ell_finite_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 67, 2956, 12, 2890, 4672, 3536, 2860, 279, 2744, 1634, 603, 333, 415, 549, 21507, 8882, 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, ...
[ 1, 1, 1, 1, 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, 2744, 67, 2956, 12, 2890, 4672, 3536, 2860, 279, 2744, 1634, 603, 333, 415, 549, 21507, 8882, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def getfollowuptrigs(numtrigs,page,coincs=None,missed=None):
def getfollowuptrigs(numtrigs,page,coincs=None,missed=None,search=None):
def getfollowuptrigs(numtrigs,page,coincs=None,missed=None): followups = [] if coincs: sim = None try: sim = isinstance(coincs[0].sim,lsctables.SimInspiral) except: pass if sim: coincs.sort(False) # This does an ascending sort instead for found inj else: coincs.sort() numTrigs = 0 for ckey in coincs: numTrigs += 1 if ...
15a5d653627dd6482d1cbe9c5cdf866130717e3a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/15a5d653627dd6482d1cbe9c5cdf866130717e3a/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 14641, 416, 313, 360, 87, 12, 2107, 313, 360, 87, 16, 2433, 16, 12645, 2143, 33, 7036, 16, 11173, 730, 33, 7036, 16, 3072, 33, 7036, 4672, 225, 2805, 18294, 273, 5378, 309, 13170,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14641, 416, 313, 360, 87, 12, 2107, 313, 360, 87, 16, 2433, 16, 12645, 2143, 33, 7036, 16, 11173, 730, 33, 7036, 16, 3072, 33, 7036, 4672, 225, 2805, 18294, 273, 5378, 309, 13170,...
self.connect("formatted_" + name_prefix + member_name, member_path + ".:(format)", **route_options)
self.connect("formatted_" + name_prefix + member_name, member_path + ".:(format)", **route_options)
def requirements_for(meth): """Returns a new dict to be used for all route creation as the route options""" opts = options.copy() if method != 'any': opts['conditions'] = {'method':[meth.upper()]} return opts
52ae2d9eaabbf5ff009086347bb090d7048fa505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/52ae2d9eaabbf5ff009086347bb090d7048fa505/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, ...
data = StringIO.StringIO() zipf = zipfile.ZipFile(data, mode="w") zipf.writestr("foo.txt", "O, for a Muse of Fire!") zipf.close() zipf = zipfile.ZipFile(data, mode="r") zipf.close() try: zipf.testzip() except RuntimeError: pass else: raise TestFailed("expected calling .testzip on a closed ZipFile" " to raise a Run...
if __name__ == "__main__": test_main()
def zipTest(f, compression, srccontents): zip = zipfile.ZipFile(f, "w", compression) # Create the ZIP archive zip.write(srcname, "another"+os.extsep+"name") zip.write(srcname, srcname) zip.close() zip = zipfile.ZipFile(f, "r", compression) # Read the ZIP archive readData2 = zip.read(srcname) readData1 = zip.read("...
f51eab5da1d45826c2db27f13ed719eae8fe5c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f51eab5da1d45826c2db27f13ed719eae8fe5c8a/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3144, 4709, 12, 74, 16, 9154, 16, 1705, 3980, 4672, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 91, 3113, 9154, 13, 282, 468, 1788, 326, 18277, 5052, 3144, 18, 2626, 12, 4816, 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, 3144, 4709, 12, 74, 16, 9154, 16, 1705, 3980, 4672, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 91, 3113, 9154, 13, 282, 468, 1788, 326, 18277, 5052, 3144, 18, 2626, 12, 4816, 529, ...
self.todo[url].append(origin)
if origin not in self.todo[url]: self.todo[url].append(origin)
def newtodolink(self, url, origin):
5445e352b244db461527b895255328eaa1a7dc6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5445e352b244db461527b895255328eaa1a7dc6f/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 88, 369, 355, 754, 12, 2890, 16, 880, 16, 4026, 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, ...
[ 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, 394, 88, 369, 355, 754, 12, 2890, 16, 880, 16, 4026, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print " %s.%s" % (c.__name__, f)
print " %s.%s" % (c.__name__, fmt)
def run(format, VERBOSE=0): formats = string.split(format, ',') for i in range(0, len(formats)): formats[i] == string.lower(string.strip(formats[i])) allfiles = glob.glob('*.py') allfiles.sort() for fn in allfiles: f = string.split(fn, '.')[0] c = getclass(f) if c != None: print c.__name__ try: for f in formats: if f: ...
8f064fe4226fe497b8c5b6e3f182d7d2d37ccc00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8f064fe4226fe497b8c5b6e3f182d7d2d37ccc00/runall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2139, 16, 27857, 33, 20, 4672, 6449, 273, 533, 18, 4939, 12, 2139, 16, 3316, 13, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 11962, 3719, 30, 6449, 63, 77, 65, 422, 533, 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, 1086, 12, 2139, 16, 27857, 33, 20, 4672, 6449, 273, 533, 18, 4939, 12, 2139, 16, 3316, 13, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 11962, 3719, 30, 6449, 63, 77, 65, 422, 533, 18...
def OpenLogFile(self, event, noLog):
def TestForNoLog(self, event): '''This function returns False if the process name associated with an event is listed in the noLog option, and True otherwise.''' self.processName = self.GetProcessNameFromHwnd(event.Window) if self.options.noLog != None: for path in self.options.noLog: if os.stat(path) == os.stat(self.p...
def OpenLogFile(self, event, noLog): filter=r"[\\\/\:\*\?\"\<\>\|]+" #regexp filter for the non-allowed characters in windows filenames. subDirName = self.GetProcessNameFromHwnd(event.Window) #our subdirname is the full path of the process owning the hwnd. if noLog != None: for path in noLog: #...
dfb99526964aa03afee28899fea5ce92dc6c5039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3638/dfb99526964aa03afee28899fea5ce92dc6c5039/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 1290, 2279, 1343, 12, 2890, 16, 871, 4672, 9163, 2503, 445, 1135, 1083, 309, 326, 1207, 508, 3627, 598, 392, 871, 353, 12889, 316, 326, 1158, 1343, 1456, 16, 471, 1053, 3541, 1093,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7766, 1290, 2279, 1343, 12, 2890, 16, 871, 4672, 9163, 2503, 445, 1135, 1083, 309, 326, 1207, 508, 3627, 598, 392, 871, 353, 12889, 316, 326, 1158, 1343, 1456, 16, 471, 1053, 3541, 1093,...
assert(actual_to == to) assert(flag == 3)
self.assertEqual(actual_to, to) self.assertEqual(flag, 3)
def test_quad_curve_to(self): gc = agg.GraphicsContextArray((100,100)) ctrl = 1.0,1.0 to = 2.0,2.0 gc.quad_curve_to(ctrl[0],ctrl[1],to[0],to[1]) path = gc._get_path() actual_ctrl, flag = path._vertex() assert(actual_ctrl == ctrl) assert(flag == 3) actual_to, flag = path._vertex() assert(actual_to == to) assert(flag == ...
e47282ce7056af747cbd7b863b37854c3c1dd9d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/e47282ce7056af747cbd7b863b37854c3c1dd9d6/graphics_context_test_case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 21733, 67, 16683, 67, 869, 12, 2890, 4672, 8859, 273, 10421, 18, 17558, 1042, 1076, 12443, 6625, 16, 6625, 3719, 6414, 273, 404, 18, 20, 16, 21, 18, 20, 358, 273, 576, 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, 1842, 67, 21733, 67, 16683, 67, 869, 12, 2890, 4672, 8859, 273, 10421, 18, 17558, 1042, 1076, 12443, 6625, 16, 6625, 3719, 6414, 273, 404, 18, 20, 16, 21, 18, 20, 358, 273, 576, 18, ...
""" called when a contact goes offline. @param userHandle: the contact's user handle """ pass
""" Called when a contact goes offline. By default this method will update the status attribute of the contact stored on the factory. @param userHandle: the contact's user handle """ self.factory.contacts.getContact(userHandle).status = STATUS_OFFLINE
def contactOffline(self, userHandle): """ called when a contact goes offline.
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5388, 23106, 12, 2890, 16, 729, 3259, 4672, 3536, 2566, 1347, 279, 5388, 13998, 13493, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5388, 23106, 12, 2890, 16, 729, 3259, 4672, 3536, 2566, 1347, 279, 5388, 13998, 13493, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
c.fs = ckan.forms.get_group_fieldset().bind(group, data=params or None)
fs = ckan.forms.get_group_fieldset(is_admin=auth_for_change_state) c.fs = fs.bind(group, data=params or None)
def edit(self, id=None): # allow id=None to allow posting c.error = '' group = model.Group.by_name(id) if group is None: abort(404, '404 Not Found') am_authz = self.authorizer.am_authorized(c, model.Action.EDIT, group) if not am_authz: abort(401, gettext('User %r not authorized to edit %r') % (c.user, id)) auth_for_ch...
dda7c220ffa79091fdc38ec2c2abb85b805789d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/dda7c220ffa79091fdc38ec2c2abb85b805789d0/group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 612, 33, 7036, 4672, 468, 1699, 612, 33, 7036, 358, 1699, 1603, 310, 276, 18, 1636, 273, 875, 1041, 273, 938, 18, 1114, 18, 1637, 67, 529, 12, 350, 13, 309, 1041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3874, 12, 2890, 16, 612, 33, 7036, 4672, 468, 1699, 612, 33, 7036, 358, 1699, 1603, 310, 276, 18, 1636, 273, 875, 1041, 273, 938, 18, 1114, 18, 1637, 67, 529, 12, 350, 13, 309, 1041,...
originalFileIDs,ignore = res['Value']
originalFileIDs, ignore = res['Value']
def getTransformationFiles(self,condDict={},older=None, newer=None, timeStamp='LastUpdate', orderAttribute=None, limit=None,connection=False): """ Get files for the supplied transformations with support for the web standard structure """ connection = self.__getConnection(connection) req = "SELECT %s FROM Transformation...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15292, 2697, 12, 2890, 16, 10013, 5014, 28793, 1498, 33, 7036, 16, 16069, 33, 7036, 16, 18198, 2218, 3024, 1891, 2187, 1353, 1499, 33, 7036, 16, 1800, 33, 7036, 16, 4071, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15292, 2697, 12, 2890, 16, 10013, 5014, 28793, 1498, 33, 7036, 16, 16069, 33, 7036, 16, 18198, 2218, 3024, 1891, 2187, 1353, 1499, 33, 7036, 16, 1800, 33, 7036, 16, 4071, 33, 8381, ...
serverNo = string.atoi(md5[-4:], 16) % Configuration.numServers
serverNo = int(md5[-4:], 16) % Configuration.numServers
def _genCachedComponentPath( name, argDict ): d = argDict.copy() name = _fixPath('', name) md5, fullkey = cacheKey.cachekey.genCacheKey( d ) if Configuration.numServers: serverNo = string.atoi(md5[-4:], 16) % Configuration.numServers if _serverFailover.get(serverNo, 0) == 0: return "%s/%s/%s/%s/%s/%s.cache" % ( Config...
3f031411436fef08f8068225d85a415e1b6c2981 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/3f031411436fef08f8068225d85a415e1b6c2981/Cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 9839, 1841, 743, 12, 508, 16, 1501, 5014, 262, 30, 302, 273, 1501, 5014, 18, 3530, 1435, 508, 273, 389, 904, 743, 2668, 2187, 508, 13, 3481, 25, 16, 1983, 856, 273, 9097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4507, 9839, 1841, 743, 12, 508, 16, 1501, 5014, 262, 30, 302, 273, 1501, 5014, 18, 3530, 1435, 508, 273, 389, 904, 743, 2668, 2187, 508, 13, 3481, 25, 16, 1983, 856, 273, 9097, ...
descr='check add user with --firstname and --lastname (avoid
descr='''check add user with --firstname and --lastname (avoid '''
def chk_acls_cmds(dir): return [ 'getfacl', '-R', dir ]
38a496a61795ec7fb8b2f6589579ac75d0b90d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/38a496a61795ec7fb8b2f6589579ac75d0b90d9d/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15000, 67, 69, 6429, 67, 24680, 12, 1214, 4672, 327, 306, 296, 588, 507, 830, 2187, 2400, 54, 2187, 1577, 308, 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, 15000, 67, 69, 6429, 67, 24680, 12, 1214, 4672, 327, 306, 296, 588, 507, 830, 2187, 2400, 54, 2187, 1577, 308, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cospectral graphs.
cospectral graphs (lists of cadinality 1 being omitted).
def cospectral_graphs(self, vertices, matrix_function=lambda g: g.adjacency_matrix(), graphs=None): """ Find all sets of graphs on ``vertices`` vertices (with possible restrictions) which are cospectral with respect to a constructed matrix.
d1883d40a558a65b91073fd643c1cd00012a28d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d1883d40a558a65b91073fd643c1cd00012a28d3/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4987, 21449, 67, 30016, 12, 2890, 16, 6928, 16, 3148, 67, 915, 33, 14661, 314, 30, 314, 18, 13829, 1077, 2075, 67, 5667, 9334, 19422, 33, 7036, 4672, 3536, 4163, 777, 1678, 434, 19422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4987, 21449, 67, 30016, 12, 2890, 16, 6928, 16, 3148, 67, 915, 33, 14661, 314, 30, 314, 18, 13829, 1077, 2075, 67, 5667, 9334, 19422, 33, 7036, 4672, 3536, 4163, 777, 1678, 434, 19422, ...
line(out, indent + 1, returnValue(cls, returnType, 'result'))
if generics: line(out, indent + 1, returnValue(cls, returnType, 'result', method.getGenericReturnType())) else: line(out, indent + 1, returnValue(cls, returnType, 'result'))
def python(env, out_h, out, cls, superCls, names, superNames, constructors, methods, protectedMethods, fields, instanceFields, mapping, sequence, rename, declares, typeset, moduleName, generics): line(out_h) line(out_h, 0, '#include <Python.h>') line(out_h) indent = 0 for name in names[:-1]: line(out_h, indent, 'name...
0e29457d624c8aaca550e4f7450aa61eea9d300b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6913/0e29457d624c8aaca550e4f7450aa61eea9d300b/python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5790, 12, 3074, 16, 596, 67, 76, 16, 596, 16, 2028, 16, 2240, 20822, 16, 1257, 16, 2240, 1557, 16, 19874, 16, 2590, 16, 4750, 4712, 16, 1466, 16, 791, 2314, 16, 2874, 16, 3102, 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, 5790, 12, 3074, 16, 596, 67, 76, 16, 596, 16, 2028, 16, 2240, 20822, 16, 1257, 16, 2240, 1557, 16, 19874, 16, 2590, 16, 4750, 4712, 16, 1466, 16, 791, 2314, 16, 2874, 16, 3102, 16, ...
def get_typed_tag_value (v):
def get_typed_tag_value(v):
def get_typed_tag_value (v): """Uses some simple rules to extract simple typed values from strings. Specifically: true and t (any case) return True (boolean) false and f (any case) return False (boolean) simple integers (possibly signed) are returned as ints simple floats (possibly signed) are returned as floats (suppo...
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11585, 67, 2692, 67, 1132, 12, 90, 4672, 3536, 15128, 2690, 4143, 2931, 358, 2608, 4143, 9092, 924, 628, 2064, 18, 23043, 1230, 30, 638, 471, 268, 261, 2273, 648, 13, 327, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11585, 67, 2692, 67, 1132, 12, 90, 4672, 3536, 15128, 2690, 4143, 2931, 358, 2608, 4143, 9092, 924, 628, 2064, 18, 23043, 1230, 30, 638, 471, 268, 261, 2273, 648, 13, 327, 105...
if value.startswith('also '):
if value.startswith('also ') or value.startswith('also:'):
def factoid_add(self, text, channel, editor): db = self.get_db(channel) cs = db.cursor()
7fa00d759e7df7be9549833a4afc6ed6457ef9a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3105/7fa00d759e7df7be9549833a4afc6ed6457ef9a5/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5410, 839, 67, 1289, 12, 2890, 16, 977, 16, 1904, 16, 4858, 4672, 1319, 273, 365, 18, 588, 67, 1966, 12, 4327, 13, 2873, 273, 1319, 18, 9216, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 5410, 839, 67, 1289, 12, 2890, 16, 977, 16, 1904, 16, 4858, 4672, 1319, 273, 365, 18, 588, 67, 1966, 12, 4327, 13, 2873, 273, 1319, 18, 9216, 1435, 2, -100, -100, -100, -100, -100, -...
a = C() b = C()
a = Boom() b = Boom()
def test_boom(): a = C() b = C() a.attr = b b.attr = a gc.collect() garbagelen = len(gc.garbage) del a, b # a<->b are in a trash cycle now. Collection will invoke C.__getattr__ # (to see whether a and b have __del__ methods), and __getattr__ deletes # the internal "attr" attributes as a side effect. That causes the ...
bf384c256e0513eba7bc59cc5f8fa36b34c62c96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/bf384c256e0513eba7bc59cc5f8fa36b34c62c96/test_gc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1075, 362, 13332, 279, 273, 605, 4252, 1435, 324, 273, 605, 4252, 1435, 279, 18, 1747, 273, 324, 324, 18, 1747, 273, 279, 225, 8859, 18, 14676, 1435, 314, 6779, 346, 292, 275...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1075, 362, 13332, 279, 273, 605, 4252, 1435, 324, 273, 605, 4252, 1435, 279, 18, 1747, 273, 324, 324, 18, 1747, 273, 279, 225, 8859, 18, 14676, 1435, 314, 6779, 346, 292, 275...
return WorkflowExists PersistFile="%s/%s-Persist.xml"%(workflowCache,workflowSpec.workflowName()) if os.path.exists(PersistFile): WorkflowExists=True else: print "File %s does not exist"%PersistExists return WorkflowExists
return False return True
def checkPersistWorkflow(workflow): """ Check if the Persist workflow already exists in WorkflowCache area """ WorkflowExists=False RequestDir,firstrun = getRequestInjectorConfig() workflowCache="%s/WorkflowCache"%RequestDir workflowSpec = WorkflowSpec() try: workflowSpec.load(workflow) except: return WorkflowExists Pe...
fadb1a6b9cf85d72301243d86c8467f6bfa120b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/fadb1a6b9cf85d72301243d86c8467f6bfa120b8/InjectTestLCG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12771, 8484, 12, 13815, 4672, 3536, 2073, 309, 326, 21583, 6095, 1818, 1704, 316, 11363, 1649, 5091, 3536, 11363, 4002, 33, 8381, 1567, 1621, 16, 74, 481, 701, 318, 273, 4328, 19210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 12771, 8484, 12, 13815, 4672, 3536, 2073, 309, 326, 21583, 6095, 1818, 1704, 316, 11363, 1649, 5091, 3536, 11363, 4002, 33, 8381, 1567, 1621, 16, 74, 481, 701, 318, 273, 4328, 19210, ...
self.assertEqual('view_config', req.hdf['build.mode'])
self.assertEqual('view_config', req.hdf['page.mode'])
def test_view_config(self): config = BuildConfig(self.env) config.name = 'test' config.insert()
a8ece97098e508a94e93a30ef2619051bee13128 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/a8ece97098e508a94e93a30ef2619051bee13128/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1945, 67, 1425, 12, 2890, 4672, 642, 273, 3998, 809, 12, 2890, 18, 3074, 13, 642, 18, 529, 273, 296, 3813, 11, 642, 18, 6387, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1945, 67, 1425, 12, 2890, 4672, 642, 273, 3998, 809, 12, 2890, 18, 3074, 13, 642, 18, 529, 273, 296, 3813, 11, 642, 18, 6387, 1435, 2, -100, -100, -100, -100, -100, -100, -...
str += _uid_to_uri(uid) + '">show&nbsp;private</a>'
str += self._uid_to_uri(uid) + '">show&nbsp;private</a>'
def _public_private_link(self, uid): """ @return: The HTML code for a link between the public & private copies of the documentation. @rtype: C{string} """ if self._show_private and _is_private(uid.name()): return ''
c953b2de7aa23b0dce9a80366ed13af227c1f7f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/c953b2de7aa23b0dce9a80366ed13af227c1f7f3/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 482, 67, 1152, 67, 1232, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 1692, 3086, 326, 1071, 473, 3238, 13200, 434, 326, 7323, 18, 632, 86, 723, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 482, 67, 1152, 67, 1232, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 1692, 3086, 326, 1071, 473, 3238, 13200, 434, 326, 7323, 18, 632, 86, 723, 30, ...
class NodeDictionaryShelve(object): def __init__(self): self.tempfilename = '/tmp/shelve.db' self.db = shelve.open(self.tempfilename) def __getitem__(self, key): return self.db[str(key)] def __setitem__(self, key, value): self.db[str(key)] = value def __del__(self): print len(self.db)
def __setitem__(self, key, value): self.db[struct.pack('L',key)] = struct.pack('dd', *value)
eeaea869cdb2a3a24551fc119eae4d9c25fccd16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/655/eeaea869cdb2a3a24551fc119eae4d9c25fccd16/osm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 460, 4672, 365, 18, 1966, 63, 1697, 18, 2920, 2668, 48, 2187, 856, 25887, 273, 1958, 18, 2920, 2668, 449, 2187, 380, 1132, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 460, 4672, 365, 18, 1966, 63, 1697, 18, 2920, 2668, 48, 2187, 856, 25887, 273, 1958, 18, 2920, 2668, 449, 2187, 380, 1132, 13, 2, -100, -...
map = int( map )
def parseTxt( file, map ): warnings = '' count = 0 parseTickCount = 0 createTickCount = 0 propTickCount = 0 moveTickCount = 0 for line in file: step1 = wolfpack.tickcount() # Replace \r and \n's line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) ( baseid, id, x, y, z, map, color ) = line.split( ' ' ) ...
69d3a7ce2744e2d3fdb6862ce93cfd03323c3715 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/69d3a7ce2744e2d3fdb6862ce93cfd03323c3715/import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 21811, 12, 585, 16, 852, 262, 30, 5599, 273, 875, 1056, 273, 374, 225, 1109, 6264, 1380, 273, 374, 752, 6264, 1380, 273, 374, 2270, 6264, 1380, 273, 374, 3635, 6264, 1380, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21811, 12, 585, 16, 852, 262, 30, 5599, 273, 875, 1056, 273, 374, 225, 1109, 6264, 1380, 273, 374, 752, 6264, 1380, 273, 374, 2270, 6264, 1380, 273, 374, 3635, 6264, 1380, 273, 3...
this = apply(_quickfix.new_SymbolSfx, args)
this = _quickfix.new_SymbolSfx(*args)
def __init__(self, *args): this = apply(_quickfix.new_SymbolSfx, 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, 5335, 55, 19595, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 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, 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, 5335, 55, 19595, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
command = [lambda:app.htmlapp.newDownload(url), "Open HTTP Movie"]
messages.DownloadURL(url).send_to_backend()
def openURL_withReplyEvent_(self, event, replyEvent): keyDirectObject = struct.unpack(">i", "----")[0] url = event.paramDescriptorForKeyword_(keyDirectObject).stringValue().decode('utf8')
018bbc7d1624aa1bbb3fadb11711c555376ee49b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/018bbc7d1624aa1bbb3fadb11711c555376ee49b/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1785, 67, 1918, 7817, 1133, 67, 12, 2890, 16, 871, 16, 4332, 1133, 4672, 498, 5368, 921, 273, 1958, 18, 17309, 2932, 34, 77, 3113, 315, 553, 7923, 63, 20, 65, 880, 273, 871, 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, 1696, 1785, 67, 1918, 7817, 1133, 67, 12, 2890, 16, 871, 16, 4332, 1133, 4672, 498, 5368, 921, 273, 1958, 18, 17309, 2932, 34, 77, 3113, 315, 553, 7923, 63, 20, 65, 880, 273, 871, 18...
inarg = sys.argv[1]
inarg = os.path.abspath(sys.argv[1])
def template2mak(infile,outfile): lines = infile.readlines() foreachcmd = r"###MAKTEMPLATE:FOREACH " endforeachcmd = r"###MAKTEMPLATE:ENDFOREACH" while lines: line = lines[0] if line.strip().upper().startswith(foreachcmd): filepatterns = line.strip() [ len(foreachcmd): ].split(',') lines = lines[1:] l = 0 for line in l...
409edd557d67a1c492854e41562c26583ed0a7d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2151/409edd557d67a1c492854e41562c26583ed0a7d0/template2mak.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 22, 81, 581, 12, 267, 768, 16, 26050, 4672, 2362, 273, 14568, 18, 896, 3548, 1435, 936, 4172, 273, 436, 6, 13151, 5535, 47, 12205, 30, 11701, 18133, 315, 679, 25055, 4172, 273, 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, 1542, 22, 81, 581, 12, 267, 768, 16, 26050, 4672, 2362, 273, 14568, 18, 896, 3548, 1435, 936, 4172, 273, 436, 6, 13151, 5535, 47, 12205, 30, 11701, 18133, 315, 679, 25055, 4172, 273, 4...
schema_recognized, available_upgrades, best_upgrade = get_managed_evolution_options(app, schema_fingerprint)
schema_recognized, available_upgrades, best_upgrade = get_managed_evolution_options(app, schema_fingerprint, style)
def get_sql_evolution_detailed(app, style): "Returns SQL to update an existing schema to match the existing models." ops, introspection = get_operations_and_introspection_classes(style) from django.db import get_creation_module, models, backend, get_introspection_module, connection cursor = connection.cursor() app_nam...
b35b33d03035a1f74af247421a30b551592868fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8472/b35b33d03035a1f74af247421a30b551592868fb/schema_evolution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4669, 67, 14965, 5889, 67, 72, 6372, 12, 2910, 16, 2154, 4672, 315, 1356, 3063, 358, 1089, 392, 2062, 1963, 358, 845, 326, 2062, 3679, 1199, 225, 6727, 16, 18446, 7017, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4669, 67, 14965, 5889, 67, 72, 6372, 12, 2910, 16, 2154, 4672, 315, 1356, 3063, 358, 1089, 392, 2062, 1963, 358, 845, 326, 2062, 3679, 1199, 225, 6727, 16, 18446, 7017, 273, 3...
infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), newInfraNodes)
infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), stas)
def main(argv): # # First, we declare and initialize a few local variables that control some # simulation parameters. # backboneNodes = 10 infraNodes = 5 lanNodes = 5 stopTime = 10 # # Simulation defaults are typically set next, before command line # arguments are parsed. # ns3.Config.SetDefault("ns3::OnOffApplica...
93eb35c43456275b25e897f15e8562de8f1b84d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12851/93eb35c43456275b25e897f15e8562de8f1b84d2/mixed-wireless.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 468, 468, 225, 5783, 16, 732, 14196, 471, 4046, 279, 11315, 1191, 3152, 716, 3325, 2690, 468, 225, 14754, 1472, 18, 468, 1473, 19930, 3205, 273, 1728, 8286, 354, 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, 2774, 12, 19485, 4672, 468, 468, 225, 5783, 16, 732, 14196, 471, 4046, 279, 11315, 1191, 3152, 716, 3325, 2690, 468, 225, 14754, 1472, 18, 468, 1473, 19930, 3205, 273, 1728, 8286, 354, 3...
query = TextQuery('title', '"Wolf and"')
query = TextQuery('title', u'"Wolf and"')
def test_TextQuery(self): catalog = Catalog('tests/catalog', Document.fields)
fc24d3b957daed70d73cf91bd36ffec3c271ef33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/fc24d3b957daed70d73cf91bd36ffec3c271ef33/test_database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1528, 1138, 12, 2890, 4672, 6222, 273, 14953, 2668, 16341, 19, 7199, 2187, 4319, 18, 2821, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1528, 1138, 12, 2890, 4672, 6222, 273, 14953, 2668, 16341, 19, 7199, 2187, 4319, 18, 2821, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return origin_openid_decide(req)
""" The page that asks the user if they really want to sign in to the site, and lets them add the consumer to their trusted whitelist. """ from openid.yadis.discover import DiscoveryFailure from openid.fetchers import HTTPFetchingError orequest = req.session.get('OPENID_REQUEST') if not req.user.is_authenticated():...
def openid_decide(req): return origin_openid_decide(req)
cf4d642af386a86d5a9bec28fa847b098c2d25a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11208/cf4d642af386a86d5a9bec28fa847b098c2d25a4/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21629, 67, 4924, 831, 12, 3658, 4672, 3536, 1021, 1363, 716, 6827, 87, 326, 729, 309, 2898, 8654, 2545, 358, 1573, 316, 358, 326, 2834, 16, 471, 14557, 2182, 527, 326, 4765, 358, 3675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21629, 67, 4924, 831, 12, 3658, 4672, 3536, 1021, 1363, 716, 6827, 87, 326, 729, 309, 2898, 8654, 2545, 358, 1573, 316, 358, 326, 2834, 16, 471, 14557, 2182, 527, 326, 4765, 358, 3675, ...
def generateWordRandom(self, new_thesaurus): tries = 0 while tries < 100: tries = tries + 1 index = random.randint(0, len(self.obscure)-1) obscure = self.obscure[index] new = "" for c in obscure: if 70 < random.randint(0,100): new = new + string.upper(c) else: new = new + c if new not in self.thesaurus \ and new not i...
def generateWordRandom(self): index = random.randint(0, len(self.obscure)-1) obscure = self.obscure[index] new = "" for c in obscure: if 70 < random.randint(0,100): new = new + string.upper(c) else: new = new + c return new
def generateWordRandom(self, new_thesaurus): tries = 0 while tries < 100: tries = tries + 1 index = random.randint(0, len(self.obscure)-1) obscure = self.obscure[index] new = "" for c in obscure: if 70 < random.randint(0,100): # Take 30% of upper case new = new + string.upper(c) else: new = new + c if new not in self.t...
562905e2a6815b9950a501214d1feb649e21a1f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2280/562905e2a6815b9950a501214d1feb649e21a1f5/tachatte.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 3944, 8529, 12, 2890, 16, 394, 67, 7915, 28659, 407, 4672, 9327, 273, 374, 1323, 9327, 411, 2130, 30, 9327, 273, 9327, 397, 404, 770, 273, 2744, 18, 7884, 474, 12, 20, 16, 562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 3944, 8529, 12, 2890, 16, 394, 67, 7915, 28659, 407, 4672, 9327, 273, 374, 1323, 9327, 411, 2130, 30, 9327, 273, 9327, 397, 404, 770, 273, 2744, 18, 7884, 474, 12, 20, 16, 562, ...
t = orange.ExampleTable('c:/proj/domains/breast-miss.tab')
t = orange.ExampleTable('c:/proj/domains/d_pima.tab')
def printpie(e,p): x = 0 for i in range(len(m.coeff_names)): for j in m.coeff_names[i][1:]: if e[x] > 0.001: print '\t%2.1f%% : '%(100*e[x]),m.coeff_names[i][0],'=', if type(j)==type(1.0): print t[idx][m.coeff_names[i][0]] # continuous else: print j # discrete x += 1 if e[x] > 0.001: print '\t%2.1f%% : '%(100*e[x]),"BA...
d5d765a106ee2fda0789f07a6a122d52f838cef9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/d5d765a106ee2fda0789f07a6a122d52f838cef9/orngLinVis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 84, 1385, 12, 73, 16, 84, 4672, 619, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 81, 18, 18132, 67, 1973, 3719, 30, 364, 525, 316, 312, 18, 18132, 67, 1973, 63, 77, 6362, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 84, 1385, 12, 73, 16, 84, 4672, 619, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 81, 18, 18132, 67, 1973, 3719, 30, 364, 525, 316, 312, 18, 18132, 67, 1973, 63, 77, 6362, 21...
self.openPeers = {}
def __init__(self, application): self.application = application self.jabberID = None self.password = '' self.connection = None self.roster = None self.connected = false self.loggedIn = false self.timer = None
5c0d7e631c503d762b5227d935b2e8ef33c5cd72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c0d7e631c503d762b5227d935b2e8ef33c5cd72/ChandlerJabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2521, 4672, 365, 18, 3685, 273, 2521, 225, 365, 18, 78, 378, 744, 734, 273, 599, 365, 18, 3664, 273, 875, 225, 365, 18, 4071, 273, 599, 365, 18, 303, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2521, 4672, 365, 18, 3685, 273, 2521, 225, 365, 18, 78, 378, 744, 734, 273, 599, 365, 18, 3664, 273, 875, 225, 365, 18, 4071, 273, 599, 365, 18, 303, ...
print self.doc[0] + " = None print
print >> stream, self.doc[0] + " = None print >> stream
def WriteAliasItem(self, aliasDict): # we could have been written as part of an alias dependency if self.bWritten: return
cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 2936, 1180, 12, 2890, 16, 2308, 5014, 4672, 468, 732, 3377, 1240, 2118, 5941, 487, 1087, 434, 392, 2308, 4904, 309, 365, 18, 70, 12643, 30, 327, 2, 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, 2598, 2936, 1180, 12, 2890, 16, 2308, 5014, 4672, 468, 732, 3377, 1240, 2118, 5941, 487, 1087, 434, 392, 2308, 4904, 309, 365, 18, 70, 12643, 30, 327, 2, -100, -100, -100, -100, -100, ...