rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
like IPAddress(1), which could be IPv4, '0.0.0.0.1', or IPv6,
like IPAddress(1), which could be IPv4, '0.0.0.1', or IPv6,
def IPAddress(address, version=None): """Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. version: An Integer, 4 or 6. If set, don't try ...
d437f78f6112dbe1b9a4823d75181be2f9ebdc17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5467/d437f78f6112dbe1b9a4823d75181be2f9ebdc17/ipaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23588, 12, 2867, 16, 1177, 33, 7036, 4672, 3536, 13391, 392, 2971, 533, 19, 474, 471, 327, 392, 733, 434, 326, 3434, 618, 18, 225, 6634, 30, 1758, 30, 432, 533, 578, 3571, 16, 326, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23588, 12, 2867, 16, 1177, 33, 7036, 4672, 3536, 13391, 392, 2971, 533, 19, 474, 471, 327, 392, 733, 434, 326, 3434, 618, 18, 225, 6634, 30, 1758, 30, 432, 533, 578, 3571, 16, 326, 2...
reDepth = re.compile("(\$__\w+)", re.I | re.S ) res = reDepth.sub(r"\1_" + `depth`,res) return res
return indent(res, depth)
def flatten_report(self, report, depth=0):
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 67, 6006, 12, 2890, 16, 2605, 16, 3598, 33, 20, 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, 5341, 67, 6006, 12, 2890, 16, 2605, 16, 3598, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.client.voidresp()
self.assertEqual(self.client.voidresp(), "226 transfer complete")
def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.client.voidresp()
73b3632747ecfa87480afc8a00af27a4a7839ce6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/73b3632747ecfa87480afc8a00af27a4a7839ce6/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
def value(self): return str(self._v)[:-1]
def value(self): result = str(self._v) if result[-1:] == 'L': return result[:-1] return result
def value(self): return str(self._v)[:-1]
643702cbcea435af26b0a5a6dc6e461932f73118 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/643702cbcea435af26b0a5a6dc6e461932f73118/ppml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 12, 2890, 4672, 327, 609, 12, 2890, 6315, 90, 13, 10531, 17, 21, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 460, 12, 2890, 4672, 327, 609, 12, 2890, 6315, 90, 13, 10531, 17, 21, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return Numeric.ones(1,'d')
return ones(1,'d')
def barthann(M,sym=1): """Return the M-point modified Bartlett-Hann window. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M+1 n = arange(0,M) fac = abs(n/(M-1.0)-0.5) w = 0.62 - 0.48*fac + 0.38*cos(2*pi*fac) if not sym and not odd: w = w[:-1] return...
936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 451, 1072, 12, 49, 16, 8117, 33, 21, 4672, 3536, 990, 326, 490, 17, 1153, 4358, 605, 485, 1810, 88, 17, 44, 1072, 2742, 18, 3536, 309, 490, 411, 404, 30, 327, 16980, 18, 1126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4653, 451, 1072, 12, 49, 16, 8117, 33, 21, 4672, 3536, 990, 326, 490, 17, 1153, 4358, 605, 485, 1810, 88, 17, 44, 1072, 2742, 18, 3536, 309, 490, 411, 404, 30, 327, 16980, 18, 1126, ...
PATH = "%s/share/specto/" % sys.prefix
PATH = "%s/share/specto/" % PREFIX
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) ...
cd6c3e3c9b4d25b6b93cb36f41ec74052d9ffe02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10818/cd6c3e3c9b4d25b6b93cb36f41ec74052d9ffe02/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 12, 4743, 33, 7036, 4672, 3536, 2000, 326, 3434, 589, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 2668, 892, 6134, 578, 486, 1140, 18, 803, 18, 1808, 2668, 13234, 2941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 803, 12, 4743, 33, 7036, 4672, 3536, 2000, 326, 3434, 589, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 2668, 892, 6134, 578, 486, 1140, 18, 803, 18, 1808, 2668, 13234, 2941, ...
except:
except AttributeError:
def close(self): self.sync() try: self.dict.close() except: pass self.dict = 0
b7cd7e2b445cac06673bd92abe0cab8d1ab0eac0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b7cd7e2b445cac06673bd92abe0cab8d1ab0eac0/shelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 8389, 1435, 775, 30, 365, 18, 1576, 18, 4412, 1435, 1335, 6394, 30, 1342, 365, 18, 1576, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 8389, 1435, 775, 30, 365, 18, 1576, 18, 4412, 1435, 1335, 6394, 30, 1342, 365, 18, 1576, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
for entry in response_feed.entry: print 'batch id: %s' % (entry.batch_id.text,) print 'status: %s' % (entry.batch_status.code,) print 'reason: %s' % (entry.batch_status.reason,)
def _batch_delete_recur(self, date, event, cal_user): """Delete a subset of instances of recurring events.""" request_feed = gdata.calendar.CalendarEventFeed() single_events = self.get_events(cal_user, date=date, title=event.title.text, expand_recurrence=True) delete_events = [e for e in single_events if e.original_eve...
b0759e4e9a76ab4aee7bf647e700284a0b46a3d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/b0759e4e9a76ab4aee7bf647e700284a0b46a3d0/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5303, 67, 3733, 67, 266, 1397, 12, 2890, 16, 1509, 16, 871, 16, 1443, 67, 1355, 4672, 3536, 2613, 279, 7931, 434, 3884, 434, 26043, 2641, 12123, 590, 67, 7848, 273, 314, 892, 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, 389, 5303, 67, 3733, 67, 266, 1397, 12, 2890, 16, 1509, 16, 871, 16, 1443, 67, 1355, 4672, 3536, 2613, 279, 7931, 434, 3884, 434, 26043, 2641, 12123, 590, 67, 7848, 273, 314, 892, 18, ...
print triplet, angle
def __init__(self, graph): from molmod.data.bonds import bonds
4c86111a0a82f9132f64fc64f733cc3e40895bdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11053/4c86111a0a82f9132f64fc64f733cc3e40895bdf/toyff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2667, 4672, 628, 12629, 1711, 18, 892, 18, 70, 4096, 1930, 15692, 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, 1001, 2738, 972, 12, 2890, 16, 2667, 4672, 628, 12629, 1711, 18, 892, 18, 70, 4096, 1930, 15692, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
print "enter hello"
def hello(self): print "enter hello" if we_are_translated(): self.saved_pool = gc_swap_pool(self.local_pool) super(ClonableCoroutine).hello(self)
9f8f671d8cefde4ca29b5aa5a6e0ce6f0007cf8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/9f8f671d8cefde4ca29b5aa5a6e0ce6f0007cf8c/interp_clonable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19439, 12, 2890, 4672, 309, 732, 67, 834, 67, 22899, 13332, 365, 18, 14077, 67, 6011, 273, 8859, 67, 22270, 67, 6011, 12, 2890, 18, 3729, 67, 6011, 13, 2240, 12, 2009, 265, 429, 6217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19439, 12, 2890, 4672, 309, 732, 67, 834, 67, 22899, 13332, 365, 18, 14077, 67, 6011, 273, 8859, 67, 22270, 67, 6011, 12, 2890, 18, 3729, 67, 6011, 13, 2240, 12, 2009, 265, 429, 6217, ...
Link = GnuPlatformPrefix + Link
def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = CM3VERSION + "-" + time.strftime("%Y%m%d") # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # p...
22b1cc2aedb3fba21804ba1ef44aa7694f1ad88c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/22b1cc2aedb3fba21804ba1ef44aa7694f1ad88c/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 15871, 23, 5757, 397, 7514, 397, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 15871, 23, 5757, 397, 7514, 397, 813, ...
s = self.eval('apropos(%s)'%s).replace('\\ - ','-')
if verbose: print s, sys.stdout.flush() s = self._eval_line('apropos(%s)'%s, error_check=False).replace('\\ - ','-')
def completions(self, s): """ Return all commands that complete the command starting with the string s. This is like typing s[tab] in the maple interpreter. """ s = self.eval('apropos(%s)'%s).replace('\\ - ','-') return [x for x in s[1:-1].split(',') if x[0] != '?']
f49ccd764f26597f3e778708f286fd3926f061d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/f49ccd764f26597f3e778708f286fd3926f061d5/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23738, 12, 2890, 16, 272, 4672, 3536, 2000, 777, 4364, 716, 3912, 326, 1296, 5023, 598, 326, 533, 272, 18, 282, 1220, 353, 3007, 13408, 272, 63, 7032, 65, 316, 326, 852, 298, 16048, 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, 23738, 12, 2890, 16, 272, 4672, 3536, 2000, 777, 4364, 716, 3912, 326, 1296, 5023, 598, 326, 533, 272, 18, 282, 1220, 353, 3007, 13408, 272, 63, 7032, 65, 316, 326, 852, 298, 16048, 18...
"-r", "cubicspline",
"-r", "cubic",
def __resample(dir_temp, input_file, arcseconds_per_pixel): print "Resampling terrain ..." output_file = os.path.join(dir_temp, "terrain_resampled.tif") if os.path.exists(output_file): os.unlink(output_file) degree_per_pixel = float(arcseconds_per_pixel) / 3600.0 args = [cmd_gdal_warp, "-r", "cubicspline", "-tr", str...
c5a47829ab5ae343a54773dd573977f72949a10d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6105/c5a47829ab5ae343a54773dd573977f72949a10d/terrain_srtm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 455, 1511, 12, 1214, 67, 5814, 16, 810, 67, 768, 16, 8028, 7572, 67, 457, 67, 11743, 4672, 1172, 315, 607, 7639, 19272, 7596, 18483, 876, 67, 768, 273, 1140, 18, 803, 18, 5701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 455, 1511, 12, 1214, 67, 5814, 16, 810, 67, 768, 16, 8028, 7572, 67, 457, 67, 11743, 4672, 1172, 315, 607, 7639, 19272, 7596, 18483, 876, 67, 768, 273, 1140, 18, 803, 18, 5701, ...
setattr(c, model_name + '_collection', self.model.select())
setattr(c, model_name + '_collection', g.objectstore.query(self.model).select())
def index(self): """Show a list of all objects currently in the system.""" # GET, POST -> return list of objects
4c8ff3c8082eec023b93d3e4e4196aed23db03e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/4c8ff3c8082eec023b93d3e4e4196aed23db03e5/crud.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 3536, 5706, 279, 666, 434, 777, 2184, 4551, 316, 326, 2619, 12123, 468, 4978, 16, 5485, 317, 327, 666, 434, 2184, 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, 770, 12, 2890, 4672, 3536, 5706, 279, 666, 434, 777, 2184, 4551, 316, 326, 2619, 12123, 468, 4978, 16, 5485, 317, 327, 666, 434, 2184, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
for line in open(timeLog): log(item[item.rfind('/') + 1:] + ' [ %ss ]' % line[:-1]) break
line = open(timeLog).readline()[:-1] log(item[item.rfind('/') + 1:] + ' [ %ss ]' % line)
def runScriptPerfTests(options, testlist, largeData=False): failed = False for item in testlist: #$CHANDLERBIN/release/$RUN_CHANDLER --create --catch=tests # --profileDir="$PC_DIR" # --catsPerfLog="$TIME_LOG" # --scri...
3328cd9ca2c398ada6b7bc675bf147dd36d77a3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3328cd9ca2c398ada6b7bc675bf147dd36d77a3e/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 22016, 14650, 12, 2116, 16, 1842, 1098, 16, 7876, 751, 33, 8381, 4672, 2535, 273, 1083, 225, 364, 761, 316, 1842, 1098, 30, 468, 8, 1792, 4307, 14668, 12615, 19, 9340, 11141,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3651, 22016, 14650, 12, 2116, 16, 1842, 1098, 16, 7876, 751, 33, 8381, 4672, 2535, 273, 1083, 225, 364, 761, 316, 1842, 1098, 30, 468, 8, 1792, 4307, 14668, 12615, 19, 9340, 11141,...
if havefilters: for idx in range(len(row)): name = '%sfilter%d' % (self.data_id, idx) if name in self.request.form: filters[idx] = self.request.form[name][0] if filters[idx] == self._all: filters[idx] = None
if havefilters: for idx in range(len(row)): name = '%sfilter%d' % (self.data_id, idx) if name in self.request.form: filters[idx] = self.request.form[name][0] if filters[idx] == self._all: filters[idx] = None
def format(self): fmt = self.request.formatter
95c93369dda35107495ca7ae211cf4108006733d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/95c93369dda35107495ca7ae211cf4108006733d/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 4672, 1325, 273, 365, 18, 2293, 18, 12354, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 4672, 1325, 273, 365, 18, 2293, 18, 12354, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return http.Response(stream=message('nothing to see.'))
return HTMLResponse(stream=message('nothing to see.'))
def render(self, ctx): return http.Response(stream=message('nothing to see.'))
39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 33, 2150, 2668, 30874, 358, 2621, 1093, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 33, 2150, 2668, 30874, 358, 2621, 1093, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
try: Util().check_prerequisite_command(self.MAKEFS_CMD) except NotFoundError: sys.exit(1)
Util().check_prerequisite_command(self.MAKEFS_CMD)
def make_fs(self, image_path): try: Util().check_prerequisite_command(self.MAKEFS_CMD) except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2556, 12, 2890, 16, 1316, 67, 803, 4672, 775, 30, 3564, 7675, 1893, 67, 683, 822, 16608, 1137, 67, 3076, 12, 2890, 18, 5535, 6859, 4931, 67, 19473, 13, 1335, 25576, 30, 2589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2556, 12, 2890, 16, 1316, 67, 803, 4672, 775, 30, 3564, 7675, 1893, 67, 683, 822, 16608, 1137, 67, 3076, 12, 2890, 18, 5535, 6859, 4931, 67, 19473, 13, 1335, 25576, 30, 2589,...
reactor.stop()
self.done()
def do_beah_cmd(self): #self.dbg("do_beah_cmd called")
3da422ade4fd77ce2062915f27ae151e509d8d3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/3da422ade4fd77ce2062915f27ae151e509d8d3d/beahcmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2196, 9795, 67, 4172, 12, 2890, 4672, 468, 2890, 18, 1966, 75, 2932, 2896, 67, 2196, 9795, 67, 4172, 2566, 7923, 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, 741, 67, 2196, 9795, 67, 4172, 12, 2890, 4672, 468, 2890, 18, 1966, 75, 2932, 2896, 67, 2196, 9795, 67, 4172, 2566, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
os.environb.clear() os.environb.update(self.__saveb)
if os.name not in ('os2', 'nt'): os.environb.clear() os.environb.update(self.__saveb)
def tearDown(self): os.environ.clear() os.environ.update(self.__save) os.environb.clear() os.environb.update(self.__saveb)
6352f15ba89506e22133010950e36dd505556c13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/6352f15ba89506e22133010950e36dd505556c13/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1140, 18, 28684, 18, 8507, 1435, 1140, 18, 28684, 18, 2725, 12, 2890, 16186, 5688, 13, 1140, 18, 28684, 70, 18, 8507, 1435, 1140, 18, 28684, 70, 18, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1140, 18, 28684, 18, 8507, 1435, 1140, 18, 28684, 18, 2725, 12, 2890, 16186, 5688, 13, 1140, 18, 28684, 70, 18, 8507, 1435, 1140, 18, 28684, 70, 18, 27...
return ', '.join(users, ', ')
return ', '.join(users)
def creator(self): """Return a sequence of user names who have the local Owner role on an object. The name creator is used for this method to conform to Dublin Core.""" users=[] for user, roles in self.get_local_roles(): if 'Owner' in roles: users.append(user) return ', '.join(users, ', ')
364dbabbaf3733fadd8825986c9048fb1cd2ad61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/364dbabbaf3733fadd8825986c9048fb1cd2ad61/CatalogPathAwareness.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11784, 12, 2890, 4672, 3536, 990, 279, 3102, 434, 729, 1257, 10354, 1240, 326, 1191, 16837, 2478, 603, 392, 733, 18, 1021, 508, 11784, 353, 1399, 364, 333, 707, 358, 20156, 358, 31760, 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, 11784, 12, 2890, 4672, 3536, 990, 279, 3102, 434, 729, 1257, 10354, 1240, 326, 1191, 16837, 2478, 603, 392, 733, 18, 1021, 508, 11784, 353, 1399, 364, 333, 707, 358, 20156, 358, 31760, 4...
self._head = self._createNode(0) self._tail = self._createNode(0)
self._head = self._createNode(1) self._tail = self._createNode(1)
def __init(self):
291188a3a479166ae1db3e1b64d7e6aca6607866 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/291188a3a479166ae1db3e1b64d7e6aca6607866/SkipList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.gl_update()
self.gl_update_highlight()
def leaveEvent(self, event): # Mark 060806. [minor revisions by bruce 070110] """Event handler for when the cursor leaves the GLPane. <event> is the last mouse event before leaving the GLpane. """ # If an object is "hover highlighted", unhighlight it when leaving the GLpane. if self.selobj is not None: self.selobj = No...
7c768374eefd8c25020cec977ea975b8846970fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/7c768374eefd8c25020cec977ea975b8846970fa/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8851, 1133, 12, 2890, 16, 871, 4672, 468, 6622, 374, 4848, 3672, 26, 18, 306, 17364, 18325, 635, 5186, 3965, 10934, 1611, 2163, 65, 3536, 1133, 1838, 364, 1347, 326, 3347, 15559, 326, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8851, 1133, 12, 2890, 16, 871, 4672, 468, 6622, 374, 4848, 3672, 26, 18, 306, 17364, 18325, 635, 5186, 3965, 10934, 1611, 2163, 65, 3536, 1133, 1838, 364, 1347, 326, 3347, 15559, 326, 10...
StrainID2PCAPosInfo = self.getStrainID2PCAPosInfo(snpData, pca_range=[0,1], snp_id_label_y_offset=snp_id_label_y_offset)
StrainID2PCAPosInfo = self.getStrainID2PCAPosInfo(snpData, pca_range=[0,1], snp_id_label_y_offset=snp_id_label_y_offset, explained_var=explained_var, T=PC_matrix)
def run(self): if self.debug: import pdb pdb.set_trace() db = Stock_250kDB.Stock_250kDB(drivername=self.drivername, username=self.db_user, password=self.db_passwd, hostname=self.hostname, database=self.dbname, schema=self.schema) db.setup(create_tables=False) session = db.session snpData = SNPData(input_fname=self.inp...
2bdedeec67e197efc1586eb251f93015f76066c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/2bdedeec67e197efc1586eb251f93015f76066c2/DrawEcotypeOnMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 365, 18, 4148, 30, 1930, 10892, 10892, 18, 542, 67, 5129, 1435, 1319, 273, 20296, 363, 67, 26520, 79, 2290, 18, 17821, 67, 26520, 79, 2290, 12, 7407, 529, 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, 1086, 12, 2890, 4672, 309, 365, 18, 4148, 30, 1930, 10892, 10892, 18, 542, 67, 5129, 1435, 1319, 273, 20296, 363, 67, 26520, 79, 2290, 18, 17821, 67, 26520, 79, 2290, 12, 7407, 529, 33...
self.failUnloess(checkPerm(View, self.doc))
self.failUnless(checkPerm(View, self.doc))
def testViewPrivateDocument(self): self.assertEqual(self.workflow.getInfoFor(self.doc, 'review_state'), 'private') # Owner is allowed self.login(default_user) self.failUnless(checkPerm(View, self.doc)) # Member is denied self.login('member') self.failIf(checkPerm(View, self.doc)) # Reviewer is denied self.login('review...
58a5af2950f17e3233bfdf42c75da9eb6086f358 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12187/58a5af2950f17e3233bfdf42c75da9eb6086f358/test_simple_publication_workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1767, 6014, 2519, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 13815, 18, 588, 966, 1290, 12, 2890, 18, 2434, 16, 296, 16041, 67, 2019, 19899, 296, 1152, 6134, 468, 16837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1767, 6014, 2519, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 13815, 18, 588, 966, 1290, 12, 2890, 18, 2434, 16, 296, 16041, 67, 2019, 19899, 296, 1152, 6134, 468, 16837, ...
self.mode.MarkerAdd(line, self.mode.bookmark_marker_number) class NextBookmark(SelectAction):
marker = self.mode.MarkerGet(line) mask = 1 << self.mode.bookmark_marker_number if marker & mask: self.mode.MarkerDelete(line, self.mode.bookmark_marker_number) else: self.mode.MarkerAdd(line, self.mode.bookmark_marker_number) class DelBookmark(MarkerAction): """Remove a bookmark on the current line in the buffer.""" ...
def action(self, index=-1, multiplier=1): line = self.mode.GetCurrentLine() self.mode.MarkerAdd(line, self.mode.bookmark_marker_number)
64f1393c9288463f4fc4ffa09f13ac770fd77b8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/64f1393c9288463f4fc4ffa09f13ac770fd77b8b/cursor_movement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 980, 273, 365, 18, 3188, 18, 967, 3935, 1670, 1435, 365, 18, 3188, 18, 7078, 986, 12, 1369, 16, 365, 18, 3188, 18, 3618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 980, 273, 365, 18, 3188, 18, 967, 3935, 1670, 1435, 365, 18, 3188, 18, 7078, 986, 12, 1369, 16, 365, 18, 3188, 18, 3618, ...
matchstart = match.start(self.groups.initial.whole) matchend = match.end(self.groups.initial.whole)
matchstart = match.start('whole') matchend = match.end('whole')
def reference(self, match, lineno, anonymous=None): referencename = match.group(self.groups.initial.refname) refname = normalize_name(referencename) referencenode = nodes.reference( referencename + match.group(self.groups.initial.refend), referencename) if anonymous: referencenode['anonymous'] = 1 self.document.note_an...
039645ec5706bfe06b64e66663e62db9bc1abf30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/039645ec5706bfe06b64e66663e62db9bc1abf30/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2114, 12, 2890, 16, 845, 16, 7586, 16, 13236, 33, 7036, 4672, 8884, 1331, 1069, 273, 845, 18, 1655, 12, 2890, 18, 4650, 18, 6769, 18, 1734, 529, 13, 1278, 529, 273, 3883, 67, 529, 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, 2114, 12, 2890, 16, 845, 16, 7586, 16, 13236, 33, 7036, 4672, 8884, 1331, 1069, 273, 845, 18, 1655, 12, 2890, 18, 4650, 18, 6769, 18, 1734, 529, 13, 1278, 529, 273, 3883, 67, 529, 12...
message = Message(sender=sender, room=room, timestamp=timestamp, content=content,
message = Message(sender=sender, room=room, timestamp=timestamp, content=topic,
def post(self, room_key): user = users.get_current_user() sender = Account.all().filter('user =', user).get() room = Room.all().filter('__key__ =', Key(room_key)).get() topic = self.request.get('topic') timestamp = datetime.now() #content = self.request.get('message') payload = {} if not sender: # no account for this u...
6b05e2d28904882a811ed41ba940c60bb2116101 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14434/6b05e2d28904882a811ed41ba940c60bb2116101/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 7725, 67, 856, 4672, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 5793, 273, 6590, 18, 454, 7675, 2188, 2668, 1355, 273, 2187, 729, 2934, 588, 1435, 7725, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 7725, 67, 856, 4672, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 5793, 273, 6590, 18, 454, 7675, 2188, 2668, 1355, 273, 2187, 729, 2934, 588, 1435, 7725, 273...
filename = time.strftime('%Y%m%d') + "_" + str(event.Window) + "_" + WindowName
filename = time.strftime('%Y%m%d') + "_" + str(event.Window) + "_" + WindowName + ".txt"
def OpenLogFile(self, event): if self.options.oneFile != None: if self.writeTarget == "": self.writeTarget = os.path.join(os.path.normpath(self.options.dirName), os.path.normpath(self.options.oneFile)) try: self.log = open(self.writeTarget, 'a') except OSError, detail: if(detail.errno==17): #if file already exists, s...
74da11ba55b3923d9ef009b692236036b604628f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3638/74da11ba55b3923d9ef009b692236036b604628f/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3502, 19103, 12, 2890, 16, 871, 4672, 225, 309, 365, 18, 2116, 18, 476, 812, 480, 599, 30, 309, 365, 18, 2626, 2326, 422, 1408, 30, 365, 18, 2626, 2326, 273, 1140, 18, 803, 18, 5701,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3502, 19103, 12, 2890, 16, 871, 4672, 225, 309, 365, 18, 2116, 18, 476, 812, 480, 599, 30, 309, 365, 18, 2626, 2326, 422, 1408, 30, 365, 18, 2626, 2326, 273, 1140, 18, 803, 18, 5701,...
return []
return []
def get_dataset(app): """Retrieve the file names starting from an application object""" job=app._getRoot() if not job: logger.warning('Application object is not associated to a job.') return []
030ac5076f363b968bfcfd639df5a0b09330bc8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/030ac5076f363b968bfcfd639df5a0b09330bc8d/ATLASDataset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8682, 12, 2910, 4672, 3536, 5767, 326, 585, 1257, 5023, 628, 392, 2521, 733, 8395, 1719, 33, 2910, 6315, 588, 2375, 1435, 309, 486, 1719, 30, 1194, 18, 8551, 2668, 3208, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 8682, 12, 2910, 4672, 3536, 5767, 326, 585, 1257, 5023, 628, 392, 2521, 733, 8395, 1719, 33, 2910, 6315, 588, 2375, 1435, 309, 486, 1719, 30, 1194, 18, 8551, 2668, 3208, 733, ...
if normal_identity in OPEN_SOCKET_INFO or listen_identity in OPEN_SOCKET_INFO:
if identity in OPEN_SOCKET_INFO or listen_identity in OPEN_SOCKET_INFO:
def _bind_udp_socket(localip, localport, tattle_item): # Conrad: entirely stolen from listenforconnection(). Some of this input # verification stuff especially could probably be combined as a shared # function. Even the rest of the functions are similar enough to be worth # consolidating. # Check the input arguments (...
cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4376, 67, 26029, 67, 7814, 12, 3729, 625, 16, 1191, 655, 16, 268, 4558, 298, 67, 1726, 4672, 468, 735, 6012, 30, 21658, 384, 355, 275, 628, 6514, 1884, 4071, 7675, 10548, 434, 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, 389, 4376, 67, 26029, 67, 7814, 12, 3729, 625, 16, 1191, 655, 16, 268, 4558, 298, 67, 1726, 4672, 468, 735, 6012, 30, 21658, 384, 355, 275, 628, 6514, 1884, 4071, 7675, 10548, 434, 333...
SWIG = 'swig -O -templatereduce -shadow -python -c++ -keyword -nodefaultctor -w-503,-312,-511,-362,-383,-384,-389,-315,-525'
SWIG = 'swig -O -templatereduce -shadow -python -outdir src -c++ -keyword -nodefaultctor -w-503,-312,-511,-362,-383,-384,-389,-315,-525'
def swig_version(): ''' get the version of swig ''' fout = os.popen('swig -version') # try: version = re.match('SWIG Version\s*(\d+).(\d+).(\d+).*', fout.readlines()[1]).groups() except: print 'Can not obtain swig version, please install swig' sys.exit(1) return map(int, version)
8f04c4582242d345612a60cf2fc688b05d7eb9b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/8f04c4582242d345612a60cf2fc688b05d7eb9b2/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 1589, 13332, 9163, 336, 326, 1177, 434, 1352, 360, 9163, 17382, 273, 1140, 18, 84, 3190, 2668, 5328, 360, 300, 1589, 6134, 468, 775, 30, 1177, 273, 283, 18, 1916, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1352, 360, 67, 1589, 13332, 9163, 336, 326, 1177, 434, 1352, 360, 9163, 17382, 273, 1140, 18, 84, 3190, 2668, 5328, 360, 300, 1589, 6134, 468, 775, 30, 1177, 273, 283, 18, 1916, 2668, ...
changeSetList = kwargs.pop('fromChangesets', [])
def _updateTroves(cfg, applyList, **kwargs): # Take out the apply-related keyword arguments applyDefaults = dict( replaceFiles = False, replaceManagedFiles = False, replaceUnmanagedFiles = False, replaceModifiedFiles = False, replaceModifiedConfigFiles = False, tagScript = None, justDatabase = False, skipCapsuleOps = F...
eb430353d15bc1930e7d04ae12beecbb56337728 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/eb430353d15bc1930e7d04ae12beecbb56337728/updatecmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 56, 303, 3324, 12, 7066, 16, 2230, 682, 16, 2826, 4333, 4672, 468, 17129, 596, 326, 2230, 17, 9243, 4932, 1775, 2230, 7019, 273, 2065, 12, 1453, 2697, 273, 1083, 16, 1453, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2725, 56, 303, 3324, 12, 7066, 16, 2230, 682, 16, 2826, 4333, 4672, 468, 17129, 596, 326, 2230, 17, 9243, 4932, 1775, 2230, 7019, 273, 2065, 12, 1453, 2697, 273, 1083, 16, 1453, 1...
if not isForegroundChange: if obj.role not in (controlTypes.ROLE_LISTITEM,controlTypes.ROLE_TREEVIEWITEM,controlTypes.ROLE_MENUITEM): activeChild=obj.activeChild else: activeChild=None if activeChild and obj.activeChild!=obj and activeChild.role!=controlTypes.ROLE_UNKNOWN: return focus_manageEvent(activeChild,False)
else: foregroundObject=api.getForegroundObject() if foregroundObject.windowClassName=="MozillaUIWindowClass" and obj==foregroundObject: return
def focus_manageEvent(obj,isForegroundChange=False,needsFocusState=True): if not obj: return if obj.role==controlTypes.ROLE_UNKNOWN: parent=NVDAObjects.IAccessible.IAccessible._get_parent(obj) if parent: return focus_manageEvent(parent,isForegroundChange,False) if isForegroundChange: api.setForegroundObject(obj) speech...
b4e9600f137ef3dcfea8b82a2bad3cefbdffb273 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/b4e9600f137ef3dcfea8b82a2bad3cefbdffb273/IAccessibleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7155, 67, 12633, 1133, 12, 2603, 16, 291, 23206, 3043, 33, 8381, 16, 20600, 9233, 1119, 33, 5510, 4672, 309, 486, 1081, 30, 327, 309, 1081, 18, 4615, 631, 7098, 2016, 18, 16256, 67, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7155, 67, 12633, 1133, 12, 2603, 16, 291, 23206, 3043, 33, 8381, 16, 20600, 9233, 1119, 33, 5510, 4672, 309, 486, 1081, 30, 327, 309, 1081, 18, 4615, 631, 7098, 2016, 18, 16256, 67, 14...
TabPageLayout_5.addLayout(layout68_3,1,0)
TabPageLayout_6.addLayout(layout68_3,1,0)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
7cc18611a6df93ebc9707a8878e31fb8451f8ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7cc18611a6df93ebc9707a8878e31fb8451f8ff6/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, ...
logger.debug("removing known segment_definer row for key %s"
ligomd.table['segment_definer']['stream'].pop(row_idx) logger.debug("removed known segment_definer row for key %s"
uniq_def = (row[run_col],row[ifos_col],row[name_col],row[vers_col])
7a2ab3694e834d974558409a5d3f61863f4de6ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/7a2ab3694e834d974558409a5d3f61863f4de6ee/LDBDServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 10748, 67, 536, 273, 261, 492, 63, 2681, 67, 1293, 6487, 492, 63, 430, 538, 67, 1293, 6487, 492, 63, 529, 67, 1293, 6487, 492, 63, 2496, 67, 1293, 5717, 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, 10748, 67, 536, 273, 261, 492, 63, 2681, 67, 1293, 6487, 492, 63, 430, 538, 67, 1293, 6487, 492, 63, 529, 67, 1293, 6487, 492, 63, 2496, 67, 1293, 5717, 2, -100, -100, -100, -100, -100, -1...
self.deferred.callback("SIG%s: exitCode is %s, not None" %
self.deferred.callback("SIG%s: exitCode is %s, not None" %
def processEnded(self, reason): if not reason.check(error.ProcessTerminated): self.deferred.callback("wrong termination: %s" % reason) return v = reason.value if v.exitCode is not None: self.deferred.callback("SIG%s: exitCode is %s, not None" % (self.signal, v.exitCode)) return if v.signal != getattr(signal,'SIG'+self....
15d81dd756fc73c4c28f309ec1d38e81ac5b83f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12595/15d81dd756fc73c4c28f309ec1d38e81ac5b83f7/test_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 28362, 12, 2890, 16, 3971, 4672, 309, 486, 3971, 18, 1893, 12, 1636, 18, 2227, 21888, 4672, 365, 18, 26622, 18, 3394, 2932, 21530, 19650, 30, 738, 87, 6, 738, 3971, 13, 327, 331,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 28362, 12, 2890, 16, 3971, 4672, 309, 486, 3971, 18, 1893, 12, 1636, 18, 2227, 21888, 4672, 365, 18, 26622, 18, 3394, 2932, 21530, 19650, 30, 738, 87, 6, 738, 3971, 13, 327, 331,...
print "We don't have enough builds to bisect. revlist: %s" % revlist
print 'We don\'t have enough builds to bisect. revlist: %s' % revlist
def main(): usage = ('%prog [options] [-- chromium-options]\n' 'Perform binary search on the snapshot builds.') parser = optparse.OptionParser(usage=usage) # Strangely, the default help output doesn't include the choice list. choices = ['mac', 'xp', 'linux', 'linux-64'] parser.add_option('-a', '--archive', choices = ch...
02d09ff36aee01d534a3b286ed0ea9934b6b02d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/02d09ff36aee01d534a3b286ed0ea9934b6b02d7/build-bisect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 7707, 9, 14654, 306, 2116, 65, 306, 413, 8123, 5077, 17, 2116, 13944, 82, 11, 296, 4990, 3112, 1623, 603, 326, 4439, 10736, 1093, 13, 2082, 273, 2153, 2670, 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, 2774, 13332, 4084, 273, 7707, 9, 14654, 306, 2116, 65, 306, 413, 8123, 5077, 17, 2116, 13944, 82, 11, 296, 4990, 3112, 1623, 603, 326, 4439, 10736, 1093, 13, 2082, 273, 2153, 2670, 18, ...
if not rep_err:
if rep_err:
def handle_exception(exc_info, conf, error_stream, html=True): """ You can also use exception handling outside of a web context, like:: import sys import paste import paste.error_middleware try: do stuff except: paste.error_middleware.exception_handler( sys.exc_info(), paste.CONFIG, sys.stderr, html=False) If you wan...
edfa568c3c0d14678c4445912ce23b14afdb4c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/edfa568c3c0d14678c4445912ce23b14afdb4c21/errormiddleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 2195, 16, 555, 67, 3256, 16, 1729, 33, 5510, 4672, 3536, 4554, 848, 2546, 999, 1520, 5057, 8220, 434, 279, 3311, 819, 16, 3007, 2866, 225, 1930...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 2195, 16, 555, 67, 3256, 16, 1729, 33, 5510, 4672, 3536, 4554, 848, 2546, 999, 1520, 5057, 8220, 434, 279, 3311, 819, 16, 3007, 2866, 225, 1930...
def action(env, target, source):
def action(env, target, source, exc=exc):
def action(env, target, source): raise exc
66760f7533670f207386c3051236b5ab13b6d122 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/66760f7533670f207386c3051236b5ab13b6d122/serial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 3074, 16, 1018, 16, 1084, 16, 3533, 33, 10075, 4672, 1002, 3533, 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, 1301, 12, 3074, 16, 1018, 16, 1084, 16, 3533, 33, 10075, 4672, 1002, 3533, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
EXAMPLES:
EXAMPLES::
def WeylCharacterRing(ct, base_ring=ZZ, prefix=None, cache=False, style="lattice"): r""" A class for rings of Weyl characters. The Weyl character is a character of a semisimple (or reductive) Lie group or algebra. They form a ring, in which the addition and multiplication correspond to direct sum and tensor product of ...
a164141dcaca9c673844b5041591f614ac6a8207 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a164141dcaca9c673844b5041591f614ac6a8207/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 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, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 6...
send_pretty_error(e, env, req)
try: send_pretty_error(e, env, req) except socket.error, (code, msg): if code == errno.EPIPE or code == 10053: self.log_message('Lost connection to client: %s', self.address_string()) else: raise
def do_trac_req(self): m = self.url_re.findall(self.path) if not m: self.send_error(400, 'Bad Request') return project_name, path_info, query_string = m[0] if not self.server.projects.has_key(project_name): self.send_error(404, 'Not Found') return path_info = urllib.unquote(path_info) env = self.server.projects[project...
e5a8b720df524623ada8d87401e23d0d3e5205ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/e5a8b720df524623ada8d87401e23d0d3e5205ac/standalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 313, 1077, 67, 3658, 12, 2890, 4672, 312, 273, 365, 18, 718, 67, 266, 18, 4720, 454, 12, 2890, 18, 803, 13, 309, 486, 312, 30, 365, 18, 4661, 67, 1636, 12, 16010, 16, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 313, 1077, 67, 3658, 12, 2890, 4672, 312, 273, 365, 18, 718, 67, 266, 18, 4720, 454, 12, 2890, 18, 803, 13, 309, 486, 312, 30, 365, 18, 4661, 67, 1636, 12, 16010, 16, 296,...
global_conf,
global_conf=None,
def middleware( application, global_conf, http_login=False, http_realm='Secure Website', http_overwrite_realm=True, http_and_cookie=True, cookie_prefix='', login_page='_login/login_form', logout_page='_login/logout_form', secret=None, authenticator=None, ): """ Configuration: http_login: If true, then we'll prefer HTT...
11c0b5e9080fa549903fd37d5173921229e9f876 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/11c0b5e9080fa549903fd37d5173921229e9f876/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5827, 12, 2521, 16, 2552, 67, 3923, 33, 7036, 16, 1062, 67, 5819, 33, 8381, 16, 1062, 67, 24056, 2218, 12834, 1660, 12343, 2187, 1062, 67, 19274, 67, 24056, 33, 5510, 16, 1062, 67, 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, 5827, 12, 2521, 16, 2552, 67, 3923, 33, 7036, 16, 1062, 67, 5819, 33, 8381, 16, 1062, 67, 24056, 2218, 12834, 1660, 12343, 2187, 1062, 67, 19274, 67, 24056, 33, 5510, 16, 1062, 67, 464...
while 1:
while True:
def _do_cmp(f1, f2): bufsize = BUFSIZE fp1 = open(f1, 'rb') fp2 = open(f2, 'rb') while 1: b1 = fp1.read(bufsize) b2 = fp2.read(bufsize) if b1 != b2: return 0 if not b1: return 1
96a007422f48d730fd5c8fff2baba32db87faf76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/96a007422f48d730fd5c8fff2baba32db87faf76/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 9625, 12, 74, 21, 16, 284, 22, 4672, 1681, 1467, 273, 10937, 42, 4574, 4253, 21, 273, 1696, 12, 74, 21, 16, 296, 6731, 6134, 4253, 22, 273, 1696, 12, 74, 22, 16, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 9625, 12, 74, 21, 16, 284, 22, 4672, 1681, 1467, 273, 10937, 42, 4574, 4253, 21, 273, 1696, 12, 74, 21, 16, 296, 6731, 6134, 4253, 22, 273, 1696, 12, 74, 22, 16, 296...
self._data_channel.send(notification.data)
self._data_channel.send(notification)
def _NH_SIPRegistrationDidEnd(self, notification): self._data_channel.send(notification.data)
acf3defabaf48767a177cbf61b78e3f5f810ebf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/acf3defabaf48767a177cbf61b78e3f5f810ebf3/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 7843, 18250, 1638, 12, 2890, 16, 3851, 4672, 365, 6315, 892, 67, 4327, 18, 4661, 12, 9927, 18, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 7843, 18250, 1638, 12, 2890, 16, 3851, 4672, 365, 6315, 892, 67, 4327, 18, 4661, 12, 9927, 18, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
log(1, 'Generated C++ headers will be generated relative to "%s"', headersdir) log(1, 'Generated C++ sources will be generated in "%s"', cppdir)
log(2, 'Generated C++ headers will be generated relative to "%s"', headersdir) log(2, 'Generated C++ sources will be generated in "%s"', cppdir)
def log(minv, fmt, *args): if _verbosity >= minv: print >>sys.stderr, fmt % args
944f67b9f5694da6afa997f7d30c34d1bccb00f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/944f67b9f5694da6afa997f7d30c34d1bccb00f4/ipdl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 1154, 90, 16, 1325, 16, 380, 1968, 4672, 309, 389, 16629, 8807, 1545, 1131, 90, 30, 1172, 1671, 9499, 18, 11241, 16, 1325, 738, 833, 225, 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, 0, 0, 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, 613, 12, 1154, 90, 16, 1325, 16, 380, 1968, 4672, 309, 389, 16629, 8807, 1545, 1131, 90, 30, 1172, 1671, 9499, 18, 11241, 16, 1325, 738, 833, 225, 2, -100, -100, -100, -100, -100, -100...
counter = 1
def create_record(msg): if hasattr(model_pool, 'message_new'): res_id = model_pool.message_new(cr, uid, msg, context) else: data = { 'name': msg.get('subject'), 'email_from': msg.get('from'), 'email_cc': msg.get('cc'), 'user_id': False, 'description': msg.get('body'), 'state' : 'draft', } data.update(self.get_partner(c...
25f3c114cde830404ca9430e1cd75cadc8bfd6fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/25f3c114cde830404ca9430e1cd75cadc8bfd6fd/mail_gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3366, 12, 3576, 4672, 309, 3859, 12, 2284, 67, 6011, 16, 296, 2150, 67, 2704, 11, 4672, 400, 67, 350, 273, 938, 67, 6011, 18, 2150, 67, 2704, 12, 3353, 16, 4555, 16, 1234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3366, 12, 3576, 4672, 309, 3859, 12, 2284, 67, 6011, 16, 296, 2150, 67, 2704, 11, 4672, 400, 67, 350, 273, 938, 67, 6011, 18, 2150, 67, 2704, 12, 3353, 16, 4555, 16, 1234, ...
for line in os.popen('sysctl -a hw machdep').readlines():
for line in commands.getoutput('sysctl -a hw machdep').split('\n'):
def get_host_info(self): import platform host_info = {} # uname = (system,node,release,version,machine,processor) uname = platform.uname() host_info['os'] = uname[0] if host_info['os'] == 'Linux': # Get CPU related data cpuinfo = open('/proc/cpuinfo','r').readlines() cpus = 0 for line in cpuinfo: if 'processor' in li...
cd5be9f8cccdcc803a5ca5c61255089c839087a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd5be9f8cccdcc803a5ca5c61255089c839087a4/hostinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2564, 67, 1376, 12, 2890, 4672, 1930, 4072, 1479, 67, 1376, 273, 2618, 468, 225, 31444, 273, 261, 4299, 16, 2159, 16, 9340, 16, 1589, 16, 9149, 16, 8700, 13, 31444, 273, 4072,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2564, 67, 1376, 12, 2890, 4672, 1930, 4072, 1479, 67, 1376, 273, 2618, 468, 225, 31444, 273, 261, 4299, 16, 2159, 16, 9340, 16, 1589, 16, 9149, 16, 8700, 13, 31444, 273, 4072,...
dc.SetFont(self.stc.GetFont()) start_pos, end_pos = self.getPositionsOfPage(page) render_rect = wx.Rect(self.x1, self.y1, 32000, self.y2) page_rect = wx.Rect(self.x1, self.y1, self.x2, self.y2) self.stc.SetPrintColourMode(self.print_mode) edge_mode = self.stc.GetEdgeMode() self.stc.SetEdgeMode(wx.stc.STC_EDGE_NON...
def OnPrintPage(self, page): """Scales and Renders the page to a DC and prints it @param page: page number to print
4bebb256853615ba19e6f179b242b1cab3934f85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/4bebb256853615ba19e6f179b242b1cab3934f85/stcprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5108, 1964, 12, 2890, 16, 1363, 4672, 3536, 55, 21177, 471, 534, 10130, 326, 1363, 358, 279, 21533, 471, 14971, 518, 632, 891, 1363, 30, 1363, 1300, 358, 1172, 2, 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, 2755, 5108, 1964, 12, 2890, 16, 1363, 4672, 3536, 55, 21177, 471, 534, 10130, 326, 1363, 358, 279, 21533, 471, 14971, 518, 632, 891, 1363, 30, 1363, 1300, 358, 1172, 2, -100, -100, -100,...
if self.verbose:
if self.verbosity>0:
def get_info(self): """ Return a dictonary with items that are compatible with scipy_distutils.setup keyword arguments. """ flag = 0 if not self.has_info(): flag = 1 if self.verbose: print self.__class__.__name__ + ':' if hasattr(self, 'calc_info'): self.calc_info() if self.verbose: if not self.has_info(): print ' NOT...
11cffa55fceeda7a779a5a596b22fb98270f22b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/11cffa55fceeda7a779a5a596b22fb98270f22b8/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1376, 12, 2890, 4672, 3536, 2000, 279, 2065, 265, 814, 598, 1516, 716, 854, 7318, 598, 10966, 67, 4413, 5471, 18, 8401, 4932, 1775, 18, 3536, 2982, 273, 374, 309, 486, 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, 336, 67, 1376, 12, 2890, 4672, 3536, 2000, 279, 2065, 265, 814, 598, 1516, 716, 854, 7318, 598, 10966, 67, 4413, 5471, 18, 8401, 4932, 1775, 18, 3536, 2982, 273, 374, 309, 486, 365, 18...
environ)
environ, view_uri)
def detect_start_response(status, headers, exc_info=None): try: return start_response(status, headers, exc_info) except: raise else: started.append(True)
82b170ea9a75b0f4370d4f07a2c6b03da7d39bff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/82b170ea9a75b0f4370d4f07a2c6b03da7d39bff/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 775, 30, 327, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 13, 1335, 30, 1002, 469, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 775, 30, 327, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 13, 1335, 30, 1002, 469, 30, ...
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
a808f69eab0ba4b4ffd8ff6c59c040174ee156d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a808f69eab0ba4b4ffd8ff6c59c040174ee156d6/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
def _start_response(self, *args, **kw): pass
def _start_response(self, code, headers): if not code == "200 OK": raise Exception('RPC call returned HTTP error: %s' % code)
def _start_response(self, *args, **kw): pass
f25f3e942b0d443ee9d1245926a7689d7623f010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14630/f25f3e942b0d443ee9d1245926a7689d7623f010/test_jsonrpc_wsgi_application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 2740, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 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, 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, 389, 1937, 67, 2740, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
rsync_exit = rsync_p.wait()
rsync_exit = os.WEXITSTATUS(rsync_p.wait())
def rsync_to_xs(from_path, to_path, keyfile, user): # add a trailing slash to ensure # that we don't generate a subdir # at the remote end. rsync oddities... if not re.compile('/$').search(from_path): from_path = from_path + '/' ssh = '/usr/bin/ssh -F /dev/null -o "PasswordAuthentication no" -i "%s" -l "%s"' \ % (key...
7ccf9331a585948e64c58234f9e6f35ddf9013d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9380/7ccf9331a585948e64c58234f9e6f35ddf9013d0/ds_backup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3597, 1209, 67, 869, 67, 13713, 12, 2080, 67, 803, 16, 358, 67, 803, 16, 28632, 16, 729, 4672, 225, 468, 527, 279, 7341, 9026, 358, 3387, 468, 716, 732, 2727, 1404, 2103, 279, 16921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3597, 1209, 67, 869, 67, 13713, 12, 2080, 67, 803, 16, 358, 67, 803, 16, 28632, 16, 729, 4672, 225, 468, 527, 279, 7341, 9026, 358, 3387, 468, 716, 732, 2727, 1404, 2103, 279, 16921, ...
return (h(driver.get_jitcell_at, driver.greens, **kwds_s) and h(driver.set_jitcell_at, driver.greens, [s_jitcell], **kwds_s) and h(driver.get_printable_location, driver.greens, **kwds_s))
h(driver.get_jitcell_at, driver.greens, **kwds_s) h(driver.set_jitcell_at, driver.greens, [s_jitcell], **kwds_s) h(driver.get_printable_location, driver.greens, **kwds_s)
def annotate_hooks(self, **kwds_s): driver = self.instance.im_self s_jitcell = self.bookkeeper.valueoftype(BaseJitCell) h = self.annotate_hook return (h(driver.get_jitcell_at, driver.greens, **kwds_s) and h(driver.set_jitcell_at, driver.greens, [s_jitcell], **kwds_s) and h(driver.get_printable_location, driver.greens, ...
cfca385a3ea1990aeed90a0f23b338518939ac63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/cfca385a3ea1990aeed90a0f23b338518939ac63/jit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 67, 10468, 12, 2890, 16, 2826, 25577, 67, 87, 4672, 3419, 273, 365, 18, 1336, 18, 381, 67, 2890, 272, 67, 78, 305, 3855, 273, 365, 18, 3618, 79, 9868, 18, 1132, 792, 723, 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, 13795, 67, 10468, 12, 2890, 16, 2826, 25577, 67, 87, 4672, 3419, 273, 365, 18, 1336, 18, 381, 67, 2890, 272, 67, 78, 305, 3855, 273, 365, 18, 3618, 79, 9868, 18, 1132, 792, 723, 12, ...
if runMythtranscode(chanid, starttime, os.path.join(folder,'tmp'), True, localfile): mediafile = os.path.join(folder,'tmp')
if runMythtranscode(chanid, starttime, os.path.join(folder,'newfile.mpg'), True, localfile): mediafile = os.path.join(folder,'newfile.mpg')
def doProcessFile(file, folder): """Process a single video/recording file ready for burning.""" write( "*************************************************************") write( "Processing file " + file.attributes["filename"].value + " of type " + file.attributes["type"].value) write( "**********************************...
d7d780b176df7d4b00b6b9ac53b091f2e8a69296 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/d7d780b176df7d4b00b6b9ac53b091f2e8a69296/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2227, 812, 12, 768, 16, 3009, 4672, 3536, 2227, 279, 2202, 6191, 19, 3366, 310, 585, 5695, 364, 18305, 310, 12123, 225, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 1045, 12, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2227, 812, 12, 768, 16, 3009, 4672, 3536, 2227, 279, 2202, 6191, 19, 3366, 310, 585, 5695, 364, 18305, 310, 12123, 225, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 1045, 12, 315, ...
meta_to_stdout(document) text_to_stdout(document)
if opts.meta: dump(document.get_formated_meta(), stdout) dump(document.get_formated_text(), stdout)
def spreadsheet_to_csv(document, target): body = document.get_body() for table_element in body.get_table_list(): table = odf_table(odf_element=table_element) name = table.get_tagname() filename = clean_filename(name) + '.csv' csv_file = target.open(filename, 'w') table.export_to_csv(csv_file) csv_file.close()
d034f1988e9ff2b616b9b451dfe7a72ede62b474 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/d034f1988e9ff2b616b9b451dfe7a72ede62b474/lpod-show.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30775, 67, 869, 67, 6715, 12, 5457, 16, 1018, 4672, 1417, 273, 1668, 18, 588, 67, 3432, 1435, 364, 1014, 67, 2956, 316, 1417, 18, 588, 67, 2121, 67, 1098, 13332, 1014, 273, 320, 2180, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30775, 67, 869, 67, 6715, 12, 5457, 16, 1018, 4672, 1417, 273, 1668, 18, 588, 67, 3432, 1435, 364, 1014, 67, 2956, 316, 1417, 18, 588, 67, 2121, 67, 1098, 13332, 1014, 273, 320, 2180, ...
gobject.type_register(HPaned) self.register_signals(HPaned)
def __init__(self): """Class initialiser""" self.terminator = Terminator() self.cnxids = {} self.signals.append({'name': 'resize-term', 'flags': gobject.SIGNAL_RUN_LAST, 'return_type': gobject.TYPE_NONE, 'param_types': (gobject.TYPE_STRING,)})
f566d5b0c20584f1e6d80dd007f8c274275d92d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/f566d5b0c20584f1e6d80dd007f8c274275d92d0/paned.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 797, 2172, 15914, 8395, 365, 18, 9505, 639, 273, 6820, 4240, 1435, 365, 18, 10305, 92, 2232, 273, 2618, 365, 18, 29659, 18, 6923, 12590, 11, 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, 1001, 2738, 972, 12, 2890, 4672, 3536, 797, 2172, 15914, 8395, 365, 18, 9505, 639, 273, 6820, 4240, 1435, 365, 18, 10305, 92, 2232, 273, 2618, 365, 18, 29659, 18, 6923, 12590, 11, 529, ...
if name != None or len( name ) > 0:
name = name.strip() if name == None or len( name ) == 0 or name == "": return True else:
def areaLeaveMessage( socket, name ): if name != None or len( name ) > 0: socket.sysmessage( "You have left %s." % name ) return True
431d10a8f5ac2aa2951cb11231bd8a40e989e98c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/431d10a8f5ac2aa2951cb11231bd8a40e989e98c/regionchange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5091, 21300, 1079, 12, 2987, 16, 508, 262, 30, 508, 273, 508, 18, 6406, 1435, 309, 508, 422, 599, 578, 562, 12, 508, 262, 422, 374, 578, 508, 422, 1408, 30, 327, 1053, 469, 30, 2987,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5091, 21300, 1079, 12, 2987, 16, 508, 262, 30, 508, 273, 508, 18, 6406, 1435, 309, 508, 422, 599, 578, 562, 12, 508, 262, 422, 374, 578, 508, 422, 1408, 30, 327, 1053, 469, 30, 2987,...
sage: R.<a,b,c> = ZZ['a','b','c'] sage: I = R.ideal(a,b) sage: Q = R.quotient_ring(I)
sage: R.quo(x^2 - y^2).is_integral_domain(proof=False) False sage: R.<a,b,c> = ZZ[] sage: Q = R.quotient_ring([a, b])
def is_integral_domain(self, proof = True): r""" If this function returns ``True`` then self is definitely an integral domain. If it returns ``False``, then either self is definitely not an integral domain or this function was unable to determine whether or not self is an integral domain. Use ``self.defining_ideal().i...
7ed9595a85a12f0211561d84e6407965a64cb54a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7ed9595a85a12f0211561d84e6407965a64cb54a/quotient_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 14970, 23811, 67, 4308, 12, 2890, 16, 14601, 273, 1053, 4672, 436, 8395, 971, 333, 445, 1135, 12176, 5510, 10335, 1508, 365, 353, 2217, 25818, 392, 21423, 2461, 18, 971, 518, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 14970, 23811, 67, 4308, 12, 2890, 16, 14601, 273, 1053, 4672, 436, 8395, 971, 333, 445, 1135, 12176, 5510, 10335, 1508, 365, 353, 2217, 25818, 392, 21423, 2461, 18, 971, 518, 11...
def f0C(self, n1, n2):
def f09(self, n1, n2):
def f0C(self, n1, n2): return n1 + n2
7eba157adce404243eac81b4d40f252393526f0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3322/7eba157adce404243eac81b4d40f252393526f0a/db_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 5908, 12, 2890, 16, 290, 21, 16, 290, 22, 4672, 327, 290, 21, 397, 290, 22, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 284, 5908, 12, 2890, 16, 290, 21, 16, 290, 22, 4672, 327, 290, 21, 397, 290, 22, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
list3 += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: list3 += [re.sub(" .*", "", entry)] f = codecs.open('copyright/exclusion_list.txt', 'r','utf-8') list3 += re.sub(" ?
result_list += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: result_list += [re.sub(" .*", "", entry)] result_list += read_file(appdir + 'exclusion_list.txt', cut_comment = True).splitlines() return result_list def read_file(filename, cut_comment = False): text = u"" f = codecs.open(filename, 'r','utf-8') text ...
def exclusion_list(): prelist = [] load_pages() for page, path in exclusion_file_list(): f = codecs.open(path, "r", 'utf-8') data = f.read() f.close() # wikipedia:en:Wikipedia:Mirrors and forks prelist += re.findall("(?i)url\s*=\s*<nowiki>(?:http://)?(.*?)</nowiki>", data) prelist += re.findall("(?i)\*\s*Site:\s*\[?(?:...
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21244, 67, 1098, 13332, 675, 1098, 273, 5378, 1262, 67, 7267, 1435, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 284, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21244, 67, 1098, 13332, 675, 1098, 273, 5378, 1262, 67, 7267, 1435, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 284, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 296...
class CircleFactory(GraphicPrimitiveFactory_circle):
class CircleFactory(GraphicPrimitiveFactory):
def _from_xdata_ydata(self, ind, datalist, xrange, yrange, options): g = Graphics() #TODO: improve below for multiple data sets! #cnt = 1 #for ind, pnts, xrange, yrange in bardata: #options={'rgbcolor':hue(cnt/dl),'width':0.5/dl} # g._bar_chart(ind, pnts, xrange, yrange, options=options) # cnt += 1 #else: g._bar_...
6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 1547, 16, 18462, 376, 16, 12314, 16, 677, 3676, 16, 702, 4672, 314, 273, 16830, 1435, 468, 6241, 30, 21171, 5712, 364, 3229, 501, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 1547, 16, 18462, 376, 16, 12314, 16, 677, 3676, 16, 702, 4672, 314, 273, 16830, 1435, 468, 6241, 30, 21171, 5712, 364, 3229, 501, 1...
now = datetime.datetime.now()
now = datetime.datetime.now()
def testDate(self): with JSContext() as ctxt: now1 = ctxt.eval("new Date();") self.assert_(now1) now2 = datetime.datetime.utcnow() delta = now2 - now1 if now2 > now1 else now1 - now2 self.assert_(delta < datetime.timedelta(seconds=1)) func = ctxt.eval("(function (d) { return d.toString(); })") now = datetime.date...
39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1626, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 14286, 30, 2037, 21, 273, 14286, 18, 8622, 2932, 2704, 2167, 26994, 13, 225, 365, 18, 11231, 67, 12, 3338, 21, 13, 225, 2037, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1626, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 14286, 30, 2037, 21, 273, 14286, 18, 8622, 2932, 2704, 2167, 26994, 13, 225, 365, 18, 11231, 67, 12, 3338, 21, 13, 225, 2037, 22...
self.mark_mipmap_dirty(tx, ty, t)
assert self.mipmap_level == 0 self.mark_mipmap_dirty(tx, ty)
def get_tile_memory(self, tx, ty, readonly): # copy-on-write for readonly tiles # OPTIMIZE: do some profiling to check if this function is a bottleneck # yes it is # Note: we must return memory that stays valid for writing until the # last end_atomic(), because of the caching in tiledsurface.hpp. t = self.til...
ff4732cd4946b295d6a939c9984ef1ab05967962 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/ff4732cd4946b295d6a939c9984ef1ab05967962/tiledsurface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15368, 67, 7858, 12, 2890, 16, 2229, 16, 13806, 16, 17102, 4672, 468, 1610, 17, 265, 17, 2626, 364, 17102, 12568, 468, 16456, 3445, 15641, 30, 741, 2690, 25658, 358, 866, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15368, 67, 7858, 12, 2890, 16, 2229, 16, 13806, 16, 17102, 4672, 468, 1610, 17, 265, 17, 2626, 364, 17102, 12568, 468, 16456, 3445, 15641, 30, 741, 2690, 25658, 358, 866, 309, ...
print 'Remembering subdirectory', filename
print 'Remembering subdirectory', `filename`
def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open...
ace1e022e9566ad27920d0be67da64be4caffff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ace1e022e9566ad27920d0be67da64be4caffff3/ftpmirror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 117...
class POLYLINE(POLYBEZIER):
class _POLYLINE(_POLYBEZIER):
def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.aptl)) return txt.getvalue()
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 1657, 80, 3719, 225, 327, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 1657, 80, 3719, 225, 327, 64...
fvecp = atleast_1d(fcn(xp))
fvecp = atleast_1d(fcn(xp,*args))
def check_gradient(fcn,Dfcn,x0,col_deriv=0): """Perform a simple check on the gradient for correctness. """ x = atleast_1d(x0) n = len(x) x.shape = (n,) fvec = atleast_1d(fcn(x)) if 1 not in fvec.shape: raise ValueError, "Function does not return a 1-D array." m = len(fvec) fvec.shape = (m,) ldfjac = m fjac = atleast_...
e8035e8d7cfa2696816dcfe7607a81878f53a57b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/e8035e8d7cfa2696816dcfe7607a81878f53a57b/minpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 20219, 12, 7142, 82, 16, 40, 7142, 82, 16, 92, 20, 16, 1293, 67, 20615, 33, 20, 4672, 3536, 4990, 279, 4143, 866, 603, 326, 10292, 364, 3434, 4496, 18, 3536, 225, 619, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 20219, 12, 7142, 82, 16, 40, 7142, 82, 16, 92, 20, 16, 1293, 67, 20615, 33, 20, 4672, 3536, 4990, 279, 4143, 866, 603, 326, 10292, 364, 3434, 4496, 18, 3536, 225, 619, 273, ...
if not self._loadingFromXML and not self._modified:
if not self._loadingFromXML:
def _objectChanged(self, sender): if not self._loadingFromXML and not self._modified: self._updateGraph(sender) self._modified = True dispatcher.send(('set', 'modified'), self)
aa75b641620c915ab0c0e922b122a0b191cb2409 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/aa75b641620c915ab0c0e922b122a0b191cb2409/network.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1612, 5033, 12, 2890, 16, 5793, 4672, 309, 486, 365, 6315, 15174, 1265, 4201, 30, 365, 6315, 2725, 4137, 12, 15330, 13, 365, 6315, 7342, 273, 1053, 7393, 18, 4661, 12, 2668, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1612, 5033, 12, 2890, 16, 5793, 4672, 309, 486, 365, 6315, 15174, 1265, 4201, 30, 365, 6315, 2725, 4137, 12, 15330, 13, 365, 6315, 7342, 273, 1053, 7393, 18, 4661, 12, 2668, 542, ...
text = text.replace('\n', '\mbox{}\\\\')
text = text.replace('\n', '\mbox{}\\\\{}')
def encode(self, text, attval=None): """ Encode special characters in ``text`` and return it.
e5447d1b2a8e64e6e14c45c402c9b100fc120c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/e5447d1b2a8e64e6e14c45c402c9b100fc120c53/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 977, 16, 2403, 1125, 33, 7036, 4672, 3536, 6240, 4582, 3949, 316, 12176, 955, 10335, 471, 327, 518, 18, 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, 2017, 12, 2890, 16, 977, 16, 2403, 1125, 33, 7036, 4672, 3536, 6240, 4582, 3949, 316, 12176, 955, 10335, 471, 327, 518, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
$(this).parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id);
$self.parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id);
def __call__(self, request=None, response=None): """ Returns global configuration of the Flowplayer taken from portal_properties """ self.update() self.request.response.setHeader("Content-type", "text/javascript") return """(function($) { $(function() { $('.autoFlowPlayer').each(function() { var config = %(config)s; i...
6325b369cd48626ccdf5f7d0a299fc35cf6d8690 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10573/6325b369cd48626ccdf5f7d0a299fc35cf6d8690/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 3536, 2860, 2552, 1664, 434, 326, 9473, 14872, 9830, 628, 11899, 67, 4738, 3536, 365, 18, 2725, 1435, 365, 18, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 3536, 2860, 2552, 1664, 434, 326, 9473, 14872, 9830, 628, 11899, 67, 4738, 3536, 365, 18, 2725, 1435, 365, 18, 22...
def join(a, b): if isabs(b): return b if a == '' or a[-1:] in '/\\': return a + b return a + os.sep + b
def join(a, *p): path = a for b in p: if isabs(b): path = b elif path == '' or path[-1:] in '/\\': path = path + b else: path = path + os.sep + b return path
def isabs(s): s = splitdrive(s)[1] return s != '' and s[:1] in '/\\'
0f0b31022413145aa92ee61b6ae46482b4e1c46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0f0b31022413145aa92ee61b6ae46482b4e1c46b/dospath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31567, 12, 87, 4672, 272, 273, 1416, 25431, 12, 87, 25146, 21, 65, 327, 272, 480, 875, 471, 272, 10531, 21, 65, 316, 1173, 10471, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31567, 12, 87, 4672, 272, 273, 1416, 25431, 12, 87, 25146, 21, 65, 327, 272, 480, 875, 471, 272, 10531, 21, 65, 316, 1173, 10471, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100...
elif n == 2:
elif number == 2:
def circle_card(self, n, style, stroke, fill): svg_string = "" if n == 1: svg_string += self._svg_donut(45.5, style, stroke, fill) elif n == 2: svg_string += self._svg_donut(25.5, style, stroke, fill) svg_string += self._svg_donut(65.5, style, stroke, fill) else: svg_string += self._svg_donut( 5.5, style, stroke, fill)...
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12470, 67, 3327, 12, 2890, 16, 290, 16, 2154, 16, 11040, 16, 3636, 4672, 9804, 67, 1080, 273, 1408, 309, 290, 422, 404, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 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, 12470, 67, 3327, 12, 2890, 16, 290, 16, 2154, 16, 11040, 16, 3636, 4672, 9804, 67, 1080, 273, 1408, 309, 290, 422, 404, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 19752, 322, 12, ...
N = int(G.level()) SQN = int(sqrt(N)) v = { 1: [1] } for d in [x for x in divisors(N) if x > 1 and x <= SQN]:
N = G.level() v = { 1: [1] , N: H } for d in [x for x in divisors(N) if x > 1 and x < N ]:
def _coset_reduction_data_second_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5/congroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 8538, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 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, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 8538, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
raise TableDBError, dberror[1]
raise TableDBError, dberror.args[1]
def Delete(self, table, conditions={}): """Delete(table, conditions) - Delete items matching the given conditions from the table.
d84da1b67a12df114de2f76e0644174f07f2c834 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/d84da1b67a12df114de2f76e0644174f07f2c834/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 12, 2890, 16, 1014, 16, 4636, 12938, 4672, 3536, 2613, 12, 2121, 16, 4636, 13, 300, 2504, 1516, 3607, 326, 864, 4636, 628, 326, 1014, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 2504, 12, 2890, 16, 1014, 16, 4636, 12938, 4672, 3536, 2613, 12, 2121, 16, 4636, 13, 300, 2504, 1516, 3607, 326, 864, 4636, 628, 326, 1014, 18, 2, -100, -100, -100, -100, -100, -100, -...
return True
return True
def hasEvaluation(self, student, activity): """See interfaces.IGradebook""" student = self._checkStudent(student) activity = self._checkActivity(activity) if activity in requirement.interfaces.IEvaluations(student): return True return False
5fb5e9b9b993944018b200879c2f4defdcd38273 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5fb5e9b9b993944018b200879c2f4defdcd38273/gradebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 13468, 12, 2890, 16, 18110, 16, 5728, 4672, 3536, 9704, 7349, 18, 3047, 354, 323, 3618, 8395, 18110, 273, 365, 6315, 1893, 19943, 319, 12, 26240, 13, 5728, 273, 365, 6315, 1893, 619...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 711, 13468, 12, 2890, 16, 18110, 16, 5728, 4672, 3536, 9704, 7349, 18, 3047, 354, 323, 3618, 8395, 18110, 273, 365, 6315, 1893, 19943, 319, 12, 26240, 13, 5728, 273, 365, 6315, 1893, 619...
return SMTPProtcolError(code, resp, str(self.log))
return SMTPProtocolError(code, resp, str(self.log))
def smtpTransferFailed(self, code, resp): if code < 0: # protocol error return SMTPProtcolError(code, resp, str(self.log)) return self.smtpState_msgSent(code, resp)
8dc1bca02ccb5a35ef89e1b4422d67a7c2a7809d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8dc1bca02ccb5a35ef89e1b4422d67a7c2a7809d/smtp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17660, 5912, 2925, 12, 2890, 16, 981, 16, 1718, 4672, 309, 981, 411, 374, 30, 468, 1771, 555, 327, 18102, 5752, 668, 12, 710, 16, 1718, 16, 609, 12, 2890, 18, 1330, 3719, 327, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17660, 5912, 2925, 12, 2890, 16, 981, 16, 1718, 4672, 309, 981, 411, 374, 30, 468, 1771, 555, 327, 18102, 5752, 668, 12, 710, 16, 1718, 16, 609, 12, 2890, 18, 1330, 3719, 327, 365, 1...
def reportDeadPort(self): port = self.state.udp_port self.showLoginStatus("*** UDP PORT FORWARD REQUIRED ***") text = ( "In order for Dtella to communicate properly, it needs to " "receive UDP traffic from the Internet. Dtella is currently " "listening on UDP port %d, but the packets appear to be " "getting block...
def logPacket(self, text): raise NotImplemented("Override me!")
8d980de00f93c12efa85a999af305b3ee34268d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/8d980de00f93c12efa85a999af305b3ee34268d5/dtella_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 6667, 12, 2890, 16, 977, 4672, 1002, 10051, 2932, 6618, 1791, 4442, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 613, 6667, 12, 2890, 16, 977, 4672, 1002, 10051, 2932, 6618, 1791, 4442, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def close_all (map=None):
def close_all(map=None):
def close_all (map=None): if map is None: map=socket_map for x in map.values(): x.socket.close() map.clear()
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 67, 454, 12, 1458, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 364, 619, 316, 852, 18, 2372, 13332, 619, 18, 7814, 18, 4412, 1435, 852, 18, 8507, 1435, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 67, 454, 12, 1458, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 364, 619, 316, 852, 18, 2372, 13332, 619, 18, 7814, 18, 4412, 1435, 852, 18, 8507, 1435, 225...
'collective.singing>=0.6.2',
'collective.singing>=0.6.3',
def read(*pathnames): return open(os.path.join(os.path.dirname(__file__), *pathnames)).read()
bdc0681aa5813c01dd0518625dfb0b75ea186861 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9843/bdc0681aa5813c01dd0518625dfb0b75ea186861/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 803, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 803, 1973, 13, 2934, 896, 1435, 225, 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, 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, 855, 30857, 803, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 803, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -10...
import tempfile module = _normalize_module(module) testsrc = testsource(module, name)
def debug(module, name): """Debug a single docstring containing doctests. Provide the module (or dotted name of the module) containing the docstring to be debugged, and the name (within the module) of the object with the docstring to be debugged. The doctest examples are extracted (see function testsource()), and wri...
a643b658a7cd1d820fd561665402705f0f76b1d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a643b658a7cd1d820fd561665402705f0f76b1d0/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 2978, 16, 508, 4672, 3536, 2829, 279, 2202, 14525, 4191, 31263, 25563, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 14525, 358, 506, 1198, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 12, 2978, 16, 508, 4672, 3536, 2829, 279, 2202, 14525, 4191, 31263, 25563, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 14525, 358, 506, 1198, 24...
if jobKeySet.intersection(triggerNameSet) == set(['clean-files']): self.runClean() return
jobTriggers = jobKeySet.intersection(triggersSet) simpleTriggers = jobTriggers.intersection(triggersSimpleSet) classdepTriggers = jobTriggers.intersection(triggersClassDepSet) compileTriggers = jobTriggers.intersection(triggersCompileSet) self._actionLib = ActionLib(self._config, self._console) if ...
def run(self): config = self._job job = self._job require = config.get("require", {}) use = config.get("use", {})
0407b21baef8f72316472f8f521314b6b5ee7f36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/0407b21baef8f72316472f8f521314b6b5ee7f36/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 26...
except exception, e: if isinstance(e, OSError) and e.errno in (13, 16):
except OSError, e: if e.errno not in (13, 16, 32):
def remove_recursively(path): import time # windows sometimes raises exceptions instead of removing files if os.name == 'nt' or sys.platform == 'cygwin': exception = OSError if os.name == 'nt': exception = WindowsError for i in range(12): try: _remove_recursively(path) except exception, e: if isinstance(e, OSError) and...
b2f15f653fd70fe33fa0117c7720d5e1f330c76d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/b2f15f653fd70fe33fa0117c7720d5e1f330c76d/testutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 266, 6235, 12, 803, 4672, 1930, 813, 468, 9965, 16594, 14183, 4798, 3560, 434, 9427, 1390, 309, 1140, 18, 529, 422, 296, 496, 11, 578, 2589, 18, 9898, 422, 296, 2431, 75, 808...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 67, 266, 6235, 12, 803, 4672, 1930, 813, 468, 9965, 16594, 14183, 4798, 3560, 434, 9427, 1390, 309, 1140, 18, 529, 422, 296, 496, 11, 578, 2589, 18, 9898, 422, 296, 2431, 75, 808...
if subtype:
if subtype and subtype is not self:
def in_stock(self): subtype = self.get_subtype_with_attr('in_stock') if subtype: return subtype.in_stock
2ab2c637bd178f046734eb337ca425e7482591dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/2ab2c637bd178f046734eb337ca425e7482591dc/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 67, 15381, 12, 2890, 4672, 12308, 273, 365, 18, 588, 67, 21974, 67, 1918, 67, 1747, 2668, 267, 67, 15381, 6134, 309, 12308, 471, 12308, 353, 486, 365, 30, 327, 12308, 18, 267, 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, 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, 67, 15381, 12, 2890, 4672, 12308, 273, 365, 18, 588, 67, 21974, 67, 1918, 67, 1747, 2668, 267, 67, 15381, 6134, 309, 12308, 471, 12308, 353, 486, 365, 30, 327, 12308, 18, 267, 67,...
sage: n = 100000000 + randint(0,100000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 True sage: n = 100000000 + randint(0,100000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
sage: n = 1000000000 + randint(0,1000000000) sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
def number_of_partitions(n,k=None, algorithm='default'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'defaul...
32b7e3e34ee2ff937faae0230b8ebf39b731bf5b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/32b7e3e34ee2ff937faae0230b8ebf39b731bf5b/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, ...
self._out.write('<' + name)
self._write('<' + name)
def startElementNS(self, name, qname, attrs): if name[0] is None: # if the name was not namespace-scoped, use the unqualified part name = name[1] else: # else try to restore the original prefix from the namespace name = self._current_context[name[0]] + ":" + name[1] self._out.write('<' + name)
7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 3156, 12, 2890, 16, 508, 16, 12621, 16, 3422, 4672, 309, 508, 63, 20, 65, 353, 599, 30, 468, 309, 326, 508, 1703, 486, 1981, 17, 27474, 16, 999, 326, 640, 19724, 1087, 508, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 3156, 12, 2890, 16, 508, 16, 12621, 16, 3422, 4672, 309, 508, 63, 20, 65, 353, 599, 30, 468, 309, 326, 508, 1703, 486, 1981, 17, 27474, 16, 999, 326, 640, 19724, 1087, 508, 27...
if child.type != "keyvalue":
if keyvalueItem.type != "keyvalue":
def handleClassDefinition(docTree, item, variant): params = item.getChild("params") className = params.children[0].get("value") if len(params.children) > 1: classMap = params.children[1] else: classMap = {} commentAttributes = comment.parseNode(item) classNode = getClassNode(docTree, className, commentAttributes) if...
fa8360dbf3adbeda71ac321c1a91df380d0dc3f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/fa8360dbf3adbeda71ac321c1a91df380d0dc3f0/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 797, 1852, 12, 2434, 2471, 16, 761, 16, 5437, 4672, 859, 273, 761, 18, 588, 1763, 2932, 2010, 7923, 2658, 273, 859, 18, 5906, 63, 20, 8009, 588, 2932, 1132, 7923, 225, 309, 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, 1640, 797, 1852, 12, 2434, 2471, 16, 761, 16, 5437, 4672, 859, 273, 761, 18, 588, 1763, 2932, 2010, 7923, 2658, 273, 859, 18, 5906, 63, 20, 8009, 588, 2932, 1132, 7923, 225, 309, 562, ...
self.debug_trace("Tag_ubyte_xy")
def Tag_ubyte_xy(self): self.debug_trace("Tag_ubyte_xy") if ( self.getTag( 'ubyte_xy' ) ): self.pack('B', self.next_num(), self.next_num()) return 1 return 0
ecf78c969222f7513a2f516b0355728295fb546a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/ecf78c969222f7513a2f516b0355728295fb546a/pxlasm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 10340, 736, 67, 1698, 12, 2890, 4672, 309, 261, 365, 18, 588, 1805, 12, 296, 10340, 736, 67, 1698, 11, 262, 262, 30, 365, 18, 2920, 2668, 38, 2187, 365, 18, 4285, 67, 2107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 10340, 736, 67, 1698, 12, 2890, 4672, 309, 261, 365, 18, 588, 1805, 12, 296, 10340, 736, 67, 1698, 11, 262, 262, 30, 365, 18, 2920, 2668, 38, 2187, 365, 18, 4285, 67, 2107,...
myFile = downloadPDF(caseLink, caseName)
myFile = downloadPDF(caseLink)
def scrapeCourt(courtID, result): if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shall. """ url = "http://www.ca1.uscourts.gov/opinions/opinionrss.php" ct = Court.objects.get(courtUUID='ca1') req = urllib2.urlopen(url) tree = etree.parse(req) c...
f2ff54a056836c405242045f15d611945cc1a262 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/f2ff54a056836c405242045f15d611945cc1a262/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 4672, 309, 261, 71, 477, 88, 734, 422, 404, 4672, 3536, 12667, 87, 854, 2319, 628, 326, 1122, 12937, 309, 1846, 1960, 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, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 4672, 309, 261, 71, 477, 88, 734, 422, 404, 4672, 3536, 12667, 87, 854, 2319, 628, 326, 1122, 12937, 309, 1846, 1960, 358, 3675, ...
raw_free(addr)
llmemory.raw_free(addr)
def f(offset, char): char = chr(char) addr = raw_malloc(10000) same_offset = (addr + 2 * offset - offset) - addr addr.char[offset] = char result = (addr + same_offset).char[0] raw_free(addr) return ord(result)
401345f9cba6aa1ad4cb9dd888b1649b3cd0501a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/401345f9cba6aa1ad4cb9dd888b1649b3cd0501a/test_lladdresses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 3348, 16, 1149, 4672, 1149, 273, 4513, 12, 3001, 13, 3091, 273, 1831, 67, 81, 9853, 12, 23899, 13, 1967, 67, 3348, 273, 261, 4793, 397, 576, 380, 1384, 300, 1384, 13, 300, 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, 284, 12, 3348, 16, 1149, 4672, 1149, 273, 4513, 12, 3001, 13, 3091, 273, 1831, 67, 81, 9853, 12, 23899, 13, 1967, 67, 3348, 273, 261, 4793, 397, 576, 380, 1384, 300, 1384, 13, 300, 3...
if not fake_cursor.nbr % 5000: ct = [] for t,c in fake_cursor._tables.items(): ct.append([c,t]) ct.sort() ct.reverse() print 'After %d queries' % (fake_cursor.nbr,) for line in ct[:50]: print ' %s: %d' % (line[1], line[0])
def execute_dont_run(self,*args): if not fake_cursor.nbr % 100: print 'sql: ',fake_cursor.nbr res = re.match('^select.* from ([a-zA-Z_]+) .*$', args[0], re.I) if res: fake_cursor._tables.setdefault(res.group(1), 0) fake_cursor._tables[res.group(1)] += 1
63f1614bfec3a551d73de9a484e2d7c606828f08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/63f1614bfec3a551d73de9a484e2d7c606828f08/sql_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 72, 1580, 67, 2681, 12, 2890, 16, 14, 1968, 4672, 309, 486, 10517, 67, 9216, 18, 82, 2848, 738, 2130, 30, 1172, 296, 4669, 30, 2265, 28395, 67, 9216, 18, 82, 2848, 400, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 72, 1580, 67, 2681, 12, 2890, 16, 14, 1968, 4672, 309, 486, 10517, 67, 9216, 18, 82, 2848, 738, 2130, 30, 1172, 296, 4669, 30, 2265, 28395, 67, 9216, 18, 82, 2848, 400, 273...
print >> pedOut, '%d %d %d 3 0 0 %d %s 0 %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.affected()]),
print >> pedOut, '%d %d %d 3 0 0 %d %s 0 %s' % (famID, id, fa, mo, sexCode[ind.sex()], affectedCode[ind.affected()]),
def writeInd(ind, famID, id, fa, mo): if pre: print >> pedOut, '%d %d %d %d %s %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.sex()]), else: if fa == 0: print >> pedOut, '%d %d %d 3 0 0 %d %s 0 %s' % (famID, id, fa, mo, sexCode(ind), affectedCode[ind.affected()]), else: print >> pedOut, '%d %d %d 0 4 4 %d %s ...
e39225a74e6f3cec67d7c04e675aabf9a57553c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/401/e39225a74e6f3cec67d7c04e675aabf9a57553c5/simuUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3866, 12, 728, 16, 26688, 734, 16, 612, 16, 11087, 16, 7344, 4672, 309, 675, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 738, 72, 738, 87, 738, 87, 11, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3866, 12, 728, 16, 26688, 734, 16, 612, 16, 11087, 16, 7344, 4672, 309, 675, 30, 1172, 1671, 31840, 1182, 16, 1995, 72, 738, 72, 738, 72, 738, 72, 738, 87, 738, 87, 11, 738, ...
file = wx.Menu() exit = file.Append(-1,'Exit','Close pyLoad') menubar.Append(file, '&File')
menu_file = wx.Menu() submenu_exit = menu_file.Append(-1,'Schliessen','pyLoad beenden') menubar.Append(menu_file, '&Datei')
def __init__(self, parent, id, title="pyLoad"): wx.Frame.__init__(self,parent,id,title, size=(800,500)) appPath = dirname(abspath(__file__)) + sep
94c1c737c5455762bbea312f891856b5c0deb497 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/94c1c737c5455762bbea312f891856b5c0deb497/pyMainGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 350, 16, 2649, 16, 963, 28657, 17374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 350, 16, 2649, 16, 963, 28657, 17374, ...
__swig_setmethods__["cityNo"] = _micropolisengine.Micropolis_cityNo_set __swig_getmethods__["cityNo"] = _micropolisengine.Micropolis_cityNo_get if _newclass:cityNo = _swig_property(_micropolisengine.Micropolis_cityNo_get, _micropolisengine.Micropolis_cityNo_set)
def MakeFlood(*args): return _micropolisengine.Micropolis_MakeFlood(*args)
ac864f622a0e51e9e610d76687dbf229cdda2c09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12485/ac864f622a0e51e9e610d76687dbf229cdda2c09/micropolisengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 42, 383, 369, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 6464, 42, 383, 369, 30857, 1968, 13, 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, 0, 0, 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, 4344, 42, 383, 369, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 6464, 42, 383, 369, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -10...
self.dlsdbsContact[item] = value
self.dbsdlsContact[item] = value
def __init__(self, workflowSpecFile, workingDir): self.workflow = workflowSpecFile self.workingDir = workingDir self.currentJob = None self.workflowSpec = WorkflowSpec() self.workflowSpec.load(workflowSpecFile) self.currentJobDef = None self.count = 0 self.allowedBlocks = [] self.allowedSites = [] self.dbsdlsContact = ...
547bc8360381177d040857051a9c3d1d96eb88ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/547bc8360381177d040857051a9c3d1d96eb88ae/DatasetIterator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6095, 1990, 812, 16, 5960, 1621, 4672, 365, 18, 13815, 273, 6095, 1990, 812, 365, 18, 20478, 1621, 273, 5960, 1621, 365, 18, 2972, 2278, 273, 599, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6095, 1990, 812, 16, 5960, 1621, 4672, 365, 18, 13815, 273, 6095, 1990, 812, 365, 18, 20478, 1621, 273, 5960, 1621, 365, 18, 2972, 2278, 273, 599, 365, 1...
priorcodes[key] = self.ownerDocument.whichCode(key) self.ownerDocument.catcode(key, value) except: pass
priorcodes[key] = self.ownerDocument.context.whichCode(key) self.ownerDocument.context.catcode(key, value)
def readArgumentAndSource(self, spec=None, type=None, subtype=None, delim=',', expanded=False, default=None, parentNode=None, name=None, stripLeadingWhitespace=True): """ Get an argument and the TeX source that created it
004df1451775a6dd62b83138bb1b68634bca9b69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/004df1451775a6dd62b83138bb1b68634bca9b69/TeX.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1379, 1876, 1830, 12, 2890, 16, 857, 33, 7036, 16, 618, 33, 7036, 16, 12308, 33, 7036, 16, 10508, 33, 2187, 2187, 8406, 33, 8381, 16, 805, 33, 7036, 16, 7234, 33, 7036, 16, 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, 855, 1379, 1876, 1830, 12, 2890, 16, 857, 33, 7036, 16, 618, 33, 7036, 16, 12308, 33, 7036, 16, 10508, 33, 2187, 2187, 8406, 33, 8381, 16, 805, 33, 7036, 16, 7234, 33, 7036, 16, 508,...
safety.append('\n!' + usernam)
safety.append('\n!%s' % usernam)
def logmaker(wsite, welcomed_users, logg, summ2, usernam, contrib): """ Deduct the correct sub page name form the current date """ safety = list() rightime = time.localtime(time.time()) year = str(rightime[0]) month = str(rightime[1]) day = str(rightime[2]) if len(month) == 1: month = u'0' + month if wsite.lang == 'it'...
39b7ba3c7caa86382857fed4504f0e143bf50fc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/39b7ba3c7caa86382857fed4504f0e143bf50fc9/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 29261, 12, 91, 4256, 16, 341, 292, 832, 329, 67, 5577, 16, 31443, 16, 2142, 81, 22, 16, 729, 17808, 16, 13608, 4672, 3536, 463, 329, 853, 326, 3434, 720, 1363, 508, 646, 326, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 613, 29261, 12, 91, 4256, 16, 341, 292, 832, 329, 67, 5577, 16, 31443, 16, 2142, 81, 22, 16, 729, 17808, 16, 13608, 4672, 3536, 463, 329, 853, 326, 3434, 720, 1363, 508, 646, 326, 78...
'list': students_Q & Q(registrationprofile__student_info__graduation_year__lte = yog_12)}
'list': students_Q & Q(registrationprofile__student_info__graduation_year__gte = yog_12)}
def getLists(self, QObjects=False): from esp.users.models import ESPUser lists = self.students(QObjects) lists.update(self.teachers(QObjects)) learnmodules = self.getModules(None) teachmodules = self.getModules(None)
6d7953a5484b4f89b927473b456eb8b25182942b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/6d7953a5484b4f89b927473b456eb8b25182942b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7432, 12, 2890, 16, 2238, 4710, 33, 8381, 4672, 628, 5001, 84, 18, 5577, 18, 7665, 1930, 512, 3118, 1299, 225, 6035, 273, 365, 18, 16120, 4877, 12, 53, 4710, 13, 6035, 18, 2725, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7432, 12, 2890, 16, 2238, 4710, 33, 8381, 4672, 628, 5001, 84, 18, 5577, 18, 7665, 1930, 512, 3118, 1299, 225, 6035, 273, 365, 18, 16120, 4877, 12, 53, 4710, 13, 6035, 18, 2725, ...
category.set_label("Unknown") capabilities.set_label("Unknown")
if device.properties.has_key("info.category"): category.set_label("%s"%device.properties["info.category"]) else: category.set_label("Unknown") if device.properties.has_key("info.capabilities"): capabilities.set_label("%s"%device.properties["info.capabilities"]) else: capabilities.set_label("Unknown")
def update_tab_device(self, device): """Updates the 'Device' tab given a Device object""" bus = self.xml.get_widget("ns_device_bus") #state = self.xml.get_widget("ns_device_status") vendor = self.xml.get_widget("ns_device_vendor") product = self.xml.get_widget("ns_device_name") category = self.xml.get_widget("ns_device...
9b2d3649b5464db19b0fe9180ff2bf16ad28c157 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2597/9b2d3649b5464db19b0fe9180ff2bf16ad28c157/DeviceManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 7032, 67, 5964, 12, 2890, 16, 2346, 4672, 3536, 5121, 326, 296, 3654, 11, 3246, 864, 279, 6077, 733, 8395, 5766, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 7032, 67, 5964, 12, 2890, 16, 2346, 4672, 3536, 5121, 326, 296, 3654, 11, 3246, 864, 279, 6077, 733, 8395, 5766, 273, 365, 18, 2902, 18, 588, 67, 6587, 2932, 2387, 67, 5964, ...
def __init__(self, addr, port, ssl_context): asyncore.dispatcher.__init__(self) self.create_socket(ssl_context) self.set_reuse_addr() self.socket.setblocking(0) self.bind((addr, port)) self.listen(5) def handle_accept(self): sock, addr=self.socket.accept() self.channel_class(sock)
def __init__(self, addr, port, ssl_context): SSL.ssl_dispatcher.__init__(self) self.create_socket(ssl_context) self.set_reuse_addr() self.socket.setblocking(0) self.bind((addr, port)) self.listen(5) self.ssl_ctx=ssl_context def handle_accept(self): try: sock, addr = self.socket.accept() self.channel_class(sock) except...
def __init__(self, addr, port, ssl_context): asyncore.dispatcher.__init__(self) self.create_socket(ssl_context) self.set_reuse_addr() self.socket.setblocking(0) self.bind((addr, port)) self.listen(5)
80a31efd04e64c5c20e961926a236dee986868ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/80a31efd04e64c5c20e961926a236dee986868ab/echod-async.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3091, 16, 1756, 16, 5832, 67, 2472, 4672, 4326, 479, 18, 18495, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 7814, 12, 8157, 67, 2472, 13, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3091, 16, 1756, 16, 5832, 67, 2472, 4672, 4326, 479, 18, 18495, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 7814, 12, 8157, 67, 2472, 13, 365, 1...