rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
for k in sorted(registry._module_key_map.itervalues()): descriptor = registry.descriptors[k] combo.addItem(descriptor.name, QtCore.QVariant(descriptor.sigstring)) | for k, descriptor in sorted(registry.descriptors.iteritems()): if not descriptor.module_abstract(): combo.addItem("%s (%s)" % (k[1], k[0]), QtCore.QVariant(descriptor.sigstring)) | def createEditor(self, parent, option, index): registry = get_module_registry() if index.column()==1: #Port type combo = QtGui.QComboBox(parent) combo.setEditable(False) # FIXME just use descriptors here!! for k in sorted(registry._module_key_map.itervalues()): descriptor = registry.descriptors[k] combo.addItem(descrip... | 6b68013812c03494141a83848a752c85adbb438f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/6b68013812c03494141a83848a752c85adbb438f/tuple_configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6946,
12,
2890,
16,
982,
16,
1456,
16,
770,
4672,
4023,
273,
336,
67,
2978,
67,
9893,
1435,
309,
770,
18,
2827,
1435,
631,
21,
30,
468,
2617,
618,
16778,
273,
23425,
18,
53,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6946,
12,
2890,
16,
982,
16,
1456,
16,
770,
4672,
4023,
273,
336,
67,
2978,
67,
9893,
1435,
309,
770,
18,
2827,
1435,
631,
21,
30,
468,
2617,
618,
16778,
273,
23425,
18,
53,
221... |
xml_glob = triggerList[0] | def readTriggerFiles(self,cp,opts): if not self.cache or self.triggerTag == "": xml_glob = string.strip(cp.get('followup-triggers','xml-glob')) triggerList = glob.glob(xml_glob) else: triggerCache = self.filesMatchingGPSinCache(None,self.triggerTag) triggerList = self.getListFromCache(triggerCache) xml_glob = triggerL... | 2b6b935e59ed05e1e6dc17ea3ebff4d8c7a7542c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/2b6b935e59ed05e1e6dc17ea3ebff4d8c7a7542c/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6518,
2697,
12,
2890,
16,
4057,
16,
4952,
4672,
225,
309,
486,
365,
18,
2493,
578,
365,
18,
10668,
1805,
422,
1408,
30,
2025,
67,
10581,
273,
533,
18,
6406,
12,
4057,
18,
588,
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,
855,
6518,
2697,
12,
2890,
16,
4057,
16,
4952,
4672,
225,
309,
486,
365,
18,
2493,
578,
365,
18,
10668,
1805,
422,
1408,
30,
2025,
67,
10581,
273,
533,
18,
6406,
12,
4057,
18,
588,
2... | |
if role==ROLE_SERVER: | if role==ROLE_SERVER and not trainingMode: | def startGame(): taskMgr.add(moveKickerTask, "gameTask"); if role==ROLE_SERVER: taskMgr.add(pingTask, "pingTask"); # not needed, currently. enable to determine rtt (deltatime) | 304e263a4040069059a78e2746eab32fa368c72b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12834/304e263a4040069059a78e2746eab32fa368c72b/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12496,
13332,
1562,
9455,
18,
1289,
12,
8501,
47,
5448,
2174,
16,
315,
13957,
2174,
8863,
309,
2478,
631,
16256,
67,
4370,
471,
486,
8277,
2309,
30,
1562,
9455,
18,
1289,
12,
1382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12496,
13332,
1562,
9455,
18,
1289,
12,
8501,
47,
5448,
2174,
16,
315,
13957,
2174,
8863,
309,
2478,
631,
16256,
67,
4370,
471,
486,
8277,
2309,
30,
1562,
9455,
18,
1289,
12,
1382,
... |
cmd = "/bin/mount -t ext3 " + parts[0] | cmd = "mount -t ext3 " + parts[0] | def mount(self): try: fstab = open("/etc/fstab") except IOError: return -1 | a35c57a736086abaef5a82e2e117a12e3a79b273 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/a35c57a736086abaef5a82e2e117a12e3a79b273/Harddisk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5344,
12,
2890,
4672,
775,
30,
20223,
378,
273,
1696,
2932,
19,
14175,
19,
74,
334,
378,
7923,
1335,
8340,
30,
327,
300,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5344,
12,
2890,
4672,
775,
30,
20223,
378,
273,
1696,
2932,
19,
14175,
19,
74,
334,
378,
7923,
1335,
8340,
30,
327,
300,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def command_help(self, args): | def command_help(self, arg): | def command_help(self, args): """ /help <command_name> """ room = self.current_room() if len(args) == 0: msg = _('Available commands are: ') for command in self.commands.keys(): msg += "%s " % command msg += _("\nType /help <command_name> to know what each command does") if len(args) == 1: if args[0] in self.commands.k... | 1c7377804051166c26f33457378524d192077c66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/1c7377804051166c26f33457378524d192077c66/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
5201,
12,
2890,
16,
1501,
4672,
3536,
342,
5201,
411,
3076,
67,
529,
34,
3536,
7725,
273,
365,
18,
2972,
67,
13924,
1435,
309,
562,
12,
1968,
13,
422,
374,
30,
1234,
273,
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,
1296,
67,
5201,
12,
2890,
16,
1501,
4672,
3536,
342,
5201,
411,
3076,
67,
529,
34,
3536,
7725,
273,
365,
18,
2972,
67,
13924,
1435,
309,
562,
12,
1968,
13,
422,
374,
30,
1234,
273,
3... |
classes = node.get('classes', ['Unknown', ]) for cls in classes: self.body.append( '\\docutilsrole%s{' % cls) self.context.append('}'*len(classes)) | self.latex_fallbacks['inline'] = latex_headings['DUspan'] classes = node.get('classes', []) self.body.append(r'\DUspan{%s}{' %','.join(classes)) | def visit_inline(self, node): # titlereference classes = node.get('classes', ['Unknown', ]) for cls in classes: self.body.append( '\\docutilsrole%s{' % cls) self.context.append('}'*len(classes)) | ed0abdb5db877dcbb02815b3989607b66d92de4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1532/ed0abdb5db877dcbb02815b3989607b66d92de4c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10047,
12,
2890,
16,
756,
4672,
468,
268,
305,
749,
73,
1134,
3318,
273,
756,
18,
588,
2668,
4701,
2187,
10228,
4874,
2187,
308,
13,
364,
2028,
316,
3318,
30,
365,
18,
3432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10047,
12,
2890,
16,
756,
4672,
468,
268,
305,
749,
73,
1134,
3318,
273,
756,
18,
588,
2668,
4701,
2187,
10228,
4874,
2187,
308,
13,
364,
2028,
316,
3318,
30,
365,
18,
3432,
... |
core_state["filename"] = core_state["history"][-1] | filename = core_state["history"][-1] | def hyltMain (meta_screen, starting_filename): curses.curs_set(0) | dbabc7ec51ba32db10e46ac6dc0054947f6fdccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/dbabc7ec51ba32db10e46ac6dc0054947f6fdccc/hylt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4855,
5618,
6376,
261,
3901,
67,
9252,
16,
5023,
67,
3459,
4672,
225,
30436,
18,
2789,
67,
542,
12,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4855,
5618,
6376,
261,
3901,
67,
9252,
16,
5023,
67,
3459,
4672,
225,
30436,
18,
2789,
67,
542,
12,
20,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
l = W[k] | li = W[k] | def search_tree(G, Pi, lab=True, dig=False, dict=False, proof=False, verbosity=0): """ Assumes that the vertex set of G is {0,1,...,n-1} for some n. Note that this conflicts with the SymmetricGroup we are using to represent automorphisms. The solution is to let the group act on the set {1,2,...,n}, under the assumptio... | 7ab22483839352913d606d7876b7c4edf05fc338 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7ab22483839352913d606d7876b7c4edf05fc338/graph_isom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
3413,
12,
43,
16,
13380,
16,
11814,
33,
5510,
16,
3097,
33,
8381,
16,
2065,
33,
8381,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
25374,
716,
326,
5253,
444,
434,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
3413,
12,
43,
16,
13380,
16,
11814,
33,
5510,
16,
3097,
33,
8381,
16,
2065,
33,
8381,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
25374,
716,
326,
5253,
444,
434,
6... |
if not rexp.match(arg) : continue | if not rexp.match(arg.GetName()) : continue | def setConstant(ws, pattern, constant = True, value = None): rc = 0 import re rexp = re.compile(pattern) for arg in ws.allVars() : if not rexp.match(arg) : continue arg.setConstant( constant ) if constant and value : if value < arg.getMin() : arg.setMin(value) if value > arg.getMax() : arg.setMax(value) arg.setVal(valu... | 53bdedcce0d095ae22c4f8dda0ebbd5f473a1fc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7060/53bdedcce0d095ae22c4f8dda0ebbd5f473a1fc4/RooFitDecorators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
6902,
12,
4749,
16,
1936,
16,
5381,
273,
1053,
16,
460,
273,
599,
4672,
4519,
273,
374,
1930,
283,
283,
23829,
273,
283,
18,
11100,
12,
4951,
13,
364,
1501,
316,
4945,
18,
454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
6902,
12,
4749,
16,
1936,
16,
5381,
273,
1053,
16,
460,
273,
599,
4672,
4519,
273,
374,
1930,
283,
283,
23829,
273,
283,
18,
11100,
12,
4951,
13,
364,
1501,
316,
4945,
18,
454,
... |
recID_list_ = perform_request_search(c=oai['c'].split(','), | recID_list_ = perform_request_search(c=[coll.strip() for coll in oai['c'].split(',')], | def get_recID_list(oai_sets, set): setSpec = "" setName = "" setCoverage = "" #list_of_sets = [] processed_sets = [] recID_list = [] for oai in oai_sets: if oai['setSpec'] in processed_sets : pass else: #list_of_sets.append(oai) processed_sets.append(oai['setSpec']) if(oai['setSpe... | 13fdcb7409ddb1944d0f7286e439338dd26a99f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/13fdcb7409ddb1944d0f7286e439338dd26a99f1/oaiarchive_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3927,
734,
67,
1098,
12,
83,
10658,
67,
4424,
16,
444,
4672,
225,
444,
1990,
1850,
273,
1408,
6788,
1850,
273,
1408,
444,
9739,
1377,
273,
1408,
468,
1098,
67,
792,
67,
4424,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3927,
734,
67,
1098,
12,
83,
10658,
67,
4424,
16,
444,
4672,
225,
444,
1990,
1850,
273,
1408,
6788,
1850,
273,
1408,
444,
9739,
1377,
273,
1408,
468,
1098,
67,
792,
67,
4424,
... |
def _view_look_dom_arch(self, cursor, user, tree, context=None): | def _view_look_dom_arch(self, cursor, user, tree, type, context=None): | def _view_look_dom_arch(self, cursor, user, tree, context=None): analytic_account_obj = self.pool.get('analytic_account.account') analytic_account_obj.convert_view(cursor, user, tree, context=context) arch, fields = super(PurchaseLine, self)._view_look_dom_arch(cursor, user, tree, context=context) return arch, fields | 478f145f77d322c8a5c7ef27f315e04d883e8772 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9277/478f145f77d322c8a5c7ef27f315e04d883e8772/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1945,
67,
7330,
67,
9859,
67,
991,
12,
2890,
16,
3347,
16,
729,
16,
2151,
16,
618,
16,
819,
33,
7036,
4672,
392,
7834,
335,
67,
4631,
67,
2603,
273,
365,
18,
6011,
18,
588,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1945,
67,
7330,
67,
9859,
67,
991,
12,
2890,
16,
3347,
16,
729,
16,
2151,
16,
618,
16,
819,
33,
7036,
4672,
392,
7834,
335,
67,
4631,
67,
2603,
273,
365,
18,
6011,
18,
588,
26... |
value, err = self._series(v, z) | value, err = self.iv_series(v, z) | def test_iv_series(self): for v in [-20., -10., -1., 0., 1., 12.49, 120.]: for z in [1., 10., 200.5, -1+2j]: value, err = self._series(v, z) assert_tol_equal(iv(v, z), value, atol=err, err_msg=(v, z)) | 670b0f6dc7ca2d2b86c72fd8030fd59c4629abef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/670b0f6dc7ca2d2b86c72fd8030fd59c4629abef/test_basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
427,
67,
10222,
12,
2890,
4672,
364,
331,
316,
23059,
3462,
12990,
300,
2163,
12990,
300,
21,
12990,
374,
12990,
404,
12990,
2593,
18,
7616,
16,
15743,
18,
14542,
364,
998,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
427,
67,
10222,
12,
2890,
4672,
364,
331,
316,
23059,
3462,
12990,
300,
2163,
12990,
300,
21,
12990,
374,
12990,
404,
12990,
2593,
18,
7616,
16,
15743,
18,
14542,
364,
998,
316... |
raise RuntimeError, "You must intall the optional gap_packages package." | raise RuntimeError, "You must install the optional gap_packages package." | def cohomology(self, n, p = 0): r""" Computes the group cohomology `H^n(G, F)`, where `F = \ZZ` if `p=0` and `F = \ZZ / p \ZZ` if `p > 0` is a prime. Wraps HAP's ``GroupHomology`` function, written by Graham Ellis. REQUIRES: GAP package HAP (in gap_packages-\*.spkg). EXAMPLES:: sage: G = SymmetricGroup(4) sage: G.co... | fa0b770d85ec2cdcebd583672be03ce9fd3df119 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fa0b770d85ec2cdcebd583672be03ce9fd3df119/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
17125,
4676,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
436,
8395,
14169,
281,
326,
1041,
1825,
17125,
4676,
1375,
44,
66,
82,
12,
43,
16,
478,
13,
9191,
1625,
1375,
42,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
17125,
4676,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
436,
8395,
14169,
281,
326,
1041,
1825,
17125,
4676,
1375,
44,
66,
82,
12,
43,
16,
478,
13,
9191,
1625,
1375,
42,
273,
... |
template :string | template: string | def __init__(self, dir='.', template=None, speciespath=None, bin='excitingser', kpts=(1, 1, 1), **kwargs): """Exciting calculator object constructor Parameters ---------- dir : string directory in which to excecute exciting template :string Path to XSLT templat if it schould be used default: none bin :string Path or e... | 9cbf4e6ca2cb470d699b1c8d27f42fb6533ce806 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/9cbf4e6ca2cb470d699b1c8d27f42fb6533ce806/exciting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1577,
2218,
1093,
16,
1542,
33,
7036,
16,
12891,
803,
33,
7036,
16,
4158,
2218,
10075,
305,
310,
550,
2187,
417,
1092,
28657,
21,
16,
404,
16,
404,
3631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
2218,
1093,
16,
1542,
33,
7036,
16,
12891,
803,
33,
7036,
16,
4158,
2218,
10075,
305,
310,
550,
2187,
417,
1092,
28657,
21,
16,
404,
16,
404,
3631,... |
if hasattr(value, 'shape'): | if hasattr(value, '__iter__'): value = farray(value) | def add_property(self, name, value, n_cols=1): """ Add a new property to this Atoms object. | 0f111c958ab0e88cd01fd55c13a6005ce0e19c70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/0f111c958ab0e88cd01fd55c13a6005ce0e19c70/extras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4468,
12,
2890,
16,
508,
16,
460,
16,
290,
67,
6842,
33,
21,
4672,
3536,
1436,
279,
394,
1272,
358,
333,
7149,
87,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4468,
12,
2890,
16,
508,
16,
460,
16,
290,
67,
6842,
33,
21,
4672,
3536,
1436,
279,
394,
1272,
358,
333,
7149,
87,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return self.images[name]['url'] | return nget(self.images, name)['url'] | def getURL(self, name, size=None): try: return self.images[name]['url'] except KeyError: return None | 534819a3727f235571481b0675a66077bf8109ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/534819a3727f235571481b0675a66077bf8109ac/zipwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19341,
12,
2890,
16,
508,
16,
963,
33,
7036,
4672,
775,
30,
327,
290,
588,
12,
2890,
18,
7369,
16,
508,
13,
3292,
718,
3546,
1335,
4999,
30,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19341,
12,
2890,
16,
508,
16,
963,
33,
7036,
4672,
775,
30,
327,
290,
588,
12,
2890,
18,
7369,
16,
508,
13,
3292,
718,
3546,
1335,
4999,
30,
327,
599,
225,
2,
-100,
-100,
-100,
-100,... |
"universe":"vanilla" | "universe":"vanilla", | def modifyCP(cp,defaults): """ Appended the configuration information in defaults into the config parser (cp) object and return a copy of this newly update cp object. """ if not(cp.has_section(defaults["section"])): cp.add_section(defaults["section"]) for key, val in defaults["options"].iteritems(): if not cp.has_optio... | 9e152961c57c114ca32f6d71b76f936ddd7c7b79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9e152961c57c114ca32f6d71b76f936ddd7c7b79/fu_Condor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
4258,
12,
4057,
16,
7606,
4672,
3536,
1716,
11275,
326,
1664,
1779,
316,
3467,
1368,
326,
642,
2082,
261,
4057,
13,
733,
471,
327,
279,
1610,
434,
333,
10894,
1089,
3283,
733,
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,
5612,
4258,
12,
4057,
16,
7606,
4672,
3536,
1716,
11275,
326,
1664,
1779,
316,
3467,
1368,
326,
642,
2082,
261,
4057,
13,
733,
471,
327,
279,
1610,
434,
333,
10894,
1089,
3283,
733,
18,
... |
assert_raises(SystemExit,cron_util.getProcessingWindow,config,self.tableName,cursor,me.fileLogger,deltaWindow=delta,processingDay=procDay) assert_raises(SystemExit,cron_util.getProcessingWindow,config,self.tableName,cursor,me.fileLogger,startWindow=start,processingDay=procDay) assert_raises(SystemExit,cron_util.getProc... | assert_raises(SystemExit,cron_util.getProcessingWindow,config,self.tableName,None,cursor,me.fileLogger,deltaWindow=delta,processingDay=procDay) assert_raises(SystemExit,cron_util.getProcessingWindow,config,self.tableName,None,cursor,me.fileLogger,startWindow=start,processingDay=procDay) assert_raises(SystemExit,cron_ut... | def testGetProcessingWindow(self): cursor = self.connection.cursor() config = {} # check that a really empty system fails assert_raises(SystemExit,cron_util.getProcessingWindow,config,self.tableName,cursor,me.fileLogger) | cafbae83143e839351f7e00f20999c211cfa9fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/cafbae83143e839351f7e00f20999c211cfa9fdb/testUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
7798,
3829,
12,
2890,
4672,
3347,
273,
365,
18,
4071,
18,
9216,
1435,
642,
273,
2618,
468,
866,
716,
279,
8654,
1008,
2619,
6684,
1815,
67,
354,
6141,
12,
22729,
16,
18041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
7798,
3829,
12,
2890,
4672,
3347,
273,
365,
18,
4071,
18,
9216,
1435,
642,
273,
2618,
468,
866,
716,
279,
8654,
1008,
2619,
6684,
1815,
67,
354,
6141,
12,
22729,
16,
18041,
... |
self.prune_file_list() | if self.prune: self.prune_file_list() | def get_file_list (self): """Figure out the list of files to include in the source distribution, and put it in 'self.files'. This might involve reading the manifest template (and writing the manifest), or just reading the manifest, or just using the default file set -- it all depends on the user's options and the stat... | 9c5d865b9fb9fe64faba573d6c415fce6c85800d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9c5d865b9fb9fe64faba573d6c415fce6c85800d/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
1098,
261,
2890,
4672,
3536,
42,
15906,
596,
326,
666,
434,
1390,
358,
2341,
316,
326,
1084,
7006,
16,
471,
1378,
518,
316,
296,
2890,
18,
2354,
10332,
225,
1220,
482... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
67,
1098,
261,
2890,
4672,
3536,
42,
15906,
596,
326,
666,
434,
1390,
358,
2341,
316,
326,
1084,
7006,
16,
471,
1378,
518,
316,
296,
2890,
18,
2354,
10332,
225,
1220,
482... |
(key, value, self._host)) | (key, value, host)) | def __setitem__(self, key, value): if key not in self._data: self.__getitem__(key) c = self._db.cursor(self._log) if self._data[key] is None: c.execute("""INSERT INTO settings (value, data, hostname) VALUES (%s,%s,%s)""", (key, value, self._host)) else: if self._host == 'NULL': where = 'IS NULL' wheredat = (value, key)... | 579d2b0d74c64f5c9a73587dd87d4cda3aafef04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/579d2b0d74c64f5c9a73587dd87d4cda3aafef04/MythBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
309,
498,
486,
316,
365,
6315,
892,
30,
365,
16186,
31571,
972,
12,
856,
13,
276,
273,
365,
6315,
1966,
18,
9216,
12,
2890,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
309,
498,
486,
316,
365,
6315,
892,
30,
365,
16186,
31571,
972,
12,
856,
13,
276,
273,
365,
6315,
1966,
18,
9216,
12,
2890,
63... |
"BM.{4}\0{4}.{4}[\x0C\x28\x6C]\0{3}", | "BM.{4}.{8}[\x0C\x28\x6C]\0{3}", | def createFields(self): # Version 2 (12 bytes) yield UInt32(self, "header_size", "Header size") yield UInt32(self, "width", "Width (pixels)") yield UInt32(self, "height", "Height (pixels)") yield UInt16(self, "nb_plan", "Number of plan (=1)") yield UInt16(self, "bpp", "Bits per pixel") # may be zero for PNG/JPEG pictur... | b542476656e7f2f9813c1f1e2ab64c1775221fb9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/b542476656e7f2f9813c1f1e2ab64c1775221fb9/bmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
468,
4049,
576,
261,
2138,
1731,
13,
2824,
29810,
1578,
12,
2890,
16,
315,
3374,
67,
1467,
3113,
315,
1864,
963,
7923,
2824,
29810,
1578,
12,
2890,
16,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
12,
2890,
4672,
468,
4049,
576,
261,
2138,
1731,
13,
2824,
29810,
1578,
12,
2890,
16,
315,
3374,
67,
1467,
3113,
315,
1864,
963,
7923,
2824,
29810,
1578,
12,
2890,
16,
315,
... |
c.execute("""DELETE FROM ticket""") | c.execute("DELETE FROM ticket") | def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "B... | 63f7bce156a2ed5a10227f95c07a9ae105efaf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/63f7bce156a2ed5a10227f95c07a9ae105efaf62/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... |
_("You have successfully obtained an authorization as %(role)s! " "This authorization will last until %(expiration)s and until " | _("You have successfully obtained an authorization as %(x_role)s! " "This authorization will last until %(x_expiration)s and until " | def access(self, req, form): args = wash_urlargd(form, {'mailcookie' : (str, '')}) _ = gettext_set_language(args['ln']) title = _("Mail Cookie Service") try: kind = mail_cookie_retrieve_kind(args['mailcookie']) if kind == 'pw_reset': redirect_to_url(req, '%s/youraccount/resetpassword?k=%s&ln=%s' % (sweburl, args['mailc... | 0fdc70575318c17fadb1476e7759f2e992d9c45b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/0fdc70575318c17fadb1476e7759f2e992d9c45b/websession_webinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
12,
2890,
16,
1111,
16,
646,
4672,
833,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
13666,
4408,
8417,
11,
294,
261,
701,
16,
28707,
6792,
389,
273,
24972,
67,
542,
67,
4923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
12,
2890,
16,
1111,
16,
646,
4672,
833,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
13666,
4408,
8417,
11,
294,
261,
701,
16,
28707,
6792,
389,
273,
24972,
67,
542,
67,
4923... |
def setdefault(self, key, value): self.values.setdefault(key, value) | def setdefault(self, key, value): self.values.setdefault(key, value) def has_key(self, key): return self.values.has_key(key) | def setdefault(self, key, value): self.values.setdefault(key, value) | 31a172669051f612c39ad10e813c996483107c44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6150/31a172669051f612c39ad10e813c996483107c44/hectic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
460,
4672,
365,
18,
2372,
18,
542,
1886,
12,
856,
16,
460,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
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,
8745,
12,
2890,
16,
498,
16,
460,
4672,
365,
18,
2372,
18,
542,
1886,
12,
856,
16,
460,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self._titlebox = TerminatorTermTitle (self.terminator, self.conf.titlebars) | self._titlebox = TerminatorTermTitle (self, self.terminator, self.conf.titlebars) | def __init__ (self, terminator, profile = None, command = None, cwd = None): gtk.VBox.__init__ (self) self.terminator = terminator self.conf = terminator.conf self.command = command self._oldtitle = "" self.matches = {} | 58e20f08682147d5bb232d4fab88ecdede542a88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/58e20f08682147d5bb232d4fab88ecdede542a88/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
24965,
16,
3042,
273,
599,
16,
1296,
273,
599,
16,
7239,
273,
599,
4672,
22718,
18,
58,
3514,
16186,
2738,
972,
261,
2890,
13,
365,
18,
9505,
639,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
24965,
16,
3042,
273,
599,
16,
1296,
273,
599,
16,
7239,
273,
599,
4672,
22718,
18,
58,
3514,
16186,
2738,
972,
261,
2890,
13,
365,
18,
9505,
639,
273,
... |
logging.critical("I caught an OSError. Assure that the directory containing the tool to be benchmarked is included in the PATH environment variable.") | logging.critical("I caught an OSError. Assure that the directory containing the tool to be benchmarked is included in the PATH environment variable or an alias is set.") | def setrlimits(): for rsrc, limits in rlimits.items(): resource.setrlimit(rsrc, limits) | 201c0697d1deb69d169d7e411e32649983cb9773 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7293/201c0697d1deb69d169d7e411e32649983cb9773/benchmark.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1321,
1038,
87,
13332,
364,
3597,
1310,
16,
8181,
316,
436,
14270,
18,
3319,
13332,
1058,
18,
542,
1321,
1038,
12,
86,
4816,
16,
8181,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1321,
1038,
87,
13332,
364,
3597,
1310,
16,
8181,
316,
436,
14270,
18,
3319,
13332,
1058,
18,
542,
1321,
1038,
12,
86,
4816,
16,
8181,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return STOP | def process(res, args): mlist = res.mlist if len(args) <> 1: res.results.append(_('Usage:')) res.results.append(gethelp(mlist)) return STOP cookie = args[0] try: results = mlist.ProcessConfirmation(cookie, res.msg) except Errors.MMBadConfirmation, e: # Express in approximate days days = int(mm_cfg.PENDING_REQUEST_LIFE ... | 7ec39d0596092de34954f856c1e4cfdbe25bf2cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7ec39d0596092de34954f856c1e4cfdbe25bf2cc/cmd_confirm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
455,
16,
833,
4672,
312,
1098,
273,
400,
18,
781,
376,
309,
562,
12,
1968,
13,
2813,
404,
30,
400,
18,
4717,
18,
6923,
24899,
2668,
5357,
2497,
3719,
400,
18,
4717,
18,
692... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
455,
16,
833,
4672,
312,
1098,
273,
400,
18,
781,
376,
309,
562,
12,
1968,
13,
2813,
404,
30,
400,
18,
4717,
18,
6923,
24899,
2668,
5357,
2497,
3719,
400,
18,
4717,
18,
692... | |
_self.edit.textChanged.connect(self.on_text_changed) | _self.edit.textChanged.connect(_self.on_text_changed) | def create_file_chooser_layout(_self, reverse): hlayout = QtGui.QHBoxLayout() _self.edit = edit = QtGui.QLineEdit() _self.edit.textChanged.connect(self.on_text_changed) browse = QtGui.QPushButton("...") browse.clicked.connect(_self.on_file_select) browse.setMaximumWidth(20) add_to_layout(hlayout, edit) add_to_layout(hl... | a70e957ae62024bb854ab7edb509c3b57e010d96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/a70e957ae62024bb854ab7edb509c3b57e010d96/ufo_dd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
768,
67,
2599,
13164,
67,
6741,
24899,
2890,
16,
4219,
4672,
366,
6741,
273,
23425,
18,
53,
44,
3514,
3744,
1435,
389,
2890,
18,
4619,
273,
3874,
273,
23425,
18,
53,
1670,
466... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
768,
67,
2599,
13164,
67,
6741,
24899,
2890,
16,
4219,
4672,
366,
6741,
273,
23425,
18,
53,
44,
3514,
3744,
1435,
389,
2890,
18,
4619,
273,
3874,
273,
23425,
18,
53,
1670,
466... |
nme.writeDesktopFile(os.path.join(MENUDIR, category + ".directory")) | nme.writeDesktopFile(file) | def add_menu_entry(root_menu, root_category, category): '''This adds a menu element entry 'category' under the root_category menu''' if category == root_category: below = "Pentoo" else: below = root_category menu = find_menu_entry(root_menu, category) if menu == None: new_menu_entry = etree.SubElement(find_menu_entry(r... | 4fcbfbed60e511f85c58e074305411c99aa75ad7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7161/4fcbfbed60e511f85c58e074305411c99aa75ad7/genmenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5414,
67,
4099,
12,
3085,
67,
5414,
16,
1365,
67,
4743,
16,
3150,
4672,
9163,
2503,
4831,
279,
3824,
930,
1241,
296,
4743,
11,
3613,
326,
1365,
67,
4743,
3824,
26418,
309,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5414,
67,
4099,
12,
3085,
67,
5414,
16,
1365,
67,
4743,
16,
3150,
4672,
9163,
2503,
4831,
279,
3824,
930,
1241,
296,
4743,
11,
3613,
326,
1365,
67,
4743,
3824,
26418,
309,
315... |
headers = {} | headers = {'content-type': 'application/x-www-form-urlencoded'} | def http_request(self, path_name, cookie_string=None, form={}): path = self.base_path + '/' + config.get('cb_' + path_name) if config['secret']: form['secret'] = config['secret'] body = urllib.urlencode(form) http = httplib.HTTPConnection(self.base_host, self.base_port) headers = {} if cookie_string: headers['Cookie'] ... | 3ea37f7d99abfcd32f52cb0759f0e696df340dca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13219/3ea37f7d99abfcd32f52cb0759f0e696df340dca/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
2293,
12,
2890,
16,
589,
67,
529,
16,
3878,
67,
1080,
33,
7036,
16,
646,
12938,
4672,
589,
273,
365,
18,
1969,
67,
803,
397,
2023,
397,
642,
18,
588,
2668,
7358,
4623,
397,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
2293,
12,
2890,
16,
589,
67,
529,
16,
3878,
67,
1080,
33,
7036,
16,
646,
12938,
4672,
589,
273,
365,
18,
1969,
67,
803,
397,
2023,
397,
642,
18,
588,
2668,
7358,
4623,
397,... |
Construct a cylindrical transformation for a function ``rho`` in terms of ``phi`` and ``z``:: sage: T = Cylindrical('rho', ['phi', 'z']) | Construct a cylindrical transformation for a function for ``height`` in terms of ``radius`` and ``azimuth``:: sage: T = Cylindrical('height', ['radius', 'azimuth']) | def gen_transform(self, r=None, theta=None, phi=None): """ EXAMPLE:: sage: T = Spherical('r', ['theta', 'phi']) sage: T.gen_transform(r=var('r'), theta=var('theta'), phi=var('phi')) (r*sin(theta)*cos(phi), r*sin(phi)*sin(theta), r*cos(theta)) """ return (r * sin(theta) * cos(phi), r * sin(theta) * sin(phi), r * cos(th... | ae9bf5e0d28a56cbf9d189e5545c9a8340d806de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ae9bf5e0d28a56cbf9d189e5545c9a8340d806de/plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
6547,
12,
2890,
16,
436,
33,
7036,
16,
7338,
33,
7036,
16,
7706,
33,
7036,
4672,
3536,
5675,
21373,
2866,
225,
272,
410,
30,
399,
273,
348,
21570,
2668,
86,
2187,
10228,
1448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
6547,
12,
2890,
16,
436,
33,
7036,
16,
7338,
33,
7036,
16,
7706,
33,
7036,
4672,
3536,
5675,
21373,
2866,
225,
272,
410,
30,
399,
273,
348,
21570,
2668,
86,
2187,
10228,
1448... |
Return a tuple of two elements: all the bytes that were read, and the decoded string produced by the decoder. (The entire input chunk is sent to the decoder, but some of it may remain buffered in the decoder, yet to be converted.) | The return value is True unless EOF was reached. The decoded string is placed in self._decoded_text (replacing its previous value). (The entire input chunk is sent to the decoder, though some of it may remain buffered in the decoder, yet to be converted.) | def _read_chunk(self): """ Read and decode the next chunk of data from the BufferedReader. | 1e18b9ecf014bdc7f0b206c49c140c4f21edcb70 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1e18b9ecf014bdc7f0b206c49c140c4f21edcb70/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
12,
2890,
4672,
3536,
2720,
471,
2495,
326,
1024,
2441,
434,
501,
628,
326,
10633,
18,
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,
389,
896,
67,
6551,
12,
2890,
4672,
3536,
2720,
471,
2495,
326,
1024,
2441,
434,
501,
628,
326,
10633,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
_("GoogleEarth not installed!"), (_("Create kmz/kml file ''%s''\n" | _("GoogleEarth not installed!"), (_("Create kmz/kml file ''%s''\n" | def calc_url(self): """ Creates a file for use with GoogleEarth and launches GoogleEarth if in system """ home_dir = os.path.expanduser("~") default_filename = 'GrampsPlacesForGoogleEarth' filename = os.path.join(home_dir, default_filename) if not _GOOGLEEARTH_OK: qd2 = QuestionDialog2( _("GoogleEarth not installed!"),... | 767a0ae51fb403854e86b60498675cea0c45c60e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/767a0ae51fb403854e86b60498675cea0c45c60e/GoogleEarthWriteKML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
718,
12,
2890,
4672,
3536,
10210,
279,
585,
364,
999,
598,
6124,
41,
27076,
471,
8037,
281,
6124,
41,
27076,
309,
316,
2619,
3536,
6382,
67,
1214,
273,
1140,
18,
803,
18,
123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
718,
12,
2890,
4672,
3536,
10210,
279,
585,
364,
999,
598,
6124,
41,
27076,
471,
8037,
281,
6124,
41,
27076,
309,
316,
2619,
3536,
6382,
67,
1214,
273,
1140,
18,
803,
18,
123... |
if is_prime(n): | elif is_prime(n): | def __init__(self, DSage, n, concurrent=10, verbosity=0, trial_division_limit=10000, name='DistributedFactor'): r""" Parameters: DSage -- an instance of a dsage connection n -- the square-free number to be factored concurrent -- number of parallel jobs to run trial_division_limit -- perform trial division up to this nu... | a048f2bedae5ab705dd4778e2e8bc1eb7cd6e5a7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a048f2bedae5ab705dd4778e2e8bc1eb7cd6e5a7/dist_factor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8678,
410,
16,
290,
16,
10020,
33,
2163,
16,
11561,
33,
20,
16,
12950,
67,
2892,
1951,
67,
3595,
33,
23899,
16,
508,
2218,
1669,
11050,
6837,
11,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8678,
410,
16,
290,
16,
10020,
33,
2163,
16,
11561,
33,
20,
16,
12950,
67,
2892,
1951,
67,
3595,
33,
23899,
16,
508,
2218,
1669,
11050,
6837,
11,
4672,
... |
p = "Hello, World" | p = b"Hello, World" | def test_memmove(self): # large buffers apparently increase the chance that the memory # is allocated in high address space. a = create_string_buffer(1000000) p = "Hello, World" result = memmove(a, p, len(p)) self.failUnlessEqual(a.value, "Hello, World") | b0fa61710ee12f761e86d596666d1c66fea0c345 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/b0fa61710ee12f761e86d596666d1c66fea0c345/test_memfunctions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3917,
8501,
12,
2890,
4672,
468,
7876,
9664,
29614,
715,
10929,
326,
17920,
716,
326,
3778,
468,
353,
11977,
316,
3551,
1758,
3476,
18,
279,
273,
752,
67,
1080,
67,
4106,
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,
1842,
67,
3917,
8501,
12,
2890,
4672,
468,
7876,
9664,
29614,
715,
10929,
326,
17920,
716,
326,
3778,
468,
353,
11977,
316,
3551,
1758,
3476,
18,
279,
273,
752,
67,
1080,
67,
4106,
12,
... |
email_body = loader.get_template('core/registration_email.html') | email_body = loader.get_template('core/registration_email.txt') | def form_email_about_registration(request, user, profile): email_body = loader.get_template('core/registration_email.html') activation_url = request.build_absolute_uri( reverse('epic.core.views.activate', kwargs={'activation_key': profile.activation_key})) login_url = request.build_absolute_uri(reverse('django.contrib.... | 81f700ff6e4aab5fe69fb92179d473683965917a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2706/81f700ff6e4aab5fe69fb92179d473683965917a/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
3652,
67,
21071,
67,
14170,
12,
2293,
16,
729,
16,
3042,
4672,
2699,
67,
3432,
273,
4088,
18,
588,
67,
3202,
2668,
3644,
19,
14170,
67,
3652,
18,
5830,
6134,
10027,
67,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
3652,
67,
21071,
67,
14170,
12,
2293,
16,
729,
16,
3042,
4672,
2699,
67,
3432,
273,
4088,
18,
588,
67,
3202,
2668,
3644,
19,
14170,
67,
3652,
18,
5830,
6134,
10027,
67,
718,
... |
result = connection.execute(s) | result = db.execute(s) | def iterConnectionIds(self): s = sa.select([self.connections.c.id]) db = self.getDb() result = connection.execute(s) for row in result: yield row[self.connections.c.id] db.close() | 622d27bc5a95011edb05f63b709aaf04f62d8c31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5028/622d27bc5a95011edb05f63b709aaf04f62d8c31/sa_connection_manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
1952,
2673,
12,
2890,
4672,
272,
273,
7864,
18,
4025,
3816,
2890,
18,
13313,
18,
71,
18,
350,
5717,
1319,
273,
365,
18,
588,
4331,
1435,
563,
273,
1319,
18,
8837,
12,
87,
13,
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,
1400,
1952,
2673,
12,
2890,
4672,
272,
273,
7864,
18,
4025,
3816,
2890,
18,
13313,
18,
71,
18,
350,
5717,
1319,
273,
365,
18,
588,
4331,
1435,
563,
273,
1319,
18,
8837,
12,
87,
13,
3... |
Called by the constructor. | Description: This is called by the constructor. [Protected, grouped under "Protected methods"] | def _fill_attributes(self): """Fills default attributes for certain elements. Called by the constructor. """ | 31746b2c12abc94e701d932b47560a36d5494b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10890/31746b2c12abc94e701d932b47560a36d5494b1d/sparkup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5935,
67,
4350,
12,
2890,
4672,
3536,
28688,
805,
1677,
364,
8626,
2186,
18,
225,
6507,
30,
1220,
353,
2566,
635,
326,
3885,
18,
225,
306,
15933,
16,
10303,
3613,
315,
15933,
2590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5935,
67,
4350,
12,
2890,
4672,
3536,
28688,
805,
1677,
364,
8626,
2186,
18,
225,
6507,
30,
1220,
353,
2566,
635,
326,
3885,
18,
225,
306,
15933,
16,
10303,
3613,
315,
15933,
2590,
... |
print " * writing compiled file..." | print " * writing compiled file..." | def execute(options): if options.sourceDirectories == None or len(options.sourceDirectories) == 0: basename = os.path.basename(sys.argv[0]) print "You must define at least one source directory!" print "usage: %s [options]" % basename print "Try '%s -h' or '%s --help' to show the help message." % (basename, basename) sy... | 85aacefb36d60936c37d08520d1b27007e812a55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/85aacefb36d60936c37d08520d1b27007e812a55/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2116,
4672,
309,
702,
18,
3168,
13071,
422,
599,
578,
562,
12,
2116,
18,
3168,
13071,
13,
422,
374,
30,
4882,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2116,
4672,
309,
702,
18,
3168,
13071,
422,
599,
578,
562,
12,
2116,
18,
3168,
13071,
13,
422,
374,
30,
4882,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
57... |
_widgetTest = '''\ <html><body> The widgets on this page were created dynamically on the fly by a custom wxTagHandler found in wxPython.lib.wxpTag. <hr> <center> <wxp class="wxButton" width="50%"> <param name="label" value="It works!"> <param name="id" value="wxID_OK"> </wxp> </center> <hr> after </body></html> '''... | def runTest(frame, nb, log): win = TestHtmlPanel(nb, frame, log) return win | ae920857a74f858f98d0d68f55f6a77de0d8f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae920857a74f858f98d0d68f55f6a77de0d8f2cf/wxHtmlWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
3789,
16,
4264,
16,
613,
4672,
5657,
273,
7766,
4353,
5537,
12,
6423,
16,
2623,
16,
613,
13,
327,
5657,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
3789,
16,
4264,
16,
613,
4672,
5657,
273,
7766,
4353,
5537,
12,
6423,
16,
2623,
16,
613,
13,
327,
5657,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
title_match = perform_regex_search_upon_line_with_pattern_list(docbody[x], title_patterns) | title_match = \ perform_regex_search_upon_line_with_pattern_list(docbody[x], \ title_patterns) | def find_reference_section(docbody): """Search in document body for its reference section. More precisely, find the first line of the reference section. Effectively, the function starts at the end of a document and works backwards, line-by-line, looking for the title of a reference section. It stops when (if) it finds ... | afd852f45332d11ac027b8d47ce1a922ce7f2cc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/afd852f45332d11ac027b8d47ce1a922ce7f2cc6/refextract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6180,
67,
3464,
12,
2434,
3432,
4672,
3536,
2979,
316,
1668,
1417,
364,
2097,
2114,
2442,
18,
16053,
13382,
291,
2357,
16,
1104,
326,
1122,
980,
434,
326,
2114,
2442,
18,
30755... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6180,
67,
3464,
12,
2434,
3432,
4672,
3536,
2979,
316,
1668,
1417,
364,
2097,
2114,
2442,
18,
16053,
13382,
291,
2357,
16,
1104,
326,
1122,
980,
434,
326,
2114,
2442,
18,
30755... |
0x2018: ur'`', 0x2019: ur"'", | 0x2018: ur'\textquoteleft{}', 0x2019: ur'\textquoteright{}', | def encode(self, text): """Return text with 'problematic' characters escaped. | 839863406d16ba6236fa9348a1de79551ca2adf1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1532/839863406d16ba6236fa9348a1de79551ca2adf1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
977,
4672,
3536,
990,
977,
598,
296,
18968,
2126,
11,
3949,
8345,
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,
... | [
1,
1,
1,
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,
2017,
12,
2890,
16,
977,
4672,
3536,
990,
977,
598,
296,
18968,
2126,
11,
3949,
8345,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if e.args[0] in (2006, 2013): if c == 2: | if e.args[0] in (MySQLdb.constants.CR.SERVER_GONE_ERROR, MySQLdb.constants.CR.SERVER_LOST): if count == 2: | def _executeRetry(self, conn, cursor, query): # When a server connection is lost and a query is attempted, most of # the time the query will raise a SERVER_LOST exception, then at the # second attempt to execute it, the mysql lib will reconnect and # succeed. However is a few cases, the first attempt raises the # SERVE... | 82930788c7ee529eadab1c33ef5177db0c00aef1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8798/82930788c7ee529eadab1c33ef5177db0c00aef1/mysqlconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
7539,
12,
2890,
16,
1487,
16,
3347,
16,
843,
4672,
468,
5203,
279,
1438,
1459,
353,
13557,
471,
279,
843,
353,
18121,
16,
4486,
434,
468,
326,
813,
326,
843,
903,
1002,
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,
389,
8837,
7539,
12,
2890,
16,
1487,
16,
3347,
16,
843,
4672,
468,
5203,
279,
1438,
1459,
353,
13557,
471,
279,
843,
353,
18121,
16,
4486,
434,
468,
326,
813,
326,
843,
903,
1002,
279,... |
e, self.host, self.port, self.db, self.user, self.password) | e, self.host, self.port, self.db, self.user, self.password) | def makeConnection(self): try: conn = self.module.connect(host=self.host, port=self.port, db=self.db, user=self.user, passwd=self.password, **self.kw) except self.module.OperationalError, e: raise OperationalError( "%s; used connection string: host=%s, port=%s, db=%s, user=%s, pwd=%s" % ( e, self.host, self.port, self.... | 45b9e87402108cc076db542bb7aac9d91d00615c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6718/45b9e87402108cc076db542bb7aac9d91d00615c/mysqlconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1952,
12,
2890,
4672,
775,
30,
1487,
273,
365,
18,
2978,
18,
3612,
12,
2564,
33,
2890,
18,
2564,
16,
1756,
33,
2890,
18,
655,
16,
1319,
33,
2890,
18,
1966,
16,
729,
33,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1952,
12,
2890,
4672,
775,
30,
1487,
273,
365,
18,
2978,
18,
3612,
12,
2564,
33,
2890,
18,
2564,
16,
1756,
33,
2890,
18,
655,
16,
1319,
33,
2890,
18,
1966,
16,
729,
33,
2890,
... |
'configlet_url':'portal_'+c.getName().lower()+configlet_view, | 'configlet_url':tool_instance_name+configlet_view, | def generateStdFiles(self, target,projectName,generatedModules): #generates __init__.py, Extensions/Install.py and the skins directory #the result is a QuickInstaller installable product | d02f24e32990e39040efa4daf92ccd808f091ea7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/d02f24e32990e39040efa4daf92ccd808f091ea7/ArchGenXML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
10436,
2697,
12,
2890,
16,
1018,
16,
4406,
461,
16,
11168,
7782,
4672,
468,
3441,
815,
1001,
2738,
25648,
2074,
16,
23105,
19,
6410,
18,
2074,
471,
326,
4343,
2679,
1867,
468,
5787... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
10436,
2697,
12,
2890,
16,
1018,
16,
4406,
461,
16,
11168,
7782,
4672,
468,
3441,
815,
1001,
2738,
25648,
2074,
16,
23105,
19,
6410,
18,
2074,
471,
326,
4343,
2679,
1867,
468,
5787... |
url = self.parent.url | url = self.url | def download_api_data(self): url = self.parent.url id_regex = re.compile("http://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)") match = id_regex.search(url) if match: apiurl = "http://netload.in/share/fileinfos2.php" src = self.req.load(apiurl, cookies=False, get={"file_id": match.group(1)}) self.ap... | 0f1f260c5cd98839aafb3e47261e62b742fe3f8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/0f1f260c5cd98839aafb3e47261e62b742fe3f8a/NetloadIn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2425,
67,
892,
12,
2890,
4672,
880,
273,
365,
18,
718,
612,
67,
7584,
273,
283,
18,
11100,
2932,
2505,
2207,
4509,
2758,
945,
5834,
267,
19,
6503,
712,
77,
21110,
15599,
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,
4224,
67,
2425,
67,
892,
12,
2890,
4672,
880,
273,
365,
18,
718,
612,
67,
7584,
273,
283,
18,
11100,
2932,
2505,
2207,
4509,
2758,
945,
5834,
267,
19,
6503,
712,
77,
21110,
15599,
18,
... |
process.cvs_entry_time = XLALUTCToGPS(time.strptime(kwargs["cvs_entry_time"], "%Y/%m/%d %H:%M:%S")).seconds | try: process.cvs_entry_time = XLALUTCToGPS(time.strptime(kwargs["cvs_entry_time"], "%Y-%m-%d %H:%M:%S +0000")).seconds except ValueError: process.cvs_entry_time = XLALUTCToGPS(time.strptime(kwargs["cvs_entry_time"], "%Y/%m/%d %H:%M:%S")).seconds | def append_process(*args, **kwargs): """ Identical to the append_process() function in glue.ligolw.utils.process except uses LAL to convert UTC to GPS time to get the leap seconds correct. """ process = ligolwprocess.append_process(*args, **kwargs) # FIXME: remove the "" case when the git metadata business is # sorted... | 07708144cf9803298e006cab7d5456f57c6e648b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/07708144cf9803298e006cab7d5456f57c6e648b/llwapp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
2567,
30857,
1968,
16,
2826,
4333,
4672,
3536,
13128,
1706,
358,
326,
714,
67,
2567,
1435,
445,
316,
17960,
18,
80,
360,
355,
91,
18,
5471,
18,
2567,
1335,
4692,
511,
1013,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
2567,
30857,
1968,
16,
2826,
4333,
4672,
3536,
13128,
1706,
358,
326,
714,
67,
2567,
1435,
445,
316,
17960,
18,
80,
360,
355,
91,
18,
5471,
18,
2567,
1335,
4692,
511,
1013,
35... |
dictstr_template = N_('%d dictionary', '%d dictionaries', dcount) | dictstr_template = gettext.ngettext('%d dictionary', '%d dictionaries', dcount) | def create_dict_title(self): dcount = len(set((d.uuid for d in self.dictionaries))) vcount = len(self.dictionaries) if vcount == 0: return _('No dictionaries') volumestr_template = N_('%d volume', '%d volumes', vcount) volumestr = volumestr_template % vcount dictstr_template = N_('%d dictionary', '%d dictionaries', dc... | 85eea32c37c988d2f7946d41041b85d9216497f0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14305/85eea32c37c988d2f7946d41041b85d9216497f0/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1576,
67,
2649,
12,
2890,
4672,
302,
1883,
273,
562,
12,
542,
12443,
72,
18,
7080,
364,
302,
316,
365,
18,
72,
14336,
20349,
331,
1883,
273,
562,
12,
2890,
18,
72,
14336,
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,
752,
67,
1576,
67,
2649,
12,
2890,
4672,
302,
1883,
273,
562,
12,
542,
12443,
72,
18,
7080,
364,
302,
316,
365,
18,
72,
14336,
20349,
331,
1883,
273,
562,
12,
2890,
18,
72,
14336,
13... |
if not node: | if not patchname and not node: | def makepatch(patch, idx, total): desc = [] node = None body = '' for line in patch: if line.startswith('#'): if line.startswith('# Node ID'): node = line.split()[-1] continue if line.startswith('diff -r') or line.startswith('diff --git'): break desc.append(line) if not node: raise ValueError | 5f8789270dde0ad495a09fe99904cd9d88a6585b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/5f8789270dde0ad495a09fe99904cd9d88a6585b/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
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,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18... |
[dist, bin, info] = hist(list,bins,bottom=None,\ | [dist, bin, info] = pylab.hist(inputlist,bins,bottom=None,\ | def makeHistogram(list,distribution,opts,percentiles=None,candidate=None): parameter = distribution.split('-')[0] # set up the bin boundaries for the histogram min_val = eval('opts.' + parameter + '_min') max_val = eval('opts.' + parameter + '_max') nbins = eval('opts.' + parameter + '_bins') if percentiles: max_per... | 3a58220c8f9b9cb9764dcae94b5a4569bed72c68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/3a58220c8f9b9cb9764dcae94b5a4569bed72c68/analyseQscan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12874,
12,
1098,
16,
16279,
16,
4952,
16,
8849,
1449,
33,
7036,
16,
19188,
33,
7036,
4672,
225,
1569,
273,
7006,
18,
4939,
2668,
17,
6134,
63,
20,
65,
225,
468,
444,
731,
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,
1221,
12874,
12,
1098,
16,
16279,
16,
4952,
16,
8849,
1449,
33,
7036,
16,
19188,
33,
7036,
4672,
225,
1569,
273,
7006,
18,
4939,
2668,
17,
6134,
63,
20,
65,
225,
468,
444,
731,
326,
... |
except Exception, e: log(netsvc.LOG_WARNING,"Could not unlink %s, %s" %(fname, e)) | except Exception: self.__logger.exception("Could not unlink %s", fname) | def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | cfd0ae1f9084cbd1bf989d9eb75150c37d1b4b52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/cfd0ae1f9084cbd1bf989d9eb75150c37d1b4b52/content_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1016,
12,
2890,
16,
1745,
16,
1544,
33,
7036,
16,
913,
67,
723,
33,
7036,
16,
2863,
12749,
273,
599,
16,
1198,
33,
8381,
4672,
24705,
273,
599,
5299,
273,
599,
4892,
273,
599,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1016,
12,
2890,
16,
1745,
16,
1544,
33,
7036,
16,
913,
67,
723,
33,
7036,
16,
2863,
12749,
273,
599,
16,
1198,
33,
8381,
4672,
24705,
273,
599,
5299,
273,
599,
4892,
273,
599,
3... |
To customize how the worker, server, or client behaves, you can look for their respective conf files in DOT_SAGE/dsage. The configuration file should be self explanatory. | See the $DOT_SAGE/dsage directory. | def spawn(cmd, verbose=True): """ Spawns a process and registers it with the SAGE cleaner. """ null = open('/dev/null', 'a') proc = '%s/%s' % (SAGE_ROOT + '/local/bin', cmd) process = subprocess.Popen(proc, shell=True, stdout=null, stderr=null) sage.interfaces.cleaner.cleaner(process.pid, cmd) if verbose: print 'Spaw... | 0b3cafd8d82dd046c82b6656e34fb3c659e4046e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0b3cafd8d82dd046c82b6656e34fb3c659e4046e/dsage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
12,
4172,
16,
3988,
33,
5510,
4672,
3536,
5878,
2219,
2387,
279,
1207,
471,
10285,
518,
598,
326,
348,
2833,
25933,
18,
225,
3536,
225,
446,
273,
1696,
2668,
19,
5206,
19,
2011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
12,
4172,
16,
3988,
33,
5510,
4672,
3536,
5878,
2219,
2387,
279,
1207,
471,
10285,
518,
598,
326,
348,
2833,
25933,
18,
225,
3536,
225,
446,
273,
1696,
2668,
19,
5206,
19,
2011,
... |
for jdlName in 'Site': jdlValue = classAdJob.getAttributeString( jdlName ) if jdlValue: jobAttrNames.append( jdlName ) jobAttrValues.append( jdlValue ) | site = classAdJob.getAttributeString('Site') if not site: site = 'ANY' jobAttrNames.append( 'Site' ) jobAttrValues.append( site ) | 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'] ... | 217021ab63329dc922bb37e596caca5cf0d30ec7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/217021ab63329dc922bb37e596caca5cf0d30ec7/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... |
files.append(f) | files.append((f,f)) | def _addResources(self): "Add Welcome/ReadMe/License files, .lproj folders and scripts." | 18f917dac1d0c4373b8f3ea1de666a7605f47d91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/18f917dac1d0c4373b8f3ea1de666a7605f47d91/buildpkg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
3805,
12,
2890,
4672,
315,
986,
678,
16312,
19,
1994,
4667,
19,
13211,
1390,
16,
263,
80,
17995,
9907,
471,
8873,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
3805,
12,
2890,
4672,
315,
986,
678,
16312,
19,
1994,
4667,
19,
13211,
1390,
16,
263,
80,
17995,
9907,
471,
8873,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
FL_Coord, STRING], | FL_Coord, STRING], | def fl_create_roundbutton(type, x, y, w, h, label): """ fl_create_roundbutton(type, x, y, w, h, label) -> object """ retval = _fl_create_roundbutton(type, x, y, w, h, label) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
2260,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
2260,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
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,
1183,
67,
2640,
67,
2260,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
2260,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
... |
def read(self,filename): """ read in a cache object from filename """ c = [CacheEntry(line) for line in open(filename)] return Cache(c) def write(self,filename): """ write a cache object to filename as a lal cache file """ fp = open(filename,'w') | entry_class = CacheEntry def fromfile(cls, fileobj, coltype=LIGOTimeGPS): """ Return a Cache object whose entries are read from an open file. """ c = [cls.entry_class(line, coltype=coltype) for line in fileobj] return cls(c) fromfile = classmethod(fromfile) def fromfilenames(cls, filenames, coltype=LIGOTimeGPS): """ ... | def read(self,filename): """ read in a cache object from filename """ c = [CacheEntry(line) for line in open(filename)] return Cache(c) | 078bd3cbb2fb71f825e2788f3373a4c6a737baa9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/078bd3cbb2fb71f825e2788f3373a4c6a737baa9/lal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
3459,
4672,
3536,
855,
316,
279,
1247,
733,
628,
1544,
3536,
276,
273,
306,
27630,
12,
1369,
13,
364,
980,
316,
1696,
12,
3459,
25887,
327,
4379,
12,
71,
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,
855,
12,
2890,
16,
3459,
4672,
3536,
855,
316,
279,
1247,
733,
628,
1544,
3536,
276,
273,
306,
27630,
12,
1369,
13,
364,
980,
316,
1696,
12,
3459,
25887,
327,
4379,
12,
71,
13,
2,
-1... |
else: break | def ExpireRequests(self): """Delete all the expired requests. | 71e114da4ce07bcbe76516069b621ac459da3d69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/71e114da4ce07bcbe76516069b621ac459da3d69/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7784,
577,
6421,
12,
2890,
4672,
3536,
2613,
777,
326,
7708,
3285,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7784,
577,
6421,
12,
2890,
4672,
3536,
2613,
777,
326,
7708,
3285,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
signal.signal(signal.SIGHUP, signal.SIG_IGN) | signal.signal(signal.SIGUSR1, signal.SIG_IGN) | def ttyloop(task, nodeset, gather, timeout, label, verbosity): """Manage the interactive prompt to run command""" has_readline = False if task.info("USER_interactive"): assert sys.stdin.isatty() readline_avail = False try: import readline readline_setup() readline_avail = True except ImportError: pass if verbosity >= V... | b1a858775a0c2d9702d6d8c6329507066a5d4dd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/b1a858775a0c2d9702d6d8c6329507066a5d4dd6/clush.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
11090,
16,
2021,
16,
1433,
16,
11561,
4672,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
711,
67,
896,
1369,
273,
1083,
309,
1562,
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,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
11090,
16,
2021,
16,
1433,
16,
11561,
4672,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
711,
67,
896,
1369,
273,
1083,
309,
1562,
18,
... |
os.system("git commit -a -m '%s' %s %s" % (msg, opts, options.files)) | os.system("git commit -a -m '%s' %s %s" % (options.name, options.edit, options.files)) | def __init__(self): self.name = None self.all = None self.help = False self.files = "" | 5add7fca73485e5351d7d20e84c1174f86ef00dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11934/5add7fca73485e5351d7d20e84c1174f86ef00dd/dg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
365,
18,
454,
273,
599,
365,
18,
5201,
273,
1083,
365,
18,
2354,
273,
1408,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
365,
18,
454,
273,
599,
365,
18,
5201,
273,
1083,
365,
18,
2354,
273,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
class textcolor(Command): args = 'color:str self' | class definecolor(Command): args = 'name:str model:str color:str' | def latex2htmlcolor(arg): if ',' in arg: red, green, blue = [float(x) for x in arg.split(',')] red = min(int(red * 255), 255) green = min(int(green * 255), 255) blue = min(int(blue * 255), 255) else: try: red = green = blue = float(arg) except ValueError: return arg.strip() return '#%.2X%.2X%.2X' % (red, green, blue) | 761807bbf64f0d9834ce7ee3ce2e439f577851f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7864/761807bbf64f0d9834ce7ee3ce2e439f577851f1/color.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
22,
2620,
3266,
12,
3175,
4672,
309,
3316,
316,
1501,
30,
1755,
16,
10004,
16,
8024,
273,
306,
5659,
12,
92,
13,
364,
619,
316,
1501,
18,
4939,
12,
2187,
6134,
65,
1755,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25079,
22,
2620,
3266,
12,
3175,
4672,
309,
3316,
316,
1501,
30,
1755,
16,
10004,
16,
8024,
273,
306,
5659,
12,
92,
13,
364,
619,
316,
1501,
18,
4939,
12,
2187,
6134,
65,
1755,
273,
... |
return value | return b''.join(value) | def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = b"" | 10def068cb2957d319b77f5465de2d1f38df3989 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/10def068cb2957d319b77f5465de2d1f38df3989/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
324,
3660,
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,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
324,
3660,
2,
-100,
-100,
-100,
... |
Constant polynomials coerce into finite fields: sage: from sage.rings.finite_field_ext_pari import FiniteField_ext_pari sage: R = QQ['x'] | Univariate polynomials coerce into finite fields by evaluating the polynomial at the field's generator: sage: from sage.rings.finite_field_ext_pari import FiniteField_ext_pari sage: R.<x> = QQ[] | def __call__(self, x): r""" Coerce x into the finite field. INPUT: x -- object | 5c9f17a7ae7db46040eafbff2d7aa9efa9bfb829 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5c9f17a7ae7db46040eafbff2d7aa9efa9bfb829/finite_field_ext_pari.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
436,
8395,
7695,
2765,
619,
1368,
326,
25922,
652,
18,
225,
12943,
30,
619,
1493,
733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
436,
8395,
7695,
2765,
619,
1368,
326,
25922,
652,
18,
225,
12943,
30,
619,
1493,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Variable.__init__(self,name,descr) | Variable.__init__(self,name,None,descr) | def __init__(self,name,descr=None): Variable.__init__(self,name,descr) | a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
529,
16,
28313,
33,
7036,
4672,
7110,
16186,
2738,
972,
12,
2890,
16,
529,
16,
28313,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
529,
16,
28313,
33,
7036,
4672,
7110,
16186,
2738,
972,
12,
2890,
16,
529,
16,
28313,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if prog <> self.prog: | if prog != self.prog: | def handle(self, call): # Don't use unpack_header but parse the header piecewise # XXX I have no idea if I am using the right error responses! self.unpacker.reset(call) self.packer.reset() xid = self.unpacker.unpack_uint() self.packer.pack_uint(xid) temp = self.unpacker.unpack_enum() if temp <> CALL: return None # Not ... | e6b5917a3f1232d3676928a6fb5ae07cc948f164 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e6b5917a3f1232d3676928a6fb5ae07cc948f164/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
745,
4672,
468,
7615,
1404,
999,
6167,
67,
3374,
1496,
1109,
326,
1446,
11151,
2460,
468,
11329,
467,
1240,
1158,
21463,
309,
467,
2125,
1450,
326,
2145,
555,
7220,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
745,
4672,
468,
7615,
1404,
999,
6167,
67,
3374,
1496,
1109,
326,
1446,
11151,
2460,
468,
11329,
467,
1240,
1158,
21463,
309,
467,
2125,
1450,
326,
2145,
555,
7220,
5... |
def _writeinfo(self, name, finfo): if DEBUG: print 'binhex info:', name, finfo.Type, finfo.Creator, self.dlen, self.rlen | def _writeinfo(self, name, finfo): | def _writeinfo(self, name, finfo): | f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
1376,
12,
2890,
16,
508,
16,
15190,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
1376,
12,
2890,
16,
508,
16,
15190,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
debug("Socket file read %r" % data) | debug("Socket file read %d bytes: %r" % (len(data), data)) | def socketfile_read (sock): """ Read data from socket until no more data is available. """ data = "" while wc.proxy.readable_socket(sock): s = sock.read(1) if not s: break data += s debug("Socket file read %r" % data) return data + sock._rbuf | fdd7e1aa42ee3181557e51dbf890452ba081f48b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/fdd7e1aa42ee3181557e51dbf890452ba081f48b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
768,
67,
896,
261,
15031,
4672,
3536,
2720,
501,
628,
2987,
3180,
1158,
1898,
501,
353,
2319,
18,
3536,
501,
273,
1408,
1323,
14310,
18,
5656,
18,
11018,
67,
7814,
12,
15031,
4672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
768,
67,
896,
261,
15031,
4672,
3536,
2720,
501,
628,
2987,
3180,
1158,
1898,
501,
353,
2319,
18,
3536,
501,
273,
1408,
1323,
14310,
18,
5656,
18,
11018,
67,
7814,
12,
15031,
4672,... |
if not match_rule(event): | if match_rule and not match_rule(event): | def event_parser(self, message, requester, room_jid, **attrs): for element in message.children("event"): event = events.Event.from_element(element) | f2e0e8478d2a2032a6db7726b4e18e22b1382a37 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/f2e0e8478d2a2032a6db7726b4e18e22b1382a37/historian.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
4288,
12,
2890,
16,
883,
16,
19961,
16,
7725,
67,
18252,
16,
2826,
7039,
4672,
364,
930,
316,
883,
18,
5906,
2932,
2575,
6,
4672,
871,
273,
2641,
18,
1133,
18,
2080,
67,
295... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
4288,
12,
2890,
16,
883,
16,
19961,
16,
7725,
67,
18252,
16,
2826,
7039,
4672,
364,
930,
316,
883,
18,
5906,
2932,
2575,
6,
4672,
871,
273,
2641,
18,
1133,
18,
2080,
67,
295... |
if os.path.exists(output_dir) == 'False': | if not os.path.exists(output_dir): | def usage(): msg = """\ | 7f6e8d002ef7aab494d31c8c3fb6576ea9d4ab9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/7f6e8d002ef7aab494d31c8c3fb6576ea9d4ab9f/make_C_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1234,
273,
3536,
64,
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,
4084,
13332,
1234,
273,
3536,
64,
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,
-... |
try: del self._keys | try: del self._v_keys | def __setitem__(self, key, v): | 37130a76c083481cb70c3b12bc9f8d849e2452a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/37130a76c083481cb70c3b12bc9f8d849e2452a5/Persistence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
331,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
331,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
"code": project.code, "name": project.title, | "code": project_model.code, "name": projecttitle, | def getquicklinks(self): """gets a set of quick links to user's project-languages""" quicklinks = [] user_profile = self.request.user.get_profile() for language in user_profile.languages.all(): if not self.potree.haslanguage(language.code): continue langlinks = [] for project in user_profile.projects.all(): if self.pot... | 175d382fc31e690fc531a50d19fa85a14987aa15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11388/175d382fc31e690fc531a50d19fa85a14987aa15/indexpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
19525,
7135,
12,
2890,
4672,
3536,
14665,
279,
444,
434,
9549,
4716,
358,
729,
1807,
1984,
17,
14045,
8395,
9549,
7135,
273,
5378,
729,
67,
5040,
273,
365,
18,
2293,
18,
1355,
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,
336,
19525,
7135,
12,
2890,
4672,
3536,
14665,
279,
444,
434,
9549,
4716,
358,
729,
1807,
1984,
17,
14045,
8395,
9549,
7135,
273,
5378,
729,
67,
5040,
273,
365,
18,
2293,
18,
1355,
18,
... |
graph.reset() | graph("e\n") raw_input("press return to continue...\n") | def GraphData(self, path, graph): file = eval(open(path).read()) choice = self.choice1.GetSelection() if choice == -1: choice = 0 size = len(file['Test']['GraphLines'][0]['ResultSet']) count = 0 while count < size: name = file['Test']['GraphLines'][0]['ResultSet'][count]['Name'] result = file['Test']['GraphLines'][0]['... | 1968eba5b6a3698dd7fdbc4a8f30257933263174 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2798/1968eba5b6a3698dd7fdbc4a8f30257933263174/wxFrame1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5601,
751,
12,
2890,
16,
589,
16,
2667,
4672,
585,
273,
5302,
12,
3190,
12,
803,
2934,
896,
10756,
6023,
273,
365,
18,
11569,
21,
18,
967,
6233,
1435,
309,
6023,
422,
300,
21,
30,
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,
5601,
751,
12,
2890,
16,
589,
16,
2667,
4672,
585,
273,
5302,
12,
3190,
12,
803,
2934,
896,
10756,
6023,
273,
365,
18,
11569,
21,
18,
967,
6233,
1435,
309,
6023,
422,
300,
21,
30,
60... |
version = distutils.msvccompiler.get_build_version() if version: | try: distutils.msvccompiler.MSVCCompiler().initialize | def msvc_exists(): """ Determine whether MSVC is available on the machine. """ result = 0 try: p = subprocess.Popen(['cl'], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) str_result = p.stdout.read() #print str_result if 'Microsoft' in str_result: result = 1 except: #assume we're ok if de... | b81a962346e67dbf363ecafecd4d1934cc2d9c6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7416/b81a962346e67dbf363ecafecd4d1934cc2d9c6e/build_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
1808,
13332,
3536,
10229,
2856,
9238,
13464,
353,
2319,
603,
326,
5228,
18,
3536,
563,
273,
374,
775,
30,
293,
273,
6652,
18,
52,
3190,
12,
3292,
830,
17337,
5972,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
1808,
13332,
3536,
10229,
2856,
9238,
13464,
353,
2319,
603,
326,
5228,
18,
3536,
563,
273,
374,
775,
30,
293,
273,
6652,
18,
52,
3190,
12,
3292,
830,
17337,
5972,
33,
... |
print "%ERROR:%s Could not locate thirdparty package %s, aborting build" % (GetColor("red"), GetColor(), pkg.lower()) | print "%sERROR:%s Could not locate thirdparty package %s, aborting build" % (GetColor("red"), GetColor(), pkg.lower()) | def PkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, framework = None, tool = "pkg-config"): global PKG_LIST_ALL if (pkgconfig == ""): pkgconfig = None if (framework == ""): framework = None if (libs == None or libs == ""): libs = () elif (isinstance(libs, str)): libs = (libs, ) if (incs == None ... | 9d06d108bcf9b58d212e557f55ba111aa99fd02f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/9d06d108bcf9b58d212e557f55ba111aa99fd02f/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
453,
14931,
8317,
12,
10657,
16,
3475,
1425,
273,
599,
16,
15042,
273,
599,
16,
316,
2143,
273,
599,
16,
17588,
273,
599,
16,
8257,
273,
599,
16,
5226,
273,
315,
10657,
17,
1425,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
453,
14931,
8317,
12,
10657,
16,
3475,
1425,
273,
599,
16,
15042,
273,
599,
16,
316,
2143,
273,
599,
16,
17588,
273,
599,
16,
8257,
273,
599,
16,
5226,
273,
315,
10657,
17,
1425,
6,
... |
def small(text): return '<small>' + text + '</small>' def strong(text): return '<strong>' + text + '</strong>' def grey(text): return '<font color=" | def small(text): if text: return '<small>' + text + '</small>' else: return '' def strong(text): if text: return '<strong>' + text + '</strong>' else: return '' def grey(text): if text: return '<font color=" else: return '' | def small(text): return '<small>' + text + '</small>' | 5fcefdb32600fa64d3160f031d48fb033150fdb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5fcefdb32600fa64d3160f031d48fb033150fdb3/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5264,
12,
955,
4672,
327,
2368,
12019,
1870,
397,
977,
397,
4357,
12019,
1870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5264,
12,
955,
4672,
327,
2368,
12019,
1870,
397,
977,
397,
4357,
12019,
1870,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
class RecurrentAutoencoder(RecurrentWrapper): r""" Specialized version of RecurrentWrapper to deal with autoencoder pretraining. See the documentation for `Autoencoder` for details on the semantics of the parameters. | def recurrent_autoencoder(n_in, n_out, tied=True, nlin=sigmoid, noise=0.0, error=cross_entropy, name=None, dtype=theano.config.floatX, rng=numpy.random, noise_rng=RandomStreams()): r""" Utility function to create a recurrent autoencoder. See the documentation for `Autoencoder` for details on the semantics of the param... | def recurrent_layer(n_in, n_out, nlin=sigmoid, rng=numpy.random, name=None, dtype=theano.config.floatX): r""" Utility function to create a recurrent layer. See the documentation for `SimpleLayer` for details on the semantics of the parameters. Examples: >>> rl = recurrent_layer(3, 2) """ from pynnet.layers import Sim... | be398f5295ae3c6c999c3358899e2a341413174d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3400/be398f5295ae3c6c999c3358899e2a341413174d/recurrent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
2972,
67,
6363,
12,
82,
67,
267,
16,
290,
67,
659,
16,
290,
7511,
33,
7340,
30501,
16,
11418,
33,
15974,
18,
9188,
16,
508,
33,
7036,
16,
3182,
33,
5787,
31922,
18,
1425,
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,
283,
2972,
67,
6363,
12,
82,
67,
267,
16,
290,
67,
659,
16,
290,
7511,
33,
7340,
30501,
16,
11418,
33,
15974,
18,
9188,
16,
508,
33,
7036,
16,
3182,
33,
5787,
31922,
18,
1425,
18,
... |
if self.compiler.find_library_file(lib_dirs, 'db-3.1'): | if self.compiler.find_library_file(lib_dirs, 'db-3.2'): dblib = ['db-3.2'] elif self.compiler.find_library_file(lib_dirs, 'db-3.1'): | def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.insert(0, '/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.insert(0, '/usr/local/include' ) | b1a9f646e0a72645e0bcfc54fa934e4c4cf93b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b1a9f646e0a72645e0bcfc54fa934e4c4cf93b7b/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... |
context.interpArgCount = 0 | def parse(self, context, operands): # Case 1: One interpretive opcode. # Case 2: Two packed interpretive opcodes. # Case 3: Interpretive opcode, simple operand. # Case 4: Interpretive opcode, operand expression with 2 components (e.g. ['A', '+1']). # Case 5: Interpretive opcode, operand expression with 3 components (e.... | 0dc7e9a86302afee6b962e9657efe937f5ff2e18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0dc7e9a86302afee6b962e9657efe937f5ff2e18/interpretive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
819,
16,
14883,
4672,
468,
12605,
404,
30,
6942,
10634,
688,
11396,
18,
468,
12605,
576,
30,
16896,
12456,
10634,
688,
1061,
7000,
18,
468,
12605,
890,
30,
5294,
1508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
819,
16,
14883,
4672,
468,
12605,
404,
30,
6942,
10634,
688,
11396,
18,
468,
12605,
576,
30,
16896,
12456,
10634,
688,
1061,
7000,
18,
468,
12605,
890,
30,
5294,
1508... | |
if (u.getUserName().lower().find(name) == -1) and (user.fullname.lower().find(name) == -1): | if (u.getUserName().lower().find(name) == -1) and \ ((not user.fullname) or user.fullname.lower().find(name) == -1): | def searchForMembers( self, REQUEST=None, **kw ): """ """ if REQUEST: dict = REQUEST else: dict = kw name = dict.get('name', None) email = dict.get('email', None) roles = dict.get('roles', None) last_login_time = dict.get('last_login_time', None) is_manager = self.checkPermission('Manage portal', self) if name: name ... | 84c18869edd929d033841a43c77e28e0bedb89d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/84c18869edd929d033841a43c77e28e0bedb89d2/MemberDataTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
1290,
6918,
12,
365,
16,
12492,
33,
7036,
16,
2826,
9987,
262,
30,
3536,
3536,
309,
12492,
30,
2065,
273,
12492,
469,
30,
2065,
273,
5323,
225,
508,
273,
2065,
18,
588,
2668,
529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
1290,
6918,
12,
365,
16,
12492,
33,
7036,
16,
2826,
9987,
262,
30,
3536,
3536,
309,
12492,
30,
2065,
273,
12492,
469,
30,
2065,
273,
5323,
225,
508,
273,
2065,
18,
588,
2668,
529... |
patterns = {r'(.*)_([0-9]*)\.(.*)':'%s_%s.%s', r'([^\.]*)\.([0-9]+)':'%s.%s%s', | patterns = {r'([^\.]*)\.([0-9]+)':'%s.%s%s', r'(.*)_([0-9]*)\.(.*)':'%s_%s.%s', | def image2image(filename): '''Return an integer for the template to match this filename.''' # check that the file name doesn't contain anything mysterious if filename.count('#'): raise RuntimeError, '# characters in filename' # the patterns in the order I want to test them pattern_keys = [r'(.*)_([0-9]*)\.(.*)', r'(... | 1c4943d902d9054aa693637949c54b1cb8ca8dda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3290/1c4943d902d9054aa693637949c54b1cb8ca8dda/FindImages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
22,
2730,
12,
3459,
4672,
9163,
990,
392,
3571,
364,
326,
1542,
358,
845,
333,
1544,
1093,
6309,
225,
468,
866,
716,
326,
585,
508,
3302,
1404,
912,
6967,
312,
1094,
264,
22774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
22,
2730,
12,
3459,
4672,
9163,
990,
392,
3571,
364,
326,
1542,
358,
845,
333,
1544,
1093,
6309,
225,
468,
866,
716,
326,
585,
508,
3302,
1404,
912,
6967,
312,
1094,
264,
22774,
... |
repair_line_obj.write(cr, uid, [move.id], {'move_id': move_id}) | repair_line_obj.write(cr, uid, [move.id], {'move_id': move_id, 'state': 'done'}) | def action_repair_done(self, cr, uid, ids, context=None): """ Creates stock move and picking for repair order. @return: Picking ids. """ res = {} move_obj = self.pool.get('stock.move') wf_service = netsvc.LocalService("workflow") repair_line_obj = self.pool.get('mrp.repair.line') seq_obj = self.pool.get('ir.sequence') ... | d24451dcd60465f12661380032cf600cdea1a4b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d24451dcd60465f12661380032cf600cdea1a4b1/mrp_repair.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
266,
6017,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
3536,
10210,
12480,
3635,
471,
6002,
310,
364,
20994,
1353,
18,
632,
2463,
30,
23038,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
266,
6017,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
3536,
10210,
12480,
3635,
471,
6002,
310,
364,
20994,
1353,
18,
632,
2463,
30,
23038,
31... |
def run(self): self.app_controller = AppController.alloc().initWithApp_(self) NSApplication.sharedApplication().setDelegate_(self.app_controller) NSApplicationMain(sys.argv) | def endLoop(self, loop): del loop.pool | 0c7ca02ab76e0cf4099644d25a9e6c2ac8439e35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/0c7ca02ab76e0cf4099644d25a9e6c2ac8439e35/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
6452,
12,
2890,
16,
2798,
4672,
1464,
2798,
18,
6011,
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,
679,
6452,
12,
2890,
16,
2798,
4672,
1464,
2798,
18,
6011,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if len(toks) == 4: | print toks if len(toks) in (3,4): | def trigger(self, a, loc, toks, op): #print op, toks if op == 'lit': negated = False if toks[0] == '!' or toks[0] == '*': if toks[0] == '*': negated = 2 else: negated = True toks = toks[1] else: toks = toks[0] self.stack.append(Lit(negated, toks[0], toks[1])) elif op == '!': if len(toks) == 1: formula = Negation(self.s... | 1f3caf6d5f7ae8ea6c4270ece63192b00b154a4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10261/1f3caf6d5f7ae8ea6c4270ece63192b00b154a4d/FOL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3080,
12,
2890,
16,
279,
16,
1515,
16,
21404,
16,
1061,
4672,
468,
1188,
1061,
16,
21404,
309,
1061,
422,
296,
24235,
4278,
24765,
273,
1083,
309,
21404,
63,
20,
65,
422,
15502,
578,
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,
3080,
12,
2890,
16,
279,
16,
1515,
16,
21404,
16,
1061,
4672,
468,
1188,
1061,
16,
21404,
309,
1061,
422,
296,
24235,
4278,
24765,
273,
1083,
309,
21404,
63,
20,
65,
422,
15502,
578,
2... |
sage: p = 10007 sage: prec = 2 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( ... x^3 - x + R(1/4), p, M) sage: B = A.change_ring(Integers(p**prec)); B [74311982 57996908] [95877067 25828133] sa... | sage: p = 10007 sage: prec = 2 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( ... x^3 - x + R(1/4), p, M) sage: B = A.change_ring(Integers(p**prec)); B [74311982 57996908] [95877067 25828133] sa... | def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be... | 894b878ec3bbe6ef06c36aa7cf3e8cd6f2838986 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/894b878ec3bbe6ef06c36aa7cf3e8cd6f2838986/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
1942... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
1942... |
return unic(string, encoding) return unic(string) | return unic(stdout, encoding) return unic(stdout) | def _decode_from_system(self, string): if self._is_jython(2, 2): return string encoding = self._get_console_encoding() if encoding: return unic(string, encoding) return unic(string) | ce780d1bf53e538f52a0feebc6f3ddf1618e93b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/ce780d1bf53e538f52a0feebc6f3ddf1618e93b7/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
67,
2080,
67,
4299,
12,
2890,
16,
533,
4672,
309,
365,
6315,
291,
67,
78,
18490,
12,
22,
16,
576,
4672,
327,
533,
2688,
273,
365,
6315,
588,
67,
8698,
67,
5999,
1435,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
67,
2080,
67,
4299,
12,
2890,
16,
533,
4672,
309,
365,
6315,
291,
67,
78,
18490,
12,
22,
16,
576,
4672,
327,
533,
2688,
273,
365,
6315,
588,
67,
8698,
67,
5999,
1435,
309,... |
def test_cast_subarray_pointer(): from pypy.rpython.lltypesystem.lltype import malloc, GcArray, Signed from pypy.rpython.lltypesystem.lltype import FixedSizeArray, Ptr for a in [malloc(GcArray(Signed), 5), malloc(FixedSizeArray(Signed, 5), immortal=True)]: a[0] = 0 a[1] = 10 a[2] = 20 a[3] = 30 a[4] = 40 BOX = Ptr(Fix... | def llf(v): return lltype.cast_primitive(lltype.UniChar, v) | 009a8d041db36a9c6f347c5e28db4ee06e85c6f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/009a8d041db36a9c6f347c5e28db4ee06e85c6f4/test_rbuiltin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
74,
12,
90,
4672,
327,
6579,
723,
18,
4155,
67,
683,
5025,
12,
2906,
723,
18,
984,
77,
2156,
16,
331,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
74,
12,
90,
4672,
327,
6579,
723,
18,
4155,
67,
683,
5025,
12,
2906,
723,
18,
984,
77,
2156,
16,
331,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
try: urlTool = aq_parent(self).portal_url except AttributeError: urlTool = self.portal_url | urlTool = getToolByName(self, 'portal_url') | def getRelPath(self, ppath): """take something with context (self) and a physical path as a tuple, return the relative path for the portal""" try: urlTool = aq_parent(self).portal_url except AttributeError: urlTool = self.portal_url portal_path = urlTool.getPortalObject().getPhysicalPath() ppath = ppath[len(portal_path... | b9163725c4c85727fc8fab92fc7f75623b6a66f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b9163725c4c85727fc8fab92fc7f75623b6a66f2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1971,
743,
12,
2890,
16,
293,
803,
4672,
3536,
22188,
5943,
598,
819,
261,
2890,
13,
471,
279,
11640,
589,
487,
279,
3193,
16,
327,
326,
3632,
589,
364,
326,
11899,
8395,
880,
636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1971,
743,
12,
2890,
16,
293,
803,
4672,
3536,
22188,
5943,
598,
819,
261,
2890,
13,
471,
279,
11640,
589,
487,
279,
3193,
16,
327,
326,
3632,
589,
364,
326,
11899,
8395,
880,
636... |
value = tuple(value.split(' ')) | value = tuple(value.split()) | def merge_file(self, filename): import ConfigParser c = ConfigParser.ConfigParser() c.read(filename) for sect in c.sections(): for opt in c.options(sect): value = c.get(sect, opt) # backward compatibility guff if opt[:len(sect) + 1].lower() == sect.lower() + '_': opt = opt[len(sect)+1:] # end of backward compatibility ... | c8b260b56d7296eb74c97cffc2ed5c2cf3d9dd57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/c8b260b56d7296eb74c97cffc2ed5c2cf3d9dd57/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
768,
12,
2890,
16,
1544,
4672,
1930,
25076,
276,
273,
25076,
18,
809,
2678,
1435,
276,
18,
896,
12,
3459,
13,
364,
29140,
316,
276,
18,
11657,
13332,
364,
2153,
316,
276,
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,
2691,
67,
768,
12,
2890,
16,
1544,
4672,
1930,
25076,
276,
273,
25076,
18,
809,
2678,
1435,
276,
18,
896,
12,
3459,
13,
364,
29140,
316,
276,
18,
11657,
13332,
364,
2153,
316,
276,
18,... |
val = ecb.GetServerVariable(q) | val = ecb.GetServerVariable(q, '<no such variable>') | def HttpExtensionProc(self, ecb): # NOTE: If you use a ThreadPoolExtension, you must still perform # this check in HttpExtensionProc - raising the exception from # The "Dispatch" method will just cause the exception to be # rendered to the browser. if self.reload_watcher.change_detected: print "Doing reload" raise Inte... | 6ccefe13698c5d3ace9ef790ed49172ec930f81a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/992/6ccefe13698c5d3ace9ef790ed49172ec930f81a/advanced.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2541,
3625,
15417,
12,
2890,
16,
6557,
70,
4672,
468,
5219,
30,
971,
1846,
999,
279,
27359,
3625,
16,
1846,
1297,
4859,
3073,
468,
333,
866,
316,
2541,
3625,
15417,
300,
28014,
326,
1520... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2541,
3625,
15417,
12,
2890,
16,
6557,
70,
4672,
468,
5219,
30,
971,
1846,
999,
279,
27359,
3625,
16,
1846,
1297,
4859,
3073,
468,
333,
866,
316,
2541,
3625,
15417,
300,
28014,
326,
1520... |
else | else: | def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 388) else quickfix.CharField.__init__(self, 388, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
890,
5482,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
890,
5482,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
273... |
R = PolynomialRing(self.base_ring(), 2, 'x,y') | R, (y,x) = PolynomialRing(self.base_ring(), 2, 'y,x', order='revlex').objgens() if use_divpoly and m % 2 == 1: return R(self.division_polynomial(m)) | def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y. | 84dad5dfc790d5dacf9589fdd0cfafb884726e83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/84dad5dfc790d5dacf9589fdd0cfafb884726e83/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
2892,
1951,
67,
3915,
13602,
12,
2890,
16,
312,
4672,
3536,
2000,
326,
312,
17,
451,
324,
27693,
16536,
16991,
316,
619,
471,
677,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
2892,
1951,
67,
3915,
13602,
12,
2890,
16,
312,
4672,
3536,
2000,
326,
312,
17,
451,
324,
27693,
16536,
16991,
316,
619,
471,
677,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'control=', 'case=']) | 'root=', 'libdir=', 'control=', 'debug', 'profile', 'cflags=', 'case=']) | def get_options(self, args): optlist, args = getopt.getopt(args, '', ['checkout', 'nocheckout', 'build', 'nobuild', 'test', 'notest', 'control=', 'case=']) for (opt, val) in optlist: if opt == '--nocheckout': self.checkout = 0 if opt == '--checkout': self.checkout = 1 if opt == '--nobuild': self.build = 0 if opt == '--... | 6e67a8118ba11aa99fa7c3f0ebf2fd1c80f5f9e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12935/6e67a8118ba11aa99fa7c3f0ebf2fd1c80f5f9e6/streamit-regtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2116,
12,
2890,
16,
833,
4672,
2153,
1098,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
1968,
16,
10226,
10228,
17300,
2187,
296,
2135,
17300,
2187,
296,
3510,
2187,
296,
82,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2116,
12,
2890,
16,
833,
4672,
2153,
1098,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
1968,
16,
10226,
10228,
17300,
2187,
296,
2135,
17300,
2187,
296,
3510,
2187,
296,
82,
9... |
os.makedirs(self.value) | if None: os.makedirs(self.value) | def configure(self): '''Generate an interactive prompt to enter a workspace variable *var* value and returns True if the variable value as been set.''' if self.value != None: return False if log: # Configuration of logPath (where the log is stored) # will execute to here before the file is actually open. log.write('\n'... | 4a9bbf3c5ea7429f402e63ad28ed48a40972ea00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/4a9bbf3c5ea7429f402e63ad28ed48a40972ea00/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
2890,
4672,
9163,
4625,
392,
12625,
6866,
358,
6103,
279,
6003,
2190,
380,
1401,
14,
460,
471,
1135,
1053,
309,
326,
2190,
460,
487,
2118,
444,
1093,
6309,
309,
365,
18,
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,
5068,
12,
2890,
4672,
9163,
4625,
392,
12625,
6866,
358,
6103,
279,
6003,
2190,
380,
1401,
14,
460,
471,
1135,
1053,
309,
326,
2190,
460,
487,
2118,
444,
1093,
6309,
309,
365,
18,
1132,
... |
print 'header read' | def Load(self): self.read_header() print 'header read' self.chunks = self.read_subchunks(self.riff_header) print 'subchunks read' self.process_chunks() | 005d65a1317c0d7ddba798bcfb5132e409ea3148 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3123/005d65a1317c0d7ddba798bcfb5132e409ea3148/ccxloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
12,
2890,
4672,
365,
18,
896,
67,
3374,
1435,
365,
18,
14691,
273,
365,
18,
896,
67,
1717,
14691,
12,
2890,
18,
86,
3048,
67,
3374,
13,
1172,
296,
1717,
14691,
855,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
12,
2890,
4672,
365,
18,
896,
67,
3374,
1435,
365,
18,
14691,
273,
365,
18,
896,
67,
1717,
14691,
12,
2890,
18,
86,
3048,
67,
3374,
13,
1172,
296,
1717,
14691,
855,
11,
365,
18... | |
self._indirect_analyze_results_file = "" | def __init__(self): BaseTool.__init__(self) self.RegisterOptionParserHook(ValgrindTool.ExtendOptionParser) self._indirect_analyze_results_file = "" | b91d8155e1de5888b96ea1b17ac5fce7d82773ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b91d8155e1de5888b96ea1b17ac5fce7d82773ca/valgrind_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3360,
6364,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3996,
1895,
2678,
5394,
12,
3053,
3197,
728,
6364,
18,
16675,
1895,
2678,
13,
365,
6315,
728,
867,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3360,
6364,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3996,
1895,
2678,
5394,
12,
3053,
3197,
728,
6364,
18,
16675,
1895,
2678,
13,
365,
6315,
728,
867,
... | |
tag = line.split(" - ")[1].strip() self.log_buffer.insert_with_tags_by_name(iter, line + "\n", tag) | if line != "": tag = line.split(" - ")[1].strip() self.log_buffer.insert_with_tags_by_name(iter, line + "\n", tag) | def __init__(self, specto, notifier): self.specto = specto self.notifier = notifier #create tree gladefile= self.specto.PATH + 'glade/log_dialog.glade' windowname= "log_dialog" self.wTree=gtk.glade.XML(gladefile,windowname, self.specto.glade_gettext) dic={ "on_button_help_clicked": self.show_help, "on_button_save_clic... | 34c954c546a0f2f0b6292dd6042e5cae93c8337d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10818/34c954c546a0f2f0b6292dd6042e5cae93c8337d/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23242,
83,
16,
19057,
4672,
365,
18,
13234,
83,
273,
23242,
83,
365,
18,
902,
1251,
273,
19057,
468,
2640,
2151,
5118,
69,
536,
398,
33,
365,
18,
13234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23242,
83,
16,
19057,
4672,
365,
18,
13234,
83,
273,
23242,
83,
365,
18,
902,
1251,
273,
19057,
468,
2640,
2151,
5118,
69,
536,
398,
33,
365,
18,
13234,
... |
if (self.ready and not self.sent_headers and not self.connection.server.interrupt): | if (self.ready and not self.sent_headers): | def respond(self): """Call the appropriate WSGI app and write its iterable output.""" response = self.wsgi_app(self.environ, self.start_response) try: for chunk in response: # "The start_response callable must not actually transmit # the response headers. Instead, it must store them for the # server or gateway to trans... | acc42149c6f09db3b7c163286ba44aeeee07fb89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/acc42149c6f09db3b7c163286ba44aeeee07fb89/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6846,
12,
2890,
4672,
3536,
1477,
326,
5505,
7649,
13797,
595,
471,
1045,
2097,
6087,
876,
12123,
766,
273,
365,
18,
28539,
67,
2910,
12,
2890,
18,
28684,
16,
365,
18,
1937,
67,
2740,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6846,
12,
2890,
4672,
3536,
1477,
326,
5505,
7649,
13797,
595,
471,
1045,
2097,
6087,
876,
12123,
766,
273,
365,
18,
28539,
67,
2910,
12,
2890,
18,
28684,
16,
365,
18,
1937,
67,
2740,
... |
print rsq_vector | def plotsnrchisq(gpsTime,frameFile,ligoName,chisqBins,chisqDelta,outputPath): # BE CAREFUL ! The length of the frame file itself (without taking into account the path) is supposed to be 30 characters ! ind1 = len(frameFile) - 30 # this variable is also used in the definition of the plot title ind2 = ind1 + 2 ifoName ... | 4fac04e0504100b75904fdd3ae9bfd8f468c6562 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/4fac04e0504100b75904fdd3ae9bfd8f468c6562/plotsnrchisq_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
80,
17626,
461,
16,
343,
291,
85,
38,
2679,
16,
343,
291,
85,
9242,
16,
2844,
743,
4672,
225,
468,
9722,
6425,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
80,
17626,
461,
16,
343,
291,
85,
38,
2679,
16,
343,
291,
85,
9242,
16,
2844,
743,
4672,
225,
468,
9722,
6425,
1... | |
self.bossLiteSession.getNewRunningInstance( self.bossJob ) self.bossJob.runningJob['outputDirectory'] = outdir | def doBOSSSubmit(self): """ _doSubmit_ | d9550c06bc4173e74945a83e7b00e7af90ca69a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/d9550c06bc4173e74945a83e7b00e7af90ca69a5/BossLiteBulkInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
5315,
1260,
11620,
12,
2890,
4672,
3536,
389,
2896,
11620,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
5315,
1260,
11620,
12,
2890,
4672,
3536,
389,
2896,
11620,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
print (mb, cc) print amb/10, acc/10 | return amb/10, acc/10 def checkDirectionAccuracyForPair(model, reference, direction, clsID, reversedAttributes): constraint = int(model(reference)) prediction = 0 for attr in reversedAttributes: constraint, tc = constraint/3, constraint%3 if tc==2: continue v1, v2 = reference[attr], direction[attr] if v1.isSpecia... | def CVAgainstKnown(data, oracle, dimensions = None, method = None, **dic): cv = orange.MakeRandomIndicesCV(data, 10) for fold in range(10): train = data.select(cv, fold, negate=1) test = data.select(cv, fold) pa, qid, did, cid = pade(train, oracle, dimensions, method, originalAsMeta=True, **dic) tree = orngTree.TreeLea... | a7cd4bd05f0f929427c72f89b82f8b9110bc3ccb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/a7cd4bd05f0f929427c72f89b82f8b9110bc3ccb/orngPade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
58,
23530,
334,
11925,
12,
892,
16,
20865,
16,
5769,
273,
599,
16,
707,
273,
599,
16,
2826,
15859,
4672,
8951,
273,
578,
726,
18,
6464,
8529,
8776,
22007,
12,
892,
16,
1728,
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,
385,
58,
23530,
334,
11925,
12,
892,
16,
20865,
16,
5769,
273,
599,
16,
707,
273,
599,
16,
2826,
15859,
4672,
8951,
273,
578,
726,
18,
6464,
8529,
8776,
22007,
12,
892,
16,
1728,
13,
... |
primary = 'RelVal'+line.split('@@@')[0].strip() array = line.split('@@@')[1].strip().split() | primary = 'RelVal' + line.split('@@@')[0].split('++')[1].strip() | def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ... | 47397be0ad25e900c8367cb1b05a7d6e187b915f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/47397be0ad25e900c8367cb1b05a7d6e187b915f/prepareRelValWorkflows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
13,
294,
3536,
225,
2911,
1971,
3053,
13815,
87,
225,
2911,
31738,
364,
20269,
4929,
434,
4275,
3053,
5216,
225,
300,
1109,
585,
19918,
6166,
4668,
4364,
364,
404,
334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
13,
294,
3536,
225,
2911,
1971,
3053,
13815,
87,
225,
2911,
31738,
364,
20269,
4929,
434,
4275,
3053,
5216,
225,
300,
1109,
585,
19918,
6166,
4668,
4364,
364,
404,
334,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.