rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if target.__class__.__name__ == 'molecule': | if isinstance(target, molecule): | def changeModelSelection(self, trigger, target, state): if self == trigger: #don't respond if it is triggered by itself return # Find the corresponding tree item for the target and set the state if target.__class__.__name__ == 'molecule': item = self.objectToTreeItems[target] self.setSelected(item, state) | 52ba383aab44ef283138a23cd74b29fe7aca168c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/52ba383aab44ef283138a23cd74b29fe7aca168c/modelTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
1488,
6233,
12,
2890,
16,
3080,
16,
1018,
16,
919,
4672,
309,
365,
422,
3080,
30,
225,
468,
19752,
1404,
6846,
309,
518,
353,
10861,
635,
6174,
327,
468,
4163,
326,
4656,
2151,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
1488,
6233,
12,
2890,
16,
3080,
16,
1018,
16,
919,
4672,
309,
365,
422,
3080,
30,
225,
468,
19752,
1404,
6846,
309,
518,
353,
10861,
635,
6174,
327,
468,
4163,
326,
4656,
2151,
7... |
else: allNotFound = False if allNotFound: f = codecs.open('pageNotFound.txt', 'a', 'utf-8') f.write(' f.write(' f.write(' f.write('%s\n' % self.pages) f.write('%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n') f.write('%s\n' % data) f.write(' f.close() | def run(self): dt=15 while True: try: data = self.getData() except (socket.error, httplib.BadStatusLine): # Print the traceback of the caught exception print ''.join(traceback.format_exception(*sys.exc_info())) output(u'DBG> got network error in GetAll.run. Sleeping for %d seconds'%dt) time.sleep(dt) if dt <= 60: dt +=... | 756643fb0df63ef832c1b6e5aedd521dba7ff710 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/756643fb0df63ef832c1b6e5aedd521dba7ff710/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3681,
33,
3600,
1323,
1053,
30,
775,
30,
501,
273,
365,
18,
588,
751,
1435,
1335,
261,
7814,
18,
1636,
16,
15851,
6673,
18,
6434,
1482,
1670,
4672,
468,
3038,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3681,
33,
3600,
1323,
1053,
30,
775,
30,
501,
273,
365,
18,
588,
751,
1435,
1335,
261,
7814,
18,
1636,
16,
15851,
6673,
18,
6434,
1482,
1670,
4672,
468,
3038,
326... | |
self.out.write(' value.SetAttr("objtype", string("op"));\n') | self.out.write(' value.SetObjtype(string("op"));\n') | def instantiation(self, obj): id = obj.attr['id'].value objtype = obj.attr['objtype'].value self.out.write("%s %s::Instantiate()\n{\n" \ % (self.classname, self.classname)) self.out.write(" " + self.classname + " value;\n\n") self.out.write(" Object::ListType parents;\n") self.out.write(' parents.push_back(str... | a405d67b0b6e65db31f6c72481f8c8dc30f5a983 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12931/a405d67b0b6e65db31f6c72481f8c8dc30f5a983/gen_cc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28380,
12,
2890,
16,
1081,
4672,
612,
273,
1081,
18,
1747,
3292,
350,
29489,
1132,
1081,
723,
273,
1081,
18,
1747,
3292,
2603,
723,
29489,
1132,
365,
18,
659,
18,
2626,
27188,
87,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28380,
12,
2890,
16,
1081,
4672,
612,
273,
1081,
18,
1747,
3292,
350,
29489,
1132,
1081,
723,
273,
1081,
18,
1747,
3292,
2603,
723,
29489,
1132,
365,
18,
659,
18,
2626,
27188,
87,
738,
... |
return msg | return (code,msg) | def connect(self, host='localhost', port = 0): """Connect to a host on a given port. | 7ce512fd70a64eb7cf9563bb31dd4291a44254dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7ce512fd70a64eb7cf9563bb31dd4291a44254dd/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
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,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
map_so = hlr_utils.get_map_so(left,right,i) | map_so = hlr_utils.get_map_so(left, right, i) | def div_ncerr(left, right, **kwargs): """ This function divides two objects (SOM, SO or tuple[val,val_err2]) and returns the result of the division in an SOM. The function does not handle the case of tuple/tuple. Parameters: ---------- -> left Object on the left of the division sign -> right Object on the right of th... | 8b5bb0bc0b961242500a156041e567f572942fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8b5bb0bc0b961242500a156041e567f572942fc3/hlr_div_ncerr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3739,
67,
14202,
370,
12,
4482,
16,
2145,
16,
2826,
4333,
4672,
3536,
1220,
445,
3739,
4369,
2795,
2184,
261,
55,
1872,
16,
7460,
578,
3193,
63,
1125,
16,
1125,
67,
370,
22,
5717,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3739,
67,
14202,
370,
12,
4482,
16,
2145,
16,
2826,
4333,
4672,
3536,
1220,
445,
3739,
4369,
2795,
2184,
261,
55,
1872,
16,
7460,
578,
3193,
63,
1125,
16,
1125,
67,
370,
22,
5717,
471,... |
reminder_results = client.add_reminders(cal.user, results, reminder_in_minutes) | if reminder_in_minutes is not None: reminder_results = client.add_reminders(cal.user, results, reminder_in_minutes) | def _run_add(client, options, args): cal_user_list = client.get_calendar_user_list(options.cal) if not cal_user_list: LOG.error('No calendar matches "' + options.cal + '"') return reminder_in_minutes = convert_reminder_string(options.reminder) events_list = options.src + args for cal in cal_user_list: if options.date: ... | 5e0ebf0aad5abda5aaeb5c177ba772f568e8e492 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/5e0ebf0aad5abda5aaeb5c177ba772f568e8e492/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
1289,
12,
2625,
16,
702,
16,
833,
4672,
1443,
67,
1355,
67,
1098,
273,
1004,
18,
588,
67,
11650,
67,
1355,
67,
1098,
12,
2116,
18,
771,
13,
309,
486,
1443,
67,
1355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
1289,
12,
2625,
16,
702,
16,
833,
4672,
1443,
67,
1355,
67,
1098,
273,
1004,
18,
588,
67,
11650,
67,
1355,
67,
1098,
12,
2116,
18,
771,
13,
309,
486,
1443,
67,
1355,
... |
cAlphaViewer = self.app.viewers['calpha'] moveX = self.posMoveDict['x'].value() - cAlphaViewer.renderer.selectionCenterOfMass().x() | oldX = self.x newX = self.posMoveDict['x'].value() moveX = newX - oldX self.x = newX | def posMoveCM_x(self): cAlphaViewer = self.app.viewers['calpha'] moveX = self.posMoveDict['x'].value() - cAlphaViewer.renderer.selectionCenterOfMass().x() translateVector = Vector3DFloat(moveX, 0, 0) cAlphaViewer.renderer.selectionMove(translateVector) cAlphaViewer.emitModelChanged() | 9fefa88d897047cb33ba1b9c7ca873fe31bb572c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/9fefa88d897047cb33ba1b9c7ca873fe31bb572c/structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
949,
7607,
9611,
67,
92,
12,
2890,
4672,
1592,
60,
273,
365,
18,
92,
394,
60,
273,
365,
18,
917,
7607,
5014,
3292,
92,
29489,
1132,
1435,
3635,
60,
273,
225,
394,
60,
300,
1592,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
949,
7607,
9611,
67,
92,
12,
2890,
4672,
1592,
60,
273,
365,
18,
92,
394,
60,
273,
365,
18,
917,
7607,
5014,
3292,
92,
29489,
1132,
1435,
3635,
60,
273,
225,
394,
60,
300,
1592,
60,
... |
chain = None wfpolicyconfig = None current_ob = aq_inner(ob) start_here = True portal = aq_base(getToolByName(self, 'portal_url').getPortalObject()) while chain is None and current_ob is not None: if base_hasattr(current_ob, WorkflowPolicyConfig_id): wfpolicyconfig = getattr(current_ob, WorkflowPolicyConfig_id) | if type(ob) != type('') and portal_type != None and not is_policy_container: wfpolicyconfig = None current_ob = aq_inner(ob) portal = aq_base(getToolByName(self, 'portal_url').getPortalObject()) while wfpolicyconfig is None and current_ob is not None: if base_hasattr(current_ob, WorkflowPolicyConfig_id): wfpolicycon... | def getChainFor(self, ob): """Monkey-patched by CMFPlacefulWorkflow to look for placeful workflow configurations. Goal: find a workflow chain in a policy Steps: 1. ask the object if it contains a policy 2. if it does, ask him for a chain 3. if there's no chain for the type the we loop on the parent 4. if the parent i... | 2b483ef04777424d8050dd2846f158bac24fd51c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11955/2b483ef04777424d8050dd2846f158bac24fd51c/workflowtoolPatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30170,
1290,
12,
2890,
16,
3768,
4672,
3536,
11415,
856,
17,
2272,
329,
635,
385,
13542,
6029,
2706,
8484,
358,
2324,
364,
3166,
2706,
6095,
10459,
18,
225,
4220,
287,
30,
1104,
279,
609... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30170,
1290,
12,
2890,
16,
3768,
4672,
3536,
11415,
856,
17,
2272,
329,
635,
385,
13542,
6029,
2706,
8484,
358,
2324,
364,
3166,
2706,
6095,
10459,
18,
225,
4220,
287,
30,
1104,
279,
609... |
cntobj = self.context._dirobj.pool.get('document.directory.content') uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) where = [('directory_id','=',directory_id) ] ids = cntobj.search(cr, uid, where, context=ctx) for content in cntobj.browse(cr, uid, ids, context=ctx): res3 = cntobj._file_g... | def _file_get(self,cr, nodename=False, directory_id=False): res = [] cntobj = self.context._dirobj.pool.get('document.directory.content') uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) where = [('directory_id','=',directory_id) ] ids = cntobj.search(cr, uid, where, context=ctx) for conte... | 6ebec0292d26e73742cb62203b9a0ccf649d76d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6ebec0292d26e73742cb62203b9a0ccf649d76d1/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
768,
67,
588,
12,
2890,
16,
3353,
16,
14003,
1069,
33,
8381,
16,
1867,
67,
350,
33,
8381,
4672,
400,
273,
5378,
7599,
2603,
273,
365,
18,
2472,
6315,
3211,
303,
441,
18,
6011,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
67,
588,
12,
2890,
16,
3353,
16,
14003,
1069,
33,
8381,
16,
1867,
67,
350,
33,
8381,
4672,
400,
273,
5378,
7599,
2603,
273,
365,
18,
2472,
6315,
3211,
303,
441,
18,
6011,
1... | |
def __init__(self, repourl="http://hg.mozilla.org/mozilla-central", **kwargs): | def __init__(self, baseURL="http://hg.mozilla.org/", defaultBranch='mozilla-central', **kwargs): | def __init__(self, repourl="http://hg.mozilla.org/mozilla-central", **kwargs): timeout = 3600 if 'timeout' in kwargs: timeout = kwargs['timeout'] # repourl overridden in startVC Mercurial.__init__(self, repourl=repourl, timeout=timeout, **kwargs) | 4f7b764eccadb3fc5cd3459ae9b7ae326b2a24e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/4f7b764eccadb3fc5cd3459ae9b7ae326b2a24e1/steps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
17480,
1546,
2505,
2207,
26981,
18,
8683,
15990,
18,
3341,
19,
3113,
805,
7108,
2218,
8683,
15990,
17,
71,
12839,
2187,
2826,
4333,
4672,
2021,
273,
12396,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17480,
1546,
2505,
2207,
26981,
18,
8683,
15990,
18,
3341,
19,
3113,
805,
7108,
2218,
8683,
15990,
17,
71,
12839,
2187,
2826,
4333,
4672,
2021,
273,
12396,
... |
self.run('((' ' sync &' | self.run('(' | def reboot(): self.record("GOOD", None, "reboot.start") try: # sync before starting the reboot, so that a long sync during # shutdown isn't timed out by wait_down's short timeout if not fastsync: self.run('sync; sync', timeout=timeout, ignore_status=True) | 4e8ff94992313dfa3d29b62c8111ce235ccb698c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/4e8ff94992313dfa3d29b62c8111ce235ccb698c/remote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22852,
13332,
365,
18,
3366,
2932,
16387,
1212,
3113,
599,
16,
315,
266,
7137,
18,
1937,
7923,
775,
30,
468,
3792,
1865,
5023,
326,
22852,
16,
1427,
716,
279,
1525,
3792,
4982,
468,
5731... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22852,
13332,
365,
18,
3366,
2932,
16387,
1212,
3113,
599,
16,
315,
266,
7137,
18,
1937,
7923,
775,
30,
468,
3792,
1865,
5023,
326,
22852,
16,
1427,
716,
279,
1525,
3792,
4982,
468,
5731... |
if isinstance(address, Address): host, port = (address.host, address.port) else: host, port = address | our_address = self.node.address if address.host == our_address.host and \ address.private_host is not None and our_address.private_host is not None: host, port = address.private_host, address.private_port else: host, port = address.host, address.port | def _SendData(self, address, data, log=True): """ Send raw data to a destination address, and optionally log it. """ if isinstance(address, Address): host, port = (address.host, address.port) else: host, port = address self.node_protocol.SendData((host, port), data) if log: self.logger.debug(">>>> sending to %s:%d\n%s"... | de07b39f25f5f7e3c2799afffd3434259a7982f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/de07b39f25f5f7e3c2799afffd3434259a7982f1/nodeconnector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3826,
751,
12,
2890,
16,
1758,
16,
501,
16,
613,
33,
5510,
4672,
3536,
2479,
1831,
501,
358,
279,
2929,
1758,
16,
471,
8771,
613,
518,
18,
3536,
3134,
67,
2867,
273,
365,
18,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3826,
751,
12,
2890,
16,
1758,
16,
501,
16,
613,
33,
5510,
4672,
3536,
2479,
1831,
501,
358,
279,
2929,
1758,
16,
471,
8771,
613,
518,
18,
3536,
3134,
67,
2867,
273,
365,
18,
21... |
new_output.tag = copy(output.tag) | new_output.tag = copy.copy(output.tag) | def transform(self, node): if node.op != self.op1: return False repl = self.op2.make_node(*node.inputs) if self.transfer_tags: repl.tag = copy(node.tag) for output, new_output in zip(node.outputs, repl.outputs): new_output.tag = copy(output.tag) return repl.outputs | 7d9e2a286ebc2353830cee7c4b2bd5542f6d1546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/7d9e2a286ebc2353830cee7c4b2bd5542f6d1546/opt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
2890,
16,
756,
4672,
309,
756,
18,
556,
480,
365,
18,
556,
21,
30,
327,
1083,
6831,
273,
365,
18,
556,
22,
18,
6540,
67,
2159,
30857,
2159,
18,
10029,
13,
309,
365,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
2890,
16,
756,
4672,
309,
756,
18,
556,
480,
365,
18,
556,
21,
30,
327,
1083,
6831,
273,
365,
18,
556,
22,
18,
6540,
67,
2159,
30857,
2159,
18,
10029,
13,
309,
365,
18,
1... |
prefFile = os.path.join(os.path.expanduser("~"), ".gitso-hosts") | prefFile = os.path.join(os.path.expanduser("~"), ".gitso-hosts") | def CloseAbout(self, event): self.Close() | 7c208c280de616131da047841b9467ec2d6c656e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3659/7c208c280de616131da047841b9467ec2d6c656e/Gitso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3527,
24813,
12,
2890,
16,
871,
4672,
365,
18,
4605,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
3527,
24813,
12,
2890,
16,
871,
4672,
365,
18,
4605,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def NotifyUIAsync (message, logger=logging.info, **keys): logger (message) Globals.wxApplication.CallItemMethodAsync (Globals.mainView, | def NotifyUIAsync(message, logger=logging.info, **keys): logger(message) Globals.wxApplication.CallItemMethodAsync(Globals.mainView, | def NotifyUIAsync (message, logger=logging.info, **keys): logger (message) Globals.wxApplication.CallItemMethodAsync (Globals.mainView, 'setStatusMessage', message, **keys) | cd0d773c52b7eb7870b5e37e0d7c668e7d25477c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cd0d773c52b7eb7870b5e37e0d7c668e7d25477c/imap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10918,
5370,
2771,
12,
2150,
16,
1194,
33,
11167,
18,
1376,
16,
2826,
2452,
4672,
1194,
12,
2150,
13,
18901,
1031,
18,
27226,
3208,
18,
1477,
1180,
1305,
2771,
12,
19834,
18,
5254,
1767,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10918,
5370,
2771,
12,
2150,
16,
1194,
33,
11167,
18,
1376,
16,
2826,
2452,
4672,
1194,
12,
2150,
13,
18901,
1031,
18,
27226,
3208,
18,
1477,
1180,
1305,
2771,
12,
19834,
18,
5254,
1767,... |
if len(S) != 0: B.append(S) | def blocks_and_cut_vertices(self): """ Computes the blocks and cut vertices of the graph. In the case of a digraph, this computation is done on the underlying graph. A cut vertex is one whose deletion increases the number of connected components. A block is a maximal induced subgraph which itself has no cut vertices. ... | eb9d7813ef3014285fa5934095ded7988c36f6ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/eb9d7813ef3014285fa5934095ded7988c36f6ab/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4398,
67,
464,
67,
5150,
67,
17476,
12,
2890,
4672,
3536,
14169,
281,
326,
4398,
471,
6391,
6928,
434,
326,
2667,
18,
657,
326,
648,
434,
279,
3097,
1483,
16,
333,
16039,
353,
2731,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4398,
67,
464,
67,
5150,
67,
17476,
12,
2890,
4672,
3536,
14169,
281,
326,
4398,
471,
6391,
6928,
434,
326,
2667,
18,
657,
326,
648,
434,
279,
3097,
1483,
16,
333,
16039,
353,
2731,
60... | |
if not (default is False): | if default: if isinstance(field, fields.Many2One) \ and isinstance(default, (list, tuple)): default = default[0] | "has changed size (DB = %d, def = %d), strings will be truncated !" % \ (k, self._table, f_pg_size, field.size)) | 9e0a440f8f54b1c9ec1aacdceb950da42b394319 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/9e0a440f8f54b1c9ec1aacdceb950da42b394319/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
315,
5332,
3550,
963,
261,
2290,
273,
738,
72,
16,
1652,
273,
738,
72,
3631,
2064,
903,
506,
15282,
29054,
738,
521,
261,
79,
16,
365,
6315,
2121,
16,
284,
67,
8365,
67,
1467,
16,
652,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
315,
5332,
3550,
963,
261,
2290,
273,
738,
72,
16,
1652,
273,
738,
72,
3631,
2064,
903,
506,
15282,
29054,
738,
521,
261,
79,
16,
365,
6315,
2121,
16,
284,
67,
8365,
67,
1467,
16,
652,
18,... |
def v2_entry_from_response(response): | class Unauthorized(Error): pass def v2_entry_from_response(response_body): | def v2_entry_from_response(response): """Experimental converter which gets an Atom entry from the response.""" return gdata.data.entry_from_string(response.read(), version=2) | 9a245cb886297a554f78381cc824e04fadebdfda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/9a245cb886297a554f78381cc824e04fadebdfda/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
15799,
12,
668,
4672,
1342,
282,
1652,
331,
22,
67,
4099,
67,
2080,
67,
2740,
12,
2740,
67,
3432,
4672,
3536,
22338,
287,
6027,
1492,
5571,
392,
7149,
1241,
628,
326,
766,
12123,
327,
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,
667,
15799,
12,
668,
4672,
1342,
282,
1652,
331,
22,
67,
4099,
67,
2080,
67,
2740,
12,
2740,
67,
3432,
4672,
3536,
22338,
287,
6027,
1492,
5571,
392,
7149,
1241,
628,
326,
766,
12123,
327,
3... |
self.notify.debug('could not index into %s with key %s' % (curObjRef, safeRepr(key))) | self.notify.debug('could not index into %s with key %s' % ( parentObjRef, safeRepr(key))) | def run(self): try: while True: # yield up here instead of at the end, since we skip back to the # top of the while loop from various points yield None #import pdb;pdb.set_trace() curObj = None if self._curObjRef is None: self._curObjRef = self._baseObjRef try: for result in self._curObjRef.getContainer(): yield None c... | 2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
468,
2824,
731,
2674,
3560,
434,
622,
326,
679,
16,
3241,
732,
2488,
1473,
358,
326,
468,
1760,
434,
326,
1323,
2798,
628,
11191,
3143,
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,
1086,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
468,
2824,
731,
2674,
3560,
434,
622,
326,
679,
16,
3241,
732,
2488,
1473,
358,
326,
468,
1760,
434,
326,
1323,
2798,
628,
11191,
3143,
2... |
return Numeric.ones(1,'d') | return ones(1,'d') | def hanning(M,sym=1): """The M-point Hanning window. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M+1 n = arange(0,M) w = 0.5-0.5*cos(2.0*pi*n/(M-1)) if not sym and not odd: w = w[:-1] return w | 936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
10903,
12,
49,
16,
8117,
33,
21,
4672,
3536,
1986,
490,
17,
1153,
670,
10903,
2742,
18,
3536,
309,
490,
411,
404,
30,
327,
16980,
18,
1126,
3816,
5717,
309,
490,
422,
404,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
10903,
12,
49,
16,
8117,
33,
21,
4672,
3536,
1986,
490,
17,
1153,
670,
10903,
2742,
18,
3536,
309,
490,
411,
404,
30,
327,
16980,
18,
1126,
3816,
5717,
309,
490,
422,
404,
30,
3... |
logFile.close() log.error('could not apply patch %s in directory %s', f, destDir) raise SourceError, 'could not apply patch %s' % f | log.error('could not apply patch %s in directory %s', patchPath, destDir) raise SourceError, 'could not apply patch %s' % patchPath | def patchme(self, patch, f, destDir, patchlevels): logFiles = [] log.info('attempting to apply %s to %s with patch level(s) %s' %(f, destDir, ', '.join(str(x) for x in patchlevels))) for patchlevel in patchlevels: patchArgs = [ 'patch', '-d', destDir, '-p%s'%patchlevel, ] if self.backup: patchArgs.extend(['-b', '-z', s... | 74eb99f93d5b6c7a5733427d060861e2b7213b60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/74eb99f93d5b6c7a5733427d060861e2b7213b60/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
3501,
12,
2890,
16,
4729,
16,
284,
16,
26231,
16,
4729,
12095,
4672,
613,
2697,
273,
5378,
613,
18,
1376,
2668,
11764,
310,
358,
2230,
738,
87,
358,
738,
87,
598,
4729,
1801,
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,
4729,
3501,
12,
2890,
16,
4729,
16,
284,
16,
26231,
16,
4729,
12095,
4672,
613,
2697,
273,
5378,
613,
18,
1376,
2668,
11764,
310,
358,
2230,
738,
87,
358,
738,
87,
598,
4729,
1801,
12,... |
for x in self.input_storage: | for c in self.input_storage: | def __call__(self, *args, **kwargs): t0 = time.time() | a5df8d991302e4fbd21318abc8d8c9b8636b2d8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/a5df8d991302e4fbd21318abc8d8c9b8636b2d8b/function_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
268,
20,
273,
813,
18,
957,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
268,
20,
273,
813,
18,
957,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
df = df * (a.peak_frequency + b.peak_frequency) / 2 | df = df * (a.ms_bandwidth + b.ms_bandwidth) / 2 | def ExcessPowerCoincCompare(a, b, thresholds): """ There are three thresholds, dt, df, and dhrss, setting, respectively, the maximum allowed fractional difference in peak times, the maximum allowed fractional difference in peak frequencies, and the maximum allowed fractional difference in h_{rss}. In the case of the p... | 81b04d4a9204ad7dfece33054c0646762fdcf89c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/81b04d4a9204ad7dfece33054c0646762fdcf89c/ligolw_burca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1312,
614,
13788,
27055,
71,
8583,
12,
69,
16,
324,
16,
19983,
4672,
3536,
6149,
854,
8925,
19983,
16,
3681,
16,
3013,
16,
471,
302,
7256,
1049,
16,
3637,
16,
19629,
16,
326,
4207,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1312,
614,
13788,
27055,
71,
8583,
12,
69,
16,
324,
16,
19983,
4672,
3536,
6149,
854,
8925,
19983,
16,
3681,
16,
3013,
16,
471,
302,
7256,
1049,
16,
3637,
16,
19629,
16,
326,
4207,
293... |
def __init__(self, worksheet_name): self.name = worksheet_name self.worksheet = notebook.get_worksheet_with_name(worksheet_name) | def __init__(self, name): self.name = name try: self.worksheet = notebook.get_worksheet_with_id(name) except KeyError: self.worksheet = notebook.create_new_worksheet(name) | def __init__(self, worksheet_name): self.name = worksheet_name self.worksheet = notebook.get_worksheet_with_name(worksheet_name) | e50b1dd96fb6d7e0dcd601d3c387702b99be711c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e50b1dd96fb6d7e0dcd601d3c387702b99be711c/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13622,
67,
529,
4672,
365,
18,
529,
273,
13622,
67,
529,
365,
18,
1252,
8118,
273,
14718,
18,
588,
67,
1252,
8118,
67,
1918,
67,
529,
12,
1252,
8118,
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,
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,
13622,
67,
529,
4672,
365,
18,
529,
273,
13622,
67,
529,
365,
18,
1252,
8118,
273,
14718,
18,
588,
67,
1252,
8118,
67,
1918,
67,
529,
12,
1252,
8118,
6... |
'item_id':fields.many2one('ir.actions.todo', 'Next Configuration Wizard',invisible=True, readonly=True), | 'item_id': fields.many2one('ir.actions.todo', 'Next Configuration Wizard', invisible=True, readonly=True), | def _progress_get(self,cr,uid, context={}): total = self.pool.get('ir.actions.todo').search_count(cr, uid, [], context) todo = self.pool.get('ir.actions.todo').search_count(cr, uid, [('type','=','configure'),('active','=',True),('state','<>','open')], context) if total > 0.0: return max(5.0,round(todo*100/total)) else:... | 5a75ea9c7c984bc42528ae56976c533a6d679191 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/5a75ea9c7c984bc42528ae56976c533a6d679191/ir_actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8298,
67,
588,
12,
2890,
16,
3353,
16,
1911,
16,
819,
12938,
4672,
2078,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
4905,
18,
9012,
16063,
3072,
67,
1883,
12,
3353,
16,
4555,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8298,
67,
588,
12,
2890,
16,
3353,
16,
1911,
16,
819,
12938,
4672,
2078,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
4905,
18,
9012,
16063,
3072,
67,
1883,
12,
3353,
16,
4555,
1... |
self._descr = descr | self._desc = desc | def __init__(self, schema, descr=u'', name=''): self._dict = {} self._vars = [] self._descr = descr self._name = name for data in copy.deepcopy(schema): if not isinstance(data, Var): if not data._name: raise AttributeError('Inline Group needs name') data = Var(name=data._name, default=data) self._dict[data.name] = d... | 513f97ca83b44ea792b8e169cb28ed0b3e8c402e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/513f97ca83b44ea792b8e169cb28ed0b3e8c402e/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1963,
16,
18426,
33,
89,
11,
2187,
508,
2218,
11,
4672,
365,
6315,
1576,
225,
273,
2618,
365,
6315,
4699,
225,
273,
5378,
365,
6315,
5569,
273,
3044,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1963,
16,
18426,
33,
89,
11,
2187,
508,
2218,
11,
4672,
365,
6315,
1576,
225,
273,
2618,
365,
6315,
4699,
225,
273,
5378,
365,
6315,
5569,
273,
3044,
365... |
all_test_runners.append(dependency_xct.test_runner) if len(all_test_runners) > 0: | all_tests.append(dependency_xct) if len(all_tests) > 0: | def Finalize2(self, xcode_targets): # Finalize2 needs to happen in a separate step because the process of # updating references to other projects depends on the ordering of targets # within remote project files. Finalize1 is responsible for sorting duty, # and once all project files are sorted, Finalize2 can come in a... | 8e1f5ce7f6c632cd6d0065dd8411588c6d1580c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/8e1f5ce7f6c632cd6d0065dd8411588c6d1580c2/xcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30740,
22,
12,
2890,
16,
619,
710,
67,
11358,
4672,
468,
30740,
22,
4260,
358,
5865,
316,
279,
9004,
2235,
2724,
326,
1207,
434,
468,
9702,
5351,
358,
1308,
10137,
10935,
603,
326,
9543,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30740,
22,
12,
2890,
16,
619,
710,
67,
11358,
4672,
468,
30740,
22,
4260,
358,
5865,
316,
279,
9004,
2235,
2724,
326,
1207,
434,
468,
9702,
5351,
358,
1308,
10137,
10935,
603,
326,
9543,... |
print 'generating traverse functions for class', c.name() | print 'generating builder functions for class', c.name() | def make_builder_inc_file(filename, class_text, expression_class): result = [] classes = parse_classes(class_text) for c in classes: if c.qualifier() != '': # skip classes residing in a different name space continue print 'generating traverse functions for class', c.name() f = c.constructor parameters = [] for p in f.p... | 8e6eff887f5734d02ddbe7b004a11a8d1727f7f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1522/8e6eff887f5734d02ddbe7b004a11a8d1727f7f1/generate_traversers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9574,
67,
9523,
67,
768,
12,
3459,
16,
667,
67,
955,
16,
2652,
67,
1106,
4672,
563,
273,
5378,
3318,
273,
1109,
67,
4701,
12,
1106,
67,
955,
13,
364,
276,
316,
3318,
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,
1221,
67,
9574,
67,
9523,
67,
768,
12,
3459,
16,
667,
67,
955,
16,
2652,
67,
1106,
4672,
563,
273,
5378,
3318,
273,
1109,
67,
4701,
12,
1106,
67,
955,
13,
364,
276,
316,
3318,
30,
... |
} | } | def build_form(self, cr, uid, data, context): query = """ select name, id from crm_profiling_question where id in ( select question from profile_questionnaire_quest_rel where questionnaire = %s)"""% data['form']['questionnaire_name'] cr.execute(query) quest_fields={} quest_form='''<?xml version="1.0"?> <form string="%s... | 3e3f364abfe84c3c09a44d9a141f8b47794252b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/3e3f364abfe84c3c09a44d9a141f8b47794252b6/crm_profiling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
687,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
843,
273,
3536,
2027,
508,
16,
612,
628,
4422,
81,
67,
16121,
4973,
67,
4173,
1625,
612,
316,
261,
2027,
5073,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
687,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
843,
273,
3536,
2027,
508,
16,
612,
628,
4422,
81,
67,
16121,
4973,
67,
4173,
1625,
612,
316,
261,
2027,
5073,
62... |
import re _queryprog = re.compile('^(.*)\?([^?]*)$') | import re _queryprog = re.compile('^(.*)\?([^?]*)$') | def splitquery(url): global _queryprog if _queryprog is None: import re _queryprog = re.compile('^(.*)\?([^?]*)$') match = _queryprog.match(url) if match: return match.group(1, 2) return url, None | 7e7ca0ba1753f9088a9b2afb3351a02127337974 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7e7ca0ba1753f9088a9b2afb3351a02127337974/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
2271,
12,
718,
4672,
2552,
389,
2271,
14654,
309,
389,
2271,
14654,
353,
599,
30,
1930,
283,
389,
2271,
14654,
273,
283,
18,
11100,
2668,
66,
27816,
35,
8178,
35,
15471,
8,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
2271,
12,
718,
4672,
2552,
389,
2271,
14654,
309,
389,
2271,
14654,
353,
599,
30,
1930,
283,
389,
2271,
14654,
273,
283,
18,
11100,
2668,
66,
27816,
35,
8178,
35,
15471,
8,
6134,
... |
args = {} args["usage"] = "Usage: csv2lyx [options] mycsvfile mytmptable.lyx" args["description"] = """This script creates a LyX document containing a table from a comma-separated-value file. The LyX file has format 276 and can be opened with LyX 1.5.0 and newer. """ parser = optparse.OptionParser(**args) parser.se... | header = """ | def error(message): sys.stderr.write(message + '\n') sys.exit(1) | b1faf5366959793a748c24bb8cde052d8931dc1a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/b1faf5366959793a748c24bb8cde052d8931dc1a/csv2lyx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
12,
2150,
4672,
2589,
18,
11241,
18,
2626,
12,
2150,
397,
2337,
82,
6134,
2589,
18,
8593,
12,
21,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
555,
12,
2150,
4672,
2589,
18,
11241,
18,
2626,
12,
2150,
397,
2337,
82,
6134,
2589,
18,
8593,
12,
21,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.shutdown() | self.expire_dcall = None self.forgetTimeouts() | def cb(msgs, ack_key): self.shutdown() del msgs[ack_key] | fc8f91ddf1c0a189aa60a114830c88f7e2027d0f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12372/fc8f91ddf1c0a189aa60a114830c88f7e2027d0f/dtella_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
12,
27439,
16,
8479,
67,
856,
4672,
365,
18,
14070,
67,
72,
1991,
273,
599,
365,
18,
1884,
588,
2694,
87,
1435,
1464,
8733,
63,
484,
67,
856,
65,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
12,
27439,
16,
8479,
67,
856,
4672,
365,
18,
14070,
67,
72,
1991,
273,
599,
365,
18,
1884,
588,
2694,
87,
1435,
1464,
8733,
63,
484,
67,
856,
65,
2,
-100,
-100,
-100,
-100,
-10... |
parameter_list = init_data | parameter_list = [init_data] | def run(self): """ 2008-05-09 (rank==0) --get_chr_start_ls() elif free_computing_nodes: -- (receive data) --mpi_synchronize() (rank==0) --input_node() --input_handler() elif free_computing_nodes: --computing_node() --computing_node_handler() --identify_ancestry_with_min_jumps() --initialize_score_trace_matrix() --is_... | a46758a9629fa3a5b2dc6c161205942bbbfc5976 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/a46758a9629fa3a5b2dc6c161205942bbbfc5976/MpiQCCall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
4044,
28,
17,
6260,
17,
5908,
261,
11500,
631,
20,
13,
1493,
588,
67,
15182,
67,
1937,
67,
3251,
1435,
1327,
4843,
67,
13406,
310,
67,
4690,
30,
1493,
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,
1086,
12,
2890,
4672,
3536,
4044,
28,
17,
6260,
17,
5908,
261,
11500,
631,
20,
13,
1493,
588,
67,
15182,
67,
1937,
67,
3251,
1435,
1327,
4843,
67,
13406,
310,
67,
4690,
30,
1493,
261,
... |
return self._eval_line(self._read_inf_file_command(tmp_to_use), | return self._eval_line(self._read_in_file_command(tmp_to_use), | def _eval_line_using_file(self, line, tmp): F = open(self._local_tmp_file(), 'w') F.write(line) F.close() tmp_to_use = self._local_tmpfile() if self.is_remote(): self._send_tmpfile_to_server() tmp_to_use = self._remote_tmpfile() return self._eval_line(self._read_inf_file_command(tmp_to_use), allow_use_file=False) | 58507912db0b7d9a3c9e99f50e7ad7830719141d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/58507912db0b7d9a3c9e99f50e7ad7830719141d/kash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
67,
1369,
67,
9940,
67,
768,
12,
2890,
16,
980,
16,
1853,
4672,
478,
273,
1696,
12,
2890,
6315,
3729,
67,
5645,
67,
768,
9334,
296,
91,
6134,
478,
18,
2626,
12,
1369,
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,
389,
8622,
67,
1369,
67,
9940,
67,
768,
12,
2890,
16,
980,
16,
1853,
4672,
478,
273,
1696,
12,
2890,
6315,
3729,
67,
5645,
67,
768,
9334,
296,
91,
6134,
478,
18,
2626,
12,
1369,
13,
... |
appuifw.app.exit_key_handler = self.back | self.set_right_key_handler(self.back) | def show(self): appuifw.app.exit_key_handler = self.back self.update_menu(self.get_menu_items()) self.bind_key_events() if self.music_list.is_new: self.presenter.play() | 43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
365,
18,
542,
67,
4083,
67,
856,
67,
4176,
12,
2890,
18,
823,
13,
365,
18,
2725,
67,
5414,
12,
2890,
18,
588,
67,
5414,
67,
3319,
10756,
365,
18,
4376,
67,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
365,
18,
542,
67,
4083,
67,
856,
67,
4176,
12,
2890,
18,
823,
13,
365,
18,
2725,
67,
5414,
12,
2890,
18,
588,
67,
5414,
67,
3319,
10756,
365,
18,
4376,
67,
85... |
w.state = TimerEntry.StateWaiting | w.state = RecordTimerEntry.StateWaiting | def doActivate(self, w): # when activating a timer which has already passed, # simply abort the timer. don't run trough all the stages. if w.shouldSkip(): w.state = TimerEntry.StateEnded else: # when active returns true, this means "accepted". # otherwise, the current state is kept. # the timer entry itself will fix up... | 038fc35afe73633be0ab371e380033642a8d24a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/038fc35afe73633be0ab371e380033642a8d24a4/RecordTimer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
21370,
12,
2890,
16,
341,
4672,
468,
1347,
5981,
1776,
279,
5441,
1492,
711,
1818,
2275,
16,
468,
8616,
6263,
326,
5441,
18,
2727,
1404,
1086,
268,
2642,
777,
326,
20298,
18,
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,
741,
21370,
12,
2890,
16,
341,
4672,
468,
1347,
5981,
1776,
279,
5441,
1492,
711,
1818,
2275,
16,
468,
8616,
6263,
326,
5441,
18,
2727,
1404,
1086,
268,
2642,
777,
326,
20298,
18,
309,
... |
yield NoCache else: yield '@modindex' | self.cache.pop('@modindex', None) yield '@modindex' | def get_module_index(self, req): """ Get the module index or redirect to a module from the module index. """ modname = req.args.get('mod') if modname: # XXX: from freqentries, handle better! info = self.env.modules.get(modname) if not info: raise NotFound() yield NoCache yield RedirectResponse(relative_uri( '/modindex/... | e9f88d7f8bb5343e685bc1c34f91af7538ca6519 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/e9f88d7f8bb5343e685bc1c34f91af7538ca6519/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2978,
67,
1615,
12,
2890,
16,
1111,
4672,
3536,
968,
326,
1605,
770,
578,
3136,
358,
279,
1605,
628,
326,
1605,
770,
18,
3536,
16037,
273,
1111,
18,
1968,
18,
588,
2668,
1711,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2978,
67,
1615,
12,
2890,
16,
1111,
4672,
3536,
968,
326,
1605,
770,
578,
3136,
358,
279,
1605,
628,
326,
1605,
770,
18,
3536,
16037,
273,
1111,
18,
1968,
18,
588,
2668,
1711,... |
db_file_path = wordgroupz_dir+'/wordz' | db_file_path = wordgroupz_dir+'/wordgroupz.db' | def stopped(self): return self._stop.isSet() | 544f236d51f79279c6b1e20751e385292f039631 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/544f236d51f79279c6b1e20751e385292f039631/wordgroupz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9627,
12,
2890,
4672,
327,
365,
6315,
5681,
18,
291,
694,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
9627,
12,
2890,
4672,
327,
365,
6315,
5681,
18,
291,
694,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif s.startswith(('+ ', '+-')): | elif s.startswith('+ ') or \ s.startswith('+-'): | def _line_iterator(): """Yields from/to lines of text with a change indication. | 37a93df12625acb7635b8d1d2f949000f6eba0b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/37a93df12625acb7635b8d1d2f949000f6eba0b0/difflib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1369,
67,
9838,
13332,
3536,
16348,
87,
628,
19,
869,
2362,
434,
977,
598,
279,
2549,
1547,
829,
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,
389,
1369,
67,
9838,
13332,
3536,
16348,
87,
628,
19,
869,
2362,
434,
977,
598,
279,
2549,
1547,
829,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
url = cgi.escape(url) | url = self.escape(url) | def translate(self, text): | 6245eb2d27f293881257f927c77ba0f68974b7b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6245eb2d27f293881257f927c77ba0f68974b7b1/faqmain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
977,
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,
4204,
12,
2890,
16,
977,
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... |
pysrc.append(' '*len(indents)+srcline) | pysrc_lines.append(' '*len(indents)+srcline) | pysrc = ['def %s:' % signature] | 1cd34dc4f7b279e4ac150be4b4be74d3336fb477 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/1cd34dc4f7b279e4ac150be4b4be74d3336fb477/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
21027,
1310,
273,
10228,
536,
738,
87,
2497,
738,
3372,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
21027,
1310,
273,
10228,
536,
738,
87,
2497,
738,
3372,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.redoButton = gtk.Button("", gtk.STOCK_REDO) self.redoButton.set_no_show_all(True) self.redoButton.get_child().get_child().get_children()[1].hide() self.redoButton.connect("clicked", self.redoButton_click) buttonhbox.pack_start(self.redoButton, False) | self.undoButton = gtk.Button("", gtk.STOCK_UNDO) self.undoButton.set_no_show_all(True) self.undoButton.get_child().get_child().get_children()[1].hide() self.undoButton.connect("clicked", self.undoButton_click) self.tooltips.set_tip(self.undoButton, _("Undo changes")) buttonhbox.pack_start(self.undoButton, False) | def build_interface(self): scrolledwindow = gtk.ScrolledWindow() scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.pack_start(scrolledwindow) | 83a200d579bb831f8f76d2d58f83b385981056c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/83a200d579bb831f8f76d2d58f83b385981056c5/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
4672,
888,
25054,
5668,
273,
22718,
18,
1541,
25054,
3829,
1435,
888,
25054,
5668,
18,
542,
67,
5086,
12,
4521,
79,
18,
26366,
67,
37,
1693,
1872,
11781,
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,
1361,
67,
5831,
12,
2890,
4672,
888,
25054,
5668,
273,
22718,
18,
1541,
25054,
3829,
1435,
888,
25054,
5668,
18,
542,
67,
5086,
12,
4521,
79,
18,
26366,
67,
37,
1693,
1872,
11781,
16,
... |
help="check md5 sums of the files" ) | help="do all checks" ) | def svndump_check_cmdline( appname, args ): """ Parses the commandline and executes the check. Usage: >>> svndump_check_cmdline( sys.argv[0], sys.argv[1:] ) @type appname: string @param appname: Name of the application (used in help text). @type args: list( string ) @param args: Commandline arguments. @rtype: intege... | 734c10e7896b54cf64c2595302d82571bc8ca069 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/734c10e7896b54cf64c2595302d82571bc8ca069/tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5893,
4880,
2801,
67,
1893,
67,
4172,
1369,
12,
22323,
16,
833,
262,
30,
3536,
2280,
2420,
326,
28305,
471,
11997,
326,
866,
18,
225,
10858,
30,
225,
4080,
5893,
4880,
2801,
67,
1893,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5893,
4880,
2801,
67,
1893,
67,
4172,
1369,
12,
22323,
16,
833,
262,
30,
3536,
2280,
2420,
326,
28305,
471,
11997,
326,
866,
18,
225,
10858,
30,
225,
4080,
5893,
4880,
2801,
67,
1893,
... |
debugprint(i, prefix+' ', depth=depth-1, done=done, file=file) | debugprint(i, prefix+' |', depth=depth-1, done=done, file=file) | def debugprint(r, prefix='', depth=-1, done=None, file=sys.stdout): """Print the graph leading to `r` to given depth. :param r: Variable instance :param prefix: prefix to each line (typically some number of spaces) :param depth: maximum recursion depth (Default -1 for unlimited). :param done: set of Apply instances th... | cb86fda451710da7f8633187eaad988ce7f9c4fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/cb86fda451710da7f8633187eaad988ce7f9c4fe/debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
1188,
12,
86,
16,
1633,
2218,
2187,
3598,
29711,
21,
16,
2731,
33,
7036,
16,
585,
33,
9499,
18,
10283,
4672,
3536,
5108,
326,
2667,
7676,
358,
1375,
86,
68,
358,
864,
3598,
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,
1198,
1188,
12,
86,
16,
1633,
2218,
2187,
3598,
29711,
21,
16,
2731,
33,
7036,
16,
585,
33,
9499,
18,
10283,
4672,
3536,
5108,
326,
2667,
7676,
358,
1375,
86,
68,
358,
864,
3598,
18,
... |
self.image = image[0] self.type = image[1] | self.type = image[0] self.image = image[1] | def setImage(self, image): self.image = image[0] self.type = image[1] | 3fa89d8023702fa7751a93413ca77fdbfa2259a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3fa89d8023702fa7751a93413ca77fdbfa2259a5/menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18893,
12,
2890,
16,
1316,
4672,
365,
18,
723,
225,
273,
1316,
63,
20,
65,
365,
18,
2730,
273,
1316,
63,
21,
65,
225,
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,
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,
18893,
12,
2890,
16,
1316,
4672,
365,
18,
723,
225,
273,
1316,
63,
20,
65,
365,
18,
2730,
273,
1316,
63,
21,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self._console = console | self._console = console | def __init__(self, console, depLoader, compiler): self._console = console self._depLoader = depLoader self._compiler = compiler | 1cfd1ed58337950233d32892a0095dbf1ce44a81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/1cfd1ed58337950233d32892a0095dbf1ce44a81/PartBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2983,
16,
5993,
2886,
16,
5274,
4672,
365,
6315,
8698,
282,
273,
2983,
365,
6315,
15037,
2886,
273,
5993,
2886,
365,
6315,
9576,
273,
5274,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2983,
16,
5993,
2886,
16,
5274,
4672,
365,
6315,
8698,
282,
273,
2983,
365,
6315,
15037,
2886,
273,
5993,
2886,
365,
6315,
9576,
273,
5274,
2,
-100,
-100,
... |
resp, list = self.longcmd('LIST') | resp, list = self.longcmd('LIST', file) | def list(self): """Process a LIST command. Return: - resp: server response if successful - list: list of (group, last, first, flag) (strings)""" | 7310cde011c0d39df04e490d7cee58bff65f0013 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7310cde011c0d39df04e490d7cee58bff65f0013/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
4672,
3536,
2227,
279,
15130,
1296,
18,
225,
2000,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
666,
30,
666,
434,
261,
1655,
16,
1142,
16,
1122,
16,
2982,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
4672,
3536,
2227,
279,
15130,
1296,
18,
225,
2000,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
666,
30,
666,
434,
261,
1655,
16,
1142,
16,
1122,
16,
2982,
13,
261,
1... |
saved = _('Saved {toolbar}'), | saved = _('Saved'), | def __getattr__(self, attr): try: return StringHandler.__getattr__(self, attr) except KeyError: return getattr(plurals, attr) | bc150af94ee3470074eb8dcd5d26447489614aee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6723/bc150af94ee3470074eb8dcd5d26447489614aee/menus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
775,
30,
327,
514,
1503,
16186,
588,
1747,
972,
12,
2890,
16,
1604,
13,
1335,
4999,
30,
327,
3869,
12,
412,
17645,
16,
1604,
13,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
775,
30,
327,
514,
1503,
16186,
588,
1747,
972,
12,
2890,
16,
1604,
13,
1335,
4999,
30,
327,
3869,
12,
412,
17645,
16,
1604,
13,
2,
-1... |
plugins = root_tree.find("Plugins") | plugins = settings_tree.find("Plugins") | def loadAllProfiles(self): """ Loads all profiles from disk """ try : os.makedirs(self._profiles_dir, 0777) except : pass for root, dirs, files in os.walk(self._profiles_dir): profiles_dirs = dirs ### To be extended break | fdec1560986d2dcf0294b25155c57a7931c934bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/206/fdec1560986d2dcf0294b25155c57a7931c934bd/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1595,
12450,
12,
2890,
4672,
3536,
4444,
87,
777,
11788,
628,
4234,
3536,
775,
294,
1140,
18,
81,
9477,
10539,
12,
2890,
6315,
18314,
67,
1214,
16,
16660,
13,
1335,
294,
1342,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1595,
12450,
12,
2890,
4672,
3536,
4444,
87,
777,
11788,
628,
4234,
3536,
775,
294,
1140,
18,
81,
9477,
10539,
12,
2890,
6315,
18314,
67,
1214,
16,
16660,
13,
1335,
294,
1342,
225,... |
alphabetic = ['af', 'ar', 'roa-rup', 'om', 'bg', 'be', 'bn', 'bs', 'ca', 'chr', 'co', 'cs', 'cy', 'da', 'de', 'als', 'et', 'el', 'en', 'es', 'eo', 'eu', 'fa', 'fr', 'fy', 'gv', 'gd', 'gl', 'ko', 'hi', 'hr', 'io', 'id', 'ia', 'is', 'it', | alphabetic = ['af', 'ar', 'roa-rup', 'om', 'bg', 'be', 'bn', 'bs', 'ca', 'chr', 'co', 'cs', 'cy', 'da', 'de', 'als', 'et', 'el', 'en', 'es', 'eo', 'eu', 'fa', 'fr', 'fy', 'gv', 'gd', 'gl', 'ko', 'hi', 'hr', 'io', 'id', 'ia', 'is', 'it', | def __init__(self): family.Family.__init__(self) self.name = 'wikibooks' | 562a2e8180f8e443465ed074e6f24063a9b2d31a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/562a2e8180f8e443465ed074e6f24063a9b2d31a/wikibooks_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
495,
1184,
87,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
495,
1184,
87,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
SConstruct_file_line = test.python_file_line(test.workpath('SConstruct'), 17)[:-1] | SConstruct_file_line = test.python_file_line(test.workpath('SConstruct'), 16)[:-1] | def cat(env, source, target): target = str(target[0]) f = open(target, "wb") for src in source: f.write(open(str(src), "rb").read()) f.close() | 93d54f2e61bd9cfe951c34c8978ef49c6a813128 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12817/93d54f2e61bd9cfe951c34c8978ef49c6a813128/diskcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
12,
3074,
16,
1084,
16,
1018,
4672,
1018,
273,
609,
12,
3299,
63,
20,
5717,
284,
273,
1696,
12,
3299,
16,
315,
9464,
7923,
364,
1705,
316,
1084,
30,
284,
18,
2626,
12,
3190,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
12,
3074,
16,
1084,
16,
1018,
4672,
1018,
273,
609,
12,
3299,
63,
20,
5717,
284,
273,
1696,
12,
3299,
16,
315,
9464,
7923,
364,
1705,
316,
1084,
30,
284,
18,
2626,
12,
3190,
12... |
raise SchemaError, 'Unknown component (%s)' %(i.getTagName()) | raise SchemaError, 'Unknown component (%s)' %(contents[indx].getTagName()) | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 66a932e69cc36cdc5a8aa682d4f81d3154420669 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/66a932e69cc36cdc5a8aa682d4f81d3154420669/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if p not in binaries[arch][0] or \ skip_archall and binaries[arch][0][p]['architecture'] == 'all': continue | if p not in binaries[arch][0]: continue | def iter_packages(self, packages, selected, hint=False, nuninst=None): """Iter on the list of actions and apply them one-by-one | d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
... |
self._previous_pwLeftAreaWidth = self.pwLeftArea.width() | self._previous_splitterPosition = self.pwLeftArea.width() | def collapseLeftArea(self, hideLeftArea = True): """ Collapse the left area. """ self._previous_pwLeftAreaWidth = self.pwLeftArea.width() if hideLeftArea: self.pwSplitter.setCollapsible(0, True) self.setSplitterPosition(pos = 0) return | 78cee7d87681716c89c16ba27c2643c4f3449af4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/78cee7d87681716c89c16ba27c2643c4f3449af4/Ui_PartWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
3910,
5484,
12,
2890,
16,
6853,
3910,
5484,
273,
1053,
4672,
3536,
1558,
14820,
326,
2002,
5091,
18,
3536,
365,
6315,
11515,
67,
4939,
387,
2555,
273,
365,
18,
14921,
3910,
5484,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
3910,
5484,
12,
2890,
16,
6853,
3910,
5484,
273,
1053,
4672,
3536,
1558,
14820,
326,
2002,
5091,
18,
3536,
365,
6315,
11515,
67,
4939,
387,
2555,
273,
365,
18,
14921,
3910,
5484,
... |
self._monitor = kaa.notifier.SocketDispatcher(self.handle_connection) | self._monitor = kaa.notifier.WeakSocketDispatcher(self.handle_connection) | def __init__(self, address, auth_secret = None): self._auth_secret = auth_secret if type(address) in types.StringTypes: if address.find('/') == -1: # create socket in kaa temp dir address = '%s/%s' % (kaa.TEMP, address) if os.path.exists(address): # maybe a server is already running at this address, test it try: s = s... | 1ab6ff319666b2d859287461964da3907e27b4ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/1ab6ff319666b2d859287461964da3907e27b4ba/ipc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1758,
16,
1357,
67,
5875,
273,
599,
4672,
365,
6315,
1944,
67,
5875,
273,
1357,
67,
5875,
309,
618,
12,
2867,
13,
316,
1953,
18,
780,
2016,
30,
309,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1758,
16,
1357,
67,
5875,
273,
599,
4672,
365,
6315,
1944,
67,
5875,
273,
1357,
67,
5875,
309,
618,
12,
2867,
13,
316,
1953,
18,
780,
2016,
30,
309,
17... |
"""Return toe closest sector to the input sector that lies inside | """Return the closest sector to the input sector that lies inside | def alignNearest(self, geom, sector): """Return toe closest sector to the input sector that lies inside geom and satisfies the alignment constraint self. If no such sector can be found, an ArithmeticError is raised.""" return self.__alignment.align_nearest(geom.getPedGeometry(), sector) | ed32841d770b8a58eb119f70f8803a477883ecdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/ed32841d770b8a58eb119f70f8803a477883ecdf/alignment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5689,
28031,
12,
2890,
16,
7364,
16,
16323,
4672,
3536,
990,
326,
9219,
16323,
358,
326,
810,
16323,
716,
328,
606,
4832,
7364,
471,
17917,
326,
8710,
4954,
365,
18,
225,
971,
1158,
4123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5689,
28031,
12,
2890,
16,
7364,
16,
16323,
4672,
3536,
990,
326,
9219,
16323,
358,
326,
810,
16323,
716,
328,
606,
4832,
7364,
471,
17917,
326,
8710,
4954,
365,
18,
225,
971,
1158,
4123... |
newpath = eval(config["PythonPath"]) if sys.path != newpath: sys.path = newpath | global _path pathstring = config["PythonPath"] if pathstring != _path: _path = pathstring newpath = eval(pathstring) if sys.path != newpath: sys.path = newpath | def Dispatch(self, req, htype): """ This is the handler dispatcher. """ | a54764e9d552e10a5f20c1ee7d1443b85b8f9d69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/a54764e9d552e10a5f20c1ee7d1443b85b8f9d69/apache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
12,
2890,
16,
1111,
16,
366,
723,
4672,
3536,
1220,
353,
326,
1838,
7393,
18,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
12,
2890,
16,
1111,
16,
366,
723,
4672,
3536,
1220,
353,
326,
1838,
7393,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
last.data = string.rstrip(last.data) + "\n " | last.data = last.data.rstrip() + "\n " | def rewrite_descriptor(doc, descriptor): # # Do these things: # 1. Add an "index='no'" attribute to the element if the tagName # ends in 'ni', removing the 'ni' from the name. # 2. Create a <signature> from the name attribute # 2a.Create an <args> if it appears to be available. # 3. Create additional <sign... | 58174526ba20106b3fff37a1f8ab6b18ee6de0d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/58174526ba20106b3fff37a1f8ab6b18ee6de0d5/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10738,
67,
12628,
12,
2434,
16,
4950,
4672,
468,
468,
2256,
4259,
9198,
30,
468,
282,
404,
18,
1436,
392,
315,
1615,
2218,
2135,
4970,
1566,
358,
326,
930,
309,
326,
7196,
468,
1377,
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,
10738,
67,
12628,
12,
2434,
16,
4950,
4672,
468,
468,
2256,
4259,
9198,
30,
468,
282,
404,
18,
1436,
392,
315,
1615,
2218,
2135,
4970,
1566,
358,
326,
930,
309,
326,
7196,
468,
1377,
3... |
self.ksdata.displayMethod = DISPLAY_MODE_TEXT else: self.ksdata.displayMethod = DISPLAY_MODE_GRAPHICAL | self.ksdata.displayMode = DISPLAY_MODE_TEXT else: self.ksdata.displayMode = DISPLAY_MODE_GRAPHICAL | def getData(self, doInstall): self.ksdata.lang = self.languageLookup(self.lang_combo.entry.get_text()) | 2dc58ece3bc2b625bacab188c8fc8f8bb6055bdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5376/2dc58ece3bc2b625bacab188c8fc8f8bb6055bdb/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4303,
12,
2890,
16,
741,
6410,
4672,
365,
18,
7904,
892,
18,
4936,
273,
365,
18,
4923,
6609,
12,
2890,
18,
4936,
67,
25053,
18,
4099,
18,
588,
67,
955,
10756,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4303,
12,
2890,
16,
741,
6410,
4672,
365,
18,
7904,
892,
18,
4936,
273,
365,
18,
4923,
6609,
12,
2890,
18,
4936,
67,
25053,
18,
4099,
18,
588,
67,
955,
10756,
2,
-100,
-100,
-100,
-1... |
inline = etree.SubElement(inline, XHTML('sup')) | parent = inline if istate.nest and bstate.inline is not None: parent = bstate.inline istate.nest = False inline = etree.SubElement(parent, XHTML('sup')) | def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bsta... | 28d5193ba3b2e5e83ed6a8024a8d3b814603b981 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/28d5193ba3b2e5e83ed6a8024a8d3b814603b981/mobiml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
947,
381,
80,
554,
67,
1745,
12,
2890,
16,
1047,
16,
977,
16,
324,
2019,
16,
277,
7992,
4672,
296,
2723,
977,
913,
11,
309,
977,
578,
1047,
480,
296,
2848,
4278,
324,
2019,
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,
312,
947,
381,
80,
554,
67,
1745,
12,
2890,
16,
1047,
16,
977,
16,
324,
2019,
16,
277,
7992,
4672,
296,
2723,
977,
913,
11,
309,
977,
578,
1047,
480,
296,
2848,
4278,
324,
2019,
18,
... |
return addinfo(fp, headers) | return addinfourl(fp, headers, self.openedurl) | def open_http(self, url): import httplib if type(url) is type(""): host, selector = splithost(url) user_passwd, host = splituser(host) else: host, selector = url urltype, rest = splittype(selector) if string.lower(urltype) == 'http': realhost, rest = splithost(rest) user_passwd, realhost = splituser(realhost) if user_p... | 2ef371cc555b6d6b747bc517ed82705a38e0b8d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2ef371cc555b6d6b747bc517ed82705a38e0b8d2/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2505,
12,
2890,
16,
880,
4672,
1930,
15851,
6673,
309,
618,
12,
718,
13,
353,
618,
2932,
6,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
729,
67,
24002,
16,
1479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2505,
12,
2890,
16,
880,
4672,
1930,
15851,
6673,
309,
618,
12,
718,
13,
353,
618,
2932,
6,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
729,
67,
24002,
16,
1479... |
open(dummy, 'w') except IOError: return 0 os.unlink(dummy) return 1 | tmp = tempfile.TemporaryFile(prefix=prefix,dir=dir) except OSError: return False tmp.close() return True | def is_writable(dir): dummy = os.path.join(dir, "dummy") try: open(dummy, 'w') except IOError: return 0 os.unlink(dummy) return 1 | 6505242f878c280fdbf66457c2cfa101ec1a5de4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/6505242f878c280fdbf66457c2cfa101ec1a5de4/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
15699,
12,
1214,
4672,
9609,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
315,
21050,
7923,
775,
30,
1853,
273,
13275,
18,
23808,
12,
3239,
33,
3239,
16,
1214,
33,
1214,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
15699,
12,
1214,
4672,
9609,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
315,
21050,
7923,
775,
30,
1853,
273,
13275,
18,
23808,
12,
3239,
33,
3239,
16,
1214,
33,
1214,
13,
... |
metas = self.hasMetaAttributes and dict([(attr.name, attr.varType) for attr in domain.getmetas().values()]) | metas = self.hasMetaAttributes and dict([(attr.name, attr.varType) for attr in domain.getmetas().values()]) or {} | def encodeDomain(self, domain): if self.matchValues == 2: attributes = self.hasOrdinaryAttributes and \ dict([(attr.name, attr.varType != orange.VarTypes.Discrete and attr.varType or attr.values) for attr in domain]) metas = self.hasMetaAttributes and \ dict([(attr.name, attr.varType != orange.VarTypes.Discrete and att... | b878d7012c31c1737cb2efb62e2fb806481542b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/b878d7012c31c1737cb2efb62e2fb806481542b7/OWContexts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
3748,
12,
2890,
16,
2461,
4672,
309,
365,
18,
1916,
1972,
422,
576,
30,
1677,
273,
365,
18,
5332,
15383,
2101,
2498,
471,
521,
2065,
3816,
12,
1747,
18,
529,
16,
1604,
18,
1401,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
3748,
12,
2890,
16,
2461,
4672,
309,
365,
18,
1916,
1972,
422,
576,
30,
1677,
273,
365,
18,
5332,
15383,
2101,
2498,
471,
521,
2065,
3816,
12,
1747,
18,
529,
16,
1604,
18,
1401,
... |
return $p^r \cdot (a/b)$. | return $p^r \cdot (a/b)$, otherwise raises ValueError. | def rational_reconstruction(self): r""" Try to lift the p-adic number to the rationals using rational reconstruction, as follows: Suppose the p-adic number is $p^{r}\cdot (u+O(p^n))$, where u is a unit. Using rational reconstruction, try to find the unique rational number a/b such that a/b is congruent to u modulo $p^... | 2524dc6cf63145fc327980456b747492a7ca7be7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/2524dc6cf63145fc327980456b747492a7ca7be7/padic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
266,
591,
4549,
12,
2890,
4672,
436,
8395,
6161,
358,
28080,
326,
293,
17,
20333,
1300,
358,
326,
436,
367,
1031,
1450,
436,
8371,
25792,
4549,
16,
487,
13040,
30,
3425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
266,
591,
4549,
12,
2890,
4672,
436,
8395,
6161,
358,
28080,
326,
293,
17,
20333,
1300,
358,
326,
436,
367,
1031,
1450,
436,
8371,
25792,
4549,
16,
487,
13040,
30,
3425,
... |
self._data["country"]="US" | self._data["countryCD"]="US" | def _new(self): self.__super._new(self) self._data["userID"]=0 self._data["fname"]="" self._data["lname"]="" self._data["email"]="" self._data["address1"]="" self._data["address2"]="" self._data["address3"]="" self._data["city"]="" self._data["stateCD"]="" self._data["postal"]="" self._data["country"]="US" self._data["... | e643e9c4acaa58f15e716796be72e4e735fc3c92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/e643e9c4acaa58f15e716796be72e4e735fc3c92/Contact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
12,
2890,
4672,
365,
16186,
9565,
6315,
2704,
12,
2890,
13,
365,
6315,
892,
9614,
1355,
734,
11929,
33,
20,
365,
6315,
892,
9614,
12749,
11929,
1546,
6,
365,
6315,
892,
9614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
12,
2890,
4672,
365,
16186,
9565,
6315,
2704,
12,
2890,
13,
365,
6315,
892,
9614,
1355,
734,
11929,
33,
20,
365,
6315,
892,
9614,
12749,
11929,
1546,
6,
365,
6315,
892,
9614,
... |
def start_a(self, attributes): self.link_attr(attributes, 'href') | def check_name_id( self, attributes ): """ Check the name or id attributes on an element. """ | def start_a(self, attributes): self.link_attr(attributes, 'href') | 2afe5246f2a2897da6602dbcf286b67c150d0f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2afe5246f2a2897da6602dbcf286b67c150d0f2a/webchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
69,
12,
2890,
16,
1677,
4672,
365,
18,
1232,
67,
1747,
12,
4350,
16,
296,
7547,
6134,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
69,
12,
2890,
16,
1677,
4672,
365,
18,
1232,
67,
1747,
12,
4350,
16,
296,
7547,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
global g_output_verbosity_level; if g_output_verbosity_level == 0 or message == "": PrintLine(message); else: PrintWrappedLine(message); | global g_output_verbosity_level, g_newline; Print(message + g_newline); | def PrintLine(message = ""): global g_output_verbosity_level; if g_output_verbosity_level == 0 or message == "": PrintLine(message); else: PrintWrappedLine(message); | b0ca0ec356cdc281434c19d0cb849d64876d522e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2140/b0ca0ec356cdc281434c19d0cb849d64876d522e/print_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3038,
1670,
12,
2150,
273,
1408,
4672,
2552,
314,
67,
2844,
67,
16629,
8807,
67,
2815,
16,
314,
67,
22861,
31,
225,
3038,
12,
2150,
397,
314,
67,
22861,
1769,
565,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3038,
1670,
12,
2150,
273,
1408,
4672,
2552,
314,
67,
2844,
67,
16629,
8807,
67,
2815,
16,
314,
67,
22861,
31,
225,
3038,
12,
2150,
397,
314,
67,
22861,
1769,
565,
2,
-100,
-100,
-100,... |
base_content = str(self.repo[base_rev][filename].data()) | base_content = str(self.repo[base_rev][oldrelpath].data()) | def GetBaseFile(self, filename): set_status("inspecting " + filename) # "hg status" and "hg cat" both take a path relative to the current subdir # rather than to the repo root, but "hg diff" has given us the full path # to the repo root. base_content = "" new_content = None is_binary = False oldrelpath = relpath = self... | d04ceebc4681f63e248740a0d02fc8538ab2039c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5761/d04ceebc4681f63e248740a0d02fc8538ab2039c/codereview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2171,
812,
12,
2890,
16,
1544,
4672,
444,
67,
2327,
2932,
12009,
310,
315,
397,
1544,
13,
468,
315,
26981,
1267,
6,
471,
315,
26981,
6573,
6,
3937,
4862,
279,
589,
3632,
358,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2171,
812,
12,
2890,
16,
1544,
4672,
444,
67,
2327,
2932,
12009,
310,
315,
397,
1544,
13,
468,
315,
26981,
1267,
6,
471,
315,
26981,
6573,
6,
3937,
4862,
279,
589,
3632,
358,
326,... |
scStack = idaapi.scStack | scStack = idaapi.scStack | def SegComb(segea, comb): """ Change combination of the segment @param segea: any address in the segment @param comb: new combination of the segment (one of the sc... constants) @return: success (boolean) """ return SetSegmentAttr(segea, SEGATTR_COMB, comb) | 507ea15b7a89e88e413b47a9fe03b571d956c14a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/507ea15b7a89e88e413b47a9fe03b571d956c14a/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
348,
1332,
11328,
12,
307,
908,
69,
16,
3894,
4672,
3536,
7576,
10702,
434,
326,
3267,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
316,
326,
3267,
632,
891,
3894,
30,
394,
10702,
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,
348,
1332,
11328,
12,
307,
908,
69,
16,
3894,
4672,
3536,
7576,
10702,
434,
326,
3267,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
316,
326,
3267,
632,
891,
3894,
30,
394,
10702,
434,... |
def detect_ctypes(self): | def detect_ctypes(self, inc_dirs, lib_dirs): self.use_system_libffi = False | def detect_ctypes(self): include_dirs = [] extra_compile_args = [] sources = ['_ctypes/_ctypes.c', '_ctypes/callbacks.c', '_ctypes/callproc.c', '_ctypes/stgdict.c', '_ctypes/cfield.c', '_ctypes/malloc_closure.c'] depends = ['_ctypes/ctypes.h'] | f46b1af583107a72f9eeb0b69a211a4c6a39d214 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f46b1af583107a72f9eeb0b69a211a4c6a39d214/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
299,
989,
12,
2890,
16,
7290,
67,
8291,
16,
2561,
67,
8291,
4672,
365,
18,
1202,
67,
4299,
67,
2941,
1403,
77,
273,
1083,
2341,
67,
8291,
273,
5378,
2870,
67,
11100,
67,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
299,
989,
12,
2890,
16,
7290,
67,
8291,
16,
2561,
67,
8291,
4672,
365,
18,
1202,
67,
4299,
67,
2941,
1403,
77,
273,
1083,
2341,
67,
8291,
273,
5378,
2870,
67,
11100,
67,
19... |
if self.freq <> other.freq: raise ValueError("Cannont subtract dates of different frequency (" + str(self.freq) + " <> " + str(other.freq) + ")") | if self.freq != other.freq: raise ValueError("Cannont subtract dates of different frequency (" + str(self.freq) + " != " + str(other.freq) + ")") | def __sub__(self, other): try: return self + (-1) * other except: pass try: if self.freq <> other.freq: raise ValueError("Cannont subtract dates of different frequency (" + str(self.freq) + " <> " + str(other.freq) + ")") return int(self) - int(other) except TypeError: raise TypeError("Could not subtract types " + str(... | c207acc5c7f49d5bd86329331c20462583407dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c207acc5c7f49d5bd86329331c20462583407dd3/tsdate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
972,
12,
2890,
16,
1308,
4672,
775,
30,
327,
365,
397,
24927,
21,
13,
380,
1308,
1335,
30,
1342,
775,
30,
309,
365,
18,
10212,
480,
1308,
18,
10212,
30,
1002,
2068,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
972,
12,
2890,
16,
1308,
4672,
775,
30,
327,
365,
397,
24927,
21,
13,
380,
1308,
1335,
30,
1342,
775,
30,
309,
365,
18,
10212,
480,
1308,
18,
10212,
30,
1002,
2068,
2932,
... |
line = self.editCtrl.GetLine(stop).strip() if stop == numlines: stop = None else: print "stop", stop, self.editCtrl.GetLine(stop) | def OnToolClick(self, event): id = event.GetId() | 4f7cf094f743cc1258da61338293d78c609f2898 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9699/4f7cf094f743cc1258da61338293d78c609f2898/ispugui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6364,
6563,
12,
2890,
16,
871,
4672,
612,
273,
871,
18,
967,
548,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6364,
6563,
12,
2890,
16,
871,
4672,
612,
273,
871,
18,
967,
548,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] | try: tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] except: tp = a[1] | def get_ui(self): t = UI.DataTable() t.append(UI.DataTableRow(UI.Label(text='Name'), UI.Label(text='Type'), UI.Label(text='Value'), UI.Label(), header=True)) for a in self.cfg.acls: tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] t.append( UI.DataTableRow( UI.Label(text=a[0]), UI.Label(text=tp), UI.Label(text... | e9990d82b678cfed29936dc882234b5f48fadff1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/e9990d82b678cfed29936dc882234b5f48fadff1/ui_acls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
12,
2890,
4672,
268,
273,
6484,
18,
21237,
1435,
268,
18,
6923,
12,
5370,
18,
21237,
1999,
12,
5370,
18,
2224,
12,
955,
2218,
461,
19899,
6484,
18,
2224,
12,
955,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
12,
2890,
4672,
268,
273,
6484,
18,
21237,
1435,
268,
18,
6923,
12,
5370,
18,
21237,
1999,
12,
5370,
18,
2224,
12,
955,
2218,
461,
19899,
6484,
18,
2224,
12,
955,
2218,
... |
log.append('%s: Invalid Key %s ' % data['key']) | log.append('%s: Invalid Key %s ' % (system.fqdn, data['key'])) | def _from_csv(cls,system,data,csv_type,log): """ Import data from CSV file into System Objects """ if 'key' in data and data['key']: try: key = Key.by_name(data['key']) except InvalidRequestError: log.append('%s: Invalid Key %s ' % data['key']) return False else: log.append('%s: Key must not be blank!' % system.fqdn) r... | 247277da0f89bb883fa494ee8e0ef262d7a2354f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/247277da0f89bb883fa494ee8e0ef262d7a2354f/CSV_import_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
6715,
12,
6429,
16,
4299,
16,
892,
16,
6715,
67,
723,
16,
1330,
4672,
3536,
6164,
501,
628,
10381,
585,
1368,
2332,
8487,
3536,
309,
296,
856,
11,
316,
501,
471,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
6715,
12,
6429,
16,
4299,
16,
892,
16,
6715,
67,
723,
16,
1330,
4672,
3536,
6164,
501,
628,
10381,
585,
1368,
2332,
8487,
3536,
309,
296,
856,
11,
316,
501,
471,
501,
... |
r""" Apply substitution to X. If X is a list, it is interpreted as a sequence of bits depending on the bit order of this S-box. INPUT: X -- either an integer, a tuple of GF(2) elements of length \code{len(self)} or a finite field element in GF($2^n$). As a last resort this function tries to convert X to an integer. ... | """ Apply substitution to ``X``. If X is a list, it is interpreted as a sequence of bits depending on the bit order of this S-box. INPUT:: - ``X`` - either an integer, a tuple of `\GF{2}` elements of length ``len(self)`` or a finite field element in `\GF{2^n}`. As a last resort this function tries to convert ``X`` t... | def __call__(self, X): r""" Apply substitution to X. | d8d819d404da04929f5525b5dd795973a8bd80ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d8d819d404da04929f5525b5dd795973a8bd80ae/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1139,
4672,
436,
8395,
5534,
12785,
358,
1139,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1139,
4672,
436,
8395,
5534,
12785,
358,
1139,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hashkey = tuple(args + sorted(kwargs.items())) | hashkey = args + tuple(sorted(kwargs.items())) | def f(*args, **kwargs): if k in self.hashfns: hashval = self.hashfns[k](*args, **kwargs) else: hashkey = tuple(args + sorted(kwargs.items())) hashval = hash(hashkey) server_index = hashval % len(self.servers) server = self.servers[server_index] try: return getattr(server, k)(*args, **kwargs) except Exception, e: e.serv... | 0b6d310b91b4b6fa422ba429cea92ac7c05501b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14738/0b6d310b91b4b6fa422ba429cea92ac7c05501b4/thrift_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
30857,
1968,
16,
2826,
4333,
4672,
309,
417,
316,
365,
18,
2816,
74,
2387,
30,
1651,
1125,
273,
365,
18,
2816,
74,
2387,
63,
79,
29955,
14,
1968,
16,
2826,
4333,
13,
469,
30,
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,
284,
30857,
1968,
16,
2826,
4333,
4672,
309,
417,
316,
365,
18,
2816,
74,
2387,
30,
1651,
1125,
273,
365,
18,
2816,
74,
2387,
63,
79,
29955,
14,
1968,
16,
2826,
4333,
13,
469,
30,
16... |
priority = classAdJob.getAttributeInt( 'Priority' ) | priority = classAdJob.getAttributeInt( 'Priority' ) | def rescheduleJob (self, jobID): """ Reschedule the given job to run again from scratch. Retain the already defined parameters in the parameter Attic """ # Check Verified Flag result = self.getJobAttributes( jobID, ['Status','MinorStatus','VerifiedFlag','RescheduleCounter', 'Owner','OwnerDN','OwnerGroup','DIRACSetup'] ... | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
400,
2847,
2278,
261,
2890,
16,
28913,
4672,
3536,
1124,
2847,
326,
864,
1719,
358,
1086,
3382,
628,
15289,
18,
17100,
530,
326,
1818,
2553,
1472,
316,
326,
1569,
6020,
335,
3536,
468,
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,
400,
2847,
2278,
261,
2890,
16,
28913,
4672,
3536,
1124,
2847,
326,
864,
1719,
358,
1086,
3382,
628,
15289,
18,
17100,
530,
326,
1818,
2553,
1472,
316,
326,
1569,
6020,
335,
3536,
468,
2... |
left, val = f.m2i(pkt,f.getfield(pkt,x[2:olen+2])) | left, val = f.getfield(pkt,x[2:olen+2]) | def m2i(self, pkt, x): | 385a0b84ba4b8d33d51530d01f634443f10df9f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/385a0b84ba4b8d33d51530d01f634443f10df9f0/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
22,
77,
12,
2890,
16,
11536,
16,
619,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
22,
77,
12,
2890,
16,
11536,
16,
619,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
((TEXT, u'Welcome'),), ((TEXT, u'2'),), ((TEXT, u'2'),), ((TEXT, u'2'),)] | ((TEXT, u'Welcome'),)] | def test_get_msg(self): messages = [unit[0] for unit in self.doc.get_units()] expected = [((START_FORMAT, 1), (TEXT, u'Hello '), (END_FORMAT, 1), (START_FORMAT, 2), (TEXT, u'World'), (END_FORMAT, 2), (START_FORMAT, 3), (TEXT, u' !'), (END_FORMAT, 3)), ((TEXT, u'Welcome'),), ((TEXT, u'2'),), ((TEXT, u'2'),), ((TEXT, u'2... | 46dab84bce09ceb3bdb7094bd04403c60b77de48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/46dab84bce09ceb3bdb7094bd04403c60b77de48/test_odf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
3576,
12,
2890,
4672,
2743,
273,
306,
4873,
63,
20,
65,
364,
2836,
316,
365,
18,
2434,
18,
588,
67,
7705,
1435,
65,
2665,
273,
306,
12443,
7570,
67,
7254,
16,
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,
1842,
67,
588,
67,
3576,
12,
2890,
4672,
2743,
273,
306,
4873,
63,
20,
65,
364,
2836,
316,
365,
18,
2434,
18,
588,
67,
7705,
1435,
65,
2665,
273,
306,
12443,
7570,
67,
7254,
16,
404,... |
children.setdefault(p, []).append(n) if not pc: root = n | children.setdefault(p, []).append(n) | def toposort(self, parents): visit = parents.keys() seen = {} children = {} | 6c7810769d00a7ea22018e0dd999f96081ff8dc2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/6c7810769d00a7ea22018e0dd999f96081ff8dc2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
917,
499,
12,
2890,
16,
6298,
4672,
3757,
273,
6298,
18,
2452,
1435,
5881,
273,
2618,
2325,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
917,
499,
12,
2890,
16,
6298,
4672,
3757,
273,
6298,
18,
2452,
1435,
5881,
273,
2618,
2325,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pref_filename = os.path.join(profile_dir, 'prefs.js') pref_file = open(pref_filename, 'rU') pref_lines = pref_file.readlines() newline = pref_file.newlines pref_file.close() pref_re = re.compile('user_pref\(\"([^\"]*)\"\,\s*([^\)]*)\);') | user_js_filename = os.path.join(profile_dir, 'user.js') user_js_file = open(user_js_filename, 'w') | def CreateTempProfileDir(source_profile, prefs, extensions): """Creates a temporary profile directory from the source profile directory and adds the given prefs and links to extensions. Args: source_profile: String containing the absolute path of the source profile directory to copy from. prefs: Preferences to set in ... | 5b08d9d6c5099e97a2c67e377d49207a465449b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13067/5b08d9d6c5099e97a2c67e377d49207a465449b9/ffprofile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
7185,
4029,
1621,
12,
3168,
67,
5040,
16,
15503,
16,
4418,
4672,
3536,
2729,
279,
6269,
3042,
1867,
628,
326,
1084,
3042,
1867,
471,
4831,
326,
864,
15503,
471,
4716,
358,
4418,
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,
1788,
7185,
4029,
1621,
12,
3168,
67,
5040,
16,
15503,
16,
4418,
4672,
3536,
2729,
279,
6269,
3042,
1867,
628,
326,
1084,
3042,
1867,
471,
4831,
326,
864,
15503,
471,
4716,
358,
4418,
18... |
cmd_filename = sage.misc.misc.tmp_filename() | def __call__(self, polys, mode='b', cmd_list=['y', 'input', 'output'], verbose=False): """ Returns as a string the result of running PHC with the given polynomials, mode, and command list. The command list is a sequence of commands that would get input interactively to PHC if you ran it from the command line. | f7be136bb710dbba5eb2dbd3e6bfc2672cd81e39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/f7be136bb710dbba5eb2dbd3e6bfc2672cd81e39/phc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
2952,
1900,
16,
1965,
2218,
70,
2187,
1797,
67,
1098,
33,
3292,
93,
2187,
296,
2630,
2187,
296,
2844,
17337,
3988,
33,
8381,
4672,
3536,
2860,
487,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2952,
1900,
16,
1965,
2218,
70,
2187,
1797,
67,
1098,
33,
3292,
93,
2187,
296,
2630,
2187,
296,
2844,
17337,
3988,
33,
8381,
4672,
3536,
2860,
487,
279,
... | |
for name in os.listdir(ed): suffix='' if name[:lpp]==pp: path=os.path.join(ed, name) try: f=open(path) data=f.read() f.close() if name[-3:]=='.py': data=rot.encrypt(zlib.compress(data)) suffix='p' except: data=None if data: ar.add("%sExtensions/%s%s" % (prefix,name[lpp:],suffix), data) | if os.path.exists(ed): for name in os.listdir(ed): suffix='' if name[:lpp]==pp: path=os.path.join(ed, name) try: f=open(path) data=f.read() f.close() if name[-3:]=='.py': data=rot.encrypt(zlib.compress(data)) suffix='p' except: data=None if data: ar.add("%sExtensions/%s%s" % (prefix,name[lpp:],suffix), data) | def _distribution(self): # Return a distribution if self.__dict__.has_key('manage_options'): raise TypeError, 'This product is <b>not</b> redistributable.' | 475584bcfc4f12ac7d924db076ec20430da3af9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/475584bcfc4f12ac7d924db076ec20430da3af9a/Product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16279,
12,
2890,
4672,
468,
2000,
279,
7006,
309,
365,
16186,
1576,
25648,
5332,
67,
856,
2668,
12633,
67,
2116,
11,
4672,
1002,
3580,
16,
296,
2503,
3017,
353,
411,
70,
34,
902,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16279,
12,
2890,
4672,
468,
2000,
279,
7006,
309,
365,
16186,
1576,
25648,
5332,
67,
856,
2668,
12633,
67,
2116,
11,
4672,
1002,
3580,
16,
296,
2503,
3017,
353,
411,
70,
34,
902,
... |
@return: ID of function frame or None In order to access stack variables | @return: ID of function frame or None In order to access stack variables | def GetFrame(ea): """ Get ID of function frame structure @param ea: any address belonging to the function @return: ID of function frame or None In order to access stack variables you need to use structure member manipulaion functions with the obtained ID. """ frame = idaapi.get_frame(ea) if frame: return frame.id el... | f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3219,
12,
24852,
4672,
3536,
968,
1599,
434,
445,
2623,
3695,
225,
632,
891,
24164,
30,
1281,
1758,
17622,
358,
326,
445,
225,
632,
2463,
30,
1599,
434,
445,
2623,
578,
599,
657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3219,
12,
24852,
4672,
3536,
968,
1599,
434,
445,
2623,
3695,
225,
632,
891,
24164,
30,
1281,
1758,
17622,
358,
326,
445,
225,
632,
2463,
30,
1599,
434,
445,
2623,
578,
599,
657,
... |
if not auth_code: | if (auth_code != 'false'): | def delete(req, ln=cdslang, comid=""): """ Delete a comment by giving its comment id @param ln: language @param comid: comment id """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = getnavtrail() navtrail_previous_links += ' > <a class="navtrail" href="%s/admin/webcomment/webcommentadmi... | 329747471d0412f3b91d89a88dd32e900337f1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/329747471d0412f3b91d89a88dd32e900337f1e8/webcommentadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
3658,
16,
7211,
33,
4315,
2069,
539,
16,
532,
350,
1546,
6,
4672,
3536,
2504,
279,
2879,
635,
21057,
2097,
2879,
612,
632,
891,
7211,
30,
2653,
632,
891,
532,
350,
30,
2879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
3658,
16,
7211,
33,
4315,
2069,
539,
16,
532,
350,
1546,
6,
4672,
3536,
2504,
279,
2879,
635,
21057,
2097,
2879,
612,
632,
891,
7211,
30,
2653,
632,
891,
532,
350,
30,
2879,
... |
'message': _('You are moving %.2f products but only %.2f available in this lot.') % (product_qty, prodlot.stock_available or 0.0) | 'message': _('You are moving %.2f %s products but only %.2f %s available in this lot.') % (product_qty, uom.name, prodlot.stock_available or 0.0, uom.name) | def onchange_lot_id(self, cr, uid, ids, prodlot_id=False, product_qty=False, loc_id=False, product_id=False, context=None): """ On change of production lot gives a warning message. @param prodlot_id: Changed production lot id @param product_qty: Quantity of product @param loc_id: Location id @param product_id: Product ... | bf6cd14b5a1b5084a87a95b94cc562d638e5760a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bf6cd14b5a1b5084a87a95b94cc562d638e5760a/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
23372,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
450,
5761,
352,
67,
350,
33,
8381,
16,
3017,
67,
85,
4098,
33,
8381,
16,
1515,
67,
350,
33,
8381,
16,
301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3427,
67,
23372,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
450,
5761,
352,
67,
350,
33,
8381,
16,
3017,
67,
85,
4098,
33,
8381,
16,
1515,
67,
350,
33,
8381,
16,
301... |
def got_command(self, dispatcher, command, headers): | def got_command(self, dispatcher, command, seq, headers): | def got_command(self, dispatcher, command, headers): if command == "update": local_media = self.session_manager.update_session(dispatcher, **headers) if local_media is None: return "halting\r\n" else: return " ".join([local_media[0][0]] + [str(media[1]) for media in local_media]) + "\r\n" else: # remove session = self.... | 5d8d23d72394b575564423e278067e682d95a428 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/5d8d23d72394b575564423e278067e682d95a428/relay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
3076,
12,
2890,
16,
7393,
16,
1296,
16,
3833,
16,
1607,
4672,
309,
1296,
422,
315,
2725,
6877,
1191,
67,
5829,
273,
365,
18,
3184,
67,
4181,
18,
2725,
67,
3184,
12,
18495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
3076,
12,
2890,
16,
7393,
16,
1296,
16,
3833,
16,
1607,
4672,
309,
1296,
422,
315,
2725,
6877,
1191,
67,
5829,
273,
365,
18,
3184,
67,
4181,
18,
2725,
67,
3184,
12,
18495,
... |
report_type= data.get('report_type', report_type) | report_type= data.get('report_type', report_type) | def create(self, cr, uid, ids, data, context=None): if not context: context={} context = context.copy() pool = pooler.get_pool(cr.dbname) ir_actions_report_xml_obj = pool.get('ir.actions.report.xml') report_xml_ids = ir_actions_report_xml_obj.search(cr, uid, [('report_name', '=', self.name[7:])], context=context) repor... | 485d3d152fa634a39e284502fbe1f115e3480fa4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/485d3d152fa634a39e284502fbe1f115e3480fa4/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
819,
273,
819,
18,
3530,
1435,
2845,
273,
2845,
264,
18,
588,
67,
6011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
819,
273,
819,
18,
3530,
1435,
2845,
273,
2845,
264,
18,
588,
67,
6011,
... |
print params | def get_all_keys(self, headers=None, **params): """ A lower-level method for listing contents of a bucket. This closely models the actual S3 API and requires you to manually handle the paging of results. For a higher-level method that handles the details of paging for you, you can use the list method. @type maxkeys:... | 0a1ed4d7c02f35fd68502a60bac9784fe1c9331d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/0a1ed4d7c02f35fd68502a60bac9784fe1c9331d/bucket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
2452,
12,
2890,
16,
1607,
33,
7036,
16,
2826,
2010,
4672,
3536,
432,
2612,
17,
2815,
707,
364,
11591,
2939,
434,
279,
2783,
18,
225,
1220,
1219,
1786,
93,
3679,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
2452,
12,
2890,
16,
1607,
33,
7036,
16,
2826,
2010,
4672,
3536,
432,
2612,
17,
2815,
707,
364,
11591,
2939,
434,
279,
2783,
18,
225,
1220,
1219,
1786,
93,
3679,
326,
... | |
self.assertEqual(b.split(), [b'\x1c\x1d\x1e\x1f']) | def test_rsplit_unicodewhitespace(self): b = self.type2test(b"\x09\x0A\x0B\x0C\x0D\x1C\x1D\x1E\x1F") self.assertEqual(b.split(), [b'\x1c\x1d\x1e\x1f']) self.assertEqual(b.rsplit(), [b'\x1c\x1d\x1e\x1f']) | 63adf4295abae2bef35cf0e60123913746080fa0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/63adf4295abae2bef35cf0e60123913746080fa0/test_bytes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
86,
4939,
67,
9124,
18777,
12,
2890,
4672,
324,
273,
365,
18,
723,
22,
3813,
12,
70,
12691,
92,
5908,
64,
92,
20,
37,
64,
92,
20,
38,
64,
92,
20,
39,
64,
92,
20,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
86,
4939,
67,
9124,
18777,
12,
2890,
4672,
324,
273,
365,
18,
723,
22,
3813,
12,
70,
12691,
92,
5908,
64,
92,
20,
37,
64,
92,
20,
38,
64,
92,
20,
39,
64,
92,
20,
40,
... | |
if lastSigVersion != sigVersion: | if lastSigVersion == sigVersion: if sigDigest() != lastDigest: return False else: lastDigest = sigDigest() | def verifyDigests(self): """ Verifies the digests trove. | 9e97cc627c0c45913a622821769be0f3ec0a39c6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/9e97cc627c0c45913a622821769be0f3ec0a39c6/trove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
9568,
87,
12,
2890,
4672,
3536,
6160,
5032,
326,
5403,
87,
23432,
537,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
9568,
87,
12,
2890,
4672,
3536,
6160,
5032,
326,
5403,
87,
23432,
537,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(poslines) != len(forcelines): raise ValueError('Number of pos lines (%d) != force lines (%d)'\ | if poslines != [] and forcelines != [] and len(poslines) != len(forcelines): raise ValueError('Number of pos lines (%d) != force lines (%d)' | def CastepGeomReader(source): """Generator to read frames from CASTEP .geom file""" if type(source) == type(''): source = open(source, 'r') source = iter(source) while True: lines = [] line = source.next().strip() # raises StopIteration at end of file # Skip header if present if line.startswith('BEGIN header'): whil... | ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19782,
881,
16972,
2514,
12,
3168,
4672,
3536,
3908,
358,
855,
7793,
628,
6425,
26951,
263,
10049,
585,
8395,
225,
309,
618,
12,
3168,
13,
422,
618,
2668,
11,
4672,
1084,
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,
19782,
881,
16972,
2514,
12,
3168,
4672,
3536,
3908,
358,
855,
7793,
628,
6425,
26951,
263,
10049,
585,
8395,
225,
309,
618,
12,
3168,
13,
422,
618,
2668,
11,
4672,
1084,
273,
1696,
12,
... |
c.bookmarkPage("P2_FIT",fitType="Fit") | c.bookmarkPage("P2_FIT",fit="Fit") | def test1(self): | b3e8a12158cd0879ec0ae788465c6732c3f6ea3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b3e8a12158cd0879ec0ae788465c6732c3f6ea3f/test_pdfgen_links.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
21,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
21,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if not ptn_id or not cpy_id or not ptn_invoice_id: | if not part_id or not company_id or not ptn_invoice_id: | def onchange_company_id(self, cr, uid, ids, cpy_id, ptn_id, ptn_invoice_id): result = {'value': {'fiscal_position': False}} if not ptn_id or not cpy_id or not ptn_invoice_id: return result if result['value']['fiscal_position']: return result obj_company = self.pool.get('res.company').browse(cr, uid, [cpy_id])[0] c... | f97dd8e3f963cc9d96a4300a8af1eac67794309e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/f97dd8e3f963cc9d96a4300a8af1eac67794309e/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
16840,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
24534,
67,
350,
16,
293,
5088,
67,
350,
16,
293,
5088,
67,
16119,
67,
350,
4672,
225,
563,
273,
13666,
1132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3427,
67,
16840,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
24534,
67,
350,
16,
293,
5088,
67,
350,
16,
293,
5088,
67,
16119,
67,
350,
4672,
225,
563,
273,
13666,
1132... |
def call(self, auth, nodegroup_id_or_name, name, description): | def call(self, auth, nodegroup_id_or_name, nodegroup_fields = {}): nodegroup_fields = dict(filter(can_update, nodegroup_fields.items())) | def call(self, auth, nodegroup_id_or_name, name, description): | 1d38462c0f3983b50994f00e6602c4c80b4604a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/1d38462c0f3983b50994f00e6602c4c80b4604a8/UpdateNodeGroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
1655,
67,
350,
67,
280,
67,
529,
16,
508,
16,
2477,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
1655,
67,
350,
67,
280,
67,
529,
16,
508,
16,
2477,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
png = psfile.new(ext="png") eps = psfile.new(ext="eps") try: ps2eps(psfile) except: py.process.cmdexec("convert %s %s" % (psfile, png)) else: py.process.cmdexec("convert %s %s" % (eps, png)) | png = epsfile.new(ext="png") py.process.cmdexec("convert %s %s" % (epsfile, png)) | def ps2eps(ps): try: py.process.cmdexec("ps2eps -l -f %s" % ps) except: try: py.process.cmdexec("ps2epsi %s %s" % (psfile, eps)) except: raise OSError("neither ps2eps nor ps2epsi found") | a6b1f7cf50988cb5c10cc003d2bf9770377e757e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/a6b1f7cf50988cb5c10cc003d2bf9770377e757e/mydot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4250,
22,
13058,
12,
1121,
4672,
775,
30,
2395,
18,
2567,
18,
7670,
561,
557,
2932,
1121,
22,
13058,
300,
80,
300,
74,
738,
87,
6,
738,
4250,
13,
1335,
30,
775,
30,
2395,
18,
2567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4250,
22,
13058,
12,
1121,
4672,
775,
30,
2395,
18,
2567,
18,
7670,
561,
557,
2932,
1121,
22,
13058,
300,
80,
300,
74,
738,
87,
6,
738,
4250,
13,
1335,
30,
775,
30,
2395,
18,
2567,
... |
if self.item: return AnimItem.anim.gcomprisBoard.canvas.\ convert_to_item_space(self.item, x, y) | def snap_to_grid(self, x, y): | d60371b01e9973a3c6ca6dba4ce92344abed401d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11306/d60371b01e9973a3c6ca6dba4ce92344abed401d/AnimItem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10915,
67,
869,
67,
5222,
12,
2890,
16,
619,
16,
677,
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,
10915,
67,
869,
67,
5222,
12,
2890,
16,
619,
16,
677,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
RegistrationFilters.REgistrationFilter.updateProgress(self) | RegistrationFilters.RegistrationFilter.updateProgress(self) | def updateProgress(self): """ Created: 19.12.2007, LP Description: Updates progress of the registration process. """ currentParameter = self.transform.GetParameters() print "M: %f T: %f %f %f V: %f %f %f" %(self.optimizer.GetValue(),currentParameter.GetElement(3),currentParameter.GetElement(4),currentParameter.GetEleme... | 2053f33558d9b08a2031d88062c9b10ee709f418 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2877/2053f33558d9b08a2031d88062c9b10ee709f418/VersorRigid3DRegistration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5491,
12,
2890,
4672,
3536,
12953,
30,
5342,
18,
2138,
18,
6976,
27,
16,
511,
52,
6507,
30,
15419,
4007,
434,
326,
7914,
1207,
18,
3536,
783,
1662,
273,
365,
18,
6547,
18,
967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5491,
12,
2890,
4672,
3536,
12953,
30,
5342,
18,
2138,
18,
6976,
27,
16,
511,
52,
6507,
30,
15419,
4007,
434,
326,
7914,
1207,
18,
3536,
783,
1662,
273,
365,
18,
6547,
18,
967,
... |
print socket.getservbyname('telnet', 'tcp') try: socket.getservbyname('telnet', 'udp') except socket.error: pass | if hasattr(socket, 'getservbyname'): print socket.getservbyname('telnet', 'tcp') try: socket.getservbyname('telnet', 'udp') except socket.error: pass | def missing_ok(str): try: getattr(socket, str) except AttributeError: pass | 6870bba459a7c30908c8640b20023e9817e8ac53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6870bba459a7c30908c8640b20023e9817e8ac53/test_socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3315,
67,
601,
12,
701,
4672,
775,
30,
3869,
12,
7814,
16,
609,
13,
1335,
6394,
30,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3315,
67,
601,
12,
701,
4672,
775,
30,
3869,
12,
7814,
16,
609,
13,
1335,
6394,
30,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.breaks = {} | self.tryLoadBreakpoints() | def __init__(self, parent, model): if hasattr(model, 'app') and model.app: a2 = (('Run application', self.OnRunApp, self.runAppBmp, keyDefs['RunApp']),) else: a2 = () a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', s... | dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
938,
4672,
309,
3859,
12,
2284,
16,
296,
2910,
6134,
471,
938,
18,
2910,
30,
279,
22,
273,
261,
2668,
1997,
2521,
2187,
365,
18,
1398,
1997,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
938,
4672,
309,
3859,
12,
2284,
16,
296,
2910,
6134,
471,
938,
18,
2910,
30,
279,
22,
273,
261,
2668,
1997,
2521,
2187,
365,
18,
1398,
1997,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.