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
x/2
x//2
>>> def f(x):
2e82ad9791c9029bfa44ef39f6c4cd1b786cef51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2e82ad9791c9029bfa44ef39f6c4cd1b786cef51/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 4080, 1652, 284, 12, 92, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for sk in self.klasses.keys() :
for sk in self.klass_names:
def code_get(self): result = """##############################################################################
e82f68afdd17c1d97543c1c408c46b5624dc6d8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/e82f68afdd17c1d97543c1c408c46b5624dc6d8e/codegen_openerp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 981, 67, 588, 12, 2890, 4672, 563, 273, 3536, 10140, 10140, 26487, 1189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 981, 67, 588, 12, 2890, 4672, 563, 273, 3536, 10140, 10140, 26487, 1189, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if ((item.startTime > date) and (item.startTime < nextDate)):
if ((item.startTime >= date) and (item.startTime < nextDate)):
def getItemsByDate(self, date): # make this a generator? items = [] nextDate = date + DateTime.RelativeDateTime(days=1) for item in self.contents: if ((item.startTime > date) and (item.startTime < nextDate)): items.append(item) return items
15ce39cdb41c3381137a912f64690c4585848092 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/15ce39cdb41c3381137a912f64690c4585848092/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15515, 858, 1626, 12, 2890, 16, 1509, 4672, 468, 1221, 333, 279, 4456, 35, 1516, 273, 5378, 1024, 1626, 273, 1509, 397, 3716, 18, 8574, 5096, 12, 9810, 33, 21, 13, 364, 761, 316, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15515, 858, 1626, 12, 2890, 16, 1509, 4672, 468, 1221, 333, 279, 4456, 35, 1516, 273, 5378, 1024, 1626, 273, 1509, 397, 3716, 18, 8574, 5096, 12, 9810, 33, 21, 13, 364, 761, 316, 365, ...
kws.setdefault('alink', mm_cfg.WEB_LINK_COLOR)
kws.setdefault('link', mm_cfg.WEB_LINK_COLOR)
def Format(self, indent=0, **kws): charset = 'us-ascii' if self.language: charset = Utils.GetCharSet(self.language) output = ['Content-Type: text/html; charset=%s\n' % charset] if not self.suppress_head: kws.setdefault('bgcolor', self.bgcolor) tab = ' ' * indent output.extend([tab, '<HTML>', '<HEAD>' ]) if mm_cfg.IMAGE...
88478c2fc7db7f672177a5ac34b4c93df3610053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/88478c2fc7db7f672177a5ac34b4c93df3610053/htmlformat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 12, 2890, 16, 3504, 33, 20, 16, 2826, 79, 4749, 4672, 4856, 273, 296, 407, 17, 9184, 11, 309, 365, 18, 4923, 30, 4856, 273, 6091, 18, 967, 2156, 694, 12, 2890, 18, 4923, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 12, 2890, 16, 3504, 33, 20, 16, 2826, 79, 4749, 4672, 4856, 273, 296, 407, 17, 9184, 11, 309, 365, 18, 4923, 30, 4856, 273, 6091, 18, 967, 2156, 694, 12, 2890, 18, 4923, 13, ...
struct_learner = structlearn.StructLearner(k, ds, pivots,self.trainer, self.strategy)
struct_learner = structlearn.StructLearner(k, ds, pivots, self.trainer, self.strategy)
def train(self, m, phi, k):
dc3727562e8d4c62f2cfe32db7499221174847dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14494/dc3727562e8d4c62f2cfe32db7499221174847dc/clscl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 12, 2890, 16, 312, 16, 7706, 16, 417, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 12, 2890, 16, 312, 16, 7706, 16, 417, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
ev = MidiEvent(PROG, 0, 0, 0, 41)
ev = MidiEvent(PROG, 1, 1, 0, 41)
def testDataOffset(self): config(data_offset = 1) p = Channel(6) ev = MidiEvent(PROG, 0, 0, 0, 41) assert ev.channel_ == 0 assert ev.data2 == 41 def foo(ev): assert ev.channel == 1 assert ev.channel_ == 0 assert ev.program == 42 assert ev.data2 == 41 ev.channel = 6 r = self.run_test(p, ev) assert r[0].channel_ == 5
b1fc30c021fa46378e1688e998ff1b86a307820f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7503/b1fc30c021fa46378e1688e998ff1b86a307820f/unit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 751, 2335, 12, 2890, 4672, 642, 12, 892, 67, 3348, 273, 404, 13, 293, 273, 5307, 12, 26, 13, 2113, 273, 490, 350, 77, 1133, 12, 3373, 43, 16, 404, 16, 404, 16, 374, 16, 20170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 751, 2335, 12, 2890, 4672, 642, 12, 892, 67, 3348, 273, 404, 13, 293, 273, 5307, 12, 26, 13, 2113, 273, 490, 350, 77, 1133, 12, 3373, 43, 16, 404, 16, 404, 16, 374, 16, 20170...
raise RuntimeError, "You must intall the optional gap_packages package."
raise RuntimeError, "You must install the optional gap_packages package."
def homology(self, n, p = 0): r""" Computes the group homology `H_n(G, F)`, where `F = \ZZ` if `p=0` and `F = \ZZ / p \ZZ` if `p > 0` is a prime. Wraps HAP's ``GroupHomology`` function, written by Graham Ellis. REQUIRES: GAP package HAP (in gap_packages-\*.spkg). AUTHORS:
80f2eb1544a665a7924db499436a75a7eec48f50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80f2eb1544a665a7924db499436a75a7eec48f50/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13995, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 13995, 4676, 1375, 44, 67, 82, 12, 43, 16, 478, 13, 9191, 1625, 1375, 42, 273, 521, 27096, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13995, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 13995, 4676, 1375, 44, 67, 82, 12, 43, 16, 478, 13, 9191, 1625, 1375, 42, 273, 521, 27096, ...
""" Returns the username Returns ------- - 'str' """
""" getUser() -> str - Returns the username. """
def getUser(self):
0d08a982cb8d26e26f2e6ab32b89ef18e54df8fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6341/0d08a982cb8d26e26f2e6ab32b89ef18e54df8fb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 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, -100, -...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 189) else quickfix.DoubleField.__init__(self, 189, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 6549, 29, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 6549, 29, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
'URI': self.request.serverVariables['SCRIPT_NAME'] + '/' + self.item.id,
def setParams(self): self.response.setHeader('Cache-Control', 'no-cache') sLang = self.request.getLang()
9a2f8b99a4794ca66a515bfe9ca832718bd20756 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/9a2f8b99a4794ca66a515bfe9ca832718bd20756/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 1649, 17, 3367, 2187, 296, 2135, 17, 2493, 6134, 272, 7275, 273, 365, 18, 2293, 18, 588, 7275, 1435, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 1649, 17, 3367, 2187, 296, 2135, 17, 2493, 6134, 272, 7275, 273, 365, 18, 2293, 18, 588, 7275, 1435, 2, -100, -100, -100, -10...
exchange_mesg(serverinfo,conninfo["sock"],virtualsock)
exchange_mesg(serverinfo,conninfo["sock"],virtualsock)
def new_client(conn_id, value): # Get the connection info conninfo = CONNECTIONS[conn_id] servermac = value["server"] port = value["port"] # Has the server connected to this forwarder? if servermac not in MAC_ID_LOOKUP: return (False,NAT_STATUS_NO_SERVER) # Get the server info dictionary serverinfo = CONNECTIONS[MAC_...
6db9d12f0248bd7533342c0e79b8b0e15c4c09aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/6db9d12f0248bd7533342c0e79b8b0e15c4c09aa/forwarder_rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2625, 12, 4646, 67, 350, 16, 460, 4672, 468, 968, 326, 1459, 1123, 1487, 1376, 273, 20695, 55, 63, 4646, 67, 350, 65, 1438, 5821, 273, 460, 9614, 3567, 11929, 1756, 273, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2625, 12, 4646, 67, 350, 16, 460, 4672, 468, 968, 326, 1459, 1123, 1487, 1376, 273, 20695, 55, 63, 4646, 67, 350, 65, 1438, 5821, 273, 460, 9614, 3567, 11929, 1756, 273, 460, ...
3: hex dump everything""", default=0) parser.add_option("", "--rts", dest="rts_state", action="store", type='int', help="set initial RTS line state (possible values: 0, 1)", default=None) parser.add_option("", "--dtr", dest="dtr_state", action="store", type='int', help="set initial DTR line state (possible values: 0,...
3: hex dump everything""", default = 0 ) parser.add_option("--rts", dest = "rts_state", action = "store", type = 'int', help = "set initial RTS line state (possible values: 0, 1)", default = None ) parser.add_option("--dtr", dest = "dtr_state", action = "store", type = 'int', help = "set initial DTR line state (possi...
def main(): import optparse parser = optparse.OptionParser(usage="""\
8b7ba3f0589ddf76ccf792ffe28b3db50351626b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/8b7ba3f0589ddf76ccf792ffe28b3db50351626b/miniterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2153, 2670, 225, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 1546, 3660, 64, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2774, 13332, 1930, 2153, 2670, 225, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 1546, 3660, 64, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if kind.startswith("ldate-"):
elif kind.startswith("ldate-"):
def _kind (self,full_type,endian): if endian == 'local': kind = full_type else: kind = full_type[2:]
fa8a059590f5621889e8f0481dc5d1c6f0c2d5c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/fa8a059590f5621889e8f0481dc5d1c6f0c2d5c8/magic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9224, 261, 2890, 16, 2854, 67, 723, 16, 22910, 4672, 309, 14759, 422, 296, 3729, 4278, 3846, 273, 1983, 67, 723, 469, 30, 3846, 273, 1983, 67, 723, 63, 22, 26894, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 9224, 261, 2890, 16, 2854, 67, 723, 16, 22910, 4672, 309, 14759, 422, 296, 3729, 4278, 3846, 273, 1983, 67, 723, 469, 30, 3846, 273, 1983, 67, 723, 63, 22, 26894, 2, -100, -100, ...
window = self.get_widget(self.id)
window = self.get_widget(self.glade_id)
def register_gtk_quit(self): window = self.get_widget(self.id) self.do_gtk_quit = True # This means we've already been closed if window is None: gobject.idle_add(gtk.main_quit)
d02c4ac16a42c4c5d6d5d8c2a07d81d06b18f0b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/d02c4ac16a42c4c5d6d5d8c2a07d81d06b18f0b3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 4521, 79, 67, 27176, 12, 2890, 4672, 2742, 273, 365, 18, 588, 67, 6587, 12, 2890, 18, 7043, 2486, 67, 350, 13, 365, 18, 2896, 67, 4521, 79, 67, 27176, 273, 1053, 225, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 4521, 79, 67, 27176, 12, 2890, 4672, 2742, 273, 365, 18, 588, 67, 6587, 12, 2890, 18, 7043, 2486, 67, 350, 13, 365, 18, 2896, 67, 4521, 79, 67, 27176, 273, 1053, 225, 468, ...
"-d", "%sm" % size,
def _AssembleLocal(cls, minor, backend, meta, size): """Configure the local part of a DRBD device.
60bca04acdabf9d9e4bba47ce19fb2f4516f1dc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/60bca04acdabf9d9e4bba47ce19fb2f4516f1dc0/bdev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1463, 10045, 2042, 12, 6429, 16, 8439, 16, 4221, 16, 2191, 16, 963, 4672, 3536, 11207, 326, 1191, 1087, 434, 279, 16801, 18096, 2346, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1463, 10045, 2042, 12, 6429, 16, 8439, 16, 4221, 16, 2191, 16, 963, 4672, 3536, 11207, 326, 1191, 1087, 434, 279, 16801, 18096, 2346, 18, 2, -100, -100, -100, -100, -100, -100, -100...
out.extend(['<script type="text/javascript" src="/javascript/cookies.js"></script>', '<script type="text/javascript" src="/javascript/collapsibleLists.js"></script>', '''<script type="text/javascript"> <!-- function loadPage() { createTreeFromList('sourceDirTree', getCookie('sourceDirTree'), true, false); } function un...
out.extend(['''<script type="text/javascript" src="/ead/js/collapsibleLists.js"></script> <script type="text/javascript" src="/ead/js/cookies.js"></script> <script type="text/javascript"> <!-- var olf = function() { createTreeFromList('sourceDirTree', getCookie('sourceDirTree'), true, false);} ; if (addLoadEvent) { add...
def review_records(self, version='full'): global sourceDir self.htmlTitle.append('File Management') out = [] if (version=='full'): header = 'Existing Files' fileformsubmits = '''<input type="submit" name="operation" value="rename" onmousedown="op=this.value;"/> <input type="submit" name="operation" value="delete" onmou...
b1aeb6d14a33b1c557ad2d17d5c49a948c2d454a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11263/b1aeb6d14a33b1c557ad2d17d5c49a948c2d454a/eadAdminHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10725, 67, 7094, 12, 2890, 16, 1177, 2218, 2854, 11, 4672, 2552, 26844, 365, 18, 2620, 4247, 18, 6923, 2668, 812, 13303, 6134, 596, 273, 5378, 309, 261, 1589, 18920, 2854, 11, 4672, 1446...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10725, 67, 7094, 12, 2890, 16, 1177, 2218, 2854, 11, 4672, 2552, 26844, 365, 18, 2620, 4247, 18, 6923, 2668, 812, 13303, 6134, 596, 273, 5378, 309, 261, 1589, 18920, 2854, 11, 4672, 1446...
g = Generator(s, mangle_from_=1)
g = Generator(s, mangle_from_=True)
def test_mangled_from(self): s = StringIO() g = Generator(s, mangle_from_=1) g.flatten(self.msg) self.assertEqual(s.getvalue(), """\
1abdc903fc08a89b4695728d372aaf3594fcb8c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1abdc903fc08a89b4695728d372aaf3594fcb8c8/test_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 81, 539, 1259, 67, 2080, 12, 2890, 4672, 272, 273, 15777, 1435, 314, 273, 10159, 12, 87, 16, 312, 4341, 67, 2080, 67, 33, 5510, 13, 314, 18, 16940, 12, 2890, 18, 3576, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 81, 539, 1259, 67, 2080, 12, 2890, 4672, 272, 273, 15777, 1435, 314, 273, 10159, 12, 87, 16, 312, 4341, 67, 2080, 67, 33, 5510, 13, 314, 18, 16940, 12, 2890, 18, 3576, 13, ...
if result is None or error is not None:
if result is None or result[0] is None or error is not None:
def _lookup_fingerprint(self, next, filename, result=None, error=None): try: file = self.tagger.files[filename] except (KeyError): # The file has been removed. do nothing return if result is None or error is not None: next(file, result=None) return fingerprint, length = result self.tagger.window.set_statusbar_message(...
f3ae42a981bf992f83e1012f467fc490aaf9368e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12415/f3ae42a981bf992f83e1012f467fc490aaf9368e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8664, 67, 24716, 12, 2890, 16, 1024, 16, 1544, 16, 563, 33, 7036, 16, 555, 33, 7036, 4672, 775, 30, 585, 273, 365, 18, 2692, 693, 18, 2354, 63, 3459, 65, 1335, 261, 653, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8664, 67, 24716, 12, 2890, 16, 1024, 16, 1544, 16, 563, 33, 7036, 16, 555, 33, 7036, 4672, 775, 30, 585, 273, 365, 18, 2692, 693, 18, 2354, 63, 3459, 65, 1335, 261, 653, 668, ...
self.goodrevs.append(self.repo.lookup(rev or '.')) if self.badrev:
self.goodnodes.append(self.repo.lookup(rev or '.')) if self.badnode:
def autogood(self, rev=None): """mark revision as good and update to the next revision to test""" self.goodrevs.append(self.repo.lookup(rev or '.')) if self.badrev: return self.autonext()
6919e042e934d02082016dfb73d7ed6ccac1b5b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/6919e042e934d02082016dfb73d7ed6ccac1b5b5/hbisect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7608, 4773, 12, 2890, 16, 5588, 33, 7036, 4672, 3536, 3355, 6350, 487, 7494, 471, 1089, 358, 326, 1024, 6350, 358, 1842, 8395, 365, 18, 19747, 4690, 18, 6923, 12, 2890, 18, 7422, 18, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7608, 4773, 12, 2890, 16, 5588, 33, 7036, 4672, 3536, 3355, 6350, 487, 7494, 471, 1089, 358, 326, 1024, 6350, 358, 1842, 8395, 365, 18, 19747, 4690, 18, 6923, 12, 2890, 18, 7422, 18, 8...
except win32api.error:
except _RegError:
def get_devstudio_versions (): """Get list of devstudio versions from the Windows registry. Return a list of strings containing version numbers; the list will be empty if we were unable to access the registry (eg. couldn't import a registry-access module) or the appropriate registry keys weren't found.""" try: import...
a0766842dc884fd9bbc88b65569925b6f87abaa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a0766842dc884fd9bbc88b65569925b6f87abaa3/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5206, 334, 4484, 67, 10169, 1832, 30, 3536, 967, 666, 434, 4461, 334, 4484, 5244, 628, 326, 8202, 4023, 18, 225, 2000, 279, 666, 434, 2064, 4191, 1177, 5600, 31, 326, 666, 903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5206, 334, 4484, 67, 10169, 1832, 30, 3536, 967, 666, 434, 4461, 334, 4484, 5244, 628, 326, 8202, 4023, 18, 225, 2000, 279, 666, 434, 2064, 4191, 1177, 5600, 31, 326, 666, 903...
first_data.data = string.lstrip(first_data.data[4:])
first_data.data = first_data.data[4:].lstrip()
def create_module_info(doc, section): # Heavy. node = extract_first_element(section, "modulesynopsis") if node is None: return set_tagName(node, "synopsis") lastchild = node.childNodes[-1] if lastchild.nodeType == TEXT \ and lastchild.data[-1:] == ".": lastchild.data = lastchild.data[:-1] modauthor = extract_first_elem...
3c171d1b9f1420a6bbce02f1511ffb6b621863ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c171d1b9f1420a6bbce02f1511ffb6b621863ef/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2978, 67, 1376, 12, 2434, 16, 2442, 4672, 468, 8264, 23935, 18, 756, 273, 2608, 67, 3645, 67, 2956, 12, 3464, 16, 315, 6400, 878, 29522, 7923, 309, 756, 353, 599, 30, 327, 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, 752, 67, 2978, 67, 1376, 12, 2434, 16, 2442, 4672, 468, 8264, 23935, 18, 756, 273, 2608, 67, 3645, 67, 2956, 12, 3464, 16, 315, 6400, 878, 29522, 7923, 309, 756, 353, 599, 30, 327, 4...
fp.write("default = %s\n" % abspath)
fp.write("default = %s\n" % abspath.replace('%', '%%'))
def force_copy(src, dst): if not os.path.exists(src): # Tolerate empty source repository and optional files return util.copyfiles(src, dst)
2b3ce81c0dde37162a6f19f2f2b76540f97ff87e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/2b3ce81c0dde37162a6f19f2f2b76540f97ff87e/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3530, 12, 4816, 16, 3046, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 468, 399, 355, 12600, 1008, 1084, 3352, 471, 3129, 1390, 327, 1709, 18, 3530, 2354, 12, 481...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2944, 67, 3530, 12, 4816, 16, 3046, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 468, 399, 355, 12600, 1008, 1084, 3352, 471, 3129, 1390, 327, 1709, 18, 3530, 2354, 12, 481...
command.attr_build(OSDAttr(ATTR_SET, USER_COLL_PG, cid, htonl(cid)))
command.attr_build(OSDAttr(ATTR_SET, USER_COLL_PG, cid, htonll(cid)))
def create_any_object(pid): command = OSDCommand().set_create(pid) command.attr_build(OSDAttr(ATTR_GET, CUR_CMD_ATTR_PG, CCAP_OID, \ CCAP_OID_LEN)) attr = run(command) return ntohll(attr.val)
252a7e17c8cc59b5c8fc2bda44307ecec26b1d21 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/252a7e17c8cc59b5c8fc2bda44307ecec26b1d21/test-collection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2273, 67, 1612, 12, 6610, 4672, 1296, 273, 5932, 40, 2189, 7675, 542, 67, 2640, 12, 6610, 13, 1296, 18, 1747, 67, 3510, 12, 4618, 40, 3843, 12, 12043, 67, 3264, 16, 4706, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2273, 67, 1612, 12, 6610, 4672, 1296, 273, 5932, 40, 2189, 7675, 542, 67, 2640, 12, 6610, 13, 1296, 18, 1747, 67, 3510, 12, 4618, 40, 3843, 12, 12043, 67, 3264, 16, 4706, 67...
contentsOverride = cont)
contentsOverride = cont, replaceFiles = replaceFiles)
def _singleTrove(self, repos, troveCs, changeSet, baseTrove, fsTrove, root, removalHints, flags):
22f9a9101585ff5ecfc72cfcc17af08af913547a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/22f9a9101585ff5ecfc72cfcc17af08af913547a/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7526, 56, 303, 537, 12, 2890, 16, 13686, 16, 23432, 537, 14272, 16, 26104, 16, 1026, 56, 303, 537, 16, 2662, 56, 303, 537, 16, 1365, 16, 14817, 13368, 16, 2943, 4672, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7526, 56, 303, 537, 12, 2890, 16, 13686, 16, 23432, 537, 14272, 16, 26104, 16, 1026, 56, 303, 537, 16, 2662, 56, 303, 537, 16, 1365, 16, 14817, 13368, 16, 2943, 4672, 2, -100, -...
results_final = search_intersect_with_collrecs(req, results_in_any_collection, colls_to_search, of, dbg)
results_final = intersect_results_with_collrecs(req, results_in_any_collection, colls_to_search, ap, of, dbg)
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg="10", sf="", so="d", sp="", of="hb", ot="", as="0", p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc="0", jrec="0", recid="-1", recidb="-1", sysno="", id="-1", idb="-1", sysnb="", action="SEARCH", d1y="", d1m="", d1...
f89feb7ea51a59100f9e1291d3f34cbf65a4ba8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/f89feb7ea51a59100f9e1291d3f34cbf65a4ba8b/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
fileContent += ",".join(["s_PDO_staus_Initializer"]*texts["maxPDOtransmit"]) + """};
fileContent += ",".join(["s_PDO_status_Initializer"]*texts["maxPDOtransmit"]) + """};
def GenerateFileContent(Node, headerfilepath): global type global internal_types texts = {} texts["maxPDOtransmit"] = 0 texts["NodeName"] = Node.GetNodeName() texts["NodeID"] = Node.GetNodeID() texts["NodeType"] = Node.GetNodeType() texts["Description"] = Node.GetNodeDescription() texts["iam_a_slave"] = 0 if (texts["No...
69bdb505e309e9624eab365d05d11a7a42a672b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11017/69bdb505e309e9624eab365d05d11a7a42a672b7/gen_cfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 25391, 12, 907, 16, 1446, 10561, 4672, 2552, 618, 2552, 2713, 67, 2352, 15219, 273, 2618, 15219, 9614, 1896, 14625, 2338, 1938, 11929, 273, 374, 15219, 9614, 18948, 11929, 273, 2029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 25391, 12, 907, 16, 1446, 10561, 4672, 2552, 618, 2552, 2713, 67, 2352, 15219, 273, 2618, 15219, 9614, 1896, 14625, 2338, 1938, 11929, 273, 374, 15219, 9614, 18948, 11929, 273, 2029, ...
def _copy(self,obj): """copies to obj""" obj._attrMap = self._attrMap.clone() self_contents = self.contents for child in self_contents: obj.contents.append(child) self_contents = self.contents for (oldKey, oldValue) in self.__dict__.items(): if oldValue in self_contents: pos = self_contents.index(oldValue) setattr(ob...
def _copy(self,obj): """copies to obj""" obj._attrMap = self._attrMap.clone()
0db2330e659933f84282d056763486c5d836da89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0db2330e659933f84282d056763486c5d836da89/shapes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 2603, 4672, 3536, 22295, 606, 358, 1081, 8395, 1081, 6315, 1747, 863, 273, 365, 6315, 1747, 863, 18, 14056, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 2603, 4672, 3536, 22295, 606, 358, 1081, 8395, 1081, 6315, 1747, 863, 273, 365, 6315, 1747, 863, 18, 14056, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -1...
'lat' : 0.0, 'long' : 0.0, 'mlat' : 0.0, 'mlong' : 0.0, 'marker' : 'no'
'lat' : 0.0, 'long' : 0.0, 'mlat' : 0.0, 'mlong' : 0.0, 'marker' : 'no', 'clickable' : 'yes'
def do_gmap(parser, token): items = token.split_contents() # Defaults parameters = { 'lat' : 0.0, 'long' : 0.0, 'mlat' : 0.0, 'mlong' : 0.0, 'marker' : 'no' } for item in items[1:]: param, value = item.split(":") param = param.strip() value = value.strip() print param, value if parameters.has_key(param)...
be35f27dfb7ab89cc74ab62f13a40a92c2954b5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/be35f27dfb7ab89cc74ab62f13a40a92c2954b5a/gmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 75, 1458, 12, 4288, 16, 1147, 4672, 1516, 273, 1147, 18, 4939, 67, 3980, 1435, 225, 468, 14159, 1472, 273, 288, 296, 4801, 11, 4202, 294, 374, 18, 20, 16, 296, 5748, 11, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 75, 1458, 12, 4288, 16, 1147, 4672, 1516, 273, 1147, 18, 4939, 67, 3980, 1435, 225, 468, 14159, 1472, 273, 288, 296, 4801, 11, 4202, 294, 374, 18, 20, 16, 296, 5748, 11, 137...
xx_c = os.path.join(sysconfig.project_base, 'Modules', 'xxmodule.c') shutil.copy(xx_c, self.tmp_dir)
shutil.copy(_get_source_filename(), self.tmp_dir)
def setUp(self): # Create a simple test environment # Note that we're making changes to sys.path self.tmp_dir = tempfile.mkdtemp(prefix="pythontest_") self.sys_path = sys.path[:] sys.path.append(self.tmp_dir)
4d00138fe1465b32168e39c688f3eda277af51dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/4d00138fe1465b32168e39c688f3eda277af51dd/test_build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 1788, 279, 4143, 1842, 3330, 468, 3609, 716, 732, 4565, 10480, 3478, 358, 2589, 18, 803, 365, 18, 5645, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 12, 3239, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 1788, 279, 4143, 1842, 3330, 468, 3609, 716, 732, 4565, 10480, 3478, 358, 2589, 18, 803, 365, 18, 5645, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 12, 3239, ...
do_char(c, event)
do_char(c, event)
def do_key(self, event): (what, message, when, where, modifiers) = event c = chr(message & charCodeMask) if modifiers & cmdKey: if c == '.': raise self else: result = MenuKey(ord(c)) id = (result>>16) & 0xffff # Hi word item = result & 0xffff # Lo word if id: self.do_rawmenu(id, item, None, event)
8deb9e9fee0ad9ff7ea024781a126a501fc8b7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8deb9e9fee0ad9ff7ea024781a126a501fc8b7aa/FrameWork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 856, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 276, 273, 4513, 12, 2150, 473, 13096, 5796, 13, 309, 10429, 473, 1797, 653, 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, 741, 67, 856, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 276, 273, 4513, 12, 2150, 473, 13096, 5796, 13, 309, 10429, 473, 1797, 653, 3...
self.itemDeleteSelected.set_sensitive(can_delete or not can_cancel)
self.itemDeleteSelected.set_sensitive(can_delete)
def play_or_download(self): if not gpodder.ui.fremantle: if self.wNotebook.get_current_page() > 0: if gpodder.ui.desktop: self.toolCancel.set_sensitive(True) return
f9e536d55b9f626ce32dd254aa66dc5c5c091f18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/f9e536d55b9f626ce32dd254aa66dc5c5c091f18/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 67, 280, 67, 7813, 12, 2890, 4672, 309, 486, 4178, 369, 765, 18, 4881, 18, 74, 2764, 970, 298, 30, 309, 365, 18, 91, 19751, 18, 588, 67, 2972, 67, 2433, 1435, 405, 374, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 67, 280, 67, 7813, 12, 2890, 4672, 309, 486, 4178, 369, 765, 18, 4881, 18, 74, 2764, 970, 298, 30, 309, 365, 18, 91, 19751, 18, 588, 67, 2972, 67, 2433, 1435, 405, 374, 30, 3...
dia = DataImportAttempt.objects.get(id=dia_id)
dia = mysite.profile.models.DataImportAttempt.objects.get(id=dia_id)
def create_citations_from_debianqa_results(dia_id, results): dia = DataImportAttempt.objects.get(id=dia_id) person = dia.person for package_name, package_description in results: (project, _) = Project.objects.get_or_create(name=package_name) package_link = 'http://packages.debian.org/src:' + urllib.quote( package_nam...
f1d0d2222a9a25e0a8611c6a5776e209776dcdc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/f1d0d2222a9a25e0a8611c6a5776e209776dcdc0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 71, 18282, 67, 2080, 67, 31888, 2779, 7588, 67, 4717, 12, 72, 1155, 67, 350, 16, 1686, 4672, 302, 1155, 273, 312, 1900, 1137, 18, 5040, 18, 7665, 18, 751, 5010, 7744, 18, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 71, 18282, 67, 2080, 67, 31888, 2779, 7588, 67, 4717, 12, 72, 1155, 67, 350, 16, 1686, 4672, 302, 1155, 273, 312, 1900, 1137, 18, 5040, 18, 7665, 18, 751, 5010, 7744, 18, 69...
self.buf = self.buf + string.joinfields(self.buflist, '')
self.buf += EMPTYSTRING.join(self.buflist)
def getvalue(self): if self.buflist: self.buf = self.buf + string.joinfields(self.buflist, '') self.buflist = [] return self.buf
c7ed0e3c1301fd27122e336eef7fd233526ccfc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c7ed0e3c1301fd27122e336eef7fd233526ccfc1/StringIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20590, 12, 2890, 4672, 309, 365, 18, 4385, 1098, 30, 365, 18, 4385, 1011, 8984, 5804, 18, 5701, 12, 2890, 18, 4385, 1098, 13, 365, 18, 4385, 1098, 273, 5378, 327, 365, 18, 4385, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20590, 12, 2890, 4672, 309, 365, 18, 4385, 1098, 30, 365, 18, 4385, 1011, 8984, 5804, 18, 5701, 12, 2890, 18, 4385, 1098, 13, 365, 18, 4385, 1098, 273, 5378, 327, 365, 18, 4385, 2, -...
virtual = req.env.get("PATH_INFO", "").strip('/') if virtual.startswith('static/'): static = os.path.join(templater.templatepath(), 'static') fname = virtual[7:] req.write(staticfile(static, fname, req) or tmpl('error', error='%r not found' % fname)) elif virtual: while virtual: real = dict(self.repos).get(virtual)
try: virtual = req.env.get("PATH_INFO", "").strip('/') if virtual.startswith('static/'): static = os.path.join(templater.templatepath(), 'static') fname = virtual[7:] req.write(staticfile(static, fname, req) or tmpl('error', error='%r not found' % fname)) elif virtual: while virtual: real = dict(self.repos).get(virtual...
def get(section, name, default=None): return u.config(section, name, default, untrusted=True)
c83aed3419db82f951df457a948c5f44b594bdde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/c83aed3419db82f951df457a948c5f44b594bdde/hgwebdir_mod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 3464, 16, 508, 16, 805, 33, 7036, 4672, 327, 582, 18, 1425, 12, 3464, 16, 508, 16, 805, 16, 640, 25247, 33, 5510, 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, 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, 336, 12, 3464, 16, 508, 16, 805, 33, 7036, 4672, 327, 582, 18, 1425, 12, 3464, 16, 508, 16, 805, 16, 640, 25247, 33, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
"""
"""
def prevTimepoint(self): """ Created: 18.07.2006, KP Description: Switch to previous timepoint """ if self.timepoint >= 1: self.setTimepoint(self.timepoint - 1) self.blockTpUpdate = 1 lib.messenger.send(None, "timepoint_changed", self.timepoint) self.blockTpUpdate = 0
228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2807, 950, 1153, 12, 2890, 4672, 3536, 12953, 30, 6549, 18, 8642, 18, 6976, 26, 16, 1475, 52, 6507, 30, 13967, 358, 2416, 813, 1153, 3536, 309, 365, 18, 957, 1153, 1545, 404, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2807, 950, 1153, 12, 2890, 4672, 3536, 12953, 30, 6549, 18, 8642, 18, 6976, 26, 16, 1475, 52, 6507, 30, 13967, 358, 2416, 813, 1153, 3536, 309, 365, 18, 957, 1153, 1545, 404, 30, 365, ...
for tbl in unordered:
for tbl in self._unordered:
def finalize(self): '''Write the final hash tables to the output file, and write out its index. The output file remains open upon return.''' unordered = [[] for i in range(256)] for slab in self._slabs: for pair in slab: unordered[pair[0] & 0xff].append(pair)
e7f2cfcd488fe8e484f0678b68aa07e9a9d7e3d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7738/e7f2cfcd488fe8e484f0678b68aa07e9a9d7e3d2/cdblib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 4672, 9163, 3067, 326, 727, 1651, 4606, 358, 326, 876, 585, 16, 471, 1045, 596, 2097, 770, 18, 1021, 876, 585, 22632, 1696, 12318, 327, 1093, 6309, 29573, 273, 306, 8526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 4672, 9163, 3067, 326, 727, 1651, 4606, 358, 326, 876, 585, 16, 471, 1045, 596, 2097, 770, 18, 1021, 876, 585, 22632, 1696, 12318, 327, 1093, 6309, 29573, 273, 306, 8526...
self.pipeline = p
def f1(): f = ModuleFunction() f.name = 'op' f.returnType = 'void' param = ModuleParam() param.type = 'String' param.strValue = '+' f.params.append(param) return f
0b136f250a226eacc81b90eb4956369e988db984 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/0b136f250a226eacc81b90eb4956369e988db984/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 21, 13332, 284, 273, 5924, 2083, 1435, 284, 18, 529, 273, 296, 556, 11, 284, 18, 2463, 559, 273, 296, 6459, 11, 579, 273, 5924, 786, 1435, 579, 18, 723, 273, 296, 780, 11, 579, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 21, 13332, 284, 273, 5924, 2083, 1435, 284, 18, 529, 273, 296, 556, 11, 284, 18, 2463, 559, 273, 296, 6459, 11, 579, 273, 5924, 786, 1435, 579, 18, 723, 273, 296, 780, 11, 579, ...
self.assertTrue(len(dirs), 4)
self.assertEqual(len(dirs), 4)
def test_getsitepackages(self): site.PREFIXES = ['xoxo'] dirs = site.getsitepackages()
477bd74fb9d12d61f8fb7cbcb55b2cdb33264622 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/477bd74fb9d12d61f8fb7cbcb55b2cdb33264622/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14665, 305, 881, 484, 1023, 12, 2890, 4672, 2834, 18, 6307, 3991, 273, 10228, 92, 2409, 83, 3546, 7717, 273, 2834, 18, 14665, 305, 881, 484, 1023, 1435, 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, 1842, 67, 14665, 305, 881, 484, 1023, 12, 2890, 4672, 2834, 18, 6307, 3991, 273, 10228, 92, 2409, 83, 3546, 7717, 273, 2834, 18, 14665, 305, 881, 484, 1023, 1435, 2, -100, -100, -100, ...
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False):
def _run_latex_(filename, debug=False, density=150, engine=None, png=False, do_in_background=False):
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't conve...
0ba327bff9f9e2dd4e53c3716295af7ddd946dea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0ba327bff9f9e2dd4e53c3716295af7ddd946dea/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 4073, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, 7597, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 4073, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, 7597, 2...
mysql_cur.execute("SELECT name FROM products")
if BZ_VERSION >= 2180: mysql_cur.execute("SELECT name FROM products") else: mysql_cur.execute("SELECT product AS name FROM products")
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue" # init Bugzilla environment print "Bug...
96cc24322ea11500094f96e7b8dc5b0c7e85d253 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/96cc24322ea11500094f96e7b8dc5b0c7e85d253/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
tarinfo = self.tarfile.next() if not tarinfo: self.tarfile._loaded = True raise StopIteration
if not self.tarfile._loaded: tarinfo = self.tarfile.next() if not tarinfo: self.tarfile._loaded = True raise StopIteration else: try: tarinfo = self.tarfile.members[self.index] except IndexError: raise StopIteration self.index += 1
def next(self): """Return the next item using TarFile's next() method. When all members have been read, set TarFile as _loaded. """ tarinfo = self.tarfile.next() if not tarinfo: self.tarfile._loaded = True raise StopIteration return tarinfo
b59755619214a1f1926fd11fdfdf365f25225b6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b59755619214a1f1926fd11fdfdf365f25225b6c/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 3536, 990, 326, 1024, 761, 1450, 20334, 812, 1807, 1024, 1435, 707, 18, 5203, 777, 4833, 1240, 2118, 855, 16, 444, 20334, 812, 487, 389, 4230, 18, 3536, 565, 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, 1024, 12, 2890, 4672, 3536, 990, 326, 1024, 761, 1450, 20334, 812, 1807, 1024, 1435, 707, 18, 5203, 777, 4833, 1240, 2118, 855, 16, 444, 20334, 812, 487, 389, 4230, 18, 3536, 565, 309, ...
print "Number of starttimes != Number of IFOs"
print >> sys.stderr, "Number of starttimes != Number of IFOs"
def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: pri...
9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 315, 5048, 11339, 1296, 980,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 315, 5048, 11339, 1296, 980,...
print base_config().cache.base_dir
def run(self): print base_config().cache.base_dir while True: tiles, progress = self.tiles_queue.get() if tiles is None: return print '[%s] %6.2f%% %s \tETA: %s\r' % ( timestamp(), progress[1]*100, progress[0], progress[2] ), sys.stdout.flush() if not self.dry_run: exp_backoff(self.tile_mgr.load_tile_coords, args=(tile...
24300d6b16d49109f9ed5e38a4059e92fdfe4297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/24300d6b16d49109f9ed5e38a4059e92fdfe4297/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 12568, 16, 4007, 273, 365, 18, 28366, 67, 4000, 18, 588, 1435, 309, 12568, 353, 599, 30, 327, 1172, 21848, 87, 65, 738, 26, 18, 22, 74, 11438, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 12568, 16, 4007, 273, 365, 18, 28366, 67, 4000, 18, 588, 1435, 309, 12568, 353, 599, 30, 327, 1172, 21848, 87, 65, 738, 26, 18, 22, 74, 11438, 7...
test(r"""sre.match(sre.escape(chr(i)), chr(i)) != None""", 1)
test(r"""sre.match(sre.escape(chr(i)), chr(i)) is not None""", 1)
def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1)
43203310e1400f4f6211972756449af0de8cca51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/43203310e1400f4f6211972756449af0de8cca51/test_sre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23559, 67, 2107, 12, 1916, 2603, 4672, 509, 67, 1132, 273, 509, 12, 1916, 2603, 18, 1655, 12, 20, 3719, 327, 609, 12, 474, 67, 1132, 397, 404, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23559, 67, 2107, 12, 1916, 2603, 4672, 509, 67, 1132, 273, 509, 12, 1916, 2603, 18, 1655, 12, 20, 3719, 327, 609, 12, 474, 67, 1132, 397, 404, 13, 225, 2, -100, -100, -100, -100, -10...
tags:tag1,tag2,tag3 : This way you can apply as many tags as you wish using comma as separator
You can also create a task with the attributes "tags", "due", and "defer" in the quickadd entry. The syntax for these attributes is:
def populate(): doc,root = cleanxml.emptydoc("project") #Task 0@1: Getting started with GTG title1 = _("Getting started with GTG") text1 = _("""Welcome to Getting Things Gnome!, your new task manager.
76bf5caf1729f76e2bf15a86b25f71ed1983de5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/76bf5caf1729f76e2bf15a86b25f71ed1983de5e/firstrun_tasks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 13332, 997, 16, 3085, 273, 2721, 2902, 18, 5531, 2434, 2932, 4406, 7923, 225, 468, 2174, 374, 36, 21, 30, 26602, 5746, 598, 19688, 43, 2077, 21, 273, 389, 2932, 19213, 5746, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 13332, 997, 16, 3085, 273, 2721, 2902, 18, 5531, 2434, 2932, 4406, 7923, 225, 468, 2174, 374, 36, 21, 30, 26602, 5746, 598, 19688, 43, 2077, 21, 273, 389, 2932, 19213, 5746, 598, ...
url = response.getheader('Location') logger.debug("Redirecting to: %s" % url) continue
newurl = response.getheader('Location') old = urlparse.urlsplit(url) new = urlparse.urlsplit(newurl) if old[0] == new[0] and old[1] == new[1]: url = newurl logger.debug("Redirecting to: %s" % url) continue else: logger.debug("Illegal redirect: %s to %s" % (url, newurl)) raise IllegalRedirect()
def _request(self, method, url, body=None, extraHeaders={ }): logger.debug("_request: %s %s" % (method, url))
b8f3bed0788e226f719527f46cedaf9b2e897531 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b8f3bed0788e226f719527f46cedaf9b2e897531/WebDAV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2293, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 2870, 3121, 5899, 289, 4672, 1194, 18, 4148, 2932, 67, 2293, 30, 738, 87, 738, 87, 6, 738, 261, 2039, 16, 880, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2293, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 2870, 3121, 5899, 289, 4672, 1194, 18, 4148, 2932, 67, 2293, 30, 738, 87, 738, 87, 6, 738, 261, 2039, 16, 880, 3719, ...
if ((tokenizer.token.value == "get" || tokenizer.token.value == "set") &&
if ((tokenizer.token.value == "get" or tokenizer.token.value == "set") &&
def PrimaryExpression(tokenizer, compilerContext) { var node, childNode, n3, tokenType = tokenizer.get(True) var builder = compilerContext.builder
58afad4d3cade0a037f53f0a04cb23589df417b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/58afad4d3cade0a037f53f0a04cb23589df417b1/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15884, 2300, 12, 2316, 1824, 16, 5274, 1042, 13, 288, 569, 756, 16, 9465, 16, 290, 23, 16, 22302, 273, 10123, 18, 588, 12, 5510, 13, 569, 2089, 273, 5274, 1042, 18, 9574, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15884, 2300, 12, 2316, 1824, 16, 5274, 1042, 13, 288, 569, 756, 16, 9465, 16, 290, 23, 16, 22302, 273, 10123, 18, 588, 12, 5510, 13, 569, 2089, 273, 5274, 1042, 18, 9574, 2, -100, -1...
if options.disable_translation: DEFINES += "QT_NO_TRANSLATION "
if not options.enable_translation: DEFINES += "QT_NO_TRANSLATION "
def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.2") parser.add_option("--dsp", action="store_true", dest="dsp", help="also Generate Visual Studio project files") parser.add_option("--nocolor", action="store_true", dest="nocolor", help="disable...
d941256082445e4067ba7bbfd19725f6d2fd0a35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d941256082445e4067ba7bbfd19725f6d2fd0a35/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5087, 364, 1043, 6540, 25957, 3740, 55, 273, 1408, 9128, 273, 1408, 225, 468, 10939, 1296, 980, 2082, 2082, 273, 18862, 12, 1589, 11613, 14654, 374, 18, 22, 7923, 2082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 5087, 364, 1043, 6540, 25957, 3740, 55, 273, 1408, 9128, 273, 1408, 225, 468, 10939, 1296, 980, 2082, 2082, 273, 18862, 12, 1589, 11613, 14654, 374, 18, 22, 7923, 2082, ...
self->entries[i]->n = n
self->entries[i][0].n = n
void *def land_hash_insert(LandHash *self, char const *thekey, void *data): """Insert data into a LandHash. A LandHash simply is a mapping of keys to data pointers - it will never touch the passed data in any way. E.g. you need to make sure to delete any pointers you add to a hash. If the key already exists, there wi...
b295804d50a24d5b1258d8055ee7d1587badc5d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/930/b295804d50a24d5b1258d8055ee7d1587badc5d4/hash.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 380, 536, 19193, 67, 2816, 67, 6387, 12, 29398, 2310, 380, 2890, 16, 1149, 1866, 380, 5787, 856, 16, 918, 380, 892, 4672, 3536, 4600, 501, 1368, 279, 511, 464, 2310, 18, 225, 432, 511, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 380, 536, 19193, 67, 2816, 67, 6387, 12, 29398, 2310, 380, 2890, 16, 1149, 1866, 380, 5787, 856, 16, 918, 380, 892, 4672, 3536, 4600, 501, 1368, 279, 511, 464, 2310, 18, 225, 432, 511, ...
while var in dir(__builtins__):
while var in dir(__builtin__):
def test_package_import__semantics(self):
6b5f56f291b77472b2f9321cd9b1a981d26390c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/6b5f56f291b77472b2f9321cd9b1a981d26390c0/test_pkgimport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5610, 67, 5666, 972, 18756, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5610, 67, 5666, 972, 18756, 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,...
hour,min,sec=self.parent.date.second2time(int(record_list[3]))
hour,min,sec=self.parent.date.second2time(timeinseconds)
def actualize_dayview(self,record_list): if len(record_list)>0: record_list=record_list[0] distance = self.parseFloat(record_list[2]) beats = self.parseFloat(record_list[4]) average = self.parseFloat(record_list[6]) calories = self.parseFloat(record_list[7]) self.dayview.set_sensitive(1) self.day_distance.set_text("%...
1510b4c661040e069508770d471a3c85c2436c4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11865/1510b4c661040e069508770d471a3c85c2436c4e/windowmain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3214, 554, 67, 2881, 1945, 12, 2890, 16, 3366, 67, 1098, 4672, 309, 562, 12, 3366, 67, 1098, 13, 34, 20, 30, 1409, 67, 1098, 33, 3366, 67, 1098, 63, 20, 65, 225, 3888, 273, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3214, 554, 67, 2881, 1945, 12, 2890, 16, 3366, 67, 1098, 4672, 309, 562, 12, 3366, 67, 1098, 13, 34, 20, 30, 1409, 67, 1098, 33, 3366, 67, 1098, 63, 20, 65, 225, 3888, 273, 365, 18...
%(keysAndValues)s
def send_report(self, report): try: keys = self.load_report(report) except IOError: return self.send_internal_error('Invalid report.')
8d89a4f563c907f77f6daf1c0d56f66a20c4045c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11986/8d89a4f563c907f77f6daf1c0d56f66a20c4045c/ScanView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 6006, 12, 2890, 16, 2605, 4672, 775, 30, 1311, 273, 365, 18, 945, 67, 6006, 12, 6006, 13, 1335, 8340, 30, 327, 365, 18, 4661, 67, 7236, 67, 1636, 2668, 1941, 2605, 1093, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 67, 6006, 12, 2890, 16, 2605, 4672, 775, 30, 1311, 273, 365, 18, 945, 67, 6006, 12, 6006, 13, 1335, 8340, 30, 327, 365, 18, 4661, 67, 7236, 67, 1636, 2668, 1941, 2605, 1093, 13...
for path in self.getplatformpaths(libname): yield path
def getpaths(self,libname): """Return a list of paths where the library might be found.""" if os.path.isabs(libname): yield libname else: for p in self.other_dirs: yield os.path.join(p,libname) yield os.path.join(".",libname) path = ctypes.util.find_library(libname) if path: yield path for path in self.getplatformp...
ff63fd4e07491d4faf12997a5def407e97ca4051 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5005/ff63fd4e07491d4faf12997a5def407e97ca4051/libraryloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4481, 12, 2890, 16, 2941, 529, 4672, 3536, 990, 279, 666, 434, 2953, 1625, 326, 5313, 4825, 506, 1392, 12123, 309, 1140, 18, 803, 18, 291, 5113, 12, 2941, 529, 4672, 2824, 2561, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4481, 12, 2890, 16, 2941, 529, 4672, 3536, 990, 279, 666, 434, 2953, 1625, 326, 5313, 4825, 506, 1392, 12123, 309, 1140, 18, 803, 18, 291, 5113, 12, 2941, 529, 4672, 2824, 2561, 5...
makeTagCloud(keylist, outwords) return keyws def makeTagCloud(entries, outwords):
html_out.sort() html_out.reverse() makeTagCloud(html_out) return 0 def makeTagCloud(entries):
def generate_keywords_rdf(textfile, dictfile, output, outwords, mode): """ A method that generates keywords from an rdf thesaurus. """ keylist = [] keyws = [] counts = {} entries = [] ns_skos = rdflib.Namespace("http://www.w3.org/2004/02/skos/core#") ns_dc=rdflib.Namespace("http://purl.org/dc/elements/1.1/") ns_rdf=r...
64a338f3e936f0b7dd77fc005559df697fcc01ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/64a338f3e936f0b7dd77fc005559df697fcc01ce/bibclassifylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11771, 67, 19299, 12, 955, 768, 16, 2065, 768, 16, 876, 16, 596, 3753, 16, 1965, 4672, 3536, 432, 707, 716, 6026, 7093, 628, 392, 9160, 286, 281, 28659, 407, 18, 3536, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11771, 67, 19299, 12, 955, 768, 16, 2065, 768, 16, 876, 16, 596, 3753, 16, 1965, 4672, 3536, 432, 707, 716, 6026, 7093, 628, 392, 9160, 286, 281, 28659, 407, 18, 3536, 498, ...
fx.run_score_test("b+3", "B+4")
fx.run_score_test("b+3", "B+4.0")
def test_players_score_agree_except_margin(tc): fx = Game_fixture(tc) fx.run_score_test("b+3", "B+4") tc.assertEqual(fx.game.result.sgf_result, "B+") tc.assertEqual(fx.game.result.detail, "unknown margin") tc.assertEqual(fx.game.result.winning_colour, 'b')
7f9b3af7e98ec5643048abc40a0d2ab302c82aa9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/7f9b3af7e98ec5643048abc40a0d2ab302c82aa9/gtp_game_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1601, 414, 67, 6355, 67, 346, 992, 67, 14137, 67, 10107, 12, 5111, 4672, 12661, 273, 14121, 67, 904, 10970, 12, 5111, 13, 12661, 18, 2681, 67, 6355, 67, 3813, 2932, 70, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1601, 414, 67, 6355, 67, 346, 992, 67, 14137, 67, 10107, 12, 5111, 4672, 12661, 273, 14121, 67, 904, 10970, 12, 5111, 13, 12661, 18, 2681, 67, 6355, 67, 3813, 2932, 70, 15, ...
os.pardir, 'include-5.2.0', 'src', '*.h'))
os.pardir, 'include-5.2.0', '*.h'))
def setup_qwt5_build(configuration, options, package): """Setup the qwt module build """ if 'Qwt5' not in options.modules: return print 'Setup the %s package build.' % package build_dir = options.qwt tmp_dir = 'tmp-%s' % options.qwt build_file = os.path.join(tmp_dir, '%s.sbf' % options.qwt) extra_sources = [] extra_h...
7991fea5342babe9bbae030497fdba53470cb332 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5650/7991fea5342babe9bbae030497fdba53470cb332/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 85, 6046, 25, 67, 3510, 12, 7025, 16, 702, 16, 2181, 4672, 3536, 7365, 326, 1043, 6046, 1605, 1361, 3536, 309, 296, 53, 6046, 25, 11, 486, 316, 702, 18, 6400, 30, 327, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 85, 6046, 25, 67, 3510, 12, 7025, 16, 702, 16, 2181, 4672, 3536, 7365, 326, 1043, 6046, 1605, 1361, 3536, 309, 296, 53, 6046, 25, 11, 486, 316, 702, 18, 6400, 30, 327, 225,...
as_checkbox.set_active(self.use_scrobbler)
as_checkbox.set_active(self.as_enabled)
def on_prefs(self, widget): prefswindow = ui.dialog(title=_("Preferences"), parent=self.window, flags=gtk.DIALOG_DESTROY_WITH_PARENT, role='preferences', resizable=False, separator=False) hbox = gtk.HBox() prefsnotebook = gtk.Notebook() # MPD tab mpdlabel = ui.label(markup='<b>' + _('MPD Connection') + '</b>', y=1) con...
d9f94ae44e704d6986404a96af8786c6246b4182 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/d9f94ae44e704d6986404a96af8786c6246b4182/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1484, 2556, 12, 2890, 16, 3604, 4672, 15503, 5668, 273, 5915, 18, 12730, 12, 2649, 33, 67, 2932, 12377, 6, 3631, 982, 33, 2890, 18, 5668, 16, 2943, 33, 4521, 79, 18, 2565, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1484, 2556, 12, 2890, 16, 3604, 4672, 15503, 5668, 273, 5915, 18, 12730, 12, 2649, 33, 67, 2932, 12377, 6, 3631, 982, 33, 2890, 18, 5668, 16, 2943, 33, 4521, 79, 18, 2565, 1...
if x != self.get_symmetry:
if x != self.get_symmetry():
def symmetry_changed(self,x): if x != self.get_symmetry: return True else: return False
28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/28c3f2a245341cd8f82e1ffe9c9883dad13198ad/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26144, 67, 6703, 12, 2890, 16, 92, 4672, 309, 619, 480, 365, 18, 588, 67, 8117, 18042, 13332, 327, 1053, 469, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26144, 67, 6703, 12, 2890, 16, 92, 4672, 309, 619, 480, 365, 18, 588, 67, 8117, 18042, 13332, 327, 1053, 469, 30, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
received = conn.recv(l)
received = '' while len( received ) < l: r = conn.recv(l) if len( r ) == 0: break received = received + r
def run( self ): global terminate
ec5b23437f53778b04cb5ba200e074107eefd732 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10890/ec5b23437f53778b04cb5ba200e074107eefd732/slimv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 262, 30, 2552, 10850, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 262, 30, 2552, 10850, 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...
r'lstlisting[%s]{' % params,
r'begin{lstlisting}%s' % params,
def revert_listings_inset(document): r''' Revert listings inset to \lstinline or \begin, \end lstlisting, translate
a8e9fe82d0461fa821b3ec70c83fe76f02eafcb0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/a8e9fe82d0461fa821b3ec70c83fe76f02eafcb0/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 1098, 899, 67, 267, 542, 12, 5457, 4672, 436, 26418, 868, 1097, 666, 899, 316, 542, 358, 521, 16923, 10047, 578, 521, 10086, 16, 521, 409, 9441, 21228, 16, 4204, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15226, 67, 1098, 899, 67, 267, 542, 12, 5457, 4672, 436, 26418, 868, 1097, 666, 899, 316, 542, 358, 521, 16923, 10047, 578, 521, 10086, 16, 521, 409, 9441, 21228, 16, 4204, 2, -100, -1...
if item == draggedOutItem:
if item == draggedOutItem or item.isStale():
def drawCanvasItems(canvasItems, selected): for canvasItem in canvasItems: canvasItem.Draw(dc, styles, selected)
614ab5cab3e9342b2b61a31d52a28581d6dd612c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/614ab5cab3e9342b2b61a31d52a28581d6dd612c/TimedCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12971, 3126, 12, 15424, 3126, 16, 3170, 4672, 364, 5953, 1180, 316, 5953, 3126, 30, 5953, 1180, 18, 6493, 12, 7201, 16, 5687, 16, 3170, 13, 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, 3724, 12971, 3126, 12, 15424, 3126, 16, 3170, 4672, 364, 5953, 1180, 316, 5953, 3126, 30, 5953, 1180, 18, 6493, 12, 7201, 16, 5687, 16, 3170, 13, 2, -100, -100, -100, -100, -100, -100, ...
pairs = [(dist, a) for a in atoms ] pairs.sort() return [ x[1] for x in pairs ] def randomPatches( self, size, n=None, first_atom=None, exclude=None,
def randomPatches( self, size, n=None, exclude=None,
def orderCenters( self, atoms ): """ Order center atoms by increasing distance to first. atoms - [ int ], atom indices selected by distantAtoms -> [ int ], atom indices re-ordered """ dist = self.__distances( atoms[0] ).tolist() pairs = [(dist, a) for a in atoms ] pairs.sort() return [ x[1] for x in pairs ]
e5244fcd6e879bc27ccfd3cf243d90f2bd6a63fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/e5244fcd6e879bc27ccfd3cf243d90f2bd6a63fb/PatchGeneratorFromOrbit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1353, 15897, 414, 12, 365, 16, 9006, 262, 30, 3536, 4347, 4617, 9006, 635, 21006, 3888, 358, 1122, 18, 9006, 225, 300, 306, 509, 308, 16, 3179, 4295, 3170, 635, 2411, 970, 14280, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1353, 15897, 414, 12, 365, 16, 9006, 262, 30, 3536, 4347, 4617, 9006, 635, 21006, 3888, 358, 1122, 18, 9006, 225, 300, 306, 509, 308, 16, 3179, 4295, 3170, 635, 2411, 970, 14280, 317, ...
lat = self.geodata.get('lat') lon = self.geodata.get('lon'),
lat = self.geodata.get('latitude') lon = self.geodata.get('longitude')
def ConfiguredLocationData(self): if not self.geodata: self.DiscoverLocation() country_code = self.geodata.get('country_code') lat = self.geodata.get('lat') lon = self.geodata.get('lon'),
17498b4285395eabfec0cd099fd26e778fdb4f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/17498b4285395eabfec0cd099fd26e778fdb4f29/base_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1903, 2862, 2735, 751, 12, 2890, 4672, 309, 486, 365, 18, 908, 18229, 30, 365, 18, 26082, 2735, 1435, 5251, 67, 710, 273, 365, 18, 908, 18229, 18, 588, 2668, 9082, 67, 710, 6134, 2516,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1903, 2862, 2735, 751, 12, 2890, 4672, 309, 486, 365, 18, 908, 18229, 30, 365, 18, 26082, 2735, 1435, 5251, 67, 710, 273, 365, 18, 908, 18229, 18, 588, 2668, 9082, 67, 710, 6134, 2516,...
job.status = 'processing'
job.status = 'processing'
def getJob(self): r""" Returns a job to the client. This method returns the first job that has not been completed in our job database.
c834a8c52591d9aaa67980f722e69942a81fbcae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c834a8c52591d9aaa67980f722e69942a81fbcae/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13024, 12, 2890, 4672, 436, 8395, 2860, 279, 1719, 358, 326, 1004, 18, 225, 1220, 707, 1135, 326, 1122, 1719, 716, 711, 486, 2118, 5951, 316, 3134, 1719, 2063, 18, 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, 13024, 12, 2890, 4672, 436, 8395, 2860, 279, 1719, 358, 326, 1004, 18, 225, 1220, 707, 1135, 326, 1122, 1719, 716, 711, 486, 2118, 5951, 316, 3134, 1719, 2063, 18, 2, -100, -100, -100, ...
except etree.XPathEvalError, e: pass
def _is_optimica(self): """ Find out if model is compiled with OptimicaCompiler. """ xmldoc = self._get_XMLDoc() return xmldoc.get_starttime()!=None
def _setDefaultValuesFromMetadata(self, libname=None, path=None): """Load metadata saved in XML files. Meta data can be things like time points, initial states, initial cost etc. """ if libname is None: libname = self._libname if path is None: path = self._path # set start attributes xml_file=libname+'.xml' # assume...
f6bd07566a9303be0d4f4e3f29bbf8c080afb8ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/f6bd07566a9303be0d4f4e3f29bbf8c080afb8ea/jmi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 1868, 1972, 1265, 2277, 12, 2890, 16, 2561, 529, 33, 7036, 16, 589, 33, 7036, 4672, 3536, 2563, 1982, 5198, 316, 3167, 1390, 18, 225, 6565, 501, 848, 506, 9198, 3007, 813, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 1868, 1972, 1265, 2277, 12, 2890, 16, 2561, 529, 33, 7036, 16, 589, 33, 7036, 4672, 3536, 2563, 1982, 5198, 316, 3167, 1390, 18, 225, 6565, 501, 848, 506, 9198, 3007, 813, 31...
class Letter(str): def __new__(cls, letter): if letter == 'EPS': return str.__new__(cls) return str.__new__(cls, letter) def __str__(self): if not self: return 'EPS' return self import sys test_stdout = sys.stdout sys.stdout = get_original_stdout() try: print(Letter('w')) except RuntimeError: pass else: raise TestFa...
## def unsafecmp(a, b):
9ca193d994840dfc726dfaba82577b8b92de1a01 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/9ca193d994840dfc726dfaba82577b8b92de1a01/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7541, 377, 1652, 16804, 1727, 557, 1291, 12, 69, 16, 324, 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,...
[ 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, 7541, 377, 1652, 16804, 1727, 557, 1291, 12, 69, 16, 324, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
stderr_thread.set_daemon(True)
stderr_thread.daemon = True
def _communicate(self, input): stdout = None # Return stderr = None # Return
9c0b2f3c8d66fe855013f73dbf98eefb6f045242 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9c0b2f3c8d66fe855013f73dbf98eefb6f045242/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5702, 318, 2659, 12, 2890, 16, 810, 4672, 3909, 273, 599, 468, 2000, 4514, 273, 599, 468, 2000, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5702, 318, 2659, 12, 2890, 16, 810, 4672, 3909, 273, 599, 468, 2000, 4514, 273, 599, 468, 2000, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if isinstance(kind, int): kind = {0:'zero', 1:'slinear', 2:'quadratic', 3:'cubic'}.get(kind,'none') if kind not in ['zero', 'linear', 'slinear', 'quadratic', 'cubic']: raise NotImplementedError("%d is unsupported: Use fitpack "\ "routines for other types.")
if kind in ['zero', 'slinear', 'quadratic', 'cubic']: order = {'zero':0,'slinear':1,'quadratic':2, 'cubic':3}[kind] kind = 'spline' elif isinstance(kind, int): order = kind kind = 'spline' elif kind != 'linear': raise NotImplementedError("%s is unsupported: Use fitpack "\ "routines for other types." % kind)
def __init__(self, x, y, kind='linear', axis=-1, copy=True, bounds_error=True, fill_value=np.nan): """ Initialize a 1D linear interpolation class.
4db244857b87d5117eda833744edd6826d40a0ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/4db244857b87d5117eda833744edd6826d40a0ad/interpolate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 3846, 2218, 12379, 2187, 2654, 29711, 21, 16, 1610, 33, 5510, 16, 4972, 67, 1636, 33, 5510, 16, 3636, 67, 1132, 33, 6782, 18, 13569, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 3846, 2218, 12379, 2187, 2654, 29711, 21, 16, 1610, 33, 5510, 16, 4972, 67, 1636, 33, 5510, 16, 3636, 67, 1132, 33, 6782, 18, 13569, ...
if code in ['bar','hsb','ksh']:
if code in ['bar','ksh','stq']:
def altlang(code): if code=='aa': return ['am'] if code in ['fa','so']: return ['ar'] if code=='ku': return ['ar','tr'] if code=='sk': return ['cs'] if code in ['bar','hsb','ksh']: return ['de'] if code in ['als','lb']: return ['de','fr'] if code=='io': return ['eo'] if code in ['an','ast','ay','ca','gn','nah','qu']: r...
5e07e31c85f757db4b1cc5703f5312383c81aa64 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/5e07e31c85f757db4b1cc5703f5312383c81aa64/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3770, 4936, 12, 710, 4672, 309, 981, 18920, 7598, 4278, 327, 10228, 301, 3546, 309, 981, 316, 10228, 507, 17023, 2048, 3546, 30, 327, 10228, 297, 3546, 309, 981, 18920, 31562, 4278, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3770, 4936, 12, 710, 4672, 309, 981, 18920, 7598, 4278, 327, 10228, 301, 3546, 309, 981, 316, 10228, 507, 17023, 2048, 3546, 30, 327, 10228, 297, 3546, 309, 981, 18920, 31562, 4278, 327, ...
def run_conv_nnet2_classif(use_gpu, isize, ksize, n_batch, n_iter,
def run_conv_nnet2_classif(use_gpu, isize, ksize, n_batch, n_train,
def run_conv_nnet2_classif(use_gpu, isize, ksize, n_batch, n_iter, downsample_ops=True, verbose=0, version=-1): if use_gpu: shared_fn = tcn.shared_constructor else: shared_fn = shared isize1=isize isize2=isize if isinstance(isize,(tuple,)): isize1=isize[0] isize2=isize[1] shape_img = (n_batch, 1, isize1, isize2) n_k...
096c375fd2a3d51b589713ec856194dfefacf58c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/096c375fd2a3d51b589713ec856194dfefacf58c/test_nnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4896, 67, 82, 2758, 22, 67, 1106, 430, 12, 1202, 67, 23162, 16, 353, 554, 16, 417, 1467, 16, 290, 67, 5303, 16, 290, 67, 9754, 16, 2588, 6358, 67, 4473, 33, 5510, 16, 398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4896, 67, 82, 2758, 22, 67, 1106, 430, 12, 1202, 67, 23162, 16, 353, 554, 16, 417, 1467, 16, 290, 67, 5303, 16, 290, 67, 9754, 16, 2588, 6358, 67, 4473, 33, 5510, 16, 398...
stat_bar = self.gld.get_widget("statusbar") stat_bar.pop(self.stat_id) stat_bar.push(self.stat_id, _("Done.")) return
self._statusbar()
def _refresh_trees_and_queues(self, widget=None, pacs_queues=None): self.database.refresh() self._refresh_repos_tree() if pacs_queues: for pac in pacs_queues["add"]: if not pac.name in self.queues["add"]: self.queues["add"].append(pac.name)
64e1ca025017891278f9940d2cf1488af419581a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/64e1ca025017891278f9940d2cf1488af419581a/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9144, 67, 17204, 67, 464, 67, 18924, 12, 2890, 16, 3604, 33, 7036, 16, 293, 28965, 67, 18924, 33, 7036, 4672, 365, 18, 6231, 18, 9144, 1435, 365, 6315, 9144, 67, 15564, 67, 3413, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9144, 67, 17204, 67, 464, 67, 18924, 12, 2890, 16, 3604, 33, 7036, 16, 293, 28965, 67, 18924, 33, 7036, 4672, 365, 18, 6231, 18, 9144, 1435, 365, 6315, 9144, 67, 15564, 67, 3413, ...
for varname in varnames: vardoc = VariableDoc(varname, ValueDoc(), is_alias=0,
for varname, valuedoc_proxy in var_proxies.items(): vardoc = VariableDoc(varname, valuedoc_proxy, is_alias=0,
def process_import(self, cmd, names, pseudo_docstring): """ The statement handler for import statements. This handler adds a C{VariableDoc} to the parent C{APIDoc} for each name that is created by importing. These C{VariableDoc}s have empty C{ValueDoc}s, and are marked as imported (i.e., C{L{is_imported<VariableDoc.i...
d4b62290bc22e63f8cc96e7c77bc6b16300b943b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d4b62290bc22e63f8cc96e7c77bc6b16300b943b/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 5666, 12, 2890, 16, 1797, 16, 1257, 16, 12454, 67, 24675, 4672, 3536, 1021, 3021, 1838, 364, 1930, 6317, 18, 225, 1220, 1838, 4831, 279, 385, 95, 3092, 1759, 97, 358, 326, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5666, 12, 2890, 16, 1797, 16, 1257, 16, 12454, 67, 24675, 4672, 3536, 1021, 3021, 1838, 364, 1930, 6317, 18, 225, 1220, 1838, 4831, 279, 385, 95, 3092, 1759, 97, 358, 326, 98...
c.Run()
def call_upload_file(node_list, file_name, address_list=None): """Upload a file.
ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 6327, 67, 768, 12, 2159, 67, 1098, 16, 585, 67, 529, 16, 1758, 67, 1098, 33, 7036, 4672, 3536, 4777, 279, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 6327, 67, 768, 12, 2159, 67, 1098, 16, 585, 67, 529, 16, 1758, 67, 1098, 33, 7036, 4672, 3536, 4777, 279, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
imageLU = map_chunk_slice(-10, 40, 70).crop((0,0,256,256)) imageRU = map_chunk_slice(-9, 40, 70).crop((0,0,256,256)) imageLD = map_chunk_slice(-10, 41, 70).crop((0,0,256,256)) imageRD = map_chunk_slice(-9, 41, 70).crop((0,0,256,256)) print "Image mode: %s" % imageLU.mode image = Image.new("RGB", (512, 512)) image.pas...
def get_cropbox(x, y): return (x*16, y*16, x*16 + 16, y*16 + 16)
085d2e65d6c70e23a4d1c9d5c5373fe9db845f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13883/085d2e65d6c70e23a4d1c9d5c5373fe9db845f1a/read_chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13758, 2147, 12, 92, 16, 677, 4672, 327, 261, 92, 14, 2313, 16, 677, 14, 2313, 16, 619, 14, 2313, 397, 2872, 16, 677, 14, 2313, 397, 2872, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13758, 2147, 12, 92, 16, 677, 4672, 327, 261, 92, 14, 2313, 16, 677, 14, 2313, 16, 619, 14, 2313, 397, 2872, 16, 677, 14, 2313, 397, 2872, 13, 2, -100, -100, -100, -100, -...
self.ppp_list.append(filename)
def initialize(self, atoms): self.numbers = atoms.get_atomic_numbers().copy() self.species = [] for a, Z in enumerate(self.numbers): if a in self.ghosts: Z = -Z if Z not in self.species: self.species.append(Z)
bcd79d18ba4e7ed8dd8f2976da3985f94158dae8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/bcd79d18ba4e7ed8dd8f2976da3985f94158dae8/abinit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 9006, 4672, 365, 18, 13851, 273, 9006, 18, 588, 67, 27718, 67, 13851, 7675, 3530, 1435, 365, 18, 22657, 273, 5378, 364, 279, 16, 2285, 316, 4241, 12, 2890, 18, 1385...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 9006, 4672, 365, 18, 13851, 273, 9006, 18, 588, 67, 27718, 67, 13851, 7675, 3530, 1435, 365, 18, 22657, 273, 5378, 364, 279, 16, 2285, 316, 4241, 12, 2890, 18, 1385...
n = 0
def _banreviewfix(self): # FIXME workaround until proper fix is done. bag = set() nodups = set() n = 0 for host, reviews in self.pendingReviews.iteritems(): n += len(reviews) for nick, msg in reviews: if nick == 'Automated-Addition': continue chan, m = msg.args[0], msg.args[1] s = m.rpartition(' ')[0] #remove the url i...
5f68b51f72d1691845fd666f0ce320cd91f92b90 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3106/5f68b51f72d1691845fd666f0ce320cd91f92b90/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 21515, 16041, 904, 12, 2890, 4672, 468, 9852, 18975, 3180, 5338, 2917, 353, 2731, 18, 13189, 273, 444, 1435, 14003, 18294, 273, 444, 1435, 364, 1479, 16, 283, 7061, 316, 365, 18, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21515, 16041, 904, 12, 2890, 4672, 468, 9852, 18975, 3180, 5338, 2917, 353, 2731, 18, 13189, 273, 444, 1435, 14003, 18294, 273, 444, 1435, 364, 1479, 16, 283, 7061, 316, 365, 18, 95...
game.quad[game.sector.x][game.sector.y]=IHDOT
game.quad[game.sector.i][game.sector.j]=IHDOT
def mayday(): "Yell for help from nearest starbase." # There's more than one way to move in this game! scanner.chew() # Test for conditions which prevent calling for help if game.condition == "docked": prout(_("Lt. Uhura- \"But Captain, we're already docked.\"")) return if damaged(DRADIO): prout(_("Subspace radio dama...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2026, 2881, 13332, 315, 61, 1165, 364, 2809, 628, 11431, 10443, 1969, 1199, 468, 6149, 1807, 1898, 2353, 1245, 4031, 358, 3635, 316, 333, 7920, 5, 7683, 18, 343, 359, 1435, 468, 7766, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2026, 2881, 13332, 315, 61, 1165, 364, 2809, 628, 11431, 10443, 1969, 1199, 468, 6149, 1807, 1898, 2353, 1245, 4031, 358, 3635, 316, 333, 7920, 5, 7683, 18, 343, 359, 1435, 468, 7766, 36...
l = len(chunks[0])
l = len(chunks[-1])
def _wrap_chunks(self, chunks): """_wrap_chunks(chunks : [string]) -> [string]
d6b1aef33b7c7d40bfb1081d307451a71781d2bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6b1aef33b7c7d40bfb1081d307451a71781d2bc/textwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 67, 14691, 12, 2890, 16, 6055, 4672, 3536, 67, 4113, 67, 14691, 12, 14691, 294, 306, 1080, 5717, 317, 306, 1080, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 67, 14691, 12, 2890, 16, 6055, 4672, 3536, 67, 4113, 67, 14691, 12, 14691, 294, 306, 1080, 5717, 317, 306, 1080, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
changed_cb=self.prefs_art_location_changed) display_art_location_hbox = gtk.HBox(spacing=12) display_art_location_hbox.pack_end(display_art_location, False, False) display_art_location_hbox.pack_end(ui.label( text=_("Save art to:")), False, False) display_art_location_hbox.set_sensitive(self.config.show_covers) displa...
changed_cb=self._art_location_changed) art_location_hbox = gtk.HBox(spacing=12) art_location_hbox.pack_end(art_location, False, False) art_location_hbox.pack_end(ui.label(text=_("Save art to:")), False, False) art_location_hbox.set_sensitive(self.config.show_covers) art.connect('toggled', art_toggled, art_hbox, art_lo...
def display_tab(self, prefs_stylized_toggled, prefs_art_toggled, prefs_playback_toggled, prefs_progress_toggled, prefs_statusbar_toggled, prefs_lyrics_toggled, trayicon_available): """Construct and layout the display tab""" displaylabel = ui.label(markup='<b>' + _('Display') + '</b>') display_frame = gtk.Frame() displa...
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 7032, 12, 2890, 16, 15503, 67, 334, 93, 80, 1235, 67, 88, 23972, 1259, 16, 15503, 67, 485, 67, 88, 23972, 1259, 16, 15503, 67, 1601, 823, 67, 88, 23972, 1259, 16, 15503, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 7032, 12, 2890, 16, 15503, 67, 334, 93, 80, 1235, 67, 88, 23972, 1259, 16, 15503, 67, 485, 67, 88, 23972, 1259, 16, 15503, 67, 1601, 823, 67, 88, 23972, 1259, 16, 15503, 67...
direc = eye(N,dtype=float)
if direc is None: direc = eye(N, dtype=float) else: direc = asarray(direc, dtype=float)
def fmin_powell(func, x0, args=(), xtol=1e-4, ftol=1e-4, maxiter=None, maxfun=None, full_output=0, disp=1, retall=0, callback=None): """Minimize a function using modified Powell's method. Description: Uses a modification of Powell's method to find the minimum of a function of N variables Inputs: func -- the Python ...
8974d1f4da239d0c491cb9e9b4582fc60c0f37d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8974d1f4da239d0c491cb9e9b4582fc60c0f37d4/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 23509, 1165, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 619, 3490, 33, 21, 73, 17, 24, 16, 284, 3490, 33, 21, 73, 17, 24, 16, 25743, 33, 7036, 16, 943, 12125, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1154, 67, 23509, 1165, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 619, 3490, 33, 21, 73, 17, 24, 16, 284, 3490, 33, 21, 73, 17, 24, 16, 25743, 33, 7036, 16, 943, 12125, 33, 70...
else: self.pop_dialog('连线错误', 'retstr') return False
def online(self, widget, data=None): self.e_user.set_editable(False) self.e_passwd.set_editable(False) self.account[0] = self.e_user.get_text() self.account[2] = self.e_passwd.get_text() self.account[3] = self.e_server.get_text() casnetconf.ops['-u'] = self.account[0] casnetconf.ops['-d'] = self.account[1] casnetconf.o...
ff5f65cbaefb102f37aa0e9b4e8324968d2e1e80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4851/ff5f65cbaefb102f37aa0e9b4e8324968d2e1e80/casnet-gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12365, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 365, 18, 73, 67, 1355, 18, 542, 67, 19653, 12, 8381, 13, 365, 18, 73, 67, 24002, 18, 542, 67, 19653, 12, 8381, 13, 365, 18, 4631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12365, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 365, 18, 73, 67, 1355, 18, 542, 67, 19653, 12, 8381, 13, 365, 18, 73, 67, 24002, 18, 542, 67, 19653, 12, 8381, 13, 365, 18, 4631...
best=orngSVM.parameter_selection(orngSVM.SVMLearner(),self.widget.data, 4, params, best, callback=self.widget.progres) except SystemExit:
best=orngSVM.parameter_selection(orngSVM.SVMLearner(),self.data, 4, params, best, callback=self.progres) except :
def run(self): params={} if self.widget.useNu: params["nu"]=[0.25, 0.5, 0.75] else: params["C"]=map(lambda g:2**g, range(-5,10,2)) if self.widget.kernel_type in [1,2]: params["gamma"]=map(lambda g:2**g, range(-3,10,2)) if self.widget.kernel_type==1: params["degree"]=[1,2,3] best={} try: best=orngSVM.parameter_selection...
a017a62eeb64cb8f18353a5ad8eaccb9881945cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/a017a62eeb64cb8f18353a5ad8eaccb9881945cf/OWSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 859, 12938, 309, 365, 18, 6587, 18, 1202, 50, 89, 30, 859, 9614, 13053, 11929, 22850, 20, 18, 2947, 16, 374, 18, 25, 16, 374, 18, 5877, 65, 469, 30, 859, 9614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 859, 12938, 309, 365, 18, 6587, 18, 1202, 50, 89, 30, 859, 9614, 13053, 11929, 22850, 20, 18, 2947, 16, 374, 18, 25, 16, 374, 18, 5877, 65, 469, 30, 859, 9614, ...
else: self._repository = args[0]
self._repository = args[0] for key,value in optlist: if key == '-o': self._output_dir = value elif key == '--output-dir': self._output_dir = value
def __init__(self, argv): self._argv = argv self._broken = False self._repository = None self._want_help = False self._error_message = None self._generate_all = True self._stats_to_generate = [] self._svn_binary = 'svn' self._outpur_dir = 'mpy-svn-stats'
6b9b071b98917bc4ce6a2b46cff255e9e6def7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2516/6b9b071b98917bc4ce6a2b46cff255e9e6def7cf/mpy-svn-stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5261, 4672, 365, 6315, 19485, 273, 5261, 365, 6315, 70, 19906, 273, 1083, 365, 6315, 9071, 273, 599, 365, 6315, 17369, 67, 5201, 273, 1083, 365, 6315, 1636...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5261, 4672, 365, 6315, 19485, 273, 5261, 365, 6315, 70, 19906, 273, 1083, 365, 6315, 9071, 273, 599, 365, 6315, 17369, 67, 5201, 273, 1083, 365, 6315, 1636...
s += '<a id="worksheet_title" class="worksheet_title" onClick="rename_worksheet(); return false;" title="Click to rename this worksheet">%s</a>'%(name.replace('<','&lt;'))
s += '<a id="worksheet_title" class="worksheet_title" onClick="rename_worksheet(); return false;" title="Click to rename this worksheet">%s</a>'%(cgi.escape(name))
def html_title(self, username='guest'): name = self.truncated_name()
dcd8cb32f2748f4f5a3f4b5ce524836841d15158 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dcd8cb32f2748f4f5a3f4b5ce524836841d15158/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 2649, 12, 2890, 16, 2718, 2218, 18908, 11, 4672, 508, 273, 365, 18, 23558, 690, 67, 529, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 2649, 12, 2890, 16, 2718, 2218, 18908, 11, 4672, 508, 273, 365, 18, 23558, 690, 67, 529, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
body += _("You may want to start browsing from &s") % link
body += _("You may want to start browsing from %s") % link
def tmpl_record_not_found(self, status='missing', recID="", ln=cdslang): """ Displays a page when bad or missing record ID was given. @param status: 'missing' : no recID was given 'inexistant': recID doesn't have an entry in the database 'nan' : recID is not a number 'invalid' : recID is an error code, i.e. ...
aaafa5fdc87762fc45b4953ee2125dba571f03c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/aaafa5fdc87762fc45b4953ee2125dba571f03c7/webcomment_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3366, 67, 902, 67, 7015, 12, 2890, 16, 1267, 2218, 7337, 2187, 1950, 734, 1546, 3113, 7211, 33, 4315, 2069, 539, 4672, 3536, 9311, 87, 279, 1363, 1347, 5570, 578, 3315, 1409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3366, 67, 902, 67, 7015, 12, 2890, 16, 1267, 2218, 7337, 2187, 1950, 734, 1546, 3113, 7211, 33, 4315, 2069, 539, 4672, 3536, 9311, 87, 279, 1363, 1347, 5570, 578, 3315, 1409, ...
matches = [(x,y) for (x,y) in unicode_names if pat.search(y) is not None]
matches = [(y,x) for (x,y) in unicode_names if pat.search(y) is not None]
def main(args): unicode_names= [] for ix in range(sys.maxunicode+1): try: unicode_names.append( (ix, unicodedata.name(unichr(ix))) ) except ValueError: # no name for the character pass for arg in args: pat = re.compile(arg, re.I) matches = [(x,y) for (x,y) in unicode_names if pat.search(y) is not None] if matches: prin...
3c531ff74ae7d943b8c50bdd89b1f0393015b964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/3c531ff74ae7d943b8c50bdd89b1f0393015b964/find-uname.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 5252, 67, 1973, 33, 5378, 364, 8288, 316, 1048, 12, 9499, 18, 1896, 9124, 15, 21, 4672, 775, 30, 5252, 67, 1973, 18, 6923, 12, 261, 697, 16, 5252, 892, 18, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 5252, 67, 1973, 33, 5378, 364, 8288, 316, 1048, 12, 9499, 18, 1896, 9124, 15, 21, 4672, 775, 30, 5252, 67, 1973, 18, 6923, 12, 261, 697, 16, 5252, 892, 18, 529,...
550. If all addresses are accepted, then the method will return an
550. If all addresses are accepted, then the method will return an
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
02d53b2445aff540d0f856f099c20b160ea659ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/02d53b2445aff540d0f856f099c20b160ea659ba/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
for node in nodes:
for node in nodes[:]:
def call(self, auth, node_filter = None, return_fields = None): # Get node information nodes = Nodes(self.api, node_filter, return_fields)
66525a88db155d029e62841ec2170b276995e8cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7598/66525a88db155d029e62841ec2170b276995e8cc/GetNodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 756, 67, 2188, 273, 599, 16, 327, 67, 2821, 273, 599, 4672, 468, 968, 756, 1779, 2199, 273, 14037, 12, 2890, 18, 2425, 16, 756, 67, 2188, 16, 327, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 745, 12, 2890, 16, 1357, 16, 756, 67, 2188, 273, 599, 16, 327, 67, 2821, 273, 599, 4672, 468, 968, 756, 1779, 2199, 273, 14037, 12, 2890, 18, 2425, 16, 756, 67, 2188, 16, 327, 67, ...
"""Returns the file selection dialog that may be shared among different modules of this application. This command will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to tix filedialog. An optional dlgclass parameter can be passe...
"""Returns the file selection dialog that may be shared among different calls from this application. This command will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to tix_filedialog. An optional dlgclass parameter can be passed to specifie...
def tix_filedialog(self, dlgclass=None): """Returns the file selection dialog that may be shared among different modules of this application. This command will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to tix filedialog. An op...
f6251f98f783a2e87344774cc7be0958561e5a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f6251f98f783a2e87344774cc7be0958561e5a16/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 697, 67, 768, 12730, 12, 2890, 16, 25840, 1106, 33, 7036, 4672, 3536, 1356, 326, 585, 4421, 6176, 716, 2026, 506, 5116, 17200, 3775, 4097, 628, 333, 2521, 18, 225, 1220, 1296, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 697, 67, 768, 12730, 12, 2890, 16, 25840, 1106, 33, 7036, 4672, 3536, 1356, 326, 585, 4421, 6176, 716, 2026, 506, 5116, 17200, 3775, 4097, 628, 333, 2521, 18, 225, 1220, 1296, 903, ...
snmpEngine.msgAndPduDsp.mibInstrumControlle.writeVars(
snmpEngine.msgAndPduDsp.mibInstrumController.writeVars(
def delVacmAccess(snmpEngine, groupName, contextName, securityModel, securityLevel): vacmAccessEntry, tblIdx = __cookVacmAccessInfo( snmpEngine, groupName, contextName, securityModel, securityLevel ) snmpEngine.msgAndPduDsp.mibInstrumControlle.writeVars( ((vacmAccessEntry.name + (9,) + tblIdx, 'destroy'),) )
7dfad80e5e6161ff385f2a932b0de0b0bc82af59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/7dfad80e5e6161ff385f2a932b0de0b0bc82af59/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 58, 26279, 1862, 12, 26527, 4410, 16, 11619, 16, 819, 461, 16, 4373, 1488, 16, 4373, 2355, 4672, 331, 26279, 1862, 1622, 16, 10142, 4223, 273, 1001, 29854, 58, 26279, 1862, 966, 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, 1464, 58, 26279, 1862, 12, 26527, 4410, 16, 11619, 16, 819, 461, 16, 4373, 1488, 16, 4373, 2355, 4672, 331, 26279, 1862, 1622, 16, 10142, 4223, 273, 1001, 29854, 58, 26279, 1862, 966, 12...
"""
def test_sendbytes(self): if self.TYPE != 'processes': return
9cbd5a7ebf2e75965579f3919b8cd9004fbf3411 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9cbd5a7ebf2e75965579f3919b8cd9004fbf3411/test_multiprocessing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 3890, 12, 2890, 4672, 309, 365, 18, 2399, 480, 296, 18675, 4278, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 3890, 12, 2890, 4672, 309, 365, 18, 2399, 480, 296, 18675, 4278, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return ""
return ""
def cleanwikicode(text): if not text: return ""
1fc8304d6ddd18fcd83597ff7597b54525735edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1fc8304d6ddd18fcd83597ff7597b54525735edf/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 11999, 3487, 12, 955, 4672, 309, 486, 977, 30, 327, 1408, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 11999, 3487, 12, 955, 4672, 309, 486, 977, 30, 327, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
fov = 360.0 * atan(16.0 / camera.getLens()) / pi
if IM_HEIGHT > IM_WIDTH: factor=float(IM_WIDTH) / float(IM_HEIGHT) else: factor=1 fov = 360.0 * atan((factor*16.0) / camera.lens) / pi
def export_camera(cam): # get the camera camera = cam.getData() print "o exporting Camera "+camera.getName()+"..." # get the object matrix so we can calculate to and up objmatrix = cam.matrix eyeV = Mathutils.Vector([0, 0, 0, 1]) targetV = Mathutils.Vector([0, 0, -1, 1]) upV = Mathutils.Vector([0, 1, 0, 0]) ...
8623cadbda506d5312cf919d0f5bd1f96351ae31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/8623cadbda506d5312cf919d0f5bd1f96351ae31/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 26426, 12, 20133, 4672, 225, 468, 336, 326, 10836, 10836, 273, 5861, 18, 588, 751, 1435, 1172, 315, 83, 3359, 310, 30355, 13773, 26426, 18, 17994, 1435, 9078, 7070, 225, 468, 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, 3359, 67, 26426, 12, 20133, 4672, 225, 468, 336, 326, 10836, 10836, 273, 5861, 18, 588, 751, 1435, 1172, 315, 83, 3359, 310, 30355, 13773, 26426, 18, 17994, 1435, 9078, 7070, 225, 468, 3...
start = start + timedelta(seconds=randint(-1, 4))
start = start + timedelta(seconds=randint(-1, 6))
def generate_progressive_date(start): while True: start = start + timedelta(seconds=randint(-1, 4)) yield start
629679d47a45ed50e4033049929bb76f4b8deafe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12383/629679d47a45ed50e4033049929bb76f4b8deafe/dist-make-test-database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 8298, 688, 67, 712, 12, 1937, 4672, 1323, 1053, 30, 787, 273, 787, 397, 10661, 12, 7572, 33, 7884, 474, 19236, 21, 16, 1666, 3719, 2824, 787, 225, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 8298, 688, 67, 712, 12, 1937, 4672, 1323, 1053, 30, 787, 273, 787, 397, 10661, 12, 7572, 33, 7884, 474, 19236, 21, 16, 1666, 3719, 2824, 787, 225, 2, -100, -100, -100, -100, ...
r""" Initial digit of $n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000030; a Initial digit of n sage: a(0) 0 sage: a(1) 1 sage: a(8) 8 sage: a(454) 4 sage: a(-4) Traceback (most recent call last): ... ValueError: input n (=-4) must be an integer >= 0 sage: a.lis...
def __init__(self): r""" Initial digit of $n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000030; a Initial digit of n sage: a(0) 0 sage: a(1) 1 sage: a(8) 8 sage: a(454) 4 sage: a(-4) Traceback (most recent call last): ... ValueError: input n (=-4) must be an inte...
def list(self, n): try: if len(self._b) <= n: raise IndexError else: return self._b[:n] except (AttributeError, IndexError): self._precompute() # try again return self.list(n)
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 775, 30, 309, 562, 12, 2890, 6315, 70, 13, 1648, 290, 30, 1002, 10195, 469, 30, 327, 365, 6315, 70, 10531, 82, 65, 1335, 261, 1499, 668, 16, 10195, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 775, 30, 309, 562, 12, 2890, 6315, 70, 13, 1648, 290, 30, 1002, 10195, 469, 30, 327, 365, 6315, 70, 10531, 82, 65, 1335, 261, 1499, 668, 16, 10195, 4672...
override if you don't want the standard buttons
override if you do not want the standard buttons
def buttonbox(self): '''add standard button box.
1444a631bfccf78b5684c81fd87c35a1d86968b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1444a631bfccf78b5684c81fd87c35a1d86968b7/tkSimpleDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 2147, 12, 2890, 4672, 9163, 1289, 4529, 3568, 3919, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3568, 2147, 12, 2890, 4672, 9163, 1289, 4529, 3568, 3919, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if __name__ == '__main__': _main(sys.argv)
if __name__ == '__main__': sys.stdout = codecs.getwriter( "utf-8" )( sys.stdout, "replace" ) sys.stderr = codecs.getwriter( "utf-8" )( sys.stderr, "replace" ) _main(sys.argv)
def _main(arglist): signal.signal(signal.SIGINT, signalHandler) try: (argp, rest) = getopt.gnu_getopt(arglist[1:], "sdfrokc:h", longopts=["state", "daemon", "full-help", "run", "runonce", "kill", "config=", "set-default-config=", "help", "list-failed", "list-saved", "purged-saved", "purge-failed", "comment-config"]) e...
cb06f1645b77b7012f9195d9b9e4a000a0842687 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/cb06f1645b77b7012f9195d9b9e4a000a0842687/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 12, 3175, 1098, 4672, 4277, 18, 10420, 12, 10420, 18, 18513, 3217, 16, 4277, 1503, 13, 775, 30, 261, 3175, 84, 16, 3127, 13, 273, 225, 336, 3838, 18, 1600, 89, 67, 588, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 12, 3175, 1098, 4672, 4277, 18, 10420, 12, 10420, 18, 18513, 3217, 16, 4277, 1503, 13, 775, 30, 261, 3175, 84, 16, 3127, 13, 273, 225, 336, 3838, 18, 1600, 89, 67, 588, 38...
return _old_pydoc_help_call(self, *map(ppresolve,args), **kwds)
return _old_pydoc_help_call(self, *map(_ppresolve_ignore_failure,args), **kwds)
def _scipy_pydoc_help_call(self,*args,**kwds): return _old_pydoc_help_call(self, *map(ppresolve,args), **kwds)
5d6793a718e91906b1e75665ba78c6e02e6a1370 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5d6793a718e91906b1e75665ba78c6e02e6a1370/ppimport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1017, 9126, 67, 2074, 2434, 67, 5201, 67, 1991, 12, 2890, 16, 14, 1968, 16, 636, 25577, 4672, 327, 389, 1673, 67, 2074, 2434, 67, 5201, 67, 1991, 12, 2890, 16, 380, 1458, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1017, 9126, 67, 2074, 2434, 67, 5201, 67, 1991, 12, 2890, 16, 14, 1968, 16, 636, 25577, 4672, 327, 389, 1673, 67, 2074, 2434, 67, 5201, 67, 1991, 12, 2890, 16, 380, 1458, 12, 11...
print pot_header % {'time': timestamp, 'version':__version__}
print pot_header % {'time': timestamp, 'version': __version__}
def write(self, fp): options = self.__options timestamp = time.ctime(time.time()) # common header try: sys.stdout = fp # The time stamp in the header doesn't have the same format # as that generated by xgettext... print pot_header % {'time': timestamp, 'version':__version__} for k, v in self.__messages.items(): for fil...
b748a44903fd0395aa03a8c8e6f42748f50d37f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b748a44903fd0395aa03a8c8e6f42748f50d37f5/pygettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4253, 4672, 702, 273, 365, 16186, 2116, 2858, 273, 813, 18, 21261, 12, 957, 18, 957, 10756, 468, 2975, 1446, 775, 30, 2589, 18, 10283, 273, 4253, 468, 1021, 813, 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, 1045, 12, 2890, 16, 4253, 4672, 702, 273, 365, 16186, 2116, 2858, 273, 813, 18, 21261, 12, 957, 18, 957, 10756, 468, 2975, 1446, 775, 30, 2589, 18, 10283, 273, 4253, 468, 1021, 813, 14...
if f.find('.svn')==-1 and f.find('LICENSE')==-1 and f.find('.psd')==-1 and f.find('.noinclude')==-1 and f.find('.module.damnvid')==-1 and f.find('.bmp')==-1 and f.find('.ai')==-1 and f.find('.exe')==-1 and f.find('.zip')==-1 and f.find('fireworks.png')==-1:
if goodFile(f):
def addDir(d): for f in os.listdir(d): if f.find('.svn')==-1 and f.find('LICENSE')==-1 and f.find('.psd')==-1 and f.find('.noinclude')==-1 and f.find('.module.damnvid')==-1 and f.find('.bmp')==-1 and f.find('.ai')==-1 and f.find('.exe')==-1 and f.find('.zip')==-1 and f.find('fireworks.png')==-1: if os.path.isdir(d+os.s...
a2dbe49821a3445804104a60e1d9d3e41981ac44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/a2dbe49821a3445804104a60e1d9d3e41981ac44/build-required-files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1621, 12, 72, 4672, 364, 284, 316, 1140, 18, 1098, 1214, 12, 72, 4672, 309, 7494, 812, 12, 74, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 72, 15, 538, 18, 10814, 15, 74, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1621, 12, 72, 4672, 364, 284, 316, 1140, 18, 1098, 1214, 12, 72, 4672, 309, 7494, 812, 12, 74, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 72, 15, 538, 18, 10814, 15, 74, 467...