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
offset = 0
def render_HTMLUI(data): """Callback to render mysql stored data in HTML""" tmp = result.__class__(result) tmp.result = data return tmp
006976a5f252913f17c3c0fed6a24bb0302be5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/006976a5f252913f17c3c0fed6a24bb0302be5b9/RevEng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 4870, 5370, 12, 892, 4672, 3536, 2428, 358, 1743, 7219, 4041, 501, 316, 3982, 8395, 1853, 273, 563, 16186, 1106, 972, 12, 2088, 13, 1853, 18, 2088, 273, 501, 327, 1853, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 4870, 5370, 12, 892, 4672, 3536, 2428, 358, 1743, 7219, 4041, 501, 316, 3982, 8395, 1853, 273, 563, 16186, 1106, 972, 12, 2088, 13, 1853, 18, 2088, 273, 501, 327, 1853, 2, -1...
<form name="add_to_basket" action="%(action)s" method="POST">
<form name="add_to_basket" action="%(action)s" method="post">
def tmpl_add(self, recids, personal_baskets, group_baskets, external_baskets, topics, referer, ln=cdslang): """ returns HTML for the basket selection form when adding new records @param recids: list of record ids @param personal_baskets: list of (basket id, basket name, topic) tuples @param group_baskets: list of (bski...
0a2abb726af10679038485a34dbc4ac26d70217f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/0a2abb726af10679038485a34dbc4ac26d70217f/webbasket_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 1289, 12, 2890, 16, 1950, 2232, 16, 17816, 67, 70, 835, 2413, 16, 1041, 67, 70, 835, 2413, 16, 3903, 67, 70, 835, 2413, 16, 11204, 16, 18068, 16, 7211, 33, 4315, 2069, 539...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 1289, 12, 2890, 16, 1950, 2232, 16, 17816, 67, 70, 835, 2413, 16, 1041, 67, 70, 835, 2413, 16, 3903, 67, 70, 835, 2413, 16, 11204, 16, 18068, 16, 7211, 33, 4315, 2069, 539...
elif pick.state in ['confirmed','assigned']:
elif pick.state in ['confirmed','assigned', 'draft']:
def unlink(self, cr, uid, ids, context=None): for pick in self.browse(cr, uid, ids, context=context): if pick.state in ['done','cancel']: raise osv.except_osv(_('Error'), _('You cannot remove the picking which is in %s state !')%(pick.state,)) elif pick.state in ['confirmed','assigned']: ids2 = [move.id for move in pic...
9f31cb419c4813367d2423edb42cd29e36c49cbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9f31cb419c4813367d2423edb42cd29e36c49cbc/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 6002, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 6002, 18, 2019, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 6002, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 6002, 18, 2019, 316...
self.editor.InsertText(self.editor.GetCurrentPos(), quote(relative_uri(self.htmlfile(source), target)))
self.editor.InsertText( self.editor.GetCurrentPos(), quote(relative_path(self.htmlfile(source), target)))
def on_insert_path(self, event): if self.project <> None: item = self.activeitem if item != self.root: source = self.tree.GetItemText(item) dlg = wxFileDialog (self, "Choose file", self.project.directory, '', '*.*', wxOPEN|wxFILE_MUST_EXIST) if dlg.ShowModal() == wxID_OK: target = dlg.GetPath() self.editor.InsertText(s...
0386dacaa4983ab8619dec87afda0aae584bc1ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/0386dacaa4983ab8619dec87afda0aae584bc1ad/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 6387, 67, 803, 12, 2890, 16, 871, 4672, 309, 365, 18, 4406, 2813, 599, 30, 761, 273, 365, 18, 3535, 1726, 309, 761, 480, 365, 18, 3085, 30, 1084, 273, 365, 18, 3413, 18, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 6387, 67, 803, 12, 2890, 16, 871, 4672, 309, 365, 18, 4406, 2813, 599, 30, 761, 273, 365, 18, 3535, 1726, 309, 761, 480, 365, 18, 3085, 30, 1084, 273, 365, 18, 3413, 18, 9...
users_base = self.users_base
def _lookupuserbyattr(self, name, value, pwd=None): """ returns a record's DN and the groups a uid belongs to as well as a dictionary containing user attributes """ if name == 'dn': if value.find(',') == -1: # micro-optimization: this is not a valid dn because it # doesn't contain any commas; don't bother trying to loo...
61552a06ab2f3eed498ebf3d6c177043f6924cba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1858/61552a06ab2f3eed498ebf3d6c177043f6924cba/LDAPUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8664, 1355, 1637, 1747, 12, 2890, 16, 508, 16, 460, 16, 14720, 33, 7036, 4672, 3536, 1135, 279, 1409, 1807, 18001, 471, 326, 3252, 279, 4555, 11081, 358, 487, 5492, 487, 279, 3880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8664, 1355, 1637, 1747, 12, 2890, 16, 508, 16, 460, 16, 14720, 33, 7036, 4672, 3536, 1135, 279, 1409, 1807, 18001, 471, 326, 3252, 279, 4555, 11081, 358, 487, 5492, 487, 279, 3880, ...
raise ValueError("Adding data to a dictionary failed. There should " "be an even number of key-value-pairs.") self._add_to_dictionary(dictionary, key_value_pairs)
raise ValueError("Adding data to a dictionary failed. There " "should be an even number of key-value-pairs.") for i in range(0, len(key_value_pairs), 2): dictionary[key_value_pairs[i]] = key_value_pairs[i+1] return dictionary
def set_to_dictionary(self, dictionary, *key_value_pairs): """Adds the given 'key_value_pairs' to the dictionary. Example: | Set To Dictionary | ${D1} | key | value | => ${D1} == {'a':1, 'key':'value'} """ if len(key_value_pairs) % 2 != 0: raise ValueError("Adding data to a dictionary failed. There should " "be an eve...
2f5075140c0afeaf5bda26b5924aceb3478d1a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/2f5075140c0afeaf5bda26b5924aceb3478d1a14/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 869, 67, 15556, 12, 2890, 16, 3880, 16, 380, 856, 67, 1132, 67, 11545, 4672, 3536, 3655, 326, 864, 296, 856, 67, 1132, 67, 11545, 11, 358, 326, 3880, 18, 225, 5090, 30, 571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 869, 67, 15556, 12, 2890, 16, 3880, 16, 380, 856, 67, 1132, 67, 11545, 4672, 3536, 3655, 326, 864, 296, 856, 67, 1132, 67, 11545, 11, 358, 326, 3880, 18, 225, 5090, 30, 571,...
def __init__(self, path=None, device=None, PedDevice=None):
def __init__(self, path=None, PedDevice=None):
def __init__(self, path=None, device=None, PedDevice=None): """Create a new Device object based on the specified path or the already existing _ped.Device object. You must provide either a path (e.g., "/dev/sda") or an existing _ped.Device object, but not both."""
a25687a267259a67131cf47c30a10352de335456 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/a25687a267259a67131cf47c30a10352de335456/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 33, 7036, 16, 453, 329, 3654, 33, 7036, 4672, 3536, 1684, 279, 394, 6077, 733, 2511, 603, 326, 1269, 589, 578, 326, 1818, 2062, 389, 1845, 18, 3654,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 589, 33, 7036, 16, 453, 329, 3654, 33, 7036, 4672, 3536, 1684, 279, 394, 6077, 733, 2511, 603, 326, 1269, 589, 578, 326, 1818, 2062, 389, 1845, 18, 3654,...
user_dir = os.path.expanduser('~')
username = cs.split(os.path.sep, 1)[0] user_dir = os.path.expanduser(username)
def _complete(self, tab=False): """Construct a full list of possible completions and construct and display them in a window. Also check if there's an available argspec (via the inspect module) and bang that on top of the completions too. The return value is whether the list_win is visible or not."""
da4ad3899eb88e515f21a3bc020dc2ce988faeb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/da4ad3899eb88e515f21a3bc020dc2ce988faeb5/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6226, 12, 2890, 16, 3246, 33, 8381, 4672, 3536, 7249, 279, 1983, 666, 434, 3323, 23738, 471, 4872, 471, 2562, 2182, 316, 279, 2742, 18, 8080, 866, 309, 1915, 1807, 392, 2319, 23837,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6226, 12, 2890, 16, 3246, 33, 8381, 4672, 3536, 7249, 279, 1983, 666, 434, 3323, 23738, 471, 4872, 471, 2562, 2182, 316, 279, 2742, 18, 8080, 866, 309, 1915, 1807, 392, 2319, 23837,...
`G`. The columns represent the the conjugacy classes of
`G`. The columns represent the conjugacy classes of
def character_table(self): r""" Returns the matrix of values of the irreducible characters of a permutation group `G` at the conjugacy classes of `G`. The columns represent the the conjugacy classes of `G` and the rows represent the different irreducible characters in the ordering given by GAP. EXAMPLES:: sage: G = P...
f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
if '/' in config_name: config_name, platform_id = config_name.split('/', 1)
if platform_id:
def process_admin_request(self, req, cat, page, config_name): data = {}
118e21a1ce99bb8955d9c561f20f188dcea67061 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/118e21a1ce99bb8955d9c561f20f188dcea67061/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3666, 67, 2293, 12, 2890, 16, 1111, 16, 6573, 16, 1363, 16, 642, 67, 529, 4672, 501, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 67, 3666, 67, 2293, 12, 2890, 16, 1111, 16, 6573, 16, 1363, 16, 642, 67, 529, 4672, 501, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
set_dependencies(analisys, dependencies, path)
set_dependencies(analysis, dependencies, path)
def MERGE(*args): common_prefix = os.path.dirname(os.path.commonprefix([os.path.abspath(a.scripts[-1][1]) for a in args])) if common_prefix[-1] != os.sep: common_prefix += os.sep print "Common prefix: %s" % common_prefix dependencies = {} for analisys in args: path = os.path.abspath(analisys.scripts[-1][1]).replace(com...
dc6418bcc534841624abc6688b456d8060ecfb12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11925/dc6418bcc534841624abc6688b456d8060ecfb12/Build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 654, 7113, 30857, 1968, 4672, 2975, 67, 3239, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 6054, 3239, 3816, 538, 18, 803, 18, 5113, 803, 12, 69, 18, 12827, 18919, 21, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 654, 7113, 30857, 1968, 4672, 2975, 67, 3239, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 6054, 3239, 3816, 538, 18, 803, 18, 5113, 803, 12, 69, 18, 12827, 18919, 21, 6...
cell_6_a = self.tmpl_inputdate_box("d1", d1y, d1m, d1d, ln=ln) cell_6_b = create_inputdate_box("d2", d2y, d2m, d2d, ln=ln)
cell_6_a = self.tmpl_inputdate("d1", ln, d1y, d1m, d1d) cell_6_b = self.tmpl_inputdate("d2", ln, d2y, d2m, d2d)
def tmpl_search_box(self, ln, weburl, as, cc, cc_intl, ot, sp, action, fieldslist, f1, f2, f3, m1, m2, m3, p1, p2, p3, op1, op2, rm, p, f, coll_selects, d1y, d2y, d1m, d2m, d1d, d2d, sort_formats, sf, so, ranks, sc, rg, formats, of): """ Displays the *Nearest search terms* box
2a6e158305f7ee6a2932326b0e81fcbe279f205f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/2a6e158305f7ee6a2932326b0e81fcbe279f205f/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3072, 67, 2147, 12, 2890, 16, 7211, 16, 3311, 718, 16, 487, 16, 4946, 16, 4946, 67, 474, 80, 16, 15835, 16, 1694, 16, 1301, 16, 1466, 1098, 16, 284, 21, 16, 284, 22, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3072, 67, 2147, 12, 2890, 16, 7211, 16, 3311, 718, 16, 487, 16, 4946, 16, 4946, 67, 474, 80, 16, 15835, 16, 1694, 16, 1301, 16, 1466, 1098, 16, 284, 21, 16, 284, 22, 16,...
res = buildscript.execute('bunzip2 -dc %s | tar xf -' % localfile)
res = buildscript.execute('bunzip2 -dc "%s" | tar xf -' % localfile)
def do_unpack(self, buildscript): os.chdir(buildscript.config.checkoutroot) localfile = self.get_localfile(buildscript) srcdir = self.get_srcdir(buildscript)
f0c1fb2c65c875a0a30f240aa4a54385371a72e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/f0c1fb2c65c875a0a30f240aa4a54385371a72e4/tarball.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 17309, 12, 2890, 16, 1361, 4263, 4672, 1140, 18, 343, 1214, 12, 3510, 4263, 18, 1425, 18, 17300, 3085, 13, 1191, 768, 273, 365, 18, 588, 67, 3729, 768, 12, 3510, 4263, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 17309, 12, 2890, 16, 1361, 4263, 4672, 1140, 18, 343, 1214, 12, 3510, 4263, 18, 1425, 18, 17300, 3085, 13, 1191, 768, 273, 365, 18, 588, 67, 3729, 768, 12, 3510, 4263, 13, 1...
pyrex_include_dirs=[ 'pcs/bpf' ],
def run(self): clean.clean.run(self) if self.all and os.path.exists(pcap_cache): print "removing '%s'" % pcap_cache os.unlink(pcap_cache)
6c6b4220d452cb14631a309007897baa3f3d6a20 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5910/6c6b4220d452cb14631a309007897baa3f3d6a20/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2721, 18, 6200, 18, 2681, 12, 2890, 13, 309, 365, 18, 454, 471, 1140, 18, 803, 18, 1808, 12, 2436, 438, 67, 2493, 4672, 1172, 315, 2764, 13767, 1995, 87, 4970, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2721, 18, 6200, 18, 2681, 12, 2890, 13, 309, 365, 18, 454, 471, 1140, 18, 803, 18, 1808, 12, 2436, 438, 67, 2493, 4672, 1172, 315, 2764, 13767, 1995, 87, 4970, ...
reactor.callFromThread(self.deferred.errback, error.PBPScriptError())
e = getattr(self, 'last_failure', None) if e is None: e = error.PBPScriptError() reactor.callFromThread(self.deferred.errback, e)
def later(): t.timer = reactor.callLater(self.waiting, self._doneWaiting, t, s)
82a69cd8cb3fd75cfc003a6997b2926265fad80c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2493/82a69cd8cb3fd75cfc003a6997b2926265fad80c/pbpscript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5137, 13332, 268, 18, 12542, 273, 19178, 18, 1991, 20607, 12, 2890, 18, 20241, 16, 365, 6315, 8734, 15946, 16, 268, 16, 272, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 5137, 13332, 268, 18, 12542, 273, 19178, 18, 1991, 20607, 12, 2890, 18, 20241, 16, 365, 6315, 8734, 15946, 16, 268, 16, 272, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if expressionMode: expectedDesc = "expression" else: expectedDesc = "statement" raiseSyntaxException(stream.curr(), expectedDesc)
if stream.currIsType("token", "SEMICOLON") and not expressionMode: item = createItemNode("emptyStatement", stream) stream.next() else: if expressionMode: expectedDesc = "expression" else: expectedDesc = "statement" raiseSyntaxException(stream.curr(), expectedDesc)
def readStatement (stream, expressionMode = False, overrunSemicolon = True): item = None if currIsIdentifier(stream, True): # statement starts with an identifier variable = readVariable(stream, True) variable = readObjectOperation(stream, variable); if stream.currIsType("token", ASSIGN_OPERATORS): # This is an assign...
0b498bc07686244c634158c56a6afa5879f0bb3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/0b498bc07686244c634158c56a6afa5879f0bb3a/treegenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 3406, 261, 3256, 16, 2652, 2309, 273, 1083, 16, 5713, 318, 13185, 17280, 273, 1053, 4672, 761, 273, 599, 225, 309, 4306, 2520, 3004, 12, 3256, 16, 1053, 4672, 468, 3021, 2542, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 3406, 261, 3256, 16, 2652, 2309, 273, 1083, 16, 5713, 318, 13185, 17280, 273, 1053, 4672, 761, 273, 599, 225, 309, 4306, 2520, 3004, 12, 3256, 16, 1053, 4672, 468, 3021, 2542, 598, ...
if chunk.find('<div id="sign_in_box">') != -1:
if chunk.find('<div class="signin">') != -1:
def download_file(filename,url): global options global checksums global filesizes resume_start = 0 if os.path.exists(filename): if filename in checksums: print 'Checking existing ' + filename file_size = os.stat(filename).st_size if file_size == filesizes[filename]: file_checksum = md5_checksum(filename) if file_checks...
cf7d8af99e779ba15abf23b2ce9bc3c9383f5b1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4206/cf7d8af99e779ba15abf23b2ce9bc3c9383f5b1d/downloadkit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 768, 12, 3459, 16, 718, 4672, 2552, 702, 2552, 26829, 2552, 1390, 3128, 10774, 67, 1937, 273, 374, 309, 1140, 18, 803, 18, 1808, 12, 3459, 4672, 309, 1544, 316, 26829, 30, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 768, 12, 3459, 16, 718, 4672, 2552, 702, 2552, 26829, 2552, 1390, 3128, 10774, 67, 1937, 273, 374, 309, 1140, 18, 803, 18, 1808, 12, 3459, 4672, 309, 1544, 316, 26829, 30, 11...
ceTypes = self.am_getOption('CETypes',[]) ceConfList = self.am_getOption('CEs',[])
ceTypes = self.am_getOption( 'CETypes', [] ) ceConfList = self.am_getOption( 'CEs', [] )
def getQueues(self): """ Get the list of relevant CEs and their descriptions """ ceFactory = ComputingElementFactory() ceTypes = self.am_getOption('CETypes',[]) ceConfList = self.am_getOption('CEs',[]) ceList = [] # Look up CE definitions in the site CS description gridType = self.siteName.split('.')[0] result = gCon...
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, 336, 17428, 12, 2890, 4672, 3536, 968, 326, 666, 434, 9368, 385, 6705, 471, 3675, 15550, 3536, 225, 5898, 1733, 273, 14169, 310, 1046, 1733, 1435, 225, 5898, 2016, 273, 365, 18, 301, 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, 336, 17428, 12, 2890, 4672, 3536, 968, 326, 666, 434, 9368, 385, 6705, 471, 3675, 15550, 3536, 225, 5898, 1733, 273, 14169, 310, 1046, 1733, 1435, 225, 5898, 2016, 273, 365, 18, 301, 67,...
runpath_list = binary_info["runpath"] + checkpkg.SYS_DEFAULT_RUNPATH
runpath_list = binary_info["runpath"] + tuple(checkpkg.SYS_DEFAULT_RUNPATH)
def Libraries(pkg_data, error_mgr, logger, path_and_pkg_by_soname): pkgname = pkg_data["basic_stats"]["pkgname"] logger.debug("Libraries(): pkgname = %s", repr(pkgname)) orphan_sonames = [] required_deps = [] isalist = pkg_data["isalist"] ldd_emulator = checkpkg.LddEmulator() for binary_info in pkg_data["binaries_dump_...
49089e4cba607c9e0b7a52a7c32dca50bbef57c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3137/49089e4cba607c9e0b7a52a7c32dca50bbef57c5/dependency_checks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10560, 11042, 12, 10657, 67, 892, 16, 555, 67, 13552, 16, 1194, 16, 589, 67, 464, 67, 10657, 67, 1637, 67, 816, 339, 4672, 29348, 273, 3475, 67, 892, 9614, 13240, 67, 5296, 6, 6362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10560, 11042, 12, 10657, 67, 892, 16, 555, 67, 13552, 16, 1194, 16, 589, 67, 464, 67, 10657, 67, 1637, 67, 816, 339, 4672, 29348, 273, 3475, 67, 892, 9614, 13240, 67, 5296, 6, 6362, ...
def powtest(type): if type != float: print " Testing 2-argument pow() function..." for i in range(-1000, 1000): if pow(type(i), 0) != 1: raise ValueError, 'pow('+str(i)+',0) != 1' if pow(type(i), 1) != type(i): raise ValueError, 'pow('+str(i)+',1) != '+str(i) if pow(type(0), 1) != type(0): raise ValueError, 'pow(0,'...
def test_main(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(PowTest)) test.test_support.run_suite(suite)
def powtest(type): if type != float: print " Testing 2-argument pow() function..." for i in range(-1000, 1000): if pow(type(i), 0) != 1: raise ValueError, 'pow('+str(i)+',0) != 1' if pow(type(i), 1) != type(i): raise ValueError, 'pow('+str(i)+',1) != '+str(i) if pow(type(0), 1) != type(0): raise ValueError, 'pow(0,'...
a39a4f829a3263717f8ce8cebc06a431dbdc9238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a39a4f829a3263717f8ce8cebc06a431dbdc9238/test_pow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 11371, 273, 2836, 3813, 18, 4709, 13587, 1435, 11371, 18, 1289, 4709, 12, 4873, 3813, 18, 6540, 13587, 12, 28289, 4709, 3719, 1842, 18, 3813, 67, 13261, 18, 2681, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 13332, 11371, 273, 2836, 3813, 18, 4709, 13587, 1435, 11371, 18, 1289, 4709, 12, 4873, 3813, 18, 6540, 13587, 12, 28289, 4709, 3719, 1842, 18, 3813, 67, 13261, 18, 2681, ...
r"(?P<list>^(?P<ldepth>\s+)(?:\*|\d+\.|[a-zA-Z]+\.) )",
r"(?P<list>^(?P<ldepth>\s+)(?:\*|\d+\.|[a-zA-Z]\.|[ivxIVX]{1,5}\.) )",
def process(self, req, text, in_paragraph=False): if self.error: return system_message(Markup('Error: Failed to load processor ' '<code>%s</code>', self.name), self.error) text = self.processor(req, text) if in_paragraph: content_for_span = None interrupt_paragraph = False if isinstance(text, Element): tagname = text.t...
6a4ca7278685b1828c8489159e6ff7cd2d1648be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/6a4ca7278685b1828c8489159e6ff7cd2d1648be/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 1111, 16, 977, 16, 316, 67, 22445, 33, 8381, 4672, 309, 365, 18, 1636, 30, 327, 2619, 67, 2150, 12, 13111, 2668, 668, 30, 11175, 358, 1262, 6659, 296, 2368, 710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 1111, 16, 977, 16, 316, 67, 22445, 33, 8381, 4672, 309, 365, 18, 1636, 30, 327, 2619, 67, 2150, 12, 13111, 2668, 668, 30, 11175, 358, 1262, 6659, 296, 2368, 710, ...
tmp_rp = dir_rp.append("high_perms") tmp_rp.touch() try: tmp_rp.chmod(07000) tmp_rp.chmod(07777)
tmpf_rp = dir_rp.append("high_perms_file") tmpf_rp.touch() tmpd_rp = dir_rp.append("high_perms_dir") tmpd_rp.touch() try: tmpf_rp.chmod(07000) tmpf_rp.chmod(07777) tmpd_rp.chmod(07000) tmpd_rp.chmod(07777)
def set_high_perms_readwrite(self, dir_rp): """Test for writing high-bit permissions like suid""" tmp_rp = dir_rp.append("high_perms") tmp_rp.touch() try: tmp_rp.chmod(07000) tmp_rp.chmod(07777) except (OSError, IOError): self.high_perms = 0 else: self.high_perms = 1 tmp_rp.delete()
d695afed412d3285ba13f7aa164fe5a6b74a245c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6202/d695afed412d3285ba13f7aa164fe5a6b74a245c/fs_abilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8766, 67, 15969, 67, 896, 2626, 12, 2890, 16, 1577, 67, 13832, 4672, 3536, 4709, 364, 7410, 3551, 17, 3682, 4371, 3007, 1597, 350, 8395, 1853, 74, 67, 13832, 273, 1577, 67, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8766, 67, 15969, 67, 896, 2626, 12, 2890, 16, 1577, 67, 13832, 4672, 3536, 4709, 364, 7410, 3551, 17, 3682, 4371, 3007, 1597, 350, 8395, 1853, 74, 67, 13832, 273, 1577, 67, 13...
andi t3, t3, 16 or reg, reg, t3
andi t4, t3, 16, flags=(EZF,) or reg, reg, t4 mov t1, t1, t3, flags=(nCEZF,)
def macroop BSF_R_R { # Determine if the input was zero, and also move it to a temp reg. mov t1, t1, t0, dataSize=8 and t1, regm, regm, flags=(ZF,) bri t0, label("end"), flags=(CZF,) # Zero out the result register movi reg, reg, 0 subi t2, t1, 1 xor t1, t2, t1 # Bit 6 srli t3, t1, 32, dataSize=8 andi t3, t3, 32 or r...
8e2991b529fd63f4d7c56518ebfbd2424f964172 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6787/8e2991b529fd63f4d7c56518ebfbd2424f964172/bit_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 54, 288, 468, 10229, 309, 326, 810, 1703, 3634, 16, 471, 2546, 3635, 518, 358, 279, 1906, 960, 18, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 54, 288, 468, 10229, 309, 326, 810, 1703, 3634, 16, 471, 2546, 3635, 518, 358, 279, 1906, 960, 18, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, ...
if node.attributes["type"].value == "recording": tmpfile = string.split(os.path.join(recordingpath, node.attributes["filename"].value), '/') else: tmpfile = string.split(node.attributes["filename"].value, '/')
tmpfile = string.split(node.attributes["filename"].value, '/')
def copyRemote(files,tmpPath): from shutil import copy localTmpPath = os.path.join(tmpPath, "localcopy") # Define remote filesystems remotefs = ['nfs','smbfs'] remotemounts = [] # What does mount say? mounts = os.popen('mount') # Go through each line of mounts output for line in mounts.readlines(): parts = line.split(...
f4ffaf6030cd78212c33aa61e49539cd965a76ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/f4ffaf6030cd78212c33aa61e49539cd965a76ca/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 5169, 12, 2354, 16, 5645, 743, 4672, 628, 11060, 1930, 1610, 225, 1191, 9161, 743, 273, 1140, 18, 803, 18, 5701, 12, 5645, 743, 16, 315, 3729, 3530, 7923, 468, 13184, 2632, 6496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 5169, 12, 2354, 16, 5645, 743, 4672, 628, 11060, 1930, 1610, 225, 1191, 9161, 743, 273, 1140, 18, 803, 18, 5701, 12, 5645, 743, 16, 315, 3729, 3530, 7923, 468, 13184, 2632, 6496, ...
def __init__(self): if _iscommand("konqueror"): self.name = self.basename = "konqueror" else: self.name = self.basename = "kfm" def _remote(self, action):
def _remote(self, url, action):
def __init__(self): if _iscommand("konqueror"): self.name = self.basename = "konqueror" else: self.name = self.basename = "kfm"
e8f244305ef4f257f6999b69601f4316b31faa5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e8f244305ef4f257f6999b69601f4316b31faa5e/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 309, 389, 291, 3076, 2932, 79, 265, 25734, 280, 6, 4672, 365, 18, 529, 273, 365, 18, 13909, 273, 315, 79, 265, 25734, 280, 6, 469, 30, 365, 18, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 309, 389, 291, 3076, 2932, 79, 265, 25734, 280, 6, 4672, 365, 18, 529, 273, 365, 18, 13909, 273, 315, 79, 265, 25734, 280, 6, 469, 30, 365, 18, 529, ...
res = self.__getReplicaManager() if not res['OK']: return res rm = res['Value']
res = pythonCall(0,self.__addDirectory,path,force) if not res['OK']: gLogger.error("Failed to invoke addDirectory with shifter proxy") return res return res['Value'] def __addDirectory(self,path,force): res = setupShifterProxyInEnv("ProductionManager") if not res['OK']: return S_OK("Failed to setup shifter proxy") cat...
def addDirectory(self,path,force=False): """ Adds all the files stored in a given directory in file catalog """ gLogger.info("TransformationDB.addDirectory: Attempting to populate %s." % path) res = self.__getReplicaManager() if not res['OK']: return res rm = res['Value'] start = time.time() res = rm.getCatalogDirector...
f54588da43d82256d4f9d1d4714acd11b51e64c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f54588da43d82256d4f9d1d4714acd11b51e64c2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2853, 12, 2890, 16, 803, 16, 5734, 33, 8381, 4672, 3536, 15605, 777, 326, 1390, 4041, 316, 279, 864, 1867, 316, 585, 6222, 3536, 314, 3328, 18, 1376, 2932, 15292, 2290, 18, 1289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2853, 12, 2890, 16, 803, 16, 5734, 33, 8381, 4672, 3536, 15605, 777, 326, 1390, 4041, 316, 279, 864, 1867, 316, 585, 6222, 3536, 314, 3328, 18, 1376, 2932, 15292, 2290, 18, 1289, ...
resectiondecodeescapes = re.compile(r".(?=[0-9a-f]{2})",re.I)
resectiondecodeescapes = re.compile(r"\.(?=[0-9a-f]{2})",re.I)
def __init__(self, arg, arg2): self.length = arg self.limit = arg2,
c58e18dcfa88f059e70a585e67bcddd19801527f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/c58e18dcfa88f059e70a585e67bcddd19801527f/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1501, 16, 1501, 22, 4672, 365, 18, 2469, 273, 1501, 365, 18, 3595, 273, 1501, 22, 16, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1501, 16, 1501, 22, 4672, 365, 18, 2469, 273, 1501, 365, 18, 3595, 273, 1501, 22, 16, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fp.write(dom.toxml())
fp.write(dom.toxml().encode("utf8"))
def anonymize(filename, outputfile): try: dom = parse(filename) except Exception, err: print "error while parsing %s: %s" % (filename, err) return tasks = dom.getElementsByTagName("task") for task in tasks: textnode = task.getElementsByTagName("title")[0].childNodes[0] nodevalue = textnode.nodeValue newnodevalue = "...
133c33f0c7d53ba50e78c5c51491ff3afb99be03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/133c33f0c7d53ba50e78c5c51491ff3afb99be03/anonymize_task_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 6435, 554, 12, 3459, 16, 876, 768, 4672, 225, 775, 30, 4092, 273, 1109, 12, 3459, 13, 1335, 1185, 16, 393, 30, 1172, 315, 1636, 1323, 5811, 738, 87, 30, 738, 87, 6, 738, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 6435, 554, 12, 3459, 16, 876, 768, 4672, 225, 775, 30, 4092, 273, 1109, 12, 3459, 13, 1335, 1185, 16, 393, 30, 1172, 315, 1636, 1323, 5811, 738, 87, 30, 738, 87, 6, 738, 261, ...
game.state.starkl += game.state.galaxy[nq.x][nq.y].stars game.state.basekl += game.state.galaxy[nq.x][nq.y].starbase
game.state.starkl += game.state.galaxy[nq.i][nq.j].stars game.state.basekl += game.state.galaxy[nq.i][nq.j].starbase
def supernova(induced, w=None): "Star goes supernova." num = 0; npdead = 0 nq = coord() if w != None: nq = w else: stars = 0 # Scheduled supernova -- select star # logic changed here so that we won't favor quadrants in top # left of universe for nq.x in range(GALSIZE): for nq.y in range(GALSIZE): stars += game.state.ga...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2240, 82, 16739, 12, 728, 26372, 16, 341, 33, 7036, 4672, 315, 18379, 13998, 2240, 82, 16739, 1199, 818, 273, 374, 31, 1130, 22097, 273, 374, 290, 85, 273, 2745, 1435, 309, 341, 480, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2240, 82, 16739, 12, 728, 26372, 16, 341, 33, 7036, 4672, 315, 18379, 13998, 2240, 82, 16739, 1199, 818, 273, 374, 31, 1130, 22097, 273, 374, 290, 85, 273, 2745, 1435, 309, 341, 480, 5...
for i in lines: key_and_value = i.split(" = ") retval[key_and_value[0]] = key_and_value[1]
try: f = open(filename, 'r') lines = f.readlines() f.close() for i in lines: key_and_value = i.split(" = ") retval[key_and_value[0]] = key_and_value[1] except IOError: pass
def ParseOptionsCacheFile(filename): f = open(filename, 'r') lines = f.readlines() f.close() retval = {} for i in lines: key_and_value = i.split(" = ") retval[key_and_value[0]] = key_and_value[1] return retval
87c03e8f2db9ef9d58f96d539356334095c5207b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10802/87c03e8f2db9ef9d58f96d539356334095c5207b/build_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 1320, 31371, 12, 3459, 4672, 284, 273, 1696, 12, 3459, 16, 296, 86, 6134, 2362, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 1435, 5221, 273, 2618, 775, 30, 284, 273, 1696, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 1320, 31371, 12, 3459, 4672, 284, 273, 1696, 12, 3459, 16, 296, 86, 6134, 2362, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 1435, 5221, 273, 2618, 775, 30, 284, 273, 1696, 12, ...
def test_expired_pending(self): mapper(User, users, properties={ 'addresses':relation(Address, backref='user'), }) mapper(Address, addresses) sess = create_session() a1 = Address(email_address='a1') sess.add(a1) sess.flush() u1 = User(name='u1') a1.user = u1 sess.flush() sess.expire(u1, ['addresses']) a2 = Addr...
def test_expired_pending(self): mapper(User, users, properties={ 'addresses':relation(Address, backref='user'), }) mapper(Address, addresses)
2d6b3f09eb642915bf4618e78815e701dcabf592 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/2d6b3f09eb642915bf4618e78815e701dcabf592/expire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15820, 67, 9561, 12, 2890, 4672, 5815, 12, 1299, 16, 3677, 16, 1790, 5899, 296, 13277, 4278, 5488, 12, 1887, 16, 1473, 1734, 2218, 1355, 19899, 289, 13, 5815, 12, 1887, 16, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15820, 67, 9561, 12, 2890, 4672, 5815, 12, 1299, 16, 3677, 16, 1790, 5899, 296, 13277, 4278, 5488, 12, 1887, 16, 1473, 1734, 2218, 1355, 19899, 289, 13, 5815, 12, 1887, 16, 6...
gen_rules(debiandir)
gen_rules(debiandir, arch)
def main(argv): tmpdir = None ret = 1 version = "@VERSION@" global verbose prog = os.path.basename(argv[0]) parser = OptionParser(prog=prog, usage='%prog [options] /path/to/sapgui.jar', version="%prog " + version) parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, help="verbose co...
4307afa7ded9e76b73a3a61a2ee2fa73631d5fe4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7223/4307afa7ded9e76b73a3a61a2ee2fa73631d5fe4/make-sgpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 20213, 273, 599, 325, 273, 404, 1177, 273, 8787, 5757, 27614, 2552, 3988, 225, 11243, 273, 1140, 18, 803, 18, 13909, 12, 19485, 63, 20, 5717, 2082, 273, 18862, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 20213, 273, 599, 325, 273, 404, 1177, 273, 8787, 5757, 27614, 2552, 3988, 225, 11243, 273, 1140, 18, 803, 18, 13909, 12, 19485, 63, 20, 5717, 2082, 273, 18862, 12,...
global mytime, increment, scr lsearch.skipPruneChance = skipPruneChance lsearch.searching = True
starttime = time() lsearch.endtime = starttime + usetime prevtime = 0 print "Time left: %3.2f seconds; Planing to thinking for %3.2f seconds" % \ (mytime, usetime) for depth in range(1, sd+1): if usetime > prevtime*4 or usetime <= 1: lsearch.timecheck_counter = lsearch.TIMECHECK_FREQ search_result = alphaBeta(board, ...
def go (queue): """ Finds and prints the best move from the current position """ searchLock.acquire() try: queue.put(None) # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board...
3989d5f03e9e09f795eaf02ffa22de695b21e8e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/3989d5f03e9e09f795eaf02ffa22de695b21e8e9/PyChess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11...
retVal = vomsMgr.getAttributes( chain )
retVal = vomsMgr.getVOMSAttributes( chain )
def getVOMSProxy( self, userDN, userGroup, requiredLifeTime = False, requestedVOMSAttr = False ): """ Get proxy string from the Proxy Repository for use with userDN in the userGroup and VOMS attr """ retVal = self.__getVOMSAttribute( userGroup, requestedVOMSAttr ) if not retVal[ 'OK' ]: return retVal vomsAttr = retVal[...
4c8302a782c37b10bb9c0a965d612c16c1486028 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4c8302a782c37b10bb9c0a965d612c16c1486028/ProxyDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 1872, 55, 3886, 12, 365, 16, 729, 8609, 16, 26205, 16, 1931, 15315, 950, 273, 1083, 16, 3764, 58, 1872, 55, 3843, 273, 1083, 262, 30, 3536, 968, 2889, 533, 628, 326, 7659, 6281,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 1872, 55, 3886, 12, 365, 16, 729, 8609, 16, 26205, 16, 1931, 15315, 950, 273, 1083, 16, 3764, 58, 1872, 55, 3843, 273, 1083, 262, 30, 3536, 968, 2889, 533, 628, 326, 7659, 6281,...
class fkout(object): write=flush=close=noprint class Logging(object): debug = error = warning = info = debug = noprint
class Fkout(object): debug=error=warning=info=debug=write=flush=close=noprint
def noprint(*args, **kwds): pass
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28797, 86, 474, 30857, 1968, 16, 2826, 25577, 4672, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 28797, 86, 474, 30857, 1968, 16, 2826, 25577, 4672, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=None): self.tries += 1 if self.tries >= self.maxtries: return self.http_error_default(url, fp, 500, "Internal Server Error: Redirect Recursion", headers) result = urllib.FancyURLopener.http_error_302(self, url, fp, errcode, errmsg, headers, data) self.tri...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=None): self.tries += 1 if self.tries >= self.maxtries: return self.http_error_default(url, fp, 500, "Internal Server Error: Redirect Recursion", headers) result = urllib.FancyURLopener.http_error_302(self, url, fp, errcode, errmsg, headers, data) self.tri...
9f86ae009f1e74ee040c0d6e683bcba6894a674b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4845/9f86ae009f1e74ee040c0d6e683bcba6894a674b/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 23, 3103, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 33, 7036, 4672, 365, 18, 2007, 1011, 404, 309, 365, 18, 2007, 1545, 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, 1062, 67, 1636, 67, 23, 3103, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 33, 7036, 4672, 365, 18, 2007, 1011, 404, 309, 365, 18, 2007, 1545, 365, 18, ...
"""%(table, more))
"""%(table_name, more))
def add_column(self, table, col_name, attr_dict, default='NULL'): """ Takes a while, thanks to SQLite... """ # Check input: if not self.__skeleton__.has_key(table): raise ValueError("Database has no table %s."%table) if self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s already has column %s."%(tab...
ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2827, 12, 2890, 16, 1014, 16, 645, 67, 529, 16, 1604, 67, 1576, 16, 805, 2218, 8560, 11, 4672, 3536, 23004, 279, 1323, 16, 286, 19965, 358, 16192, 2777, 225, 3536, 468, 2073, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2827, 12, 2890, 16, 1014, 16, 645, 67, 529, 16, 1604, 67, 1576, 16, 805, 2218, 8560, 11, 4672, 3536, 23004, 279, 1323, 16, 286, 19965, 358, 16192, 2777, 225, 3536, 468, 2073, ...
results.append(len(self._bugzilla.query({
results['closed'] = len(self._bugzilla.query({
def _get_bug_stats(self, package, collection='Fedora'): """ Returns (# of open bugs, # of new bugs, # of closed bugs) """ results = [] last_week = str(datetime.utcnow() - timedelta(days=7)),
db7abe949e3fbab840693ccf5a932baa23e6ea8d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/db7abe949e3fbab840693ccf5a932baa23e6ea8d/bugzillaconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 925, 67, 5296, 12, 2890, 16, 2181, 16, 1849, 2218, 42, 15534, 11, 4672, 3536, 2860, 23885, 434, 1696, 22398, 16, 468, 434, 394, 22398, 16, 468, 434, 4375, 22398, 13, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 925, 67, 5296, 12, 2890, 16, 2181, 16, 1849, 2218, 42, 15534, 11, 4672, 3536, 2860, 23885, 434, 1696, 22398, 16, 468, 434, 394, 22398, 16, 468, 434, 4375, 22398, 13, 3536...
``max_cache_age``:
``cache_max_age``:
def make_py(parser, environ, filename): module = load_module(environ, filename) if not module: return None if hasattr(module, 'application') and module.application: return getattr(module.application, 'wsgi_application', module.application) base_name = module.__name__.split('.')[-1] if hasattr(module, base_name): obj = ...
d47074a63528d1885de8f4e1363687b15f050031 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/d47074a63528d1885de8f4e1363687b15f050031/urlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2074, 12, 4288, 16, 5473, 16, 1544, 4672, 1605, 273, 1262, 67, 2978, 12, 28684, 16, 1544, 13, 309, 486, 1605, 30, 327, 599, 309, 3859, 12, 2978, 16, 296, 3685, 6134, 471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2074, 12, 4288, 16, 5473, 16, 1544, 4672, 1605, 273, 1262, 67, 2978, 12, 28684, 16, 1544, 13, 309, 486, 1605, 30, 327, 599, 309, 3859, 12, 2978, 16, 296, 3685, 6134, 471, 1...
errorbar(bins, eff, error,markersize=12, markerfacecolor='None',\
errorbar(plotbins, eff, error,markersize=12, markerfacecolor='None',\
def efficiencyplot(found, missed, col_name, ifo=None, plot_type = 'linear', \ nbins = 40, output_name = None, plotsym = 'k-', plot_name = '', \ title_string = '', errors = False): """ function to plot the difference if col_name_a in two tables against the value of col_name_b in table1. @param found: metaDataTable con...
c9b61fdc32295bdb8be1140c1b8359958473b6f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/c9b61fdc32295bdb8be1140c1b8359958473b6f4/viz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30325, 4032, 12, 7015, 16, 25143, 16, 645, 67, 529, 16, 21479, 33, 7036, 16, 3207, 67, 723, 273, 296, 12379, 2187, 521, 4264, 2679, 273, 8063, 16, 876, 67, 529, 273, 599, 16, 3207, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30325, 4032, 12, 7015, 16, 25143, 16, 645, 67, 529, 16, 21479, 33, 7036, 16, 3207, 67, 723, 273, 296, 12379, 2187, 521, 4264, 2679, 273, 8063, 16, 876, 67, 529, 273, 599, 16, 3207, 8...
if not (upkg["arch"] == "noarch" or \ pkg["arch"] == "noarch" or \ buildarchtranslate[upkg["arch"]] == buildarchtranslate[pkg["arch"]]):
if not (is_filereq or \ archDuplicate(upkg["arch"], pkg["arch"]) or \ archCompat(upkg["arch"], pkg["arch"]) or \ archCompat(pkg["arch"], upkg["arch"])):
def __handleUpdatePkglist(self, pkg, pkg_list): """Choose a package from a list of RpmPackage's pkg_list that has the same base arch as RpmPackage pkg, and add it to self.opresolver.
6be4efdfec9ca44df9c229742a9ae9af03091072 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/6be4efdfec9ca44df9c229742a9ae9af03091072/yum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 1891, 11264, 1098, 12, 2890, 16, 3475, 16, 3475, 67, 1098, 4672, 3536, 24529, 279, 2181, 628, 279, 666, 434, 534, 7755, 2261, 1807, 3475, 67, 1098, 716, 711, 326, 1967, 1026,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 1891, 11264, 1098, 12, 2890, 16, 3475, 16, 3475, 67, 1098, 4672, 3536, 24529, 279, 2181, 628, 279, 666, 434, 534, 7755, 2261, 1807, 3475, 67, 1098, 716, 711, 326, 1967, 1026,...
serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serv.settimeout(3) serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serv.bind(("", PORT)) serv.listen(5)
def capture_server(evt, buf): serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serv.settimeout(3) serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serv.bind(("", PORT)) serv.listen(5) try: conn, addr = serv.accept() except socket.timeout: pass else: n = 200 while n > 0: r, w, e = select.select([conn],...
aee5a827355b46b7a15ad7ea34293a734ab672a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/aee5a827355b46b7a15ad7ea34293a734ab672a8/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7477, 67, 3567, 12, 73, 11734, 16, 1681, 4672, 775, 30, 1487, 16, 3091, 273, 13515, 18, 9436, 1435, 1335, 2987, 18, 4538, 30, 1342, 469, 30, 290, 273, 4044, 1323, 290, 405, 374, 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, 7477, 67, 3567, 12, 73, 11734, 16, 1681, 4672, 775, 30, 1487, 16, 3091, 273, 13515, 18, 9436, 1435, 1335, 2987, 18, 4538, 30, 1342, 469, 30, 290, 273, 4044, 1323, 290, 405, 374, 30, ...
def sage_prefilter(self, line, continuation): """ Alternate prefilter for input.
def sage_prefilter(self, block, continuation): """ SAGE's prefilter for input. Given a string block (usually a line), return the preparsed version of it. INPUT: block -- string (usually a single line, but not always) continuation -- whether or not this line is a continuation.
def sage_prefilter(self, line, continuation): """ Alternate prefilter for input. """ try: line2 = do_prefilter_paste(line, continuation) except None: print "WARNING: An error occured in the SAGE parser while" print "parsing the following line:" print line print "Please report this as a bug (include the output of typi...
1541938692bbdd77923b3715e5694717ed037891 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/1541938692bbdd77923b3715e5694717ed037891/interpreter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 1484, 2188, 12, 2890, 16, 1203, 16, 17378, 4672, 3536, 348, 2833, 1807, 675, 2188, 364, 810, 18, 225, 16803, 279, 533, 1203, 261, 407, 3452, 279, 980, 3631, 327, 326, 675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 1484, 2188, 12, 2890, 16, 1203, 16, 17378, 4672, 3536, 348, 2833, 1807, 675, 2188, 364, 810, 18, 225, 16803, 279, 533, 1203, 261, 407, 3452, 279, 980, 3631, 327, 326, 675...
if len((self.config['series_name_override'][program['title'].lower()]).strip()) == 7: self.config['sid'] = self.config['series_name_override'][program['title'].lower()]
self.config['sid'] = self.config['series_name_override'][program['title'].lower()]
def _getScheduledRecordedTVGraphics(self, program, graphics_type): '''Get TV show graphics for Scheduled and Recorded TV programs return None if no graphics found return fullpath and filename of downloaded graphics file ''' if graphics_type == 'coverfile': graphics_type = 'poster'
da58d67ff802989f12b584ed8dfcff2d3581d752 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/da58d67ff802989f12b584ed8dfcff2d3581d752/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 10660, 426, 3850, 785, 15579, 17558, 12, 2890, 16, 5402, 16, 17313, 67, 723, 4672, 9163, 967, 399, 58, 2405, 17313, 364, 17286, 471, 868, 3850, 785, 399, 58, 25038, 327, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 10660, 426, 3850, 785, 15579, 17558, 12, 2890, 16, 5402, 16, 17313, 67, 723, 4672, 9163, 967, 399, 58, 2405, 17313, 364, 17286, 471, 868, 3850, 785, 399, 58, 25038, 327, 599, ...
while True: logpath, starttime, timenow, status = build(commands, config) email(logpath, starttime, timenow, status, config) time.sleep(wait_seconds)
logpath, starttime, timenow, status = build(commands, config) email(logpath, starttime, timenow, status, config)
def email(logpath, starttime, timenow, status, config): msg = """From: %(from)s
72a0b540c03a28be5077bae646258c897d4e5453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8055/72a0b540c03a28be5077bae646258c897d4e5453/slave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 12, 1330, 803, 16, 23437, 16, 1658, 275, 543, 16, 1267, 16, 642, 4672, 1234, 273, 3536, 1265, 30, 8975, 2080, 13, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 12, 1330, 803, 16, 23437, 16, 1658, 275, 543, 16, 1267, 16, 642, 4672, 1234, 273, 3536, 1265, 30, 8975, 2080, 13, 87, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.assert_(d.has_key('h'))
self.assertTrue('h' in d)
def h(z): return y + z
ee1e2c90ddec926208d140ae73eda8f97ae0305a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/ee1e2c90ddec926208d140ae73eda8f97ae0305a/test_scope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 12, 94, 4672, 327, 677, 397, 998, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 12, 94, 4672, 327, 677, 397, 998, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise ValueError, "invalid subgraph type (%s)"%sub.type
raise ValueError, "invalid subgraph type (%s) and degree (%s)"%(sub.type,degree)
def StrechAllSubgraphsF2(G): cur_G=G.Clone() cur_G.s_degree=dict() cur_G.s_type=dict() for sub in cur_G.subgraphs: if subgraph_dim_with_diff(cur_G, sub)>=0: sub_ext_atoms_str = FindExtMomentAtoms(sub) strech_var_str = "s%s"%cur_G.subgraphs.index(sub) sub_ext_path = [(i[0],i[1],strech_var_str) for i in FindExtMomentPat...
b13d63b831f32ecb691a2ac88e33cc9661fc8095 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4941/b13d63b831f32ecb691a2ac88e33cc9661fc8095/phi3R1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 934, 266, 343, 1595, 1676, 30016, 42, 22, 12, 43, 4672, 662, 67, 43, 33, 43, 18, 10930, 1435, 662, 67, 43, 18, 87, 67, 21361, 33, 1576, 1435, 662, 67, 43, 18, 87, 67, 723, 33, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 934, 266, 343, 1595, 1676, 30016, 42, 22, 12, 43, 4672, 662, 67, 43, 33, 43, 18, 10930, 1435, 662, 67, 43, 18, 87, 67, 21361, 33, 1576, 1435, 662, 67, 43, 18, 87, 67, 723, 33, 15...
"WHERE _ROWID_ = NEW._ROWID_ " %(table, column, column))
"WHERE _ROWID_ = NEW._ROWID_ ; " %(table, column, column))
def createTrigger(self, table, column, onAction, pinned=False): onAction = onAction.lower() name = "%s_%s" % (table, onAction) assert(onAction in ["insert", "update"])
490a0284cbbb406b602ed786a560a158b7f2ee9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/490a0284cbbb406b602ed786a560a158b7f2ee9f/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6518, 12, 2890, 16, 1014, 16, 1057, 16, 603, 1803, 16, 26193, 33, 8381, 4672, 603, 1803, 273, 603, 1803, 18, 8167, 1435, 508, 273, 2213, 87, 10185, 87, 6, 738, 261, 2121, 16, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6518, 12, 2890, 16, 1014, 16, 1057, 16, 603, 1803, 16, 26193, 33, 8381, 4672, 603, 1803, 273, 603, 1803, 18, 8167, 1435, 508, 273, 2213, 87, 10185, 87, 6, 738, 261, 2121, 16, 60...
if isinstance(sel, str):
if isinstance(sel, basestring):
def eval_print_amount(self, sel, list, msg): new_list = list if isinstance(sel, str): try: rex = re.compile(sel) except re.error: msg += " <Invalid regular expression %r>\n" % sel return new_list, msg new_list = [] for func in list: if rex.search(func_std_string(func)): new_list.append(func) else: count = len(list) i...
6f43299a9c3dad2d01fa466103002ae6a3b0f101 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/6f43299a9c3dad2d01fa466103002ae6a3b0f101/pstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 67, 1188, 67, 8949, 12, 2890, 16, 357, 16, 666, 16, 1234, 4672, 394, 67, 1098, 273, 666, 309, 1549, 12, 1786, 16, 10699, 4672, 775, 30, 28929, 273, 283, 18, 11100, 12, 1786, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 67, 1188, 67, 8949, 12, 2890, 16, 357, 16, 666, 16, 1234, 4672, 394, 67, 1098, 273, 666, 309, 1549, 12, 1786, 16, 10699, 4672, 775, 30, 28929, 273, 283, 18, 11100, 12, 1786, 13...
if "" != key.translate(idmap, LegalChars):
if len(filter(LegalChars.__contains__, key)) != len(key):
def set(self, key, val, coded_val, LegalChars=_LegalChars, idmap=_idmap): # First we verify that the key isn't a reserved word # Second we make sure it only contains legal characters if key.lower() in self._reserved: raise CookieError("Attempt to set a reserved key: %s" % key) if "" != key.translate(idmap, LegalChars):...
1a1c2ba2c90cd7efc93d61a9c6617f3aa3090256 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/1a1c2ba2c90cd7efc93d61a9c6617f3aa3090256/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 498, 16, 1244, 16, 29512, 67, 1125, 16, 17167, 287, 7803, 33, 67, 30697, 7803, 16, 612, 1458, 33, 67, 350, 1458, 4672, 468, 5783, 732, 3929, 716, 326, 498, 5177, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 498, 16, 1244, 16, 29512, 67, 1125, 16, 17167, 287, 7803, 33, 67, 30697, 7803, 16, 612, 1458, 33, 67, 350, 1458, 4672, 468, 5783, 732, 3929, 716, 326, 498, 5177, 1...
r""" If this is a p-adic modular form, return p.
r""" If this is a `p`-adic modular form, return `p`.
def prime(self): r""" If this is a p-adic modular form, return p.
51aabb4f4c1d25de708da4cd9e8295aeb8a186e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/51aabb4f4c1d25de708da4cd9e8295aeb8a186e7/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17014, 12, 2890, 4672, 436, 8395, 971, 333, 353, 279, 293, 17, 20333, 681, 2490, 646, 16, 327, 293, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17014, 12, 2890, 4672, 436, 8395, 971, 333, 353, 279, 293, 17, 20333, 681, 2490, 646, 16, 327, 293, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
txt = unicode(urllib.unquote(obj.target.encode('utf-8')), 'utf-8')
txt = unicode(urllib.unquote(obj.target.encode('utf-8')), 'utf-8', 'replace')
def writeLink(self,obj): """ Link nodes are intra wiki links """
c7c8a82992cee350fbc636937c2f933aec888376 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/c7c8a82992cee350fbc636937c2f933aec888376/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2098, 12, 2890, 16, 2603, 4672, 3536, 4048, 2199, 854, 316, 2033, 9050, 4716, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2098, 12, 2890, 16, 2603, 4672, 3536, 4048, 2199, 854, 316, 2033, 9050, 4716, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
f[k] = self._dict[k]
f[k.encode("ascii")] = self._dict[k]
def init_db(self): f = anydbm.open(_fname, 'n') for k in self._dict: f[k] = self._dict[k] f.close()
3978b4e32bc06e7ac843145e024f93c61458b012 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3978b4e32bc06e7ac843145e024f93c61458b012/test_anydbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1966, 12, 2890, 4672, 284, 273, 1281, 1966, 81, 18, 3190, 24899, 12749, 16, 296, 82, 6134, 364, 417, 316, 365, 6315, 1576, 30, 284, 63, 79, 18, 3015, 2932, 9184, 7923, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 67, 1966, 12, 2890, 4672, 284, 273, 1281, 1966, 81, 18, 3190, 24899, 12749, 16, 296, 82, 6134, 364, 417, 316, 365, 6315, 1576, 30, 284, 63, 79, 18, 3015, 2932, 9184, 7923, 65, ...
""" z = s
INPUT: s -- a string of the code from the cell to be executed C -- the cell object EXAMPLES: First, we set up a new notebook and worksheet. sage: nb = sage.server.notebook.notebook.Notebook(tmp_dir()) sage: nb.add_user('sage','sage','sage@sagemath.org',force=True) sage: W = nb.create_new_worksheet('Test', 'sage') W...
def check_for_system_switching(self, s, C): r""" Check for input cells that start with \code{\%foo}, where \var{foo} is an object with an eval method. """ z = s s = s.lstrip() S = self.system() if S != 'sage': if s.startswith('%sage'): s = after_first_word(s).lstrip() z = s else: return True, self._eval_cmd(S, s, os.pa...
e666891d07de03cf769eff86fcbd4144b8756907 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/e666891d07de03cf769eff86fcbd4144b8756907/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1884, 67, 4299, 67, 9610, 310, 12, 2890, 16, 272, 16, 385, 4672, 436, 8395, 2073, 364, 810, 5983, 716, 787, 598, 521, 710, 23241, 9, 11351, 5779, 1625, 521, 1401, 95, 11351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1884, 67, 4299, 67, 9610, 310, 12, 2890, 16, 272, 16, 385, 4672, 436, 8395, 2073, 364, 810, 5983, 716, 787, 598, 521, 710, 23241, 9, 11351, 5779, 1625, 521, 1401, 95, 11351, ...
""" Database Tables """
"""Database Tables"""
def request(self, cr, uid, name, request, context = {}):
1dc268e357fe6ce10746aa6f778e8fad1db095de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1dc268e357fe6ce10746aa6f778e8fad1db095de/olap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 590, 16, 819, 273, 2618, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 590, 16, 819, 273, 2618, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
newarray.append(subarray[0])
cur_array.append(subarray[0])
def parse_spec(mylines): myspec={} pos=0 colon=re.compile(":") trailing_comment=re.compile("#.*\n") newline=re.compile("\n") leading_white_space=re.compile("^\s+") white_space=re.compile("\s+") while pos<len(mylines): # Force the line to be clean # Remove Comments ( anything following # ) mylines[pos]=trailing_comment....
dbce1700b1e7db04d685467cc36da0e0c1a84ad8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/dbce1700b1e7db04d685467cc36da0e0c1a84ad8/catalyst_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2793, 12, 4811, 3548, 4672, 312, 1900, 705, 12938, 949, 33, 20, 13336, 33, 266, 18, 11100, 2932, 2773, 13, 7341, 67, 3469, 33, 266, 18, 11100, 2932, 7, 4509, 64, 82, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2793, 12, 4811, 3548, 4672, 312, 1900, 705, 12938, 949, 33, 20, 13336, 33, 266, 18, 11100, 2932, 2773, 13, 7341, 67, 3469, 33, 266, 18, 11100, 2932, 7, 4509, 64, 82, 7923, ...
if options.rignum.get() == 901: cmd="CMDSR -T 0" elif options.rignum.get() == 2509:
if options.rignum.get() == 2509:
def readinit(): global nparam,mrudir try: for i in range(len(params)): if badlist.count(i)>0: print 'Skipping bad entry in WSPR.INI:\a',params[i] continue key,value=params[i].split() if key == 'WSPRGeometry': root.geometry(value) elif key == 'MyCall': options.MyCall.set(value) elif key == 'MyGrid': options.MyGrid.set...
f41fef5858a544f41bea63d63493074842638a35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2394/f41fef5858a544f41bea63d63493074842638a35/wspr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2738, 13332, 2552, 290, 891, 16, 21387, 1100, 481, 775, 30, 364, 277, 316, 1048, 12, 1897, 12, 2010, 3719, 30, 309, 5570, 1098, 18, 1883, 12, 77, 13, 34, 20, 30, 1172, 296, 1687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2738, 13332, 2552, 290, 891, 16, 21387, 1100, 481, 775, 30, 364, 277, 316, 1048, 12, 1897, 12, 2010, 3719, 30, 309, 5570, 1098, 18, 1883, 12, 77, 13, 34, 20, 30, 1172, 296, 1687...
__namedColors = {}
_namedColors = {}
def getAllNamedColors(): #returns a dictionary of all the named ones in the module # uses a singleton for efficiency if __namedColors is not None: return __namedColors import colors __namedColors = {} for (name, value) in colors.__dict__.items(): if isinstance(value, Color): __namedColors[name] = value return __namedC...
ae7f8d797d822a5b6ac4442a1d8b238430be7f63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/ae7f8d797d822a5b6ac4442a1d8b238430be7f63/colors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5514, 7604, 12570, 13332, 468, 6154, 279, 3880, 434, 777, 326, 4141, 5945, 316, 326, 1605, 468, 4692, 279, 6396, 364, 30325, 309, 1001, 13188, 12570, 353, 486, 599, 30, 327, 1001, 13188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5514, 7604, 12570, 13332, 468, 6154, 279, 3880, 434, 777, 326, 4141, 5945, 316, 326, 1605, 468, 4692, 279, 6396, 364, 30325, 309, 1001, 13188, 12570, 353, 486, 599, 30, 327, 1001, 13188, ...
def safe_equal(x, y):
def safe_equal(x, y, TLS=TLS):
def safe_equal(x, y): # a specialized version for performance try: seeing = TLS.seeing_eq except AttributeError: seeing = TLS.seeing_eq = {} seeingkey = (id(x), id(y)) if seeingkey in seeing: return True seeing[seeingkey] = True try: return x == y finally: del seeing[seeingkey]
2190702654cb450e584e78f8f8b60296305c44aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/2190702654cb450e584e78f8f8b60296305c44aa/lltype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4183, 67, 9729, 12, 92, 16, 677, 16, 8098, 33, 9905, 4672, 468, 279, 29158, 1177, 364, 9239, 775, 30, 2621, 310, 273, 8098, 18, 5946, 310, 67, 11253, 1335, 6394, 30, 2621, 310, 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, 4183, 67, 9729, 12, 92, 16, 677, 16, 8098, 33, 9905, 4672, 468, 279, 29158, 1177, 364, 9239, 775, 30, 2621, 310, 273, 8098, 18, 5946, 310, 67, 11253, 1335, 6394, 30, 2621, 310, 273, ...
map = aClass._attrMap.items() map.sort()
map = aClass._attrMap if map: map = map.items() map.sort() else: map = []
def beginAttributes(self, aClass): "Append a list of annotated attributes of a class."
abfd438181f6ce017fcd8617f90cee3a490ecd19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/abfd438181f6ce017fcd8617f90cee3a490ecd19/graphdocpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 2498, 12, 2890, 16, 20148, 4672, 315, 5736, 279, 666, 434, 10529, 1677, 434, 279, 667, 1199, 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, 2376, 2498, 12, 2890, 16, 20148, 4672, 315, 5736, 279, 666, 434, 10529, 1677, 434, 279, 667, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended")
sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended")
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will...
68056760eb3ea24c9f38e98e013d2a603dceb54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/68056760eb3ea24c9f38e98e013d2a603dceb54d/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
self._tk = None
def close(self, isOK=True, reason=None): """Start closing the serial port. Does nothing if the serial is already closed or failed. Inputs: - isOK: if True, mark state as Closed, else Failed - reason: a string explaining why, or None to leave unchanged; please specify if isOK is false. """ #print "%s.close(isOK=%s, re...
8861073638c4cb2947725ca8b8e5a7078fd646bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6353/8861073638c4cb2947725ca8b8e5a7078fd646bc/TkSerial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 16, 353, 3141, 33, 5510, 16, 3971, 33, 7036, 4672, 3536, 1685, 7647, 326, 2734, 1756, 18, 225, 9637, 5083, 309, 326, 2734, 353, 1818, 4375, 578, 2535, 18, 225, 24472, 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, 1746, 12, 2890, 16, 353, 3141, 33, 5510, 16, 3971, 33, 7036, 4672, 3536, 1685, 7647, 326, 2734, 1756, 18, 225, 9637, 5083, 309, 326, 2734, 353, 1818, 4375, 578, 2535, 18, 225, 24472, 3...
for i in range(len(self.__unpacked_data_elms__)):
for i in xrange(len(self.__unpacked_data_elms__)):
def __pack__(self): new_values = [] for i in range(len(self.__unpacked_data_elms__)): for key in self.__keys__[i]: new_val = getattr(self, key) old_val = self.__unpacked_data_elms__[i] # In the case of Unions, when the first changed value # is picked the loop is exited if new_val != old_val: break new_values.appen...
21cbdaf9ea57ad8ceb3b39cbd606211597c127d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/213/21cbdaf9ea57ad8ceb3b39cbd606211597c127d9/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2920, 972, 12, 2890, 4672, 225, 394, 67, 2372, 273, 5378, 225, 364, 277, 316, 12314, 12, 1897, 12, 2890, 16186, 17309, 329, 67, 892, 67, 292, 959, 972, 3719, 30, 225, 364, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2920, 972, 12, 2890, 4672, 225, 394, 67, 2372, 273, 5378, 225, 364, 277, 316, 12314, 12, 1897, 12, 2890, 16186, 17309, 329, 67, 892, 67, 292, 959, 972, 3719, 30, 225, 364, 498, ...
items.reverse()
items=self.reverse_items(items)
def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data, colspan, section, md, treeData, level=0, args=None, simple_type={type(''):0, type(1):0, type(1.0):0}.has_key, ): "Render a tree as a table" have_arg=args.has_key exp=0 if level >= 0: urlattr=args['url'] if urlattr and hasattr(self, urlattr): tpUr...
2e1f1428414aba4dd77cf539c991228f632ae73a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2e1f1428414aba4dd77cf539c991228f632ae73a/TreeTag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8071, 3420, 7775, 12, 2890, 16, 612, 16, 1365, 67, 718, 16, 880, 16, 919, 16, 720, 2019, 16, 3122, 16, 501, 16, 20856, 16, 2442, 16, 3481, 16, 2151, 751, 16, 1801, 33, 20, 16, 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, 8071, 3420, 7775, 12, 2890, 16, 612, 16, 1365, 67, 718, 16, 880, 16, 919, 16, 720, 2019, 16, 3122, 16, 501, 16, 20856, 16, 2442, 16, 3481, 16, 2151, 751, 16, 1801, 33, 20, 16, 833,...
return socket.gethostbyname(name)
try: return socket.gethostbyname(name) except socket.gaierror: raise NetworkAddressError("The name '%s' could not be resolved." % name) except TypeError: raise ArgumentError("gethostbyname() takes a string as argument.")
def gethostbyname(name): """ <Purpose> Provides information about a hostname. Calls socket.gethostbyname(). Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such as '100.50.200.5'. If the host name is an IPv4 address itself it is returned unchanged. <Arguments> name: The host nam...
0731dd0f39a2f629a0ee310099687053eaec0920 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/0731dd0f39a2f629a0ee310099687053eaec0920/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2564, 1637, 529, 12, 529, 4672, 3536, 411, 10262, 4150, 34, 28805, 1779, 2973, 279, 5199, 18, 23665, 2987, 18, 75, 546, 669, 1637, 529, 7675, 16820, 279, 1479, 508, 358, 7853, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2564, 1637, 529, 12, 529, 4672, 3536, 411, 10262, 4150, 34, 28805, 1779, 2973, 279, 5199, 18, 23665, 2987, 18, 75, 546, 669, 1637, 529, 7675, 16820, 279, 1479, 508, 358, 7853, 24, ...
'address_allotment_id' : fields.many2one('res.partner.address', 'Allotment Partner'), 'product_uom_qty': fields.float('Quantity (UoM)', digits=(16,2), required=True),
'address_allotment_id': fields.many2one('res.partner.address', 'Allotment Partner'), 'product_uom_qty': fields.float('Quantity (UoM)', digits=(16, 2), required=True),
def _number_packages(self, cr, uid, ids, field_name, arg, context): res = {} for line in self.browse(cr, uid, ids): try: res[line.id] = int(line.product_uom_qty / line.product_packaging.qty) except: res[line.id] = 1 return res
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2696, 67, 10308, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 16, 1501, 16, 819, 4672, 400, 273, 2618, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2696, 67, 10308, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 16, 1501, 16, 819, 4672, 400, 273, 2618, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, ...
parmpagename, parmyear, parmmonth, parmoffset, parmoffset2, parmheight6, anniversary = \ [thispage], currentyear, currentmonth, 0, 0, 0, 0
parmpagename, parmyear, parmmonth, parmoffset, parmoffset2, parmheight6, anniversary, parmtemplate = \ [thispage], currentyear, currentmonth, 0, 0, 0, 0, ''
def execute(macro, text): request = macro.request formatter = macro.formatter _ = request.getText # return immediately if getting links for the current page if request.mode_getpagelinks: return '' args_re = re.compile(_args_re_pattern) currentyear, currentmonth, currentday, h, m, s, wd, yd, ds = request.user.getTime...
8df0648e183013444c9153b284dd9390e635d11b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/8df0648e183013444c9153b284dd9390e635d11b/MonthCalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 26448, 16, 977, 4672, 590, 273, 11522, 18, 2293, 4453, 273, 11522, 18, 12354, 389, 273, 590, 18, 588, 1528, 225, 468, 327, 7636, 309, 8742, 4716, 364, 326, 783, 1363, 309, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26448, 16, 977, 4672, 590, 273, 11522, 18, 2293, 4453, 273, 11522, 18, 12354, 389, 273, 590, 18, 588, 1528, 225, 468, 327, 7636, 309, 8742, 4716, 364, 326, 783, 1363, 309, 59...
compressed = zlib.compress(raw)
compressed = zlib.compress(raw)
def loadImageFromPIL(self, PILImage): "Extracts the stream, width and height" zlib = import_zlib() if not zlib: return #standardize it to RGB. We could be more optimal later. if PILImage.mode <> 'RGB': PILImage = PILImage.convert('RGB') imgwidth, imgheight = PILImage.size raw = PILImage.tostring() assert(len(raw) == i...
165f597d1c3177ed3af75f4afc9562e6bb26b4c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/165f597d1c3177ed3af75f4afc9562e6bb26b4c1/pdfdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 2040, 1265, 1102, 48, 12, 2890, 16, 29407, 2040, 4672, 315, 12809, 326, 1407, 16, 1835, 471, 2072, 6, 24220, 273, 1930, 67, 94, 2941, 1435, 309, 486, 24220, 30, 327, 468, 10005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2040, 1265, 1102, 48, 12, 2890, 16, 29407, 2040, 4672, 315, 12809, 326, 1407, 16, 1835, 471, 2072, 6, 24220, 273, 1930, 67, 94, 2941, 1435, 309, 486, 24220, 30, 327, 468, 10005, ...
'datas': base64.encodestring(data),
'datas': base64.encodestring(data or ''),
def put(self, cursor, user, uri, data, content_type, context=None, cache=None): from DAV.errors import DAV_Forbidden from DAV.utils import get_uriparentpath, get_urifilename object_name, object_id = self._uri2object(cursor, user, get_uriparentpath(uri), context=context, cache=cache) if not object_name \ or object_name ...
5060aa16de85036bc324a25211b14af2b9d12ae8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/5060aa16de85036bc324a25211b14af2b9d12ae8/webdav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 501, 16, 913, 67, 723, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 628, 463, 5856, 18, 4324, 1930, 463, 5856, 67, 16553, 628, 463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 501, 16, 913, 67, 723, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 628, 463, 5856, 18, 4324, 1930, 463, 5856, 67, 16553, 628, 463, ...
expected_response = "User settings stored correctly"
expected_response = "User settings saved correctly"
def test_select_records_per_group(self): """webuser - test of user preferences setting"""
a67b1e2b8f8778f706606e0d502b758f49163a35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/a67b1e2b8f8778f706606e0d502b758f49163a35/webuser_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4025, 67, 7094, 67, 457, 67, 1655, 12, 2890, 4672, 3536, 4875, 1355, 300, 1842, 434, 729, 12750, 3637, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4025, 67, 7094, 67, 457, 67, 1655, 12, 2890, 4672, 3536, 4875, 1355, 300, 1842, 434, 729, 12750, 3637, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hbox.add(gtk.Label(_('Angle') + ':'))
hbox.add(gtk.Label(_('Angle:')))
def __makeAngleProperty(self): self.angle_spin = gtk.SpinButton(gtk.Adjustment(0.0, -360.0, 360.0, 0.1, 100.0, 0.0), 1.0, 1) self.detect_angle_button = gtk.Button(_('Detect')) hbox = gtk.HBox() hbox.add(gtk.Label(_('Angle') + ':')) hbox.add(self.angle_spin) vbox = gtk.VBox() vbox.pack_start(hbox, False) vbox.pack_start...
1baf639b7c0b78357342a021c71b70a4eb7e2399 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3764/1baf639b7c0b78357342a021c71b70a4eb7e2399/widgetPresenter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6540, 8467, 1396, 12, 2890, 4672, 365, 18, 4341, 67, 22876, 273, 22718, 18, 3389, 267, 3616, 12, 4521, 79, 18, 19985, 12, 20, 18, 20, 16, 300, 29751, 18, 20, 16, 12360, 18, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6540, 8467, 1396, 12, 2890, 4672, 365, 18, 4341, 67, 22876, 273, 22718, 18, 3389, 267, 3616, 12, 4521, 79, 18, 19985, 12, 20, 18, 20, 16, 300, 29751, 18, 20, 16, 12360, 18, 20,...
print " looking at", k, "=", v, "on", sheet
def setMemberProperties(self, mapping, force_local = 0): # Sets the properties given in the MemberDataTool. tool = self.getTool() print "setMemberProperties" # we could pay attention to force_local here... if IPluggableAuthService.isImplementedBy(self.acl_users): user = self.getUser() sheets = getattr(user, 'getOrdered...
90f3ba5c455c21bca62a60a26a661ef024c55991 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/90f3ba5c455c21bca62a60a26a661ef024c55991/memberdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4419, 2297, 12, 2890, 16, 2874, 16, 2944, 67, 3729, 273, 374, 4672, 468, 11511, 326, 1790, 864, 316, 326, 8596, 751, 6364, 18, 5226, 273, 365, 18, 588, 6364, 1435, 1172, 315, 542,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4419, 2297, 12, 2890, 16, 2874, 16, 2944, 67, 3729, 273, 374, 4672, 468, 11511, 326, 1790, 864, 316, 326, 8596, 751, 6364, 18, 5226, 273, 365, 18, 588, 6364, 1435, 1172, 315, 542,...
env['EPSTOPDFCOM'] = '$EPSTOPDF $EPSTOPDFFLAGS ${SOURCE} -o ${TARGET}'
env['EPSTOPDFCOM'] = '$EPSTOPDF $EPSTOPDFFLAGS ${SOURCE} --outfile=${TARGET}'
def generate2(env): bld = env['BUILDERS']['PDF'] #bld.add_action('.ps', EpsPdfAction) # this is covered by direct Ghostcript action in gs.py bld.add_action('.eps', EpsPdfAction) env['EPSTOPDF'] = 'epstopdf' env['EPSTOPDFFLAGS'] = SCons.Util.CLVar('') env['EPSTOPDFCOM'] = '$EPSTOPDF $EPSTOPDFFLAGS ${SOURCE} -o ...
e3819dfa0ab9564aad3869ba7b043d9247f9ef7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/e3819dfa0ab9564aad3869ba7b043d9247f9ef7b/pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 22, 12, 3074, 4672, 324, 1236, 273, 1550, 3292, 3000, 2627, 4179, 55, 21712, 17508, 3546, 468, 70, 1236, 18, 1289, 67, 1128, 2668, 18, 1121, 2187, 225, 512, 1121, 18562, 1803, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 22, 12, 3074, 4672, 324, 1236, 273, 1550, 3292, 3000, 2627, 4179, 55, 21712, 17508, 3546, 468, 70, 1236, 18, 1289, 67, 1128, 2668, 18, 1121, 2187, 225, 512, 1121, 18562, 1803, 13, ...
print 'registered font %s' % fontName dumpFontData()
def _SWRecover(text, fontName, fontSize, encoding): '''This is called when _rl_accel's database doesn't know about a font. Currently encoding is always a dummy. ''' try: print 'Attempting to register', fontName font = getFont(fontName) registerFont(font) print 'registered font %s' % fontName dumpFontData() return _stri...
b5a502c8728d74ed1787bcd8581771c30a2e646d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/b5a502c8728d74ed1787bcd8581771c30a2e646d/pdfmetrics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18746, 27622, 12, 955, 16, 3512, 461, 16, 16746, 16, 2688, 4672, 9163, 2503, 353, 2566, 1347, 389, 1321, 67, 30737, 1807, 2063, 3302, 1404, 5055, 2973, 279, 3512, 18, 15212, 2688, 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, 389, 18746, 27622, 12, 955, 16, 3512, 461, 16, 16746, 16, 2688, 4672, 9163, 2503, 353, 2566, 1347, 389, 1321, 67, 30737, 1807, 2063, 3302, 1404, 5055, 2973, 279, 3512, 18, 15212, 2688, 3...
self.assertEqual(list(a), range(2, n))
self.assertEqual(list(a), range(100, n))
def irange(n): for i in xrange(n): yield i
9d7f0ec6c4ab535fc3d876ab7bbdc46393ad5147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9d7f0ec6c4ab535fc3d876ab7bbdc46393ad5147/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 3676, 12, 82, 4672, 364, 277, 316, 12314, 12, 82, 4672, 2824, 277, 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, 277, 3676, 12, 82, 4672, 364, 277, 316, 12314, 12, 82, 4672, 2824, 277, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"Go to parent directory"
"""Change into the parent directory."""
def ftp_CDUP(self, line): "Go to parent directory" # Note: RFC 959 says that code 200 is required but it also says that # CDUP uses the same codes as CWD. # FIX #14 self.ftp_CWD('..')
367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 10160, 3079, 12, 2890, 16, 980, 4672, 3536, 3043, 1368, 326, 982, 1867, 12123, 468, 3609, 30, 8372, 2468, 6162, 20185, 716, 981, 4044, 353, 1931, 1496, 518, 2546, 20185, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 10160, 3079, 12, 2890, 16, 980, 4672, 3536, 3043, 1368, 326, 982, 1867, 12123, 468, 3609, 30, 8372, 2468, 6162, 20185, 716, 981, 4044, 353, 1931, 1496, 518, 2546, 20185, 716, ...
print "Got a queries exceeded error. Sleeping for %d hours..." % (config.copyright_exceeded_in_queries_sleep_hours)
error("Got a queries exceeded error. Sleeping for %d hours..." % (config.copyright_exceeded_in_queries_sleep_hours))
def exceeded_in_queries(engine): """Behavior if an exceeded error occur.""" # Disable search engine if config.copyright_exceeded_in_queries == 1: exec('config.copyright_' + engine + ' = False') # Sleeping if config.copyright_exceeded_in_queries == 2: print "Got a queries exceeded error. Sleeping for %d hours..." % (co...
df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12428, 67, 267, 67, 13748, 12, 8944, 4672, 3536, 9212, 309, 392, 12428, 555, 3334, 12123, 225, 468, 10639, 1623, 4073, 309, 642, 18, 29187, 67, 338, 5816, 67, 267, 67, 13748, 422, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12428, 67, 267, 67, 13748, 12, 8944, 4672, 3536, 9212, 309, 392, 12428, 555, 3334, 12123, 225, 468, 10639, 1623, 4073, 309, 642, 18, 29187, 67, 338, 5816, 67, 267, 67, 13748, 422, 404, ...
self.total_rtt = None self.rtts = [] self.timeout_counter = 0
self.total_rtt = None self.rtts = [] self.timeout_counter = 0 self.slowness_counter = 0 self.closed = False
def __init__(self): PathSupport.Circuit.__init__(self) self.total_rtt = None # double (sec) self.rtts = [] # list of partial rtts: 0-1-2 self.timeout_counter = 0 # close on reaching a limit
5c07e1b6d34f16556018f8177a0bd4db44e9e733 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3762/5c07e1b6d34f16556018f8177a0bd4db44e9e733/op-addon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2666, 6289, 18, 21719, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4963, 67, 86, 748, 273, 599, 1377, 468, 1645, 261, 3321, 13, 365, 18, 86, 748, 87, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2666, 6289, 18, 21719, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4963, 67, 86, 748, 273, 599, 1377, 468, 1645, 261, 3321, 13, 365, 18, 86, 748, 87, 27...
self.dirtyRows[obj] = 1
self.dirtyRows.add(obj)
def insertRow(self, obj): """Mark on object for inserting when sync()ing.""" if self.deletedRows.has_key(obj): del self.deletedRows[obj] self.dirtyRows[obj] = 1 else: self.insertedRows[obj] = 1
99ef8dc45ac95cf0f7340c6550585958fa21eeac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/99ef8dc45ac95cf0f7340c6550585958fa21eeac/rowjournal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 1999, 12, 2890, 16, 1081, 4672, 3536, 3882, 603, 733, 364, 21079, 1347, 3792, 1435, 310, 12123, 309, 365, 18, 8600, 4300, 18, 5332, 67, 856, 12, 2603, 4672, 1464, 365, 18, 8600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 1999, 12, 2890, 16, 1081, 4672, 3536, 3882, 603, 733, 364, 21079, 1347, 3792, 1435, 310, 12123, 309, 365, 18, 8600, 4300, 18, 5332, 67, 856, 12, 2603, 4672, 1464, 365, 18, 8600, ...
for x in os.listdir(directory_category): path = directory_category + "/" + x
for pluginname in os.listdir(directory_category): path = directory_category + "/" + pluginname
def readPluginList(self, directory): """enumerates plugins""" categories = os.listdir(directory) new_plugins = [ ] for c in categories: directory_category = directory + c if not os.path.isdir(directory_category): continue open(directory_category + "/__init__.py", "a").close() for x in os.listdir(directory_category):...
408a1d7daf4b4ba42a1baabf9bf7886f9c235282 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/408a1d7daf4b4ba42a1baabf9bf7886f9c235282/PluginComponent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 3773, 682, 12, 2890, 16, 1867, 4672, 3536, 7924, 264, 815, 4799, 8395, 225, 6477, 273, 1140, 18, 1098, 1214, 12, 5149, 13, 225, 394, 67, 8057, 273, 306, 308, 225, 364, 276, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 3773, 682, 12, 2890, 16, 1867, 4672, 3536, 7924, 264, 815, 4799, 8395, 225, 6477, 273, 1140, 18, 1098, 1214, 12, 5149, 13, 225, 394, 67, 8057, 273, 306, 308, 225, 364, 276, 316, ...
for aRow in [[['7', self.numberButton], ['4', self.numberButton], ['1', self.numberButton], ['C', self.clear]], [['8', self.numberButton], ['5', self.numberButton], ['2', self.numberButton], ['0', self.numberButton]], [['9', self.numberButton], ['6', self.numberButton], ['3', self.numberButton], ['.', self.numberButton...
for aRow in ((('7', self.numberButton), ('4', self.numberButton), ('1', self.numberButton), ('C', self.clear)), (('8', self.numberButton), ('5', self.numberButton), ('2', self.numberButton), ('0', self.numberButton)), (('9', self.numberButton), ('6', self.numberButton), ('3', self.numberButton), ('.', self.numberButton...
def __init__(self, **kw): super(CalculatorController, self).__init__(**kw) self.win.title = 'Calculator' vbox = cimarron.skin.VBox(parent=self.win) self.display = cimarron.skin.Label(parent=vbox, text='0') hbox = cimarron.skin.HBox(parent=vbox) for aRow in [[['7', self.numberButton], ['4', self.numberButton], ['1', sel...
bfdbd0cfbc563ae1233f45c62dbb1dee16054b81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/bfdbd0cfbc563ae1233f45c62dbb1dee16054b81/calculator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 9987, 4672, 2240, 12, 19278, 2933, 16, 365, 2934, 972, 2738, 972, 12, 636, 9987, 13, 365, 18, 8082, 18, 2649, 273, 296, 19278, 11, 331, 2147, 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, 1001, 2738, 972, 12, 2890, 16, 2826, 9987, 4672, 2240, 12, 19278, 2933, 16, 365, 2934, 972, 2738, 972, 12, 636, 9987, 13, 365, 18, 8082, 18, 2649, 273, 296, 19278, 11, 331, 2147, 273, ...
autodir = host.get_autodir()
def _wait_on_client(self, host, command): """ Wait for the client to signal that it's finished by writing a byte into AUTODIR/profilers.command. Only waits for 30 seconds before giving up. """ autodir = host.get_autodir() path = os.path.join(autodir, "profiler.%s" % command) try: host.run("cat %s" % path, ignore_status...
d16ba8fddbf6985a577ca31bfe9030c19678bb78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/d16ba8fddbf6985a577ca31bfe9030c19678bb78/profiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7048, 67, 265, 67, 2625, 12, 2890, 16, 1479, 16, 1296, 4672, 3536, 5838, 364, 326, 1004, 358, 4277, 716, 518, 1807, 6708, 635, 7410, 279, 1160, 1368, 432, 1693, 1212, 7937, 19, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7048, 67, 265, 67, 2625, 12, 2890, 16, 1479, 16, 1296, 4672, 3536, 5838, 364, 326, 1004, 358, 4277, 716, 518, 1807, 6708, 635, 7410, 279, 1160, 1368, 432, 1693, 1212, 7937, 19, 68...
attribute = []
attributes = [] voName = ''
def getVOMSAttributes(proxy,switch="all"): """ Return VOMS proxy attributes as list elements if switch="all" (default) OR return the string prepared to be stored in DB if switch="db" OR return the string of elements to be used as the option string in voms-proxy-init if switch="option". If a given proxy is a grid proxy,...
0c6b8655865822a41748b548f4a80018d03206c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/0c6b8655865822a41748b548f4a80018d03206c7/GridCredentials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 1872, 55, 2498, 12, 5656, 16, 9610, 1546, 454, 6, 4672, 3536, 2000, 776, 1872, 55, 2889, 1677, 487, 666, 2186, 309, 1620, 1546, 454, 6, 261, 1886, 13, 4869, 327, 326, 533, 8208,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 1872, 55, 2498, 12, 5656, 16, 9610, 1546, 454, 6, 4672, 3536, 2000, 776, 1872, 55, 2889, 1677, 487, 666, 2186, 309, 1620, 1546, 454, 6, 261, 1886, 13, 4869, 327, 326, 533, 8208,...
"""class to hold iwparam data """
""" Class to hold iwparam data. """
def getMAC(self, packed_data): """ extracts mac addr from packed data and returns it as str """ mac_addr = struct.unpack('xxBBBBBB', packed_data[:8]) return "%02X:%02X:%02X:%02X:%02X:%02X" % mac_addr
05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2108, 2226, 12, 2890, 16, 12456, 67, 892, 4672, 3536, 16469, 5318, 3091, 628, 12456, 501, 471, 1135, 518, 487, 609, 3536, 5318, 67, 4793, 273, 1958, 18, 17309, 2668, 5279, 9676, 9676, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2108, 2226, 12, 2890, 16, 12456, 67, 892, 4672, 3536, 16469, 5318, 3091, 628, 12456, 501, 471, 1135, 518, 487, 609, 3536, 5318, 67, 4793, 273, 1958, 18, 17309, 2668, 5279, 9676, 9676, 96...
if not self.use_latex_toc and self.topic_class == 'contents': self.body.append( '\\end{list}\n' )
if self.topic_class == 'contents': if not self.use_latex_toc: self.body.append( '\\end{list}\n' )
def depart_bullet_list(self, node): if not self.use_latex_toc and self.topic_class == 'contents': self.body.append( '\\end{list}\n' ) else: self.body.append( '\\end{itemize}\n' )
3449eb547b826ebeae4cc2d414ffd515229b5a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/3449eb547b826ebeae4cc2d414ffd515229b5a2e/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 70, 19994, 67, 1098, 12, 2890, 16, 756, 4672, 309, 365, 18, 10476, 67, 1106, 422, 296, 3980, 4278, 309, 486, 365, 18, 1202, 67, 26264, 67, 1391, 30, 365, 18, 3432, 18, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 70, 19994, 67, 1098, 12, 2890, 16, 756, 4672, 309, 365, 18, 10476, 67, 1106, 422, 296, 3980, 4278, 309, 486, 365, 18, 1202, 67, 26264, 67, 1391, 30, 365, 18, 3432, 18, 692...
else: return False except:
if capability == "addeditors": if capab(user.name, "admin"): return True if capability == "admin": if capab(user.name, "owner"): return True if capability in capabilities: return True else:
def capab(prefix, capability): if prefix.find('!') > 0: user = prefix[:prefix.find('!')] else: user = prefix try: if 'editfactoids' in list(ircdb.users.getUser(prefix).capabilities): return True else: return False except: return False
4de83949cb6c8304bfd45f98fb98f9b817d7f680 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3105/4de83949cb6c8304bfd45f98fb98f9b817d7f680/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3523, 378, 12, 3239, 16, 12593, 4672, 309, 1633, 18, 4720, 2668, 5124, 13, 405, 374, 30, 729, 273, 1633, 10531, 3239, 18, 4720, 2668, 5124, 25887, 469, 30, 729, 273, 1633, 775, 30, 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, 3523, 378, 12, 3239, 16, 12593, 4672, 309, 1633, 18, 4720, 2668, 5124, 13, 405, 374, 30, 729, 273, 1633, 10531, 3239, 18, 4720, 2668, 5124, 25887, 469, 30, 729, 273, 1633, 775, 30, 309...
method = getattr(content_instance, self.vocabulary, None)
method = getattr(content_instance, value, None)
def Vocabulary(self, content_instance=None): value = self.vocabulary if not isinstance(value, DisplayList): if content_instance is not None and type(value) is StringType: method = getattr(content_instance, self.vocabulary, None) if method and callable(method): value = method()
e6befb5fc921bbc4f8030831729614059e2fc643 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/e6befb5fc921bbc4f8030831729614059e2fc643/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 776, 23348, 12, 2890, 16, 913, 67, 1336, 33, 7036, 4672, 460, 273, 365, 18, 15913, 13631, 309, 486, 1549, 12, 1132, 16, 9311, 682, 4672, 309, 913, 67, 1336, 353, 486, 599, 471, 618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 776, 23348, 12, 2890, 16, 913, 67, 1336, 33, 7036, 4672, 460, 273, 365, 18, 15913, 13631, 309, 486, 1549, 12, 1132, 16, 9311, 682, 4672, 309, 913, 67, 1336, 353, 486, 599, 471, 618, ...
if not os.path.isfile (init_py):
if os.path.isfile (init_py): return init_py else:
def check_package (self, package, package_dir):
5402f4d122edbc3d52589a84b5f6610895a5ed71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5402f4d122edbc3d52589a84b5f6610895a5ed71/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5610, 261, 2890, 16, 2181, 16, 2181, 67, 1214, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5610, 261, 2890, 16, 2181, 16, 2181, 67, 1214, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
elif (text[i-1][-1] in (" ", "\n",) or text[i+1][0] in (" ", "\n",)):
elif (text[i-1][-1] in (" ", "\n",) or text[i+1][0] in (" ", "\n",)):
def check_whitespace(self): i = 0 text = self.text while i < len(text): if text[i] is self.white_space: if i == 0 or i == len(text)-1: text[0:0] = [" "] # del? XXX this is either a bug or a missing comment - what does that mean? why 0:0? i += 1 elif (text[i-1][-1] in (" ", "\n",) or # last char of previous ...
024e6ae8b32c9f5202b3bf6a465b921a38f26ea1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/024e6ae8b32c9f5202b3bf6a465b921a38f26ea1/text_html_text_x_moin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 18777, 12, 2890, 4672, 277, 273, 374, 977, 273, 365, 18, 955, 1323, 277, 411, 562, 12, 955, 4672, 309, 977, 63, 77, 65, 353, 365, 18, 14739, 67, 2981, 30, 309, 277, 422, 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, 866, 67, 18777, 12, 2890, 4672, 277, 273, 374, 977, 273, 365, 18, 955, 1323, 277, 411, 562, 12, 955, 4672, 309, 977, 63, 77, 65, 353, 365, 18, 14739, 67, 2981, 30, 309, 277, 422, 3...
def imagecapture(self, winName = None, width = None, height = None, x = 0, y = 0): if winName:
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): if window_name:
def imagecapture(self, winName = None, width = None, height = None, x = 0, y = 0): if winName: acc = None for gui in self._list_guis(): if self._match_name_to_acc(winName, gui): if 'Component' in pyatspi.listInterfaces(gui): acc = gui break if not acc: raise LdtpServerException('No window matches %s' % winName) icompon...
81c8c8cd474c93e12d233ad2acdc3fffaf348fd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11266/81c8c8cd474c93e12d233ad2acdc3fffaf348fd9/generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1316, 19250, 12, 2890, 16, 2742, 67, 529, 273, 599, 16, 619, 273, 374, 16, 677, 273, 374, 16, 1835, 273, 599, 16, 2072, 273, 599, 4672, 309, 2742, 67, 529, 30, 4078, 273, 599, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1316, 19250, 12, 2890, 16, 2742, 67, 529, 273, 599, 16, 619, 273, 374, 16, 677, 273, 374, 16, 1835, 273, 599, 16, 2072, 273, 599, 4672, 309, 2742, 67, 529, 30, 4078, 273, 599, 364, ...
value = self.cl.get(self.nodeid, property)
if isinstance(propclass, hyperdb.Link: value = [self.cl.get(self.nodeid, property)] else: value = self.cl.get(self.nodeid, property)
def __call__(self, property, **args): propclass = self.properties[property] if self.nodeid: value = self.cl.get(self.nodeid, property) elif self.filterspec is not None: value = self.filterspec.get(property, []) else: value = [] if (isinstance(propclass, hyperdb.Link) or isinstance(propclass, hyperdb.Multilink)): linkcl...
b27451730e44737b39ff26a15c852d028fe9750c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b27451730e44737b39ff26a15c852d028fe9750c/htmltemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1272, 16, 2826, 1968, 4672, 2270, 1106, 273, 365, 18, 4738, 63, 4468, 65, 309, 365, 18, 2159, 350, 30, 225, 309, 1549, 12, 5986, 1106, 16, 9512, 1966, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1272, 16, 2826, 1968, 4672, 2270, 1106, 273, 365, 18, 4738, 63, 4468, 65, 309, 365, 18, 2159, 350, 30, 225, 309, 1549, 12, 5986, 1106, 16, 9512, 1966, ...
be used to decode a Python source file. It requires one argment, readline,
be used to decode a Python source file. It requires one argment, readline,
def detect_encoding(readline): """ The detect_encoding() function is used to detect the encoding that should be used to decode a Python source file. It requires one argment, readline, in the same way as the tokenize() generator. It will call readline a maximum of twice, and return the encoding used (as a string) and a...
1d5b9c6cf9ab130d15692ac8c977a63ef162c154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/1d5b9c6cf9ab130d15692ac8c977a63ef162c154/tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 5999, 12, 896, 1369, 4672, 3536, 1021, 5966, 67, 5999, 1435, 445, 353, 1399, 358, 5966, 326, 2688, 716, 1410, 506, 1399, 358, 2495, 279, 6600, 1084, 585, 18, 225, 2597, 4991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 5999, 12, 896, 1369, 4672, 3536, 1021, 5966, 67, 5999, 1435, 445, 353, 1399, 358, 5966, 326, 2688, 716, 1410, 506, 1399, 358, 2495, 279, 6600, 1084, 585, 18, 225, 2597, 4991, ...
trace_type="Node" trace_ids=[] def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message)
def message_focus (message): if classname != focus_type: return if peer_object_id in focus_ids or \ (object and primary_key in object and object[primary_key] in focus_ids): message_verbose("peer_obj : %d [[%r]]"%(peer_object_id,peer_object), header='FOCUS '+message) if object: message_verbose("local_obj : <<%r>>"%...
def sync(objects, peer_objects, classobj): """ Synchronizes two dictionaries of objects. objects should be a dictionary of local objects keyed on their foreign identifiers. peer_objects should be a dictionary of foreign objects keyed on their local (i.e., foreign to us) identifiers. Returns a final dictionary of local ...
be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 6911, 16, 4261, 67, 6911, 16, 667, 2603, 4672, 3536, 26535, 3128, 2795, 16176, 434, 2184, 18, 2184, 1410, 506, 279, 3880, 434, 1191, 2184, 17408, 603, 3675, 5523, 9863, 18, 426...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 6911, 16, 4261, 67, 6911, 16, 667, 2603, 4672, 3536, 26535, 3128, 2795, 16176, 434, 2184, 18, 2184, 1410, 506, 279, 3880, 434, 1191, 2184, 17408, 603, 3675, 5523, 9863, 18, 426...
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect((host, port))
self.sock = socket.create_connection((host, port))
def open(self, host = '', port = IMAP4_PORT): """Setup connection to remote server on "host:port" (default: localhost:standard IMAP4 port). This connection will be used by the routines: read, readline, send, shutdown. """ self.host = host self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) se...
26ed2e3bc3bb9b5467fc256e77d87cf144b37c1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/26ed2e3bc3bb9b5467fc256e77d87cf144b37c1b/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 6246, 2203, 24, 67, 6354, 4672, 3536, 7365, 1459, 358, 2632, 1438, 603, 315, 2564, 30, 655, 6, 261, 1886, 30, 17365, 30, 10005, 6246, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 6246, 2203, 24, 67, 6354, 4672, 3536, 7365, 1459, 358, 2632, 1438, 603, 315, 2564, 30, 655, 6, 261, 1886, 30, 17365, 30, 10005, 6246, 2...
self.frame.Show(True)
self.frame.Show() self.frame.Raise()
def OnInit(self): showsplash = False try: DV.prefs = DamnVidPrefs() DV.lang = DV.prefs.get('locale') DamnLoadCurrentLocale() if DV.prefs.get('splashscreen') == 'True': splash = DamnSplashScreen() clock = time.time() showsplash = True splash.Show() DV.prefs = None except: pass self.frame = DamnMainFrame(None, -1, DV.l('...
b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 2405, 13106, 961, 273, 1083, 775, 30, 463, 58, 18, 1484, 2556, 273, 463, 301, 82, 58, 350, 1386, 2556, 1435, 463, 58, 18, 4936, 273, 463, 58, 18, 1484, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2570, 12, 2890, 4672, 2405, 13106, 961, 273, 1083, 775, 30, 463, 58, 18, 1484, 2556, 273, 463, 301, 82, 58, 350, 1386, 2556, 1435, 463, 58, 18, 4936, 273, 463, 58, 18, 1484, 25...
result = eval( self.checkstring, procenv )
evalenv = {} evalenv.update(procenv) result = eval( self.checkstring, evalenv )
def check(self,Config):
6dc32b1c3cc30e401b3a60443a793ffc21c712f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/6dc32b1c3cc30e401b3a60443a793ffc21c712f3/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 809, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 809, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
for m in [line for line in pick.move_lines]: res['return%s'%(m.id)] = m.product_qty if pick.invoice_state=='invoiced': res['invoice_state'] = '2binvoiced' else: res['invoice_state'] = 'none'
if pick: if 'invoice_state' in fields: if pick.invoice_state=='invoiced': res['invoice_state'] = '2binvoiced' else: res['invoice_state'] = 'none' for line in pick.move_lines: return_id = 'return%s'%(line.id) if return_id in fields: res[return_id] = line.product_qty
def default_get(self, cr, uid, fields, context): """ To get default values for the object. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictiona...
3b5e198d6fca4e6934ff87ac875ee8b30300e487 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3b5e198d6fca4e6934ff87ac875ee8b30300e487/stock_return_picking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 4672, 3536, 2974, 336, 805, 924, 364, 326, 733, 18, 632, 891, 365, 30, 1021, 733, 4407, 18, 632, 891, 4422, 30, 432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 4672, 3536, 2974, 336, 805, 924, 364, 326, 733, 18, 632, 891, 365, 30, 1021, 733, 4407, 18, 632, 891, 4422, 30, 432, ...
yield "".join(make_collapsible_html('cc_checker', title, content, id, status))
output += make_collapsible_html('cc_checker', title, content, id, status)
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e...
6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1330, 67, 952, 67, 19243, 12, 2630, 4672, 468, 2103, 7517, 17, 1188, 329, 1729, 364, 760, 6285, 8513, 468, 364, 2037, 16, 732, 1338, 1640, 326, 23450, 49, 31577, 1807, 876, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1330, 67, 952, 67, 19243, 12, 2630, 4672, 468, 2103, 7517, 17, 1188, 329, 1729, 364, 760, 6285, 8513, 468, 364, 2037, 16, 732, 1338, 1640, 326, 23450, 49, 31577, 1807, 876, 2...
return opts, dbg_opts, sys_argv
return opts, dbg_opts, sys.argv
def process_options(debugger_name, pkg_version, sys_argv, option_list=None): """Handle debugger options. Set `option_list' if you are writing another main program and want to extend the existing set of debugger options. The options dicionary from opt_parser is return. sys_argv is also updated.""" usage_str="""%prog [d...
3450b2b5c584b53ea66a60acb67e1a2ff6cd7abf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6117/3450b2b5c584b53ea66a60acb67e1a2ff6cd7abf/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2116, 12, 4148, 693, 67, 529, 16, 3475, 67, 1589, 16, 2589, 67, 19485, 16, 1456, 67, 1098, 33, 7036, 4672, 3536, 3259, 19977, 702, 18, 1000, 1375, 3482, 67, 1098, 11, 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, 1207, 67, 2116, 12, 4148, 693, 67, 529, 16, 3475, 67, 1589, 16, 2589, 67, 19485, 16, 1456, 67, 1098, 33, 7036, 4672, 3536, 3259, 19977, 702, 18, 1000, 1375, 3482, 67, 1098, 11, 309, ...
cmd = cmd + 'and convert(char(10), i.modification_date, 101) = convert(char(10), getdate(), 101)'
cmd = cmd + ' and convert(char(10), i.modification_date, 101) = convert(char(10), getdate(), 101)'
def process(objectKey): # # retrieve Assay (GXD) images that have thumbnails and are in pixel DB # cmd = 'select i._Image_key, i._MGIType_key, i._Refs_key, i._ThumbnailImage_key, ' + \ 'i.figureLabel, ip._ImagePane_key, ip.paneLabel, r.year, a.numericPart ' + \ 'into #images ' + \ 'from IMG_Image i, BIB_Refs r, IMG_I...
66f59595d919a0b550e44e24b1b872459e2f05de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/343/66f59595d919a0b550e44e24b1b872459e2f05de/imgcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1612, 653, 4672, 225, 468, 468, 4614, 4725, 528, 261, 43, 22953, 13, 4602, 716, 1240, 30526, 471, 854, 316, 4957, 2383, 468, 225, 1797, 273, 296, 4025, 277, 6315, 2040, 67, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1612, 653, 4672, 225, 468, 468, 4614, 4725, 528, 261, 43, 22953, 13, 4602, 716, 1240, 30526, 471, 854, 316, 4957, 2383, 468, 225, 1797, 273, 296, 4025, 277, 6315, 2040, 67, 8...