rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
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_me...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 1589, 1546, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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)...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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 = PowC...
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, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -1...
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'] = ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10174, 67, 6874, 12, 73, 4672, 5634, 67, 712, 273, 425, 18, 588, 2668, 6543, 67, 712, 2187, 599, 13, 309, 5634, 67, 712, 30, 312, 273, 283, 67, 6874, 18, 3072, 12, 10174, ...
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 ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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:...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, s...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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[subl...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, ...
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" sec...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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)) ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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,...
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 suita...
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, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 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, 61...
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 functi...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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 = ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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 =...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4...
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 webpag...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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\n...
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_...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
_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, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, failur...
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, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 163...
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, 3631, 5252, 2668, 49, 132, 119, 76, 1187, 2187, 296, 3158, 28, 26112, 365, 18, 11231, 8867,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 23118, 28793, 2826, 9987, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 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...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 1048, 12, 318, 2693, 67, 70, 1467, 4672, 302, 9614, 318, 2693, 67, 70, 2165, 11929, 33, 77, 364, 525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, ...
[ 1, 1, 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, 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, -1...
(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 star...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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 jo...
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_analyti...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
""" 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...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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 dividi...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
"""
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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(...
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, 1640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 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, 1640...
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 ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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_resc...
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, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 31...
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...
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, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 10...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4...
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.Wri...
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(" Wa...
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" ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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', '#2222...
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, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26...
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 > Ma...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 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,...
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...
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, 1664...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1664...
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, 1930, 1610, 468, 787, 598, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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 "B...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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....
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 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, ...
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, Fa...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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...
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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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 i...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 i...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 + "/" + ...
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, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 85...
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) i...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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...
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...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -10...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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 directo...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 QwtPlotPi...
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, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 51...
'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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1...
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_r...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, -1...
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: #p...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 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, ...
<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 i...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
'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, ...
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, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 100...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 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, ...
'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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4...
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, 7923, 309, 2125, 907, 480, 599, 30, 501, 3292, 830, 3069, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 404, 5082, 13, 469, 9549, 904, 18, 7464, 974, 16186, 2738, ...
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 ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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 =...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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. EXAM...
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, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 43...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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.WeeklyT...
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: >>> f...
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, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 40...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -1...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10...
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...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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...