rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
jids = [u.jid for u in subscribers[lang]]
jids = [u.jid for u in subscribers[lang] if u.jid]
def page_change(type, request, page, subscribers, **kwargs): _ = request.getText if subscribers: # send notifications to all subscribers results = [_('Status of sending notifications:')] for lang in subscribers: jids = [u.jid for u in subscribers[lang]] names = [u.name for u in subscribers[lang]] msg = page_change_message(type, request, page, lang, **kwargs) jabberok, status = send_notification(request, jids, msg) recipients = ", ".join(names) results.append(_('[%(lang)s] %(recipients)s: %(status)s') % { 'lang': lang, 'recipients': recipients, 'status': status}) # Return notifications sent results. Ignore trivial - we don't have # to lie. If notification was sent, just tell about it. return '<p>\n%s\n</p> ' % '<br>'.join(results) # No notifications sent, no message. return ''
22260e87cf52e72443b0d385b6aa0a576cc76461 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/22260e87cf52e72443b0d385b6aa0a576cc76461/jabbernotify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1363, 67, 3427, 12, 723, 16, 590, 16, 1363, 16, 16768, 16, 2826, 4333, 4672, 225, 389, 273, 590, 18, 588, 1528, 225, 309, 16768, 30, 468, 1366, 9208, 358, 777, 16768, 1686, 273, 306, 67, 2668, 1482, 434, 5431, 9208, 2497, 25887, 364, 3303, 316, 16768, 30, 525, 2232, 273, 306, 89, 18, 18252, 364, 582, 316, 16768, 63, 4936, 65, 309, 582, 18, 18252, 65, 1257, 273, 306, 89, 18, 529, 364, 582, 316, 16768, 63, 4936, 13563, 1234, 273, 1363, 67, 3427, 67, 2150, 12, 723, 16, 590, 16, 1363, 16, 3303, 16, 2826, 4333, 13, 525, 378, 744, 601, 16, 1267, 273, 1366, 67, 9927, 12, 2293, 16, 525, 2232, 16, 1234, 13, 12045, 273, 3104, 3552, 5701, 12, 1973, 13, 1686, 18, 6923, 24899, 2668, 14451, 12, 4936, 13, 87, 65, 8975, 27925, 13, 87, 30, 8975, 2327, 13, 87, 6134, 738, 288, 296, 4936, 4278, 3303, 16, 296, 27925, 4278, 12045, 16, 296, 2327, 4278, 1267, 6792, 225, 468, 2000, 9208, 3271, 1686, 18, 8049, 433, 20109, 300, 732, 2727, 1404, 1240, 468, 358, 328, 1385, 18, 971, 3851, 1703, 3271, 16, 2537, 9276, 2973, 518, 18, 327, 2368, 84, 5333, 82, 9, 87, 64, 82, 1757, 84, 34, 296, 738, 2368, 2848, 1870, 18, 5701, 12, 4717, 13, 225, 468, 2631, 9208, 3271, 16, 1158, 883, 18, 327, 875, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1363, 67, 3427, 12, 723, 16, 590, 16, 1363, 16, 16768, 16, 2826, 4333, 4672, 225, 389, 273, 590, 18, 588, 1528, 225, 309, 16768, 30, 468, 1366, 9208, 358, 777, 16768, 1686, 273, 306, 67, 2668, 1482, 434, 5431, 9208, 2497, 25887, 364, 3303, 316, 16768, 30, 525, 2232, 273, 306, 89, 18, 18252, 364, 582, 316, 16768, 63, 4936, 65, 309, 582, 18, 18252, 65, 1257, 273, 306, 89, 18, 529, 364, 582, 316, 16768, 63, 4936, 13563, 1234, 273, 1363, 67, 3427, 67, 2150, 12, 723, 16, 590, 16, 1363, 16, 3303, 16, 2826, 4333, 13, 525, 378, 744, 601, 16, 1267, 273, 1366, 67, 9927, 12, 2293, 16, 525, 2232, 16, 1234, 13, 12045, 2 ]
dispIncr.view("DISP INCR")
def step(self, t, dt): """ Advance to next time step. """ dispIncr = self.fields.get("dispIncr(t->t+dt)")
ddcd113872eabed45c98191d7d8d296e8c2e22a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8645/ddcd113872eabed45c98191d7d8d296e8c2e22a8/Implicit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 268, 16, 3681, 4672, 3536, 4052, 5882, 358, 1024, 813, 2235, 18, 3536, 16232, 382, 3353, 273, 365, 18, 2821, 18, 588, 2932, 25453, 382, 3353, 12, 88, 2122, 88, 15, 7510, 2225, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2235, 12, 2890, 16, 268, 16, 3681, 4672, 3536, 4052, 5882, 358, 1024, 813, 2235, 18, 3536, 16232, 382, 3353, 273, 365, 18, 2821, 18, 588, 2932, 25453, 382, 3353, 12, 88, 2122, 88, 15, 7510, 2225, 13, 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, -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, -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 ]
return errorMsg(msg, req, c, ln)
return errorMsg(str(msg), req, ln)
def _getfile_py(req,c=CFG_SITE_NAME,ln=CFG_SITE_LANG,recid="",docid="",version="",name="",format=""): _ = gettext_set_language(ln)
382a1f25f9b0d159df208291e44a573986f659ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/382a1f25f9b0d159df208291e44a573986f659ca/websubmit_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 768, 67, 2074, 12, 3658, 16, 71, 33, 19727, 67, 20609, 67, 1985, 16, 2370, 33, 19727, 67, 20609, 67, 10571, 16, 3927, 350, 1546, 3113, 2434, 350, 1546, 3113, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 588, 768, 67, 2074, 12, 3658, 16, 71, 33, 19727, 67, 20609, 67, 1985, 16, 2370, 33, 19727, 67, 20609, 67, 10571, 16, 3927, 350, 1546, 3113, 2434, 350, 1546, 3113, 1589, 1546, 3113, 529, 1546, 3113, 2139, 1546, 6, 4672, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (defaultValue != self.value) or (self.saveDefaults == True): configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value))
if self.value != defaultValue or self.saveDefaults: configfile.setKey(self.configPath, self.datatoFile(self.controlType, self.value)) else: oldValue = configfile.getKey(self.configPath) if oldValue is not None and oldValue != defaultValue: configfile.setKey(self.configPath, self.datatoFile(self.controlType, self.value), True)
def save(self): if self.controlType == configSatlist: defaultValue = self.getIndexbyEntry(self.defaultValue) else: defaultValue = self.defaultValue if (defaultValue != self.value) or (self.saveDefaults == True): configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value))
6c7144777d4e9001792e2843e9891f861b45dab9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/6c7144777d4e9001792e2843e9891f861b45dab9/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 309, 365, 18, 7098, 559, 422, 642, 15163, 1098, 30, 4593, 273, 365, 18, 588, 1016, 1637, 1622, 12, 2890, 18, 27652, 13, 469, 30, 4593, 273, 365, 18, 27652, 309, 261, 27652, 480, 365, 18, 1132, 13, 578, 261, 2890, 18, 5688, 7019, 422, 1053, 4672, 642, 768, 18, 542, 653, 12, 2890, 18, 1425, 743, 16, 365, 18, 3404, 31093, 812, 12, 2890, 18, 7098, 559, 16, 2890, 18, 1132, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1923, 12, 2890, 4672, 309, 365, 18, 7098, 559, 422, 642, 15163, 1098, 30, 4593, 273, 365, 18, 588, 1016, 1637, 1622, 12, 2890, 18, 27652, 13, 469, 30, 4593, 273, 365, 18, 27652, 309, 261, 27652, 480, 365, 18, 1132, 13, 578, 261, 2890, 18, 5688, 7019, 422, 1053, 4672, 642, 768, 18, 542, 653, 12, 2890, 18, 1425, 743, 16, 365, 18, 3404, 31093, 812, 12, 2890, 18, 7098, 559, 16, 2890, 18, 1132, 3719, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, poly, prec, halt, print_mode, names): UnramifiedExtensionGeneric.__init__(self, poly, prec, print_mode, names, UnramifiedExtensionAbsoluteElement)
def __init__(self, prepoly, poly, prec, halt, print_mode, shift_seed, names): ntl_poly = ntl_ZZ_pX([a.lift() for a in poly.list()], poly.base_ring().prime()**prec) if prec <= 30: self.prime_pow = PowComputer_ext_maker(poly.base_ring().prime(), prec, prec, prec, True, ntl_poly, "small", "u") else: self.prime_pow = PowComputer_ext_maker(poly.base_ring().prime(), 30, prec, prec, True, ntl_poly, "big", "u") self._shift_seed = None self._pre_poly = prepoly UnramifiedExtensionGeneric.__init__(self, poly, prec, print_mode, names, pAdicZZpXCAElement)
def __init__(self, poly, prec, halt, print_mode, names): UnramifiedExtensionGeneric.__init__(self, poly, prec, print_mode, names, UnramifiedExtensionAbsoluteElement)
b9ffa8b1f92ad68de3210909edfe6b8fd5f5e7af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/b9ffa8b1f92ad68de3210909edfe6b8fd5f5e7af/padic_extension_leaves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 1351, 1940, 939, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 1172, 67, 3188, 16, 1257, 16, 1351, 1940, 939, 3625, 10368, 1046, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 1351, 1940, 939, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 1172, 67, 3188, 16, 1257, 16, 1351, 1940, 939, 3625, 10368, 1046, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not hasattr(self,'_has_sorted_indices'):
if not hasattr(self,'__has_sorted_indices'):
def __get_sorted(self): """Determine whether the matrix has sorted indices
70b31b27df718b5d2558dbe1cdb499715748ff4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/70b31b27df718b5d2558dbe1cdb499715748ff4f/compressed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 10350, 12, 2890, 4672, 3536, 8519, 2856, 326, 3148, 711, 3115, 4295, 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, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 10350, 12, 2890, 4672, 3536, 8519, 2856, 326, 3148, 711, 3115, 4295, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
d.addCallback(cb)
def eb(failure): log.err(failure)
cf2910994f0de430039079505dc227f5534e5048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11015/cf2910994f0de430039079505dc227f5534e5048/xmpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20371, 12, 12251, 4672, 613, 18, 370, 12, 12251, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20371, 12, 12251, 4672, 613, 18, 370, 12, 12251, 13, 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, -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, -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, -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 ]
error=evaluator(i) old_direction=d(error) i-=old_direction
old_error=evaluator(i) old_direction=d(old_error) i+=old_direction
def d(e): return 1 if e>=0 else -1
c07c82bed8331cd53d493b1de7dce0aea9c32e03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/150/c07c82bed8331cd53d493b1de7dce0aea9c32e03/qpaeq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 12, 73, 4672, 327, 404, 309, 425, 34, 33, 20, 469, 300, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 302, 12, 73, 4672, 327, 404, 309, 425, 34, 33, 20, 469, 300, 21, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 'ocaid' in e and is_daisy_encrypted(e['ocaid']): e['encrypted_daisy'] = True
if 'ocaid' in e: collection = get_ia_collection(e['ocaid']) print 'collection:', collection e['ia_collection'] = collection e['public_scan'] = ('lendinglibrary' not in collection) and ('printdisabled' not in collection) overdrive_id = e.get('identifiers', {}).get('overdrive_id', None) if overdrive_id: e['overdrive'] = overdrive
def get_pub_year(e): pub_date = e.get('publish_date', None) if pub_date: m = re_year.search(pub_date) if m: return m.group(1)
4f14756dcf2ada5fa63000e1182e93702aa193df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/4f14756dcf2ada5fa63000e1182e93702aa193df/update_work.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10174, 67, 6874, 12, 73, 4672, 5634, 67, 712, 273, 425, 18, 588, 2668, 6543, 67, 712, 2187, 599, 13, 309, 5634, 67, 712, 30, 312, 273, 283, 67, 6874, 18, 3072, 12, 10174, 67, 712, 13, 309, 312, 30, 327, 312, 18, 1655, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 10174, 67, 6874, 12, 73, 4672, 5634, 67, 712, 273, 425, 18, 588, 2668, 6543, 67, 712, 2187, 599, 13, 309, 5634, 67, 712, 30, 312, 273, 283, 67, 6874, 18, 3072, 12, 10174, 67, 712, 13, 309, 312, 30, 327, 312, 18, 1655, 12, 21, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return command
return command.encode(sys.getfilesystemencoding())
def _process_command(self, command): if sys.platform.startswith('java'): # Jython's os.popen doesn't handle Unicode as explained in # http://jython.org/bugs/1735774. This bug is still in Jython 2.2. command = str(command) if '>' not in command: if command.endswith('&'): command = command[:-1] + ' 2>&1 &' else: command += ' 2>&1' self._info("Running command '%s'" % command) return command
22718eb63b64d3e439b3be9903a8d1725b0093cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/22718eb63b64d3e439b3be9903a8d1725b0093cc/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 3076, 12, 2890, 16, 1296, 4672, 309, 2589, 18, 9898, 18, 17514, 1918, 2668, 6290, 11, 4672, 468, 804, 18490, 1807, 1140, 18, 84, 3190, 3302, 1404, 1640, 9633, 487, 19765, 329, 316, 468, 1062, 2207, 78, 18490, 18, 3341, 19, 19381, 19, 4033, 4763, 4700, 24, 18, 1220, 7934, 353, 4859, 316, 804, 18490, 576, 18, 22, 18, 1296, 273, 609, 12, 3076, 13, 309, 7481, 486, 316, 1296, 30, 309, 1296, 18, 5839, 1918, 2668, 26045, 4672, 1296, 273, 1296, 10531, 17, 21, 65, 397, 296, 576, 22393, 21, 473, 11, 469, 30, 1296, 1011, 296, 576, 22393, 21, 11, 365, 6315, 1376, 2932, 7051, 1296, 1995, 87, 4970, 738, 1296, 13, 327, 1296, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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9633, 487, 19765, 329, 316, 468, 1062, 2207, 78, 18490, 18, 3341, 19, 19381, 19, 4033, 4763, 4700, 24, 18, 1220, 7934, 353, 4859, 316, 804, 18490, 576, 18, 22, 18, 1296, 273, 609, 12, 3076, 13, 309, 7481, 486, 316, 1296, 30, 309, 1296, 18, 5839, 1918, 2668, 26045, 4672, 1296, 273, 1296, 10531, 17, 21, 65, 397, 296, 576, 22393, 21, 473, 11, 469, 30, 1296, 1011, 296, 576, 22393, 21, 11, 365, 6315, 1376, 2932, 7051, 1296, 1995, 87, 4970, 738, 1296, 13, 327, 2 ]
format = u'%%-%is|%%s%%s' % width_l
def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['name'] not in ('summary', 'cc', 'time', 'changetime')] width = [0, 0, 0, 0] i = 0 for f in fields: if f['type'] == 'textarea': continue fname = f['name'] if not fname in tkt.values: continue fval = tkt[fname] or '' if fval.find('\n') != -1: continue idx = 2 * (i % 2) width[idx] = max(len(f['label']), width[idx]) width[idx + 1] = max(len(fval), width[idx + 1]) i += 1 width_l = width[0] + width[1] + 5 width_r = width[2] + width[3] + 5 half_cols = (self.COLS - 1) / 2 if width_l + width_r + 1 > self.COLS: if ((width_l > half_cols and width_r > half_cols) or (width[0] > half_cols / 2 or width[2] > half_cols / 2)): width_l = half_cols width_r = half_cols elif width_l > width_r: width_l = min((self.COLS - 1) * 2 / 3, width_l) width_r = self.COLS - width_l - 1 else: width_r = min((self.COLS - 1) * 2 / 3, width_r) width_l = self.COLS - width_r - 1 sep = width_l * '-' + '+' + width_r * '-' txt = sep + CRLF cell_tmp = [u'', u''] big = [] i = 0 width_lr = [width_l, width_r] for f in [f for f in fields if f['name'] != 'description']: fname = f['name'] if not tkt.values.has_key(fname): continue fval = tkt[fname] or '' if fname in ['owner', 'reporter']: fval = obfuscate_email_address(fval) if f['type'] == 'textarea' or '\n' in unicode(fval): big.append((f['label'], CRLF.join(fval.splitlines()))) else: # Note: f['label'] is a Babel's LazyObject, make sure its # __str__ method won't be called. str_tmp = u'%s: %s' % (f['label'], unicode(fval)) idx = i % 2 cell_tmp[idx] += wrap(str_tmp, width_lr[idx] - 2 + 2 * idx, (width[2 * idx] - len(f['label']) + 2 * idx) * ' ', 2 * ' ', CRLF) cell_tmp[idx] += CRLF i += 1 cell_l = cell_tmp[0].splitlines() cell_r = cell_tmp[1].splitlines() format = u'%%-%is|%%s%%s' % width_l for i in range(max(len(cell_l), len(cell_r))): if i >= len(cell_l): cell_l.append(width_l * ' ') elif i >= len(cell_r): cell_r.append('') txt += format % (cell_l[i], cell_r[i], CRLF) if big: txt += sep for name, value in big: txt += CRLF.join(['', name + ':', value, '', '']) txt += sep return txt
5493b0c9877b25a3b6e71a29f79a95fe91fb3c5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/5493b0c9877b25a3b6e71a29f79a95fe91fb3c5b/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 9693, 12, 2890, 4672, 268, 8629, 273, 365, 18, 16282, 1466, 273, 306, 74, 364, 284, 316, 268, 8629, 18, 2821, 309, 284, 3292, 529, 3546, 486, 316, 7707, 7687, 2187, 296, 952, 2187, 296, 957, 2187, 296, 24083, 2374, 6134, 65, 1835, 273, 306, 20, 16, 374, 16, 374, 16, 374, 65, 277, 273, 374, 364, 284, 316, 1466, 30, 309, 284, 3292, 723, 3546, 422, 296, 16701, 4278, 1324, 5299, 273, 284, 3292, 529, 3546, 309, 486, 5299, 316, 268, 8629, 18, 2372, 30, 1324, 284, 1125, 273, 268, 8629, 63, 12749, 65, 578, 875, 309, 284, 1125, 18, 4720, 2668, 64, 82, 6134, 480, 300, 21, 30, 1324, 2067, 273, 576, 380, 261, 77, 738, 576, 13, 1835, 63, 3465, 65, 273, 943, 12, 1897, 12, 74, 3292, 1925, 3546, 3631, 1835, 63, 3465, 5717, 1835, 63, 3465, 397, 404, 65, 273, 943, 12, 1897, 12, 74, 1125, 3631, 1835, 63, 3465, 397, 404, 5717, 277, 1011, 404, 1835, 67, 80, 273, 1835, 63, 20, 65, 397, 1835, 63, 21, 65, 397, 1381, 1835, 67, 86, 273, 1835, 63, 22, 65, 397, 1835, 63, 23, 65, 397, 1381, 8816, 67, 6842, 273, 261, 2890, 18, 4935, 55, 300, 404, 13, 342, 576, 309, 1835, 67, 80, 397, 1835, 67, 86, 397, 404, 405, 365, 18, 4935, 55, 30, 309, 14015, 2819, 67, 80, 405, 8816, 67, 6842, 471, 1835, 67, 86, 405, 8816, 67, 6842, 13, 578, 261, 2819, 63, 20, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 9693, 12, 2890, 4672, 268, 8629, 273, 365, 18, 16282, 1466, 273, 306, 74, 364, 284, 316, 268, 8629, 18, 2821, 309, 284, 3292, 529, 3546, 486, 316, 7707, 7687, 2187, 296, 952, 2187, 296, 957, 2187, 296, 24083, 2374, 6134, 65, 1835, 273, 306, 20, 16, 374, 16, 374, 16, 374, 65, 277, 273, 374, 364, 284, 316, 1466, 30, 309, 284, 3292, 723, 3546, 422, 296, 16701, 4278, 1324, 5299, 273, 284, 3292, 529, 3546, 309, 486, 5299, 316, 268, 8629, 18, 2372, 30, 1324, 284, 1125, 273, 268, 8629, 63, 12749, 65, 578, 875, 309, 284, 1125, 18, 4720, 2668, 64, 82, 6134, 480, 300, 21, 30, 1324, 2067, 273, 576, 380, 261, 2 ]
status_list.add(task_id, state, meta)
status_list.add(task_id, state, ticket, meta)
def from_xml(cls, root, hdr, body): status_list = cls() entries = body.find(cls.tag) for entry in entries.findall(XBE("Status")): task_id = entry.attrib["task-id"] state = bes.toXBETaskState(entry.find( BES_ACTIVITY("ActivityStatus"))) meta = parse_dictionary(entry.find(XBE("Meta/Dict")), {}) status_list.add(task_id, state, meta) return status_list
d5225af4c7b6c3a7725ccaa7713734e02c76b4c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2459/d5225af4c7b6c3a7725ccaa7713734e02c76b4c2/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 2902, 12, 6429, 16, 1365, 16, 7723, 16, 1417, 4672, 1267, 67, 1098, 273, 2028, 1435, 3222, 273, 1417, 18, 4720, 12, 6429, 18, 2692, 13, 364, 1241, 316, 3222, 18, 4720, 454, 12, 60, 5948, 2932, 1482, 6, 3719, 30, 1562, 67, 350, 273, 1241, 18, 14588, 9614, 4146, 17, 350, 11929, 919, 273, 324, 281, 18, 869, 60, 38, 1584, 835, 1119, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 2902, 12, 6429, 16, 1365, 16, 7723, 16, 1417, 4672, 1267, 67, 1098, 273, 2028, 1435, 3222, 273, 1417, 18, 4720, 12, 6429, 18, 2692, 13, 364, 1241, 316, 3222, 18, 4720, 454, 12, 60, 5948, 2932, 1482, 6, 3719, 30, 1562, 67, 350, 273, 1241, 18, 14588, 9614, 4146, 17, 350, 11929, 919, 273, 324, 281, 18, 869, 60, 38, 1584, 835, 1119, 12, 4099, 18, 4720, 12, 605, 3991, 67, 22271, 4107, 2932, 6193, 1482, 6, 20349, 2191, 273, 1109, 67, 15556, 12, 4099, 18, 4720, 12, 60, 5948, 2932, 2781, 19, 5014, 7923, 3631, 2618, 13, 1267, 67, 1098, 18, 1289, 12, 4146, 67, 350, 16, 919, 16, 9322, 16, 2191, 13, 327, 2 ]
lang_name = LANG[lang_value] for sublang_name in SUBLANG[sublang_value]:
lang_name = LANG.get(lang_value, '*unknown*') for sublang_name in SUBLANG.get(sublang_value, list()):
def get_sublang_name_for_lang( lang_value, sublang_value ): lang_name = LANG[lang_value] for sublang_name in SUBLANG[sublang_value]: # if the main language is a substring of sublang's name, then # return that if lang_name in sublang_name: return sublang_name # otherwise return the first sublang name return SUBLANG[sublang_value][0]
fd6a8a480d51744675cb05df8f47cbf3e0406454 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4177/fd6a8a480d51744675cb05df8f47cbf3e0406454/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 87, 440, 539, 67, 529, 67, 1884, 67, 4936, 12, 3303, 67, 1132, 16, 17809, 539, 67, 1132, 262, 30, 3303, 67, 529, 273, 19913, 18, 588, 12, 4936, 67, 1132, 16, 14609, 8172, 4035, 13, 364, 17809, 539, 67, 529, 316, 10025, 10571, 18, 588, 12, 87, 440, 539, 67, 1132, 16, 666, 1435, 4672, 468, 309, 326, 2774, 2653, 353, 279, 3019, 434, 17809, 539, 1807, 508, 16, 1508, 468, 327, 716, 309, 3303, 67, 529, 316, 17809, 539, 67, 529, 30, 327, 17809, 539, 67, 529, 468, 3541, 327, 326, 1122, 17809, 539, 508, 327, 10025, 10571, 63, 87, 440, 539, 67, 1132, 6362, 20, 65, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 87, 440, 539, 67, 529, 67, 1884, 67, 4936, 12, 3303, 67, 1132, 16, 17809, 539, 67, 1132, 262, 30, 3303, 67, 529, 273, 19913, 18, 588, 12, 4936, 67, 1132, 16, 14609, 8172, 4035, 13, 364, 17809, 539, 67, 529, 316, 10025, 10571, 18, 588, 12, 87, 440, 539, 67, 1132, 16, 666, 1435, 4672, 468, 309, 326, 2774, 2653, 353, 279, 3019, 434, 17809, 539, 1807, 508, 16, 1508, 468, 327, 716, 309, 3303, 67, 529, 316, 17809, 539, 67, 529, 30, 327, 17809, 539, 67, 529, 468, 3541, 327, 326, 1122, 17809, 539, 508, 327, 10025, 10571, 63, 87, 440, 539, 67, 1132, 6362, 20, 65, 282, 2, -100, -100, -100, -100, -100, -100 ]
relative_dir = cur_dir[len(BASE_DIRECTORY):]
relative_dir = cur_dir[len(BASE_DIRECTORY) + 1:]
def ApplyRules(existing_rules, deps, includes, cur_dir): """Applies the given deps and include rules, returning the new rules. Args: existing_rules: A set of existing rules that will be combined. deps: The list of imports from the "deps" section of the DEPS file. include: The list of rules from the "include_rules" section of DEPS. cur_dir: The current directory. We will create an implicit rule that allows inclusion from this directory. Returns: A new set of rules combining the existing_rules with the other arguments. """ rules = existing_rules # First apply the implicit "allow" rule for the current directory. if cur_dir.lower().startswith(BASE_DIRECTORY): relative_dir = cur_dir[len(BASE_DIRECTORY):] # Normalize path separators to slashes. relative_dir = relative_dir.replace("\\", "/") source = relative_dir if len(source) == 0: source = "." # Make the help string a little more meaningful. rules.AddRule("+" + relative_dir, "Default rule for " + source) else: raise Exception("Internal error: base directory is not at the beginning" + " for\n %s and base dir\n %s" % (cur_dir, BASE_DIRECTORY)) # Next apply the DEPS additions, these are all allowed. for (index, key) in enumerate(deps): rules.AddRule("+" + key, relative_dir + "'s deps for " + key) # Last, apply the additional explicit rules. for (index, rule_str) in enumerate(includes): rules.AddRule(rule_str, relative_dir + "'s include_rules") return rules
c40671f2093ca48862fb1212226c8ccb95d0adc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/c40671f2093ca48862fb1212226c8ccb95d0adc9/checkdeps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 4478, 12, 11711, 67, 7482, 16, 8740, 16, 6104, 16, 662, 67, 1214, 4672, 3536, 13029, 326, 864, 8740, 471, 2341, 2931, 16, 5785, 326, 394, 2931, 18, 225, 6634, 30, 2062, 67, 7482, 30, 432, 444, 434, 2062, 2931, 716, 903, 506, 8224, 18, 8740, 30, 1021, 666, 434, 10095, 628, 326, 315, 14877, 6, 2442, 434, 326, 2030, 5857, 585, 18, 2341, 30, 1021, 666, 434, 2931, 628, 326, 315, 6702, 67, 7482, 6, 2442, 434, 2030, 5857, 18, 662, 67, 1214, 30, 1021, 783, 1867, 18, 1660, 903, 752, 392, 10592, 1720, 716, 5360, 26485, 628, 333, 1867, 18, 225, 2860, 30, 432, 394, 444, 434, 2931, 29189, 326, 2062, 67, 7482, 598, 326, 1308, 1775, 18, 3536, 2931, 273, 2062, 67, 7482, 225, 468, 5783, 2230, 326, 10592, 315, 5965, 6, 1720, 364, 326, 783, 1867, 18, 309, 662, 67, 1214, 18, 8167, 7675, 17514, 1918, 12, 8369, 67, 17229, 4672, 3632, 67, 1214, 273, 662, 67, 1214, 63, 1897, 12, 8369, 67, 17229, 13, 397, 404, 26894, 468, 14282, 589, 14815, 358, 19034, 18, 3632, 67, 1214, 273, 3632, 67, 1214, 18, 2079, 2932, 1695, 3113, 4016, 13, 1084, 273, 3632, 67, 1214, 309, 562, 12, 3168, 13, 422, 374, 30, 1084, 273, 4585, 225, 468, 4344, 326, 2809, 533, 279, 12720, 1898, 26271, 18, 2931, 18, 986, 2175, 2932, 9078, 397, 3632, 67, 1214, 16, 315, 1868, 1720, 364, 315, 397, 1084, 13, 469, 30, 1002, 1185, 2932, 3061, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 4478, 12, 11711, 67, 7482, 16, 8740, 16, 6104, 16, 662, 67, 1214, 4672, 3536, 13029, 326, 864, 8740, 471, 2341, 2931, 16, 5785, 326, 394, 2931, 18, 225, 6634, 30, 2062, 67, 7482, 30, 432, 444, 434, 2062, 2931, 716, 903, 506, 8224, 18, 8740, 30, 1021, 666, 434, 10095, 628, 326, 315, 14877, 6, 2442, 434, 326, 2030, 5857, 585, 18, 2341, 30, 1021, 666, 434, 2931, 628, 326, 315, 6702, 67, 7482, 6, 2442, 434, 2030, 5857, 18, 662, 67, 1214, 30, 1021, 783, 1867, 18, 1660, 903, 752, 392, 10592, 1720, 716, 5360, 26485, 628, 333, 1867, 18, 225, 2860, 30, 432, 394, 444, 434, 2931, 29189, 326, 2062, 67, 7482, 598, 326, 2 ]
if not node.attributes.has_key('align'):
if (not node.attributes.has_key('align') or node.attributes['align'] == 'center'):
def visit_figure(self, node): if not node.attributes.has_key('align'): align = 'center' else: align = 'flush'+node.attributes['align'] self.body.append( '\\begin{figure}[htbp]\\begin{%s}\n' % align ) self.context.append( '\\end{%s}\\end{figure}\n' % align )
a2461f582a703ae324d9176d274e03a3bfcf4d12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/a2461f582a703ae324d9176d274e03a3bfcf4d12/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 19675, 12, 2890, 16, 756, 4672, 309, 261, 902, 756, 18, 4350, 18, 5332, 67, 856, 2668, 7989, 6134, 578, 756, 18, 4350, 3292, 7989, 3546, 422, 296, 5693, 11, 4672, 5689, 273, 296, 5693, 11, 469, 30, 5689, 273, 296, 11330, 11, 15, 2159, 18, 4350, 3292, 7989, 3546, 365, 18, 3432, 18, 6923, 12, 3718, 10086, 95, 19675, 20294, 647, 17152, 65, 1695, 10086, 95, 9, 87, 6280, 82, 11, 738, 5689, 262, 365, 18, 2472, 18, 6923, 12, 3718, 409, 95, 9, 87, 97, 1695, 409, 95, 19675, 6280, 82, 11, 738, 5689, 262, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3757, 67, 19675, 12, 2890, 16, 756, 4672, 309, 261, 902, 756, 18, 4350, 18, 5332, 67, 856, 2668, 7989, 6134, 578, 756, 18, 4350, 3292, 7989, 3546, 422, 296, 5693, 11, 4672, 5689, 273, 296, 5693, 11, 469, 30, 5689, 273, 296, 11330, 11, 15, 2159, 18, 4350, 3292, 7989, 3546, 365, 18, 3432, 18, 6923, 12, 3718, 10086, 95, 19675, 20294, 647, 17152, 65, 1695, 10086, 95, 9, 87, 6280, 82, 11, 738, 5689, 262, 365, 18, 2472, 18, 6923, 12, 3718, 409, 95, 9, 87, 97, 1695, 409, 95, 19675, 6280, 82, 11, 738, 5689, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str += '<H3>'+fname+'</H3>\n' str += '<CODE><B>' +fname + pstr + '</B></CODE><p>\n' str += '<DL>\n'
str += '<h3 class="func-details">'+fname+'</h3>\n' str += self._func_signature(fname, fdoc)
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 7775, 1870, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 7775, 1870, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
options
';'.join(options)
def getControlFromAttribute(self, attrname, attr, readonly, isNew=False): attrlabel = '@@%s@@' % attrname sControl = '' sTab = '' if isinstance(attr, datatypes.String): sControl = AUTO_CONTROLS[datatypes.String] % \ (self.yoffset + 3, attrlabel, attrname, self.yoffset, attr.value, self.getStringFromBoolean(readonly)) self.yoffset += 25
19d016592fde3a93ded6b6761dfcf716d2874a72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/19d016592fde3a93ded6b6761dfcf716d2874a72/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27174, 1265, 1499, 12, 2890, 16, 1604, 529, 16, 1604, 16, 17102, 16, 10783, 33, 8381, 4672, 1604, 1925, 273, 4622, 36, 9, 87, 36, 20887, 738, 1604, 529, 272, 3367, 273, 875, 272, 5661, 273, 875, 225, 309, 1549, 12, 1747, 16, 14760, 18, 780, 4672, 272, 3367, 273, 17191, 67, 6067, 1457, 3045, 63, 3404, 13373, 18, 780, 65, 738, 521, 261, 2890, 18, 93, 3348, 397, 890, 16, 1604, 1925, 16, 1604, 529, 16, 365, 18, 93, 3348, 16, 1604, 18, 1132, 16, 365, 18, 588, 780, 1265, 5507, 12, 16365, 3719, 365, 18, 93, 3348, 1011, 6969, 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, 0, 0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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, 27174, 1265, 1499, 12, 2890, 16, 1604, 529, 16, 1604, 16, 17102, 16, 10783, 33, 8381, 4672, 1604, 1925, 273, 4622, 36, 9, 87, 36, 20887, 738, 1604, 529, 272, 3367, 273, 875, 272, 5661, 273, 875, 225, 309, 1549, 12, 1747, 16, 14760, 18, 780, 4672, 272, 3367, 273, 17191, 67, 6067, 1457, 3045, 63, 3404, 13373, 18, 780, 65, 738, 521, 261, 2890, 18, 93, 3348, 397, 890, 16, 1604, 1925, 16, 1604, 529, 16, 365, 18, 93, 3348, 16, 1604, 18, 1132, 16, 365, 18, 588, 780, 1265, 5507, 12, 16365, 3719, 365, 18, 93, 3348, 1011, 6969, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print("The Python SSL module was not built")
def find_working_perl(perls): for perl in perls: fh = os.popen(perl + ' -e "use Win32;"') fh.read() rc = fh.close() if rc: continue return perl print("Can not find a suitable PERL:") if perls: print(" the following perl interpreters were found:") for p in perls: print(" ", p) print(" None of these versions appear suitable for building OpenSSL") else: print(" NO perl interpreters were found on this machine at all!") print(" Please install ActivePerl and ensure it appears on your path") print("The Python SSL module was not built") return None
2336111aef67cf9946a468b757bcebbfcad713de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/2336111aef67cf9946a468b757bcebbfcad713de/build_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20478, 67, 457, 80, 12, 457, 3251, 4672, 364, 1534, 80, 316, 1534, 3251, 30, 7625, 273, 1140, 18, 84, 3190, 12, 457, 80, 397, 296, 300, 73, 315, 1202, 21628, 1578, 4868, 6134, 7625, 18, 896, 1435, 4519, 273, 7625, 18, 4412, 1435, 309, 4519, 30, 1324, 327, 1534, 80, 1172, 2932, 2568, 486, 1104, 279, 10631, 10950, 48, 2773, 13, 309, 1534, 3251, 30, 1172, 2932, 326, 3751, 1534, 80, 1554, 1484, 5432, 4591, 1392, 2773, 13, 364, 293, 316, 1534, 3251, 30, 1172, 2932, 3104, 293, 13, 1172, 2932, 599, 434, 4259, 5244, 9788, 10631, 364, 10504, 21859, 7923, 469, 30, 1172, 2932, 3741, 1534, 80, 1554, 1484, 5432, 4591, 1392, 603, 333, 5228, 622, 777, 4442, 13, 1172, 2932, 7801, 3799, 8857, 2173, 80, 471, 3387, 518, 14606, 603, 3433, 589, 7923, 327, 599, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1104, 67, 20478, 67, 457, 80, 12, 457, 3251, 4672, 364, 1534, 80, 316, 1534, 3251, 30, 7625, 273, 1140, 18, 84, 3190, 12, 457, 80, 397, 296, 300, 73, 315, 1202, 21628, 1578, 4868, 6134, 7625, 18, 896, 1435, 4519, 273, 7625, 18, 4412, 1435, 309, 4519, 30, 1324, 327, 1534, 80, 1172, 2932, 2568, 486, 1104, 279, 10631, 10950, 48, 2773, 13, 309, 1534, 3251, 30, 1172, 2932, 326, 3751, 1534, 80, 1554, 1484, 5432, 4591, 1392, 2773, 13, 364, 293, 316, 1534, 3251, 30, 1172, 2932, 3104, 293, 13, 1172, 2932, 599, 434, 4259, 5244, 9788, 10631, 364, 10504, 21859, 7923, 469, 30, 1172, 2932, 3741, 1534, 80, 1554, 1484, 5432, 4591, 1392, 603, 333, 2 ]
def fl_set_form_atclose(form, py_fmclose, data): """ fl_set_form_atclose(form, py_fmclose, data) -> form atclose reference
def fl_set_form_atclose(pForm, py_fmclose, data): """ fl_set_form_atclose(pForm, py_fmclose, data) -> form atclose reference
def fl_set_form_atclose(form, py_fmclose, data): """ fl_set_form_atclose(form, py_fmclose, data) -> form atclose reference Calls a callback function before closing the form. <form> form the receive the message <pyfmclose> python callback function to be called <data> argument to be passed to function """ c_fmclose = FL_FORM_ATCLOSE(py_fmclose) _cfunc_refs[get_rand_dictkey()] = c_fmclose retval = _fl_set_form_atclose(form, c_fmclose, data) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 687, 67, 270, 4412, 12, 84, 1204, 16, 2395, 67, 25089, 4412, 16, 501, 4672, 3536, 1183, 67, 542, 67, 687, 67, 270, 4412, 12, 84, 1204, 16, 2395, 67, 25089, 4412, 16, 501, 13, 317, 646, 622, 4412, 2114, 23665, 279, 1348, 445, 1865, 7647, 326, 646, 18, 411, 687, 34, 1850, 646, 326, 6798, 326, 883, 411, 2074, 25089, 4412, 34, 377, 5790, 1348, 445, 358, 506, 2566, 411, 892, 34, 1850, 1237, 358, 506, 2275, 358, 445, 3536, 225, 276, 67, 25089, 4412, 273, 31358, 67, 4983, 67, 789, 13384, 12, 2074, 67, 25089, 4412, 13, 389, 71, 644, 67, 9316, 63, 588, 67, 7884, 67, 1576, 856, 1435, 65, 273, 276, 67, 25089, 4412, 5221, 273, 389, 2242, 67, 542, 67, 687, 67, 270, 4412, 12, 687, 16, 276, 67, 25089, 4412, 16, 501, 13, 327, 5221, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1183, 67, 542, 67, 687, 67, 270, 4412, 12, 84, 1204, 16, 2395, 67, 25089, 4412, 16, 501, 4672, 3536, 1183, 67, 542, 67, 687, 67, 270, 4412, 12, 84, 1204, 16, 2395, 67, 25089, 4412, 16, 501, 13, 317, 646, 622, 4412, 2114, 23665, 279, 1348, 445, 1865, 7647, 326, 646, 18, 411, 687, 34, 1850, 646, 326, 6798, 326, 883, 411, 2074, 25089, 4412, 34, 377, 5790, 1348, 445, 358, 506, 2566, 411, 892, 34, 1850, 1237, 358, 506, 2275, 358, 445, 3536, 225, 276, 67, 25089, 4412, 273, 31358, 67, 4983, 67, 789, 13384, 12, 2074, 67, 25089, 4412, 13, 389, 71, 644, 67, 9316, 63, 588, 67, 7884, 67, 1576, 856, 1435, 65, 273, 2 ]
def server_lookup(key):
def nat_server_lookup(key):
def server_lookup(key): # Get the proper key, add the prefix key = NAT_SRV_PREFIX + key # Fetch all the keys lst = centralizedadvertise_lookup(key, NAT_MAX_LOOKUP) num = len(lst) # Safety check... assert(num <= 1) if num == 0: raise Exception, "Host could not be found!" # Get the information about the server info = deserialize(lst[0]) # Return a tuple of the forwarder IP port return (info["forwarder"], info["port"])
a700f57ccfaddb096c690e1d2973742b129bd73a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/a700f57ccfaddb096c690e1d2973742b129bd73a/NAT_advertisement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10535, 67, 3567, 67, 8664, 12, 856, 4672, 468, 968, 326, 5338, 498, 16, 527, 326, 1633, 498, 273, 31395, 67, 10090, 58, 67, 6307, 397, 498, 225, 468, 8065, 777, 326, 1311, 9441, 273, 18291, 1235, 361, 25530, 67, 8664, 12, 856, 16, 31395, 67, 6694, 67, 1502, 31581, 13, 818, 273, 562, 12, 16923, 13, 225, 468, 348, 1727, 14369, 866, 2777, 1815, 12, 2107, 1648, 404, 13, 309, 818, 422, 374, 30, 1002, 1185, 16, 315, 2594, 3377, 486, 506, 1392, 4442, 225, 468, 968, 326, 1779, 2973, 326, 1438, 1123, 273, 7673, 12, 16923, 63, 20, 5717, 225, 468, 2000, 279, 3193, 434, 326, 364, 20099, 2971, 1756, 327, 261, 1376, 9614, 1884, 20099, 6, 6487, 1123, 9614, 655, 6, 5717, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10535, 67, 3567, 67, 8664, 12, 856, 4672, 468, 968, 326, 5338, 498, 16, 527, 326, 1633, 498, 273, 31395, 67, 10090, 58, 67, 6307, 397, 498, 225, 468, 8065, 777, 326, 1311, 9441, 273, 18291, 1235, 361, 25530, 67, 8664, 12, 856, 16, 31395, 67, 6694, 67, 1502, 31581, 13, 818, 273, 562, 12, 16923, 13, 225, 468, 348, 1727, 14369, 866, 2777, 1815, 12, 2107, 1648, 404, 13, 309, 818, 422, 374, 30, 1002, 1185, 16, 315, 2594, 3377, 486, 506, 1392, 4442, 225, 468, 968, 326, 1779, 2973, 326, 1438, 1123, 273, 7673, 12, 16923, 63, 20, 5717, 225, 468, 2000, 279, 3193, 434, 326, 364, 20099, 2971, 1756, 327, 261, 1376, 9614, 1884, 20099, 2 ]
self.commands.append(msg['subject'])
self.commands.append(msg.get('subject', ''))
def __init__(self, mlist, msg, msgdata): self.mlist = mlist self.msg = msg self.msgdata = msgdata # Only set returnaddr if the response is to go to someone other than # the address specified in the From: header (e.g. for the password # command). self.returnaddr = None self.commands = [] self.results = [] self.ignored = [] self.lineno = 0 self.subjcmdretried = 0 # Always process the Subject: header first self.commands.append(msg['subject']) # Find the first text/plain part part = None for part in typed_subpart_iterator(msg, 'text', 'plain'): break if part is None or part is not msg: # Either there was no text/plain part or we ignored some # non-text/plain parts. self.results.append(_('Ignoring non-text/plain MIME parts')) if part is None: # E.g the outer Content-Type: was text/html return body = part.get_payload() # text/plain parts better have string payloads assert isinstance(body, StringType) or isinstance(body, UnicodeType) lines = body.splitlines() # Use no more lines than specified self.commands.extend(lines[:mm_cfg.DEFAULT_MAIL_COMMANDS_MAX_LINES]) self.ignored.extend(lines[mm_cfg.DEFAULT_MAIL_COMMANDS_MAX_LINES:])
a5f6ee789db06fac97b0ab4242edb1186a1a6eab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/a5f6ee789db06fac97b0ab4242edb1186a1a6eab/CommandRunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 312, 1098, 16, 1234, 16, 1234, 892, 4672, 365, 18, 781, 376, 273, 312, 1098, 365, 18, 3576, 273, 1234, 365, 18, 3576, 892, 273, 1234, 892, 468, 5098, 444, 327, 4793, 309, 326, 766, 353, 358, 1960, 358, 18626, 1308, 2353, 468, 326, 1758, 1269, 316, 326, 6338, 30, 1446, 261, 73, 18, 75, 18, 364, 326, 2201, 468, 1296, 2934, 365, 18, 2463, 4793, 273, 599, 365, 18, 7847, 273, 5378, 365, 18, 4717, 273, 5378, 365, 18, 24055, 273, 5378, 365, 18, 17782, 273, 374, 365, 18, 1717, 78, 4172, 266, 313, 2092, 273, 374, 468, 14178, 1207, 326, 9912, 30, 1446, 1122, 365, 18, 7847, 18, 6923, 12, 3576, 18, 588, 2668, 7857, 2187, 875, 3719, 468, 4163, 326, 1122, 977, 19, 7446, 1087, 1087, 273, 599, 364, 1087, 316, 9092, 67, 1717, 2680, 67, 9838, 12, 3576, 16, 296, 955, 2187, 296, 7446, 11, 4672, 898, 309, 1087, 353, 599, 578, 1087, 353, 486, 1234, 30, 468, 14635, 1915, 1703, 1158, 977, 19, 7446, 1087, 578, 732, 5455, 2690, 468, 1661, 17, 955, 19, 7446, 2140, 18, 365, 18, 4717, 18, 6923, 24899, 2668, 21702, 1661, 17, 955, 19, 7446, 13195, 2140, 26112, 309, 1087, 353, 599, 30, 468, 512, 18, 75, 326, 6390, 3697, 17, 559, 30, 1703, 977, 19, 2620, 327, 1417, 273, 1087, 18, 588, 67, 7648, 1435, 468, 977, 19, 7446, 2140, 7844, 1240, 533, 22790, 1815, 1549, 12, 3432, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 1098, 16, 1234, 16, 1234, 892, 4672, 365, 18, 781, 376, 273, 312, 1098, 365, 18, 3576, 273, 1234, 365, 18, 3576, 892, 273, 1234, 892, 468, 5098, 444, 327, 4793, 309, 326, 766, 353, 358, 1960, 358, 18626, 1308, 2353, 468, 326, 1758, 1269, 316, 326, 6338, 30, 1446, 261, 73, 18, 75, 18, 364, 326, 2201, 468, 1296, 2934, 365, 18, 2463, 4793, 273, 599, 365, 18, 7847, 273, 5378, 365, 18, 4717, 273, 5378, 365, 18, 24055, 273, 5378, 365, 18, 17782, 273, 374, 365, 18, 1717, 78, 4172, 266, 313, 2092, 273, 374, 468, 14178, 1207, 326, 9912, 30, 1446, 1122, 365, 18, 7847, 18, 6923, 12, 2 ]
if injection:
if injection is not None and injectionconfidence is not None and injection_area is not None:
def cbcBayesPostProc(outdir,data,oneDMenu,twoDGreedyMenu,GreedyRes,confidence_levels,twoDplots,injfile=None,eventnum=None,skyres=None,bayesfactornoise=None,bayesfactorcoherent=None): """ This is a demonstration script for using the functionality/data structures contained in pylal.bayespputils . It will produce a webpage from a file containing posterior samples generated by the parameter estimation codes with 1D/2D plots and stats from the marginal posteriors for each parameter/set of parameters. """ if eventnum is not None and injfile is None: print "You specified an event number but no injection file. Ignoring!" if data is None: print 'You must specify an input data file' exit(1) # if outdir is None: print "You must specify an output directory." exit(1) if not os.path.isdir(outdir): os.makedirs(outdir) # commonOutputFileObj=open(data[0]) #Select injections using tc +/- 0.1s if it exists or eventnum from the injection file if injfile: import itertools injections = SimInspiralUtils.ReadSimInspiralFromFiles([injfile]) if(eventnum is not None): if(len(injections)<eventnum): print "Error: You asked for event %d, but %s contains only %d injections" %(eventnum,injfile,len(injections)) sys.exit(1) else: injection=injections[eventnum] else: if(len(injections)<1): print 'Warning: Cannot find injection with end time %f' %(means[2]) else: injection = itertools.ifilter(lambda a: abs(a.get_end() - means[2]) < 0.1, injections).next() ## Load Bayes factors ## # Add Bayes factor information to summary file # if bayesfactornoise is not None: bfile=open(bayesfactornoise,'r') BSN=bfile.read() bfile.close() print 'BSN: %s'%BSN if bayesfactorcoherent is not None: bfile=open(bayesfactorcoherent,'r') BCI=bfile.read() bfile.close() print 'BCI: %s'%BCI #Create an instance of the posterior class using the posterior values loaded #from the file and any injection information (if given). pos = bppu.Posterior(commonOutputFileObj,SimInspiralTableEntry=injection) if ('mc' in pos.names or 'mchirp' in pos.names) and \ 'eta' in pos.names and \ ('mass1' not in pos.names or 'm1' not in pos.names) and\ ('m2' not in pos.names or 'm2' not in pos.names): if 'mc' in pos.names: mchirp_name='mc' else: mchirp_name='mchirp' if injection: inj_mass1,inj_mass2=bppu.mc2ms(injection.mchirp,injection.eta) mass1_samps,mass2_samps=bppu.mc2ms(pos[mchirp_name].samples,pos['eta'].samples) mass1_pos=bppu.OneDPosterior('m1',mass1_samps,injected_value=inj_mass1) mass2_pos=bppu.OneDPosterior('m2',mass2_samps,injected_value=inj_mass2) pos.append(mass1_pos) pos.append(mass2_pos) ##Print some summary stats for the user...## #Number of samples print "Number of posterior samples: %i"%len(pos) # Means print 'Means:' print str(pos.means) #Median print 'Median:' print str(pos.medians) #maxL print 'maxL:' max_pos,max_pos_co=pos.maxL print max_pos_co #==================================================================# #Create web page #==================================================================# html=bppu.htmlPage('Posterior PDFs') #Create a section for meta-data/run information html_meta=html.add_section('Summary') html_meta.p('Produced from '+str(len(pos))+' posterior samples.') html_meta.p('Samples read from %s'%(data[0])) #Create a section for model selection results (if they exist) if bayesfactornoise is not None: html_model=html.add_section('Model selection') html_model.p('log Bayes factor ( coherent vs gaussian noise) = %s, Bayes factor=%f'%(BSN,exp(float(BSN)))) if bayesfactorcoherent is not None: html_model.p('log Bayes factor ( coherent vs incoherent OR noise ) = %s, Bayes factor=%f'%(BCI,exp(float(BCI)))) #Create a section for summary statistics html_stats=html.add_section('Summary statistics') html_stats.write(str(pos)) #==================================================================# #Generate sky map #==================================================================# #If sky resolution parameter has been specified try and create sky map... skyreses=None sky_injection_cl=None if skyres is not None and 'ra' in pos.names and 'dec' in pos.names: #Greedy bin sky samples (ra,dec) into a grid on the sky which preserves #? top_ranked_sky_pixels,sky_injection_cl,skyreses,injection_area=bppu.greedy_bin_sky(pos,skyres,confidence_levels) print "BCI for sky area:" print skyreses #Create sky map in outdir bppu.plot_sky_map(top_ranked_sky_pixels,outdir) #Create a web page section for sky localization results/plots html_sky=html.add_section('Sky Localization') if injection: if sky_injection_cl: html_sky.p('Injection found at confidence interval %f in sky location'%(sky_injection_cl)) else: html_sky.p('Injection not found in posterior bins in sky location!') html_sky.write('<img width="35%" src="skymap.png"/>') if skyres is not None: html_sky_write='<table border="1"><tr><th>Confidence region</th><th>size (sq. deg)</th></tr>' fracs=skyreses.keys() fracs.sort() skysizes=[skyreses[frac] for frac in fracs] for frac,skysize in zip(fracs,skysizes): html_sky_write+=('<tr><td>%f</td><td>%f</td></tr>'%(frac,skysize)) html_sky_write+=('</table>') html_sky.write(html_sky_write) #==================================================================# #2D posteriors #==================================================================# #Loop over parameter pairs in twoDGreedyMenu and bin the sample pairs #using a greedy algorithm . The ranked pixels (toppoints) are used #to plot 2D histograms and evaluate Bayesian confidence intervals. #Make a folder for the 2D kde plots margdir=os.path.join(outdir,'2Dkde') if not os.path.isdir(margdir): os.makedirs(margdir) twobinsdir=os.path.join(outdir,'2Dbins') if not os.path.isdir(twobinsdir): os.makedirs(twobinsdir) #Add a section to the webpage for a table of the confidence interval #results. html_tcig=html.add_section('2D confidence intervals (greedy binning)') #Generate the top part of the table html_tcig_write='<table width="100%" border="1"><tr><th/>' confidence_levels.sort() for cl in confidence_levels: html_tcig_write+='<th>%f</th>'%cl if injection: html_tcig_write+='<th>Injection Confidence Level</th>' html_tcig_write+='<th>Injection Confidence Interval</th>' html_tcig_write+='</tr>' #= Add a section for a table of 2D marginal PDFs (kde) html_tcmp=html.add_section('2D Marginal PDFs') html_tcmp.br() #Table matter html_tcmp_write='<table border="1" width="100%">' row_count=0 for par1_name,par2_name in twoDGreedyMenu: par1_name=par1_name.lower() par2_name=par2_name.lower() print "Binning %s-%s to determine confidence levels ..."%(par1_name,par2_name) try: pos[par1_name.lower()] except KeyError: print "No input chain for %s, skipping binning."%par1_name continue try: pos[par2_name.lower()] except KeyError: print "No input chain for %s, skipping binning."%par2_name continue #Bin sizes try: par1_bin=GreedyRes[par1_name] except KeyError: print "Bin size is not set for %s, skipping %s/%s binning."%(par1_name,par1_name,par2_name) continue try: par2_bin=GreedyRes[par2_name] except KeyError: print "Bin size is not set for %s, skipping %s/%s binning."%(par2_name,par1_name,par2_name) continue #Form greedy binning input structure greedy2Params={par1_name:par1_bin,par2_name:par2_bin} #Greedy bin the posterior samples toppoints,injection_cl,reses,injection_area=\ bppu.greedy_bin_two_param(pos,greedy2Params,confidence_levels) print "BCI %s-%s:"%(par1_name,par2_name) print reses #Generate new BCI html table row BCItableline='<tr><td>%s-%s</td>'%(par1_name,par2_name) cls=reses.keys() cls.sort() for cl in cls: BCItableline+='<td>%f</td>'%reses[cl] if injection is not None and injection_cl is not None: BCItableline+='<td>%f</td>'%injection_cl BCItableline+='<td>%f</td>'%injection_area BCItableline+='</tr>' #Append new table line to section html html_tcig_write+=BCItableline #= Plot 2D histograms of greedily binned points =# #greedy2PlotFig=bppu.plot_two_param_greedy_bins(np.array(toppoints),pos,greedy2Params) #greedy2PlotFig.savefig(os.path.join(twobinsdir,'%s-%s_greedy2.png'%(par1_name,par2_name))) #= Generate 2D kde plots =# print 'Generating %s-%s plot'%(par1_name,par2_name) par1_pos=pos[par1_name].samples par2_pos=pos[par2_name].samples if (size(np.unique(par1_pos))<2 or size(np.unique(par2_pos))<2): continue plot2DkdeParams={par1_name:50,par2_name:50} myfig=bppu.plot_two_param_kde(pos,plot2DkdeParams) twoDKdePath=os.path.join(margdir,par1_name+'-'+par2_name+'_2Dkernel.png') if row_count==0: html_tcmp_write+='<tr>' html_tcmp_write+='<td width="30%"><img width="100%" src="'+twoDKdePath+'"/></td>' row_count+=1 if row_count==3: html_tcmp_write+='</tr>' row_count=0 myfig.savefig(twoDKdePath) #Finish off the BCI table and write it into the etree html_tcig_write+='</table>' html_tcig.write(html_tcig_write) #Finish off the 2D kde plot table while row_count!=0: html_tcmp_write+='<td/>' row_count+=1 if row_count==3: row_count=0 html_tcmp_write+='</tr>' html_tcmp_write+='</table>' html_tcmp.write(html_tcmp_write) #Add a link to all plots html_tcmp.br() html_tcmp.a("2D/",'All 2D Marginal PDFs') html_tcmp.hr() #==================================================================# #1D posteriors #==================================================================# #Loop over each parameter and determine the contigious and greedy #confidence levels and some statistics. #Add section for 1D confidence intervals html_ogci=html.add_section('1D confidence intervals (greedy binning)') #Generate the top part of the table html_ogci_write='<table width="100%" border="1"><tr><th/>' confidence_levels.sort() for cl in confidence_levels: html_ogci_write+='<th>%f</th>'%cl if injection: html_ogci_write+='<th>Injection Confidence Level</th>' html_ogci_write+='<th>Injection Confidence Interval</th>' html_ogci_write+='</tr>' #Add section for 1D marginal PDFs and sample plots html_ompdf=html.add_section('1D marginal posterior PDFs') html_ompdf.br() #Table matter html_ompdf_write= '<table><tr><th>Histogram and Kernel Density Estimate</th><th>Samples used</th></tr>' onepdfdir=os.path.join(outdir,'1Dpdf') if not os.path.isdir(onepdfdir): os.makedirs(onepdfdir) sampsdir=os.path.join(outdir,'1Dsamps') if not os.path.isdir(sampsdir): os.makedirs(sampsdir) for par_name in oneDMenu: par_name=par_name.lower() print "Binning %s to determine confidence levels ..."%par_name try: pos[par_name.lower()] except KeyError: print "No input chain for %s, skipping binning."%par_name continue try: par_bin=GreedyRes[par_name] except KeyError: print "Bin size is not set for %s, skipping binning."%par_name continue binParams={par_name:par_bin} toppoints,injectionconfidence,reses,injection_area=bppu.greedy_bin_one_param(pos,binParams,confidence_levels) oneDContCL,oneDContInj = bppu.contigious_interval_one_param(pos,binParams,confidence_levels) #Generate new BCI html table row BCItableline='<tr><td>%s</td>'%(par_name) cls=reses.keys() cls.sort() for cl in cls: BCItableline+='<td>%f</td>'%reses[cl] if injection: BCItableline+='<td>%f</td>'%injectionconfidence BCItableline+='<td>%f</td>'%injection_area BCItableline+='</tr>' #Append new table line to section html html_ogci_write+=BCItableline #Generate 1D histogram/kde plots print "Generating 1D plot for %s."%par_name oneDPDFParams={par_name:50} rbins,plotFig=bppu.plot_one_param_pdf(pos,oneDPDFParams) figname=par_name+'.png' oneDplotPath=os.path.join(onepdfdir,figname) plotFig.savefig(oneDplotPath) if rbins: print "r of injected value of %s (bins) = %f"%(par_name, rbins) ##Produce plot of raw samples myfig=plt.figure(figsize=(4,3.5),dpi=80) pos_samps=pos[par_name].samples plt.plot(pos_samps,'.',figure=myfig) injpar=pos[par_name].injval if injpar: if min(pos_samps)<injpar and max(pos_samps)>injpar: plt.plot([0,len(pos_samps)],[injpar,injpar],'r-.') myfig.savefig(os.path.join(sampsdir,figname.replace('.png','_samps.png'))) html_ompdf_write+='<tr><td><img src="1Dpdf/'+figname+'"/></td><td><img src="1Dsamps/'+figname.replace('.png','_samps.png')+'"/></td></tr>' html_ompdf_write+='</table>' html_ompdf.write(html_ompdf_write) html_ogci_write+='</table>' html_ogci.write(html_ogci_write) html_ogci.hr() html_ogci.br() html_ompdf.hr() html_ompdf.br() html_footer=html.add_section('') html_footer.p('Produced using cbcBayesPostProc.py at '+strftime("%Y-%m-%d %H:%M:%S")+' .') html_footer.p(git_version.verbose_msg) #Save results page resultspage=open(os.path.join(outdir,'posplots.html'),'w') resultspage.write(str(html)) # Save posterior samples too... posfilename=os.path.join(outdir,'posterior_samples.dat') posfile=open(posfilename,'w') input_file=open(data[0]) posfile.write(input_file.read()) # posfilename2=os.path.join(outdir,'posterior_samples2.dat') pos.write_to_file(posfilename2) #Close files input_file.close() posfile.close() resultspage.close()
3208edd14b770d206fb4669352923910659e297b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/3208edd14b770d206fb4669352923910659e297b/cbcBayesPostProc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 71, 38, 528, 281, 3349, 15417, 12, 659, 1214, 16, 892, 16, 476, 40, 4599, 16, 15415, 40, 43, 15656, 93, 4599, 16, 43, 15656, 93, 607, 16, 27911, 67, 12095, 16, 15415, 40, 13214, 16, 267, 78, 768, 33, 7036, 16, 2575, 2107, 33, 7036, 16, 22921, 455, 33, 7036, 16, 70, 528, 281, 6812, 17814, 33, 7036, 16, 70, 528, 281, 6812, 2894, 1614, 319, 33, 7036, 4672, 3536, 1220, 353, 279, 302, 4758, 701, 367, 2728, 364, 1450, 326, 14176, 19, 892, 12597, 7542, 316, 2395, 80, 287, 18, 70, 528, 281, 84, 458, 14573, 263, 2597, 903, 11402, 279, 3311, 2433, 628, 279, 585, 4191, 22089, 5216, 4374, 635, 326, 1569, 29284, 6198, 598, 404, 40, 19, 22, 40, 17931, 471, 3177, 628, 326, 26533, 1603, 264, 77, 1383, 364, 1517, 1569, 19, 542, 434, 1472, 18, 3536, 225, 309, 871, 2107, 353, 486, 599, 471, 316, 78, 768, 353, 599, 30, 1172, 315, 6225, 1269, 392, 871, 1300, 1496, 1158, 10380, 585, 18, 467, 16997, 4442, 225, 309, 501, 353, 599, 30, 1172, 296, 6225, 1297, 4800, 392, 810, 501, 585, 11, 2427, 12, 21, 13, 468, 309, 15398, 353, 599, 30, 1172, 315, 6225, 1297, 4800, 392, 876, 1867, 1199, 2427, 12, 21, 13, 225, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 659, 1214, 4672, 1140, 18, 81, 9477, 10539, 12, 659, 1214, 13, 468, 225, 2975, 1447, 812, 2675, 33, 3190, 12, 892, 63, 20, 5717, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 71, 38, 528, 281, 3349, 15417, 12, 659, 1214, 16, 892, 16, 476, 40, 4599, 16, 15415, 40, 43, 15656, 93, 4599, 16, 43, 15656, 93, 607, 16, 27911, 67, 12095, 16, 15415, 40, 13214, 16, 267, 78, 768, 33, 7036, 16, 2575, 2107, 33, 7036, 16, 22921, 455, 33, 7036, 16, 70, 528, 281, 6812, 17814, 33, 7036, 16, 70, 528, 281, 6812, 2894, 1614, 319, 33, 7036, 4672, 3536, 1220, 353, 279, 302, 4758, 701, 367, 2728, 364, 1450, 326, 14176, 19, 892, 12597, 7542, 316, 2395, 80, 287, 18, 70, 528, 281, 84, 458, 14573, 263, 2597, 903, 11402, 279, 3311, 2433, 628, 279, 585, 4191, 22089, 5216, 4374, 635, 326, 1569, 29284, 6198, 2 ]
message = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_INFO,buttons=gtk.BUTTONS_OK, message_format="You do not have the LADSPA effects plugins installed") message.format_secondary_text("Jokosher requires this package to be able to use effects, please install the relevant package for your distribution.\n\nNOTE FOR WINDOWS USERS: Jokosher with LADSPA is not currently supported on Windows.") message.show_all() response = message.run() if response == gtk.RESPONSE_OK: message.destroy()
message = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_INFO,buttons=gtk.BUTTONS_OK, message_format="You do not have the LADSPA effects plugins installed") if platform.system() =="Windows": message.format_secondary_text("Jokosher does not currently support LADSPA plugins on Windows") else: message.format_secondary_text("Jokosher requires this package to be able to use effects, please install the relevant package for your distribution.") message.show_all() response = message.run() if response == gtk.RESPONSE_OK: message.destroy()
def OnEffectsButtonClicked(self, widget): """ Creates and shows the instrument effects dialog if LADSPA is installed. Parameters: widget -- reserved for GTK callbacks, don't use it explicitly. mouse -- reserved for GTK callbacks, don't use it explicitly. """ Globals.debug("props button pressed")
4c07ecee2fc8f5d24e70e3a29568d1ddbb6ab279 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10033/4c07ecee2fc8f5d24e70e3a29568d1ddbb6ab279/ControlsBox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 29013, 3616, 27633, 12, 2890, 16, 3604, 4672, 3536, 10210, 471, 17975, 326, 10353, 16605, 6176, 309, 511, 1880, 3118, 37, 353, 5876, 18, 225, 7012, 30, 3604, 1493, 8735, 364, 19688, 47, 6689, 16, 2727, 1404, 999, 518, 8122, 18, 7644, 1493, 8735, 364, 19688, 47, 6689, 16, 2727, 1404, 999, 518, 8122, 18, 3536, 18901, 1031, 18, 4148, 2932, 9693, 3568, 19504, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19688, 47, 6689, 16, 2727, 1404, 999, 518, 8122, 18, 7644, 1493, 8735, 364, 19688, 47, 6689, 16, 2727, 1404, 999, 518, 8122, 18, 3536, 18901, 1031, 18, 4148, 2932, 9693, 3568, 19504, 7923, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.elasticStage, self.viscousStage, self.iterateEvent = lithomop3d.setupPETScLogging()
self.autoprestrStage, self.elasticStage, self.viscousStage, self.iterateEvent = lithomop3d.setupPETScLogging()
def run(self): from ElementTypeDef import ElementTypeDef import lithomop3d
c4fe6f5294629ba1d700ff89f7e8fc2ae6870f44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8640/c4fe6f5294629ba1d700ff89f7e8fc2ae6870f44/Lithomop3d_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 3010, 559, 3262, 1930, 3010, 559, 3262, 1930, 328, 483, 362, 556, 23, 72, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 3010, 559, 3262, 1930, 3010, 559, 3262, 1930, 328, 483, 362, 556, 23, 72, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.state.ID = '%s.PORT.%s.%d' % (log.hostname,self.args.host,self.args.port)
if self.ID == None: self.ID = '%s.PORT.%s.%d' % (log.hostname,self.args.host,self.args.port) self.state.ID = self.ID
def tokenparser(self, toklist, toktypes, indent):
a03c7f1500a50c5df0f8131c092499b9c81e76ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/a03c7f1500a50c5df0f8131c092499b9c81e76ce/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1147, 4288, 12, 2890, 16, 946, 1098, 16, 946, 2352, 16, 3504, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1147, 4288, 12, 2890, 16, 946, 1098, 16, 946, 2352, 16, 3504, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fops = [float(op) for op in self._operands] return self._operator(*fops)
""" TESTS: sage: f=x*sin(0) sage: float(f(1)) 0.0 sage: w = I - I sage: float(w) 0.0 """ return self._convert(float)
def __float__(self): fops = [float(op) for op in self._operands] return self._operator(*fops)
1da728f53d1de8d68f97e594791b41d62f5fde91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1da728f53d1de8d68f97e594791b41d62f5fde91/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5659, 972, 12, 2890, 4672, 284, 4473, 273, 306, 5659, 12, 556, 13, 364, 1061, 316, 365, 6315, 4063, 5708, 65, 327, 365, 6315, 9497, 30857, 74, 4473, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5659, 972, 12, 2890, 4672, 284, 4473, 273, 306, 5659, 12, 556, 13, 364, 1061, 316, 365, 6315, 4063, 5708, 65, 327, 365, 6315, 9497, 30857, 74, 4473, 13, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100 ]
_PE._cvReleaseMat(self)
_PE._cvReleaseMatND(self)
def _CvMatND__del__(self): if self._owner is True: _PE._cvReleaseMat(self)
412ca2c96a145035b5a597ff3b0f791d9710dcb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4310/412ca2c96a145035b5a597ff3b0f791d9710dcb9/codegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 39, 90, 15947, 2908, 972, 3771, 972, 12, 2890, 4672, 309, 365, 6315, 8443, 353, 1053, 30, 389, 1423, 6315, 19774, 7391, 15947, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 39, 90, 15947, 2908, 972, 3771, 972, 12, 2890, 4672, 309, 365, 6315, 8443, 353, 1053, 30, 389, 1423, 6315, 19774, 7391, 15947, 12, 2890, 13, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.zoom(False)
self.zoom_out()
def key_zoom_out(self): self.zoom(False)
7cd4bfb36cabda84fe4f18835cc6b00b74f6b268 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/7cd4bfb36cabda84fe4f18835cc6b00b74f6b268/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 14932, 67, 659, 12, 2890, 4672, 365, 18, 14932, 12, 8381, 13, 2, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 498, 67, 14932, 67, 659, 12, 2890, 4672, 365, 18, 14932, 12, 8381, 13, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.queue_draw()
def select_color_at(self, x,y): d = sqrt((x-self.x0)**2 + (y-self.y0)**2) if self.r2 < d < self.r3: h,s,v = self.hsv h = 0.5 + 0.5*atan2(y-self.y0, self.x0-x)/pi self.color = hsv_to_rgb(h,s,v) self.hsv = (h,s,v) self.redraw_circle_line() self.draw_inside_circle() self.on_select(self.color) elif self.r1 < d < self.r2: a = pi+atan2(y-self.y0, self.x0-x) for i,a1 in enumerate(self.angles): if a1-2*pi/CIRCLE_N < a < a1: clr = self.simple_colors[i] self.color = clr self.hsv = rgb_to_hsv(*clr) self.redraw_circle_line() self.draw_inside_circle() self.on_select(self.color) break elif d < self.r1 and (x-self.x0) < 0: self.hsv = rgb_to_hsv(*self.color) self.queue_draw() self.on_select(self.color)
cd5fd2a1d2e5c6534f52c057144e393781b87482 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/cd5fd2a1d2e5c6534f52c057144e393781b87482/colorsamplerwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3266, 67, 270, 12, 2890, 16, 619, 16, 93, 4672, 302, 273, 5700, 12443, 92, 17, 2890, 18, 92, 20, 13, 636, 22, 397, 261, 93, 17, 2890, 18, 93, 20, 13, 636, 22, 13, 309, 365, 18, 86, 22, 411, 302, 411, 365, 18, 86, 23, 30, 366, 16, 87, 16, 90, 273, 365, 18, 4487, 90, 366, 273, 374, 18, 25, 397, 374, 18, 25, 14, 270, 304, 22, 12, 93, 17, 2890, 18, 93, 20, 16, 365, 18, 92, 20, 17, 92, 13176, 7259, 365, 18, 3266, 273, 30785, 67, 869, 67, 10948, 12, 76, 16, 87, 16, 90, 13, 365, 18, 4487, 90, 273, 261, 76, 16, 87, 16, 90, 13, 365, 18, 1118, 1899, 67, 18970, 67, 1369, 1435, 365, 18, 9446, 67, 28091, 67, 18970, 1435, 365, 18, 265, 67, 4025, 12, 2890, 18, 3266, 13, 1327, 365, 18, 86, 21, 411, 302, 411, 365, 18, 86, 22, 30, 279, 273, 4790, 15, 270, 304, 22, 12, 93, 17, 2890, 18, 93, 20, 16, 365, 18, 92, 20, 17, 92, 13, 364, 277, 16, 69, 21, 316, 4241, 12, 2890, 18, 12356, 4672, 309, 279, 21, 17, 22, 14, 7259, 19, 7266, 11529, 900, 67, 50, 411, 279, 411, 279, 21, 30, 927, 86, 273, 365, 18, 9647, 67, 9724, 63, 77, 65, 365, 18, 3266, 273, 927, 86, 365, 18, 4487, 90, 273, 6917, 67, 869, 67, 4487, 90, 30857, 830, 86, 13, 365, 18, 1118, 1899, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3266, 67, 270, 12, 2890, 16, 619, 16, 93, 4672, 302, 273, 5700, 12443, 92, 17, 2890, 18, 92, 20, 13, 636, 22, 397, 261, 93, 17, 2890, 18, 93, 20, 13, 636, 22, 13, 309, 365, 18, 86, 22, 411, 302, 411, 365, 18, 86, 23, 30, 366, 16, 87, 16, 90, 273, 365, 18, 4487, 90, 366, 273, 374, 18, 25, 397, 374, 18, 25, 14, 270, 304, 22, 12, 93, 17, 2890, 18, 93, 20, 16, 365, 18, 92, 20, 17, 92, 13176, 7259, 365, 18, 3266, 273, 30785, 67, 869, 67, 10948, 12, 76, 16, 87, 16, 90, 13, 365, 18, 4487, 90, 273, 261, 76, 16, 87, 16, 90, 13, 365, 2 ]
log.error("Could not send command, no relay has connected yet") self.dispatcher.openser.reply("error")
try_relays = self.protocols[:] random.shuffle(try_relays) defer = self._try_next(try_relays, command, headers) defer.addCallback(self._add_session, try_relays, call_id) return defer def _add_session(self, result, try_relays, call_id): self.sessions[call_id] = try_relays[-1] return result def _relay_error(self, failure, try_relays, command, headers): failure.trap(RelayError) log.warn("Relay from %s returned error: %s" % (try_relays.pop().ip, failure.value)) return self._try_next(try_relays, command, headers) def _try_next(self, try_relays, command, headers): if len(try_relays) == 0: raise RelayError("No suitable relay found") defer = try_relays[-1].send_command(command, headers) defer.addErrback(self._relay_error, try_relays, command, headers) return defer
def send_command(self, command, headers): if self.protocols: random.choice(self.protocols).send_command(command, headers) else: log.error("Could not send command, no relay has connected yet") self.dispatcher.openser.reply("error")
52c591872af75930b633f50641d72f593784ac59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/52c591872af75930b633f50641d72f593784ac59/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3076, 12, 2890, 16, 1296, 16, 1607, 4672, 309, 365, 18, 31018, 30, 2744, 18, 11569, 12, 2890, 18, 31018, 2934, 4661, 67, 3076, 12, 3076, 16, 1607, 13, 469, 30, 613, 18, 1636, 2932, 4445, 486, 1366, 1296, 16, 1158, 18874, 711, 5840, 4671, 7923, 365, 18, 18495, 18, 3190, 550, 18, 10629, 2932, 1636, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 67, 3076, 12, 2890, 16, 1296, 16, 1607, 4672, 309, 365, 18, 31018, 30, 2744, 18, 11569, 12, 2890, 18, 31018, 2934, 4661, 67, 3076, 12, 3076, 16, 1607, 13, 469, 30, 613, 18, 1636, 2932, 4445, 486, 1366, 1296, 16, 1158, 18874, 711, 5840, 4671, 7923, 365, 18, 18495, 18, 3190, 550, 18, 10629, 2932, 1636, 7923, 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, -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, -100, -100, -100, -100, -100 ]
self.assertEquals(unicode(self.unicode_text), u'Möhren')
self.assertEquals(unicode(self.unicode_text), unicode('Möhren', 'utf8'))
def test_unicode(self): self.assertEquals(unicode(self.unicode_text), u'Möhren') self.assertEquals(str(self.unicode_text), 'M\xf6hren')
a656d97d1c90fa95cbd1e2a28371e55afb01340e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/a656d97d1c90fa95cbd1e2a28371e55afb01340e/test_nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 9124, 12, 2890, 18, 9124, 67, 955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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9124, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 9124, 12, 2890, 18, 9124, 67, 955, 3631, 5252, 2668, 49, 132, 119, 76, 1187, 2187, 296, 3158, 28, 26112, 365, 18, 11231, 8867, 12, 701, 12, 2890, 18, 9124, 67, 955, 3631, 296, 49, 64, 5841, 26, 76, 1187, 6134, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
credentials = open(options['authfile']).readline()
credentials = open(options.authfile).readline()
def main(): """Main program function: Grabs command-line arguments, starts up threads, and runs the program.""" try: # Set the default username to the current user username = os.getlogin() except: username = None # Grab command line arguments and the command to run (if any) usage = 'usage: %prog [options] "[command1]" "[command2]" ...' parser = OptionParser(usage=usage, version=__version__) parser.disable_interspersed_args() parser.add_option("-f", "--file", dest="hostfile", default=None, help="Location of the file containing the host list.", metavar="<file>") parser.add_option("-o", "--outfile", dest="outfile", default=None, help="Location of the file where the results will be saved.", metavar="<file>") parser.add_option("-a", "--authfile", dest="authfile", default=None, help="Location of the file containing the credentials to be used for connections (format is \"username:password\").", metavar="<file>") parser.add_option("-t", "--threads", dest="max_threads", default=10, type="int", help="Number of threads to spawn for simultaneous connection attempts [default: 10].", metavar="<int>") parser.add_option("-u", "--username", dest="username", default=username, help="The username to be used when connecting.", metavar="<username>") parser.add_option("-P", "--password", dest="password", default=None, help="The password to be used when connecting (not recommended--use an authfile unless the username and password are transient", metavar="<password>") parser.add_option("-q", "--quiet", action="store_false", dest="verbose", default=True, help="Don't print status messages to stdout (only print errors).") parser.add_option("-c", "--copy-file", dest="copy_file", default=None, help="Location of the file to copy to and optionally execute (-x) on hosts.", metavar="<file>") parser.add_option("-D", "--dest", dest="destination", default="/tmp/", help="Path where the file should be copied on the remote host (default: /tmp/).", metavar="<path>") parser.add_option("-x", "--execute", action="store_true", dest="execute", default=False, help="Execute the copied file (just like executing a given command).") parser.add_option("-r", "--remove", action="store_true", dest="remove", default=False, help="Remove (clean up) the SFTP'd file after execution.") parser.add_option("-T", "--timeout", dest="timeout", default=30, help="Timeout (in seconds) before giving up on an SSH connection (default: 30)", metavar="<seconds>") parser.add_option("-s", "--sudo", action="store_true", dest="sudo", default=False, help="Use sudo to execute the command (default: as root).") parser.add_option("-U", "--sudouser", dest="run_as", default="root", help="Run the command (via sudo) as this user.", metavar="<username>") (options, args) = parser.parse_args() # Check to make sure we were passed at least one command line argument try: sys.argv[1] except: print "\nError: At a minimum you must supply an input hostfile (-f)" parser.print_help() sys.exit(2) commands = False return_code = 0 ## Assume anything passed to us beyond the command line switches are commands to be executed if len(args) > 0: commands = args # Assign the options to more readable variables password = options.password local_filepath = options.copy_file remote_filepath = options.destination execute = options.execute remove = options.remove sudo = options.sudo max_threads = options.max_threads timeout = options.timeout run_as = options.run_as verbose = options.verbose outfile = options.outfile if options.hostfile == None: print "Error: You must supply a file (-f <file>) containing the host list to check." print "Use the -h option to see usage information." sys.exit(2) if options.outfile is None and options.verbose is False: print "Error: You have not specified any mechanism to output results." print "Please don't use quite mode (-q) without an output file (-o <file>)." sys.exit(2) if local_filepath is not None and commands is not False: print "Error: You can either run commands or execute a file. Not both." sys.exit(2) # Read in the host list to check hostlist = open(options.hostfile).read() if options.authfile is not None: credentials = open(options['authfile']).readline() username, password = credentials.split(":") # Get the username and password to use when checking hosts if options.username == None: username = raw_input('Username: ') if options.password == None: password = getpass.getpass('Password: ') hostlist_list = [] try: # This wierd little sequence of loops allows us to hit control-C in the middle of program execution and get immediate results for host in hostlist.split("\n"): # Turn the hostlist into an actual list if host != "": hostlist_list.append(host) output_queue = sshpt(hostlist_list, username, password, max_threads, timeout, commands, local_filepath, remote_filepath, execute, remove, sudo, run_as, verbose, outfile) output_queue.join() # Just to be safe we wait for the OutputThread to finish before moving on except KeyboardInterrupt: print 'caught KeyboardInterrupt, exiting...' return_code = 1 # Return code should be 1 if the user issues a SIGINT (control-C) # Clean up stopSSHQueue() stopOutputThread() sys.exit(return_code) except Exception, detail: print 'caught Exception...' print detail return_code = 2 # Clean up stopSSHQueue() stopOutputThread() sys.exit(return_code)
1459466ffc2512b812bc80c26d85eadf669894b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11566/1459466ffc2512b812bc80c26d85eadf669894b9/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 445, 30, 225, 10812, 2038, 1296, 17, 1369, 1775, 16, 2542, 731, 7403, 16, 471, 7597, 326, 5402, 12123, 225, 775, 30, 468, 1000, 326, 805, 2718, 358, 326, 783, 729, 2718, 273, 1140, 18, 588, 5819, 1435, 1335, 30, 2718, 273, 599, 225, 468, 17150, 1296, 980, 1775, 471, 326, 1296, 358, 1086, 261, 430, 1281, 13, 4084, 273, 296, 9167, 30, 738, 14654, 306, 2116, 65, 5158, 3076, 21, 4279, 5158, 3076, 22, 4279, 25956, 2082, 273, 18862, 12, 9167, 33, 9167, 16, 1177, 33, 972, 1589, 972, 13, 2082, 18, 8394, 67, 2761, 87, 457, 730, 67, 1968, 1435, 2082, 18, 1289, 67, 3482, 2932, 17, 74, 3113, 5238, 768, 3113, 1570, 1546, 2564, 768, 3113, 805, 33, 7036, 16, 2809, 1546, 2735, 434, 326, 585, 4191, 326, 1479, 666, 1199, 16, 15050, 1546, 32, 768, 2984, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 83, 3113, 5238, 26050, 3113, 1570, 1546, 26050, 3113, 805, 33, 7036, 16, 2809, 1546, 2735, 434, 326, 585, 1625, 326, 1686, 903, 506, 5198, 1199, 16, 15050, 1546, 32, 768, 2984, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 69, 3113, 5238, 1944, 768, 3113, 1570, 1546, 1944, 768, 3113, 805, 33, 7036, 16, 2809, 1546, 2735, 434, 326, 585, 4191, 326, 4448, 358, 506, 1399, 364, 5921, 261, 2139, 353, 1239, 5053, 30, 3664, 2412, 14944, 16, 15050, 1546, 32, 768, 2984, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 88, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3536, 6376, 5402, 445, 30, 225, 10812, 2038, 1296, 17, 1369, 1775, 16, 2542, 731, 7403, 16, 471, 7597, 326, 5402, 12123, 225, 775, 30, 468, 1000, 326, 805, 2718, 358, 326, 783, 729, 2718, 273, 1140, 18, 588, 5819, 1435, 1335, 30, 2718, 273, 599, 225, 468, 17150, 1296, 980, 1775, 471, 326, 1296, 358, 1086, 261, 430, 1281, 13, 4084, 273, 296, 9167, 30, 738, 14654, 306, 2116, 65, 5158, 3076, 21, 4279, 5158, 3076, 22, 4279, 25956, 2082, 273, 18862, 12, 9167, 33, 9167, 16, 1177, 33, 972, 1589, 972, 13, 2082, 18, 8394, 67, 2761, 87, 457, 730, 67, 1968, 1435, 2082, 18, 1289, 67, 3482, 2932, 17, 74, 3113, 5238, 768, 2 ]
TixWidget.__init__(self, master, 'tixResizeHandle', ['options'], cnf, kw)
TixWidget.__init__(self, master, 'tixResizeHandle', ['options'], cnf, kw)
def __init__(self, master, cnf={}, **kw):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 23118, 28793, 2826, 9987, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
req = "%s AND D.DirectoryPath LIKE '%s/%s/%s'" % ( req,'%',("%8.f" % int(production)).replace(' ','0'),'%')
req = "%s AND D.DirectoryPath LIKE '%s/%s/%s'" % (req,'%',("%8.f" % int(production)).replace(' ','0'),'%')
def getStorageSummary(self,dir='',fileType='',production='',sites=[]): """ Retrieves the storage summary for all of the known directories """ req = "SELECT DU.StorageElement,SUM(DU.StorageElementSize),SUM(DU.StorageElementFiles) FROM DirectoryUsage AS DU, Directory AS D WHERE D.DirectoryPath LIKE '%s%s'" % (dir,'%') if fileType: req = "%s AND D.DirectoryPath LIKE '%s/%s/%s'" % (req,'%',fileType,'%') if production: req = "%s AND D.DirectoryPath LIKE '%s/%s/%s'" % ( req,'%',("%8.f" % int(production)).replace(' ','0'),'%') if sites: req = "%s AND DU.StorageElement IN (%s)" % (req,stringListToString(sites)) req = "%s AND DU.DirectoryID=D.DirectoryID GROUP BY DU.StorageElement;" % req print req err = "StorageUsageDB.getStorageSummary: Failed to get storage summary." res = self._query(req) if not res['OK']: return S_ERROR("%s %s" % (err, res['Message'])) usageDict = {} for storageElement,size,files in res['Value']: usageDict[storageElement] = {'Size':int(size), 'Files':int(files)} return S_OK(usageDict)
856565cbe07955afd5136aab3787ed791a5f1661 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/856565cbe07955afd5136aab3787ed791a5f1661/StorageUsageDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13840, 4733, 12, 2890, 16, 1214, 2218, 2187, 768, 559, 2218, 2187, 17273, 2218, 2187, 12180, 33, 8526, 4672, 3536, 20507, 326, 2502, 4916, 364, 777, 434, 326, 4846, 6402, 3536, 1111, 273, 315, 4803, 463, 57, 18, 3245, 1046, 16, 14020, 12, 16214, 18, 3245, 1046, 1225, 3631, 14020, 12, 16214, 18, 3245, 1046, 2697, 13, 4571, 8930, 5357, 5355, 463, 57, 16, 8930, 5355, 463, 4852, 463, 18, 31995, 13161, 1995, 87, 9, 87, 4970, 738, 261, 1214, 11189, 9, 6134, 309, 21939, 30, 1111, 273, 2213, 87, 4116, 463, 18, 31995, 13161, 1995, 87, 5258, 87, 5258, 87, 4970, 738, 261, 3658, 11189, 9, 2187, 768, 559, 11189, 9, 6134, 309, 12449, 30, 1111, 273, 2213, 87, 4116, 463, 18, 31995, 13161, 1995, 87, 5258, 87, 5258, 87, 4970, 738, 261, 3658, 11189, 9, 2187, 27188, 28, 18, 74, 6, 738, 509, 12, 17273, 13, 2934, 2079, 2668, 3316, 20, 19899, 11, 9, 6134, 309, 9180, 30, 1111, 273, 2213, 87, 4116, 463, 57, 18, 3245, 1046, 2120, 6142, 87, 2225, 738, 261, 3658, 16, 1080, 682, 5808, 12, 12180, 3719, 1111, 273, 2213, 87, 4116, 463, 57, 18, 2853, 734, 33, 40, 18, 2853, 734, 13839, 6953, 463, 57, 18, 3245, 1046, 4868, 738, 1111, 1172, 1111, 393, 273, 315, 3245, 5357, 2290, 18, 588, 3245, 4733, 30, 11175, 358, 336, 2502, 4916, 1199, 400, 273, 365, 6315, 2271, 12, 3658, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 348, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13840, 4733, 12, 2890, 16, 1214, 2218, 2187, 768, 559, 2218, 2187, 17273, 2218, 2187, 12180, 33, 8526, 4672, 3536, 20507, 326, 2502, 4916, 364, 777, 434, 326, 4846, 6402, 3536, 1111, 273, 315, 4803, 463, 57, 18, 3245, 1046, 16, 14020, 12, 16214, 18, 3245, 1046, 1225, 3631, 14020, 12, 16214, 18, 3245, 1046, 2697, 13, 4571, 8930, 5357, 5355, 463, 57, 16, 8930, 5355, 463, 4852, 463, 18, 31995, 13161, 1995, 87, 9, 87, 4970, 738, 261, 1214, 11189, 9, 6134, 309, 21939, 30, 1111, 273, 2213, 87, 4116, 463, 18, 31995, 13161, 1995, 87, 5258, 87, 5258, 87, 4970, 738, 261, 3658, 11189, 9, 2187, 768, 559, 11189, 9, 6134, 309, 12449, 30, 1111, 273, 2 ]
if(fill_value!=0){
if(fill_value!=0){
def my_dup2(st): s="" iter=0 for i in range(unroll_bsize): d["unroll_biter"]=i for j in range(unroll_ksize): d["unroll_kiter"]=j d["unroll_iter"]=iter iter+=1 s+=st%d return s+"\n"
aaea1d322c657ba643c240526cb3f00d5d2d997d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/aaea1d322c657ba643c240526cb3f00d5d2d997d/conv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 26427, 22, 12, 334, 4672, 272, 1546, 6, 1400, 33, 20, 364, 277, 316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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3399, 67, 26427, 22, 12, 334, 4672, 272, 1546, 6, 1400, 33, 20, 364, 277, 316, 1048, 12, 318, 2693, 67, 70, 1467, 4672, 302, 9614, 318, 2693, 67, 70, 2165, 11929, 33, 77, 364, 525, 316, 1048, 12, 318, 2693, 67, 79, 1467, 4672, 302, 9614, 318, 2693, 67, 79, 2165, 11929, 33, 78, 302, 9614, 318, 2693, 67, 2165, 11929, 33, 2165, 1400, 15, 33, 21, 272, 15, 33, 334, 9, 72, 327, 272, 9078, 64, 82, 6, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print path
def getRootPath(): path = os.path.dirname(os.path.abspath(__file__)) if os.path.isdir(os.path.join(path, "media")): print path return path path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),"..\\..")) if os.path.isdir(os.path.join(path, "media")): print path return path
1464f29b0b316177573c8b2d1f8c3b5df5ec9bbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/808/1464f29b0b316177573c8b2d1f8c3b5df5ec9bbf/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18863, 13332, 589, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 315, 5829, 6, 3719, 30, 327, 589, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 13, 3631, 6, 838, 1695, 18460, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 315, 5829, 6, 3719, 30, 327, 589, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18863, 13332, 589, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 315, 5829, 6, 3719, 30, 327, 589, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 13, 3631, 6, 838, 1695, 18460, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 315, 5829, 6, 3719, 30, 327, 589, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
flavorsList = package.getAnnotation('generatedFlavors') flavorsList.append(flavor) package.annotate('generatedFlavors',flavorsList)
flavorsList = package.getAnnotation('generatedFlavors',None) if not flavorsList: package.annotate('generatedFlavors',[flavor]) else: flavorsList.append(flavor)
subscriber = "def apply" + name + "(context, event):\n"
415a38dd5c32cc15fb39d208c5d5eda8955b5dec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11941/415a38dd5c32cc15fb39d208c5d5eda8955b5dec/ArchetypesGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9467, 273, 315, 536, 2230, 6, 397, 508, 397, 7751, 2472, 16, 871, 4672, 64, 82, 6, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9467, 273, 315, 536, 2230, 6, 397, 508, 397, 7751, 2472, 16, 871, 4672, 64, 82, 6, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(Unix timestamp, timezone offset).
(Unix timestamp, timezone offset).
def extshelp(): doc = _(r''' Mercurial has the ability to add new features through the use of extensions. Extensions may add new commands, add options to existing commands, change the default behavior of commands, or implement hooks. Extensions are not loaded by default for a variety of reasons: they can increase startup overhead; they may be meant for advanced usage only; they may provide potentially dangerous abilities (such as letting you destroy or modify history); they might not be ready for prime time; or they may alter some usual behaviors of stock Mercurial. It is thus up to the user to activate extensions as needed. To enable the "foo" extension, either shipped with Mercurial or in the Python search path, create an entry for it in your hgrc, like this:: [extensions] foo = You may also specify the full path to an extension:: [extensions] myfeature = ~/.hgext/myfeature.py To explicitly disable an extension enabled in an hgrc of broader scope, prepend its path with !:: [extensions] # disabling extension bar residing in /path/to/extension/bar.py hgext.bar = !/path/to/extension/bar.py # ditto, but no path was supplied for extension baz hgext.baz = ! ''') exts, maxlength = extensions.enabled() doc += listexts(_('enabled extensions:'), exts, maxlength) exts, maxlength = extensions.disabled() doc += listexts(_('disabled extensions:'), exts, maxlength) return doc
6559436b337b2c23d3cc0ede357a66e82d94a983 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/6559436b337b2c23d3cc0ede357a66e82d94a983/help.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1110, 674, 1992, 13332, 997, 273, 389, 12, 86, 26418, 14940, 1397, 649, 711, 326, 7123, 358, 527, 394, 4467, 3059, 326, 999, 434, 4418, 18, 23105, 2026, 527, 394, 4364, 16, 527, 702, 358, 2062, 4364, 16, 2549, 326, 805, 6885, 434, 4364, 16, 578, 2348, 9153, 18, 225, 23105, 854, 486, 4203, 635, 805, 364, 279, 1394, 14369, 434, 14000, 30, 2898, 848, 10929, 11850, 23188, 31, 2898, 2026, 506, 20348, 364, 16111, 4084, 1338, 31, 2898, 2026, 5615, 13935, 27308, 1481, 1223, 5076, 261, 87, 2648, 487, 2231, 1787, 1846, 5546, 578, 5612, 4927, 1769, 2898, 4825, 486, 506, 5695, 364, 17014, 813, 31, 578, 2898, 2026, 10182, 2690, 25669, 21399, 434, 12480, 14940, 1397, 649, 18, 2597, 353, 12493, 731, 358, 326, 729, 358, 10235, 4418, 487, 3577, 18, 225, 2974, 4237, 326, 315, 11351, 6, 2710, 16, 3344, 24316, 1845, 598, 14940, 1397, 649, 578, 316, 326, 6600, 1623, 589, 16, 752, 392, 1241, 364, 518, 316, 3433, 22576, 1310, 16, 3007, 333, 2866, 225, 306, 9489, 65, 8431, 273, 225, 4554, 2026, 2546, 4800, 326, 1983, 589, 358, 392, 2710, 2866, 225, 306, 9489, 65, 3399, 7238, 273, 4871, 15865, 26981, 408, 19, 4811, 7238, 18, 2074, 225, 2974, 8122, 4056, 392, 2710, 3696, 316, 392, 22576, 1310, 434, 23670, 1143, 2146, 16, 8254, 2097, 589, 598, 401, 2866, 225, 306, 9489, 65, 468, 1015, 17912, 2710, 4653, 10043, 310, 316, 342, 803, 19, 869, 19, 6447, 19, 3215, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1110, 674, 1992, 13332, 997, 273, 389, 12, 86, 26418, 14940, 1397, 649, 711, 326, 7123, 358, 527, 394, 4467, 3059, 326, 999, 434, 4418, 18, 23105, 2026, 527, 394, 4364, 16, 527, 702, 358, 2062, 4364, 16, 2549, 326, 805, 6885, 434, 4364, 16, 578, 2348, 9153, 18, 225, 23105, 854, 486, 4203, 635, 805, 364, 279, 1394, 14369, 434, 14000, 30, 2898, 848, 10929, 11850, 23188, 31, 2898, 2026, 506, 20348, 364, 16111, 4084, 1338, 31, 2898, 2026, 5615, 13935, 27308, 1481, 1223, 5076, 261, 87, 2648, 487, 2231, 1787, 1846, 5546, 578, 5612, 4927, 1769, 2898, 4825, 486, 506, 5695, 364, 17014, 813, 31, 578, 2898, 2026, 10182, 2690, 25669, 21399, 434, 12480, 14940, 1397, 2 ]
select min(pt.id) as id, a.name as project, sum(pt.remaining_hours) as remaining_hours, a.state, pu.uid from project_task as pt, project_project as p, account_analytic_account as a, project_user_rel as pu where pt.project_id=p.id and p.category_id = a.id and pu.project_id=p.id group by a.name,a.state,pu.uid
select min(pt.id) as id, aaa.name as project, CASE WHEN pu.uid is null THEN aaa.user_id ELSE pu.uid END as uid, sum(pt.remaining_hours) as remaining_hours, aaa.state from project_task pt left join project_project as pp ON (pt.project_id=pp.id) left join account_analytic_account as aaa ON (pp.category_id=aaa.id) left join project_user_rel as pu ON (pu.project_id=pp.id) where pt.create_uid=aaa.user_id group by aaa.name,aaa.state,pu.uid,aaa.user_id
def init(self, cr): tools.sql.drop_view_if_exists(cr, 'project_vs_remaining_hours') cr.execute(""" create or replace view project_vs_remaining_hours as ( select min(pt.id) as id, a.name as project, sum(pt.remaining_hours) as remaining_hours, a.state, pu.uid from project_task as pt, project_project as p, account_analytic_account as a, project_user_rel as pu where pt.project_id=p.id and p.category_id = a.id and pu.project_id=p.id group by a.name,a.state,pu.uid ) """)
d4a4ee06d7e670eb0600ea3d44507dd639bad859 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d4a4ee06d7e670eb0600ea3d44507dd639bad859/project_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 4406, 67, 6904, 67, 17956, 67, 16814, 6134, 4422, 18, 8837, 2932, 3660, 752, 578, 1453, 1476, 1984, 67, 6904, 67, 17956, 67, 16814, 487, 261, 2027, 1131, 12, 337, 18, 350, 13, 487, 612, 16, 279, 7598, 18, 529, 487, 1984, 16, 18403, 29707, 16284, 18, 1911, 353, 446, 27124, 279, 7598, 18, 1355, 67, 350, 14801, 1090, 16284, 18, 1911, 7273, 487, 4555, 16, 2142, 12, 337, 18, 17956, 67, 16814, 13, 487, 4463, 67, 16814, 16, 279, 7598, 18, 2019, 628, 1984, 67, 4146, 5818, 2002, 1233, 1984, 67, 4406, 487, 8228, 6229, 261, 337, 18, 4406, 67, 350, 33, 11858, 18, 350, 13, 2002, 1233, 2236, 67, 304, 7834, 335, 67, 4631, 487, 279, 7598, 6229, 261, 11858, 18, 4743, 67, 350, 33, 26676, 18, 350, 13, 2002, 1233, 1984, 67, 1355, 67, 2878, 487, 16284, 6229, 261, 11938, 18, 4406, 67, 350, 33, 11858, 18, 350, 13, 1625, 5818, 18, 2640, 67, 1911, 33, 26676, 18, 1355, 67, 350, 1041, 635, 279, 7598, 18, 529, 16, 26676, 18, 2019, 16, 11938, 18, 1911, 16, 26676, 18, 1355, 67, 350, 262, 3536, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 4406, 67, 6904, 67, 17956, 67, 16814, 6134, 4422, 18, 8837, 2932, 3660, 752, 578, 1453, 1476, 1984, 67, 6904, 67, 17956, 67, 16814, 487, 261, 2027, 1131, 12, 337, 18, 350, 13, 487, 612, 16, 279, 7598, 18, 529, 487, 1984, 16, 18403, 29707, 16284, 18, 1911, 353, 446, 27124, 279, 7598, 18, 1355, 67, 350, 14801, 1090, 16284, 18, 1911, 7273, 487, 4555, 16, 2142, 12, 337, 18, 17956, 67, 16814, 13, 487, 4463, 67, 16814, 16, 279, 7598, 18, 2019, 628, 1984, 67, 4146, 5818, 2002, 1233, 1984, 67, 4406, 487, 8228, 6229, 261, 2 ]
sage: J = range(7)
sage: J = range(8)
def dwt(self,other="haar",wavelet_k=2): """ Wraps the gsl WaveletTransform.forward in dwt.pyx (written by Johua Kantor). Assumes the length of the sample is a power of 2. Uses the GSL function gsl_wavelet_transform_forward.
837c0b7c218776beb9f35f10fe4f0b231105b3a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/837c0b7c218776beb9f35f10fe4f0b231105b3a3/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 6046, 12, 2890, 16, 3011, 1546, 3395, 297, 3113, 24801, 808, 67, 79, 33, 22, 4672, 3536, 678, 7506, 326, 314, 2069, 678, 842, 808, 4059, 18, 11565, 316, 302, 6046, 18, 2074, 92, 261, 9748, 635, 804, 16699, 11886, 1475, 970, 280, 2934, 25374, 326, 769, 434, 326, 3296, 353, 279, 7212, 434, 576, 18, 14854, 326, 611, 4559, 445, 314, 2069, 67, 24801, 808, 67, 6547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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 302, 6046, 12, 2890, 16, 3011, 1546, 3395, 297, 3113, 24801, 808, 67, 79, 33, 22, 4672, 3536, 678, 7506, 326, 314, 2069, 678, 842, 808, 4059, 18, 11565, 316, 302, 6046, 18, 2074, 92, 261, 9748, 635, 804, 16699, 11886, 1475, 970, 280, 2934, 25374, 326, 769, 434, 326, 3296, 353, 279, 7212, 434, 576, 18, 14854, 326, 611, 4559, 445, 314, 2069, 67, 24801, 808, 67, 6547, 67, 11565, 18, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" self.dirty = False
""" self.dirty = False
def parse_fstab(self,filename): """ filename path to sources.list file Parse the fstab file used for defining static information about filesystems If no value is passed to filename then /etc/fstab is used by default. This method parses the fstab file populating a dictionary with the mount points and mount options. The dictionary is returned when the parser has finished. """ self.dirty = False rx_mountpoint = re.compile('^\s*(?!#)(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$') self.filename = filename if not filename: self.filename = '/etc/fstab' f = open(self.filename) mount_lines = f.readlines() f.close() mount_map = {} self.order = 0 dummy_key = 0 for l in mount_lines: m = rx_mountpoint.match(l) if m: mount_map[(m.groups()[:2])] = { 'sourcefs': m.groups()[0], 'mountpoint': m.groups()[1], 'fstype': m.groups()[2], 'options': m.groups()[3], 'dump': m.groups()[4], 'fsckorder': m.groups()[5], 'order': self.order, 'linetype':'mnt'} else: mount_map[dummy_key] = { 'text': l.strip(), 'order': self.order, 'linetype':'other'} dummy_key += 1 self.order += 1 return mount_map
89d1edf639fbe898a2839b722aa9fc2081b8d29a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2487/89d1edf639fbe898a2839b722aa9fc2081b8d29a/fstabhelpers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 74, 334, 378, 12, 2890, 16, 3459, 4672, 3536, 1544, 202, 803, 358, 5550, 18, 1098, 585, 225, 2884, 326, 20223, 378, 585, 1399, 364, 9364, 760, 1779, 2973, 6496, 87, 971, 1158, 460, 353, 2275, 358, 1544, 1508, 342, 14175, 19, 74, 334, 378, 353, 1399, 635, 805, 18, 1220, 707, 8940, 326, 20223, 378, 585, 3650, 1776, 279, 3880, 598, 326, 5344, 3143, 471, 5344, 702, 18, 1021, 3880, 353, 2106, 1347, 326, 2082, 711, 6708, 18, 3536, 365, 18, 18013, 273, 1083, 8581, 67, 4778, 1153, 273, 283, 18, 11100, 2668, 17134, 87, 14, 19306, 7, 13, 4713, 55, 14456, 87, 26113, 55, 14456, 87, 26113, 55, 14456, 87, 26113, 55, 14456, 87, 26113, 55, 14456, 87, 26113, 55, 14456, 87, 26788, 6134, 225, 365, 18, 3459, 273, 1544, 309, 486, 1544, 30, 365, 18, 3459, 273, 1173, 14175, 19, 74, 334, 378, 11, 284, 273, 1696, 12, 2890, 18, 3459, 13, 5344, 67, 3548, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 1435, 5344, 67, 1458, 273, 2618, 365, 18, 1019, 273, 374, 9609, 67, 856, 273, 374, 364, 328, 316, 5344, 67, 3548, 30, 312, 273, 8581, 67, 4778, 1153, 18, 1916, 12, 80, 13, 309, 312, 30, 5344, 67, 1458, 63, 12, 81, 18, 4650, 1435, 10531, 22, 5717, 65, 273, 288, 296, 3168, 2556, 4278, 312, 18, 4650, 1435, 63, 20, 6487, 296, 4778, 1153, 4278, 312, 18, 4650, 1435, 63, 21, 6487, 296, 74, 27273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 74, 334, 378, 12, 2890, 16, 3459, 4672, 3536, 1544, 202, 803, 358, 5550, 18, 1098, 585, 225, 2884, 326, 20223, 378, 585, 1399, 364, 9364, 760, 1779, 2973, 6496, 87, 971, 1158, 460, 353, 2275, 358, 1544, 1508, 342, 14175, 19, 74, 334, 378, 353, 1399, 635, 805, 18, 1220, 707, 8940, 326, 20223, 378, 585, 3650, 1776, 279, 3880, 598, 326, 5344, 3143, 471, 5344, 702, 18, 1021, 3880, 353, 2106, 1347, 326, 2082, 711, 6708, 18, 3536, 365, 18, 18013, 273, 1083, 8581, 67, 4778, 1153, 273, 283, 18, 11100, 2668, 17134, 87, 14, 19306, 7, 13, 4713, 55, 14456, 87, 26113, 55, 14456, 87, 26113, 55, 14456, 87, 26113, 55, 14456, 87, 2 ]
sage: EtaProduct(36, {6:6, 2:-6}).qexp(10)
sage: EtaProduct(36, {6:6, 2:-6}).q_expansion(10)
def qexp(self, n): r""" The q-expansion of self at the cusp at infinity. INPUT: - ``n`` (integer): number of terms to calculate OUTPUT: - a power series over `\ZZ` in the variable `q`, with a *relative* precision of `1 + O(q^n)`. ALGORITHM: Calculates eta to (n/m) terms, where m is the smallest integer dividing self.level() such that self.r(m) != 0. Then multiplies. EXAMPLES:: sage: EtaProduct(36, {6:6, 2:-6}).qexp(10) q + 6*q^3 + 27*q^5 + 92*q^7 + 279*q^9 + O(q^11) sage: R.<q> = ZZ[[]] sage: EtaProduct(2,{2:24,1:-24}).qexp(100) == delta_qexp(101)(q^2)/delta_qexp(101)(q) True """ R,q = PowerSeriesRing(ZZ, 'q').objgen() pr = R(1) if self == self.parent()(1): return pr eta_n = max([ (n/d).floor() for d in self._keys if self.r(d) != 0]) eta = qexp_eta(R, eta_n) for d in self._keys: if self.r(d) != 0: pr *= eta(q**d)**self.r(d) return pr*q**(self._sumDR / ZZ(24))*( R(1).add_bigoh(n))
1f0a985e63b3c9db13caec99340e4d04898d08a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1f0a985e63b3c9db13caec99340e4d04898d08a6/etaproducts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 2749, 12, 2890, 16, 290, 4672, 436, 8395, 1021, 1043, 17, 2749, 12162, 434, 365, 622, 326, 27964, 84, 622, 27272, 18, 225, 12943, 30, 282, 300, 12176, 82, 10335, 261, 7745, 4672, 1300, 434, 6548, 358, 4604, 282, 11550, 30, 282, 300, 225, 279, 7212, 4166, 1879, 1375, 64, 27096, 68, 316, 326, 2190, 1375, 85, 9191, 598, 279, 380, 11626, 14, 6039, 434, 1375, 21, 397, 531, 12, 85, 66, 82, 13, 8338, 282, 7981, 22548, 30, 26128, 14251, 358, 261, 82, 19, 81, 13, 6548, 16, 1625, 312, 353, 326, 13541, 3571, 3739, 10415, 365, 18, 2815, 1435, 4123, 716, 365, 18, 86, 12, 81, 13, 480, 374, 18, 9697, 3309, 5259, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 512, 2351, 4133, 12, 5718, 16, 288, 26, 30, 26, 16, 576, 30, 17, 26, 97, 2934, 85, 67, 2749, 12162, 12, 2163, 13, 1043, 397, 1666, 14, 85, 66, 23, 397, 12732, 14, 85, 66, 25, 397, 16146, 14, 85, 66, 27, 397, 576, 7235, 14, 85, 66, 29, 397, 531, 12, 85, 66, 2499, 13, 272, 410, 30, 534, 22782, 85, 34, 273, 2285, 62, 63, 8526, 65, 272, 410, 30, 512, 2351, 4133, 12, 22, 16, 95, 22, 30, 3247, 16, 21, 30, 17, 3247, 97, 2934, 85, 2749, 12, 6625, 13, 422, 3622, 67, 85, 2749, 12, 15168, 21433, 85, 66, 22, 13176, 9878, 67, 85, 2749, 12, 15168, 21433, 85, 13, 1053, 3536, 534, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 2749, 12, 2890, 16, 290, 4672, 436, 8395, 1021, 1043, 17, 2749, 12162, 434, 365, 622, 326, 27964, 84, 622, 27272, 18, 225, 12943, 30, 282, 300, 12176, 82, 10335, 261, 7745, 4672, 1300, 434, 6548, 358, 4604, 282, 11550, 30, 282, 300, 225, 279, 7212, 4166, 1879, 1375, 64, 27096, 68, 316, 326, 2190, 1375, 85, 9191, 598, 279, 380, 11626, 14, 6039, 434, 1375, 21, 397, 531, 12, 85, 66, 82, 13, 8338, 282, 7981, 22548, 30, 26128, 14251, 358, 261, 82, 19, 81, 13, 6548, 16, 1625, 312, 353, 326, 13541, 3571, 3739, 10415, 365, 18, 2815, 1435, 4123, 716, 365, 18, 86, 12, 81, 13, 480, 374, 18, 9697, 3309, 5259, 18, 225, 2 ]
"""
This method returns a list of Blast record objects. """ self.reset()
def parse(self, handler): """Parses the XML data
222c25b5ffb6f82620be0e71c5d11e486994dbfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/222c25b5ffb6f82620be0e71c5d11e486994dbfb/NCBIXML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1838, 4672, 3536, 6656, 326, 3167, 501, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1109, 12, 2890, 16, 1838, 4672, 3536, 6656, 326, 3167, 501, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.bodyContent.append(self.language.labels[name.lower()])
if name: self.bodyContent.append(self.language.labels[name.lower()])
def visit_admonition(self, node, name, admonitionCellAtts={}): baseAdmonitionCellAtts = {"width" : "15%"} baseAdmonitionCellAtts.update(admonitionCellAtts) self.bodyContent.append('<table width="90%" border="1" align="center">\n' '<tbody><tr><td><table width="100%"><tbody><tr>\n') self.bodyContent.append(self.starttag(node, 'td', **baseAdmonitionCellAtts)) self.bodyContent.append(self.language.labels[name.lower()]) self.bodyContent.append('</td><td>')
51d559af3f14e908f4c13821936788419a581c33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/51d559af3f14e908f4c13821936788419a581c33/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 361, 2586, 608, 12, 2890, 16, 756, 16, 508, 16, 1261, 2586, 608, 4020, 3075, 87, 12938, 4672, 1026, 1871, 2586, 608, 4020, 3075, 87, 273, 12528, 2819, 6, 294, 315, 3600, 16407, 97, 1026, 1871, 2586, 608, 4020, 3075, 87, 18, 2725, 12, 361, 2586, 608, 4020, 3075, 87, 13, 365, 18, 3432, 1350, 18, 6923, 2668, 32, 2121, 1835, 1546, 9349, 16407, 5795, 1546, 21, 6, 5689, 1546, 5693, 6, 5333, 82, 11, 2368, 20779, 4438, 313, 4438, 4465, 4438, 2121, 1835, 1546, 6625, 9, 14050, 20779, 4438, 313, 5333, 82, 6134, 365, 18, 3432, 1350, 18, 6923, 12, 2890, 18, 1937, 2692, 12, 2159, 16, 296, 4465, 2187, 2826, 1969, 1871, 2586, 608, 4020, 3075, 87, 3719, 309, 508, 30, 365, 18, 3432, 1350, 18, 6923, 12, 2890, 18, 4923, 18, 5336, 63, 529, 18, 8167, 1435, 5717, 365, 18, 3432, 1350, 18, 6923, 2668, 1757, 4465, 4438, 4465, 1870, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 326, 981, 30, 1652, 3757, 67, 361, 2586, 608, 12, 2890, 16, 756, 16, 508, 16, 1261, 2586, 608, 4020, 3075, 87, 12938, 4672, 1026, 1871, 2586, 608, 4020, 3075, 87, 273, 12528, 2819, 6, 294, 315, 3600, 16407, 97, 1026, 1871, 2586, 608, 4020, 3075, 87, 18, 2725, 12, 361, 2586, 608, 4020, 3075, 87, 13, 365, 18, 3432, 1350, 18, 6923, 2668, 32, 2121, 1835, 1546, 9349, 16407, 5795, 1546, 21, 6, 5689, 1546, 5693, 6, 5333, 82, 11, 2368, 20779, 4438, 313, 4438, 4465, 4438, 2121, 1835, 1546, 6625, 9, 14050, 20779, 4438, 313, 5333, 82, 6134, 365, 18, 3432, 1350, 18, 6923, 12, 2890, 18, 1937, 2692, 12, 2159, 16, 296, 4465, 2187, 2826, 1969, 1871, 2586, 608, 2 ]
if mlen == 0 and tmsg.lower().startswith('project-id-version:'):
if mlen == 0:
def _parse(self, fp): """Override this method to support alternative .mo formats.""" unpack = struct.unpack filename = getattr(fp, 'name', '') # Parse the .mo file header, which consists of 5 little endian 32 # bit words. self._catalog = catalog = {} self.plural = lambda n: int(n != 1) # germanic plural by default buf = fp.read() buflen = len(buf) # Are we big endian or little endian? magic = unpack('<I', buf[:4])[0] if magic == self.LE_MAGIC: version, msgcount, masteridx, transidx = unpack('<4I', buf[4:20]) ii = '<II' elif magic == self.BE_MAGIC: version, msgcount, masteridx, transidx = unpack('>4I', buf[4:20]) ii = '>II' else: raise IOError(0, 'Bad magic number', filename) # Now put all messages from the .mo file buffer into the catalog # dictionary. for i in xrange(0, msgcount): mlen, moff = unpack(ii, buf[masteridx:masteridx+8]) mend = moff + mlen tlen, toff = unpack(ii, buf[transidx:transidx+8]) tend = toff + tlen if mend < buflen and tend < buflen: msg = buf[moff:mend] tmsg = buf[toff:tend] if msg.find('\x00') >= 0: # Plural forms msgid1, msgid2 = msg.split('\x00') tmsg = tmsg.split('\x00') if self._coerce: msgid1 = unicode(msgid1, self._charset) tmsg = [unicode(x, self._charset) for x in tmsg] for i in range(len(tmsg)): catalog[(msgid1, i)] = tmsg[i] else: if self._coerce: msg = unicode(msg, self._charset) tmsg = unicode(tmsg, self._charset) catalog[msg] = tmsg else: raise IOError(0, 'File is corrupt', filename) # See if we're looking at GNU .mo conventions for metadata if mlen == 0 and tmsg.lower().startswith('project-id-version:'): # Catalog description for item in tmsg.splitlines(): item = item.strip() if not item: continue k, v = item.split(':', 1) k = k.strip().lower() v = v.strip() self._info[k] = v if k == 'content-type': self._charset = v.split('charset=')[1] elif k == 'plural-forms': v = v.split(';')
d9095dbda378bf7d6cc74c3872b467dab7e5a960 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d9095dbda378bf7d6cc74c3872b467dab7e5a960/gettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 2890, 16, 4253, 4672, 3536, 6618, 333, 707, 358, 2865, 10355, 263, 8683, 6449, 12123, 6167, 273, 1958, 18, 17309, 1544, 273, 3869, 12, 7944, 16, 296, 529, 2187, 28707, 468, 2884, 326, 263, 8683, 585, 1446, 16, 1492, 20915, 434, 1381, 12720, 14759, 3847, 468, 2831, 4511, 18, 365, 6315, 7199, 273, 6222, 273, 2618, 365, 18, 15203, 273, 3195, 290, 30, 509, 12, 82, 480, 404, 13, 468, 314, 29650, 335, 7978, 635, 805, 1681, 273, 4253, 18, 896, 1435, 1681, 1897, 273, 562, 12, 4385, 13, 468, 12520, 732, 5446, 14759, 578, 12720, 14759, 35, 8146, 273, 6167, 2668, 32, 45, 2187, 1681, 10531, 24, 5717, 63, 20, 65, 309, 8146, 422, 365, 18, 900, 67, 49, 22247, 30, 1177, 16, 1234, 1883, 16, 4171, 3465, 16, 906, 3465, 273, 6167, 2668, 32, 24, 45, 2187, 1681, 63, 24, 30, 3462, 5717, 6072, 273, 2368, 6954, 11, 1327, 8146, 422, 365, 18, 5948, 67, 49, 22247, 30, 1177, 16, 1234, 1883, 16, 4171, 3465, 16, 906, 3465, 273, 6167, 2668, 34, 24, 45, 2187, 1681, 63, 24, 30, 3462, 5717, 6072, 273, 11279, 6954, 11, 469, 30, 1002, 8340, 12, 20, 16, 296, 6434, 8146, 1300, 2187, 1544, 13, 468, 4494, 1378, 777, 2743, 628, 326, 263, 8683, 585, 1613, 1368, 326, 6222, 468, 3880, 18, 364, 277, 316, 12314, 12, 20, 16, 1234, 1883, 4672, 312, 1897, 16, 312, 3674, 273, 6167, 12, 2835, 16, 1681, 63, 7525, 3465, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 12, 2890, 16, 4253, 4672, 3536, 6618, 333, 707, 358, 2865, 10355, 263, 8683, 6449, 12123, 6167, 273, 1958, 18, 17309, 1544, 273, 3869, 12, 7944, 16, 296, 529, 2187, 28707, 468, 2884, 326, 263, 8683, 585, 1446, 16, 1492, 20915, 434, 1381, 12720, 14759, 3847, 468, 2831, 4511, 18, 365, 6315, 7199, 273, 6222, 273, 2618, 365, 18, 15203, 273, 3195, 290, 30, 509, 12, 82, 480, 404, 13, 468, 314, 29650, 335, 7978, 635, 805, 1681, 273, 4253, 18, 896, 1435, 1681, 1897, 273, 562, 12, 4385, 13, 468, 12520, 732, 5446, 14759, 578, 12720, 14759, 35, 8146, 273, 6167, 2668, 32, 45, 2187, 1681, 10531, 24, 5717, 63, 20, 65, 309, 8146, 422, 2 ]
self.connections[connum].SetPortUp(portnum, connected)
self.connections[connum].SetPortUp(portnum, err == 0)
def conn_change_cb(self, domain, err, connum, portnum, connected): if (err): self.ui.new_log("Connection error for " + self.name + ": " + OpenIPMI.get_error_string(err)) pass if (not self.first_conn): self.first_conn = True self.ipmb_rescan_time = domain.get_ipmb_rescan_time() self.sel_rescan_time = domain.get_sel_rescan_time() domain.iterate_connections(self) pass if (connum not in self.connections): self.ui.new_log("Got connection for invalid connection number") return self.connections[connum].SetPortUp(portnum, connected) any_con_up = False for c in self.connections.itervalues(): any_con_up = c.IsUp() or any_con_up pass if (any_con_up): if (not self.any_con_up): self.ui.decr_item_critical(self.treeroot) pass pass else: if (self.any_con_up): self.ui.incr_item_critical(self.treeroot) pass pass self.any_con_up = any_con_up return
1adcc36f44c9460920ad4e020a9aeb016f78c39a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/1adcc36f44c9460920ad4e020a9aeb016f78c39a/_domain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1487, 67, 3427, 67, 7358, 12, 2890, 16, 2461, 16, 393, 16, 1487, 379, 16, 1756, 2107, 16, 5840, 4672, 309, 261, 370, 4672, 365, 18, 4881, 18, 2704, 67, 1330, 2932, 1952, 555, 364, 315, 397, 365, 18, 529, 397, 6398, 315, 397, 3502, 2579, 7492, 18, 588, 67, 1636, 67, 1080, 12, 370, 3719, 1342, 309, 261, 902, 365, 18, 3645, 67, 4646, 4672, 365, 18, 3645, 67, 4646, 273, 1053, 365, 18, 625, 1627, 67, 455, 4169, 67, 957, 273, 2461, 18, 588, 67, 625, 1627, 67, 455, 4169, 67, 957, 1435, 365, 18, 1786, 67, 455, 4169, 67, 957, 273, 2461, 18, 588, 67, 1786, 67, 455, 4169, 67, 957, 1435, 2461, 18, 18793, 67, 13313, 12, 2890, 13, 1342, 309, 261, 591, 2107, 486, 316, 365, 18, 13313, 4672, 365, 18, 4881, 18, 2704, 67, 1330, 2932, 15617, 1459, 364, 2057, 1459, 1300, 7923, 327, 365, 18, 13313, 63, 591, 2107, 8009, 694, 2617, 1211, 12, 655, 2107, 16, 393, 422, 374, 13, 1281, 67, 591, 67, 416, 273, 1083, 364, 276, 316, 365, 18, 13313, 18, 2165, 2372, 13332, 1281, 67, 591, 67, 416, 273, 276, 18, 2520, 1211, 1435, 578, 1281, 67, 591, 67, 416, 1342, 309, 261, 2273, 67, 591, 67, 416, 4672, 309, 261, 902, 365, 18, 2273, 67, 591, 67, 416, 4672, 365, 18, 4881, 18, 323, 3353, 67, 1726, 67, 28000, 12, 2890, 18, 27427, 264, 1632, 13, 1342, 1342, 469, 30, 309, 261, 2890, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1487, 67, 3427, 67, 7358, 12, 2890, 16, 2461, 16, 393, 16, 1487, 379, 16, 1756, 2107, 16, 5840, 4672, 309, 261, 370, 4672, 365, 18, 4881, 18, 2704, 67, 1330, 2932, 1952, 555, 364, 315, 397, 365, 18, 529, 397, 6398, 315, 397, 3502, 2579, 7492, 18, 588, 67, 1636, 67, 1080, 12, 370, 3719, 1342, 309, 261, 902, 365, 18, 3645, 67, 4646, 4672, 365, 18, 3645, 67, 4646, 273, 1053, 365, 18, 625, 1627, 67, 455, 4169, 67, 957, 273, 2461, 18, 588, 67, 625, 1627, 67, 455, 4169, 67, 957, 1435, 365, 18, 1786, 67, 455, 4169, 67, 957, 273, 2461, 18, 588, 67, 1786, 67, 455, 4169, 67, 957, 1435, 2461, 18, 18793, 2 ]
sage: C.cliques_containing_node(cliques=E)
sage: C.cliques_containing_vertex(cliques=E)
def cliques_containing_node(self, nodes=None, cliques=None, with_labels=False): """ Returns the cliques containing each node, represented as a list of lists. (Returns a single list if only one input node). Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. (See examples below). INPUT: -- nodes - the nodes to inspect (default is entire graph) -- with_labels - (boolean) default False returns list as above True returns a dictionary keyed by node labels -- cliques - list of cliques (if already computed) EXAMPLES: sage: C = Graph('DJ{') sage: C.cliques_containing_node() [[[4, 0]], [[4, 1, 2, 3]], [[4, 1, 2, 3]], [[4, 1, 2, 3]], [[4, 1, 2, 3], [4, 0]]] sage: E = C.cliques() sage: E [[4, 1, 2, 3], [4, 0]] sage: C.cliques_containing_node(cliques=E) [[[4, 0]], [[4, 1, 2, 3]], [[4, 1, 2, 3]], [[4, 1, 2, 3]], [[4, 1, 2, 3], [4, 0]]] sage: F = graphs.Grid2dGraph(2,3) sage: F.cliques_containing_node(with_labels=True) {(0, 1): [[(0, 1), (0, 0)], [(0, 1), (0, 2)], [(0, 1), (1, 1)]], (1, 2): [[(1, 2), (0, 2)], [(1, 2), (1, 1)]], (0, 0): [[(0, 1), (0, 0)], [(1, 0), (0, 0)]], (1, 1): [[(0, 1), (1, 1)], [(1, 2), (1, 1)], [(1, 0), (1, 1)]], (1, 0): [[(1, 0), (0, 0)], [(1, 0), (1, 1)]], (0, 2): [[(0, 1), (0, 2)], [(1, 2), (0, 2)]]} sage: F.cliques_containing_node(nodes=[(0, 1), (1, 2)]) [[[(0, 1), (0, 0)], [(0, 1), (0, 2)], [(0, 1), (1, 1)]], [[(1, 2), (0, 2)], [(1, 2), (1, 1)]]] sage: D = DiGraph({0:[1,2,3], 1:[2], 3:[0,1]}) sage.: D.show(figsize=[2,2]) sage: D.cliques_containing_node() Traceback (most recent call last): ... TypeError: Function defined for undirected graphs only. See documentation. sage: D = D.to_undirected() sage.: D.show(figsize=[2,2]) sage: D.cliques_containing_node() [[[0, 1, 2], [0, 1, 3]], [[0, 1, 2], [0, 1, 3]], [[0, 1, 2]], [[0, 1, 3]]] """ if (self.is_directed()): raise TypeError('Function defined for undirected graphs only. See documentation.') else: import networkx.cliques return networkx.cliques.cliques_containing_node(self._nxg, nodes, cliques, with_labels)
e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 29896, 67, 1213, 3280, 67, 2159, 12, 2890, 16, 2199, 33, 7036, 16, 4942, 29896, 33, 7036, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 4942, 29896, 4191, 1517, 756, 16, 10584, 487, 279, 666, 434, 6035, 18, 225, 261, 1356, 279, 2202, 666, 309, 1338, 1245, 810, 756, 2934, 225, 15212, 1338, 8249, 364, 640, 26830, 19422, 18, 225, 2672, 358, 67, 1074, 867, 329, 358, 1765, 279, 3097, 1483, 358, 392, 640, 26830, 2667, 18, 225, 261, 9704, 10991, 5712, 2934, 225, 12943, 30, 1493, 2199, 300, 326, 2199, 358, 5334, 261, 1886, 353, 7278, 2667, 13, 1493, 598, 67, 5336, 300, 261, 6494, 13, 805, 1083, 1135, 666, 487, 5721, 1053, 1135, 279, 3880, 17408, 635, 756, 3249, 1493, 4942, 29896, 300, 666, 434, 4942, 29896, 261, 430, 1818, 8470, 13, 225, 5675, 8900, 11386, 30, 272, 410, 30, 385, 273, 5601, 2668, 40, 46, 95, 6134, 272, 410, 30, 385, 18, 4857, 29896, 67, 1213, 3280, 67, 2159, 1435, 12167, 63, 24, 16, 374, 65, 6487, 12167, 24, 16, 404, 16, 576, 16, 890, 65, 6487, 12167, 24, 16, 404, 16, 576, 16, 890, 65, 6487, 12167, 24, 16, 404, 16, 576, 16, 890, 65, 6487, 12167, 24, 16, 404, 16, 576, 16, 890, 6487, 306, 24, 16, 374, 13563, 65, 272, 410, 30, 512, 273, 385, 18, 4857, 29896, 1435, 272, 410, 30, 512, 12167, 24, 16, 404, 16, 576, 16, 890, 6487, 306, 24, 16, 374, 13563, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 29896, 67, 1213, 3280, 67, 2159, 12, 2890, 16, 2199, 33, 7036, 16, 4942, 29896, 33, 7036, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 4942, 29896, 4191, 1517, 756, 16, 10584, 487, 279, 666, 434, 6035, 18, 225, 261, 1356, 279, 2202, 666, 309, 1338, 1245, 810, 756, 2934, 225, 15212, 1338, 8249, 364, 640, 26830, 19422, 18, 225, 2672, 358, 67, 1074, 867, 329, 358, 1765, 279, 3097, 1483, 358, 392, 640, 26830, 2667, 18, 225, 261, 9704, 10991, 5712, 2934, 225, 12943, 30, 1493, 2199, 300, 326, 2199, 358, 5334, 261, 1886, 353, 7278, 2667, 13, 1493, 598, 67, 5336, 300, 261, 6494, 13, 805, 1083, 1135, 666, 487, 5721, 1053, 1135, 2 ]
return any((key in model.get_value(iter, column).lower()) for column in self.SEARCH_COLUMNS)
return any((key in (model.get_value(iter, column) or '').lower()) for column in self.SEARCH_COLUMNS)
def _filter_visible_func(self, model, iter): # If searching is active, set visibility based on search text if self._search_term is not None: key = self._search_term.lower() return any((key in model.get_value(iter, column).lower()) for column in self.SEARCH_COLUMNS)
fe87c0f89e914a5ad2fb56174c6045a933c4228b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/fe87c0f89e914a5ad2fb56174c6045a933c4228b/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 67, 8613, 67, 644, 12, 2890, 16, 938, 16, 1400, 4672, 468, 971, 15300, 353, 2695, 16, 444, 9478, 2511, 603, 1623, 977, 309, 365, 6315, 3072, 67, 6408, 353, 486, 599, 30, 498, 273, 365, 6315, 3072, 67, 6408, 18, 8167, 1435, 327, 1281, 12443, 856, 316, 938, 18, 588, 67, 1132, 12, 2165, 16, 1057, 2934, 8167, 10756, 364, 1057, 316, 365, 18, 17251, 67, 25936, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 2188, 67, 8613, 67, 644, 12, 2890, 16, 938, 16, 1400, 4672, 468, 971, 15300, 353, 2695, 16, 444, 9478, 2511, 603, 1623, 977, 309, 365, 6315, 3072, 67, 6408, 353, 486, 599, 30, 498, 273, 365, 6315, 3072, 67, 6408, 18, 8167, 1435, 327, 1281, 12443, 856, 316, 938, 18, 588, 67, 1132, 12, 2165, 16, 1057, 2934, 8167, 10756, 364, 1057, 316, 365, 18, 17251, 67, 25936, 13, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
impl_func = func.GetInfo('impl_func') if impl_func == None or impl_func == True: file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write(" typedef %s::Result Result;\n" % func.original_name) file.Write(" Result* result = GetResultAs<Result*>();\n") file.Write(" *result = 0;\n") arg_string = func.MakeOriginalArgString("") comma = "" if len(arg_string) > 0: comma = ", " file.Write(" helper_->%s(%s%sresult_shm_id(), result_shm_offset());\n" % (func.name, arg_string, comma)) file.Write(" WaitForCmd();\n") file.Write(" return *result;\n") file.Write("}\n") file.Write("\n") else: self.WriteGLES2ImplementationDeclaration(func, file)
file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) arg_string = func.MakeOriginalArgString("") comma = "" if len(arg_string) > 0: comma = ", " file.Write(" helper_->%s(%s%sresult_shm_id(), result_shm_offset());\n" % (func.name, arg_string, comma)) file.Write(" WaitForCmd();\n") file.Write(" return GetResultAs<%s>();\n" % func.return_type) file.Write("}\n") file.Write("\n")
def WriteGLES2ImplementationHeader(self, func, file): """Overrriden from TypeHandler.""" impl_func = func.GetInfo('impl_func') if impl_func == None or impl_func == True: file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write(" typedef %s::Result Result;\n" % func.original_name) file.Write(" Result* result = GetResultAs<Result*>();\n") file.Write(" *result = 0;\n") arg_string = func.MakeOriginalArgString("") comma = "" if len(arg_string) > 0: comma = ", " file.Write(" helper_->%s(%s%sresult_shm_id(), result_shm_offset());\n" % (func.name, arg_string, comma)) file.Write(" WaitForCmd();\n") file.Write(" return *result;\n") file.Write("}\n") file.Write("\n") else: self.WriteGLES2ImplementationDeclaration(func, file)
85c6d6739a81098c35cb35c3430f038ed4f5ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85c6d6739a81098c35cb35c3430f038ed4f5ddab/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 9380, 67, 644, 273, 1326, 18, 967, 966, 2668, 11299, 67, 644, 6134, 309, 9380, 67, 644, 422, 599, 578, 9380, 67, 644, 422, 1053, 30, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 13, 18890, 82, 6, 738, 261, 644, 18, 2463, 67, 723, 16, 1326, 18, 8830, 67, 529, 16, 1326, 18, 6464, 11985, 8176, 4117, 780, 2932, 6, 20349, 585, 18, 3067, 2932, 225, 618, 536, 738, 87, 2866, 1253, 3438, 9747, 82, 6, 738, 1326, 18, 8830, 67, 529, 13, 585, 18, 3067, 2932, 225, 3438, 14, 563, 273, 968, 1253, 1463, 32, 1253, 14, 34, 5621, 64, 82, 7923, 585, 18, 3067, 2932, 225, 380, 2088, 273, 374, 9747, 82, 7923, 1501, 67, 1080, 273, 1326, 18, 6464, 8176, 4117, 780, 2932, 7923, 8716, 273, 1408, 309, 562, 12, 3175, 67, 1080, 13, 405, 374, 30, 8716, 273, 3104, 315, 585, 18, 3067, 2932, 225, 4222, 67, 2122, 9, 87, 9275, 87, 9, 87, 2088, 67, 674, 81, 67, 350, 9334, 563, 67, 674, 81, 67, 3348, 10663, 64, 82, 6, 738, 261, 644, 18, 529, 16, 1501, 67, 1080, 16, 8716, 3719, 585, 18, 3067, 2932, 225, 24129, 5931, 5621, 64, 82, 7923, 585, 18, 3067, 2932, 225, 327, 380, 2088, 9747, 82, 7923, 585, 18, 3067, 2932, 6280, 82, 7923, 585, 18, 3067, 31458, 82, 7923, 469, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 9380, 67, 644, 273, 1326, 18, 967, 966, 2668, 11299, 67, 644, 6134, 309, 9380, 67, 644, 422, 599, 578, 9380, 67, 644, 422, 1053, 30, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 13, 18890, 82, 6, 738, 261, 644, 18, 2463, 67, 723, 16, 1326, 18, 8830, 67, 529, 16, 1326, 18, 6464, 11985, 8176, 4117, 780, 2932, 6, 20349, 585, 18, 3067, 2932, 225, 618, 536, 738, 87, 2866, 1253, 3438, 9747, 82, 6, 738, 1326, 18, 8830, 67, 529, 13, 585, 18, 3067, 2932, 225, 3438, 14, 563, 273, 968, 1253, 1463, 2 ]
height = 400; width = 400;
height = 360; width = 360;
def drawGraph(request, xStart=-180.0, yStart=-180.0, xEnd=180.0, yEnd=180.0, attribute='Observations', xProperty='phi', yProperty='psi', reference=None, residue=None, xBin=10, yBin=10): svg = SVG() x = 55; y = 45; height = 400; width = 400; hashsize = 10 #background svg.rect(x, y, width, height, 1, '#00fffff', '#222222'); #svg.rect(0, 0, width+90, height+90, 1, '#00fffff'); #svg.rect(x, y, width, height, 1, '#666666'); #border svg.rect(x, y, width, height, 1, '#000000'); #axis if xStart < 0 and xEnd > 0: xZero = (width/(xEnd-xStart)) * abs (xStart) svg.line( x+xZero, y, x+xZero, y+height, 1, '#666666'); if yStart < 0 and xEnd > 0: yZero = height+y - (height/(yEnd-yStart)) * abs (yStart) svg.line( x, yZero, x+width, yZero, 1, '#666666'); #hashes for i in range(9): hashx = x+(width/8.0)*i hashy = y+(height/8.0)*i svg.line( hashx, y+height, hashx, y+height+hashsize, 1, '#000000'); svg.line( x, hashy, x-hashsize, hashy, 1, '#000000'); #labels xstep = (xEnd - xStart) / 4 ystep = (yEnd - yStart) / 4 for i in range(5): xtext = xStart + xstep*i xhash = x+(width/4)*i-(2.5*len(str(xtext))) svg.text(xhash, y+height+hashsize*2+3, str(xtext),12) ytext = yEnd - ystep*i yhash = y+(height/4)*i+4 svg.text(x-5-(8*len(str(ytext))), yhash, str(ytext),12) #title text len1 = 220 - len(xProperty)*7/2 - len(xProperty)*7/2 len2 = 182 - len(attribute)*7/2 svg.text(len1,15, 'Plot of %s vs. %s' % (xProperty,yProperty), 12) svg.text(len2,35, 'Shading Based Off of %s' % attribute, 12) cdp = ConfDistPlot( 400, #height 400, #width 0, #Xpadding 0, #Ypadding x, #Xoffset y, #Yoffset xStart, #Xstart xEnd, #Xend yStart, #Ystart yEnd, #Yend xBin, #Xbin yBin, #Ybin xProperty, #X property yProperty, #Y property attribute, #property residue, #residue Index #reference request.session['search'].querySet() ) boxes = cdp.Plot() return (svg,boxes)
29369efcb698022e11c3c1503b781a33276d2219 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6163/29369efcb698022e11c3c1503b781a33276d2219/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4137, 12, 2293, 16, 619, 1685, 29711, 18278, 18, 20, 16, 677, 1685, 29711, 18278, 18, 20, 16, 619, 1638, 33, 18278, 18, 20, 16, 677, 1638, 33, 18278, 18, 20, 16, 1566, 2218, 26199, 1012, 2187, 619, 1396, 2218, 9973, 2187, 677, 1396, 2218, 24275, 2187, 2114, 33, 7036, 16, 14765, 33, 7036, 16, 619, 9913, 33, 2163, 16, 677, 9913, 33, 2163, 4672, 9804, 273, 11281, 1435, 225, 619, 273, 21483, 31, 677, 273, 12292, 31, 2072, 273, 12360, 31, 1835, 273, 12360, 31, 1651, 1467, 273, 1728, 225, 468, 9342, 9804, 18, 2607, 12, 92, 16, 677, 16, 1835, 16, 2072, 16, 404, 16, 2946, 713, 9460, 74, 2187, 2946, 3787, 3787, 3787, 8284, 468, 11451, 18, 2607, 12, 20, 16, 374, 16, 1835, 15, 9349, 16, 2072, 15, 9349, 16, 404, 16, 2946, 713, 9460, 74, 8284, 468, 11451, 18, 2607, 12, 92, 16, 677, 16, 1835, 16, 2072, 16, 404, 16, 2946, 31684, 6028, 8284, 225, 468, 8815, 9804, 18, 2607, 12, 92, 16, 677, 16, 1835, 16, 2072, 16, 404, 16, 2946, 9449, 8284, 225, 468, 4890, 309, 619, 1685, 411, 374, 471, 619, 1638, 405, 374, 30, 619, 7170, 273, 261, 2819, 19, 12, 92, 1638, 17, 92, 1685, 3719, 380, 2417, 261, 92, 1685, 13, 9804, 18, 1369, 12, 619, 15, 92, 7170, 16, 677, 16, 619, 15, 92, 7170, 16, 677, 15, 4210, 16, 404, 16, 2946, 31684, 6028, 8284, 225, 309, 677, 1685, 411, 374, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4137, 12, 2293, 16, 619, 1685, 29711, 18278, 18, 20, 16, 677, 1685, 29711, 18278, 18, 20, 16, 619, 1638, 33, 18278, 18, 20, 16, 677, 1638, 33, 18278, 18, 20, 16, 1566, 2218, 26199, 1012, 2187, 619, 1396, 2218, 9973, 2187, 677, 1396, 2218, 24275, 2187, 2114, 33, 7036, 16, 14765, 33, 7036, 16, 619, 9913, 33, 2163, 16, 677, 9913, 33, 2163, 4672, 9804, 273, 11281, 1435, 225, 619, 273, 21483, 31, 677, 273, 12292, 31, 2072, 273, 12360, 31, 1835, 273, 12360, 31, 1651, 1467, 273, 1728, 225, 468, 9342, 9804, 18, 2607, 12, 92, 16, 677, 16, 1835, 16, 2072, 16, 404, 16, 2946, 713, 9460, 74, 2187, 2946, 3787, 3787, 3787, 8284, 2 ]
if (ProxyUtil.findHTTPSProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported when UseSoapProtocol is set to 1') __connection = httplib.HTTPSConnection(Config.get_SSLHost(), cert_file = pr_cert_file, key_file = pr_key_file)
if (ProxyUtil.findHTTPSProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported when UseSoapProtocol is set to 1') __connection = httplib.HTTPSConnection(Config.get_SSLHost(), cert_file = pr_cert_file, key_file = pr_key_file)
def __connect(): global __connection global __connected global __connectionError global __certificateRejected global __connectionRetries global __retryDelay global __last_retry_time #__connectionError = True #return __connected if __connectionError: __disconnect() __connectionError = False if __connectionRetries > MaxConnectionRetries: current_time = time.time() if not __last_retry_time: # Set time but do not reset failures __last_retry_time = current_time return __connected; if (current_time - __last_retry_time) > __retryDelay: __last_retry_time = current_time DebugPrint(1, "Retry connection after ", __retryDelay, "s") __retryDelay = __retryDelay * __backoff_factor if __retryDelay > __maximumDelay: __retryDelay = __maximumDelay __connectionRetries = 0 __connectionRetries = __connectionRetries + 1 if (not __connected) and (__connectionRetries <= MaxConnectionRetries): if Config.get_UseSSL() == 0 and Config.get_UseSoapProtocol() == 1: if (ProxyUtil.findHTTPProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported') __connection = httplib.HTTP(Config.get_SOAPHost()) DebugPrint(1, 'Connected via HTTP to: ' + Config.get_SOAPHost()) #print "Using SOAP protocol" elif Config.get_UseSSL() == 0 and Config.get_UseSoapProtocol() == 0: try: if (ProxyUtil.findHTTPProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported') #__connection = ProxyUtil.HTTPConnection(Config.get_SOAPHost(), # http_proxy = ProxyUtil.findHTTPProxy()) __connection = httplib.HTTPConnection(Config.get_SOAPHost()) except Exception, e: DebugPrint(0, "ERROR: could not initialize HTTP connection") DebugPrintTraceback() __connectionError = True return __connected try: DebugPrint(4, "DEBUG: Connect") __connection.connect() DebugPrint(4, "DEBUG: Connect: OK") except Exception, e: DebugPrint(4, "DEBUG: Connect: FAILED") DebugPrint(0, "Error: While trying to connect to HTTP, caught exception " + str(e)) DebugPrintTraceback() __connectionError = True return __connected DebugPrint(1,"Connection via HTTP to: " + Config.get_SOAPHost()) #print "Using POST protocol" else: # assert(Config.get_UseSSL() == 1) if Config.get_UseGratiaCertificates() == 0: pr_cert_file = Config.get_CertificateFile() pr_key_file = Config.get_KeyFile() else: pr_cert_file = Config.get_GratiaCertificateFile() pr_key_file = Config.get_GratiaKeyFile() if (pr_cert_file == None): DebugPrint(0, "Error: While trying to connect to HTTPS, no valid local certificate.") __connectionError = True return __connected DebugPrint(4, "DEBUG: Attempting to connect to HTTPS") try: if (ProxyUtil.findHTTPSProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported when UseSoapProtocol is set to 1') #__connection = ProxyUtil.HTTPSConnection(Config.get_SSLHost(), # cert_file = pr_cert_file, # key_file = pr_key_file, # http_proxy = ProxyUtil.findHTTPSProxy()) __connection = httplib.HTTPSConnection(Config.get_SSLHost(), cert_file = pr_cert_file, key_file = pr_key_file) except Exception, e: DebugPrint(0, "ERROR: could not initialize HTTPS connection") DebugPrintTraceback() __connectionError = True return __connected try: DebugPrint(4, "DEBUG: Connect") __connection.connect() DebugPrint(4, "DEBUG: Connect: OK") except Exception, e: DebugPrint(4, "DEBUG: Connect: FAILED") DebugPrint(0, "Error: While trying to connect to HTTPS, caught exception " + str(e)) DebugPrintTraceback() __connectionError = True return __connected DebugPrint(1, "Connected via HTTPS to: " + Config.get_SSLHost()) #print "Using SSL protocol" # Successful DebugPrint(4, "DEBUG: Connection SUCCESS") __connected = True # Reset connection retry count to 0 and the retry delay to its initial value __connectionRetries = 0 __retryDelay = __initialDelay return __connected
637869f92a8322c20ea53836dc7393fc485f077a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/637869f92a8322c20ea53836dc7393fc485f077a/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3612, 13332, 2552, 1001, 4071, 2552, 1001, 8537, 2552, 1001, 4071, 668, 2552, 1001, 14108, 19902, 2552, 1001, 4071, 13656, 2552, 1001, 9620, 6763, 2552, 1001, 2722, 67, 9620, 67, 957, 225, 468, 972, 4071, 668, 273, 1053, 468, 2463, 1001, 8537, 225, 309, 1001, 4071, 668, 30, 1001, 20177, 1435, 1001, 4071, 668, 273, 1083, 309, 1001, 4071, 13656, 405, 4238, 1952, 13656, 30, 783, 67, 957, 273, 813, 18, 957, 1435, 309, 486, 1001, 2722, 67, 9620, 67, 957, 30, 468, 1000, 813, 1496, 741, 486, 2715, 11720, 1001, 2722, 67, 9620, 67, 957, 273, 783, 67, 957, 327, 1001, 8537, 31, 309, 261, 2972, 67, 957, 300, 1001, 2722, 67, 9620, 67, 957, 13, 405, 1001, 9620, 6763, 30, 1001, 2722, 67, 9620, 67, 957, 273, 783, 67, 957, 4015, 5108, 12, 21, 16, 315, 7539, 1459, 1839, 3104, 1001, 9620, 6763, 16, 315, 87, 7923, 1001, 9620, 6763, 273, 1001, 9620, 6763, 380, 1001, 823, 3674, 67, 6812, 309, 1001, 9620, 6763, 405, 1001, 15724, 6763, 30, 1001, 9620, 6763, 273, 1001, 15724, 6763, 1001, 4071, 13656, 273, 374, 1001, 4071, 13656, 273, 1001, 4071, 13656, 397, 404, 225, 309, 261, 902, 1001, 8537, 13, 471, 261, 972, 4071, 13656, 1648, 4238, 1952, 13656, 4672, 309, 1903, 18, 588, 67, 3727, 6745, 1435, 422, 374, 471, 1903, 18, 588, 67, 3727, 20601, 5752, 1435, 422, 404, 30, 309, 261, 3886, 1304, 18, 4720, 3693, 3886, 1435, 4672, 4015, 5108, 12, 20, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3612, 13332, 2552, 1001, 4071, 2552, 1001, 8537, 2552, 1001, 4071, 668, 2552, 1001, 14108, 19902, 2552, 1001, 4071, 13656, 2552, 1001, 9620, 6763, 2552, 1001, 2722, 67, 9620, 67, 957, 225, 468, 972, 4071, 668, 273, 1053, 468, 2463, 1001, 8537, 225, 309, 1001, 4071, 668, 30, 1001, 20177, 1435, 1001, 4071, 668, 273, 1083, 309, 1001, 4071, 13656, 405, 4238, 1952, 13656, 30, 783, 67, 957, 273, 813, 18, 957, 1435, 309, 486, 1001, 2722, 67, 9620, 67, 957, 30, 468, 1000, 813, 1496, 741, 486, 2715, 11720, 1001, 2722, 67, 9620, 67, 957, 273, 783, 67, 957, 327, 1001, 8537, 31, 309, 261, 2972, 67, 957, 300, 1001, 2722, 67, 9620, 67, 957, 13, 2 ]
op1.int.reverse() op2.int.reverse()
def __add__(self, other, context=None): """Returns self + other.
636a6b100fe6083388bc5315758326078abe65b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/636a6b100fe6083388bc5315758326078abe65b4/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -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, -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, -100, -100, -100, -100 ]
n_mat=int(v1[1])
n_mat=int(v1[1].rstrip(";"))
def load_msh(filename,orbiterpath,convert_coords): '''Read MSH file''' print("filepath=",filename,"orbiterpath=",orbiterpath) file=open(filename,"r") s=file.readline(); if s!='MSHX1\n': print("This file is not orbiter mesh: ",s) return else: print("Orbiter mesh format detected ") n_groups=0 #N of groups from header n_materials=0 #N of mats from header n_textures=0 #N of texs from header n_grp=0 #real N of groups mat=[] #mats in group (int) tex=[] #texs in group (int) groups=[] #groups description [label(str),mat(int),tex(int),nv(int),nt(int),obj(bpy.data.object)] materials=[] #materials description [name,[diff RGBA],[amb RGBA],[spec RGBAP],[emit RGBA]] textures=[] #[texture filename, texture name] while True: s=file.readline() if s=='': break; v=s.split() #print (v) #------Reading GROUPS section------------- if v[0]=="GROUPS": print("Reading groups:") n_groups=int(v[1]); n_mat=0; n_tex=0 #group material and texture label="" while n_grp<n_groups: s1=file.readline(); v1=s1.split() #if v1[0]=="NONORMAL": # print("NONORMAL!") if v1[0]=="LABEL": label=v1[1] if v1[0]=="MATERIAL": n_mat=int(v1[1]) #1..n if v1[0]=="TEXTURE": n_tex=int(v1[1]) #1..n #Reading geometry if v1[0]=="GEOM": vtx=[] tri=[] norm=[] uv=[] nv=int(v1[1]) nt=int(v1[2]) #print ("Group No:",n_grp," verts=",nv," tris=",nt) for n in range(nv): s2=file.readline(); v2=s2.split(); #print(v2); if convert_coords: vtx.append([-float(v2[0]),-float(v2[2]),float(v2[1])])# convert from left-handed coord system else: vtx.append([float(v2[0]),float(v2[1]),float(v2[2])]) #without conversion if len(v2)>5: #there are normals (not vtx+uvs only) #should I convert the normals? norm.append([float(v2[3]),float(v2[4]),float(v2[5])]) if len(v2)==8: #there are normals and uvs if convert_coords: #in Blender, (0,0) is the upper-left corner. #in Orbiter -- lower-left corner. So I must invert V axis uv.append([float(v2[6]),1.0-float(v2[7])]) else: uv.append([float(v2[6]),float(v2[7])]) elif len(v2)==5: #there are only uvs if convert_coords: uv.append([float(v2[3]),1.0-float(v2[4])]) else: uv.append([float(v2[3]),float(v2[4])]) for n in range(nt): #read triangles s2=file.readline(); v2=s2.split(); if convert_coords: tri.append([int(v2[0]),int(v2[2]),int(v2[1])]) #reverted triangle else: tri.append([int(v2[0]),int(v2[1]),int(v2[2])]) #non reverted triangle #print (vtx) #print(norm) n_grp=n_grp+1; if label=='': label="ORBGroup"+str(n_grp) obj=create_mesh(label,vtx,tri,norm,uv) if n_mat!=0: mat.append(n_mat) if n_tex!=0: tex.append(n_tex) groups.append([label,n_mat,n_tex,nv,nt,obj]) label="" #--------------Reading MATERIALS section----------------------- elif v[0]=="MATERIALS": n_materials=int(v[1]) print("-------Reading Materials section,nmats=",n_materials,"------------") #material names for i in range (n_materials): materials.append([file.readline().strip()]) #material properties for i in range (n_materials): file.readline(); # TODO: name checking for n in range(4): s1=file.readline() v1=s1.split() print("Reading material component,n=",n," comp=",v1) if (n==2)and(len(v1)==5): #Specular,5 components materials[i].append([float(v1[0]),float(v1[1]),float(v1[2]),float(v1[3]),float(v1[4])]) else: #Other, 4 components materials[i].append([float(v1[0]),float(v1[1]),float(v1[2]),float(v1[3])]) #---------------Reading TEXTURES section------------------ elif v[0]=="TEXTURES": n_textures=int(v[1]); for i in range(n_textures): textures.append([file.readline().strip(),"ORBTexture"+str(i)]) print(""); print("==========================Summary===========================================") print("Headers: groups=",n_groups," materials=",n_materials," textures=",n_textures) print("\nData:\nGroups:") print(groups,"\nReal No=",len(groups)) print("Materials:",materials) print("Textures:",textures) print("Materials in groups:",mat) print("Textures in groups:",tex) #file file.close() create_materials(groups,materials,textures,orbiterpath) return{"FINISHED"}
a742957b6ee3c17a1d5ddaf38dbe115cb0e00154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/a742957b6ee3c17a1d5ddaf38dbe115cb0e00154/io_import_msh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 674, 12, 3459, 16, 16640, 2165, 803, 16, 6283, 67, 9076, 4672, 9163, 1994, 490, 2664, 585, 26418, 1172, 2932, 10561, 1546, 16, 3459, 10837, 16640, 2165, 803, 1546, 16, 16640, 2165, 803, 13, 225, 585, 33, 3190, 12, 3459, 10837, 86, 7923, 272, 33, 768, 18, 896, 1369, 5621, 309, 272, 5, 2218, 49, 2664, 60, 21, 64, 82, 4278, 1172, 2932, 2503, 585, 353, 486, 16823, 2165, 6986, 30, 3104, 87, 13, 327, 469, 30, 1172, 2932, 1162, 70, 2165, 6986, 740, 8316, 9369, 290, 67, 4650, 33, 20, 225, 468, 50, 434, 3252, 628, 1446, 290, 67, 20542, 87, 33, 20, 282, 468, 50, 434, 312, 2323, 628, 1446, 290, 67, 955, 1823, 33, 20, 565, 468, 50, 434, 16573, 87, 628, 1446, 290, 67, 17532, 33, 20, 540, 468, 7688, 423, 434, 3252, 4834, 33, 8526, 1850, 468, 81, 2323, 316, 1041, 261, 474, 13, 16573, 33, 8526, 1850, 468, 21763, 87, 316, 1041, 261, 474, 13, 3252, 33, 8526, 4202, 468, 4650, 2477, 306, 1925, 12, 701, 3631, 7373, 12, 474, 3631, 21763, 12, 474, 3631, 16588, 12, 474, 3631, 496, 12, 474, 3631, 2603, 12, 70, 2074, 18, 892, 18, 1612, 25887, 31824, 33, 8526, 565, 468, 20542, 87, 2477, 306, 529, 16, 63, 5413, 23308, 6487, 63, 2536, 23308, 6487, 63, 2793, 11510, 2203, 6487, 63, 18356, 23308, 13563, 977, 1823, 33, 8526, 377, 468, 63, 955, 594, 1544, 16, 11428, 508, 65, 1323, 1053, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 674, 12, 3459, 16, 16640, 2165, 803, 16, 6283, 67, 9076, 4672, 9163, 1994, 490, 2664, 585, 26418, 1172, 2932, 10561, 1546, 16, 3459, 10837, 16640, 2165, 803, 1546, 16, 16640, 2165, 803, 13, 225, 585, 33, 3190, 12, 3459, 10837, 86, 7923, 272, 33, 768, 18, 896, 1369, 5621, 309, 272, 5, 2218, 49, 2664, 60, 21, 64, 82, 4278, 1172, 2932, 2503, 585, 353, 486, 16823, 2165, 6986, 30, 3104, 87, 13, 327, 469, 30, 1172, 2932, 1162, 70, 2165, 6986, 740, 8316, 9369, 290, 67, 4650, 33, 20, 225, 468, 50, 434, 3252, 628, 1446, 290, 67, 20542, 87, 33, 20, 282, 468, 50, 434, 312, 2323, 628, 1446, 290, 67, 955, 2 ]
t_movies[field] = letters_only( item[ int(self.import_table[field]) ] )
t_movies[field] = letters_only(item[int(self.import_table[field])])
def get_movie_details(self): try: item = self.data.next() except: return None if item is None: return None import copy # start with the right line self.current_csv_row += 1 if self.current_csv_row < self.start_row: return None # assign the keys t_movies = copy.deepcopy(self.import_table)
8dd23db0ad40a315c4c2431088bf2a98189408a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2687/8dd23db0ad40a315c4c2431088bf2a98189408a8/CSV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8683, 13120, 67, 6395, 12, 2890, 4672, 775, 30, 761, 273, 365, 18, 892, 18, 4285, 1435, 1335, 30, 327, 599, 309, 761, 353, 599, 30, 327, 599, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 8683, 13120, 67, 6395, 12, 2890, 4672, 775, 30, 761, 273, 365, 18, 892, 18, 4285, 1435, 1335, 30, 327, 599, 309, 761, 353, 599, 30, 327, 599, 1930, 1610, 468, 787, 598, 326, 2145, 980, 365, 18, 2972, 67, 6715, 67, 492, 1011, 404, 309, 365, 18, 2972, 67, 6715, 67, 492, 411, 365, 18, 1937, 67, 492, 30, 327, 599, 225, 468, 2683, 326, 1311, 268, 67, 8683, 29028, 273, 1610, 18, 16589, 3530, 12, 2890, 18, 5666, 67, 2121, 13, 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, -100, -100, -100, -100, -100, -100 ]
self.settingstable.attach(self.sliderdict[property.name], 1, 2, count, count+1)
self.settingstable.attach(self.sliderdict[property.name], 1, 2, count, count+1, gtk.FILL|gtk.EXPAND)
def OnEffectSetting(self, button): """ Show a dialog filled with settings sliders for a specific effect """ # TODO: Make this modal or as part of the effects window"""
298ee9df5d7e5e17445283747f69502114e8e577 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/298ee9df5d7e5e17445283747f69502114e8e577/InstrumentEffectsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 12477, 5568, 12, 2890, 16, 3568, 4672, 3536, 9674, 279, 6176, 6300, 598, 1947, 2020, 24290, 364, 279, 2923, 5426, 3536, 225, 468, 2660, 30, 4344, 333, 13010, 578, 487, 1087, 434, 326, 16605, 2742, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 12477, 5568, 12, 2890, 16, 3568, 4672, 3536, 9674, 279, 6176, 6300, 598, 1947, 2020, 24290, 364, 279, 2923, 5426, 3536, 225, 468, 2660, 30, 4344, 333, 13010, 578, 487, 1087, 434, 326, 16605, 2742, 8395, 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, -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, -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 ]
all: examples.xml index.html
rebuild: examples.xml index.html
def dump_Makefile(): for file in glob.glob('*.xml'): extras.append(file) for file in glob.glob('*.out'): extras.append(file) Makefile="""# Beware this is autogenerated by index.py
f2a1283564df8ded1942b231c60c3a7ae4ff748a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/f2a1283564df8ded1942b231c60c3a7ae4ff748a/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 6464, 768, 13332, 364, 585, 316, 4715, 18, 10581, 2668, 11146, 2902, 11, 4672, 11875, 18, 6923, 12, 768, 13, 364, 585, 316, 4715, 18, 10581, 2668, 11146, 659, 11, 4672, 11875, 18, 6923, 12, 768, 13, 4344, 768, 1546, 3660, 7, 605, 359, 834, 333, 353, 7840, 635, 770, 18, 2074, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4657, 67, 6464, 768, 13332, 364, 585, 316, 4715, 18, 10581, 2668, 11146, 2902, 11, 4672, 11875, 18, 6923, 12, 768, 13, 364, 585, 316, 4715, 18, 10581, 2668, 11146, 659, 11, 4672, 11875, 18, 6923, 12, 768, 13, 4344, 768, 1546, 3660, 7, 605, 359, 834, 333, 353, 7840, 635, 770, 18, 2074, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue'
print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue"
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "Bugzilla MySQL('%s':'%s':'%s':'%s'): connecting..." % (_db, _host, _user, _password) mysql_con = MySQLdb.connect(host=_host, user=_user, passwd=_password, db=_db, compress=1, cursorclass=MySQLdb.cursors.DictCursor) mysql_cur = mysql_con.cursor() # init Trac environment print "Trac SQLite('%s'): connecting..." % (_env) trac = TracDatabase(_env) # force mode... if _force == 1: print "cleaning all tickets..." c = trac.db().cursor() c.execute("""DELETE FROM ticket_change""") trac.db().commit() c.execute("""DELETE FROM ticket""") trac.db().commit() c.execute("""DELETE FROM attachment""") os.system('rm -rf %s' % trac.env.get_attachments_dir()) os.mkdir(trac.env.get_attachments_dir()) trac.db().commit() print print "1. import severities..." severities = (('blocker', '1'), ('critical', '2'), ('major', '3'), ('normal', '4'), ('minor', '5'), ('trivial', '6'), ('enhancement', '7')) trac.setSeverityList(severities) print print "2. import components..." sql = "SELECT value, initialowner AS owner FROM components" if PRODUCTS: sql += " WHERE %s" % productFilter('program', PRODUCTS) mysql_cur.execute(sql) components = mysql_cur.fetchall() for component in components: component['owner'] = trac.getLoginName(mysql_cur, component['owner']) trac.setComponentList(components, 'value') print print "3. import priorities..." priorities = (('P1', '1'), ('P2', '2'), ('P3', '3'), ('P4', '4'), ('P5', '5')) trac.setPriorityList(priorities) print print "4. import versions..." sql = "SELECT DISTINCTROW value FROM versions" if PRODUCTS: sql += " WHERE %s" % productFilter('program', PRODUCTS) mysql_cur.execute(sql) versions = mysql_cur.fetchall() trac.setVersionList(versions, 'value') print print "5. import milestones..." mysql_cur.execute("SELECT value FROM milestones") milestones = mysql_cur.fetchall() if milestones[0] == '---': trac.setMilestoneList(milestones, 'value') else: trac.setMilestoneList([], '') print print '6. retrieving bugs...' sql = "SELECT * FROM bugs " if PRODUCTS: sql += " WHERE %s" % productFilter('product', PRODUCTS) sql += " ORDER BY bug_id" mysql_cur.execute(sql) bugs = mysql_cur.fetchall() print print "7. import bugs and bug activity..." for bug in bugs: bugid = bug['bug_id'] ticket = {} keywords = [] ticket['id'] = bugid ticket['time'] = bug['creation_ts'] ticket['changetime'] = bug['delta_ts'] ticket['component'] = bug['component'] ticket['severity'] = bug['bug_severity'] ticket['priority'] = bug['priority'] ticket['owner'] = trac.getLoginName(mysql_cur, bug['assigned_to']) ticket['reporter'] = trac.getLoginName(mysql_cur, bug['reporter']) mysql_cur.execute("SELECT * FROM cc WHERE bug_id = %s" % bugid) cc_records = mysql_cur.fetchall() cc_list = [] for cc in cc_records: cc_list.append(trac.getLoginName(mysql_cur, cc['who'])) ticket['cc'] = string.join(cc_list, ', ') ticket['version'] = bug['version'] if bug['target_milestone'] == '---': ticket['milestone'] = '' else: ticket['milestone'] = bug['target_milestone'] bug_status = bug['bug_status'].lower() ticket['status'] = statusXlator[bug_status] ticket['resolution'] = bug['resolution'].lower() # a bit of extra work to do open tickets if bug_status == 'open': if owner != '': ticket['status'] = 'assigned' else: ticket['status'] = 'new' ticket['summary'] = bug['short_desc'] keywords = string.split(bug['keywords'], ' ') mysql_cur.execute("SELECT * FROM longdescs WHERE bug_id = %s" % bugid) longdescs = list(mysql_cur.fetchall()) # check for empty 'longdescs[0]' field... if len(longdescs) == 0: ticket['description'] = '' else: ticket['description'] = longdescs[0]['thetext'] del longdescs[0] for desc in longdescs: ignore = False for comment in IGNORE_COMMENTS: if re.match(comment, desc['thetext']): ignore = True if ignore: continue trac.addTicketComment(ticket=bugid, time=desc['bug_when'], author=trac.getLoginName(mysql_cur, desc['who']), value=desc['thetext']) mysql_cur.execute("SELECT * FROM bugs_activity WHERE bug_id = %s ORDER BY bug_when" % bugid) bugs_activity = mysql_cur.fetchall() resolution = '' ticketChanges = [] for activity in bugs_activity: field_name = trac.getFieldName(mysql_cur, activity['fieldid']).lower() removed = activity[activityFields['removed']] added = activity[activityFields['added']] # statuses and resolutions are in lowercase in trac if field_name == 'resolution' or field_name == 'bug_status': removed = removed.lower() added = added.lower() # remember most recent resolution, we need this later if field_name == 'resolution': resolution = added.lower() keywordChange = False oldKeywords = string.join(keywords, " ") # convert bugzilla field names... if field_name == 'bug_severity': field_name = 'severity' elif field_name == 'assigned_to': field_name = 'owner' elif field_name == 'bug_status': field_name = 'status' if removed in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[removed] if kw in keywords: keywords.remove(kw) else: oldKeywords = string.join(keywords + [ kw ], " ") keywordChange = True if added in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[added] keywords.append(kw) keywordChange = True added = statusXlator[added] removed = statusXlator[removed] elif field_name == 'short_desc': field_name = 'summary' elif field_name == 'product': if removed in PRODUCT_KEYWORDS: kw = PRODUCT_KEYWORDS[removed] if kw in keywords: keywords.remove(kw) else: oldKeywords = string.join(keywords + [ kw ], " ") keywordChange = True if added in PRODUCT_KEYWORDS: kw = PRODUCT_KEYWORDS[added] keywords.append(kw) keywordChange = True ticketChange = {} ticketChange['ticket'] = bugid ticketChange['time'] = activity['bug_when'] ticketChange['author'] = trac.getLoginName(mysql_cur, activity['who']) ticketChange['field'] = field_name ticketChange['oldvalue'] = removed ticketChange['newvalue'] = added if keywordChange: newKeywords = string.join(keywords, " ") ticketChangeKw = ticketChange ticketChangeKw['field'] = 'keywords' ticketChangeKw['oldvalue'] = oldKeywords ticketChangeKw['newvalue'] = newKeywords #trac.addTicketChange(ticket=bugid, time=activity['bug_when'], # author=trac.getLoginName(mysql_cur, activity['who']), # field='keywords', oldvalue=oldKeywords, newvalue=newKeywords) ticketChanges.append(ticketChangeKw) if field_name in IGNORED_ACTIVITY_FIELDS: continue # skip changes that have no effect (think translation!) if added == removed: continue # bugzilla splits large summary changes into two records for oldChange in ticketChanges: if (field_name == 'summary' and oldChange['field'] == ticketChange['field'] and oldChange['time'] == ticketChange['time'] and oldChange['author'] == ticketChange['author']): oldChange['oldvalue'] += " " + ticketChange['oldvalue'] oldChange['newvalue'] += " " + ticketChange['newvalue'] break else: #trac.addTicketChange(ticket=bugid, time=activity['bug_when'], # author=trac.getLoginName(mysql_cur, activity['who']), # field=field_name, oldvalue=removed, newvalue=added) ticketChanges.append (ticketChange) for ticketChange in ticketChanges: trac.addTicketChange (**ticketChange) # for some reason, bugzilla v2.11 seems to clear the resolution # when you mark a bug as closed. let's remember it and restore # it if the ticket is closed but there's no resolution. if not ticket['resolution'] and ticket['status'] == 'closed': ticket['resolution'] = resolution if bug['bug_status'] in STATUS_KEYWORDS: kw = STATUS_KEYWORDS[bug['bug_status']] # may have already been added during activity import if kw not in keywords: keywords.append(kw) if bug['product'] in PRODUCT_KEYWORDS: kw = PRODUCT_KEYWORDS[bug['product']] # may have already been added during activity import if kw not in keywords: keywords.append(kw) mysql_cur.execute("SELECT * FROM attachments WHERE bug_id = %s" % bugid) attachments = mysql_cur.fetchall() for a in attachments: author = trac.getLoginName(mysql_cur, a['submitter_id']) tracAttachment = Attachment(a['filename'], a['thedata']) trac.addAttachment(bugid, tracAttachment, a['description'], author) ticket['keywords'] = string.join(keywords) ticketid = trac.addTicket(**ticket) print "Success!"
d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/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, 1172, 315, 7736, 16907, 15990, 331, 9, 87, 1963, 1199, 738, 605, 62, 67, 5757, 309, 605, 62, 67, 5757, 422, 9035, 2163, 30, 5728, 2314, 3292, 14923, 3546, 273, 315, 1673, 1132, 6, 5728, 2314, 3292, 9665, 3546, 273, 315, 2704, 1132, 6, 225, 468, 1208, 16907, 15990, 3330, 1172, 315, 19865, 15990, 13485, 29909, 87, 11, 2497, 9, 87, 11, 2497, 9, 87, 11, 2497, 9, 87, 11, 4672, 14244, 7070, 738, 261, 67, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 13, 7219, 67, 591, 273, 13485, 1966, 18, 3612, 12, 2564, 33, 67, 2564, 16, 729, 33, 67, 1355, 16, 19093, 33, 67, 3664, 16, 1319, 33, 67, 1966, 16, 8099, 33, 21, 16, 3347, 1106, 33, 28723, 1966, 18, 2789, 1383, 18, 5014, 6688, 13, 7219, 67, 1397, 273, 7219, 67, 591, 18, 9216, 1435, 225, 468, 1208, 2197, 71, 3330, 1172, 315, 1609, 71, 16192, 29909, 87, 11, 4672, 14244, 7070, 738, 261, 67, 3074, 13, 1284, 71, 273, 2197, 71, 4254, 24899, 3074, 13, 225, 468, 2944, 1965, 2777, 309, 389, 5734, 422, 404, 30, 1172, 315, 6200, 310, 777, 24475, 7070, 276, 273, 1284, 71, 18, 1966, 7675, 9216, 1435, 276, 18, 8837, 2932, 3660, 6460, 4571, 9322, 67, 3427, 3660, 7923, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 315, 7736, 16907, 15990, 331, 9, 87, 1963, 1199, 738, 605, 62, 67, 5757, 309, 605, 62, 67, 5757, 422, 9035, 2163, 30, 5728, 2314, 3292, 14923, 3546, 273, 315, 1673, 1132, 6, 5728, 2314, 3292, 9665, 3546, 273, 315, 2704, 1132, 6, 225, 468, 1208, 16907, 15990, 3330, 1172, 315, 19865, 15990, 13485, 29909, 87, 11, 2497, 9, 87, 11, 2497, 9, 87, 11, 2497, 9, 87, 11, 4672, 14244, 7070, 738, 261, 67, 1966, 16, 389, 2564, 16, 389, 1355, 16, 2 ]
def __init__( self, hmmName, hmmdb, verbose=1, **kw ):
def __init__( self, hmmName, hmmdb, **kw ):
def __init__( self, hmmName, hmmdb, verbose=1, **kw ): """ @param hmmName: hmm profile name @type hmmName: str @param hmmdb: Pfam hmm database @type hmmdb: str """ self.hmmName = hmmName
532a977b37e0744945827ba27e3f206f4854f2fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/532a977b37e0744945827ba27e3f206f4854f2fc/Hmmer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 366, 7020, 461, 16, 16349, 27574, 16, 2826, 9987, 262, 30, 3536, 632, 891, 366, 7020, 461, 30, 366, 7020, 3042, 508, 632, 723, 225, 366, 7020, 461, 30, 609, 632, 891, 16349, 27574, 30, 453, 74, 301, 366, 7020, 2063, 632, 723, 225, 16349, 27574, 30, 609, 3536, 365, 18, 76, 7020, 461, 273, 366, 7020, 461, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 366, 7020, 461, 16, 16349, 27574, 16, 2826, 9987, 262, 30, 3536, 632, 891, 366, 7020, 461, 30, 366, 7020, 3042, 508, 632, 723, 225, 366, 7020, 461, 30, 609, 632, 891, 16349, 27574, 30, 453, 74, 301, 366, 7020, 2063, 632, 723, 225, 16349, 27574, 30, 609, 3536, 365, 18, 76, 7020, 461, 273, 366, 7020, 461, 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, -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 ]
self.root = None
self.root = self.prefix = None
def initialize_options(self): self.zip_ok = None self.install_dir = self.script_dir = self.exclude_scripts = None self.index_url = None self.find_links = None self.build_directory = None self.args = None self.optimize = self.record = None self.upgrade = self.always_copy = self.multi_version = None self.editable = self.no_deps = self.allow_hosts = None self.root = None
7057a529d083522066a6d8706e669627ec11bcf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/7057a529d083522066a6d8706e669627ec11bcf9/easy_install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 2116, 12, 2890, 4672, 365, 18, 4450, 67, 601, 273, 599, 365, 18, 5425, 67, 1214, 273, 365, 18, 4263, 67, 1214, 273, 365, 18, 10157, 67, 12827, 273, 599, 365, 18, 1615, 67, 718, 273, 599, 365, 18, 4720, 67, 7135, 273, 599, 365, 18, 3510, 67, 5149, 273, 599, 365, 18, 1968, 273, 599, 365, 18, 29155, 273, 365, 18, 3366, 273, 599, 365, 18, 15097, 273, 365, 18, 17737, 67, 3530, 273, 365, 18, 7027, 67, 1589, 273, 599, 365, 18, 19653, 273, 365, 18, 2135, 67, 14877, 273, 365, 18, 5965, 67, 11588, 273, 599, 365, 18, 3085, 273, 599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 22398, 316, 326, 981, 30, 1652, 4046, 67, 2116, 12, 2890, 4672, 365, 18, 4450, 67, 601, 273, 599, 365, 18, 5425, 67, 1214, 273, 365, 18, 4263, 67, 1214, 273, 365, 18, 10157, 67, 12827, 273, 599, 365, 18, 1615, 67, 718, 273, 599, 365, 18, 4720, 67, 7135, 273, 599, 365, 18, 3510, 67, 5149, 273, 599, 365, 18, 1968, 273, 599, 365, 18, 29155, 273, 365, 18, 3366, 273, 599, 365, 18, 15097, 273, 365, 18, 17737, 67, 3530, 273, 365, 18, 7027, 67, 1589, 273, 599, 365, 18, 19653, 273, 365, 18, 2135, 67, 14877, 273, 365, 18, 5965, 67, 11588, 273, 599, 365, 18, 3085, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.runApiData(classList) elif trigger == "copy-resources": self.runResources(classList)
self.runApiData(classListProducer)
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
68e5b9fa3d83b95f5606b31661a65c2f8fae1008 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/68e5b9fa3d83b95f5606b31661a65c2f8fae1008/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 9356, 966, 12, 8688, 694, 2578, 16, 12935, 16, 5437, 2785, 16, 5437, 751, 4672, 309, 562, 12, 8688, 2785, 13, 411, 576, 30, 225, 468, 1338, 613, 1347, 1898, 2353, 404, 444, 327, 5437, 1585, 273, 4143, 1977, 18, 13302, 1121, 12, 15886, 16, 15735, 67, 9184, 33, 8381, 13, 365, 6315, 8698, 18, 1978, 2932, 7798, 5437, 444, 738, 87, 5258, 87, 6, 738, 261, 8688, 694, 2578, 15, 21, 16, 562, 12, 8688, 2785, 20349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1172, 9356, 966, 12, 8688, 694, 2578, 16, 12935, 16, 5437, 2785, 16, 5437, 751, 4672, 309, 562, 12, 8688, 2785, 13, 411, 576, 30, 225, 468, 1338, 613, 1347, 1898, 2353, 404, 444, 327, 5437, 1585, 273, 4143, 1977, 18, 13302, 1121, 12, 15886, 16, 15735, 67, 9184, 33, 8381, 13, 365, 6315, 8698, 18, 1978, 2932, 7798, 5437, 444, 738, 87, 5258, 87, 6, 738, 261, 8688, 694, 2578, 15, 21, 16, 562, 12, 8688, 2785, 20349, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for file in files: if os.path.exists(file): yield file
for filename in files: if os.path.exists(filename): yield filename
def list_files(self): files = [] # browser cache if self.options["cache"][1]: dirs = glob.glob(os.path.expanduser("~/.gnome2/epiphany/mozilla/epiphany/Cache/")) dirs += glob.glob(os.path.expanduser("~/.gnome2/epiphany/favicon_cache/")) for dirname in dirs: for filename in FileUtilities.children_in_directory(dirname, False): yield filename files += [ os.path.expanduser("~/.gnome2/epiphany/ephy-favicon-cache.xml") ]
737a941d1a6026b292895c42a857f9ec0bf05cea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/737a941d1a6026b292895c42a857f9ec0bf05cea/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 1390, 273, 5378, 468, 4748, 1247, 309, 365, 18, 2116, 9614, 2493, 6, 6362, 21, 14542, 7717, 273, 4715, 18, 10581, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1600, 1742, 22, 19, 881, 16045, 2273, 19, 8683, 15990, 19, 881, 16045, 2273, 19, 1649, 4898, 3719, 7717, 1011, 4715, 18, 10581, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1600, 1742, 22, 19, 881, 16045, 2273, 19, 19731, 3950, 67, 2493, 4898, 3719, 364, 4283, 316, 7717, 30, 364, 1544, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, 12, 12287, 16, 1083, 4672, 2824, 1544, 1390, 1011, 306, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1600, 1742, 22, 19, 881, 16045, 2273, 19, 73, 844, 93, 17, 19731, 3950, 17, 2493, 18, 2902, 7923, 308, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 666, 67, 2354, 12, 2890, 4672, 1390, 273, 5378, 468, 4748, 1247, 309, 365, 18, 2116, 9614, 2493, 6, 6362, 21, 14542, 7717, 273, 4715, 18, 10581, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1600, 1742, 22, 19, 881, 16045, 2273, 19, 8683, 15990, 19, 881, 16045, 2273, 19, 1649, 4898, 3719, 7717, 1011, 4715, 18, 10581, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1600, 1742, 22, 19, 881, 16045, 2273, 19, 19731, 3950, 67, 2493, 4898, 3719, 364, 4283, 316, 7717, 30, 364, 1544, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, 12, 12287, 16, 1083, 4672, 2824, 1544, 1390, 1011, 306, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 2 ]
not shown. (type=C{boolean}) - C{index_parameters}: Whether or not to include function
not shown. @type index_parameters: C{boolean} @keyword index_parameters: Whether or not to include function
def __init__(self, docmap, **kwargs): """ Construct a new HTML formatter, using the given documentation map. @param docmap: The documentation to output. @type docmap: L{DocMap} @param kwargs: Keyword arguments: - C{prj_name}: The name of the project. Defaults to none. (type=C{string}) - C{prj_url}: The target for the project hopeage link on the navigation bar. If C{prj_url} is not specified, then no hyperlink is created. (type=C{string}) - C{prj_link}: The label for the project link on the navigation bar. This link can contain arbitrary HTML code (e.g. images). By default, a label is constructed from C{prj_name}. (type=C{string}) - C{top}: The top page for the documentation. This is the default page shown main frame, when frames are enabled. C{top} can be a URL, the name of a module, the name of a class, or one of the special strings C{"trees.html"}, C{"indices.html"}, or C{"help.html"}. By default, the top-level package or module is used, if there is one; otherwise, C{"trees"} is used. (type=C{string}) - C{css}: The CSS stylesheet file. If C{css} is a file name, then the specified file's conents will be used. Otherwise, if C{css} is the name of a CSS stylesheet in L{epydoc.css}, then that stylesheet will be used. Otherwise, an error is reported. If no stylesheet is specified, then the default stylesheet is used. (type=C{string}) - C{private_css}: The CSS stylesheet file for the private API documentation. If C{css} is a file name, then the specified file's conents will be used. Otherwise, if C{css} is the name of a CSS stylesheet in L{epydoc.css}, then that stylesheet will be used. Otherwise, an error is reported. If no stylesheet is specified, then the private API documentation will use the same stylesheet as the public API documentation. (type=C{string}) - C{help}: The name of the help file. If no help file is specified, then the default help file will be used. (type=C{string}) - C{private}: Whether to create documentation for private objects. By default, private objects are documented. (type=C{boolean}) - C{frames}: Whether to create a frames-based table of contents. By default, it is produced. (type=C{boolean}) - C{show_imports}: Whether or not to display lists of imported functions and classes. By default, they are not shown. (type=C{boolean}) - C{index_parameters}: Whether or not to include function parameters in the identifier index. By default, they are not included. (type=C{boolean}) - C{variable_maxlines}: The maximum number of lines that should be displayed for the value of a variable in the variable details section. By default, 8 lines are displayed. (type=C{int}) - C{variable_linelength}: The maximum line length used for displaying the values of variables in the variable details sections. If a line is longer than this length, then it will be wrapped to the next line. The default line length is 70 characters. (type=C{int}) - C{variable_summary_linelength}: The maximum line length used for displaying the values of variables in the summary section. If a line is longer than this length, then it will be truncated. The default is 40 characters. (type=C{int}) - C{variable_tooltip_linelength}: The maximum line length used for tooltips for the values of variables. If a line is longer than this length, then it will be truncated. The default is 600 characters. (type=C{int}) - C{inheritance}: How inherited objects should be displayed. If C{inheritance='grouped'}, then inherited objects are gathered into groups; if C{inheritance='listed'}, then inherited objects are listed in a short list at the end of their group; if C{inheritance='included'}, then inherited objects are mixed in with non-inherited objects. The default is 'grouped'. (type=C{string}) """ self._docmap = docmap
dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1458, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 4453, 16, 1450, 326, 864, 7323, 852, 18, 632, 891, 997, 1458, 30, 1021, 7323, 358, 876, 18, 632, 723, 997, 1458, 30, 511, 95, 1759, 863, 97, 632, 891, 1205, 30, 18317, 1775, 30, 300, 385, 95, 683, 78, 67, 529, 6713, 1021, 508, 434, 326, 1984, 18, 225, 14159, 358, 6555, 18, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 683, 78, 67, 718, 6713, 1021, 1018, 364, 326, 1984, 27370, 410, 1692, 603, 326, 10394, 4653, 18, 225, 971, 385, 95, 683, 78, 67, 718, 97, 353, 486, 1269, 16, 1508, 1158, 9512, 1232, 353, 2522, 18, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 683, 78, 67, 1232, 6713, 1021, 1433, 364, 326, 1984, 1692, 603, 326, 10394, 4653, 18, 225, 1220, 1692, 848, 912, 11078, 3982, 981, 261, 73, 18, 75, 18, 4602, 2934, 225, 2525, 805, 16, 279, 1433, 353, 15688, 628, 385, 95, 683, 78, 67, 529, 5496, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 3669, 6713, 1021, 1760, 1363, 364, 326, 7323, 18, 225, 1220, 353, 326, 805, 1363, 12188, 2774, 2623, 16, 1347, 7793, 854, 3696, 18, 225, 385, 95, 3669, 97, 848, 506, 279, 1976, 16, 326, 508, 434, 279, 1605, 16, 326, 508, 434, 279, 667, 16, 578, 1245, 434, 326, 4582, 2064, 385, 16711, 17204, 18, 2620, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 997, 1458, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 4453, 16, 1450, 326, 864, 7323, 852, 18, 632, 891, 997, 1458, 30, 1021, 7323, 358, 876, 18, 632, 723, 997, 1458, 30, 511, 95, 1759, 863, 97, 632, 891, 1205, 30, 18317, 1775, 30, 300, 385, 95, 683, 78, 67, 529, 6713, 1021, 508, 434, 326, 1984, 18, 225, 14159, 358, 6555, 18, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 683, 78, 67, 718, 6713, 1021, 1018, 364, 326, 1984, 27370, 410, 1692, 603, 326, 10394, 4653, 18, 225, 971, 385, 95, 683, 78, 67, 718, 97, 353, 486, 1269, 16, 1508, 1158, 9512, 1232, 353, 2 ]
time.sleep(1)
time.sleep(10)
def test_build_net(quiet=0, peers=24, host='localhost', pause=1): from whrandom import randrange import thread port = 2001 l = [] if not quiet: print "Building %s peer table." % peers for i in xrange(peers): a = Khashmir(host, port + i) l.append(a) thread.start_new_thread(l[0].app.run, ()) time.sleep(1) for peer in l[1:]: peer.app.run() #time.sleep(.25) print "adding contacts...." for peer in l[1:]: n = l[randrange(0, len(l))].node peer.addContact(host, n.port) n = l[randrange(0, len(l))].node peer.addContact(host, n.port) n = l[randrange(0, len(l))].node peer.addContact(host, n.port) if pause: time.sleep(.30) time.sleep(1) print "finding close nodes...." for peer in l: peer.findCloseNodes() if pause: time.sleep(.5) if pause: time.sleep(2)
8af8fd84094b75c0a37a3b17a2b63d6db2c42563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/8af8fd84094b75c0a37a3b17a2b63d6db2c42563/khashmir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3510, 67, 2758, 12, 20380, 33, 20, 16, 10082, 33, 3247, 16, 1479, 2218, 13014, 2187, 225, 11722, 33, 21, 4672, 628, 600, 9188, 1930, 5605, 3676, 1930, 2650, 1756, 273, 4044, 21, 328, 273, 5378, 225, 309, 486, 10902, 30, 1172, 315, 16713, 738, 87, 4261, 1014, 1199, 738, 10082, 225, 364, 277, 316, 12314, 12, 30502, 4672, 279, 273, 1475, 2816, 81, 481, 12, 2564, 16, 1756, 397, 277, 13, 328, 18, 6923, 12, 69, 13, 282, 2650, 18, 1937, 67, 2704, 67, 5930, 12, 80, 63, 20, 8009, 2910, 18, 2681, 16, 1832, 13, 813, 18, 19607, 12, 2163, 13, 364, 4261, 316, 328, 63, 21, 30, 14542, 4261, 18, 2910, 18, 2681, 1435, 468, 957, 18, 19607, 10604, 2947, 13, 225, 1172, 315, 3439, 14841, 6265, 6, 225, 364, 4261, 316, 328, 63, 21, 30, 14542, 290, 273, 328, 63, 7884, 3676, 12, 20, 16, 562, 12, 80, 3719, 8009, 2159, 4261, 18, 1289, 6567, 12, 2564, 16, 290, 18, 655, 13, 290, 273, 328, 63, 7884, 3676, 12, 20, 16, 562, 12, 80, 3719, 8009, 2159, 4261, 18, 1289, 6567, 12, 2564, 16, 290, 18, 655, 13, 290, 273, 328, 63, 7884, 3676, 12, 20, 16, 562, 12, 80, 3719, 8009, 2159, 4261, 18, 1289, 6567, 12, 2564, 16, 290, 18, 655, 13, 309, 11722, 30, 813, 18, 19607, 10604, 5082, 13, 225, 813, 18, 19607, 12, 2163, 13, 1172, 315, 4720, 310, 1746, 2199, 6265, 6, 225, 364, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 67, 2758, 12, 20380, 33, 20, 16, 10082, 33, 3247, 16, 1479, 2218, 13014, 2187, 225, 11722, 33, 21, 4672, 628, 600, 9188, 1930, 5605, 3676, 1930, 2650, 1756, 273, 4044, 21, 328, 273, 5378, 225, 309, 486, 10902, 30, 1172, 315, 16713, 738, 87, 4261, 1014, 1199, 738, 10082, 225, 364, 277, 316, 12314, 12, 30502, 4672, 279, 273, 1475, 2816, 81, 481, 12, 2564, 16, 1756, 397, 277, 13, 328, 18, 6923, 12, 69, 13, 282, 2650, 18, 1937, 67, 2704, 67, 5930, 12, 80, 63, 20, 8009, 2910, 18, 2681, 16, 1832, 13, 813, 18, 19607, 12, 2163, 13, 364, 4261, 316, 328, 63, 21, 30, 14542, 4261, 18, 2910, 18, 2681, 2 ]
for at in self.nAtomsType: fc += str(at) + " "
for at in asc: fc += str(at[1]) + " "
def write_poscar(self, filename="POSCAR.out", fd=None): """Writes data into a POSCAR format file""" fc = "" # Contents of the file for a in self.atomNames: fc += str(a) + " " fc += "\n" + str(self.latticeConstant) + "\n" for i in xrange(3): for j in xrange(3): fc += str(self.basisVectors[i,j]) + " " fc += "\n" for at in self.nAtomsType: fc += str(at) + " " fc += "\n" if self.selectiveDynamics: fc += "Selective dynamics\n" if self.cartesian: fc += "Cartesian\n" else: fc += "Direct\n" for i in xrange(self.nAtoms): for j in xrange(3): fc += str(self.atoms[i,j]) + " " if self.selectiveDynamics: selflags = self.selectiveFlags[i] for j in xrange(3): fc += str(selflags[j]) + " " fc += "\n" if (fd == None): f = open(filename, "w") f.write(fc) f.close() else: fd.write(fc)
d792801f668d7e55645b3e7cc387131f46376389 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14986/d792801f668d7e55645b3e7cc387131f46376389/supercell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 917, 9815, 12, 2890, 16, 1544, 1546, 2419, 2312, 985, 18, 659, 3113, 5194, 33, 7036, 4672, 3536, 8368, 501, 1368, 279, 13803, 2312, 985, 740, 585, 8395, 8036, 273, 1408, 468, 21290, 434, 326, 585, 364, 279, 316, 365, 18, 7466, 1557, 30, 8036, 1011, 609, 12, 69, 13, 397, 315, 315, 8036, 1011, 1548, 82, 6, 397, 609, 12, 2890, 18, 80, 24966, 6902, 13, 397, 1548, 82, 6, 364, 277, 316, 12314, 12, 23, 4672, 364, 525, 316, 12314, 12, 23, 4672, 8036, 1011, 609, 12, 2890, 18, 23774, 21680, 63, 77, 16, 78, 5717, 397, 315, 315, 8036, 1011, 1548, 82, 6, 364, 622, 316, 6972, 30, 8036, 1011, 609, 12, 270, 63, 21, 5717, 397, 315, 315, 8036, 1011, 1548, 82, 6, 309, 365, 18, 4025, 688, 40, 3343, 2102, 30, 8036, 1011, 315, 3391, 688, 19468, 2102, 64, 82, 6, 309, 365, 18, 11848, 13404, 30, 8036, 1011, 315, 13006, 13404, 64, 82, 6, 469, 30, 8036, 1011, 315, 5368, 64, 82, 6, 364, 277, 316, 12314, 12, 2890, 18, 82, 14280, 4672, 364, 525, 316, 12314, 12, 23, 4672, 8036, 1011, 609, 12, 2890, 18, 14937, 63, 77, 16, 78, 5717, 397, 315, 315, 309, 365, 18, 4025, 688, 40, 3343, 2102, 30, 365, 80, 1341, 273, 365, 18, 4025, 688, 5094, 63, 77, 65, 364, 525, 316, 12314, 12, 23, 4672, 8036, 1011, 609, 12, 1786, 7133, 63, 78, 5717, 397, 315, 315, 8036, 1011, 1548, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 917, 9815, 12, 2890, 16, 1544, 1546, 2419, 2312, 985, 18, 659, 3113, 5194, 33, 7036, 4672, 3536, 8368, 501, 1368, 279, 13803, 2312, 985, 740, 585, 8395, 8036, 273, 1408, 468, 21290, 434, 326, 585, 364, 279, 316, 365, 18, 7466, 1557, 30, 8036, 1011, 609, 12, 69, 13, 397, 315, 315, 8036, 1011, 1548, 82, 6, 397, 609, 12, 2890, 18, 80, 24966, 6902, 13, 397, 1548, 82, 6, 364, 277, 316, 12314, 12, 23, 4672, 364, 525, 316, 12314, 12, 23, 4672, 8036, 1011, 609, 12, 2890, 18, 23774, 21680, 63, 77, 16, 78, 5717, 397, 315, 315, 8036, 1011, 1548, 82, 6, 364, 622, 316, 6972, 30, 8036, 1011, 609, 12, 270, 2 ]
Calls test_shell --layout-tests .../generator.html?<name> and writes the result to .../docs/<name>.html
Calls test_shell --layout-tests .../generator.html?<names> and writes the results to .../docs/<name>.html
def RenderPage(name, test_shell): """ Calls test_shell --layout-tests .../generator.html?<name> and writes the result to .../docs/<name>.html """ if not name: raise Exception("RenderPage called with empty name") generator_url = "file:" + urllib.pathname2url(_generator_html) + "?" + name input_file = _base_dir + "/" + name + ".html" # Copy page_shell to destination output and move aside original, if it exists. original = None if (os.path.isfile(input_file)): original = open(input_file, 'rb').read() os.remove(input_file) shutil.copy(_page_shell_html, input_file) # Run test_shell and capture result p = Popen([test_shell, "--layout-tests", generator_url], stdout=PIPE) # The remaining output will be the content of the generated page. result = p.stdout.read() content_start = result.find(_expected_output_preamble) content_end = result.find(_expected_output_postamble) if (content_start < 0): if (result.startswith("#TEST_TIMED_OUT")): raise Exception("test_shell returned TEST_TIMED_OUT.\n" + "Their was probably a problem with generating the " + "page\n" + "Try copying template/page_shell.html to:\n" + input_file + "\nAnd open it in chrome using the file: scheme.\n" + "Look from javascript errors via the inspector.") raise Exception("test_shell returned unexpected output: " + result) postamble_length = len(_expected_output_postamble) result = result[content_start:content_end + postamble_length] + "\n" # Remove the trailing #EOF that test shell appends to the output. result = result.replace('#EOF', '') # Remove page_shell os.remove(input_file) # Remove CRs that are appearing from captured test_shell output. result = result.replace('\r', '') # Write output open(input_file, 'wb').write(result) if (original and result == original): return None else: return input_file
b40d40f02a627229cc5081b53a2adde3111a181e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b40d40f02a627229cc5081b53a2adde3111a181e/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6987, 1964, 12, 529, 16, 1842, 67, 10304, 4672, 3536, 23665, 1842, 67, 10304, 1493, 6741, 17, 16341, 1372, 19, 8812, 18, 2620, 35, 32, 1973, 34, 471, 7262, 326, 1686, 358, 1372, 19, 8532, 28177, 529, 18652, 2620, 3536, 309, 486, 508, 30, 1002, 1185, 2932, 3420, 1964, 2566, 598, 1008, 508, 7923, 225, 4456, 67, 718, 273, 315, 768, 2773, 397, 11527, 18, 28336, 22, 718, 24899, 8812, 67, 2620, 13, 397, 13574, 397, 508, 810, 67, 768, 273, 389, 1969, 67, 1214, 397, 4016, 397, 508, 397, 3552, 2620, 6, 225, 468, 5631, 1363, 67, 10304, 358, 2929, 876, 471, 3635, 487, 831, 2282, 16, 309, 518, 1704, 18, 2282, 273, 599, 309, 261, 538, 18, 803, 18, 291, 768, 12, 2630, 67, 768, 3719, 30, 2282, 273, 1696, 12, 2630, 67, 768, 16, 296, 6731, 16063, 896, 1435, 1140, 18, 4479, 12, 2630, 67, 768, 13, 225, 11060, 18, 3530, 24899, 2433, 67, 10304, 67, 2620, 16, 810, 67, 768, 13, 225, 468, 1939, 1842, 67, 10304, 471, 7477, 563, 293, 273, 14339, 3816, 3813, 67, 10304, 16, 5238, 6741, 17, 16341, 3113, 4456, 67, 718, 6487, 3909, 33, 27602, 13, 225, 468, 1021, 4463, 876, 903, 506, 326, 913, 434, 326, 4374, 1363, 18, 563, 273, 293, 18, 10283, 18, 896, 1435, 225, 913, 67, 1937, 273, 563, 18, 4720, 24899, 3825, 67, 2844, 67, 84, 793, 7119, 13, 913, 67, 409, 273, 563, 18, 4720, 24899, 3825, 67, 2844, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6987, 1964, 12, 529, 16, 1842, 67, 10304, 4672, 3536, 23665, 1842, 67, 10304, 1493, 6741, 17, 16341, 1372, 19, 8812, 18, 2620, 35, 32, 1973, 34, 471, 7262, 326, 1686, 358, 1372, 19, 8532, 28177, 529, 18652, 2620, 3536, 309, 486, 508, 30, 1002, 1185, 2932, 3420, 1964, 2566, 598, 1008, 508, 7923, 225, 4456, 67, 718, 273, 315, 768, 2773, 397, 11527, 18, 28336, 22, 718, 24899, 8812, 67, 2620, 13, 397, 13574, 397, 508, 810, 67, 768, 273, 389, 1969, 67, 1214, 397, 4016, 397, 508, 397, 3552, 2620, 6, 225, 468, 5631, 1363, 67, 10304, 358, 2929, 876, 471, 3635, 487, 831, 2282, 16, 309, 518, 1704, 18, 2282, 273, 599, 309, 261, 538, 2 ]
is_locked = open(lockfile) print 'ERROR: tvwrangler.py is locked'
is_locked = open(lockfile) print timestamp(), 'ERROR: tvwrangler.py is locked'
def do_file_move(showid, showname, snum, enum, epname, quality, fileext, origfilename): season_dir = 'Season ' + snum episode_filename = '[' + snum + 'x' + enum + ']' + ' ' + epname + ' [' + quality + ']' + fileext newpath = os.path.join(tv_dir, showname, season_dir, episode_filename) sdir = os.path.split(newpath) if not os.path.isdir(sdir[0]): os.makedirs(sdir[0]) shutil.move(origfilename, newpath) os.symlink(newpath, origfilename) else: for nukefile in os.listdir(sdir[0]): XXxXX = snum + 'x' + enum if nukefile.find(XXxXX) > 0: fullnukepath = os.path.join(sdir[0], nukefile) nukemoveto = os.path.join(nuke_dir, nukefile) nukemoveorigto = os.path.join(nuke_dir, origfilename) if quality == '1080P': shutil.move(fullnukepath, nukemoveto) find_relink(fullnukepath, nukemoveto) print 'NUKE: NEW1080P', origfilename, fullnukepath elif quality == '720P' and nukefile.find('1080P') < 0: shutil.move(fullnukepath, nukemoveto) find_relink(fullnukepath, nukemoveto) print 'NUKE: NEW720P', origfilename, fullnukepath elif nukefile.find('1080P') < 0 and nukefile.find('720P') < 0: shutil.move(fullnukepath, nukemoveto) find_relink(fullnukepath, nukemoveto) print 'NUKE:', origfilename, fullnukepath else: shutil.move(origfilename, nukemoveorigto) os.symlink(nukemoveorigto, origfilename) print 'NUKE: BETTERAVAIL', fullnukepath, origfilename if not os.path.islink(origfilename) and os.path.isfile(origfilename): shutil.move(origfilename, newpath) os.symlink(newpath, origfilename)
0dace5e13519b49a10fec8a5cdaff7b36ee5fb6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/0dace5e13519b49a10fec8a5cdaff7b36ee5fb6b/tvwrangler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 768, 67, 8501, 12, 4500, 350, 16, 2405, 529, 16, 272, 2107, 16, 2792, 16, 5529, 529, 16, 9312, 16, 585, 408, 16, 1647, 3459, 4672, 225, 15874, 67, 1214, 273, 296, 1761, 2753, 296, 397, 272, 2107, 17054, 67, 3459, 273, 8375, 397, 272, 2107, 397, 296, 92, 11, 397, 2792, 397, 8641, 397, 296, 296, 397, 5529, 529, 397, 296, 10228, 397, 9312, 397, 8641, 397, 585, 408, 25094, 273, 1140, 18, 803, 18, 5701, 12, 24161, 67, 1214, 16, 2405, 529, 16, 15874, 67, 1214, 16, 17054, 67, 3459, 13, 225, 272, 1214, 273, 1140, 18, 803, 18, 4939, 12, 2704, 803, 13, 225, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 87, 1214, 63, 20, 65, 4672, 1140, 18, 81, 9477, 10539, 12, 87, 1214, 63, 20, 5717, 11060, 18, 8501, 12, 4949, 3459, 16, 25094, 13, 1140, 18, 21278, 12, 2704, 803, 16, 1647, 3459, 13, 469, 30, 364, 9244, 4491, 768, 316, 1140, 18, 1098, 1214, 12, 87, 1214, 63, 20, 65, 4672, 1139, 60, 92, 5619, 273, 272, 2107, 397, 296, 92, 11, 397, 2792, 309, 9244, 4491, 768, 18, 4720, 12, 5619, 92, 5619, 13, 405, 374, 30, 1983, 29705, 803, 273, 1140, 18, 803, 18, 5701, 12, 87, 1214, 63, 20, 6487, 9244, 4491, 768, 13, 9244, 79, 351, 1527, 11453, 273, 1140, 18, 803, 18, 5701, 12, 29705, 67, 1214, 16, 9244, 4491, 768, 13, 9244, 79, 351, 841, 4949, 869, 273, 1140, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 67, 8501, 12, 4500, 350, 16, 2405, 529, 16, 272, 2107, 16, 2792, 16, 5529, 529, 16, 9312, 16, 585, 408, 16, 1647, 3459, 4672, 225, 15874, 67, 1214, 273, 296, 1761, 2753, 296, 397, 272, 2107, 17054, 67, 3459, 273, 8375, 397, 272, 2107, 397, 296, 92, 11, 397, 2792, 397, 8641, 397, 296, 296, 397, 5529, 529, 397, 296, 10228, 397, 9312, 397, 8641, 397, 585, 408, 25094, 273, 1140, 18, 803, 18, 5701, 12, 24161, 67, 1214, 16, 2405, 529, 16, 15874, 67, 1214, 16, 17054, 67, 3459, 13, 225, 272, 1214, 273, 1140, 18, 803, 18, 4939, 12, 2704, 803, 13, 225, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 2 ]
def highlight(text, keywords=None, prefix_tag='<strong>', suffix_tag="</strong>"): """ Returns text with all words highlighted with given tags (this function places 'prefix_tag' and 'suffix_tag' before and after words from 'keywords' in 'text'). for example set prefix_tag='<b style="color: black; background-color: rgb(255, 255, 102);">' and suffix_tag="</b>" @param text: the text to modify @param keywords: a list of string @return: highlighted text """ if not keywords: return text
def highlight_matches(text, compiled_pattern, \ prefix_tag='<strong>', suffix_tag="</strong>"): """ Highlight words in 'text' matching the 'compiled_pattern' """
def highlight(text, keywords=None, prefix_tag='<strong>', suffix_tag="</strong>"): """ Returns text with all words highlighted with given tags (this function places 'prefix_tag' and 'suffix_tag' before and after words from 'keywords' in 'text'). for example set prefix_tag='<b style="color: black; background-color: rgb(255, 255, 102);">' and suffix_tag="</b>" @param text: the text to modify @param keywords: a list of string @return: highlighted text """ if not keywords: return text #FIXME decide if non english accentuated char should be desaccentuaded def replace_highlight(match): """ replace match.group() by prefix_tag + match.group() + suffix_tag""" return prefix_tag + match.group() + suffix_tag #Build a pattern of the kind keyword1 | keyword2 | keyword3 pattern = '|'.join(keywords) compiled_pattern = re.compile(pattern, re.IGNORECASE) #Replace and return keywords with prefix+keyword+suffix return compiled_pattern.sub(replace_highlight, text)
772ca8adb4685aa5cb50ce35c8e38c154c7f0d99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2763/772ca8adb4685aa5cb50ce35c8e38c154c7f0d99/bibformat_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 67, 8436, 12, 955, 16, 7743, 67, 4951, 16, 521, 1633, 67, 2692, 2218, 32, 9110, 1870, 16, 3758, 67, 2692, 1546, 1757, 9110, 2984, 4672, 3536, 31386, 4511, 316, 296, 955, 11, 3607, 326, 296, 19397, 67, 4951, 11, 3536, 282, 468, 25810, 16288, 309, 1661, 26858, 30122, 89, 690, 1149, 1410, 506, 2832, 8981, 319, 89, 2435, 1652, 1453, 67, 15978, 12, 1916, 4672, 3536, 1453, 845, 18, 1655, 1435, 635, 1633, 67, 2692, 397, 845, 18, 1655, 1435, 397, 3758, 67, 2692, 8395, 327, 1633, 67, 2692, 397, 845, 18, 1655, 1435, 397, 3758, 67, 2692, 225, 468, 3116, 279, 1936, 434, 326, 3846, 4932, 21, 571, 4932, 22, 571, 4932, 23, 1936, 273, 8030, 18, 5701, 12, 11771, 13, 7743, 67, 4951, 273, 283, 18, 11100, 12, 4951, 16, 283, 18, 20118, 13415, 13, 225, 468, 5729, 471, 327, 7093, 598, 1633, 15, 11041, 15, 8477, 327, 7743, 67, 4951, 18, 1717, 12, 2079, 67, 15978, 16, 977, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8839, 67, 8436, 12, 955, 16, 7743, 67, 4951, 16, 521, 1633, 67, 2692, 2218, 32, 9110, 1870, 16, 3758, 67, 2692, 1546, 1757, 9110, 2984, 4672, 3536, 31386, 4511, 316, 296, 955, 11, 3607, 326, 296, 19397, 67, 4951, 11, 3536, 282, 468, 25810, 16288, 309, 1661, 26858, 30122, 89, 690, 1149, 1410, 506, 2832, 8981, 319, 89, 2435, 1652, 1453, 67, 15978, 12, 1916, 4672, 3536, 1453, 845, 18, 1655, 1435, 635, 1633, 67, 2692, 397, 845, 18, 1655, 1435, 397, 3758, 67, 2692, 8395, 327, 1633, 67, 2692, 397, 845, 18, 1655, 1435, 397, 3758, 67, 2692, 225, 468, 3116, 279, 1936, 434, 326, 3846, 4932, 21, 571, 4932, 22, 571, 4932, 23, 1936, 273, 2 ]
if polynomial not in self.coordinate_ring():
S = self.coordinate_ring() try: polynomial = S(polynomial) except TypeError:
def is_homogeneous(self, polynomial): r""" Check if ``polynomial`` is homogeneous.
efd25a3ebdf406120dec50c4c26fe9f3351fe4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/efd25a3ebdf406120dec50c4c26fe9f3351fe4f7/toric_variety.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 17125, 30075, 1481, 12, 2890, 16, 16991, 4672, 436, 8395, 2073, 309, 12176, 3915, 13602, 10335, 353, 13995, 30075, 1481, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 67, 17125, 30075, 1481, 12, 2890, 16, 16991, 4672, 436, 8395, 2073, 309, 12176, 3915, 13602, 10335, 353, 13995, 30075, 1481, 18, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return '%s/%s' % (utool(), url)
return '%s/%s' % (utool(), remote)
def getRemoteUrl(self): """returns the remote URL of the Link """ # need to check why this is different than PortalLink utool = getToolByName(self, 'portal_url') remote = self._getRemoteUrl() if remote: if remote.startswith('/'): remote = remote[1:] return '%s/%s' % (utool(), url) else: return utool()
abf4508d246321fb479217685ac82a1285438695 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11956/abf4508d246321fb479217685ac82a1285438695/ATFavorite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14879, 1489, 12, 2890, 4672, 3536, 6154, 326, 2632, 1976, 434, 326, 4048, 3536, 468, 1608, 358, 866, 11598, 333, 353, 3775, 2353, 25478, 2098, 31013, 225, 273, 336, 6364, 5911, 12, 2890, 16, 296, 24386, 67, 718, 6134, 2632, 273, 365, 6315, 588, 5169, 1489, 1435, 309, 2632, 30, 309, 2632, 18, 17514, 1918, 2668, 2473, 4672, 2632, 273, 2632, 63, 21, 26894, 327, 1995, 87, 5258, 87, 11, 738, 261, 322, 1371, 9334, 2632, 13, 469, 30, 327, 31013, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 365, 6315, 588, 5169, 1489, 1435, 309, 2632, 30, 309, 2632, 18, 17514, 1918, 2668, 2473, 4672, 2632, 273, 2632, 63, 21, 26894, 327, 1995, 87, 5258, 87, 11, 738, 261, 322, 1371, 9334, 2632, 13, 469, 30, 327, 31013, 1435, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100 ]
value = lfc.lfc_setfsizeg(guid,size,'AD',checksum)
value = lfc.lfc_setfsizeg( guid, size, 'AD', checksum )
def __addFile(self,lfn,pfn,size,se,guid,checksum): lfc.lfc_umask(0000) bdir = os.path.dirname(lfn) res = self.__executeOperation(bdir,'exists') # If we failed to find out whether the directory exists if not res['OK']: return S_ERROR(res['Message']) # If the directory doesn't exist if not res['Value']: #Make the directories recursively if needed res = self.__makeDirs(bdir) # If we failed to make the directory for the file if not res['OK']: return S_ERROR(res['Message']) #Create a new file fullLfn = '%s%s' % (self.prefix,lfn) value = lfc.lfc_creatg(fullLfn,guid,0664) if value != 0: errStr = lfc.sstrerror(lfc.cvar.serrno) gLogger.error("LcgFileCatalogClient__addFile: Failed to create GUID.", errStr) # Remove the file we just attempted to add res = self.__unlinkPath(lfn) if not res['OK']: gLogger.error("LcgFileCatalogClient.__addFile: Failed to remove file after failure.", res['Message']) return S_ERROR("LcgFileCatalogClient__addFile: Failed to create GUID: %s" % errStr) #Set the checksum and size of the file if not checksum: checksum = '' value = lfc.lfc_setfsizeg(guid,size,'AD',checksum) if value != 0: errStr = lfc.sstrerror(lfc.cvar.serrno) # Remove the file we just attempted to add res = self.__unlinkPath(lfn) if not res['OK']: gLogger.error("LcgFileCatalogClient.__addFile: Failed to remove file after failure to add checksum and size." % res['Message']) return S_ERROR("LcgFileCatalogClient.__addFile: Failed to set file size: %s" % errStr) return S_OK()
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 812, 12, 2890, 16, 80, 4293, 16, 84, 4293, 16, 1467, 16, 307, 16, 14066, 16, 15149, 4672, 328, 7142, 18, 80, 7142, 67, 379, 835, 12, 2787, 13, 324, 1214, 273, 1140, 18, 803, 18, 12287, 12, 80, 4293, 13, 400, 273, 365, 16186, 8837, 2988, 12, 70, 1214, 11189, 1808, 6134, 468, 971, 732, 2535, 358, 1104, 596, 2856, 326, 1867, 1704, 309, 486, 400, 3292, 3141, 3546, 30, 327, 348, 67, 3589, 12, 455, 3292, 1079, 19486, 468, 971, 326, 1867, 3302, 1404, 1005, 309, 486, 400, 3292, 620, 3546, 30, 468, 6464, 326, 6402, 8536, 309, 3577, 400, 273, 365, 16186, 6540, 9872, 12, 70, 1214, 13, 468, 971, 732, 2535, 358, 1221, 326, 1867, 364, 326, 585, 309, 486, 400, 3292, 3141, 3546, 30, 327, 348, 67, 3589, 12, 455, 3292, 1079, 19486, 468, 1684, 279, 394, 585, 1983, 48, 4293, 273, 1995, 87, 9, 87, 11, 738, 261, 2890, 18, 3239, 16, 80, 4293, 13, 460, 273, 328, 7142, 18, 80, 7142, 67, 27350, 75, 12, 2854, 48, 4293, 16, 14066, 16, 7677, 1105, 13, 309, 460, 480, 374, 30, 393, 1585, 273, 328, 7142, 18, 87, 701, 1636, 12, 80, 7142, 18, 71, 1401, 18, 87, 19088, 13, 314, 3328, 18, 1636, 2932, 48, 26275, 812, 9769, 1227, 972, 1289, 812, 30, 11175, 358, 752, 20322, 1199, 16, 393, 1585, 13, 468, 3581, 326, 585, 732, 2537, 18121, 358, 527, 400, 273, 365, 16186, 318, 1232, 743, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 812, 12, 2890, 16, 80, 4293, 16, 84, 4293, 16, 1467, 16, 307, 16, 14066, 16, 15149, 4672, 328, 7142, 18, 80, 7142, 67, 379, 835, 12, 2787, 13, 324, 1214, 273, 1140, 18, 803, 18, 12287, 12, 80, 4293, 13, 400, 273, 365, 16186, 8837, 2988, 12, 70, 1214, 11189, 1808, 6134, 468, 971, 732, 2535, 358, 1104, 596, 2856, 326, 1867, 1704, 309, 486, 400, 3292, 3141, 3546, 30, 327, 348, 67, 3589, 12, 455, 3292, 1079, 19486, 468, 971, 326, 1867, 3302, 1404, 1005, 309, 486, 400, 3292, 620, 3546, 30, 468, 6464, 326, 6402, 8536, 309, 3577, 400, 273, 365, 16186, 6540, 9872, 12, 70, 1214, 13, 468, 971, 732, 2535, 358, 2 ]
postrefinement_stats['resolution_estimate_old'] = resolution
postrefinement_stats['resolution_estimate_old'] = resolution_old
def _parse_correct_lp(filename): '''Parse the contents of the CORRECT.LP file pointed to by filename.''' if not os.path.split(filename)[-1] == 'CORRECT.LP': raise RuntimeError, 'input filename not CORRECT.LP' file_contents = open(filename, 'r').readlines() postrefinement_stats = { } for i in range(len(file_contents)): if 'OF SPOT POSITION (PIXELS)' in file_contents[i]: rmsd_pixel = float(file_contents[i].split()[-1]) postrefinement_stats['rmsd_pixel'] = rmsd_pixel if 'OF SPINDLE POSITION (DEGREES)' in file_contents[i]: rmsd_phi = float(file_contents[i].split()[-1]) postrefinement_stats['rmsd_phi'] = rmsd_phi # want to convert this to mm in some standard setting! if 'DETECTOR COORDINATES (PIXELS) OF DIRECT BEAM' in file_contents[i]: beam = map(float, file_contents[i].split()[-2:]) postrefinement_stats['beam'] = beam if 'CRYSTAL TO DETECTOR DISTANCE (mm)' in file_contents[i]: distance = float(file_contents[i].split()[-1]) postrefinement_stats['distance'] = distance if 'UNIT CELL PARAMETERS' in file_contents[i]: cell = map(float, file_contents[i].split()[-6:]) postrefinement_stats['cell'] = cell if 'E.S.D. OF CELL PARAMETERS' in file_contents[i]: # bug # 3132 - check that the last token is not # "-1.0E+00-1.0E+00-1.0E+00-1.0E+00-1.0E+00-1.0E+00" - # if it is it means that the refinement didn't # happen (for some reason...) if '-1.0E+00-1.0E+00-1.0E+00' in file_contents[i]: cell_esd = [-1.0, -1.0, -1.0, -1.0, -1.0, -1.0] else: cell_esd = map(float, file_contents[i].split()[-6:]) postrefinement_stats['cell_esd'] = cell_esd if 'REFLECTIONS ACCEPTED' in file_contents[i]: postrefinement_stats['n_ref'] = int(file_contents[i].split()[0]) # look for I/sigma (resolution) information... if 'RESOLUTION RANGE I/Sigma Chi^2 R-FACTOR R-FACTOR' in \ file_contents[i]: resolution_info = [] j = i + 3 while not '-----' in file_contents[j]: l = file_contents[j].split() resolution_info.append((float(l[1]),float(l[2]))) j += 1 # bug # 2409 - this seems a little harsh set as 1.0 so # set this to 0.75 - even then 0.5 may be better.. resolution_old = _resolution_estimate(resolution_info, 0.5) postrefinement_stats['resolution_estimate_old'] = resolution # also recover the highest resolution limit of the data j += 1 postrefinement_stats['highest_resolution'] = float( file_contents[j].split()[1]) return postrefinement_stats
7d1fd3cb02992e636723a5d7f2692d24ae1ed271 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3290/7d1fd3cb02992e636723a5d7f2692d24ae1ed271/XDSCorrectHelpers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 6746, 67, 9953, 12, 3459, 4672, 9163, 3201, 326, 2939, 434, 326, 28359, 4512, 18, 14461, 585, 25874, 358, 635, 1544, 1093, 6309, 225, 309, 486, 1140, 18, 803, 18, 4939, 12, 3459, 13, 18919, 21, 65, 422, 296, 9428, 4512, 18, 14461, 4278, 1002, 7265, 16, 296, 2630, 1544, 486, 28359, 4512, 18, 14461, 11, 225, 585, 67, 3980, 273, 1696, 12, 3459, 16, 296, 86, 16063, 896, 3548, 1435, 225, 1603, 266, 926, 820, 67, 5296, 273, 288, 289, 225, 364, 277, 316, 1048, 12, 1897, 12, 768, 67, 3980, 3719, 30, 309, 296, 3932, 11405, 1974, 565, 26808, 261, 27381, 2247, 55, 2506, 316, 585, 67, 3980, 63, 77, 14542, 27806, 72, 67, 11743, 273, 1431, 12, 768, 67, 3980, 63, 77, 8009, 4939, 1435, 18919, 21, 5717, 1603, 266, 926, 820, 67, 5296, 3292, 29716, 72, 67, 11743, 3546, 273, 27806, 72, 67, 11743, 225, 309, 296, 3932, 11405, 2356, 900, 26808, 261, 1639, 43, 862, 3991, 2506, 316, 585, 67, 3980, 63, 77, 14542, 27806, 72, 67, 9973, 273, 1431, 12, 768, 67, 3980, 63, 77, 8009, 4939, 1435, 18919, 21, 5717, 1603, 266, 926, 820, 67, 5296, 3292, 29716, 72, 67, 9973, 3546, 273, 27806, 72, 67, 9973, 225, 468, 2545, 358, 1765, 333, 358, 9740, 316, 2690, 4529, 3637, 5, 309, 296, 1639, 1448, 22727, 7910, 916, 21329, 1777, 55, 261, 27381, 2247, 55, 13, 15932, 29100, 9722, 2192, 11, 316, 585, 67, 3980, 63, 77, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 67, 6746, 67, 9953, 12, 3459, 4672, 9163, 3201, 326, 2939, 434, 326, 28359, 4512, 18, 14461, 585, 25874, 358, 635, 1544, 1093, 6309, 225, 309, 486, 1140, 18, 803, 18, 4939, 12, 3459, 13, 18919, 21, 65, 422, 296, 9428, 4512, 18, 14461, 4278, 1002, 7265, 16, 296, 2630, 1544, 486, 28359, 4512, 18, 14461, 11, 225, 585, 67, 3980, 273, 1696, 12, 3459, 16, 296, 86, 16063, 896, 3548, 1435, 225, 1603, 266, 926, 820, 67, 5296, 273, 288, 289, 225, 364, 277, 316, 1048, 12, 1897, 12, 768, 67, 3980, 3719, 30, 309, 296, 3932, 11405, 1974, 565, 26808, 261, 27381, 2247, 55, 2506, 316, 585, 67, 3980, 63, 77, 14542, 27806, 72, 2 ]
picker.connect(picker, SIGNAL('selected(const QwtPolygon&)'), slot)
if PYQT_VERSION == 0x040500: picker.connect(picker, SIGNAL('selected(const QPolygon&)'), slot) else: picker.connect(picker, SIGNAL('selected(const QwtPolygon&)'), slot)
def make(): demo = QMainWindow() toolBar = QToolBar(demo) toolBar.addAction(QWhatsThis.createAction(toolBar)) demo.addToolBar(toolBar) plot = QwtPlot(demo) demo.setCentralWidget(plot) plot.setTitle('Subclassing QwtPlotPicker Demo') plot.setCanvasBackground(Qt.white) plot.setWhatsThis( 'Shows how to subclass QwtPlotPicker so that\n' 'a PolygonRubberBand selection responds to\n' 'left mouse button events.' ) demo.resize(400, 400) demo.show() x = np.linspace(-2*np.pi, 2*np.pi, num=501) y = np.sin(x)*5 curve = QwtPlotCurve() curve.setData(x,y) curve.setPen(QPen(Qt.red)) curve.attach(plot) picker = PlotPicker(QwtPlot.xBottom, QwtPlot.yLeft, QwtPicker.PolygonSelection, QwtPlotPicker.PolygonRubberBand, QwtPicker.AlwaysOff, plot.canvas()) picker.setRubberBandPen(QPen(Qt.black, 1)) slot = lambda polygon: QMessageBox.information( None, 'PlotPicker signaled', str(polygon)) picker.connect(picker, SIGNAL('selected(const QwtPolygon&)'), slot) QWhatsThis.enterWhatsThisMode() QWhatsThis.showText( demo.mapToGlobal(QPoint(200, 200)), plot.whatsThis(), demo) return demo
a5b476da7e6edcba824b8a603141202af5ed5f44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5650/a5b476da7e6edcba824b8a603141202af5ed5f44/PickerDemo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 13332, 21477, 273, 2238, 6376, 3829, 1435, 225, 5226, 5190, 273, 2238, 6364, 5190, 12, 27928, 13, 5226, 5190, 18, 1289, 1803, 12, 53, 2888, 2323, 2503, 18, 2640, 1803, 12, 6738, 5190, 3719, 21477, 18, 1289, 6364, 5190, 12, 6738, 5190, 13, 225, 3207, 273, 2238, 6046, 11532, 12, 27928, 13, 21477, 18, 542, 39, 12839, 4609, 12, 4032, 13, 3207, 18, 542, 4247, 2668, 1676, 1106, 310, 2238, 6046, 11532, 13194, 27744, 83, 6134, 3207, 18, 542, 12971, 8199, 12, 23310, 18, 14739, 13, 3207, 18, 542, 2888, 2323, 2503, 12, 296, 24548, 3661, 358, 10177, 2238, 6046, 11532, 13194, 1427, 716, 64, 82, 11, 296, 69, 12681, 54, 373, 744, 14231, 4421, 26617, 358, 64, 82, 11, 296, 4482, 7644, 3568, 2641, 1093, 262, 225, 21477, 18, 15169, 12, 16010, 16, 7409, 13, 21477, 18, 4500, 1435, 225, 619, 273, 1130, 18, 80, 15738, 19236, 22, 14, 6782, 18, 7259, 16, 576, 14, 6782, 18, 7259, 16, 818, 33, 9172, 13, 677, 273, 1130, 18, 21861, 12, 92, 17653, 25, 8882, 273, 2238, 6046, 11532, 9423, 1435, 8882, 18, 542, 751, 12, 92, 16, 93, 13, 8882, 18, 542, 24251, 12, 53, 24251, 12, 23310, 18, 1118, 3719, 8882, 18, 7331, 12, 4032, 13, 225, 18141, 273, 15211, 13194, 12, 53, 6046, 11532, 18, 92, 10393, 16, 2238, 6046, 11532, 18, 93, 3910, 16, 2238, 6046, 13194, 18, 11787, 6233, 16, 2238, 6046, 11532, 13194, 18, 11787, 54, 373, 744, 14231, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 13332, 21477, 273, 2238, 6376, 3829, 1435, 225, 5226, 5190, 273, 2238, 6364, 5190, 12, 27928, 13, 5226, 5190, 18, 1289, 1803, 12, 53, 2888, 2323, 2503, 18, 2640, 1803, 12, 6738, 5190, 3719, 21477, 18, 1289, 6364, 5190, 12, 6738, 5190, 13, 225, 3207, 273, 2238, 6046, 11532, 12, 27928, 13, 21477, 18, 542, 39, 12839, 4609, 12, 4032, 13, 3207, 18, 542, 4247, 2668, 1676, 1106, 310, 2238, 6046, 11532, 13194, 27744, 83, 6134, 3207, 18, 542, 12971, 8199, 12, 23310, 18, 14739, 13, 3207, 18, 542, 2888, 2323, 2503, 12, 296, 24548, 3661, 358, 10177, 2238, 6046, 11532, 13194, 1427, 716, 64, 82, 11, 296, 69, 12681, 54, 373, 744, 14231, 4421, 26617, 358, 2 ]
'user_id' : uid }
'user_id' : uid }
def do_alarm_create(self, cr, uid, ids, context={}): alarm_obj = self.pool.get('calendar.alarm') model_obj = self.pool.get('ir.model') attendee_obj = self.pool.get('calendar.attendee') model_id = model_obj.search(cr, uid, [('model','=',self._name)])[0]
75258015cae6ae0d493e7eb6204a16eafed73cd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/75258015cae6ae0d493e7eb6204a16eafed73cd9/crm_meeting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 20681, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 13721, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 20681, 6134, 938, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 6134, 27645, 20953, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 10164, 20953, 6134, 938, 67, 350, 273, 938, 67, 2603, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2284, 17023, 33, 2187, 2890, 6315, 529, 13, 5717, 63, 20, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 20681, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 13721, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 20681, 6134, 938, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 6134, 27645, 20953, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 10164, 20953, 6134, 938, 67, 350, 273, 938, 67, 2603, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2284, 17023, 33, 2187, 2890, 6315, 529, 13, 5717, 63, 20, 65, 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, -100, -100 ]
this = apply(_quickfix.new_StatusText, args)
this = _quickfix.new_StatusText(*args)
def __init__(self, *args): this = apply(_quickfix.new_StatusText, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1482, 1528, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1482, 1528, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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, -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, -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 ]
if row_id in row_id2NA_mismatch_rate and row_id2NA_mismatch_rate[row_id][1]<=max_mismatch_rate:
if row_id in row_id_wanted_set:
def removeRowsByMismatchRate(cls, snpData, row_id2NA_mismatch_rate, max_mismatch_rate=1): """ 2008-05-19 """ sys.stderr.write("Removing rows whose mismatch_rate >%s ..."%(max_mismatch_rate)) no_of_rows = 0 #extra computing time a bit, but to save memory for row_id in snpData.row_id_ls: if row_id in row_id2NA_mismatch_rate and row_id2NA_mismatch_rate[row_id][1]<=max_mismatch_rate: no_of_rows += 1 no_of_cols = len(snpData.col_id_ls) newSnpData = SNPData(col_id_ls=snpData.col_id_ls, row_id_ls=[]) newSnpData.data_matrix = num.zeros([no_of_rows, no_of_cols], num.int8) row_index = 0 for i in range(len(snpData.row_id_ls)): row_id = snpData.row_id_ls[i] if row_id in row_id2NA_mismatch_rate and row_id2NA_mismatch_rate[row_id][1]<=max_mismatch_rate: newSnpData.row_id_ls.append(row_id) newSnpData.data_matrix[row_index] = snpData.data_matrix[i] row_index += 1 newSnpData.no_of_rows_filtered_by_mismatch = len(snpData.row_id_ls)-no_of_rows sys.stderr.write("%s rows filtered by mismatch. Done.\n"%(newSnpData.no_of_rows_filtered_by_mismatch)) return newSnpData
a0db0d6d1d040c21cd05d0fc1b5346c1ed01e4df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/a0db0d6d1d040c21cd05d0fc1b5346c1ed01e4df/SNP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 4300, 858, 16901, 4727, 12, 6429, 16, 28648, 751, 16, 1027, 67, 350, 22, 11277, 67, 11173, 1916, 67, 5141, 16, 943, 67, 11173, 1916, 67, 5141, 33, 21, 4672, 3536, 4044, 28, 17, 6260, 17, 3657, 3536, 2589, 18, 11241, 18, 2626, 2932, 18939, 2595, 8272, 13484, 67, 5141, 405, 9, 87, 18483, 17105, 1896, 67, 11173, 1916, 67, 5141, 3719, 1158, 67, 792, 67, 3870, 273, 374, 202, 7, 7763, 20303, 813, 279, 2831, 16, 1496, 358, 1923, 3778, 364, 1027, 67, 350, 316, 28648, 751, 18, 492, 67, 350, 67, 3251, 30, 309, 1027, 67, 350, 316, 1027, 67, 350, 67, 25861, 67, 542, 30, 1158, 67, 792, 67, 3870, 1011, 404, 225, 1158, 67, 792, 67, 6842, 273, 562, 12, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 13, 30826, 6782, 751, 273, 14204, 52, 751, 12, 1293, 67, 350, 67, 3251, 33, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 16, 1027, 67, 350, 67, 3251, 22850, 5717, 30826, 6782, 751, 18, 892, 67, 5667, 273, 818, 18, 22008, 3816, 2135, 67, 792, 67, 3870, 16, 1158, 67, 792, 67, 6842, 6487, 818, 18, 474, 28, 13, 1027, 67, 1615, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 87, 6782, 751, 18, 492, 67, 350, 67, 3251, 3719, 30, 1027, 67, 350, 273, 28648, 751, 18, 492, 67, 350, 67, 3251, 63, 77, 65, 309, 1027, 67, 350, 316, 1027, 67, 350, 67, 25861, 67, 542, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 4300, 858, 16901, 4727, 12, 6429, 16, 28648, 751, 16, 1027, 67, 350, 22, 11277, 67, 11173, 1916, 67, 5141, 16, 943, 67, 11173, 1916, 67, 5141, 33, 21, 4672, 3536, 4044, 28, 17, 6260, 17, 3657, 3536, 2589, 18, 11241, 18, 2626, 2932, 18939, 2595, 8272, 13484, 67, 5141, 405, 9, 87, 18483, 17105, 1896, 67, 11173, 1916, 67, 5141, 3719, 1158, 67, 792, 67, 3870, 273, 374, 202, 7, 7763, 20303, 813, 279, 2831, 16, 1496, 358, 1923, 3778, 364, 1027, 67, 350, 316, 28648, 751, 18, 492, 67, 350, 67, 3251, 30, 309, 1027, 67, 350, 316, 1027, 67, 350, 67, 25861, 67, 542, 30, 1158, 67, 792, 67, 3870, 1011, 404, 225, 1158, 2 ]
points = attrs['points']
points = as_latin1(attrs['points'])
def polygon(self, attrs): if self.in_defs: return points = attrs['points'] points = string.translate(points, commatospace) points = split(points) path = CreatePath() point = self.point for i in range(0, len(points), 2): path.AppendLine(point(points[i], points[i + 1])) path.AppendLine(path.Node(0)) path.ClosePath() self.parse_attrs(attrs) self.set_loader_style() self.loader.bezier(paths = (path,))
a31675f79ae27fada0eef18d280c6f1c55a842f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/a31675f79ae27fada0eef18d280c6f1c55a842f1/svgloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7154, 12, 2890, 16, 3422, 4672, 309, 365, 18, 267, 67, 12537, 30, 327, 3143, 273, 487, 67, 26578, 21, 12, 7039, 3292, 4139, 19486, 3143, 273, 533, 18, 13929, 12, 4139, 16, 1543, 270, 538, 909, 13, 3143, 273, 1416, 12, 4139, 13, 589, 273, 1788, 743, 1435, 1634, 273, 365, 18, 1153, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 4139, 3631, 576, 4672, 589, 18, 5736, 1670, 12, 1153, 12, 4139, 63, 77, 6487, 3143, 63, 77, 397, 404, 22643, 589, 18, 5736, 1670, 12, 803, 18, 907, 12, 20, 3719, 589, 18, 4605, 743, 1435, 365, 18, 2670, 67, 7039, 12, 7039, 13, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7154, 12, 2890, 16, 3422, 4672, 309, 365, 18, 267, 67, 12537, 30, 327, 3143, 273, 487, 67, 26578, 21, 12, 7039, 3292, 4139, 19486, 3143, 273, 533, 18, 13929, 12, 4139, 16, 1543, 270, 538, 909, 13, 3143, 273, 1416, 12, 4139, 13, 589, 273, 1788, 743, 1435, 1634, 273, 365, 18, 1153, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 4139, 3631, 576, 4672, 589, 18, 5736, 1670, 12, 1153, 12, 4139, 63, 77, 6487, 3143, 63, 77, 397, 404, 22643, 589, 18, 5736, 1670, 12, 803, 18, 907, 12, 20, 3719, 589, 18, 4605, 743, 1435, 365, 18, 2670, 67, 7039, 12, 7039, 13, 365, 18, 542, 67, 6714, 67, 4060, 1435, 365, 18, 2 ]
elif self.mode == 'play':
def run(self): while 1: if self.mode == 'idle': self.mode_flag.wait() self.mode_flag.clear()
505872d0994e5006ebba4502ff1e3d02024cee39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/505872d0994e5006ebba4502ff1e3d02024cee39/mplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 309, 365, 18, 3188, 422, 296, 20390, 4278, 365, 18, 3188, 67, 6420, 18, 7048, 1435, 365, 18, 3188, 67, 6420, 18, 8507, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2890, 4672, 1323, 404, 30, 309, 365, 18, 3188, 422, 296, 20390, 4278, 365, 18, 3188, 67, 6420, 18, 7048, 1435, 365, 18, 3188, 67, 6420, 18, 8507, 1435, 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, -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, -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, -100, -100, -100, -100, -100, -100 ]
self.regex = re.compile(self.regex, re.MULTILINE | re.UNICODE)
self.initRegex()
def __init__(self, request, name): """ Initialize, starting from <nothing>.
57193bda3846b44789d4d0abcb1bd20fee427dd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/57193bda3846b44789d4d0abcb1bd20fee427dd1/wikidicts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 16, 508, 4672, 3536, 9190, 16, 5023, 628, 411, 30874, 18652, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 16, 508, 4672, 3536, 9190, 16, 5023, 628, 411, 30874, 18652, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.InitMenu()
gobject.timeout_add(100, self.InitMenu)
def update_status(self, device, actions, status): print_debug ("update_status() of %s to %s" %(actions, status)) if self.items.has_key(device): if "_mount" in actions and status: #print " action UMOUNTING..." # if xxx_mount is True device is umounted self.items[device][5]=False if "_umount" in actions and status: #print " action MOUNTING..." self.items[device][5]=True #print " STATUS of %s is %s" %(device, status) self.items["%s"%device][3]["%s"%actions][2]=status self.InitMenu() else: print_debug( " WW: no updating status of %s"%(actions) )
2d5fe2737ed52045bfec6608b8b1c1961119b897 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13520/2d5fe2737ed52045bfec6608b8b1c1961119b897/TcosTrayIcon2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 12, 2890, 16, 2346, 16, 4209, 16, 1267, 4672, 1172, 67, 4148, 7566, 2725, 67, 2327, 1435, 434, 738, 87, 358, 738, 87, 6, 8975, 4905, 16, 1267, 3719, 225, 309, 365, 18, 3319, 18, 5332, 67, 856, 12, 5964, 4672, 309, 4192, 4778, 6, 316, 4209, 471, 1267, 30, 468, 1188, 315, 225, 1301, 587, 5980, 5321, 1360, 7070, 468, 309, 23354, 67, 4778, 353, 1053, 2346, 353, 9570, 592, 329, 365, 18, 3319, 63, 5964, 6362, 25, 65, 33, 8381, 225, 309, 4192, 379, 592, 6, 316, 4209, 471, 1267, 30, 468, 1188, 315, 225, 1301, 16070, 5321, 1360, 7070, 365, 18, 3319, 63, 5964, 6362, 25, 65, 33, 5510, 225, 468, 1188, 315, 377, 7136, 434, 738, 87, 353, 738, 87, 6, 8975, 5964, 16, 1267, 13, 225, 365, 18, 3319, 9614, 9, 87, 28385, 5964, 6362, 23, 6362, 28385, 87, 28385, 4905, 6362, 22, 65, 33, 2327, 225, 314, 1612, 18, 4538, 67, 1289, 12, 6625, 16, 365, 18, 2570, 4599, 13, 469, 30, 1172, 67, 4148, 12, 315, 678, 59, 30, 1158, 9702, 1267, 434, 738, 87, 6, 17105, 4905, 13, 262, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 12, 2890, 16, 2346, 16, 4209, 16, 1267, 4672, 1172, 67, 4148, 7566, 2725, 67, 2327, 1435, 434, 738, 87, 358, 738, 87, 6, 8975, 4905, 16, 1267, 3719, 225, 309, 365, 18, 3319, 18, 5332, 67, 856, 12, 5964, 4672, 309, 4192, 4778, 6, 316, 4209, 471, 1267, 30, 468, 1188, 315, 225, 1301, 587, 5980, 5321, 1360, 7070, 468, 309, 23354, 67, 4778, 353, 1053, 2346, 353, 9570, 592, 329, 365, 18, 3319, 63, 5964, 6362, 25, 65, 33, 8381, 225, 309, 4192, 379, 592, 6, 316, 4209, 471, 1267, 30, 468, 1188, 315, 225, 1301, 16070, 5321, 1360, 7070, 365, 18, 3319, 63, 5964, 6362, 25, 65, 33, 5510, 225, 468, 1188, 2 ]
start = '1', end = '10', increment = '2', tmpdir = None):
start = 1, end = 10, increment = 2, extra_args = '', tmpdir = None):
def execute(self, iterations = 1, workfile = 'workfile.short', start = '1', end = '10', increment = '2', tmpdir = None): if not tmpdir: tmpdir = self.tmpdir args = '-f ' + ' '.join((workfile,start,end,increment)) for i in range(1, iterations+1): system(self.srcdir + '/reaim ' + args)
1580dc6d00fe5f3687dd697e0546e1982bd55b86 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/1580dc6d00fe5f3687dd697e0546e1982bd55b86/reaim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 11316, 273, 404, 16, 1440, 768, 273, 296, 1252, 768, 18, 6620, 2187, 787, 273, 404, 16, 679, 273, 1728, 16, 5504, 273, 576, 16, 2870, 67, 1968, 273, 10226, 20213, 273, 599, 4672, 309, 486, 20213, 30, 20213, 273, 365, 18, 5645, 1214, 833, 273, 2400, 74, 296, 397, 296, 2418, 5701, 12443, 1252, 768, 16, 1937, 16, 409, 16, 15016, 3719, 364, 277, 316, 1048, 12, 21, 16, 11316, 15, 21, 4672, 2619, 12, 2890, 18, 4816, 1214, 397, 1173, 266, 4581, 296, 397, 833, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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296, 1252, 768, 18, 6620, 2187, 787, 273, 404, 16, 679, 273, 1728, 16, 5504, 273, 576, 16, 2870, 67, 1968, 273, 10226, 20213, 273, 599, 4672, 309, 486, 20213, 30, 20213, 273, 365, 18, 5645, 1214, 833, 273, 2400, 74, 296, 397, 296, 2418, 5701, 12443, 1252, 768, 16, 1937, 16, 409, 16, 15016, 3719, 364, 277, 316, 1048, 12, 21, 16, 11316, 15, 21, 4672, 2619, 12, 2890, 18, 4816, 1214, 397, 1173, 266, 4581, 296, 397, 833, 13, 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 ]
<class 'sage.plot.graphics3d.TransformGroup'>
<class 'base.TransformGroup'>
def plot3d(self, stickers=True): """ sage: C = RubiksCube().move("R*U") sage: C.plot3d() <class 'sage.plot.graphics3d.TransformGroup'> sage: C.plot() Graphics object consisting of 55 graphics primitives """ while len(self.colors) < 7: self.colors.append((.1, .1, .1)) side_colors = [Texture(color=c, ambient=.75) for c in self.colors] start_colors = sum([[c]*8 for c in side_colors], []) facets = self._group.facets(self._state) facet_colors = [0]*48 for i in range(48): facet_colors[facets[i]-1] = start_colors[i] all_colors = side_colors + facet_colors pm = [-1,0,1] C = sum([self.cubie(.15, .025, x, y, z, all_colors, stickers) for x in pm for y in pm for z in pm], Box(.35, .35, .35, color=self.colors[-1])) return C.rotateZ(1.5) #.scale([1,-1,1]).rotateZ(1.5)
769721ac06e48c6980b8a90288696799a95b9f07 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/769721ac06e48c6980b8a90288696799a95b9f07/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 16, 25608, 414, 33, 5510, 4672, 3536, 272, 410, 30, 385, 273, 534, 373, 1766, 87, 39, 4895, 7675, 8501, 2932, 54, 14, 57, 7923, 272, 410, 30, 385, 18, 4032, 23, 72, 1435, 411, 1106, 296, 1969, 18, 4059, 1114, 29256, 272, 410, 30, 385, 18, 4032, 1435, 16830, 733, 23570, 434, 21483, 17313, 23376, 3536, 1323, 562, 12, 2890, 18, 9724, 13, 411, 2371, 30, 365, 18, 9724, 18, 6923, 12, 10604, 21, 16, 263, 21, 16, 263, 21, 3719, 4889, 67, 9724, 273, 306, 10967, 12, 3266, 33, 71, 16, 13232, 1979, 33, 18, 5877, 13, 364, 276, 316, 365, 18, 9724, 65, 787, 67, 9724, 273, 2142, 3816, 63, 71, 5772, 28, 364, 276, 316, 4889, 67, 9724, 6487, 5378, 13, 21681, 273, 365, 6315, 1655, 18, 11639, 2413, 12, 2890, 6315, 2019, 13, 11082, 67, 9724, 273, 306, 20, 5772, 8875, 364, 277, 316, 1048, 12, 8875, 4672, 11082, 67, 9724, 63, 11639, 2413, 63, 77, 65, 17, 21, 65, 273, 787, 67, 9724, 63, 77, 65, 777, 67, 9724, 273, 4889, 67, 9724, 397, 11082, 67, 9724, 7430, 273, 23059, 21, 16, 20, 16, 21, 65, 385, 273, 2142, 3816, 2890, 18, 71, 373, 1385, 10604, 3600, 16, 263, 20, 2947, 16, 619, 16, 677, 16, 998, 16, 777, 67, 9724, 16, 25608, 414, 13, 364, 619, 316, 7430, 364, 677, 316, 7430, 364, 998, 316, 7430, 6487, 8549, 10604, 4763, 16, 263, 4763, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 16, 25608, 414, 33, 5510, 4672, 3536, 272, 410, 30, 385, 273, 534, 373, 1766, 87, 39, 4895, 7675, 8501, 2932, 54, 14, 57, 7923, 272, 410, 30, 385, 18, 4032, 23, 72, 1435, 411, 1106, 296, 1969, 18, 4059, 1114, 29256, 272, 410, 30, 385, 18, 4032, 1435, 16830, 733, 23570, 434, 21483, 17313, 23376, 3536, 1323, 562, 12, 2890, 18, 9724, 13, 411, 2371, 30, 365, 18, 9724, 18, 6923, 12, 10604, 21, 16, 263, 21, 16, 263, 21, 3719, 4889, 67, 9724, 273, 306, 10967, 12, 3266, 33, 71, 16, 13232, 1979, 33, 18, 5877, 13, 364, 276, 316, 365, 18, 9724, 65, 787, 67, 9724, 273, 2142, 3816, 63, 2 ]
'R':[]
def cvecs( self ): """ Return centering vectors for this space group. """ typ = self.mydata['symb'][0] ##TODO: find vectors for B and test for A and C and R ##TODO: http://img.chem.ucl.ac.uk/sgp/large/146az1.htm vs = { 'A':[ Vec( 0, 0.5, 0.5 ) ], 'C':[ Vec( 0.5, 0.5, 0 ) ], 'B':[], ##TODO: <<< error 'F':[ Vec( 0, 0.5, 0.5 ),Vec( 0.5, 0, 0.5 ), Vec( 0.5, 0.5, 0 ) ], 'I':[ Vec( 0.5, 0.5, 0.5 ) ], 'P':[], 'R':[] ##TODO: <<< error (some coordinate orientation has +(2/3,1/3,1/3),(1/3,2/3,2/3) } return vs[ typ ]
3554b4e1fc7ce83a03608aec5f44ee226fdc0262 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11755/3554b4e1fc7ce83a03608aec5f44ee226fdc0262/spgrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 27698, 12, 365, 262, 30, 3536, 2000, 4617, 310, 10046, 364, 333, 3476, 1041, 18, 3536, 3815, 273, 365, 18, 4811, 892, 3292, 9009, 1627, 3546, 63, 20, 65, 7541, 6241, 30, 1104, 10046, 364, 605, 471, 1842, 364, 432, 471, 385, 471, 534, 7541, 6241, 30, 1062, 2207, 6081, 18, 1036, 18, 89, 830, 18, 1077, 18, 19445, 19, 1055, 84, 19, 14095, 19, 27879, 1561, 21, 18, 31180, 6195, 273, 288, 296, 37, 4278, 63, 12969, 12, 374, 16, 374, 18, 25, 16, 374, 18, 25, 262, 308, 16, 296, 39, 4278, 63, 12969, 12, 374, 18, 25, 16, 374, 18, 25, 16, 374, 262, 308, 16, 296, 38, 4278, 63, 6487, 7541, 6241, 30, 14360, 555, 296, 42, 4278, 63, 12969, 12, 374, 16, 374, 18, 25, 16, 374, 18, 25, 262, 16, 12991, 12, 374, 18, 25, 16, 374, 16, 374, 18, 25, 262, 16, 12969, 12, 374, 18, 25, 16, 374, 18, 25, 16, 374, 262, 308, 16, 296, 45, 4278, 63, 12969, 12, 374, 18, 25, 16, 374, 18, 25, 16, 374, 18, 25, 262, 308, 16, 296, 52, 4278, 63, 6487, 225, 7541, 6241, 30, 14360, 555, 225, 261, 19068, 7799, 9820, 711, 397, 12, 22, 19, 23, 16, 21, 19, 23,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65, 7541, 6241, 30, 1104, 10046, 364, 605, 471, 1842, 364, 432, 471, 385, 471, 534, 7541, 6241, 30, 1062, 2207, 6081, 18, 1036, 18, 89, 830, 18, 1077, 18, 19445, 19, 1055, 84, 19, 14095, 19, 27879, 1561, 21, 18, 31180, 6195, 273, 288, 296, 37, 4278, 63, 12969, 12, 374, 16, 374, 18, 25, 16, 374, 18, 25, 262, 308, 16, 296, 39, 4278, 63, 12969, 12, 374, 18, 25, 16, 374, 18, 25, 16, 374, 262, 308, 16, 296, 38, 4278, 63, 6487, 7541, 6241, 30, 2 ]
self.do('rm -rf ' + self.workdir + '/*')
self.do('rm -rf ' + self.workdir) self.do('mkdir -p ' + self.workdir)
def run(self): global all_workers_stop self.do('mkdir -p ' + self.workdir) while not all_workers_stop: job = self.jobqueue.get() if job is None: return try: job.go(self) self.do('rm -rf ' + self.workdir + '/*') except: all_workers_stop = True raise
05e116931f3fb92344219947fdb45bbbe75318ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/05e116931f3fb92344219947fdb45bbbe75318ff/jobqueue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2552, 777, 67, 15625, 67, 5681, 365, 18, 2896, 2668, 26686, 300, 84, 296, 397, 365, 18, 1252, 1214, 13, 1323, 486, 777, 67, 15625, 67, 5681, 30, 1719, 273, 365, 18, 4688, 4000, 18, 588, 1435, 309, 1719, 353, 599, 30, 327, 775, 30, 1719, 18, 3240, 12, 2890, 13, 365, 18, 2896, 2668, 8864, 300, 5809, 296, 397, 365, 18, 1252, 1214, 13, 365, 18, 2896, 2668, 26686, 300, 84, 296, 397, 365, 18, 1252, 1214, 13, 1335, 30, 777, 67, 15625, 67, 5681, 273, 1053, 1002, 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, 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 0, 0, 0, 0, 0, 0, 0, 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, 2890, 4672, 2552, 777, 67, 15625, 67, 5681, 365, 18, 2896, 2668, 26686, 300, 84, 296, 397, 365, 18, 1252, 1214, 13, 1323, 486, 777, 67, 15625, 67, 5681, 30, 1719, 273, 365, 18, 4688, 4000, 18, 588, 1435, 309, 1719, 353, 599, 30, 327, 775, 30, 1719, 18, 3240, 12, 2890, 13, 365, 18, 2896, 2668, 8864, 300, 5809, 296, 397, 365, 18, 1252, 1214, 13, 365, 18, 2896, 2668, 26686, 300, 84, 296, 397, 365, 18, 1252, 1214, 13, 1335, 30, 777, 67, 15625, 67, 5681, 273, 1053, 1002, 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 ]
'http://admin.fedoraproject.org/updates')
'https://admin.fedoraproject.org/updates')
def register(cls): cls._base_url = config.get('fedoracommunity.connector.bodhi.baseurl', 'http://admin.fedoraproject.org/updates') cls.register_query_updates()
bed594cd5f98c62b3995c94931295fcf217f00e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/bed594cd5f98c62b3995c94931295fcf217f00e0/bodhiconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 6429, 4672, 2028, 6315, 1969, 67, 718, 273, 642, 18, 588, 2668, 74, 15534, 20859, 18, 23159, 18, 70, 369, 12266, 18, 1969, 718, 2187, 296, 4528, 2207, 3666, 18, 31835, 280, 438, 28290, 18, 3341, 19, 14703, 6134, 225, 2028, 18, 4861, 67, 2271, 67, 14703, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1744, 12, 6429, 4672, 2028, 6315, 1969, 67, 718, 273, 642, 18, 588, 2668, 74, 15534, 20859, 18, 23159, 18, 70, 369, 12266, 18, 1969, 718, 2187, 296, 4528, 2207, 3666, 18, 31835, 280, 438, 28290, 18, 3341, 19, 14703, 6134, 225, 2028, 18, 4861, 67, 2271, 67, 14703, 1435, 225, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
data['cldr_am'] = amNode.text
data['cldr_am'] = amNode.text
def extractAmPm(calendarElement): data = {} amNode = calendarElement.find(".//am") if amNode != None: data['cldr_am'] = amNode.text pmNode = calendarElement.find(".//pm") if pmNode != None: data["cldr_pm"] = pmNode.text return data
eb1a4b4f96b21cb38ef782a546b34e1e48dfe76d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/eb1a4b4f96b21cb38ef782a546b34e1e48dfe76d/cldr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 9864, 52, 81, 12, 11650, 1046, 4672, 501, 273, 2618, 225, 2125, 907, 273, 5686, 1046, 18, 4720, 2932, 18, 759, 301,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2608, 9864, 52, 81, 12, 11650, 1046, 4672, 501, 273, 2618, 225, 2125, 907, 273, 5686, 1046, 18, 4720, 2932, 18, 759, 301, 7923, 309, 2125, 907, 480, 599, 30, 501, 3292, 830, 3069, 67, 301, 3546, 273, 2125, 907, 18, 955, 225, 7430, 907, 273, 5686, 1046, 18, 4720, 2932, 18, 759, 7755, 7923, 309, 7430, 907, 480, 599, 30, 501, 9614, 830, 3069, 67, 7755, 11929, 273, 7430, 907, 18, 955, 225, 327, 501, 282, 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, -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.BoolField.__init__(self, 130) else quickfix.BoolField.__init__(self, 130, 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, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 404, 5082, 13, 469, 9549, 904, 18, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 404, 5082, 16, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 404, 5082, 13, 469, 9549, 904, 18, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 404, 5082, 16, 501, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def combine_paths(*args):
def combine_paths(*args,**kws):
def combine_paths(*args): """ Return a list of existing paths composed by all combinations of items from arguments. """ r = [] for a in args: if not a: continue if type(a) is types.StringType: a = [a] r.append(a) args = r if not args: return [] if len(args)==1: result = reduce(lambda a,b:a+b,map(glob,args[0]),[]) elif len (args)==2: result = [] for a0 in args[0]: for a1 in args[1]: result.extend(glob(os.path.join(a0,a1))) else: result = combine_paths(*(combine_paths(args[0],args[1])+args[2:])) return result
11cffa55fceeda7a779a5a596b22fb98270f22b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/11cffa55fceeda7a779a5a596b22fb98270f22b8/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8661, 67, 4481, 30857, 1968, 16, 636, 79, 4749, 4672, 3536, 2000, 279, 666, 434, 2062, 2953, 18673, 635, 777, 17265, 434, 1516, 628, 1775, 18, 3536, 436, 273, 5378, 364, 279, 316, 833, 30, 309, 486, 279, 30, 1324, 309, 618, 12, 69, 13, 353, 1953, 18, 780, 559, 30, 279, 273, 306, 69, 65, 436, 18, 6923, 12, 69, 13, 833, 273, 436, 309, 486, 833, 30, 327, 5378, 309, 562, 12, 1968, 13, 631, 21, 30, 563, 273, 5459, 12, 14661, 279, 16, 70, 30, 69, 15, 70, 16, 1458, 12, 10581, 16, 1968, 63, 20, 65, 3631, 63, 5717, 1327, 562, 261, 1968, 13, 631, 22, 30, 563, 273, 5378, 364, 279, 20, 316, 833, 63, 20, 14542, 364, 279, 21, 316, 833, 63, 21, 14542, 563, 18, 14313, 12, 10581, 12, 538, 18, 803, 18, 5701, 12, 69, 20, 16, 69, 21, 20349, 469, 30, 563, 273, 8661, 67, 4481, 12, 21556, 14082, 67, 4481, 12, 1968, 63, 20, 6487, 1968, 63, 21, 5717, 15, 1968, 63, 22, 30, 22643, 327, 563, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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12, 69, 13, 353, 1953, 18, 780, 559, 30, 279, 273, 306, 69, 65, 436, 18, 6923, 12, 69, 13, 833, 273, 436, 309, 486, 833, 30, 327, 5378, 309, 562, 12, 1968, 13, 631, 21, 30, 563, 273, 5459, 12, 14661, 279, 16, 70, 30, 69, 15, 70, 16, 1458, 12, 10581, 16, 1968, 63, 20, 65, 3631, 63, 5717, 1327, 562, 261, 1968, 13, 631, 22, 30, 563, 273, 5378, 364, 279, 20, 316, 2 ]
confPy.write(confPyTemplate % dict(project=metadata.get('Name', doc.project_name), copyright=metadata.get('Author', 'Zope Community'), version=metadata.get('Version', doc.version), release=metadata.get('Version', doc.version), staticDir=staticDir, templatesDir=templatesDir, indexDoc=self.options.get('index-doc','index') ))
confPy.write(confPyTemplate % dict( project=metadata.get('Name', doc.project_name), copyright=metadata.get('Author', 'Zope Community'), version=metadata.get('Version', doc.version), release=metadata.get('Version', doc.version), staticDir=staticDir, templatesDir=templatesDir, indexDoc=self.options.get('index-doc','index') ))
def install(self): installed = [] eggs, workingSet = self.egg.working_set() docs = [workingSet.find(pkg_resources.Requirement.parse(spec)) for spec in eggs]
288b213a23100e906c990f05ca1fbc910c54f778 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9728/288b213a23100e906c990f05ca1fbc910c54f778/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 5876, 273, 5378, 9130, 564, 16, 5960, 694, 273, 365, 18, 23171, 18, 20478, 67, 542, 1435, 3270, 273, 306, 20478, 694, 18, 4720, 12, 10657, 67, 4683, 18, 18599, 18, 2670, 12, 2793, 3719, 364, 857, 316, 9130, 564, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3799, 12, 2890, 4672, 5876, 273, 5378, 9130, 564, 16, 5960, 694, 273, 365, 18, 23171, 18, 20478, 67, 542, 1435, 3270, 273, 306, 20478, 694, 18, 4720, 12, 10657, 67, 4683, 18, 18599, 18, 2670, 12, 2793, 3719, 364, 857, 316, 9130, 564, 65, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = gProxyManager.requestToken( ownerDN, ownerGroup, pilotsToSubmit*5 )
result = gProxyManager.requestToken( ownerDN, ownerGroup, pilotsToSubmit * 5 )
def __getPilotOptions(self,queue,pilotsToSubmit): """ Prepare pilot options """ queueDict = self.queueDict[queue]['ParametersDict'] vo = gConfig.getValue( "/DIRAC/VirtualOrganization", "unknown" ) if vo == 'unknown': self.log.error('Virtual Organization is not defined in the configuration') return None pilotOptions = [ "-V '%s'" % vo ] setup = gConfig.getValue( "/DIRAC/Setup", "unknown" ) if setup == 'unknown': self.log.error('Setup is not defined in the configuration') return None pilotOptions.append( '-S %s' % setup ) diracVersion = gConfig.getValue( "/Operations/%s/%s/Versions/PilotVersion" % (vo,setup), "unknown" ) if diracVersion == 'unknown': self.log.error('PilotVersion is not defined in the configuration') return None pilotOptions.append( '-r %s' % diracVersion ) ownerDN = self.genericPilotDN ownerGroup = self.genericPilotGroup result = gProxyManager.requestToken( ownerDN, ownerGroup, pilotsToSubmit*5 ) if not result[ 'OK' ]: self.log.error( ERROR_TOKEN, result['Message'] ) return S_ERROR( ERROR_TOKEN ) ( token, numberOfUses ) = result[ 'Value' ] pilotOptions.append( '-o /Security/ProxyToken=%s' % token ) # Use Filling mode pilotOptions.append( '-M %s' % 5 )
fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 52, 22797, 1320, 12, 2890, 16, 4000, 16, 84, 330, 6968, 774, 11620, 4672, 3536, 7730, 293, 22797, 702, 3536, 225, 2389, 5014, 273, 365, 18, 4000, 5014, 63, 4000, 23962, 2402, 5014, 3546, 225, 19993, 273, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 6466, 8113, 3113, 315, 8172, 6, 262, 309, 19993, 422, 296, 8172, 4278, 365, 18, 1330, 18, 1636, 2668, 6466, 12046, 353, 486, 2553, 316, 326, 1664, 6134, 327, 599, 293, 22797, 1320, 273, 306, 3701, 58, 1995, 87, 4970, 738, 19993, 308, 3875, 273, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 7365, 3113, 315, 8172, 6, 262, 309, 3875, 422, 296, 8172, 4278, 365, 18, 1330, 18, 1636, 2668, 7365, 353, 486, 2553, 316, 326, 1664, 6134, 327, 599, 293, 22797, 1320, 18, 6923, 12, 2400, 55, 738, 87, 11, 738, 3875, 262, 4314, 8836, 1444, 273, 314, 809, 18, 24805, 12, 2206, 9343, 5258, 87, 5258, 87, 19, 5940, 19, 52, 22797, 1444, 6, 738, 261, 12307, 16, 8401, 3631, 315, 8172, 6, 262, 309, 4314, 8836, 1444, 422, 296, 8172, 4278, 365, 18, 1330, 18, 1636, 2668, 52, 22797, 1444, 353, 486, 2553, 316, 326, 1664, 6134, 327, 599, 293, 22797, 1320, 18, 6923, 12, 2400, 86, 738, 87, 11, 738, 4314, 8836, 1444, 262, 225, 3410, 8609, 273, 365, 18, 13540, 52, 22797, 8609, 3410, 1114, 273, 365, 18, 13540, 52, 22797, 1114, 563, 273, 314, 3886, 1318, 18, 2293, 1345, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 52, 22797, 1320, 12, 2890, 16, 4000, 16, 84, 330, 6968, 774, 11620, 4672, 3536, 7730, 293, 22797, 702, 3536, 225, 2389, 5014, 273, 365, 18, 4000, 5014, 63, 4000, 23962, 2402, 5014, 3546, 225, 19993, 273, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 6466, 8113, 3113, 315, 8172, 6, 262, 309, 19993, 422, 296, 8172, 4278, 365, 18, 1330, 18, 1636, 2668, 6466, 12046, 353, 486, 2553, 316, 326, 1664, 6134, 327, 599, 293, 22797, 1320, 273, 306, 3701, 58, 1995, 87, 4970, 738, 19993, 308, 3875, 273, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 7365, 3113, 315, 8172, 6, 262, 309, 3875, 422, 296, 8172, 4278, 365, 18, 1330, 18, 2 ]
if self.scaledData[indices[j]][i] == "?": validData[i] = 0
if self.noJitteringScaledData[indices[j]][i] == "?": validData[i] = 0
def updateData(self, labels): self.removeCurves() self.tips.removeAll()
b2f2b60835147b81e5724a3275b610773bc3064b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/b2f2b60835147b81e5724a3275b610773bc3064b/OWSurveyPlotGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 751, 12, 2890, 16, 3249, 4672, 365, 18, 4479, 2408, 3324, 1435, 365, 18, 88, 7146, 18, 4479, 1595, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 751, 12, 2890, 16, 3249, 4672, 365, 18, 4479, 2408, 3324, 1435, 365, 18, 88, 7146, 18, 4479, 1595, 1435, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif ext == 'png':
elif ext == '.png':
def save(self, filename='sage.png', xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, fig=None, sub=None, savenow=True, dpi=None): """
7f9525ee63400047a2f2900c10232d9d012cd8cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/7f9525ee63400047a2f2900c10232d9d012cd8cb/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 1544, 2218, 87, 410, 18, 6446, 2187, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 4291, 33, 7036, 16, 720, 33, 7036, 16, 4087, 275, 543, 33, 5510, 16, 16361, 33, 7036, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1923, 12, 2890, 16, 1544, 2218, 87, 410, 18, 6446, 2187, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 4291, 33, 7036, 16, 720, 33, 7036, 16, 4087, 275, 543, 33, 5510, 16, 16361, 33, 7036, 4672, 3536, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return sum([ (F2[AZ[i]+AZ[j]]-X1[AZ[i]]*X2[AZ[j]])^2 for i in range(26) for j in range(26) ])
return sum([ (F2[AZ[i]+AZ[j]]-X1[AZ[i]]*X2[AZ[j]])**2 for i in range(26) for j in range(26) ])
def coincidence_discriminant(S): """ Input A sequence of 2-character strings, e.g. produced as decimation of transposition ciphertext, or of adjacent characters in some sample plaintext. Output A measure of the difference of probability of association of two characters, relative to their independent probabilities. EXAMPLES: sage: S = strip_encoding("The cat in the hat.") sage: T = [ S[i:i+2] for i in range(len(S)-1) ] sage: coincidence_discriminant(T) """ AZ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' AA = [ AZ[i] + AZ[j] for i in range(26) for j in range(26) ] X1 = frequency_distribution(''.join([ s[0] for s in S ])) X2 = frequency_distribution(''.join([ s[1] for s in S ])) F2 = {} RR = RealField() for XY in AA: F2[AA] = RR(0) eps = RR(1/len(S)) for AB in S: F2[AB] += eps return sum([ (F2[AZ[i]+AZ[j]]-X1[AZ[i]]*X2[AZ[j]])^2 for i in range(26) for j in range(26) ])
7ea31482358623b11403f05e3446fa7e23d5e5a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/7ea31482358623b11403f05e3446fa7e23d5e5a1/string_ops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13170, 71, 10328, 67, 2251, 9496, 20030, 12, 55, 4672, 3536, 2741, 432, 3102, 434, 576, 17, 11560, 2064, 16, 425, 18, 75, 18, 14929, 487, 2109, 5115, 434, 906, 3276, 12657, 16, 578, 434, 16335, 3949, 316, 2690, 3296, 11917, 18, 3633, 432, 6649, 434, 326, 7114, 434, 11331, 434, 6384, 434, 2795, 3949, 16, 3632, 358, 3675, 14807, 17958, 18, 5675, 8900, 11386, 30, 272, 410, 30, 348, 273, 2569, 67, 5999, 2932, 1986, 6573, 316, 326, 366, 270, 1199, 13, 272, 410, 30, 399, 273, 306, 348, 63, 77, 30, 77, 15, 22, 65, 364, 277, 316, 1048, 12, 1897, 12, 55, 24950, 21, 13, 308, 272, 410, 30, 13170, 71, 10328, 67, 2251, 9496, 20030, 12, 56, 13, 225, 3536, 432, 62, 273, 296, 26904, 12904, 16715, 45, 19474, 17063, 3417, 28386, 10637, 20147, 59, 23479, 11, 27343, 273, 306, 432, 62, 63, 77, 65, 397, 432, 62, 63, 78, 65, 364, 277, 316, 1048, 12, 5558, 13, 364, 525, 316, 1048, 12, 5558, 13, 308, 1139, 21, 273, 8670, 67, 16279, 2668, 10332, 5701, 3816, 272, 63, 20, 65, 364, 272, 316, 348, 308, 3719, 1139, 22, 273, 8670, 67, 16279, 2668, 10332, 5701, 3816, 272, 63, 21, 65, 364, 272, 316, 348, 308, 3719, 478, 22, 273, 2618, 21618, 273, 15987, 974, 1435, 364, 18774, 316, 27343, 30, 478, 22, 63, 5284, 65, 273, 21618, 12, 20, 13, 7785, 273, 21618, 12, 21, 19, 1897, 12, 55, 3719, 364, 10336, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13170, 71, 10328, 67, 2251, 9496, 20030, 12, 55, 4672, 3536, 2741, 432, 3102, 434, 576, 17, 11560, 2064, 16, 425, 18, 75, 18, 14929, 487, 2109, 5115, 434, 906, 3276, 12657, 16, 578, 434, 16335, 3949, 316, 2690, 3296, 11917, 18, 3633, 432, 6649, 434, 326, 7114, 434, 11331, 434, 6384, 434, 2795, 3949, 16, 3632, 358, 3675, 14807, 17958, 18, 5675, 8900, 11386, 30, 272, 410, 30, 348, 273, 2569, 67, 5999, 2932, 1986, 6573, 316, 326, 366, 270, 1199, 13, 272, 410, 30, 399, 273, 306, 348, 63, 77, 30, 77, 15, 22, 65, 364, 277, 316, 1048, 12, 1897, 12, 55, 24950, 21, 13, 308, 272, 410, 30, 13170, 71, 10328, 67, 2251, 9496, 2 ]
os.system('python2.5 %sopenerp-server.py --pidfile=openerp.pid --xmlrpc-port=%s --netrpc-port=%s --addons-path=%s' %(root_path, str(port),str(netport),addons_path))
os.system('python2.5 %sopenerp-server.py --pidfile=openerp.pid --no-xmlrpcs --xmlrpc-port=%s --netrpc-port=%s --addons-path=%s' %(root_path, str(port),str(netport),addons_path))
def start_server(root_path, port, netport, addons_path): os.system('python2.5 %sopenerp-server.py --pidfile=openerp.pid --xmlrpc-port=%s --netrpc-port=%s --addons-path=%s' %(root_path, str(port),str(netport),addons_path))
76f98cad662fe5e8a1e99f18a50b4c44d52ad94d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/76f98cad662fe5e8a1e99f18a50b4c44d52ad94d/base_quality_interrogation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 3567, 12, 3085, 67, 803, 16, 1756, 16, 2901, 655, 16, 31439, 67, 803, 4672, 1140, 18, 4299, 2668, 8103, 22, 18, 25, 738, 87, 25098, 84, 17, 3567, 18, 2074, 225, 1493, 6610, 768, 33, 25098, 84, 18, 6610, 225, 1493, 2902, 7452, 17, 655, 5095, 87, 1493, 2758, 7452, 17, 655, 5095, 87, 1493, 1289, 7008, 17, 803, 5095, 87, 11, 8975, 3085, 67, 803, 16, 609, 12, 655, 3631, 701, 12, 2758, 655, 3631, 1289, 7008, 67, 803, 3719, 2, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 3567, 12, 3085, 67, 803, 16, 1756, 16, 2901, 655, 16, 31439, 67, 803, 4672, 1140, 18, 4299, 2668, 8103, 22, 18, 25, 738, 87, 25098, 84, 17, 3567, 18, 2074, 225, 1493, 6610, 768, 33, 25098, 84, 18, 6610, 225, 1493, 2902, 7452, 17, 655, 5095, 87, 1493, 2758, 7452, 17, 655, 5095, 87, 1493, 1289, 7008, 17, 803, 5095, 87, 11, 8975, 3085, 67, 803, 16, 609, 12, 655, 3631, 701, 12, 2758, 655, 3631, 1289, 7008, 67, 803, 3719, 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, -100, -100, -100, -100, -100, -100, -100 ]
Let's add a timetable to the app object: >>> ITimetables(app).timetables['2006.simple'] = tts.createTimetable(t1) >>> findRelatedTimetables(tts) [<Timetable: ('A', 'B'), {'A': <schooltool.timetable.TimetableDay object at ...>, 'B': <schooltool.timetable.TimetableDay object at ...>}, <schooltool.timetable.model.WeeklyTimetableModel object at ...>] Now, let's add a timetable of a different schema: >>> ITimetables(app).timetables['2006.other'] = tts2.createTimetable(t1) >>> findRelatedTimetables(tts) [<Timetable: ('A', 'B'), {'A': <schooltool.timetable.TimetableDay object at ...>, 'B': <schooltool.timetable.TimetableDay object at ...>}, <schooltool.timetable.model.WeeklyTimetableModel object at ...>]
def doctest_findRelatedTimetables_forSchoolTimetables(): """Tests for findRelatedTimetables() with school timetables >>> from schooltool.app.interfaces import ISchoolToolApplication >>> app = ISchoolToolApplication(None) >>> directlyProvides(app, IOwnTimetables) Let's creare a schoolyear and a couple of terms: >>> from schooltool.schoolyear.schoolyear import SchoolYear >>> from schooltool.schoolyear.interfaces import ISchoolYearContainer >>> schoolyears = ISchoolYearContainer(app) >>> schoolyears['2005-2006'] = SchoolYear("2005-2006", ... date(2005, 1, 1), ... date(2006, 12, 31)) >>> from schooltool.term.interfaces import ITermContainer >>> from schooltool.term.term import Term >>> t1 = ITermContainer(app)['2005'] = Term('2005', date(2005, 1, 1), ... date(2005, 12, 31)) >>> t2 = ITermContainer(app)['2006'] = Term('2006', date(2006, 1, 1), ... date(2006, 12, 31)) and a timetable schema: >>> from schooltool.timetable.schema import TimetableSchema >>> from schooltool.timetable.schema import TimetableSchemaDay >>> days = ('A', 'B') >>> periods1 = ('Green', 'Blue') >>> tts = TimetableSchema(days, model=makeTimetableModel()) >>> tts["A"] = TimetableSchemaDay(periods1) >>> tts["B"] = TimetableSchemaDay(periods1) >>> days = ('C', 'D') >>> tts2 = TimetableSchema(days, model=makeTimetableModel()) >>> tts2["C"] = TimetableSchemaDay(periods1) >>> tts2["D"] = TimetableSchemaDay(periods1) >>> ITimetableSchemaContainer(app)['simple'] = tts >>> ITimetableSchemaContainer(app)['other'] = tts2 Now we can call our utility function. Since our schema is not used, an empty list is returned: >>> from schooltool.timetable import findRelatedTimetables >>> findRelatedTimetables(tts) [] Let's add a timetable to the app object: >>> ITimetables(app).timetables['2006.simple'] = tts.createTimetable(t1) >>> findRelatedTimetables(tts) [<Timetable: ('A', 'B'), {'A': <schooltool.timetable.TimetableDay object at ...>, 'B': <schooltool.timetable.TimetableDay object at ...>}, <schooltool.timetable.model.WeeklyTimetableModel object at ...>] Now, let's add a timetable of a different schema: >>> ITimetables(app).timetables['2006.other'] = tts2.createTimetable(t1) >>> findRelatedTimetables(tts) [<Timetable: ('A', 'B'), {'A': <schooltool.timetable.TimetableDay object at ...>, 'B': <schooltool.timetable.TimetableDay object at ...>}, <schooltool.timetable.model.WeeklyTimetableModel object at ...>] Let's add some persons, groups and resources with timetables: >>> from schooltool.person.person import Person >>> from schooltool.group.group import Group >>> from schooltool.resource.resource import Resource >>> app['persons']['p1'] = Person('p1') >>> app['persons']['p2'] = Person('p2') >>> IGroupContainer(app)['g'] = Group('friends') >>> app['resources']['r'] = Resource('friends') >>> for ob in (app['persons']['p1'], app['persons']['p2'], ... IGroupContainer(app)['g'], app['resources']['r']): ... directlyProvides(ob, IOwnTimetables) >>> adapter = ITimetables(app['persons']['p1']) >>> adapter.timetables['2006.simple'] = tts.createTimetable(t2) >>> adapter.timetables['2005.simple'] = tts.createTimetable(t1) >>> adapter.timetables['2006.other'] = tts2.createTimetable(t2) >>> adapter = ITimetables(app['persons']['p2']) >>> adapter.timetables['2006.simple'] = tts.createTimetable(t2) >>> adapter = ITimetables(IGroupContainer(app)['g']) >>> adapter.timetables['2006.simple'] = tts.createTimetable(t2) >>> adapter.timetables['2006.other'] = tts2.createTimetable(t2) >>> adapter = ITimetables(app['resources']['r']) >>> adapter.timetables['2006.simple'] = tts.createTimetable(t2) Let's see the timetables for this schema now: >>> findRelatedTimetables(tts) [<Timetable: ('A', 'B'), ...>, <Timetable: ('A', 'B'), ...>, <Timetable: ('A', 'B'), ...>, <Timetable: ('A', 'B'), ...>, <Timetable: ('A', 'B'), ...>, <Timetable: ('A', 'B'), ...>] >>> [(tt.__parent__.__parent__.__name__, tt.__name__) ... for tt in findRelatedTimetables(tts)] [(None, '2006.simple'), (u'p1', '2006.simple'), (u'p1', '2005.simple'), (u'p2', '2006.simple'), (u'g', '2006.simple'), (u'r', '2006.simple')] Let's see the timetables of the other schema: >>> findRelatedTimetables(tts2) [<Timetable: ('C', 'D'), ...>, <Timetable: ('C', 'D'), ...>, <Timetable: ('C', 'D'), ...>] >>> [(tt.__parent__.__parent__.__name__, tt.__name__) ... for tt in findRelatedTimetables(tts2)] [(None, '2006.other'), (u'p1', '2006.other'), (u'g', '2006.other')] """
5327ab07ac6b37626f0e915d61c2f9b2129a747d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7127/5327ab07ac6b37626f0e915d61c2f9b2129a747d/test_timetable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31263, 395, 67, 4720, 8017, 10178, 278, 1538, 67, 1884, 55, 343, 1371, 10178, 278, 1538, 13332, 3536, 14650, 364, 1104, 8017, 10178, 278, 1538, 1435, 598, 18551, 1371, 26668, 1538, 225, 4080, 628, 18551, 1371, 6738, 18, 2910, 18, 15898, 1930, 4437, 343, 1371, 6364, 3208, 4080, 595, 273, 4437, 343, 1371, 6364, 3208, 12, 7036, 13, 4080, 5122, 17727, 12, 2910, 16, 1665, 91, 82, 10178, 278, 1538, 13, 225, 10559, 1807, 1519, 834, 279, 18551, 1371, 6874, 471, 279, 1825, 2268, 434, 6548, 30, 225, 4080, 628, 18551, 1371, 6738, 18, 28204, 1371, 6874, 18, 28204, 1371, 6874, 1930, 348, 343, 1371, 5593, 4080, 628, 18551, 1371, 6738, 18, 28204, 1371, 6874, 18, 15898, 1930, 4437, 343, 1371, 5593, 2170, 4080, 18551, 1371, 29391, 273, 4437, 343, 1371, 5593, 2170, 12, 2910, 13, 4080, 18551, 1371, 29391, 3292, 6976, 25, 17, 6976, 26, 3546, 273, 348, 343, 1371, 5593, 2932, 6976, 25, 17, 6976, 26, 3113, 1372, 4766, 4202, 1509, 12, 6976, 25, 16, 404, 16, 404, 3631, 1372, 4766, 4202, 1509, 12, 6976, 26, 16, 2593, 16, 8231, 3719, 225, 4080, 628, 18551, 1371, 6738, 18, 6408, 18, 15898, 1930, 467, 4065, 2170, 4080, 628, 18551, 1371, 6738, 18, 6408, 18, 6408, 1930, 6820, 4080, 268, 21, 273, 467, 4065, 2170, 12, 2910, 13, 3292, 6976, 25, 3546, 273, 6820, 2668, 6976, 25, 2187, 1509, 12, 6976, 25, 16, 404, 16, 404, 3631, 1372, 29159, 1509, 12, 6976, 25, 16, 2593, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31263, 395, 67, 4720, 8017, 10178, 278, 1538, 67, 1884, 55, 343, 1371, 10178, 278, 1538, 13332, 3536, 14650, 364, 1104, 8017, 10178, 278, 1538, 1435, 598, 18551, 1371, 26668, 1538, 225, 4080, 628, 18551, 1371, 6738, 18, 2910, 18, 15898, 1930, 4437, 343, 1371, 6364, 3208, 4080, 595, 273, 4437, 343, 1371, 6364, 3208, 12, 7036, 13, 4080, 5122, 17727, 12, 2910, 16, 1665, 91, 82, 10178, 278, 1538, 13, 225, 10559, 1807, 1519, 834, 279, 18551, 1371, 6874, 471, 279, 1825, 2268, 434, 6548, 30, 225, 4080, 628, 18551, 1371, 6738, 18, 28204, 1371, 6874, 18, 28204, 1371, 6874, 1930, 348, 343, 1371, 5593, 4080, 628, 18551, 1371, 6738, 18, 28204, 1371, 6874, 18, 15898, 1930, 2 ]
title = u"Set s&haring logging level to debug", helpString = u'Enable RecordSet debugging'),
title = _(u"Set s&haring logging level to debug"), helpString = _(u'Enable RecordSet debugging')),
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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, -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, -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, -100, -100, -100, -100, -100 ]
self.finish_test(secDB)
self.finish_test(self.secDB)
def test01_associateWithDB(self): if verbose: print '\n', '-=' * 30 print "Running %s.test01_associateWithDB..." % \ self.__class__.__name__
86b26e6b7822e78d0e923fad44b0ab457da0cd51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86b26e6b7822e78d0e923fad44b0ab457da0cd51/test_associate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 11577, 1190, 2290, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 1611, 67, 11577, 1190, 2290, 7070, 738, 521, 365, 16186, 1106, 972, 16186, 529, 972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1611, 67, 11577, 1190, 2290, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 1611, 67, 11577, 1190, 2290, 7070, 738, 521, 365, 16186, 1106, 972, 16186, 529, 972, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
path = (action == 'new' and action + '.:(format)') or \ "%s.:(format);%s" % (new_path, action)
path = (action == 'new' and new_path + '\.:(format)') or \ "%s\.:(format);%s" % (new_path, action)
def requirements_for(meth): opts = options.copy() if method != 'any': opts['conditions'] = {'method':meth} return opts
da7004651758a3ba73f50c2731e2b08ce10f1730 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12081/da7004651758a3ba73f50c2731e2b08ce10f1730/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, 4278, 1500, 3292, 6381, 3546, 273, 13666, 2039, 4278, 27305, 97, 327, 1500, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8433, 67, 1884, 12, 27305, 4672, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, 4278, 1500, 3292, 6381, 3546, 273, 13666, 2039, 4278, 27305, 97, 327, 1500, 225, 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, -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, -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, -100, -100, -100, -100, -100, -100 ]
stdin=stdin,
stdin=subprocess.PIPE,
def run(self): """Run the process until finished or aborted. Don't call this directly instead call self.start() to start the thread else this will run in the context of the current thread. @note: overridden from Thread
b2a84c23c7e4f21c38f933384feb433f1442f031 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/b2a84c23c7e4f21c38f933384feb433f1442f031/processmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1997, 326, 1207, 3180, 6708, 578, 18166, 18, 7615, 1404, 745, 333, 5122, 3560, 745, 365, 18, 1937, 1435, 358, 787, 326, 2650, 469, 333, 903, 1086, 316, 326, 819, 434, 326,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2890, 4672, 3536, 1997, 326, 1207, 3180, 6708, 578, 18166, 18, 7615, 1404, 745, 333, 5122, 3560, 745, 365, 18, 1937, 1435, 358, 787, 326, 2650, 469, 333, 903, 1086, 316, 326, 819, 434, 326, 783, 2650, 18, 632, 7652, 30, 11000, 628, 4884, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
debug(" - checking cookie %s=%s", cookie.name, cookie.value)
_debug(" - checking cookie %s=%s", cookie.name, cookie.value)
def set_ok(self, cookie, request): """ If you override .set_ok(), be sure to call this method. If it returns false, so should your subclass (assuming your subclass wants to be more strict about which cookies to accept).
feb0a3bdbccc7b45bc8b960aa4c3434838b52d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/feb0a3bdbccc7b45bc8b960aa4c3434838b52d05/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 12, 2890, 16, 3878, 16, 590, 4672, 3536, 971, 1846, 3849, 263, 542, 67, 601, 9334, 506, 3071, 358, 745, 333, 707, 18, 225, 971, 518, 1135, 629, 16, 1427, 1410, 3433, 10177, 261, 428, 21249, 3433, 10177, 14805, 358, 506, 1898, 5490, 2973, 1492, 7237, 358, 2791, 2934, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 12, 2890, 16, 3878, 16, 590, 4672, 3536, 971, 1846, 3849, 263, 542, 67, 601, 9334, 506, 3071, 358, 745, 333, 707, 18, 225, 971, 518, 1135, 629, 16, 1427, 1410, 3433, 10177, 261, 428, 21249, 3433, 10177, 14805, 358, 506, 1898, 5490, 2973, 1492, 7237, 358, 2791, 2934, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
class SnglBurstTable(DBTable): tableName = lsctables.SnglBurstTable.tableName validcolumns = lsctables.SnglBurstTable.validcolumns constraints = lsctables.SnglBurstTable.constraints next_id = lsctables.SnglBurstTable.next_id RowType = lsctables.SnglBurstTable.RowType how_to_index = lsctables.SnglBurstTable.how_to_index class SimBurstTable(DBTable): tableName = lsctables.SimBurstTable.tableName validcolumns = lsctables.SimBurstTable.validcolumns constraints = lsctables.SimBurstTable.constraints next_id = lsctables.SimBurstTable.next_id RowType = lsctables.SimBurstTable.RowType how_to_index = lsctables.SimBurstTable.how_to_index class SnglInspiralTable(DBTable): tableName = lsctables.SnglInspiralTable.tableName validcolumns = lsctables.SnglInspiralTable.validcolumns constraints = lsctables.SnglInspiralTable.constraints next_id = lsctables.SnglInspiralTable.next_id RowType = lsctables.SnglInspiralTable.RowType how_to_index = lsctables.SnglInspiralTable.how_to_index class SimInspiralTable(DBTable): tableName = lsctables.SimInspiralTable.tableName validcolumns = lsctables.SimInspiralTable.validcolumns constraints = lsctables.SimInspiralTable.constraints next_id = lsctables.SimInspiralTable.next_id RowType = lsctables.SimInspiralTable.RowType how_to_index = lsctables.SimInspiralTable.how_to_index
def get_out_segmentlistdict(self, process_ids = None): """ Return a segmentlistdict mapping instrument to out segment list. If process_ids is a list of process IDs, then only rows with matching IDs are included otherwise all rows are included. """ # start a segment list dictionary seglists = segments.segmentlistdict()
8994913ae6ac57e8ee70b7fa9d9dde61fc8f3bb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/8994913ae6ac57e8ee70b7fa9d9dde61fc8f3bb8/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 659, 67, 9273, 1098, 1576, 12, 2890, 16, 1207, 67, 2232, 273, 599, 4672, 3536, 2000, 279, 3267, 1098, 1576, 2874, 10353, 358, 596, 3267, 666, 18, 225, 971, 1207, 67, 2232, 353, 279, 666, 434, 1207, 7115, 16, 1508, 1338, 2595, 598, 3607, 7115, 854, 5849, 3541, 777, 2595, 854, 5849, 18, 3536, 468, 787, 279, 3267, 666, 3880, 2291, 9772, 273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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 659, 67, 9273, 1098, 1576, 12, 2890, 16, 1207, 67, 2232, 273, 599, 4672, 3536, 2000, 279, 3267, 1098, 1576, 2874, 10353, 358, 596, 3267, 666, 18, 225, 971, 1207, 67, 2232, 353, 279, 666, 434, 1207, 7115, 16, 1508, 1338, 2595, 598, 3607, 7115, 854, 5849, 3541, 777, 2595, 854, 5849, 18, 3536, 468, 787, 279, 3267, 666, 3880, 2291, 9772, 273, 5155, 18, 9273, 1098, 1576, 1435, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]